← Back
Editing: main.js
/*! For license information please see main.js.LICENSE.txt */ (()=>{let e;var t={6696(e,t,i){"use strict";i.r(t);var a=i(1601),n=i.n(a),o=i(6314),r=(i.n(o))()(n());r.push([e.id,":host{display:inline-flex}.logo{--uap--d--ai--app-logo--size: 24px;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;box-sizing:border-box;inline-size:var(--uap--d--ai--app-logo--size);block-size:var(--uap--d--ai--app-logo--size)}.logo--sm{--uap--d--ai--app-logo--size: 16px}.logo--lg{--uap--d--ai--app-logo--size: 36px}.logo__brand{font-size:var(--uap--d--ai--app-logo--size)}.logo__plug{color:var(--uas--typography--color-secondary);font-size:calc(var(--uap--d--ai--app-logo--size)*.875)}",""]),i.d(t,["default",0,r])},8971(e,t,i){"use strict";i.r(t);var a=i(1601),n=i.n(a),o=i(6314),r=(i.n(o))()(n());r.push([e.id,":host{display:block}.steps{--uap--d--ai--link-account-steps--number-size: 24px;--uap--d--ai--link-account-steps--number-background: var( --uas--typography--color );--uap--d--ai--link-account-steps--label-color: var( --uas--typography--color );display:flex;flex-direction:column;gap:var(--uas--base--spacing-xs);margin:0;padding:0;list-style:none;text-align:start}.steps__step{display:flex;align-items:center;gap:var(--uas--base--spacing-sm);margin:0;padding:var(--uas--base--spacing-sm) var(--uas--base--spacing-md);border:1px solid var(--uas--color--border);border-radius:var(--uas--base--border-radius-sm)}.steps__step--locked{--uap--d--ai--link-account-steps--number-background: var( --uas--typography--color-tertiary );--uap--d--ai--link-account-steps--label-color: var( --uas--typography--color-secondary )}.steps__number{font-family:var(--uas--typography--title-small-font-family);font-size:var(--uas--typography--title-small-font-size);line-height:var(--uas--typography--title-small-line-height);font-weight:var(--uas--typography--title-small-font-weight);letter-spacing:var(--uas--typography--title-small-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;display:inline-flex;align-items:center;justify-content:center;flex:none;inline-size:var(--uap--d--ai--link-account-steps--number-size);block-size:var(--uap--d--ai--link-account-steps--number-size);border-radius:50%;background:var(--uap--d--ai--link-account-steps--number-background);color:var(--uas--color--surface)}.steps__label{font-family:var(--uas--typography--label-large-font-family);font-size:var(--uas--typography--label-large-font-size);line-height:var(--uas--typography--label-large-line-height);font-weight:var(--uas--typography--label-large-font-weight);letter-spacing:var(--uas--typography--label-large-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;flex:1;color:var(--uap--d--ai--link-account-steps--label-color)}",""]),i.d(t,["default",0,r])},331(e,t,i){"use strict";i.r(t);var a=i(1601),n=i.n(a),o=i(6314),r=(i.n(o))()(n());r.push([e.id,":host{display:contents}.head{display:flex;flex-direction:column;align-items:flex-start;gap:var(--uas--base--spacing-xs);padding-bottom:var(--uas--base--spacing-md);margin-bottom:var(--uas--base--spacing-md);border-bottom:1px solid var(--uas--color--border)}.head__chips{display:flex;align-items:center;flex-wrap:wrap;gap:var(--uas--base--spacing-2xs)}.head__sentence{font-family:var(--uas--typography--body-medium-font-family);font-size:var(--uas--typography--body-medium-font-size);line-height:var(--uas--typography--body-medium-line-height);font-weight:var(--uas--typography--body-medium-font-weight);letter-spacing:var(--uas--typography--body-medium-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}",""]),i.d(t,["default",0,r])},176(e,t,i){"use strict";i.r(t);var a=i(1601),n=i.n(a),o=i(6314),r=(i.n(o))()(n());r.push([e.id,":host{display:contents}.overlay-layer{position:fixed;inset:0;z-index:160000;pointer-events:none}.overlay-layer ::slotted(*){pointer-events:auto}",""]),i.d(t,["default",0,r])},5111(e,t,i){"use strict";i.r(t);var a=i(1601),n=i.n(a),o=i(6314),r=(i.n(o))()(n());r.push([e.id,":host{display:block}.fields-skeleton{display:flex;flex-direction:column;gap:var(--uas--base--spacing-md)}.fields-skeleton__field{display:flex;flex-direction:column;gap:var(--uas--base--spacing-2xs)}.fields-skeleton__label{font-family:var(--uas--typography--body-small-font-family);font-size:var(--uas--typography--body-small-font-size);line-height:var(--uas--typography--body-small-line-height);font-weight:var(--uas--typography--body-small-font-weight);letter-spacing:var(--uas--typography--body-small-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.fields-skeleton__input{width:100%}",""]),i.d(t,["default",0,r])},6391(e,t,i){"use strict";i.r(t);var a=i(1601),n=i.n(a),o=i(6314),r=(i.n(o))()(n());r.push([e.id,":host{display:contents}.modifier{font-family:var(--uas--typography--body-medium-font-family);font-size:var(--uas--typography--body-medium-font-size);line-height:var(--uas--typography--body-medium-line-height);font-weight:var(--uas--typography--body-medium-font-weight);letter-spacing:var(--uas--typography--body-medium-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-size:inherit;display:flex;align-items:center;gap:var(--uap--d--integrations--block-modifier--gap-custom, var(--uas--base--spacing-xs));--uas--markdown--string-font-weight: 500}",""]),i.d(t,["default",0,r])},762(e,t,i){"use strict";i.r(t);var a=i(1601),n=i.n(a),o=i(6314),r=(i.n(o))()(n());r.push([e.id,":host{display:block}.card{display:flex;align-items:flex-start;gap:var(--uas--base--spacing-sm);font-family:var(--uas--typography--body-medium-font-family);font-size:var(--uas--typography--body-medium-font-size);line-height:var(--uas--typography--body-medium-line-height);font-weight:var(--uas--typography--body-medium-font-weight);letter-spacing:var(--uas--typography--body-medium-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.card__icon{flex:0 0 auto}.card__body{min-inline-size:0;display:flex;flex-direction:column;gap:var(--uas--base--spacing-2xs)}.card__name{font-weight:600;color:var(--uas--typography--color)}.card__description{font-family:var(--uas--typography--body-small-font-family);font-size:var(--uas--typography--body-small-font-size);line-height:var(--uas--typography--body-small-line-height);font-weight:var(--uas--typography--body-small-font-weight);letter-spacing:var(--uas--typography--body-small-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;color:var(--uas--typography--color-secondary)}.card--error{font-family:var(--uas--typography--body-small-font-family);font-size:var(--uas--typography--body-small-font-size);line-height:var(--uas--typography--body-small-line-height);font-weight:var(--uas--typography--body-small-font-weight);letter-spacing:var(--uas--typography--body-small-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;color:var(--uas--color--status-on-warning-container)}",""]),i.d(t,["default",0,r])},8060(e,t,i){"use strict";i.r(t);var a=i(1601),n=i.n(a),o=i(6314),r=(i.n(o))()(n());r.push([e.id,":host{display:inline-block}.tooltip-wrapper{position:relative}",""]),i.d(t,["default",0,r])},5228(e,t,i){"use strict";i.r(t);var a=i(1601),n=i.n(a),o=i(6314),r=(i.n(o))()(n());r.push([e.id,":host{display:block}.stack{display:flex;align-items:center;gap:var(--uas--base--spacing-2xs)}.stack__icon{flex:0 0 auto}.stack__more{font-family:var(--uas--typography--label-small-font-family);font-size:var(--uas--typography--label-small-font-size);line-height:var(--uas--typography--label-small-line-height);font-weight:var(--uas--typography--label-small-font-weight);letter-spacing:var(--uas--typography--label-small-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}",""]),i.d(t,["default",0,r])},8015(e,t,i){"use strict";i.r(t);var a=i(1601),n=i.n(a),o=i(6314),r=(i.n(o))()(n());r.push([e.id,":host{display:contents}.icon{display:flex;align-items:center;justify-content:center;position:relative;box-sizing:border-box;flex-shrink:0;width:var(--uo--d-integrations-icon--custom-wrapper-size, var(--uo--d-integrations-icon--wrapper-size));height:var(--uo--d-integrations-icon--custom-wrapper-size, var(--uo--d-integrations-icon--wrapper-size))}.icon img{width:var(--uo--d-integrations-icon--custom-icon-size, var(--uo--d-integrations-icon--icon-size));height:var(--uo--d-integrations-icon--custom-icon-size, var(--uo--d-integrations-icon--icon-size));object-fit:contain;object-position:center}.icon uas-skeleton{width:var(--uo--d-integrations-icon--custom-icon-size, var(--uo--d-integrations-icon--icon-size));height:var(--uo--d-integrations-icon--custom-icon-size, var(--uo--d-integrations-icon--icon-size))}.icon uas-icon{font-size:var(--uo--d-integrations-icon--custom-icon-size, var(--uo--d-integrations-icon--icon-size))}.icon[variant=flat][size=xs]{--uo--d-integrations-icon--wrapper-size: 16px;--uo--d-integrations-icon--icon-size: 16px}.icon[variant=flat][size=sm]{--uo--d-integrations-icon--wrapper-size: 24px;--uo--d-integrations-icon--icon-size: 24px}.icon[variant=flat][size=md]{--uo--d-integrations-icon--wrapper-size: 32px;--uo--d-integrations-icon--icon-size: 32px}.icon[variant=flat][size=lg]{--uo--d-integrations-icon--wrapper-size: 48px;--uo--d-integrations-icon--icon-size: 48px}.icon[variant=flat][size=xl]{--uo--d-integrations-icon--wrapper-size: 64px;--uo--d-integrations-icon--icon-size: 64px}.icon[variant=circle]{background:#fff;border-radius:50%;border:1px solid var(--uas--color--field-border);box-shadow:var(--uas--base--shadow-sm)}.icon[variant=circle][size=xs]{--uo--d-integrations-icon--wrapper-size: 16px;--uo--d-integrations-icon--icon-size: 9px}.icon[variant=circle][size=sm]{--uo--d-integrations-icon--wrapper-size: 24px;--uo--d-integrations-icon--icon-size: 13px}.icon[variant=circle][size=md]{--uo--d-integrations-icon--wrapper-size: 32px;--uo--d-integrations-icon--icon-size: 16px}.icon[variant=circle][size=lg]{--uo--d-integrations-icon--wrapper-size: 48px;--uo--d-integrations-icon--icon-size: 22px}.icon[variant=circle][size=xl]{--uo--d-integrations-icon--wrapper-size: 64px;--uo--d-integrations-icon--icon-size: 26px}",""]),i.d(t,["default",0,r])},8157(e,t,i){"use strict";i.r(t);var a=i(1601),n=i.n(a),o=i(6314),r=(i.n(o))()(n());r.push([e.id,":host{display:contents}.item{font-family:var(--uas--typography--body-medium-font-family);font-size:var(--uas--typography--body-medium-font-size);line-height:var(--uas--typography--body-medium-line-height);font-weight:var(--uas--typography--body-medium-font-weight);letter-spacing:var(--uas--typography--body-medium-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-size:inherit;display:flex;align-items:center;gap:var(--uap--d--integrations--item--gap-custom, var(--uas--base--spacing-xs));--uas--markdown--string-font-weight: 500}",""]),i.d(t,["default",0,r])},9069(e,t,i){"use strict";i.r(t);var a=i(1601),n=i.n(a),o=i(6314),r=(i.n(o))()(n());r.push([e.id,":host{display:contents}.label{display:inline-flex;flex-wrap:wrap;align-items:center;gap:var(--uas--base--spacing-xs)}.label--error{color:var(--uas--color--status-on-warning-container)}",""]),i.d(t,["default",0,r])},6942(e,t,i){"use strict";i.r(t);var a=i(1601),n=i.n(a),o=i(6314),r=(i.n(o))()(n());r.push([e.id,":host{display:inline-block}.tooltip-wrapper{position:relative}",""]),i.d(t,["default",0,r])},1512(e,t,i){"use strict";i.r(t);var a=i(1601),n=i.n(a),o=i(6314),r=(i.n(o))()(n());r.push([e.id,":host{display:contents}.license{font-family:var(--uas--typography--body-medium-font-family);font-size:var(--uas--typography--body-medium-font-size);line-height:var(--uas--typography--body-medium-line-height);font-weight:var(--uas--typography--body-medium-font-weight);letter-spacing:var(--uas--typography--body-medium-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;--uas--markdown--string-font-weight: 600}.license uas-skeleton{margin-right:5px}.license-summary,.license-text-content,.license-ctas{padding-top:var(--uas--base--spacing-xs)}.license-summary{display:flex;flex-direction:column;gap:var(--uas--base--spacing-2xs)}.license-summary-item{display:flex;align-items:center;gap:5px}.license-summary-item-label{font-weight:600}.license-ctas{--uas--icon--size: .85em}.license-ctas uas-icon{margin-right:3px}",""]),i.d(t,["default",0,r])},9324(e,t,i){"use strict";i.r(t);var a=i(1601),n=i.n(a),o=i(6314),r=(i.n(o))()(n());r.push([e.id,":host{display:contents}.tier{font-family:var(--uas--typography--font--family);display:inline-flex;align-items:center;gap:var(--uas--base--spacing-2xs)}",""]),i.d(t,["default",0,r])},1093(e,t,i){"use strict";i.r(t);var a=i(1601),n=i.n(a),o=i(6314),r=(i.n(o))()(n());r.push([e.id,':host{display:contents}.suggestions{font-family:var(--uas--typography--body-medium-font-family);font-size:var(--uas--typography--body-medium-font-size);line-height:var(--uas--typography--body-medium-line-height);font-weight:var(--uas--typography--body-medium-font-weight);letter-spacing:var(--uas--typography--body-medium-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;display:flex;flex-direction:column;gap:var(--uas--base--spacing-xs)}.suggestions-heading{display:flex;align-items:center;gap:var(--uas--base--spacing-xs);font-weight:600;color:var(--uas--typography--color-secondary);padding:0 var(--uas--base--spacing-lg)}.suggestions-heading-icon{font-size:1.2em}.suggestions-items{min-width:0;position:relative}.suggestions-items-content::-webkit-scrollbar{display:none}.suggestions-items-content::-webkit-scrollbar-track{background:rgba(0,0,0,0)}.suggestions-items-content::-webkit-scrollbar-thumb{background:rgba(0,0,0,0)}.suggestions-items-content{display:grid;grid-auto-flow:column;grid-auto-columns:min-content;gap:var(--uas--base--spacing-xs);overflow-x:scroll;scroll-snap-type:x mandatory;scroll-behavior:smooth;padding:0 var(--uas--base--spacing-lg)}.suggestions-items-content:hover::scroll-button(left),.suggestions-items-content:hover::scroll-button(right){opacity:1}.suggestions-items-content::scroll-button(left),.suggestions-items-content::scroll-button(right){font-size:1em;font-family:"UAS Icons" !important;speak:none;font-style:normal;font-weight:normal;font-variant:normal;text-transform:none;line-height:1;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;position:absolute;top:50%;transform:translateY(-50%);border:1px solid var(--uas--color--border);background:#fff;cursor:pointer;width:var(--uap-ai-entity-suggestions-item-height);height:var(--uap-ai-entity-suggestions-item-height);border-radius:50%;color:var(--uas--typography--color);opacity:0;transition:var(--uas--base--transition)}.suggestions-items-content::scroll-button(left):disabled,.suggestions-items-content::scroll-button(right):disabled{opacity:0}.suggestions-items-content::scroll-button(left):focus,.suggestions-items-content::scroll-button(right):focus{opacity:1}.suggestions-items-content::scroll-button(left):hover,.suggestions-items-content::scroll-button(right):hover{background:var(--uas--typography--color);color:#fff}.suggestions-items-content::scroll-button(left){content:var(--uas--icon--angle-left);left:var(--uas--base--spacing-md);box-shadow:var(--uas--base--shadow-sm),0 0 15px 15px #fff,calc(var(--uas--base--spacing-lg)*-0.7) 0 5px 0 #fff}.suggestions-items-content::scroll-button(right){content:var(--uas--icon--angle-right);right:var(--uas--base--spacing-md);box-shadow:var(--uas--base--shadow-sm),0 0 15px 15px #fff,calc(var(--uas--base--spacing-lg)*.7) 0 5px 0 #fff}.suggestions-item{--uas--button--size-custom-height: var(--uap-ai-entity-suggestions-item-height);--uas--button--custom-border: var(--uas--color--border);scroll-snap-align:center}.suggestions-item--placeholder{display:flex;align-items:center;box-sizing:border-box;gap:var(--uas--base--spacing-xs);height:var(--uap-ai-entity-suggestions-item-height);padding:0 var(--uas--button--size-sm-padding-left);border:1px solid var(--uas--color--border);border-radius:var(--uas--base--border-radius-md)}',""]),i.d(t,["default",0,r])},5174(e,t,i){"use strict";i.r(t);var a=i(1601),n=i.n(a),o=i(6314),r=(i.n(o))()(n());r.push([e.id,":host{display:inline-flex;align-items:center;gap:var(--uas--base--spacing-xs);max-width:320px;padding:var(--uas--base--spacing-2xs) var(--uas--base--spacing-xs);background:#fff;color:var(--uas--typography--color);border:1px solid var(--uas--color--border);border-radius:var(--uas--base--border-radius-sm);box-shadow:var(--uas--base--shadow-lg);transform:rotate(-1.5deg);transform-origin:top left}.preview__icon{flex:0 0 auto}.preview__name{font-family:var(--uas--typography--body-medium-font-family);font-size:var(--uas--typography--body-medium-font-size);line-height:var(--uas--typography--body-medium-line-height);font-weight:var(--uas--typography--body-medium-font-weight);letter-spacing:var(--uas--typography--body-medium-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;flex:0 0 auto;font-weight:600;white-space:nowrap}.preview__sentence{font-family:var(--uas--typography--body-medium-font-family);font-size:var(--uas--typography--body-medium-font-size);line-height:var(--uas--typography--body-medium-line-height);font-weight:var(--uas--typography--body-medium-font-weight);letter-spacing:var(--uas--typography--body-medium-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;flex:1 1 auto;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--uas--typography--color-secondary)}",""]),i.d(t,["default",0,r])},616(e,t,i){"use strict";i.r(t);var a=i(1601),n=i.n(a),o=i(6314),r=(i.n(o))()(n());r.push([e.id,":host{display:contents}.icon{display:inline-flex;align-items:center;justify-content:center;aspect-ratio:1/1;color:var(--uap--d--recipe--block-icon--icon-color);inline-size:var(--uap--d--recipe--block-icon--footprint);block-size:var(--uap--d--recipe--block-icon--footprint);font-size:var(--uap--d--recipe--block-icon--footprint)}.icon[variant=box]{background-color:var(--uap--d--recipe--block-icon--icon-bg);border-radius:var(--uap--d--recipe--block-icon--radius);font-size:var(--uap--d--recipe--block-icon--glyph-boxed)}.icon[size=xs]{--uap--d--recipe--block-icon--footprint: 16px;--uap--d--recipe--block-icon--glyph-boxed: 10px;--uap--d--recipe--block-icon--radius: var(--uas--base--border-radius-xs)}.icon[size=sm]{--uap--d--recipe--block-icon--footprint: 24px;--uap--d--recipe--block-icon--glyph-boxed: 16px;--uap--d--recipe--block-icon--radius: var(--uas--base--border-radius-sm)}.icon[size=md]{--uap--d--recipe--block-icon--footprint: 32px;--uap--d--recipe--block-icon--glyph-boxed: 20px;--uap--d--recipe--block-icon--radius: var(--uas--base--border-radius-md)}.icon[size=lg]{--uap--d--recipe--block-icon--footprint: 64px;--uap--d--recipe--block-icon--glyph-boxed: 40px;--uap--d--recipe--block-icon--radius: var(--uas--base--border-radius-lg)}",""]),i.d(t,["default",0,r])},2789(e,t,i){"use strict";i.r(t);var a=i(1601),n=i.n(a),o=i(6314),r=(i.n(o))()(n());r.push([e.id,":host{display:block}.marker{display:flex;flex-direction:column;gap:var(--uas--base--spacing-2xs);min-inline-size:0}.marker__row{font-family:var(--uas--typography--title-medium-font-family);font-size:var(--uas--typography--title-medium-font-size);line-height:var(--uas--typography--title-medium-line-height);font-weight:var(--uas--typography--title-medium-font-weight);letter-spacing:var(--uas--typography--title-medium-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;display:flex;align-items:center;gap:var(--uas--base--spacing-xs);color:var(--uas--typography--color)}.marker__icon{flex:0 0 auto}.marker__action::slotted(*){flex:0 0 auto;margin-inline-start:auto}.marker__sentence{font-family:var(--uas--typography--body-medium-font-family);font-size:var(--uas--typography--body-medium-font-size);line-height:var(--uas--typography--body-medium-line-height);font-weight:var(--uas--typography--body-medium-font-weight);letter-spacing:var(--uas--typography--body-medium-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;color:rgba(0,0,0,.5)}.marker__contents{font-family:var(--uas--typography--body-small-font-family);font-size:var(--uas--typography--body-small-font-size);line-height:var(--uas--typography--body-small-line-height);font-weight:var(--uas--typography--body-small-font-weight);letter-spacing:var(--uas--typography--body-small-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;display:flex;align-items:center;gap:var(--uas--base--spacing-xs);margin-block-start:var(--uas--base--spacing-2xs);padding-block-start:var(--uas--base--spacing-xs);border-block-start:1px solid color-mix(in srgb, currentColor 15%, transparent);color:var(--uas--typography--color-secondary)}.marker__contents--empty{font-style:italic}.marker__integrations{flex:0 0 auto}",""]),i.d(t,["default",0,r])},7458(e,t,i){"use strict";i.r(t);var a=i(1601),n=i.n(a),o=i(6314),r=(i.n(o))()(n());r.push([e.id,":host{display:inline-flex;align-items:center;gap:var(--uas--base--spacing-xs);max-width:320px;padding:var(--uas--base--spacing-2xs) var(--uas--base--spacing-xs);background:#fff;color:var(--uas--typography--color);border:1px solid var(--uas--color--border);border-radius:var(--uas--base--border-radius-sm);box-shadow:var(--uas--base--shadow-lg);transform:rotate(-1.5deg);transform-origin:top left}.preview__icon{flex:0 0 auto}.preview__sentence{font-family:var(--uas--typography--body-small-font-family);font-size:var(--uas--typography--body-small-font-size);line-height:var(--uas--typography--body-small-line-height);font-weight:var(--uas--typography--body-small-font-weight);letter-spacing:var(--uas--typography--body-small-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;flex:1 1 auto;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.preview__custom-name{font-family:var(--uas--typography--body-small-font-family);font-size:var(--uas--typography--body-small-font-size);line-height:var(--uas--typography--body-small-line-height);font-weight:var(--uas--typography--body-small-font-weight);letter-spacing:var(--uas--typography--body-small-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-weight:600;flex:1 1 auto;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}",""]),i.d(t,["default",0,r])},5206(e,t,i){"use strict";i.r(t);var a=i(1601),n=i.n(a),o=i(6314),r=(i.n(o))()(n());r.push([e.id,":host{display:contents}.label{display:inline}.label--error{color:var(--uas--color--status-on-warning-container)}",""]),i.d(t,["default",0,r])},9530(e,t,i){"use strict";i.r(t);var a=i(1601),n=i.n(a),o=i(6314),r=(i.n(o))()(n());r.push([e.id,":host{display:contents}.label{display:inline-flex;flex-wrap:wrap;align-items:center;gap:var(--uas--base--spacing-xs)}.label--error{color:var(--uas--color--status-on-warning-container)}",""]),i.d(t,["default",0,r])},7188(e,t,i){"use strict";i.r(t);var a=i(1601),n=i.n(a),o=i(6314),r=(i.n(o))()(n());r.push([e.id,":host{display:contents}.label,uas-chip{align-self:flex-start}.label{display:inline-flex;align-items:center;padding:var(--uas--base--spacing-2xs) var(--uas--base--spacing-xs);background-color:#fff;border:1px solid var(--uas--color--field-border);border-radius:var(--uas--base--border-radius-md);font-family:var(--uas--typography--body-medium-font-family);font-size:var(--uas--typography--body-medium-font-size);line-height:var(--uas--typography--body-medium-line-height);font-weight:var(--uas--typography--body-medium-font-weight);letter-spacing:var(--uas--typography--body-medium-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-weight:500;color:var(--uas--typography--color-secondary)}",""]),i.d(t,["default",0,r])},8299(e,t,i){"use strict";i.r(t);var a=i(1601),n=i.n(a),o=i(6314),r=(i.n(o))()(n());r.push([e.id,':host{display:flex}uas-canvas-viewport{--uas--canvas-viewport--custom-focus-outline: none;flex:1 1 auto;min-inline-size:0}.stage{--uap--d--recipe-canvas--item-width: 400px;--uap--d--recipe-canvas--node-gap: 56px;--uap--d--recipe-canvas--branch-gap: 56px;--uap--d--recipe-canvas--merge-stub: 20px;--uap--d--recipe-canvas--frame-gutter: var( --uas--base--spacing-2xl );position:relative;display:flex;flex-direction:column;align-items:center;gap:var(--uap--d--recipe-canvas--node-gap);padding:var(--uap--d--recipe-canvas--node-gap);inline-size:max-content;pointer-events:none;user-select:text}.stage--empty{padding:0}.stage__connectors{position:absolute;inset:0;z-index:5}.stage__section{display:flex;flex-direction:column;align-items:center;align-self:stretch;gap:var(--uap--d--recipe-canvas--node-gap);min-inline-size:var(--uap--d--recipe-canvas--item-width)}.stage__section--deferred{padding-block-start:var(--uap--d--recipe-canvas--node-gap);border-block-start:1px solid var(--uas--color--border)}.stage__deferred-list{display:flex;flex-direction:column;align-items:center;gap:var(--uap--d--recipe-canvas--node-gap)}.stage__deferred{display:flex;flex-direction:column;align-items:center;gap:var(--uas--base--spacing-xs)}.stage__deferred>.stage__node{border-radius:var(--uas--base--border-radius-md);outline:2px solid rgba(0,0,0,0);outline-offset:var(--uas--base--spacing-xs);transition:outline-color var(--uas--base--transition)}.stage__deferred--highlighted>.stage__node{outline-color:var(--uas--color--primary)}.stage__marker{box-sizing:border-box;padding:var(--uas--base--spacing-md);border:1px dashed color-mix(in srgb, var(--uap--d--recipe-canvas--marker-ink, var(--uas--color--border)) 30%, transparent);border-radius:var(--uas--base--border-radius-md);background:color-mix(in srgb, var(--uap--d--recipe-canvas--marker-color, var(--uas--color--surface)) 25%, var(--uas--color--surface));box-shadow:var(--uas--base--shadow-md)}.stage__heading{font-family:var(--uas--typography--label-medium-font-family);font-size:var(--uas--typography--label-medium-font-size);line-height:var(--uas--typography--label-medium-line-height);font-weight:var(--uas--typography--label-medium-font-weight);letter-spacing:var(--uas--typography--label-medium-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;align-self:flex-start;margin:0;text-transform:uppercase;font-size:11px;font-weight:600;letter-spacing:.04em;color:var(--uas--typography--color-secondary)}.stage__triggers{position:relative;display:flex;align-items:flex-start;gap:var(--uap--d--recipe-canvas--branch-gap)}.stage__seam{position:relative;isolation:isolate;z-index:6;align-self:stretch;box-sizing:content-box;min-block-size:var(--uas--base--spacing-lg);margin-inline:calc(-1*var(--uap--d--recipe-canvas--node-gap));padding:var(--uas--base--spacing-lg) var(--uap--d--recipe-canvas--node-gap)}.stage__seam::before{content:"";position:absolute;inset-block:0;inset-inline:calc(-1*100vw/var(--uas--canvas-viewport--zoom, 1));z-index:-1;background:var(--uap--d--recipe-canvas--seam-fill);border-block:1px solid var(--uap--d--recipe-canvas--seam-rule);pointer-events:none}.stage__flow{display:flex;flex-direction:column;align-items:center;gap:var(--uap--d--recipe-canvas--node-gap)}.stage__lane{position:relative;display:flex;flex-direction:column;align-items:center;gap:var(--uap--d--recipe-canvas--node-gap);min-inline-size:var(--uap--d--recipe-canvas--item-width)}.stage__lane[data-uas-drop-allowed=true]{outline:1px dashed var(--uas--color--border);outline-offset:-1px;border-radius:var(--uas--base--border-radius-sm);background:color-mix(in srgb, var(--uas--color--primary) 4%, transparent)}.stage__lane-empty{display:grid;place-items:center;box-sizing:border-box;inline-size:100%;min-block-size:76px;padding:var(--uas--base--spacing-xs) var(--uas--base--spacing-sm);border:1px dashed var(--uas--color--border);border-radius:var(--uas--base--border-radius-md);background:color-mix(in srgb, var(--uas--color--surface) 50%, transparent);pointer-events:auto}.stage__lane-empty-label{font-family:var(--uas--typography--body-small-font-family);font-size:var(--uas--typography--body-small-font-size);line-height:var(--uas--typography--body-small-line-height);font-weight:var(--uas--typography--body-small-font-weight);letter-spacing:var(--uas--typography--body-small-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;grid-area:1/1;font-style:italic;color:var(--uas--typography--color-tertiary);transition:opacity var(--uas--base--transition)}.stage__lane-empty-tail{grid-area:1/1;opacity:0;transition:opacity var(--uas--base--transition)}uas-canvas-viewport:not([dragging]) .stage__lane-empty:hover .stage__lane-empty-tail,.stage__lane-empty-tail:focus-within{opacity:1}uas-canvas-viewport:not([dragging]) .stage__lane-empty:has(.stage__lane-empty-tail):hover .stage__lane-empty-label,.stage__lane-empty:focus-within .stage__lane-empty-label{opacity:0}.stage__node{position:relative;z-index:6}.stage__node--item{inline-size:var(--uap--d--recipe-canvas--item-width);pointer-events:auto}.stage__node--marker{inline-size:var(--uap--d--recipe-canvas--item-width);pointer-events:auto}.stage__node--block{display:flex;flex-direction:column;align-items:center;min-inline-size:var(--uap--d--recipe-canvas--item-width)}.stage__node--fan-out{margin-block-end:var(--uap--d--recipe-canvas--merge-stub)}.stage__node--frame{align-items:stretch}.stage__node--frame>.stage__block-head{contain:inline-size;inline-size:auto;min-inline-size:calc(var(--uap--d--recipe-canvas--item-width) + 2*var(--uap--d--recipe-canvas--frame-gutter))}.stage__block-head{inline-size:var(--uap--d--recipe-canvas--item-width);pointer-events:auto}.stage__branches{display:flex;align-items:flex-start;gap:var(--uap--d--recipe-canvas--branch-gap);padding:var(--uap--d--recipe-canvas--node-gap) 0}.stage__branch{display:flex;flex-direction:column;align-items:center;gap:var(--uap--d--recipe-canvas--node-gap);min-inline-size:var(--uap--d--recipe-canvas--item-width)}.stage__branch-label{display:flex;align-items:center;gap:var(--uas--base--spacing-2xs);padding:4px 12px;border-radius:999px;background:var(--uap--d--recipe-canvas--branch-color, transparent);pointer-events:auto}.stage__branch-name{font-family:var(--uas--typography--label-small-font-family);font-size:var(--uas--typography--label-small-font-size);line-height:var(--uas--typography--label-small-line-height);font-weight:var(--uas--typography--label-small-font-weight);letter-spacing:var(--uas--typography--label-small-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-transform:uppercase;font-size:11px;font-weight:600;letter-spacing:.04em;color:var(--uap--d--recipe-canvas--branch-ink, var(--uas--typography--color))}.stage__frame{display:flex;flex-direction:column;align-items:center;gap:var(--uap--d--recipe-canvas--node-gap);box-sizing:border-box;min-inline-size:calc(var(--uap--d--recipe-canvas--item-width) + 2*var(--uap--d--recipe-canvas--frame-gutter));padding:var(--uap--d--recipe-canvas--node-gap) var(--uap--d--recipe-canvas--frame-gutter) calc(var(--uap--d--recipe-canvas--node-gap) + var(--uap--d--recipe-canvas--merge-stub));border:1px solid var(--uas--color--border);border-block-start:0;border-end-start-radius:var(--uas--base--border-radius-md);border-end-end-radius:var(--uas--base--border-radius-md)}',""]),i.d(t,["default",0,r])},964(e,t,i){"use strict";i.r(t);var a=i(1601),n=i.n(a),o=i(6314),r=(i.n(o))()(n());r.push([e.id,":host{display:inline-flex;align-items:center;gap:var(--uas--base--spacing-xs);max-width:320px;padding:var(--uas--base--spacing-2xs) var(--uas--base--spacing-xs);background:#fff;color:var(--uas--typography--color);border:1px solid var(--uas--color--border);border-radius:var(--uas--base--border-radius-sm);box-shadow:var(--uas--base--shadow-lg);transform:rotate(-1.5deg);transform-origin:top left}.preview__icon{flex:0 0 auto}.preview__sentence{font-family:var(--uas--typography--body-medium-font-family);font-size:var(--uas--typography--body-medium-font-size);line-height:var(--uas--typography--body-medium-line-height);font-weight:var(--uas--typography--body-medium-font-weight);letter-spacing:var(--uas--typography--body-medium-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;flex:1 1 auto;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.preview__custom-name{font-family:var(--uas--typography--body-medium-font-family);font-size:var(--uas--typography--body-medium-font-size);line-height:var(--uas--typography--body-medium-line-height);font-weight:var(--uas--typography--body-medium-font-weight);letter-spacing:var(--uas--typography--body-medium-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-weight:600;flex:1 1 auto;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}",""]),i.d(t,["default",0,r])},9913(e,t,i){"use strict";i.r(t);var a=i(1601),n=i.n(a),o=i(6314),r=(i.n(o))()(n());r.push([e.id,".lock-overlay{position:fixed;inset:0;z-index:5;cursor:not-allowed}.locked-recipe-dialog__text{display:block;margin-bottom:var(--uas--base--spacing-md)}.locked-recipe-dialog__view-log{margin-bottom:var(--uas--base--spacing-md)}.locked-recipe-dialog__actions{display:flex;flex-wrap:wrap;gap:var(--uas--base--spacing-sm)}",""]),i.d(t,["default",0,r])},2438(e,t,i){"use strict";i.r(t);var a=i(1601),n=i.n(a),o=i(6314),r=(i.n(o))()(n());r.push([e.id,":host{display:block}.node-label{font-family:var(--uas--typography--body-medium-font-family);font-size:var(--uas--typography--body-medium-font-size);line-height:var(--uas--typography--body-medium-line-height);font-weight:var(--uas--typography--body-medium-font-weight);letter-spacing:var(--uas--typography--body-medium-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;display:flex;align-items:flex-start;gap:var(--uas--base--spacing-xs);min-width:0}.node-label__icon{flex:0 0 auto;display:flex;align-items:center;height:1lh}.node-label__text{flex:1 1 auto;min-width:0;display:flex;flex-wrap:wrap;align-items:baseline;column-gap:var(--uas--base--spacing-xs)}.node-label__block-name{font-weight:500}",""]),i.d(t,["default",0,r])},3637(e,t,i){"use strict";i.r(t);var a=i(1601),n=i.n(a),o=i(6314),r=(i.n(o))()(n());r.push([e.id,":host{display:inline}.shortcode{font-family:var(--uas--typography--label-small-font-family);font-size:var(--uas--typography--label-small-font-size);line-height:var(--uas--typography--label-small-line-height);font-weight:var(--uas--typography--label-small-font-weight);letter-spacing:var(--uas--typography--label-small-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;display:inline-block;max-width:100%;vertical-align:middle;line-height:1;padding:2px var(--uas--base--spacing-xs);border:1px solid var(--uas--color--border);border-radius:var(--uas--base--border-radius-sm);background:var(--uas--color--status-neutral-container)}.shortcode[size=sm]{font-size:calc(var(--uas--typography--label-small-font-size)*.92)}.shortcode[size=xs]{font-size:calc(var(--uas--typography--label-small-font-size)*.85);padding:1px var(--uas--base--spacing-2xs)}.shortcode__icon{margin-right:var(--uas--base--spacing-2xs);color:var(--uas--typography--color-tertiary);vertical-align:middle}.shortcode__label{font-family:monospace;overflow-wrap:anywhere}.shortcode__copy{margin-left:var(--uas--base--spacing-2xs);vertical-align:middle;--uas--button--size-custom-height: auto;--uas--button--custom-min-width: 0;--uas--button--size-custom-padding-top: 0;--uas--button--size-custom-padding-bottom: 0;--uas--button--size-custom-padding-left: var( --uas--base--spacing-2xs );--uas--button--size-custom-padding-right: var( --uas--base--spacing-2xs )}.shortcode__copy-icon--copied{color:var(--uas--color--status-on-success-container)}",""]),i.d(t,["default",0,r])},1776(e,t,i){"use strict";i.r(t);var a=i(1601),n=i.n(a),o=i(6314),r=(i.n(o))()(n());r.push([e.id,':host{display:inline;color:inherit;font:inherit}.sentence{display:inline;white-space:normal;word-wrap:break-word;overflow-wrap:break-word}.sentence[size=xs]{font-size:var(--uas--typography--label-small-font-size)}.sentence--loading{display:inline-flex;align-items:center}.sentence-plain{display:inline;white-space:normal}.sentence-pill{display:inline;font-weight:600;-webkit-box-decoration-break:clone;box-decoration-break:clone}.sentence-pill--unfilled{color:var(--uas--color--primary, #0790e8)}.sentence-pill-label{font-weight:500;color:var(--uas--typography--color-secondary)}.sentence-pill-label::after{content:" "}.sentence-pill-value{display:inline;white-space:normal}.sentence-empty{font-style:italic;opacity:.7}uap-d-recipe-token{margin:0 1px}',""]),i.d(t,["default",0,r])},9968(e,t,i){"use strict";i.r(t);var a=i(1601),n=i.n(a),o=i(6314),r=(i.n(o))()(n());r.push([e.id,":host{display:block}.search{display:flex;align-items:center;gap:var(--uas--base--spacing-xs);padding:var(--uas--base--spacing-xs) 0}.search__icon{flex-shrink:0;color:var(--uas--typography--color-tertiary);font-size:.85em}.search__input{flex:1 1 auto;min-inline-size:0;border:none;background:rgba(0,0,0,0);outline:none;font-family:var(--uas--typography--body-medium-font-family);font-size:var(--uas--typography--body-medium-font-size);line-height:var(--uas--typography--body-medium-line-height);font-weight:var(--uas--typography--body-medium-font-weight);letter-spacing:var(--uas--typography--body-medium-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;color:var(--uas--typography--color)}.search__input::placeholder{color:var(--uas--typography--color-tertiary)}",""]),i.d(t,["default",0,r])},2730(e,t,i){"use strict";i.r(t);var a=i(1601),n=i.n(a),o=i(6314),r=(i.n(o))()(n());r.push([e.id,":host{display:block}.row{appearance:none;margin:0;inline-size:100%;border:none;background:rgba(0,0,0,0);text-align:start;cursor:pointer;display:flex;align-items:center;gap:var(--uas--base--spacing-xs);padding:var(--uas--base--spacing-xs) var(--uas--base--spacing-sm);font-family:var(--uas--typography--body-small-font-family);font-size:var(--uas--typography--body-small-font-size);line-height:var(--uas--typography--body-small-line-height);font-weight:var(--uas--typography--body-small-font-weight);letter-spacing:var(--uas--typography--body-small-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;color:var(--uas--typography--color);transition:background-color 150ms ease-in-out}.row:hover{background-color:var(--uas--color--border)}.row:focus-visible{outline:2px solid var(--uas--color--primary);outline-offset:-2px}.row__name{flex:0 1 auto;min-inline-size:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.row__tags{flex-shrink:0;display:inline-flex;align-items:center;gap:var(--uas--base--spacing-2xs)}.row__reason{flex-basis:100%;display:flex;align-items:baseline;gap:var(--uas--base--spacing-2xs);font-family:var(--uas--typography--body-small-font-family);font-size:var(--uas--typography--body-small-font-size);line-height:var(--uas--typography--body-small-line-height);font-weight:var(--uas--typography--body-small-font-weight);letter-spacing:var(--uas--typography--body-small-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;color:var(--uas--typography--color-secondary)}.row--unavailable{flex-wrap:wrap;cursor:not-allowed;color:var(--uas--typography--color-tertiary)}.row--unavailable:hover{background-color:rgba(0,0,0,0)}",""]),i.d(t,["default",0,r])},2170(e,t,i){"use strict";i.r(t);var a=i(1601),n=i.n(a),o=i(6314),r=(i.n(o))()(n());r.push([e.id,':host{display:flex}.token-selector{display:flex;flex-direction:column;flex:1 1 auto;min-block-size:0;min-inline-size:0;box-sizing:border-box;background:var(--uas--color--surface);border-radius:var(--uas--base--border-radius-md)}.token-selector__header{flex-shrink:0;display:flex;align-items:center;gap:var(--uas--base--spacing-sm);padding:0 var(--uas--base--spacing-sm);border-top-left-radius:var(--uas--base--border-radius-md);border-top-right-radius:var(--uas--base--border-radius-md)}.token-selector__header:focus-within{box-shadow:0 0 0 2px inset color-mix(in srgb, var(--uas--color--primary) 50%, transparent)}.token-selector__search{flex:1 1 auto;min-inline-size:0}.token-selector__filter{flex-shrink:0;display:inline-flex;align-items:center;gap:var(--uas--base--spacing-2xs);white-space:nowrap;font-family:var(--uas--typography--body-small-font-family);font-size:var(--uas--typography--body-small-font-size);line-height:var(--uas--typography--body-small-line-height);font-weight:var(--uas--typography--body-small-font-weight);letter-spacing:var(--uas--typography--body-small-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;color:var(--uas--typography--color-secondary)}.token-selector__filter-control{display:inline-flex;align-items:center;gap:var(--uas--base--spacing-2xs);cursor:pointer}.token-selector__filter-switch{appearance:none;margin:0;flex-shrink:0;position:relative;inline-size:28px;block-size:16px;border:1px solid var(--uas--color--field-border);border-radius:999px;background:var(--uas--color--status-neutral-container);cursor:pointer;transition:background 120ms ease,border-color 120ms ease}.token-selector__filter-switch::before{content:"";position:absolute;inset-block-start:50%;inset-inline-start:2px;inline-size:10px;block-size:10px;border-radius:50%;background:var(--uas--color--surface);box-shadow:var(--uas--base--shadow-sm);transform:translateY(-50%);transition:inset-inline-start 120ms ease}.token-selector__filter-switch:checked{background:var(--uas--color--primary);border-color:var(--uas--color--primary)}.token-selector__filter-switch:checked::before{inset-inline-start:calc(100% - 12px)}.token-selector__filter-switch:focus-visible{outline:2px solid var(--uas--color--primary);outline-offset:1px}.token-selector__filter-help{display:inline-flex;align-items:center;color:var(--uas--typography--color-tertiary);cursor:help}.token-selector__tabs{flex-shrink:0;--uas--tabs--custom-min-height: 0;--uas--tabs--tab-custom-padding-inline: 0}.token-selector__body{flex:1 1 auto;min-block-size:0;overflow-y:auto}.token-selector__accordion{display:block;--uas--accordion--custom-border-radius: 0;--uas--accordion--custom-background: transparent;--uas--accordion--custom-content-background: var(--uas--color--status-neutral-container);--uas--accordion--custom-border: none;--uas--accordion--custom-border-color: var(--uas--color--border);--uas--accordion--custom-body-padding: 0}.token-selector__loading{display:flex;flex-direction:column;gap:var(--uas--base--spacing-sm);padding:var(--uas--base--spacing-sm)}.section-header{display:flex;align-items:center;gap:var(--uas--base--spacing-xs);min-inline-size:0}.section-header__icon{flex-shrink:0}.section-header__title{font-family:var(--uas--typography--label-medium-font-family);font-size:var(--uas--typography--label-medium-font-size);line-height:var(--uas--typography--label-medium-line-height);font-weight:var(--uas--typography--label-medium-font-weight);letter-spacing:var(--uas--typography--label-medium-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;color:var(--uas--typography--color);min-inline-size:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.section-header__title-sentence{color:var(--uas--typography--color);min-inline-size:0;overflow:hidden}.section__rows{display:flex;flex-direction:column}.section__rows uap-d-recipe-token-selector-token-row:not(:last-child){border-block-end:1px solid var(--uas--color--border)}.section__source-off-notice{display:block;margin-block-end:var(--uas--base--spacing-xs);--uas--alert--custom-spacing-md: var(--uas--base--spacing-xs) var(--uas--base--spacing-sm);--uas--alert--custom-spacing-sm: var(--uas--base--spacing-xs) var(--uas--base--spacing-sm);--uas--alert--custom-spacing-xs: var(--uas--base--spacing-xs) var(--uas--base--spacing-sm)}',""]),i.d(t,["default",0,r])},8720(e,t,i){"use strict";i.r(t);var a=i(1601),n=i.n(a),o=i(6314),r=(i.n(o))()(n());r.push([e.id,":host{display:block;border:0;padding:0;overflow:visible;background:rgba(0,0,0,0)}:host:not(:popover-open){display:none}.popover{display:flex;flex-direction:column;inline-size:var(--uap--d--recipe--token-selector--width);max-inline-size:calc(100vw - var(--uas--base--spacing-lg));max-block-size:min(420px,70vh);background:var(--uas--color--surface);border:1px solid var(--uas--color--border);border-radius:var(--uas--base--border-radius-md);box-shadow:var(--uas--base--shadow-darker-xl);overflow:hidden}.popover uap-d-recipe-token-selector-panel{flex:1 1 auto;min-block-size:0}",""]),i.d(t,["default",0,r])},8312(e,t,i){"use strict";i.r(t);var a=i(1601),n=i.n(a),o=i(6314),r=(i.n(o))()(n());r.push([e.id,":host{display:inline-flex;vertical-align:middle}.token{font-family:var(--uas--typography--body-medium-font-family);font-size:var(--uas--typography--body-medium-font-size);line-height:var(--uas--typography--body-medium-line-height);font-weight:var(--uas--typography--body-medium-font-weight);letter-spacing:var(--uas--typography--body-medium-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;appearance:none;margin:0;display:inline-flex;align-items:center;gap:var(--uas--base--spacing-xs);background:var(--uas--color--status-neutral-container);color:var(--uas--typography--color);border:1px solid var(--uas--color--border);padding:var(--uas--base--spacing-2xs) var(--uas--base--spacing-xs);border-radius:999px;line-height:1;white-space:normal;text-decoration:none;box-sizing:border-box;max-width:100%;transition:background-color var(--uas--base--transition),box-shadow var(--uas--base--transition)}.token[size=sm]{padding:calc(var(--uas--base--spacing-2xs)/2) var(--uas--base--spacing-xs)}.token[size=xs]{gap:var(--uas--base--spacing-2xs);padding:3px var(--uas--base--spacing-xs)}.token--unknown{background:var(--uas--color--status-neutral-container);color:var(--uas--typography--color-secondary)}.token--source-off{background:var(--uas--color--status-warning-container);border-color:var(--uas--color--status-warning-container);color:var(--uas--color--status-on-warning-container)}.token__status-icon{flex-shrink:0;line-height:0;display:inline-flex;align-items:center;font-size:13px}.token[size=xs] .token__status-icon{font-size:10px}.token:is(button){cursor:pointer}.token:is(button):hover{background-color:rgba(0,0,0,.04)}.token:is(button):focus-visible{outline:none;box-shadow:0 0 0 2px var(--uas--color--primary)}.token__tooltip{display:inline-flex}.token__target{display:inline-flex;align-items:center;gap:var(--uas--base--spacing-xs)}.token[size=xs] .token__target{gap:var(--uas--base--spacing-2xs)}.token__icon{flex-shrink:0;line-height:0;display:inline-flex;align-items:center;justify-content:center;--uo--d-integrations-icon--custom-wrapper-size: 13px;--uo--d-integrations-icon--custom-icon-size: 13px;font-size:13px}.token[size=xs] .token__icon{--uo--d-integrations-icon--custom-wrapper-size: 10px;--uo--d-integrations-icon--custom-icon-size: 10px;font-size:10px}.token__name{font-weight:500;display:inline-flex;align-items:center;flex-wrap:wrap;white-space:pre-wrap;overflow:hidden;text-overflow:ellipsis}.token[size=sm] .token__name{font-family:var(--uas--typography--body-small-font-family);font-size:var(--uas--typography--body-small-font-size);line-height:var(--uas--typography--body-small-line-height);font-weight:var(--uas--typography--body-small-font-weight);letter-spacing:var(--uas--typography--body-small-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-weight:600}.token[size=xs] .token__name{font-family:var(--uas--typography--label-small-font-family);font-size:var(--uas--typography--label-small-font-size);line-height:var(--uas--typography--label-small-line-height);font-weight:var(--uas--typography--label-small-font-weight);letter-spacing:var(--uas--typography--label-small-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-size:calc(var(--uas--typography--label-small-font-size)*.9);line-height:1;font-weight:600}.token__nested{flex-shrink:0}",""]),i.d(t,["default",0,r])},7554(e,t,i){"use strict";i.r(t);var a=i(1601),n=i.n(a),o=i(6314),r=(i.n(o))()(n());r.push([e.id,":host{display:inline-flex}.switcher{display:inline-flex;align-items:center;box-sizing:border-box;padding:var(--uap--d--recipe--view-switcher--track-padding);border-radius:var(--uas--base--border-radius-md);background:var(--uas--color--status-neutral-container)}.switcher__option{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;inline-size:var(--uap--d--recipe--view-switcher--option-size);block-size:var(--uap--d--recipe--view-switcher--option-size);padding:0;border:0;border-radius:var(--uas--base--border-radius-sm);background:rgba(0,0,0,0);color:var(--uas--typography--color-secondary);font-size:var(--uap--d--recipe--view-switcher--icon-size);line-height:0;cursor:pointer}.switcher__option:hover{color:var(--uas--typography--color)}.switcher__option:focus-visible{outline:2px solid var(--uas--color--primary);outline-offset:1px}.switcher__option[aria-pressed=true]{background:var(--uas--color--surface);box-shadow:var(--uas--base--shadow-sm);color:var(--uas--color--primary);cursor:default}uas-tooltip{display:inline-flex}",""]),i.d(t,["default",0,r])},6389(e,t,i){"use strict";i.r(t);var a=i(1601),n=i.n(a),o=i(6314),r=(i.n(o))()(n());r.push([e.id,":host{display:block}.item{font-family:var(--uas--typography--body-medium-font-family);font-size:var(--uas--typography--body-medium-font-size);line-height:var(--uas--typography--body-medium-line-height);font-weight:var(--uas--typography--body-medium-font-weight);letter-spacing:var(--uas--typography--body-medium-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;border-radius:var(--uas--base--border-radius-md);border:1px solid var(--uas--color--border);border-bottom-width:3px;background:#fff;display:flex;flex-direction:column;height:100%}.item-icon{border-top-left-radius:var(--uas--base--border-radius-md);border-top-right-radius:var(--uas--base--border-radius-md);aspect-ratio:2/1;display:flex;align-items:center;justify-content:center;background-color:color(from var(--uas--color--primary) srgb r g b/0.1);color:var(--uas--color--primary)}.item-icon uas-icon{font-size:45px}.item-content{padding:var(--uas--base--spacing-lg);display:flex;flex-direction:column;gap:var(--uas--base--spacing-sm);flex:1 1 auto}.item-content-name{font-family:var(--uas--typography--title-large-font-family);font-size:var(--uas--typography--title-large-font-size);line-height:var(--uas--typography--title-large-line-height);font-weight:var(--uas--typography--title-large-font-weight);letter-spacing:var(--uas--typography--title-large-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.item-content-details{font-family:var(--uas--typography--body-small-font-family);font-size:var(--uas--typography--body-small-font-size);line-height:var(--uas--typography--body-small-line-height);font-weight:var(--uas--typography--body-small-font-weight);letter-spacing:var(--uas--typography--body-small-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;color:var(--uas--typography--color-secondary);table-layout:fixed;border-collapse:collapse}.item-content-detail-label{font-weight:500;padding-left:0;padding-right:var(--uas--base--spacing-xs);width:0px;white-space:nowrap}.item-content-developer{font-family:var(--uas--typography--body-small-font-family);font-size:var(--uas--typography--body-small-font-size);line-height:var(--uas--typography--body-small-line-height);font-weight:var(--uas--typography--body-small-font-weight);letter-spacing:var(--uas--typography--body-small-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.item-content-developer a{color:var(--uas--typography--color-link);font-weight:600;text-decoration:none}.item-content-developer a uas-icon[code=arrow-up-right-from-square]{font-size:.85em;margin-left:3px}.item-ctas{padding:var(--uas--base--spacing-md) var(--uas--base--spacing-lg);display:flex;gap:var(--uas--base--spacing-xs);border-top:1px solid var(--uas--color--border)}.item-ctas uas-button uas-icon{font-size:.9em;margin-right:2px}.item-ctas uas-button uas-icon[id=arrow-up-right-from-square]{font-size:.85em;margin-left:2px;margin-right:0}",""]),i.d(t,["default",0,r])},1327(e,t,i){"use strict";i.r(t);var a=i(1601),n=i.n(a),o=i(6314),r=(i.n(o))()(n());r.push([e.id,":host{display:block}.item{font-family:var(--uas--typography--body-medium-font-family);font-size:var(--uas--typography--body-medium-font-size);line-height:var(--uas--typography--body-medium-line-height);font-weight:var(--uas--typography--body-medium-font-weight);letter-spacing:var(--uas--typography--body-medium-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;border-radius:var(--uas--base--border-radius-md);border:1px solid var(--uas--color--border);border-bottom-width:3px;background:#fff}.item-icon{border-top-left-radius:var(--uas--base--border-radius-md);border-top-right-radius:var(--uas--base--border-radius-md);aspect-ratio:2/1;display:flex;align-items:center;justify-content:center;background-color:color(from var(--uas--color--placeholder-gray) srgb r g b/0.5)}.item-icon uas-icon{font-size:45px}.item-content{padding:var(--uas--base--spacing-lg);display:flex;flex-direction:column;gap:var(--uas--base--spacing-sm)}.item-content-name{font-family:var(--uas--typography--title-large-font-family);font-size:var(--uas--typography--title-large-font-size);line-height:var(--uas--typography--title-large-line-height);font-weight:var(--uas--typography--title-large-font-weight);letter-spacing:var(--uas--typography--title-large-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.item-content-developer{font-family:var(--uas--typography--body-medium-font-family);font-size:var(--uas--typography--body-medium-font-size);line-height:var(--uas--typography--body-medium-line-height);font-weight:var(--uas--typography--body-medium-font-weight);letter-spacing:var(--uas--typography--body-medium-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.item-content-developer a{color:var(--uas--typography--color-link);font-weight:600;text-decoration:none}.item-content-details{font-family:var(--uas--typography--body-small-font-family);font-size:var(--uas--typography--body-small-font-size);line-height:var(--uas--typography--body-small-line-height);font-weight:var(--uas--typography--body-small-font-weight);letter-spacing:var(--uas--typography--body-small-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;display:flex;flex-direction:column}.item-ctas{padding:var(--uas--base--spacing-md) var(--uas--base--spacing-lg);display:flex;gap:var(--uas--base--spacing-xs);border-top:1px solid var(--uas--color--border)}.item-ctas uas-button uas-icon{font-size:.9em;margin-right:2px}",""]),i.d(t,["default",0,r])},4361(e,t,i){"use strict";i.r(t);var a=i(1601),n=i.n(a),o=i(6314),r=(i.n(o))()(n());r.push([e.id,":host{display:block}.grid{display:grid;grid-template-columns:var(--uap-addons-items-grid);gap:var(--uap-addons-items-gap)}",""]),i.d(t,["default",0,r])},5647(e,t,i){"use strict";i.r(t);var a=i(1601),n=i.n(a),o=i(6314),r=(i.n(o))()(n());r.push([e.id,":host{display:block}.addons-group{font-family:var(--uas--typography--body-medium-font-family);font-size:var(--uas--typography--body-medium-font-size);line-height:var(--uas--typography--body-medium-line-height);font-weight:var(--uas--typography--body-medium-font-weight);letter-spacing:var(--uas--typography--body-medium-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;display:flex;flex-direction:column;gap:var(--uap-addons-items-gap)}.addons-group-notice{display:flex;align-items:center;gap:var(--uas--base--spacing-xs);margin-top:calc(var(--uas--base--spacing-sm)*-1);font-weight:500}.addons-group-notice[notice-type=info]{color:var(--uas--typography--color-secondary)}.addons-group-notice[notice-type=error]{color:var(--uas--color--status-on-error-container)}.addons-group-notice[notice-type=warning]{color:var(--uas--color--status-on-warning-container)}.addons-group-notice uas-button uas-icon{font-size:.9em;margin-right:3px}.addons-group-grid{display:grid;grid-template-columns:var(--uap-addons-items-grid);gap:var(--uap-addons-items-gap);align-items:stretch}",""]),i.d(t,["default",0,r])},9020(e,t,i){"use strict";i.r(t);var a=i(1601),n=i.n(a),o=i(6314),r=(i.n(o))()(n());r.push([e.id,".banner{font-family:var(--uas--typography--body-large-font-family);font-size:var(--uas--typography--body-large-font-size);line-height:var(--uas--typography--body-large-line-height);font-weight:var(--uas--typography--body-large-font-weight);letter-spacing:var(--uas--typography--body-large-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;background:var(--uap-page-addons-background-color);padding:var(--uap-page-addons-banner-padding);border-radius:var(--uas--base--border-radius-md);position:relative;z-index:100}@media(width < 768px){.banner{padding:var(--uap-page-addons-banner-padding-mobile)}}.banner-content{width:clamp(200px,60%,430px);position:relative;z-index:2;display:flex;align-items:flex-start;flex-direction:column;gap:var(--uas--base--spacing-xs)}@media(width < 768px){.banner-content{width:100%}}.banner-content-logo{padding-bottom:var(--uas--base--spacing-sm)}.banner-content-logo img{width:225px;max-width:100%;display:inline-block}.banner-content-title{font-family:var(--uas--typography--title-large-font-family);font-size:var(--uas--typography--title-large-font-size);line-height:var(--uas--typography--title-large-line-height);font-weight:var(--uas--typography--title-large-font-weight);letter-spacing:var(--uas--typography--title-large-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;margin:0}.banner-content-description{font-family:var(--uas--typography--body-large-font-family);font-size:var(--uas--typography--body-large-font-size);line-height:var(--uas--typography--body-large-line-height);font-weight:var(--uas--typography--body-large-font-weight);letter-spacing:var(--uas--typography--body-large-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;color:rgba(0,0,0,.6)}.banner-content-cta{--uas--button--size-custom-font-size: var(--uas--typography--body-medium-font-size);--uas--button--custom-font-weight: 600;--uas--button--size-custom-height: 38px;--uas--button--custom-color: #fff;--uas--button--custom-border-radius: 150px;--uas--button--size-custom-padding-left: 20px;--uas--button--size-custom-padding-right: 20px;padding-top:var(--uas--base--spacing-sm)}.banner-content-cta uas-button[color=success]{--uas--button--custom-background: var(--uas--color--accent);--uas--button--custom-border: var(--uas--color--accent)}.banner-content-cta uas-button[color=primary]{--uas--button--custom-background: var(--uas--color--primary);--uas--button--custom-border: var(--uas--color--primary)}.banner-content-cta uas-icon:first-child{margin-right:3px}.banner-content-cta-disclaimer{font-family:var(--uas--typography--body-medium-font-family);font-size:var(--uas--typography--body-medium-font-size);line-height:var(--uas--typography--body-medium-line-height);font-weight:var(--uas--typography--body-medium-font-weight);letter-spacing:var(--uas--typography--body-medium-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;padding-top:var(--uas--base--spacing-xs);color:var(--uas--typography--color-secondary)}.banner-background{width:100%;height:100%;position:absolute;top:0;left:0;right:0;bottom:0;z-index:1;display:flex;align-items:flex-start;justify-content:flex-end;border-radius:var(--uas--base--border-radius-md);overflow:hidden}@media(width < 768px){.banner-background{display:none}}.banner-background-graph{width:45%;height:100%}.banner-background-graph uas-hub-spoke-graph{width:100%;height:100%}",""]),i.d(t,["default",0,r])},9691(e,t,i){"use strict";i.r(t);var a=i(1601),n=i.n(a),o=i(6314),r=(i.n(o))()(n());r.push([e.id,":host{display:block}.page{font-family:var(--uas--typography--font--family);background:var(--uas--color--surface);padding:var(--uas--page--padding)}.page-content{width:clamp(0px,100%,var(--uas--page--max-width));margin:0 auto;display:flex;flex-direction:column;gap:var(--uas--base--spacing-3xl)}@media(width >= 1024px){.page-content-inner{padding:var(--uas--page--inner-padding)}}.page-content-section{padding-block-start:var(--uas--base--spacing-3xl)}.page-content-section:first-child{padding-block-start:0}.page-content-section h1,.page-content-section h2{margin-block-start:.83em;margin-block-end:.83em}.page-content-section h1{font-family:var(--uas--typography--headline-small-font-family);font-size:var(--uas--typography--headline-small-font-size);line-height:var(--uas--typography--headline-small-line-height);font-weight:var(--uas--typography--headline-small-font-weight);letter-spacing:var(--uas--typography--headline-small-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.page-content-section h2{font-family:var(--uas--typography--title-large-font-family);font-size:var(--uas--typography--title-large-font-size);line-height:var(--uas--typography--title-large-line-height);font-weight:var(--uas--typography--title-large-font-weight);letter-spacing:var(--uas--typography--title-large-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}",""]),i.d(t,["default",0,r])},3366(e,t,i){"use strict";i.r(t);var a=i(1601),n=i.n(a),o=i(6314),r=(i.n(o))()(n());r.push([e.id,":host{display:block}.activity{padding:var(--uas--base--spacing-lg);border-radius:var(--uas--base--border-radius-md);background:var(--uas--color--surface)}.activity__header{display:flex;align-items:center;justify-content:space-between;gap:var(--uas--base--spacing-sm);padding-bottom:14px}.activity__title{font-family:var(--uas--typography--title-medium-font-family);font-size:var(--uas--typography--title-medium-font-size);line-height:var(--uas--typography--title-medium-line-height);font-weight:var(--uas--typography--title-medium-font-weight);letter-spacing:var(--uas--typography--title-medium-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;margin:0;color:var(--uas--typography--color)}.activity__view-all{flex:none;margin-inline-end:calc(-1*var(--uas--button--size-xs-padding-right))}.activity__list,.activity__skeleton{display:flex;flex-direction:column;gap:var(--uas--base--spacing-sm);margin:0;padding:0;list-style:none}.activity__row,.activity__skeleton-row{display:flex;align-items:center;gap:var(--uas--base--spacing-sm)}.activity__summary{font-family:var(--uas--typography--body-medium-font-family);font-size:var(--uas--typography--body-medium-font-size);line-height:var(--uas--typography--body-medium-line-height);font-weight:var(--uas--typography--body-medium-font-weight);letter-spacing:var(--uas--typography--body-medium-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;flex:1;min-inline-size:0;color:var(--uas--typography--color);overflow-wrap:anywhere}.activity__meta{font-family:var(--uas--typography--body-small-font-family);font-size:var(--uas--typography--body-small-font-size);line-height:var(--uas--typography--body-small-line-height);font-weight:var(--uas--typography--body-small-font-weight);letter-spacing:var(--uas--typography--body-small-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;display:inline-flex;flex:none;align-items:center;gap:var(--uas--base--spacing-xs);color:var(--uas--typography--color-secondary);white-space:nowrap}.activity__warning{color:var(--uas--color--status-on-warning-container)}.activity__skeleton-time{margin-inline-start:auto}.activity__empty{font-family:var(--uas--typography--body-medium-font-family);font-size:var(--uas--typography--body-medium-font-size);line-height:var(--uas--typography--body-medium-line-height);font-weight:var(--uas--typography--body-medium-font-weight);letter-spacing:var(--uas--typography--body-medium-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;margin:0;color:var(--uas--typography--color-secondary)}",""]),i.d(t,["default",0,r])},6707(e,t,i){"use strict";i.r(t);var a=i(1601),n=i.n(a),o=i(6314),r=(i.n(o))()(n());r.push([e.id,":host{display:block}.connect{display:flex;flex-direction:column;align-items:center;gap:var(--uas--base--spacing-md);padding:var(--uas--base--spacing-4xl) var(--uas--base--spacing-xl);border-radius:var(--uas--base--border-radius-md);background:var(--uas--color--surface);text-align:center}.connect__title{font-family:var(--uas--typography--headline-small-font-family);font-size:var(--uas--typography--headline-small-font-size);line-height:var(--uas--typography--headline-small-line-height);font-weight:var(--uas--typography--headline-small-font-weight);letter-spacing:var(--uas--typography--headline-small-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;margin:0;color:var(--uas--typography--color)}.connect__license{font-family:var(--uas--typography--body-medium-font-family);font-size:var(--uas--typography--body-medium-font-size);line-height:var(--uas--typography--body-medium-line-height);font-weight:var(--uas--typography--body-medium-font-weight);letter-spacing:var(--uas--typography--body-medium-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;max-inline-size:520px;margin:0;padding:var(--uas--base--spacing-sm) var(--uas--base--spacing-md);border-radius:var(--uas--base--border-radius-md);background:var(--uas--color--status-info-container);color:var(--uas--typography--color)}.connect__logos{display:flex;align-items:center;gap:18px}.connect__description{font-family:var(--uas--typography--body-large-font-family);font-size:var(--uas--typography--body-large-font-size);line-height:var(--uas--typography--body-large-line-height);font-weight:var(--uas--typography--body-large-font-weight);letter-spacing:var(--uas--typography--body-large-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;margin:0;color:var(--uas--typography--color-secondary)}",""]),i.d(t,["default",0,r])},5038(e,t,i){"use strict";i.r(t);var a=i(1601),n=i.n(a),o=i(6314),r=(i.n(o))()(n());r.push([e.id,":host{display:block}.connections{display:flex;flex-direction:column;align-items:flex-start;padding:var(--uas--base--spacing-lg);border-radius:var(--uas--base--border-radius-md);background:var(--uas--color--surface)}.connections__invitation{display:flex;flex-direction:column;align-items:flex-start;gap:var(--uas--base--spacing-xs);align-self:stretch;margin-block-start:var(--uas--base--spacing-sm);padding:var(--uas--base--spacing-md);border-radius:var(--uas--base--border-radius-md);background:var(--uas--color--status-neutral-container)}.connections__invitation-title{font-family:var(--uas--typography--title-small-font-family);font-size:var(--uas--typography--title-small-font-size);line-height:var(--uas--typography--title-small-line-height);font-weight:var(--uas--typography--title-small-font-weight);letter-spacing:var(--uas--typography--title-small-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;margin:0;color:var(--uas--typography--color)}.connections__invitation-text{font-family:var(--uas--typography--body-medium-font-family);font-size:var(--uas--typography--body-medium-font-size);line-height:var(--uas--typography--body-medium-line-height);font-weight:var(--uas--typography--body-medium-font-weight);letter-spacing:var(--uas--typography--body-medium-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;margin:0;color:var(--uas--typography--color)}.connections__title{font-family:var(--uas--typography--title-medium-font-family);font-size:var(--uas--typography--title-medium-font-size);line-height:var(--uas--typography--title-medium-line-height);font-weight:var(--uas--typography--title-medium-font-weight);letter-spacing:var(--uas--typography--title-medium-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;margin:0;padding-bottom:14px;color:var(--uas--typography--color)}.connections__list{align-self:stretch;margin:0;padding:0;list-style:none}.connections__row{display:flex;align-items:center;gap:var(--uas--base--spacing-sm);padding-block:var(--uas--base--spacing-sm)}.connections__row:first-child{padding-block-start:0}.connections__row+.connections__row{border-block-start:1px solid #f0f0f1}.connections__details{display:flex;flex:1;flex-direction:column;min-inline-size:0}.connections__name{font-family:var(--uas--typography--title-small-font-family);font-size:var(--uas--typography--title-small-font-size);line-height:var(--uas--typography--title-small-line-height);font-weight:var(--uas--typography--title-small-font-weight);letter-spacing:var(--uas--typography--title-small-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;color:var(--uas--typography--color);overflow-wrap:anywhere}.connections__last-used{font-family:var(--uas--typography--body-small-font-family);font-size:var(--uas--typography--body-small-font-size);line-height:var(--uas--typography--body-small-line-height);font-weight:var(--uas--typography--body-small-font-weight);letter-spacing:var(--uas--typography--body-small-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;color:var(--uas--typography--color-secondary)}.connections__permissions{flex:none;margin-inline-end:calc(-1*var(--uas--button--size-xs-padding-right))}.connections__connect{margin-block-start:var(--uas--base--spacing-xs)}",""]),i.d(t,["default",0,r])},6594(e,t,i){"use strict";i.r(t);var a=i(1601),n=i.n(a),o=i(6314),r=(i.n(o))()(n());r.push([e.id,":host{display:block}.header{--uap--f--page-dashboard--header--avatar-size: 22px;display:flex;align-items:center;justify-content:space-between;gap:var(--uas--base--spacing-md)}.header__title{font-family:var(--uas--typography--headline-small-font-family);font-size:var(--uas--typography--headline-small-font-size);line-height:var(--uas--typography--headline-small-line-height);font-weight:var(--uas--typography--headline-small-font-weight);letter-spacing:var(--uas--typography--headline-small-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;margin:0;color:var(--uas--typography--color)}.header__avatar{display:inline-flex;align-items:center;justify-content:center;flex:none;box-sizing:border-box;inline-size:var(--uap--f--page-dashboard--header--avatar-size);block-size:var(--uap--f--page-dashboard--header--avatar-size);border-radius:50%;overflow:hidden}.header__avatar img{display:block;inline-size:100%;block-size:100%;object-fit:cover}.header__avatar--guest{border:2px solid var(--uas--color--field-border);color:var(--uas--typography--color-secondary)}",""]),i.d(t,["default",0,r])},7228(e,t,i){"use strict";i.r(t);var a=i(1601),n=i.n(a),o=i(6314),r=(i.n(o))()(n());r.push([e.id,":host{display:block}.news{padding:var(--uas--base--spacing-lg);border-radius:var(--uas--base--border-radius-md);background:var(--uas--color--surface)}.news__header{display:flex;align-items:center;justify-content:space-between;gap:var(--uas--base--spacing-sm);padding-bottom:14px}.news__title{font-family:var(--uas--typography--title-medium-font-family);font-size:var(--uas--typography--title-medium-font-size);line-height:var(--uas--typography--title-medium-line-height);font-weight:var(--uas--typography--title-medium-font-weight);letter-spacing:var(--uas--typography--title-medium-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;margin:0;color:var(--uas--typography--color)}.news__view-all{flex:none;margin-inline-end:calc(-1*var(--uas--button--size-xs-padding-right))}.news__list{display:flex;flex-direction:column;gap:var(--uas--base--spacing-md);margin:0;padding:0;list-style:none}.news__row{display:flex;flex-direction:column;align-items:flex-start;gap:var(--uas--base--spacing-2xs)}.news__link{font-family:var(--uas--typography--body-medium-font-family);font-size:var(--uas--typography--body-medium-font-size);line-height:var(--uas--typography--body-medium-line-height);font-weight:var(--uas--typography--body-medium-font-weight);letter-spacing:var(--uas--typography--body-medium-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;color:var(--uas--typography--color-link);text-decoration:none;overflow-wrap:anywhere;border-radius:var(--uas--base--border-radius-xs)}.news__link:hover{text-decoration:underline}.news__link:focus-visible{outline:2px solid var(--uas--color--primary);outline-offset:2px}.news__published{font-family:var(--uas--typography--body-small-font-family);font-size:var(--uas--typography--body-small-font-size);line-height:var(--uas--typography--body-small-line-height);font-weight:var(--uas--typography--body-small-font-weight);letter-spacing:var(--uas--typography--body-small-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;color:var(--uas--typography--color-secondary)}",""]),i.d(t,["default",0,r])},4840(e,t,i){"use strict";i.r(t);var a=i(1601),n=i.n(a),o=i(6314),r=(i.n(o))()(n());r.push([e.id,":host{display:block}.recipes{padding:var(--uas--base--spacing-lg);border-radius:var(--uas--base--border-radius-md);background:var(--uas--color--surface)}.recipes__title{font-family:var(--uas--typography--title-medium-font-family);font-size:var(--uas--typography--title-medium-font-size);line-height:var(--uas--typography--title-medium-line-height);font-weight:var(--uas--typography--title-medium-font-weight);letter-spacing:var(--uas--typography--title-medium-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;margin:0;padding-bottom:14px;color:var(--uas--typography--color)}.recipes__table{inline-size:100%;border-collapse:collapse}.recipes__heading,.recipes__cell{padding:var(--uas--base--spacing-sm) 0;text-align:start;vertical-align:middle}.recipes__heading{font-family:var(--uas--typography--label-medium-font-family);font-size:var(--uas--typography--label-medium-font-size);line-height:var(--uas--typography--label-medium-line-height);font-weight:var(--uas--typography--label-medium-font-weight);letter-spacing:var(--uas--typography--label-medium-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;padding-block-start:0;color:var(--uas--table--heading-color);white-space:nowrap}.recipes__heading--runs{text-align:end}.recipes__row{border-block-start:1px solid var(--uas--table--border-color)}.recipes__row:last-child>*{padding-block-end:0}.recipes__cell{font-family:var(--uas--typography--body-medium-font-family);font-size:var(--uas--typography--body-medium-font-size);line-height:var(--uas--typography--body-medium-line-height);font-weight:var(--uas--typography--body-medium-font-weight);letter-spacing:var(--uas--typography--body-medium-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.recipes__cell--title{overflow-wrap:anywhere}.recipes__cell--runs{padding-inline-start:var(--uas--base--spacing-sm);font-variant-numeric:tabular-nums;text-align:end;white-space:nowrap}.recipes__link{color:var(--uas--typography--color-link);text-decoration:none;border-radius:var(--uas--base--border-radius-xs)}.recipes__link:hover{text-decoration:underline}.recipes__link:focus-visible{outline:2px solid var(--uas--color--primary);outline-offset:2px}",""]),i.d(t,["default",0,r])},6951(e,t,i){"use strict";i.r(t);var a=i(1601),n=i.n(a),o=i(6314),r=(i.n(o))()(n());r.push([e.id,":host{display:block}.status{display:flex;flex-direction:column;padding:var(--uas--base--spacing-lg);border-radius:var(--uas--base--border-radius-md);background:var(--uas--color--surface)}.status__title{font-family:var(--uas--typography--title-medium-font-family);font-size:var(--uas--typography--title-medium-font-size);line-height:var(--uas--typography--title-medium-line-height);font-weight:var(--uas--typography--title-medium-font-weight);letter-spacing:var(--uas--typography--title-medium-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;margin:0;padding-bottom:14px;color:var(--uas--typography--color)}.status__list{margin:0;padding:0;list-style:none}.status__row,.status__skeleton-row{display:flex;align-items:center;justify-content:space-between;gap:var(--uas--base--spacing-sm)}.status__row{padding-block:var(--uas--base--spacing-sm)}.status__row:first-child{padding-block-start:0}.status__row:last-child{padding-block-end:0}.status__row+.status__row{border-block-start:1px solid #f0f0f1}.status__plugin{font-family:var(--uas--typography--body-medium-font-family);font-size:var(--uas--typography--body-medium-font-size);line-height:var(--uas--typography--body-medium-line-height);font-weight:var(--uas--typography--body-medium-font-weight);letter-spacing:var(--uas--typography--body-medium-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;min-inline-size:0;color:var(--uas--typography--color);overflow-wrap:anywhere}.status__version{font-family:var(--uas--typography--body-small-font-family);font-size:var(--uas--typography--body-small-font-size);line-height:var(--uas--typography--body-small-line-height);font-weight:var(--uas--typography--body-small-font-weight);letter-spacing:var(--uas--typography--body-small-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;color:var(--uas--typography--color-secondary)}.status__update{flex:none}.status__up-to-date{flex:none;color:var(--uas--color--status-on-success-container)}.status__view-full{align-self:flex-start;margin-block-start:var(--uas--base--spacing-lg);margin-inline-start:calc(-1*var(--uas--button--size-xs-padding-left))}",""]),i.d(t,["default",0,r])},2500(e,t,i){"use strict";i.r(t);var a=i(1601),n=i.n(a),o=i(6314),r=(i.n(o))()(n());r.push([e.id,":host{display:block}.usage{display:flex;flex-direction:column;padding:var(--uas--base--spacing-lg);border-radius:var(--uas--base--border-radius-md);background:var(--uas--color--surface)}.usage__title{font-family:var(--uas--typography--title-medium-font-family);font-size:var(--uas--typography--title-medium-font-size);line-height:var(--uas--typography--title-medium-line-height);font-weight:var(--uas--typography--title-medium-font-weight);letter-spacing:var(--uas--typography--title-medium-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;margin:0;padding-bottom:14px;color:var(--uas--typography--color)}.usage__meters{display:flex;flex-direction:column;gap:var(--uas--base--spacing-lg)}.usage__meters:not(:last-child){margin-block-end:var(--uas--base--spacing-lg)}.usage__meter,.usage__skeleton-meter{display:flex;flex-direction:column;gap:var(--uas--base--spacing-xs)}.usage__meter-header{display:flex;align-items:center;justify-content:space-between;gap:var(--uas--base--spacing-sm)}.usage__label{font-family:var(--uas--typography--label-large-font-family);font-size:var(--uas--typography--label-large-font-size);line-height:var(--uas--typography--label-large-line-height);font-weight:var(--uas--typography--label-large-font-weight);letter-spacing:var(--uas--typography--label-large-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;color:var(--uas--typography--color)}.usage__count,.usage__unlimited{font-family:var(--uas--typography--title-small-font-family);font-size:var(--uas--typography--title-small-font-size);line-height:var(--uas--typography--title-small-line-height);font-weight:var(--uas--typography--title-small-font-weight);letter-spacing:var(--uas--typography--title-small-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;flex:none;color:var(--uas--typography--color);white-space:nowrap}.usage__unlimited{display:inline-flex;align-items:center;gap:var(--uas--base--spacing-xs)}.usage__bar{--uas--progress-linear--custom-height: 8px}.usage__resets{font-family:var(--uas--typography--body-small-font-family);font-size:var(--uas--typography--body-small-font-size);line-height:var(--uas--typography--body-small-line-height);font-weight:var(--uas--typography--body-small-font-weight);letter-spacing:var(--uas--typography--body-small-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;margin:0;color:var(--uas--typography--color-secondary)}.usage__alert-link{color:var(--uas--typography--color-link)}.usage__upgrade{align-self:flex-start;margin-inline-start:calc(-1*var(--uas--button--size-xs-padding-left))}.usage__shared{font-family:var(--uas--typography--body-small-font-family);font-size:var(--uas--typography--body-small-font-size);line-height:var(--uas--typography--body-small-line-height);font-weight:var(--uas--typography--body-small-font-weight);letter-spacing:var(--uas--typography--body-small-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;margin:0;color:var(--uas--typography--color-secondary)}",""]),i.d(t,["default",0,r])},9155(e,t,i){"use strict";i.r(t);var a=i(1601),n=i.n(a),o=i(6314),r=(i.n(o))()(n());r.push([e.id,":host{display:block}.dashboard{font-family:var(--uas--typography--body-medium-font-family);font-size:var(--uas--typography--body-medium-font-size);line-height:var(--uas--typography--body-medium-line-height);font-weight:var(--uas--typography--body-medium-font-weight);letter-spacing:var(--uas--typography--body-medium-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;display:flex;flex-direction:column;gap:var(--uas--base--spacing-lg);color:var(--uas--typography--color);container-name:uap-f-page-dashboard;container-type:inline-size}.dashboard__grid{display:grid;grid-template-columns:minmax(0, 2fr) minmax(0, 1fr);gap:var(--uas--base--spacing-lg);align-items:start}@container uap-f-page-dashboard (width < 960px){.dashboard__grid{grid-template-columns:minmax(0, 1fr)}}.dashboard__grid--single{grid-template-columns:minmax(0, 1fr)}.dashboard__main,.dashboard__side{display:flex;flex-direction:column;gap:var(--uas--base--spacing-lg);min-inline-size:0}.dashboard__card{display:flex;flex-direction:column;gap:var(--uas--base--spacing-sm);padding:var(--uas--base--spacing-lg);border-radius:var(--uas--base--border-radius-md);background:var(--uas--color--surface)}",""]),i.d(t,["default",0,r])},4750(e,t,i){"use strict";i.r(t);var a=i(1601),n=i.n(a),o=i(6314),r=(i.n(o))()(n());r.push([e.id,":host{display:block}.ai-activity{font-family:var(--uas--typography--body-medium-font-family);font-size:var(--uas--typography--body-medium-font-size);line-height:var(--uas--typography--body-medium-line-height);font-weight:var(--uas--typography--body-medium-font-weight);letter-spacing:var(--uas--typography--body-medium-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;display:flex;flex-direction:column;color:var(--uas--typography--color);border-radius:var(--uas--base--border-radius-md);background:var(--uas--color--surface)}.ai-activity__filters{display:flex;flex-wrap:wrap;align-items:center;gap:var(--uas--base--spacing-xs);padding:var(--uas--base--spacing-lg)}.ai-activity__search{display:flex;flex:1 1 18rem;gap:var(--uas--base--spacing-xs);margin:0}.ai-activity__apply{flex:none}.ai-activity__field{flex:1 1 9rem;box-sizing:border-box;min-inline-size:0;block-size:var(--uas--button--size-md-height);margin:0;padding-block:0;padding-inline:var(--uas--base--spacing-sm);font:inherit;color:inherit;background:var(--uas--color--surface);border:1px solid var(--uas--color--field-border);border-radius:var(--uas--button--border-radius);accent-color:var(--uas--color--primary)}.ai-activity__field:focus{border-color:var(--uas--button--secondary-border);box-shadow:0 0 0 .2rem var(--uas--button--secondary-focus-shadow);outline:none}.ai-activity__field:user-invalid{border-color:var(--uas--color--status-on-error-container)}.ai-activity__state{padding:0 var(--uas--base--spacing-lg) var(--uas--base--spacing-lg)}.ai-activity__state>uas-skeleton{display:block}.ai-activity__table-frame{overflow-x:auto}.ai-activity__table{inline-size:100%;border-collapse:collapse}.ai-activity__heading,.ai-activity__cell,.ai-activity__empty{padding:var(--uas--base--spacing-sm);text-align:start;vertical-align:middle}.ai-activity__heading:first-child,.ai-activity__cell:first-child,.ai-activity__empty:first-child{padding-inline-start:var(--uas--base--spacing-lg)}.ai-activity__heading:last-child,.ai-activity__cell:last-child,.ai-activity__empty:last-child{padding-inline-end:var(--uas--base--spacing-lg)}.ai-activity__heading{font-family:var(--uas--typography--label-medium-font-family);font-size:var(--uas--typography--label-medium-font-size);line-height:var(--uas--typography--label-medium-line-height);font-weight:var(--uas--typography--label-medium-font-weight);letter-spacing:var(--uas--typography--label-medium-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;padding-block:var(--uas--base--spacing-xs);color:var(--uas--table--heading-color);white-space:nowrap;background:var(--uas--table--heading-bg);border-block:1px solid var(--uas--table--border-color)}.ai-activity__sort{display:inline-flex;align-items:center;gap:var(--uas--base--spacing-2xs);padding:0;font:inherit;color:inherit;background:none;border:0;border-radius:var(--uas--base--border-radius-xs);cursor:pointer}.ai-activity__sort>uas-icon{visibility:hidden}.ai-activity__sort:hover,.ai-activity__sort--active{color:var(--uas--typography--color)}.ai-activity__sort:focus-visible{outline:2px solid var(--uas--color--primary);outline-offset:2px}.ai-activity__sort:hover>uas-icon,.ai-activity__sort:focus-visible>uas-icon,.ai-activity__sort--active>uas-icon{visibility:visible}.ai-activity__row{border-block-end:1px solid var(--uas--table--border-color)}.ai-activity__row:last-child{border-block-end:0}.ai-activity__row:hover{background:var(--uas--table--heading-bg)}.ai-activity__cell--summary{min-inline-size:14rem;overflow-wrap:anywhere}.ai-activity__cell--client,.ai-activity__cell--result,.ai-activity__cell--date{white-space:nowrap}.ai-activity__cell--date{font-family:var(--uas--typography--body-small-font-family);font-size:var(--uas--typography--body-small-font-size);line-height:var(--uas--typography--body-small-line-height);font-weight:var(--uas--typography--body-small-font-weight);letter-spacing:var(--uas--typography--body-small-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;color:var(--uas--typography--color-secondary)}.ai-activity__client{display:inline-flex;align-items:center;gap:var(--uas--base--spacing-xs)}.ai-activity__empty{padding-block:var(--uas--base--spacing-3xl);color:var(--uas--typography--color-secondary);text-align:center}.ai-activity__nav{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:var(--uas--base--spacing-sm);padding:var(--uas--base--spacing-sm) var(--uas--base--spacing-lg);border-block-start:1px solid var(--uas--table--border-color)}.ai-activity__count,.ai-activity__page{font-family:var(--uas--typography--body-small-font-family);font-size:var(--uas--typography--body-small-font-size);line-height:var(--uas--typography--body-small-line-height);font-weight:var(--uas--typography--body-small-font-weight);letter-spacing:var(--uas--typography--body-small-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;color:var(--uas--typography--color-secondary)}.ai-activity__pagination{display:flex;align-items:center;gap:var(--uas--base--spacing-xs)}",""]),i.d(t,["default",0,r])},6933(e,t,i){"use strict";i.r(t);var a=i(1601),n=i.n(a),o=i(6314),r=(i.n(o))()(n());r.push([e.id,":host{display:block}.app-events{font-family:var(--uas--typography--body-medium-font-family);font-size:var(--uas--typography--body-medium-font-size);line-height:var(--uas--typography--body-medium-line-height);font-weight:var(--uas--typography--body-medium-font-weight);letter-spacing:var(--uas--typography--body-medium-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;display:flex;flex-direction:column;color:var(--uas--typography--color);border-radius:var(--uas--base--border-radius-md);background:var(--uas--color--surface)}.app-events__header{display:flex;flex-direction:column;gap:var(--uas--base--spacing-sm);padding:var(--uas--base--spacing-lg)}.app-events__intro{font-family:var(--uas--typography--body-small-font-family);font-size:var(--uas--typography--body-small-font-size);line-height:var(--uas--typography--body-small-line-height);font-weight:var(--uas--typography--body-small-font-weight);letter-spacing:var(--uas--typography--body-small-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;margin:0;color:var(--uas--typography--color-secondary)}.app-events__filters{display:flex;flex-wrap:wrap;align-items:center;gap:var(--uas--base--spacing-xs)}.app-events__search{display:flex;flex:1 1 18rem;gap:var(--uas--base--spacing-xs);margin:0}.app-events__apply{flex:none}.app-events__field{flex:1 1 9rem;box-sizing:border-box;min-inline-size:0;block-size:var(--uas--button--size-md-height);margin:0;padding-block:0;padding-inline:var(--uas--base--spacing-sm);font:inherit;color:inherit;background:var(--uas--color--surface);border:1px solid var(--uas--color--field-border);border-radius:var(--uas--button--border-radius);accent-color:var(--uas--color--primary)}.app-events__field:focus{border-color:var(--uas--button--secondary-border);box-shadow:0 0 0 .2rem var(--uas--button--secondary-focus-shadow);outline:none}.app-events__field:disabled{color:var(--uas--typography--color-secondary);background:var(--uas--color--field-background-disabled)}.app-events__field:user-invalid{border-color:var(--uas--color--status-on-error-container)}.app-events__note{font-family:var(--uas--typography--body-small-font-family);font-size:var(--uas--typography--body-small-font-size);line-height:var(--uas--typography--body-small-line-height);font-weight:var(--uas--typography--body-small-font-weight);letter-spacing:var(--uas--typography--body-small-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;margin:0;color:var(--uas--typography--color-secondary)}.app-events__note-link{color:var(--uas--typography--color-link)}.app-events__note-icon{margin-inline-start:var(--uas--base--spacing-2xs)}.app-events__state{padding:0 var(--uas--base--spacing-lg) var(--uas--base--spacing-lg)}.app-events__state>uas-skeleton{display:block}.app-events__table-frame{overflow-x:auto}.app-events__table{inline-size:100%;border-collapse:collapse}.app-events__heading,.app-events__cell,.app-events__empty{padding:var(--uas--base--spacing-sm);text-align:start;vertical-align:middle}.app-events__heading:first-child,.app-events__cell:first-child,.app-events__empty:first-child{padding-inline-start:var(--uas--base--spacing-lg)}.app-events__heading:last-child,.app-events__cell:last-child,.app-events__empty:last-child{padding-inline-end:var(--uas--base--spacing-lg)}.app-events__heading{font-family:var(--uas--typography--label-medium-font-family);font-size:var(--uas--typography--label-medium-font-size);line-height:var(--uas--typography--label-medium-line-height);font-weight:var(--uas--typography--label-medium-font-weight);letter-spacing:var(--uas--typography--label-medium-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;padding-block:var(--uas--base--spacing-xs);color:var(--uas--table--heading-color);white-space:nowrap;background:var(--uas--table--heading-bg);border-block:1px solid var(--uas--table--border-color)}.app-events__sort{display:inline-flex;align-items:center;gap:var(--uas--base--spacing-2xs);padding:0;font:inherit;color:inherit;background:none;border:0;border-radius:var(--uas--base--border-radius-xs);cursor:pointer}.app-events__sort>uas-icon{visibility:hidden}.app-events__sort:hover,.app-events__sort--active{color:var(--uas--typography--color)}.app-events__sort:focus-visible{outline:2px solid var(--uas--color--primary);outline-offset:2px}.app-events__sort:hover>uas-icon,.app-events__sort:focus-visible>uas-icon,.app-events__sort--active>uas-icon{visibility:visible}.app-events__row{border-block-end:1px solid var(--uas--table--border-color)}.app-events__row:last-child{border-block-end:0}.app-events__row:hover{background:var(--uas--table--heading-bg)}.app-events__cell--event{min-inline-size:14rem;overflow-wrap:anywhere}.app-events__cell--app,.app-events__cell--status,.app-events__cell--date{white-space:nowrap}.app-events__cell--runs{min-inline-size:10rem}.app-events__cell--date{font-family:var(--uas--typography--body-small-font-family);font-size:var(--uas--typography--body-small-font-size);line-height:var(--uas--typography--body-small-line-height);font-weight:var(--uas--typography--body-small-font-weight);letter-spacing:var(--uas--typography--body-small-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;color:var(--uas--typography--color-secondary)}.app-events__stack{display:flex;flex-direction:column;gap:var(--uas--base--spacing-2xs);min-inline-size:0;align-items:flex-start}.app-events__more,.app-events__none,.app-events__runs-more{font-family:var(--uas--typography--body-small-font-family);font-size:var(--uas--typography--body-small-font-size);line-height:var(--uas--typography--body-small-line-height);font-weight:var(--uas--typography--body-small-font-weight);letter-spacing:var(--uas--typography--body-small-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;color:var(--uas--typography--color-secondary)}.app-events__error{min-inline-size:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-inline-size:16rem}.app-events__app{display:inline-flex;align-items:center;gap:var(--uas--base--spacing-xs)}.app-events__runs{display:flex;flex-direction:column;gap:var(--uas--base--spacing-2xs);margin:0;padding:0;list-style:none}.app-events__empty{padding-block:var(--uas--base--spacing-3xl);color:var(--uas--typography--color-secondary);text-align:center}.app-events__nav{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:var(--uas--base--spacing-sm);padding:var(--uas--base--spacing-sm) var(--uas--base--spacing-lg);border-block-start:1px solid var(--uas--table--border-color)}.app-events__count,.app-events__page{font-family:var(--uas--typography--body-small-font-family);font-size:var(--uas--typography--body-small-font-size);line-height:var(--uas--typography--body-small-line-height);font-weight:var(--uas--typography--body-small-font-weight);letter-spacing:var(--uas--typography--body-small-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;color:var(--uas--typography--color-secondary)}.app-events__pagination{display:flex;align-items:center;gap:var(--uas--base--spacing-xs)}",""]),i.d(t,["default",0,r])},4980(e,t,i){"use strict";i.r(t);var a=i(1601),n=i.n(a),o=i(6314),r=(i.n(o))()(n());r.push([e.id,":host{display:block}.detail{display:flex;flex-direction:column;box-sizing:border-box;min-block-size:100%}.detail__main{flex:1 1 auto;display:flex;flex-direction:column;gap:var(--uas--base--spacing-lg);padding:var(--uas--base--spacing-xl)}.detail__header{display:flex;flex-wrap:wrap;align-items:flex-start;gap:var(--uas--base--spacing-md)}.detail__icon,.detail__status{flex:none}.detail__heading{flex:1 1 14rem;min-inline-size:0}.detail__title{font-family:var(--uas--typography--body-medium-font-family);font-size:var(--uas--typography--body-medium-font-size);line-height:var(--uas--typography--body-medium-line-height);font-weight:var(--uas--typography--body-medium-font-weight);letter-spacing:var(--uas--typography--body-medium-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;margin:0;font-weight:600;color:var(--uas--typography--color)}.detail__integration{font-family:var(--uas--typography--body-small-font-family);font-size:var(--uas--typography--body-small-font-size);line-height:var(--uas--typography--body-small-line-height);font-weight:var(--uas--typography--body-small-font-weight);letter-spacing:var(--uas--typography--body-small-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;color:var(--uas--typography--color-secondary)}.detail__facts{display:grid;grid-template-columns:repeat(2, minmax(0, 1fr));gap:var(--uas--base--spacing-lg) var(--uas--base--spacing-xl);margin:0;padding-block:var(--uas--base--spacing-lg);border-block:1px solid var(--uas--table--border-color)}.detail__why{display:flex;flex-direction:column;gap:var(--uas--base--spacing-sm)}.detail__placeholder{display:block;margin-block-end:var(--uas--base--spacing-xs)}.detail__label{font-family:var(--uas--typography--label-medium-font-family);font-size:var(--uas--typography--label-medium-font-size);line-height:var(--uas--typography--label-medium-line-height);font-weight:var(--uas--typography--label-medium-font-weight);letter-spacing:var(--uas--typography--label-medium-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;margin:0;color:var(--uas--typography--color-secondary)}.detail__value{--uap--f--page-logs-viewer-user--name-color: var( --uas--typography--color );font-family:var(--uas--typography--body-small-font-family);font-size:var(--uas--typography--body-small-font-size);line-height:var(--uas--typography--body-small-line-height);font-weight:var(--uas--typography--body-small-font-weight);letter-spacing:var(--uas--typography--body-small-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;margin:var(--uas--base--spacing-xs) 0 0;color:var(--uas--typography--color);overflow-wrap:anywhere}.detail__resend-status{display:contents}.detail__actions{display:flex;flex-wrap:wrap;align-items:center;gap:var(--uas--base--spacing-sm)}.detail__guidance{flex:none;display:flex;align-items:flex-start;gap:var(--uas--base--spacing-sm);padding:var(--uas--base--spacing-md) var(--uas--base--spacing-xl);color:var(--uas--typography--color-secondary);background:var(--uas--table--heading-bg);border-block-start:1px solid var(--uas--table--border-color)}.detail__guidance-icon{flex:none}.detail__guidance-text{font-family:var(--uas--typography--body-small-font-family);font-size:var(--uas--typography--body-small-font-size);line-height:var(--uas--typography--body-small-line-height);font-weight:var(--uas--typography--body-small-font-weight);letter-spacing:var(--uas--typography--body-small-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;margin:0}",""]),i.d(t,["default",0,r])},5341(e,t,i){"use strict";i.r(t);var a=i(1601),n=i.n(a),o=i(6314),r=(i.n(o))()(n());r.push([e.id,":host{display:block}.failed-notice{display:block;margin:var(--uas--base--spacing-xs) var(--uas--base--spacing-lg)}.failed-row{font-family:var(--uas--typography--body-small-font-family);font-size:var(--uas--typography--body-small-font-size);line-height:var(--uas--typography--body-small-line-height);font-weight:var(--uas--typography--body-small-font-weight);letter-spacing:var(--uas--typography--body-small-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;display:flex;flex-direction:column;gap:var(--uas--base--spacing-xs);min-inline-size:0;color:var(--uas--typography--color-secondary)}.failed-row__top{font-family:var(--uas--typography--body-small-font-family);font-size:var(--uas--typography--body-small-font-size);line-height:var(--uas--typography--body-small-line-height);font-weight:var(--uas--typography--body-small-font-weight);letter-spacing:var(--uas--typography--body-small-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;display:flex;align-items:center;justify-content:space-between;gap:var(--uas--base--spacing-sm);color:var(--uas--typography--color-secondary)}.failed-row__integration{flex:1 1 auto;min-inline-size:0}.failed-row__date{flex:none;white-space:nowrap}.failed-row__action,.failed-row__recipe{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.failed-row__action{font-family:var(--uas--typography--body-small-font-family);font-size:var(--uas--typography--body-small-font-size);line-height:var(--uas--typography--body-small-line-height);font-weight:var(--uas--typography--body-small-font-weight);letter-spacing:var(--uas--typography--body-small-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-weight:600;color:var(--uas--typography--color)}.failed-row__recipe{font-family:var(--uas--typography--body-small-font-family);font-size:var(--uas--typography--body-small-font-size);line-height:var(--uas--typography--body-small-line-height);font-weight:var(--uas--typography--body-small-font-weight);letter-spacing:var(--uas--typography--body-small-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;color:var(--uas--typography--color-secondary)}.failed-row__reason{display:flex;align-items:center;gap:var(--uas--base--spacing-xs);min-inline-size:0}.failed-row__reason-text{flex:0 1 auto;min-inline-size:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.failed-row__http{flex:none}.failed-row__endpoint{overflow:hidden;font-family:monospace;text-overflow:ellipsis;white-space:nowrap}.failed-row__message{font-family:var(--uas--typography--body-small-font-family);font-size:var(--uas--typography--body-small-font-size);line-height:var(--uas--typography--body-small-line-height);font-weight:var(--uas--typography--body-small-font-weight);letter-spacing:var(--uas--typography--body-small-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;color:var(--uas--typography--color-secondary)}.line{display:grid;grid-template-columns:minmax(0, 1.8fr) minmax(0, 1.2fr) minmax(0, 2fr) minmax(0, 1.4fr) 208px;align-items:center;column-gap:var(--uas--base--spacing-md);min-inline-size:0;text-align:start;font-family:var(--uas--typography--body-medium-font-family);font-size:var(--uas--typography--body-medium-font-size);line-height:var(--uas--typography--body-medium-line-height);font-weight:var(--uas--typography--body-medium-font-weight);letter-spacing:var(--uas--typography--body-medium-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;color:var(--uas--typography--color)}.line--headings{font:inherit;color:inherit}.line__main{display:flex;align-items:center;gap:var(--uas--base--spacing-sm);min-inline-size:0}.line__title{min-inline-size:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.line__status{min-inline-size:0}.line__date{min-inline-size:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-family:var(--uas--typography--body-small-font-family);font-size:var(--uas--typography--body-small-font-size);line-height:var(--uas--typography--body-small-line-height);font-weight:var(--uas--typography--body-small-font-weight);letter-spacing:var(--uas--typography--body-small-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;color:var(--uas--typography--color-secondary)}.line__user{--uap--f--page-logs-viewer-user--name-color: var( --uas--typography--color );min-inline-size:0}.line__integration{flex:none}.line__recipe{min-inline-size:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.line__stack{display:flex;flex-direction:column;gap:var(--uas--base--spacing-2xs);min-inline-size:0}.line__reason{display:flex;align-items:center;gap:var(--uas--base--spacing-xs);min-inline-size:0}.line__reason-text{min-inline-size:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:0 1 auto}.line__http{flex:none}.line__endpoint{min-inline-size:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-family:var(--uas--typography--body-small-font-family);font-size:var(--uas--typography--body-small-font-size);line-height:var(--uas--typography--body-small-line-height);font-weight:var(--uas--typography--body-small-font-weight);letter-spacing:var(--uas--typography--body-small-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;color:var(--uas--typography--color-secondary);font-family:monospace}.line__more{font-family:var(--uas--typography--body-small-font-family);font-size:var(--uas--typography--body-small-font-size);line-height:var(--uas--typography--body-small-line-height);font-weight:var(--uas--typography--body-small-font-weight);letter-spacing:var(--uas--typography--body-small-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;color:var(--uas--typography--color-secondary)}",""]),i.d(t,["default",0,r])},433(e,t,i){"use strict";i.r(t);var a=i(1601),n=i.n(a),o=i(6314),r=(i.n(o))()(n());r.push([e.id,":host{display:block}.filter-bar{font-family:var(--uas--typography--body-small-font-family);font-size:var(--uas--typography--body-small-font-size);line-height:var(--uas--typography--body-small-line-height);font-weight:var(--uas--typography--body-small-font-weight);letter-spacing:var(--uas--typography--body-small-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;display:flex;flex-direction:column;gap:var(--uas--base--spacing-sm);padding:var(--uas--base--spacing-lg);color:var(--uas--typography--color)}.filter-bar__top{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:var(--uas--base--spacing-sm)}.filter-bar__controls{display:flex;flex-wrap:wrap;align-items:center;gap:var(--uas--base--spacing-sm);min-inline-size:0}.filter-bar__field,.filter-bar__search{box-sizing:border-box;block-size:var(--uas--button--size-md-height);margin:0;font:inherit;color:inherit;background:var(--uas--color--surface);border:1px solid var(--uas--color--field-border);border-radius:var(--uas--button--border-radius)}.filter-bar__field{flex:0 1 11rem;min-inline-size:0;padding-block:0;padding-inline:var(--uas--base--spacing-sm);accent-color:var(--uas--color--primary)}.filter-bar__field:focus{border-color:var(--uas--button--secondary-border);box-shadow:0 0 0 .2rem var(--uas--button--secondary-focus-shadow);outline:none}.filter-bar__field:disabled{color:var(--uas--typography--color-secondary);background:var(--uas--color--field-background-disabled)}.filter-bar__field:user-invalid{border-color:var(--uas--color--status-on-error-container)}.filter-bar__dates{display:flex;align-items:center;gap:var(--uas--base--spacing-xs);min-inline-size:0;margin:0;padding:0;border:0}.filter-bar__dates-label{float:inline-start;padding:0;white-space:nowrap;color:var(--uas--typography--color-secondary)}.filter-bar__search{display:flex;flex:1 1 16rem;align-items:center;gap:var(--uas--base--spacing-xs);min-inline-size:0;max-inline-size:28rem;padding-inline:var(--uas--base--spacing-sm);color:var(--uas--typography--color-secondary)}.filter-bar__search:focus-within{border-color:var(--uas--button--secondary-border);box-shadow:0 0 0 .2rem var(--uas--button--secondary-focus-shadow)}.filter-bar__search:has(:disabled){background:var(--uas--color--field-background-disabled)}.filter-bar__search-input{flex:1 1 0;min-inline-size:0;padding:0;font:inherit;color:var(--uas--typography--color);background:none;border:0;outline:none}.filter-bar__note{margin:0;color:var(--uas--typography--color-secondary)}.filter-bar__note-link{color:var(--uas--typography--color-link)}.filter-bar__note-icon{margin-inline-start:var(--uas--base--spacing-2xs)}",""]),i.d(t,["default",0,r])},7715(e,t,i){"use strict";i.r(t);var a=i(1601),n=i.n(a),o=i(6314),r=(i.n(o))()(n());r.push([e.id,":host{display:block}.item-row{font-family:var(--uas--typography--body-small-font-family);font-size:var(--uas--typography--body-small-font-size);line-height:var(--uas--typography--body-small-line-height);font-weight:var(--uas--typography--body-small-font-weight);letter-spacing:var(--uas--typography--body-small-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;display:flex;flex-direction:column;gap:var(--uas--base--spacing-xs);color:var(--uas--typography--color-secondary)}.item-row__body{display:flex;flex-direction:column;gap:var(--uas--base--spacing-xs);min-inline-size:0}.item-row__title{font-family:var(--uas--typography--body-small-font-family);font-size:var(--uas--typography--body-small-font-size);line-height:var(--uas--typography--body-small-line-height);font-weight:var(--uas--typography--body-small-font-weight);letter-spacing:var(--uas--typography--body-small-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;overflow:hidden;font-weight:600;color:var(--uas--typography--color);text-overflow:ellipsis;white-space:nowrap}.item-row__recipe{font-family:var(--uas--typography--body-small-font-family);font-size:var(--uas--typography--body-small-font-size);line-height:var(--uas--typography--body-small-line-height);font-weight:var(--uas--typography--body-small-font-weight);letter-spacing:var(--uas--typography--body-small-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;overflow:hidden;color:var(--uas--typography--color-secondary);text-overflow:ellipsis;white-space:nowrap}.item-row__top{display:flex;align-items:center;justify-content:space-between;gap:var(--uas--base--spacing-sm);font-family:var(--uas--typography--body-small-font-family);font-size:var(--uas--typography--body-small-font-size);line-height:var(--uas--typography--body-small-line-height);font-weight:var(--uas--typography--body-small-font-weight);letter-spacing:var(--uas--typography--body-small-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;color:var(--uas--typography--color-secondary)}.item-row__integration{flex:1 1 auto;min-inline-size:0}.item-row__date{flex:none;white-space:nowrap}.line{display:grid;grid-template-columns:minmax(0, 2.4fr) 176px 208px minmax(0, 1.5fr) minmax(0, 1.4fr);align-items:center;column-gap:var(--uas--base--spacing-md);min-inline-size:0;text-align:start;font-family:var(--uas--typography--body-medium-font-family);font-size:var(--uas--typography--body-medium-font-size);line-height:var(--uas--typography--body-medium-line-height);font-weight:var(--uas--typography--body-medium-font-weight);letter-spacing:var(--uas--typography--body-medium-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;color:var(--uas--typography--color)}.line--headings{font:inherit;color:inherit}.line--action{grid-template-columns:minmax(0, 2.4fr) 176px minmax(0, 1.4fr) 208px minmax(0, 1.5fr) minmax(0, 1.4fr)}.line__main{display:flex;align-items:center;gap:var(--uas--base--spacing-sm);min-inline-size:0}.line__title{min-inline-size:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.line__status{min-inline-size:0}.line__date,.line__ago{min-inline-size:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-family:var(--uas--typography--body-small-font-family);font-size:var(--uas--typography--body-small-font-size);line-height:var(--uas--typography--body-small-line-height);font-weight:var(--uas--typography--body-small-font-weight);letter-spacing:var(--uas--typography--body-small-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;color:var(--uas--typography--color-secondary)}.line__stack{display:flex;flex-direction:column;gap:var(--uas--base--spacing-2xs);min-inline-size:0}.line__recipe-status{font-family:var(--uas--typography--body-small-font-family);font-size:var(--uas--typography--body-small-font-size);line-height:var(--uas--typography--body-small-line-height);font-weight:var(--uas--typography--body-small-font-weight);letter-spacing:var(--uas--typography--body-small-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;color:var(--uas--typography--color-secondary)}.line__user{--uap--f--page-logs-viewer-user--name-color: var( --uas--typography--color );min-inline-size:0}.line__integration{flex:none}.line__notes,.line__recipe{min-inline-size:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.line__notes{font-family:var(--uas--typography--body-small-font-family);font-size:var(--uas--typography--body-small-font-size);line-height:var(--uas--typography--body-small-line-height);font-weight:var(--uas--typography--body-small-font-weight);letter-spacing:var(--uas--typography--body-small-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;color:var(--uas--typography--color-secondary)}",""]),i.d(t,["default",0,r])},4505(e,t,i){"use strict";i.r(t);var a=i(1601),n=i.n(a),o=i(6314),r=(i.n(o))()(n());r.push([e.id,':host{display:block}.pane{display:flex;block-size:100%}.pane__content{flex:1 1 0;min-inline-size:0}.pane__content ::slotted(*){block-size:100%}.resize-handle{display:var(--uap--f--page-logs--viewer-list-pane--handle-display, flex);flex:none;justify-content:flex-start;inline-size:8px;cursor:col-resize}.resize-handle::before{content:"";inline-size:1px;background:var(--uas--table--border-color)}.resize-handle:hover::before{background:var(--uas--color--primary)}',""]),i.d(t,["default",0,r])},3598(e,t,i){"use strict";i.r(t);var a=i(1601),n=i.n(a),o=i(6314),r=(i.n(o))()(n());r.push([e.id,":host{display:block}.layout{container-type:inline-size}.layout__filters{border-block-end:1px solid var(--uas--table--border-color)}.layout__panes{display:flex;block-size:var(--uap--f--page-logs--viewer-layout--height)}.layout__detail{position:relative;flex:1 1 0;min-inline-size:0;overflow:hidden;scroll-margin-block-start:var(--uas--base--spacing-4xl)}.layout__detail:focus{outline:none}.layout__detail ::slotted(*){box-sizing:border-box;block-size:100%;overflow-y:auto}@container ( max-inline-size: 860px ){.layout .layout__panes{flex-direction:column;block-size:auto}.layout .layout__list{--uap--f--page-logs--viewer-list-pane--handle-display: none;min-inline-size:100%;max-inline-size:100%}.layout .layout__detail{display:none}}.layout--list-only .layout__panes{flex-direction:column;block-size:auto}.layout--list-only .layout__list{--uap--f--page-logs--viewer-list-pane--handle-display: none;min-inline-size:100%;max-inline-size:100%}.layout--list-only .layout__detail{display:none}",""]),i.d(t,["default",0,r])},2288(e,t,i){"use strict";i.r(t);var a=i(1601),n=i.n(a),o=i(6314),r=(i.n(o))()(n());r.push([e.id,":host{display:inline}.link{color:var(--uas--typography--color-link);text-decoration:none;border-radius:var(--uas--base--border-radius-xs)}.link:hover{text-decoration:underline}.link:focus-visible{outline:2px solid var(--uas--color--primary);outline-offset:2px}",""]),i.d(t,["default",0,r])},7880(e,t,i){"use strict";i.r(t);var a=i(1601),n=i.n(a),o=i(6314),r=(i.n(o))()(n());r.push([e.id,":host{display:block}.list{display:flex;flex-direction:column;block-size:100%}.list__bar{font-family:var(--uas--typography--body-small-font-family);font-size:var(--uas--typography--body-small-font-size);line-height:var(--uas--typography--body-small-line-height);font-weight:var(--uas--typography--body-small-font-weight);letter-spacing:var(--uas--typography--body-small-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;flex:none;display:flex;flex-wrap:wrap;align-items:center;gap:var(--uas--base--spacing-sm);box-sizing:border-box;min-block-size:48px;padding:var(--uas--base--spacing-xs) var(--uas--base--spacing-lg);color:var(--uas--typography--color-secondary);border-block-end:1px solid var(--uas--table--border-color)}.list__check-all{flex:none;inline-size:18px;block-size:18px;margin:0;accent-color:var(--uas--color--primary)}.list__selected{font-weight:600;color:var(--uas--typography--color)}.list__bulk-actions{display:flex;flex:1 1 0;align-items:center;justify-content:flex-end;gap:var(--uas--base--spacing-sm);min-inline-size:0}.list__clear{padding:0;white-space:nowrap;font:inherit;color:var(--uas--typography--color-link);background:none;border:0;cursor:pointer}.list__rows{flex:1 1 auto;min-block-size:0;overflow-y:auto}.list__pagination{flex:none;border-block-start:1px solid var(--uas--table--border-color)}",""]),i.d(t,["default",0,r])},9416(e,t,i){"use strict";i.r(t);var a=i(1601),n=i.n(a),o=i(6314),r=(i.n(o))()(n());r.push([e.id,":host{display:block}.pagination{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:var(--uas--base--spacing-sm);padding:var(--uas--base--spacing-sm) var(--uas--base--spacing-lg)}.pagination__text{font-family:var(--uas--typography--body-small-font-family);font-size:var(--uas--typography--body-small-font-size);line-height:var(--uas--typography--body-small-line-height);font-weight:var(--uas--typography--body-small-font-weight);letter-spacing:var(--uas--typography--body-small-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;color:var(--uas--typography--color-secondary)}.pagination__buttons{display:flex;align-items:center;gap:var(--uas--base--spacing-sm)}",""]),i.d(t,["default",0,r])},5644(e,t,i){"use strict";i.r(t);var a=i(1601),n=i.n(a),o=i(6314),r=(i.n(o))()(n());r.push([e.id,":host{display:block}.entry{font-family:var(--uas--typography--body-small-font-family);font-size:var(--uas--typography--body-small-font-size);line-height:var(--uas--typography--body-small-line-height);font-weight:var(--uas--typography--body-small-font-weight);letter-spacing:var(--uas--typography--body-small-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;display:flex;flex-direction:column;gap:var(--uas--base--spacing-xs);color:var(--uas--typography--color-secondary)}.entry__recipe{overflow:hidden;font-weight:600;color:var(--uas--typography--color);white-space:nowrap;text-overflow:ellipsis}.entry__status{display:flex;flex-wrap:wrap;align-items:center;gap:var(--uas--base--spacing-xs)}.entry__top{display:flex;align-items:center;justify-content:space-between;gap:var(--uas--base--spacing-sm)}.entry__integrations{flex:1 1 auto;min-inline-size:0}.entry__date{flex:none;white-space:nowrap}.line{display:grid;grid-template-columns:minmax(0, 2.2fr) 208px 208px minmax(0, 1.5fr);align-items:center;column-gap:var(--uas--base--spacing-md);min-inline-size:0;text-align:start;font-family:var(--uas--typography--body-medium-font-family);font-size:var(--uas--typography--body-medium-font-size);line-height:var(--uas--typography--body-medium-line-height);font-weight:var(--uas--typography--body-medium-font-weight);letter-spacing:var(--uas--typography--body-medium-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;color:var(--uas--typography--color)}.line--headings{font:inherit;color:inherit}.line__main{display:flex;align-items:center;gap:var(--uas--base--spacing-sm);min-inline-size:0}.line__title{min-inline-size:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.line__status{display:flex;flex-wrap:wrap;align-items:center;gap:var(--uas--base--spacing-2xs) var(--uas--base--spacing-xs);min-inline-size:0}.line__stack{display:flex;flex-direction:column;gap:var(--uas--base--spacing-2xs);min-inline-size:0}.line__date,.line__ago{min-inline-size:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-family:var(--uas--typography--body-small-font-family);font-size:var(--uas--typography--body-small-font-size);line-height:var(--uas--typography--body-small-line-height);font-weight:var(--uas--typography--body-small-font-weight);letter-spacing:var(--uas--typography--body-small-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;color:var(--uas--typography--color-secondary)}.line__user{--uap--f--page-logs-viewer-user--name-color: var( --uas--typography--color );min-inline-size:0}.line__integrations{flex:none}",""]),i.d(t,["default",0,r])},146(e,t,i){"use strict";i.r(t);var a=i(1601),n=i.n(a),o=i(6314),r=(i.n(o))()(n());r.push([e.id,":host{display:block}.row{container-type:inline-size;display:flex;align-items:flex-start;gap:var(--uas--base--spacing-sm);padding-block:var(--uas--base--spacing-md);padding-inline:calc(var(--uas--base--spacing-lg) - 3px) var(--uas--base--spacing-lg);border-block-end:1px solid var(--uas--table--border-color);border-inline-start:3px solid rgba(0,0,0,0)}.row:hover{background:var(--uas--table--heading-bg)}.row--checked{background:var(--uas--color--status-info-container)}.row--checked:hover{background:var(--uas--color--status-info-container)}.row--active{background:var(--uas--color--status-info-container);border-inline-start-color:var(--uas--color--primary)}.row--active:hover{background:var(--uas--color--status-info-container)}.row__check{flex:none;inline-size:18px;block-size:18px;margin:3px 0 0;accent-color:var(--uas--color--primary)}.row--dense{align-items:center;padding-block:var(--uas--base--spacing-sm)}.row--dense .row__check{margin:0}.row--heading{display:block;padding:0;border:0}.row--heading:hover{background:none}.row__heading{font-family:var(--uas--typography--label-medium-font-family);font-size:var(--uas--typography--label-medium-font-size);line-height:var(--uas--typography--label-medium-line-height);font-weight:var(--uas--typography--label-medium-font-weight);letter-spacing:var(--uas--typography--label-medium-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;display:flex;align-items:center;gap:var(--uas--base--spacing-sm);padding-block:var(--uas--base--spacing-xs);padding-inline:calc(var(--uas--base--spacing-lg) - 3px) var(--uas--base--spacing-lg);color:var(--uas--table--heading-color);background:var(--uas--table--heading-bg);border-block-end:1px solid var(--uas--table--border-color);border-inline-start:3px solid rgba(0,0,0,0)}.row__details-icon{margin-inline-start:var(--uas--base--spacing-2xs)}.row__check--space,.row__details--space{visibility:hidden}.row__check--space{margin:0}.row__details{flex:none;align-self:center}@container ( max-inline-size: 640px ){.row:not(.row--dense) .row__details{display:none}}.row__open{flex:1 1 0;min-inline-size:0;padding:0;font:inherit;color:inherit;text-align:start;background:none;border:0;border-radius:var(--uas--base--border-radius-xs);cursor:pointer}.row__open:focus-visible{outline:2px solid var(--uas--color--primary);outline-offset:2px}.row__open--heading{font:inherit;cursor:default}",""]),i.d(t,["default",0,r])},2239(e,t,i){"use strict";i.r(t);var a=i(1601),n=i.n(a),o=i(6314),r=(i.n(o))()(n());r.push([e.id,":host{display:block}.run{font-family:var(--uas--typography--body-medium-font-family);font-size:var(--uas--typography--body-medium-font-size);line-height:var(--uas--typography--body-medium-line-height);font-weight:var(--uas--typography--body-medium-font-weight);letter-spacing:var(--uas--typography--body-medium-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;container-type:inline-size;block-size:100%;font-family:var(--uas--typography--font--family);color:var(--uas--typography--color)}.run__shell{display:block;block-size:100%}.run__canvas{min-block-size:320px}.run__sheet-title{flex:1;min-inline-size:0;font-size:1.05em;font-weight:600;line-height:1.3;overflow-wrap:anywhere}.run__sheet-back,.run__sheet-close{--uas--button--custom-color: var( --uas--typography--color-secondary );--uas--button--size-custom-padding-left: var( --uas--base--spacing-xs );--uas--button--size-custom-padding-right: var( --uas--base--spacing-xs );flex:0 0 auto}.run__sheet-back{margin-inline:calc(-1*var(--uas--base--spacing-xs)) var(--uas--base--spacing-xs)}.run__sheet-close{margin-inline-end:var(--uas--side-sheet--button-left-padding)}.run__flow{display:block;padding:var(--uas--base--spacing-xl) var(--uas--base--spacing-4xl) var(--uas--base--spacing-4xl)}@container ( max-width: 768px ){.run__flow{padding:var(--uas--base--spacing-xl) var(--uas--base--spacing-xl) var(--uas--base--spacing-xl)}}.run__sheet{--uas--side-sheet--custom-width: 430px;--uas--side-sheet--custom-max-width: 430px;--uas--side-sheet--custom-left-padding: 0}@container ( max-width: 760px ){.run__sheet{--uas--side-sheet--custom-width: 100%;--uas--side-sheet--custom-min-width: 0px;--uas--side-sheet--custom-max-width: 100%}}",""]),i.d(t,["default",0,r])},669(e,t,i){"use strict";i.r(t);var a=i(1601),n=i.n(a),o=i(6314),r=(i.n(o))()(n());r.push([e.id,":host{display:block}.heading{display:inline-flex;align-items:center;gap:var(--uas--base--spacing-2xs);max-inline-size:100%;padding:0;font:inherit;color:inherit;white-space:nowrap;background:none;border:0;border-radius:var(--uas--base--border-radius-xs);cursor:pointer}.heading__arrow{visibility:hidden}.heading:hover,.heading--active{color:var(--uas--typography--color)}.heading:focus-visible{outline:2px solid var(--uas--color--primary);outline-offset:2px}.heading:hover .heading__arrow,.heading:focus-visible .heading__arrow,.heading--active .heading__arrow{visibility:visible}",""]),i.d(t,["default",0,r])},4769(e,t,i){"use strict";i.r(t);var a=i(1601),n=i.n(a),o=i(6314),r=(i.n(o))()(n());r.push([e.id,":host{display:block}.state{padding:var(--uas--base--spacing-lg)}.state--loading{padding:0}.state__row{display:flex;flex-direction:column;gap:var(--uas--base--spacing-xs);padding:var(--uas--base--spacing-md) var(--uas--base--spacing-lg);border-block-end:1px solid var(--uas--table--border-color)}.state--error{display:flex;flex-direction:column;align-items:flex-start;gap:var(--uas--base--spacing-sm)}.state--error>uas-alert{align-self:stretch}.state--empty{display:flex;flex-direction:column;align-items:center;gap:var(--uas--base--spacing-sm);padding-block:var(--uas--base--spacing-3xl);color:var(--uas--typography--color-secondary);text-align:center}.state__message{margin:0}",""]),i.d(t,["default",0,r])},6461(e,t,i){"use strict";i.r(t);var a=i(1601),n=i.n(a),o=i(6314),r=(i.n(o))()(n());r.push([e.id,":host{display:block;min-inline-size:0}.user{font-family:var(--uas--typography--body-small-font-family);font-size:var(--uas--typography--body-small-font-size);line-height:var(--uas--typography--body-small-line-height);font-weight:var(--uas--typography--body-small-font-weight);letter-spacing:var(--uas--typography--body-small-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;display:flex;align-items:center;gap:var(--uas--base--spacing-2xs);min-inline-size:0;color:var(--uap--f--page-logs-viewer-user--name-color, var(--uas--typography--color-secondary))}.user__picture{display:inline-flex;flex:none;align-items:center;justify-content:center;inline-size:18px;block-size:18px;overflow:hidden;font-size:8px;font-weight:700;color:var(--uap--f--page-logs-viewer-user--color, var(--uas--typography--color-secondary));background:var(--uap--f--page-logs-viewer-user--background, var(--uas--color--status-neutral-container));border-radius:50%;object-fit:cover}.user--md .user__picture{inline-size:24px;block-size:24px;font-size:10px}.user--md{gap:var(--uas--base--spacing-xs)}.user--md .user__name{font-family:var(--uas--typography--body-medium-font-family);font-size:var(--uas--typography--body-medium-font-size);line-height:var(--uas--typography--body-medium-line-height);font-weight:var(--uas--typography--body-medium-font-weight);letter-spacing:var(--uas--typography--body-medium-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.user__text{display:flex;flex-direction:column;min-inline-size:0}.user__name,.user__email{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.user__email{font-family:var(--uas--typography--label-small-font-family);font-size:var(--uas--typography--label-small-font-size);line-height:var(--uas--typography--label-small-line-height);font-weight:var(--uas--typography--label-small-font-weight);letter-spacing:var(--uas--typography--label-small-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-weight:400;color:var(--uas--typography--color-secondary)}",""]),i.d(t,["default",0,r])},919(e,t,i){"use strict";i.r(t);var a=i(1601),n=i.n(a),o=i(6314),r=(i.n(o))()(n());r.push([e.id,":host{display:inline-block}.switcher__caret{margin-inline-start:var(--uas--base--spacing-2xs)}.switcher__option-content{display:inline-flex;align-items:center;gap:var(--uas--base--spacing-xs);white-space:nowrap}.switcher__check--off{visibility:hidden}",""]),i.d(t,["default",0,r])},8466(e,t,i){"use strict";i.r(t);var a=i(1601),n=i.n(a),o=i(6314),r=(i.n(o))()(n());r.push([e.id,":host{display:block}.viewer{font-family:var(--uas--typography--body-medium-font-family);font-size:var(--uas--typography--body-medium-font-size);line-height:var(--uas--typography--body-medium-line-height);font-weight:var(--uas--typography--body-medium-font-weight);letter-spacing:var(--uas--typography--body-medium-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;color:var(--uas--typography--color);border-radius:var(--uas--base--border-radius-md);background:var(--uas--color--surface)}.viewer__tabs{--uas--tabs--custom-border-block-start: 0;--uas--tabs--custom-min-height: 0}.viewer__header{position:relative}.viewer__view{position:absolute;inset-block:0;inset-inline-end:var(--uas--base--spacing-lg);margin-inline-end:calc(-1*var(--uas--button--size-sm-padding-right));display:flex;align-items:center}.viewer__count{margin-inline-start:var(--uas--base--spacing-2xs)}",""]),i.d(t,["default",0,r])},5465(e,t,i){"use strict";i.r(t);var a=i(1601),n=i.n(a),o=i(6314),r=(i.n(o))()(n());r.push([e.id,":host{--uap-page-settings-account-avatar-size: 24px;--uap-page-settings-account-avatar-size-lg: 48px;--uap-page-settings-account-pill-padding: 4px 8px;--uap-page-settings-account-panel-padding: 16px;--uap-page-settings-account-font-size-sm: 0.9em}:host{display:inline-block;line-height:1}.integration-account{display:inline-flex;align-items:center;gap:var(--uas--base--spacing-xs)}.integration-account img{display:block;max-width:100%;height:auto}.integration-account--loading{pointer-events:none;opacity:.7}.integration-account--loading .integration-account__avatar,.integration-account--loading .integration-account__username,.integration-account--loading .username{display:flex;align-items:center;gap:var(--uas--base--spacing-xs)}.integration-account--pill{display:flex;align-items:center;gap:var(--uas--base--spacing-xs);padding:var(--uap-page-settings-account-pill-padding);font-size:var(--uap-page-settings-account-font-size-sm)}.integration-account--pill img{width:var(--uap-page-settings-account-avatar-size);height:var(--uap-page-settings-account-avatar-size);border-radius:50%;object-fit:cover}.integration-account--pill .username{font-weight:500;color:var(--uas--typography--color)}.integration-account--pill uas-icon{line-height:1;margin-top:2px}.integration-account--pill .integration-account__message{color:var(--uas--typography--color-secondary)}.integration-account--panel{display:flex;align-items:flex-start;gap:12px;padding:var(--uap-page-settings-account-panel-padding);background:#fff;border-radius:var(--uas--base--border-radius-md)}.integration-account--panel .integration-account__avatar{flex-shrink:0}.integration-account--panel .integration-account__avatar img{width:var(--uap-page-settings-account-avatar-size-lg);height:var(--uap-page-settings-account-avatar-size-lg);border-radius:50%;object-fit:cover}.integration-account--panel .integration-account__avatar uas-icon{width:var(--uap-page-settings-account-avatar-size-lg);height:var(--uap-page-settings-account-avatar-size-lg);color:var(--uas--color--primary)}.integration-account--panel .integration-account__content{flex-grow:1;min-width:0}.integration-account--panel .integration-account__username{display:flex;align-items:center;gap:var(--uas--base--spacing-xs);font-weight:500;color:var(--uas--typography--color);margin-bottom:4px}.integration-account--panel .integration-account__username uas-icon{color:var(--uas--color--primary)}.integration-account--panel .integration-account__message{color:var(--uas--typography--color-secondary);font-size:var(--uap-page-settings-account-font-size-sm);margin-top:4px}.integration-account--panel ::slotted(*){color:var(--uas--typography--color-secondary);font-size:var(--uap-page-settings-account-font-size-sm)}.integration-account--badge{font-family:var(--uas--typography--body-medium-font-family);font-size:var(--uas--typography--body-medium-font-size);line-height:var(--uas--typography--body-medium-line-height);font-weight:var(--uas--typography--body-medium-font-weight);letter-spacing:var(--uas--typography--body-medium-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;display:inline-flex;align-items:center;border-radius:var(--uas--base--border-radius-md);color:var(--uas--typography--color-secondary)}.integration-account--badge[data-status=success]{background:var(--uap-success-color-light, #e6f9ec);color:var(--uap-success-color, #2ecc40)}.integration-account--badge[data-status=error]{background:var(--uap-error-color-light, #ffeaea);color:var(--uap-error-color, #ff4136)}.integration-account--badge[data-status=warning]{background:var(--uap-warning-color-light, #fff8e1);color:var(--uap-warning-color, #ffb400)}.integration-account--badge[data-status=info]{background:var(--uap-info-color-light, #e7f3ff);color:var(--uap-info-color, #0074d9)}.integration-account--badge .integration-account__message{margin-left:4px}",""]),i.d(t,["default",0,r])},5473(e,t,i){"use strict";i.r(t);var a=i(1601),n=i.n(a),o=i(6314),r=(i.n(o))()(n());r.push([e.id,":host{display:contents}.component-loader{display:contents}.component-loader--vertical{display:flex;flex-direction:column;gap:1rem}.component-loader--horizontal{display:flex;flex-direction:row;gap:1rem;align-items:center}.component-loader--grid{display:grid;grid-template-columns:repeat(auto-fit, minmax(200px, 1fr));gap:1rem}.component-loader__component{display:contents}.component-loader__component--button{display:inline-flex}.component-loader__component--switch{display:inline-flex}.component-loader__component--text-field{display:block}.component-loader__component--text{display:block}.component-loader__component--icon{display:inline-flex}.component-loader__component--account{display:block}",""]),i.d(t,["default",0,r])},8995(e,t,i){"use strict";i.r(t);var a=i(1601),n=i.n(a),o=i(6314),r=(i.n(o))()(n());r.push([e.id,".confirm-dialog__content{margin-bottom:1rem}.confirm-dialog__form{margin:1rem 0;padding:0;border:0;background:none}",""]),i.d(t,["default",0,r])},2794(e,t,i){"use strict";i.r(t);var a=i(1601),n=i.n(a),o=i(6314),r=(i.n(o))()(n());r.push([e.id,":host{--uap-page-settings-list-shadow: 0 2px 8px rgba(0,0,0,0.07);--uap-page-settings-list-heading-font-size: 1.15em;--uap-page-settings-list-row-margin-bottom: 1.5em;--uap-page-settings-list-main-gap: 12px;--uap-page-settings-list-cell-padding: 12px;--uap-page-settings-list-cell-min-height: 48px;--uap-page-settings-list-cell-padding-left: 12px;--uap-page-settings-list-button-padding-right: 12px;--uap-page-settings-list-description-bg: color-mix(in srgb, var(--uas--color--border) 20%, #fff 80%);--uap-page-settings-list-description-padding: 12px;--uap-page-settings-list-icon-size: 1.4em;--uap-page-settings-list-columns: 3}:host{display:block;width:100%;margin-bottom:1em;box-sizing:border-box}:host *{box-sizing:border-box}.settings-table{width:100%}.settings-table__row{width:100%}.settings-table__content{display:flex;align-items:center;gap:var(--uap-page-settings-list-main-gap);width:100%}.settings-table__cell{padding:var(--uap-page-settings-list-cell-padding);background:none;border:none;color:var(--uas--typography--color);font-weight:400;text-align:left;flex:1 1 auto;min-width:0}.settings-table__cell:first-child{padding-left:var(--uap-page-settings-list-cell-padding-left)}.settings-table__cell:last-child{padding-right:var(--uap-page-settings-list-cell-padding-left)}.settings-table__cell--icon{flex:0 0 auto;padding-left:var(--uap-page-settings-list-cell-padding-left)}.settings-table__cell--icon uas-icon:not([size]){font-size:var(--uap-page-settings-list-icon-size);opacity:.9}.settings-table__cell--button{flex:0 0 auto;white-space:nowrap}.settings-table__cell--button uas-button{width:auto}.settings-table__cell--switch{flex:0 0 auto;white-space:nowrap}.settings-table__cell--account,.settings-table__cell--text,.settings-table__cell--input{flex:1 1 auto;min-width:0}.settings-table__cell uas-button{width:auto}.settings-table__cell .component-loader{width:100%}.settings-table__cell .component-loader--horizontal{display:flex;align-items:center;gap:8px}.settings-table__cell .component-loader--vertical{display:flex;flex-direction:column;gap:4px}.settings-table__cell .component-loader--grid{display:grid;gap:8px;grid-template-columns:repeat(auto-fit, minmax(120px, 1fr))}.settings-table__heading{font-size:var(--uap-page-settings-list-heading-font-size);padding:var(--uap-page-settings-list-cell-padding);padding-bottom:0;text-align:left;font-weight:bold}.settings-table__description{width:100%;padding:var(--uap-page-settings-list-description-padding);color:var(--uas--typography--color-secondary)}.settings-table--table{display:flex;flex-direction:column;width:100%}.settings-table--table .settings-table__content{display:grid;width:100%;grid-template-columns:repeat(var(--uap-page-settings-list-columns), minmax(0, 1fr))}.settings-table--table .settings-table__headings .settings-table__content .settings-table__cell{font-weight:bold;font-size:var(--uap-page-settings-list-heading-font-size);color:var(--uas--typography--color)}.settings-table--table .settings-table__row:not(.settings-table__headings) .settings-table__content{width:100%}.settings-table--card{display:flex;flex-direction:column;gap:var(--uap-page-settings-list-row-margin-bottom)}.settings-table--card .settings-table__row{display:flex;flex-direction:column;border:1px solid var(--uas--color--border);border-radius:var(--uas--base--border-radius-md);background:#fff;overflow:hidden;box-shadow:var(--uap-page-settings-list-shadow)}.settings-table--card .settings-table__content .settings-table__cell{display:flex;align-items:center}.settings-table--card .settings-table__content .settings-table__cell--icon:first-child{margin-right:-24px}.settings-table--card .settings-table__content .settings-table__cell--title{flex:1 1 0;min-width:0;word-break:break-word;padding-left:0}.settings-table--card .settings-table__content .settings-table__cell--button:not(:first-child){flex-shrink:0;margin-left:auto;padding-right:var(--uap-page-settings-list-button-padding-right)}.settings-table--card .settings-table__description{border-top:1px solid var(--uas--color--border);border-radius:0 0 var(--uas--base--border-radius-md) var(--uas--base--border-radius-md);background:var(--uap-page-settings-list-description-bg)}.settings-table__account-placeholder{display:flex;align-items:center;gap:12px;padding:4px 0}.settings-table__account-placeholder-content{display:flex;flex-direction:column;gap:4px}.settings-table__description-placeholder{display:flex;flex-direction:column;gap:8px;padding:4px 0}",""]),i.d(t,["default",0,r])},9145(e,t,i){"use strict";i.r(t);var a=i(1601),n=i.n(a),o=i(6314),r=(i.n(o))()(n());r.push([e.id,":host{display:block}:host(.inline){display:inline-block}.uap-bordered-section{border:1.5px solid var(--uas--color--border, #e4e4e4);border-radius:var(--uas--base--border-radius-md, 10px);padding:var(--uas--base--spacing-lg, 20px);margin-bottom:var(--uas--base--spacing-lg, 20px);background:var(--uap-background-color-light, #fafbfc)}",""]),i.d(t,["default",0,r])},7413(e,t,i){"use strict";i.r(t);var a=i(1601),n=i.n(a),o=i(6314),r=(i.n(o))()(n());r.push([e.id,":host{display:inline-block}.status{display:inline-flex;align-items:center;gap:1ex}.status__icon{font-family:var(--uas--typography--body-medium-font-family);font-size:var(--uas--typography--body-medium-font-size);line-height:var(--uas--typography--body-medium-line-height);font-weight:var(--uas--typography--body-medium-font-weight);letter-spacing:var(--uas--typography--body-medium-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.status__count{font-weight:500}.tooltip-nowrap{white-space:nowrap}",""]),i.d(t,["default",0,r])},8319(e,t,i){"use strict";i.r(t);var a=i(1601),n=i.n(a),o=i(6314),r=(i.n(o))()(n());r.push([e.id,'table{font-family:var(--uas--typography--body-medium-font-family);font-size:var(--uas--typography--body-medium-font-size);line-height:var(--uas--typography--body-medium-line-height);font-weight:var(--uas--typography--body-medium-font-weight);letter-spacing:var(--uas--typography--body-medium-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;color:var(--uas--typography--color);border-collapse:collapse;width:100%;--uap-page-upgrade-table-cell-padding-top: 10px;--uap-page-upgrade-table-cell-padding-left: 15px}@media(width < 768px){table{--uap-page-upgrade-table-cell-padding-top: 7px;--uap-page-upgrade-table-cell-padding-left: 10px}}table thead tr.header-row{background:#fff;position:sticky;top:32px;padding:10px 0;z-index:1}@media(width < 768px){table thead tr.header-row{top:0}}table thead tr.header-row th{font-weight:500;text-align:center;padding:calc(var(--uap-page-upgrade-table-cell-padding-top)*2 + 24px) var(--uap-page-upgrade-table-cell-padding-left) calc(var(--uap-page-upgrade-table-cell-padding-top)*2) var(--uap-page-upgrade-table-cell-padding-left)}@media(width < 768px){table thead tr.header-row th{vertical-align:bottom}}@media(width < 768px){table thead tr.header-row th.header-row-column-tier{width:1%;white-space:nowrap}}@media(width > 768px){table thead tr.header-row th.header-row-column-tier .header-row-column-tier-name{display:flex;align-items:center;justify-content:center;gap:4px}}table thead tr.header-row th:has(.current-plan-badge){padding:var(--uap-page-upgrade-table-cell-padding-top) 0}table thead tr.header-row th .current-plan-badge{background-color:var(--uap-page-upgrade-table-section-header-current-plan-bg);border-radius:var(--uas--base--border-radius-md)}table thead tr.header-row th .current-plan-badge-header{font-family:var(--uas--typography--body-small-font-family);font-size:var(--uas--typography--body-small-font-size);line-height:var(--uas--typography--body-small-line-height);font-weight:var(--uas--typography--body-small-font-weight);letter-spacing:var(--uas--typography--body-small-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;background-color:var(--uap-page-upgrade-table-section-header-current-plan-header-bg);border-top-left-radius:var(--uas--base--border-radius-md);border-top-right-radius:var(--uas--base--border-radius-md);height:24px;line-height:24px;padding:0 var(--uap-page-upgrade-table-cell-padding-left);display:flex;align-items:center;justify-content:center;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}table thead tr.header-row th .current-plan-badge-header-mobile{display:none}@media(width < 768px){table thead tr.header-row th .current-plan-badge-header-desktop{display:none}table thead tr.header-row th .current-plan-badge-header-mobile{display:block}}table thead tr.header-row th .current-plan-badge-name{padding:var(--uap-page-upgrade-table-cell-padding-top) var(--uap-page-upgrade-table-cell-padding-left)}table tbody tr.section-header td{background-color:var(--uap-page-upgrade-table-section-header-background);border-radius:var(--uas--base--border-radius-md);padding:var(--uap-page-upgrade-table-cell-padding-top) var(--uap-page-upgrade-table-cell-padding-left)}table tbody tr.section-row:not(:has(+.section-header)){border-bottom:1px solid var(--uas--color--border)}table tbody tr.section-row:last-child{border-bottom:none}table tbody tr.section-row td{padding:calc(var(--uap-page-upgrade-table-cell-padding-top)*2) var(--uap-page-upgrade-table-cell-padding-left);text-align:center}table tbody tr.section-row .section-row-column-id{text-align:left}@media(width < 768px){table tbody tr.section-row .section-row-column-id{overflow-wrap:anywhere}}table tbody tr.section-row .section-row-column-id .section-row-name{font-weight:600;line-height:1.4}table tbody tr.section-row .section-row-column-id .section-row-name uas-chip{margin-left:3px;vertical-align:top}table tbody tr.section-row .section-row-column-id .section-row-description{font-size:var(--uap-page-upgrade-table-description-font-size);color:var(--uas--typography--color-secondary);line-height:1.4;padding-top:3px}table tbody tr.section-row .section-row-column-id .section-row-learn-more{font-size:var(--uap-page-upgrade-table-description-font-size);color:var(--uas--typography--color-secondary);line-height:1.4;font-weight:500;color:var(--uas--color--primary);text-decoration:none}table tbody tr.section-row .section-row-column-id .section-row-learn-more uas-icon{font-size:.85em}table tbody tr.section-row .section-row-column-id ul{list-style-type:none;padding:3px 0;margin:0}table tbody tr.section-row .section-row-column-id ul li{padding:1px 0}table tbody tr.section-row .section-row-column-id ul li uas-icon{font-size:.85em;margin-right:2px}@media(width < 768px){table tbody tr.section-row .section-row-column-tier{width:1%;white-space:nowrap}}table tbody tr.section-row .section-row-column-tier uap-upgrade-table-status{font-family:var(--uas--typography--body-large-font-family);font-size:var(--uas--typography--body-large-font-size);line-height:var(--uas--typography--body-large-line-height);font-weight:var(--uas--typography--body-large-font-weight);letter-spacing:var(--uas--typography--body-large-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}table tbody tr.section-row .section-row-column-tier-text{font-size:var(--uap-page-upgrade-table-description-font-size);color:var(--uas--typography--color-secondary);min-width:80px}@media(width < 768px){table tbody tr.section-row .section-row-column-tier-text{display:none}}table tbody tr.section-row[data-id=usage-limits-number-of-sites] .section-row-column-tier-text{font-family:var(--uas--typography--body-medium-font-family);font-size:var(--uas--typography--body-medium-font-size);line-height:var(--uas--typography--body-medium-line-height);font-weight:var(--uas--typography--body-medium-font-weight);letter-spacing:var(--uas--typography--body-medium-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}table tfoot tr td{position:sticky;bottom:-1px}table tfoot tr td .cta{--uas--button--size-custom-font-size: var(--uas--typography--body-medium-font-size);--uas--button--custom-font-weight: 600;--uas--button--size-custom-height: 38px;--uas--button--custom-color: #fff;--uas--button--custom-border-radius: 150px;--uas--button--size-custom-padding-left: 20px;--uas--button--size-custom-padding-right: 20px;border-top:1px solid var(--uas--color--border);padding:var(--uap-page-upgrade-table-cell-padding-top) var(--uap-page-upgrade-table-cell-padding-left);background-color:#fff;box-shadow:0 -10px 15px 0 rgba(0,0,0,.07);display:flex;align-items:center;gap:var(--uas--base--spacing-sm);justify-content:space-between;position:relative}table tfoot tr td .cta uas-button[color=success]{--uas--button--custom-background: var(--uas--color--accent);--uas--button--custom-border: var(--uas--color--accent)}table tfoot tr td .cta uas-button[color=primary]{--uas--button--custom-background: var(--uas--color--primary);--uas--button--custom-border: var(--uas--color--primary)}table tfoot tr td .cta::before,table tfoot tr td .cta::after{content:"";width:var(--uas--page--padding-left);height:100%;position:absolute;top:0;z-index:1;background-color:#fff}table tfoot tr td .cta::before{right:100%}table tfoot tr td .cta::after{left:100%}table tfoot tr td .cta-text{font-family:var(--uas--typography--body-medium-font-family);font-size:var(--uas--typography--body-medium-font-size);line-height:var(--uas--typography--body-medium-line-height);font-weight:var(--uas--typography--body-medium-font-weight);letter-spacing:var(--uas--typography--body-medium-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;color:var(--uas--typography--color-secondary)}table tfoot tr td .cta uas-icon:first-child{margin-right:3px}',""]),i.d(t,["default",0,r])},6841(e,t,i){"use strict";i.r(t);var a=i(1601),n=i.n(a),o=i(6314),r=(i.n(o))()(n());r.push([e.id,'.banner{font-family:var(--uas--typography--body-large-font-family);font-size:var(--uas--typography--body-large-font-size);line-height:var(--uas--typography--body-large-line-height);font-weight:var(--uas--typography--body-large-font-weight);letter-spacing:var(--uas--typography--body-large-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;background:var(--uap-page-upgrade-banner-background-color);padding:var(--uap-page-upgrade-banner-padding);border-radius:var(--uas--base--border-radius-md);position:relative;z-index:100}@media(width < 768px){.banner{padding:var(--uap-page-upgrade-banner-padding-mobile)}}.banner-content{width:clamp(200px,60%,370px);position:relative;z-index:2;display:flex;align-items:flex-start;flex-direction:column;gap:var(--uas--base--spacing-xs)}@media(width < 768px){.banner-content{width:100%}}.banner-content-logo{padding-bottom:var(--uas--base--spacing-sm)}.banner-content-logo img{width:225px;max-width:100%;display:inline-block}.banner-content-title{font-family:var(--uas--typography--title-large-font-family);font-size:var(--uas--typography--title-large-font-size);line-height:var(--uas--typography--title-large-line-height);font-weight:var(--uas--typography--title-large-font-weight);letter-spacing:var(--uas--typography--title-large-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;margin:0}.banner-content-description{font-family:var(--uas--typography--body-large-font-family);font-size:var(--uas--typography--body-large-font-size);line-height:var(--uas--typography--body-large-line-height);font-weight:var(--uas--typography--body-large-font-weight);letter-spacing:var(--uas--typography--body-large-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;color:rgba(0,0,0,.6)}.banner-content-cta{--uas--button--size-custom-font-size: var(--uas--typography--body-small-font-size);--uas--button--custom-font-weight: 600;--uas--button--size-custom-height: 38px;--uas--button--custom-color: #fff;--uas--button--custom-border-radius: 150px;--uas--button--size-custom-padding-left: 20px;--uas--button--size-custom-padding-right: 20px;padding-top:var(--uas--base--spacing-sm)}.banner-content-cta uas-button[color=success]{--uas--button--custom-background: var(--uas--color--accent);--uas--button--custom-border: var(--uas--color--accent)}.banner-content-cta uas-button[color=primary]{--uas--button--custom-background: var(--uas--color--primary);--uas--button--custom-border: var(--uas--color--primary)}.banner-content-cta uas-icon:first-child{margin-right:3px}.banner-content-cta-disclaimer{font-family:var(--uas--typography--body-medium-font-family);font-size:var(--uas--typography--body-medium-font-size);line-height:var(--uas--typography--body-medium-line-height);font-weight:var(--uas--typography--body-medium-font-weight);letter-spacing:var(--uas--typography--body-medium-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;padding-top:var(--uas--base--spacing-xs);color:var(--uas--typography--color-secondary)}.banner-background{width:100%;height:100%;position:absolute;top:0;left:0;right:0;bottom:0;z-index:1;display:flex;align-items:flex-start;justify-content:flex-end;border-radius:var(--uas--base--border-radius-md);overflow:hidden}@media(width < 768px){.banner-background{display:none}}.banner-background-items{width:70%;transform:translate(20%, -50%);top:50%;position:absolute;right:0;display:flex;flex-wrap:wrap;justify-content:center;align-items:flex-start;gap:var(--uap-page-upgrade-banner-item-gap)}.banner-background-items::before{content:"";position:absolute;top:-20px;left:-20px;right:-20px;bottom:-20px;z-index:1;background:linear-gradient(to right, var(--uap-page-upgrade-banner-background-color) 10%, transparent)}:dir(rtl) .banner-background-items{right:auto;left:0;transform:translate(-20%, -50%)}:dir(rtl) .banner-background-items::before{background:linear-gradient(to left, var(--uap-page-upgrade-banner-background-color) 10%, transparent)}.banner-background-item{font-family:var(--uas--typography--body-small-font-family);font-size:var(--uas--typography--body-small-font-size);line-height:var(--uas--typography--body-small-line-height);font-weight:var(--uas--typography--body-small-font-weight);letter-spacing:var(--uas--typography--body-small-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;background:#fff;border-radius:var(--uas--base--border-radius-md);line-height:1;padding:var(--uap-page-upgrade-banner-item-padding);display:flex;align-items:center;white-space:nowrap;gap:8px;box-shadow:var(--uas--base--shadow-lg);animation:linear infinite both}.banner-background-item:nth-child(4n+1){animation-name:vibrate-1;animation-duration:11s}.banner-background-item:nth-child(4n+2){animation-name:vibrate-2;animation-duration:12s}.banner-background-item:nth-child(4n+3){animation-name:vibrate-3;animation-duration:13s}.banner-background-item:nth-child(4n+4){animation-name:vibrate-4;animation-duration:14s}@keyframes vibrate-1{0%{transform:translate(0)}20%{transform:translate(-2px, 2px)}40%{transform:translate(-2px, -2px)}60%{transform:translate(2px, 2px)}80%{transform:translate(2px, -2px)}100%{transform:translate(0)}}@keyframes vibrate-2{0%{transform:translate(0)}25%{transform:translate(3px, 0)}50%{transform:translate(0, 3px)}75%{transform:translate(-3px, 0)}100%{transform:translate(0)}}@keyframes vibrate-3{0%{transform:translate(0) rotate(0)}33%{transform:translate(2px, 2px) rotate(1deg)}66%{transform:translate(-2px, -2px) rotate(-1deg)}100%{transform:translate(0) rotate(0)}}@keyframes vibrate-4{0%{transform:translate(0)}20%{transform:translate(0, 3px)}40%{transform:translate(3px, 3px)}60%{transform:translate(3px, 0)}80%{transform:translate(0, -3px)}100%{transform:translate(0)}}.banner-background-item-icon{width:var(--uap-page-upgrade-banner-item-icon-width);aspect-ratio:1;background-color:var(--uap-page-upgrade-banner-item-icon-bg-color);color:var(--uap-page-upgrade-banner-item-icon-color);border-radius:var(--uas--base--border-radius-md);font-size:calc(var(--uap-page-upgrade-banner-item-icon-width)*.5);display:flex;align-items:center;justify-content:center}',""]),i.d(t,["default",0,r])},920(e,t,i){"use strict";i.r(t);var a=i(1601),n=i.n(a),o=i(6314),r=(i.n(o))()(n());r.push([e.id,":host{display:block}.page{font-family:var(--uas--typography--font--family);background:var(--uas--color--surface);padding:var(--uas--page--padding)}.page-content{width:clamp(0px,100%,var(--uas--page--max-width));margin:0 auto;display:flex;flex-direction:column;gap:var(--uas--base--spacing-3xl)}@media(width >= 1024px){.page-content-inner{padding:var(--uas--page--inner-padding)}}.page-content-section{padding-block-start:var(--uas--base--spacing-3xl)}.page-content-section:first-child{padding-block-start:0}.page-content-section h1,.page-content-section h2{margin-block-start:.83em;margin-block-end:.83em}.page-content-section h1{font-family:var(--uas--typography--headline-small-font-family);font-size:var(--uas--typography--headline-small-font-size);line-height:var(--uas--typography--headline-small-line-height);font-weight:var(--uas--typography--headline-small-font-weight);letter-spacing:var(--uas--typography--headline-small-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.page-content-section h2{font-family:var(--uas--typography--title-large-font-family);font-size:var(--uas--typography--title-large-font-size);line-height:var(--uas--typography--title-large-line-height);font-weight:var(--uas--typography--title-large-font-weight);letter-spacing:var(--uas--typography--title-large-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}",""]),i.d(t,["default",0,r])},3181(e,t,i){"use strict";i.r(t);var a=i(1601),n=i.n(a),o=i(6314),r=(i.n(o))()(n());r.push([e.id,":host{display:block}.nowrap{white-space:nowrap}",""]),i.d(t,["default",0,r])},7355(e,t,i){"use strict";i.r(t);var a=i(1601),n=i.n(a),o=i(6314),r=(i.n(o))()(n());r.push([e.id,':host{display:block}.band{display:flex;flex-direction:column;align-items:center;gap:var(--uap--d--recipe-canvas--node-gap, 56px)}.band__pill{pointer-events:auto;display:inline-flex;align-items:center;max-inline-size:100%;padding:var(--uas--base--spacing-xs) var(--uas--base--spacing-md);background:var(--uas--color--surface);border:1px solid var(--uas--color--border);border-radius:999px}.band__strip{position:relative;isolation:isolate;display:flex;flex-direction:column;align-items:center;gap:var(--uas--base--spacing-md);inline-size:100%;box-sizing:content-box;margin-inline:calc(-1*var(--uap--d--recipe-canvas--node-gap, 56px));padding:var(--uas--base--spacing-lg) var(--uap--d--recipe-canvas--node-gap, 56px)}.band__strip::before{content:"";position:absolute;inset-block:0;inset-inline:calc(-1*100vw/var(--uas--canvas-viewport--zoom, 1));z-index:-1;background:var(--uap--d--recipe-canvas--seam-fill);border-block:1px solid var(--uap--d--recipe-canvas--seam-rule);pointer-events:none}.band__operator{pointer-events:auto;display:inline-flex;max-inline-size:100%}.band__run-as{display:flex;flex-direction:column;align-items:center;gap:var(--uas--base--spacing-xs);inline-size:var(--uap--d--recipe-canvas--item-width, 400px);max-inline-size:100%}.band__heading{font-family:var(--uas--typography--label-medium-font-family);font-size:var(--uas--typography--label-medium-font-size);line-height:var(--uas--typography--label-medium-line-height);font-weight:var(--uas--typography--label-medium-font-weight);letter-spacing:var(--uas--typography--label-medium-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-transform:uppercase;margin:0;font-size:11px;font-weight:600;letter-spacing:.04em;color:var(--uas--typography--color-secondary)}.band__card{pointer-events:auto;inline-size:100%}',""]),i.d(t,["default",0,r])},4101(e,t,i){"use strict";i.r(t);var a=i(1601),n=i.n(a),o=i(6314),r=(i.n(o))()(n());r.push([e.id,".stage{--uap--f--recipe-builder--flow-item--hover-border-color: #a9b0b8;--uap--f--recipe-builder--flow-item--hover-shadow: 0 2px 8px rgba( 0, 0, 0, 0.07 );--uap--f--recipe-builder--flow-item--trigger-hover-background: transparent;--uap--f--recipe-builder--flow-item--trigger-padding-inline-end: 0;--uap--f--recipe-builder--entry-tail-reserve: 240px}.stage:has(.stage__triggers>[data-entity-id]~.stage__typed-add){padding-inline:calc(var(--uap--d--recipe-canvas--node-gap) + var(--uap--f--recipe-builder--entry-tail-reserve))}.stage__band{position:relative;z-index:6;align-self:stretch}.stage__typed-add{--uas--button--custom-border-radius: 999px;position:relative;z-index:6;align-self:center;pointer-events:auto}.stage__triggers>[data-entity-id]~.stage__typed-add{position:absolute;inset-block-start:50%;inset-inline-start:100%;margin-inline-start:var(--uap--d--recipe-canvas--branch-gap);transform:translateY(-50%)}.stage__typed-add--disc{--uas--button--size-custom-height: var( --uas--canvas-insert--size );--uas--button--size-custom-padding-top: 0;--uas--button--size-custom-padding-right: 0;--uas--button--size-custom-padding-bottom: 0;--uas--button--size-custom-padding-left: 0;--uas--button--size-custom-font-size: var( --uas--canvas-insert--font-size );--uas--button--size-custom-line-height: 1;inline-size:var(--uas--canvas-insert--size)}.stage__node--frame{z-index:auto}.stage__node--frame>.stage__block-head{position:relative;z-index:6}.stage__frame{--uap--f--recipe-builder--canvas--frame-outline: color-mix( in srgb, var( --uap--f--recipe-builder--canvas--frame-ink ) 22%, white );box-shadow:var(--uas--base--shadow-md);border-color:var(--uap--f--recipe-builder--canvas--frame-outline, var(--uas--color--border));background:color-mix(in srgb, var(--uap--f--recipe-builder--canvas--frame-color, transparent) 10%, transparent)}.stage uas-canvas-insert{position:absolute;z-index:20}.uas-sortable-insertion-line{z-index:7 !important}:host-context(html.is-uap-recipe-dragging) *{cursor:grabbing}",""]),i.d(t,["default",0,r])},3791(e,t,i){"use strict";i.r(t);var a=i(1601),n=i.n(a),o=i(6314),r=(i.n(o))()(n());r.push([e.id,":host{display:block}.footer{display:flex;flex-direction:column}.footer-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:var(--uas--base--spacing-sm);padding:var(--uas--base--spacing-sm) var(--uas--base--spacing-lg);border-top:1px solid var(--uas--color--border)}.footer-keyboard-shortcuts{display:flex;align-items:center;gap:var(--uas--base--spacing-sm);padding:var(--uas--base--spacing-sm) var(--uas--base--spacing-lg);border-top:1px solid var(--uas--color--border)}.footer-keyboard-shortcuts-item{display:flex;align-items:center;gap:var(--uas--base--spacing-xs);font-family:var(--uas--typography--body-small-font-family);font-size:var(--uas--typography--body-small-font-size);line-height:var(--uas--typography--body-small-line-height);font-weight:var(--uas--typography--body-small-font-weight);letter-spacing:var(--uas--typography--body-small-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;color:var(--uas--typography--color-secondary)}",""]),i.d(t,["default",0,r])},673(e,t,i){"use strict";i.r(t);var a=i(1601),n=i.n(a),o=i(6314),r=(i.n(o))()(n());r.push([e.id,":host{display:contents}.button{display:block;width:100%}",""]),i.d(t,["default",0,r])},8802(e,t,i){"use strict";i.r(t);var a=i(1601),n=i.n(a),o=i(6314),r=(i.n(o))()(n());r.push([e.id,":host{display:contents}.remove{width:100%;--uas--button--custom-color: var( --uas--color--status-on-error-container );--uas--button--custom-hover-color: var( --uas--color--status-on-error-container )}",""]),i.d(t,["default",0,r])},992(e,t,i){"use strict";i.r(t);var a=i(1601),n=i.n(a),o=i(6314),r=(i.n(o))()(n());r.push([e.id,":host{display:contents}.button{width:100%}",""]),i.d(t,["default",0,r])},5758(e,t,i){"use strict";i.r(t);var a=i(1601),n=i.n(a),o=i(6314),r=(i.n(o))()(n());r.push([e.id,":host{display:contents}.block-delete-dialog{--uap--f--recipe-builder--block-delete-dialog--option-border: var( --uas--color--border );--uap--f--recipe-builder--block-delete-dialog--option-border-selected: var( --uas--color--primary );--uap--f--recipe-builder--block-delete-dialog--option-background-selected: var( --uas--color--status-info-container );--uap--f--recipe-builder--block-delete-dialog--option-outline-focus: var( --uas--color--primary );--uap--f--recipe-builder--block-delete-dialog--illustration-step: var( --uas--color--primary );--uap--f--recipe-builder--block-delete-dialog--illustration-frame: var( --uas--typography--color-tertiary );--uap--f--recipe-builder--block-delete-dialog--illustration-arrow: var( --uas--typography--color-secondary );container-type:inline-size;display:flex;flex-direction:column;gap:var(--uas--base--spacing-md)}.block-delete-dialog__intro{font-family:var(--uas--typography--body-medium-font-family);font-size:var(--uas--typography--body-medium-font-size);line-height:var(--uas--typography--body-medium-line-height);font-weight:var(--uas--typography--body-medium-font-weight);letter-spacing:var(--uas--typography--body-medium-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;margin:0;color:var(--uas--typography--color-secondary)}.block-delete-dialog__options{display:grid;grid-template-columns:1fr 1fr;gap:var(--uas--base--spacing-sm)}@container ( inline-size < 480px ){.block-delete-dialog__options{grid-template-columns:1fr}}.block-delete-dialog__option{position:relative;display:flex;flex-direction:column;align-items:flex-start;gap:var(--uas--base--spacing-xs);padding:var(--uas--base--spacing-md);border:1px solid var(--uap--f--recipe-builder--block-delete-dialog--option-border);border-radius:var(--uas--base--border-radius-md);cursor:pointer}.block-delete-dialog__option:has(input:checked){border-color:var(--uap--f--recipe-builder--block-delete-dialog--option-border-selected);background:var(--uap--f--recipe-builder--block-delete-dialog--option-background-selected)}.block-delete-dialog__option:has(input:focus-visible){outline:2px solid var(--uap--f--recipe-builder--block-delete-dialog--option-outline-focus);outline-offset:2px}.block-delete-dialog__option-input{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.block-delete-dialog__option-illustration{display:block;align-self:stretch;padding:var(--uas--base--spacing-md)}.block-delete-dialog__option-title{font-family:var(--uas--typography--body-medium-font-family);font-size:var(--uas--typography--body-medium-font-size);line-height:var(--uas--typography--body-medium-line-height);font-weight:var(--uas--typography--body-medium-font-weight);letter-spacing:var(--uas--typography--body-medium-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-weight:600}.block-delete-dialog__option-description,.block-delete-dialog__path-note{font-family:var(--uas--typography--body-small-font-family);font-size:var(--uas--typography--body-small-font-size);line-height:var(--uas--typography--body-small-line-height);font-weight:var(--uas--typography--body-small-font-weight);letter-spacing:var(--uas--typography--body-small-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;color:var(--uas--typography--color-secondary)}.block-delete-dialog__path-note{font-style:italic}.block-delete-dialog .illustration{display:block;inline-size:100%;block-size:auto}.block-delete-dialog .illustration__block{fill:none;stroke:var(--uap--f--recipe-builder--block-delete-dialog--illustration-frame);stroke-width:2.5;stroke-dasharray:6 4.5}.block-delete-dialog .illustration__card{fill:var(--uap--f--recipe-builder--block-delete-dialog--illustration-step)}.block-delete-dialog .illustration__arrow{fill:none;stroke:var(--uap--f--recipe-builder--block-delete-dialog--illustration-arrow);stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round}.block-delete-dialog .illustration__moving{animation:block-delete-dialog-illustration-arrive 3.5s ease-in-out infinite}.block-delete-dialog .illustration__moving--leaving{opacity:0;animation-name:block-delete-dialog-illustration-leave}@keyframes block-delete-dialog-illustration-arrive{0%{opacity:0;transform:translate(0, 5px)}16%{opacity:1;transform:translate(0, 0)}74%{opacity:1;transform:translate(0, 0)}90%{opacity:0;transform:translate(0, 0)}100%{opacity:0;transform:translate(0, 5px)}}@keyframes block-delete-dialog-illustration-leave{0%{opacity:0;transform:translate(0, 0)}10%{opacity:1;transform:translate(0, 0)}30%{opacity:1;transform:translate(0, 0)}52%{opacity:0;transform:translate(0, 5px)}100%{opacity:0;transform:translate(0, 5px)}}@media(prefers-reduced-motion: reduce){.block-delete-dialog .illustration__moving{animation:none}.block-delete-dialog .illustration__moving--leaving{display:none}}",""]),i.d(t,["default",0,r])},7145(e,t,i){"use strict";i.r(t);var a=i(1601),n=i.n(a),o=i(6314),r=i.n(o),s=i(4417),l=i.n(s),c=new URL(i(3188),i.b),d=r()(n()),u=l()(c);d.push([e.id,`:host{display:block;scroll-margin:40px}.flow-block-modifier{position:relative;display:grid;grid-template-columns:minmax(0, 1fr) auto;align-items:start;font-family:var(--uas--typography--body-medium-font-family);font-size:var(--uas--typography--body-medium-font-size);line-height:var(--uas--typography--body-medium-line-height);color:var(--uas--typography--color);transition:background-color var(--uas--base--transition)}.flow-block-modifier__drag-handle{position:absolute;top:var(--uas--base--spacing-xs);right:100%;margin-right:var(--uas--base--spacing-2xs);display:inline-flex;align-items:center;opacity:0;transition:opacity var(--uas--base--transition);height:1lh}.flow-block-modifier:hover .flow-block-modifier__drag-handle,.flow-block-modifier__drag-handle:focus-within{opacity:1}.flow-block-modifier--empty{display:none}.flow-block-modifier--locked{background:var(--uas--color--status-neutral-container)}.flow-block-modifier--locked uap-d-integrations-icon{display:inline-flex;filter:grayscale(1)}.flow-block-modifier--locked .flow-block-modifier__chips{--uas--chip--custom-border-color: var( --uas--color--border );--uas--chip--custom-color: var( --uas--typography--color-secondary );--uas--chip--custom-filled-border-color: var( --uas--color--border );--uas--chip--custom-filled-background: var( --uas--color--status-neutral-container );--uas--chip--custom-filled-color: var( --uas--typography--color-secondary )}.flow-block-modifier--locked .flow-block-modifier__custom-name,.flow-block-modifier--locked .flow-block-modifier__sub-sentence,.flow-block-modifier--locked .flow-block-modifier__sentence>uap-d-recipe-sentence,.flow-block-modifier--locked .flow-block-modifier__actions{opacity:.6}.flow-block-modifier--locked .flow-block-modifier__trigger{cursor:not-allowed}.flow-block-modifier__notices{grid-column:1/-1;display:flex;flex-direction:column;gap:var(--uas--base--spacing-2xs);margin-top:calc(var(--uas--base--spacing-2xs) - var(--uas--base--spacing-xs));margin-inline:var(--uas--base--spacing-md);margin-bottom:var(--uas--base--spacing-xs)}.flow-block-modifier__violation-row{display:block}.flow-block-modifier__violation-row uaai-f-agent-button{display:none}.flow-block-modifier__violation-row uaai-f-agent-button:defined{display:block;margin-block-start:var(--uas--base--spacing-2xs)}.flow-block-modifier--inherited .flow-block-modifier__custom-name,.flow-block-modifier--inherited .flow-block-modifier__sub-sentence,.flow-block-modifier--inherited .flow-block-modifier__actions{opacity:.6}.flow-block-modifier--inherited .flow-block-modifier__chips{--uas--chip--custom-border-color: var( --uas--color--border );--uas--chip--custom-color: var( --uas--typography--color-secondary );--uas--chip--custom-filled-border-color: var( --uas--color--border );--uas--chip--custom-filled-background: var( --uas--color--status-neutral-container );--uas--chip--custom-filled-color: var( --uas--typography--color-secondary )}.flow-block-modifier__trigger{flex:1 1 auto;min-width:0;border:0;background:rgba(0,0,0,0);color:inherit;font:inherit;text-align:left;cursor:url(${u}) 4 20,text}.flow-block-modifier__trigger:focus-visible{outline:2px solid var(--uas--color--primary);outline-offset:-2px}:host-context(html.is-uap-recipe-dragging) .flow-block-modifier__trigger:hover{background-color:rgba(0,0,0,0)}.flow-block-modifier__trigger{display:flex;align-items:flex-start;gap:var(--uas--base--spacing-xs);padding:var(--uas--base--spacing-xs) var(--uas--base--spacing-md);transition:background-color var(--uas--base--transition)}.flow-block-modifier__trigger:hover{background-color:color-mix(in srgb, var(--flow-block-color, var(--uas--color--status-neutral-container)) 20%, transparent)}.flow-block-modifier__trigger:hover .flow-block-modifier__chips{filter:contrast(0.9)}.flow-block-modifier--readonly .flow-block-modifier__trigger,.flow-block-modifier--readonly .flow-block-modifier__trigger:disabled{cursor:default}.flow-block-modifier--readonly .flow-block-modifier__trigger:hover,.flow-block-modifier--readonly .flow-block-modifier__trigger:disabled:hover{background-color:rgba(0,0,0,0)}.flow-block-modifier--readonly .flow-block-modifier__trigger:hover .flow-block-modifier__chips{filter:none}.flow-block-modifier__icon{flex:0 0 auto;display:inline-flex;align-items:center;height:1lh}.flow-block-modifier__sentence{flex:1 1 auto;min-width:0;font-size:var(--uas--typography--body-small-font-size)}.flow-block-modifier__chips{display:flex;flex-wrap:wrap;align-items:center;gap:var(--uas--base--spacing-2xs);line-height:1;margin-bottom:var(--uas--base--spacing-2xs)}.flow-block-modifier__custom-name{display:block;font-weight:600;color:var(--uas--typography--color);line-height:1.25}.flow-block-modifier__sub-sentence{color:var(--uas--typography--color-secondary)}.flow-block-modifier__actions{flex:0 0 auto;display:flex;align-items:flex-start;gap:var(--uas--base--spacing-2xs);padding:var(--uas--base--spacing-xs) var(--uas--base--spacing-md) 0 0;opacity:0;transition:opacity var(--uas--base--transition)}.flow-block-modifier__actions .dropdown{--uas--button-dropdown--custom-padding: var( --uas--base--spacing-xs );--uas--button--size-custom-padding-left: var( --uas--base--spacing-xs );--uas--button--size-custom-padding-right: var( --uas--base--spacing-xs )}.flow-block-modifier__options-trigger{--uas--button--size-custom-padding-left: var( --uas--base--spacing-2xs );--uas--button--size-custom-padding-right: var( --uas--base--spacing-2xs );margin-right:calc(-1*var(--uas--base--spacing-2xs))}.flow-block-modifier:hover .flow-block-modifier__actions,.flow-block-modifier__actions:focus-within{opacity:1}::slotted([data-uap-drag-handle]){display:inline-flex;align-items:center;padding:var(--uas--base--spacing-2xs);border:0;color:var(--uas--typography--color-tertiary);font-size:var(--uas--typography--body-medium-font-size);cursor:grab;appearance:none;background:#fff;border-radius:var(--uas--base--border-radius-xs);box-shadow:0 1px 2px rgba(0,0,0,.12)}::slotted([data-uap-drag-handle]:hover){color:var(--uas--typography--color-secondary)}::slotted([data-uap-drag-handle]:active){cursor:grabbing}:host-context(html.is-uap-recipe-dragging) *{cursor:grabbing}:host([data-uas-dragging-source]) .flow-block-modifier{opacity:.4}:host([data-uas-dragging-source]) .flow-block-modifier__actions,:host([data-uas-dragging-source]) .flow-block-modifier:hover :host([data-uas-dragging-source]) .flow-block-modifier__actions,:host([data-uas-dragging-source]) .flow-block-modifier__actions:focus-within{opacity:0;pointer-events:none}`,""]),i.d(t,["default",0,d])},4644(e,t,i){"use strict";i.r(t);var a=i(1601),n=i.n(a),o=i(6314),r=i.n(o),s=i(4417),l=i.n(s),c=new URL(i(3188),i.b),d=r()(n()),u=l()(c);d.push([e.id,`:host{display:block;scroll-margin:40px}.flow-block{position:relative;display:flex;flex-direction:column;--flow-block-outline: color-mix( in srgb, var( --flow-block-ink ) 22%, white );border:1px solid var(--flow-block-outline, var(--uas--color--border));border-radius:var(--uas--base--border-radius-md);background:#fff;box-shadow:var(--uas--base--shadow-md);font-family:var(--uas--typography--body-large-font-family);font-size:var(--uas--typography--body-large-font-size);line-height:var(--uas--typography--body-large-line-height);font-weight:var(--uas--typography--body-large-font-weight);letter-spacing:var(--uas--typography--body-large-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;color:var(--uas--typography--color)}.flow-block--empty{display:none}.flow-block--frame-head{border-bottom-left-radius:0;border-bottom-right-radius:0}.flow-block--locked uap-d-recipe-block-icon{display:inline-flex;filter:grayscale(1)}.flow-block--locked .flow-block__chips{--uas--chip--custom-border-color: var( --uas--color--border );--uas--chip--custom-color: var( --uas--typography--color-secondary );--uas--chip--custom-filled-border-color: var( --uas--color--border );--uas--chip--custom-filled-background: var( --uas--color--status-neutral-container );--uas--chip--custom-filled-color: var( --uas--typography--color-secondary )}.flow-block--locked .flow-block__head-sentence{opacity:.6}.flow-block--locked .flow-block__head-trigger{cursor:not-allowed}.flow-block--inherited .flow-block__head-row,.flow-block--inherited .flow-block__head-sentence{opacity:.6}.flow-block--inherited .flow-block__chips{--uas--chip--custom-border-color: var( --uas--color--border );--uas--chip--custom-color: var( --uas--typography--color-secondary );--uas--chip--custom-filled-border-color: var( --uas--color--border );--uas--chip--custom-filled-background: var( --uas--color--status-neutral-container );--uas--chip--custom-filled-color: var( --uas--typography--color-secondary )}.flow-block--readonly .flow-block__head-trigger,.flow-block--readonly .flow-block__head-trigger:disabled{cursor:default}.flow-block--readonly .flow-block__head:hover{background-color:color-mix(in srgb, var(--flow-block-color, var(--uas--color--status-neutral-container)) 20%, transparent)}.flow-block--readonly .flow-block__head:hover .flow-block__chips{filter:none}.flow-block__head{display:grid;grid-template-columns:minmax(0, 1fr) auto;background-color:color-mix(in srgb, var(--flow-block-color, var(--uas--color--status-neutral-container)) 20%, transparent);border-top-left-radius:var(--uas--base--border-radius-md);border-top-right-radius:var(--uas--base--border-radius-md);transition:background-color var(--uas--base--transition)}.flow-block__head:hover{background-color:color-mix(in srgb, var(--flow-block-color, var(--uas--color--status-neutral-container)) 30%, transparent)}:host-context(html.is-uap-recipe-dragging) .flow-block__head:hover{background-color:color-mix(in srgb, var(--flow-block-color, var(--uas--color--status-neutral-container)) 20%, transparent)}.flow-block__head-trigger{flex:1 1 auto;min-width:0;border:0;background:rgba(0,0,0,0);color:inherit;font:inherit;text-align:left;cursor:url(${u}) 4 20,text}.flow-block__head-trigger:focus-visible{outline:2px solid var(--uas--color--primary);outline-offset:-2px}:host-context(html.is-uap-recipe-dragging) .flow-block__head-trigger:hover{background-color:rgba(0,0,0,0)}.flow-block__head-trigger{display:flex;flex-direction:column;gap:var(--uas--base--spacing-2xs);padding:var(--uas--base--spacing-md)}.flow-block__head-row{display:flex;align-items:center;gap:var(--uas--base--spacing-xs);font-family:var(--uas--typography--title-medium-font-family);font-size:var(--uas--typography--title-medium-font-size);line-height:var(--uas--typography--title-medium-line-height);font-weight:var(--uas--typography--title-medium-font-weight);letter-spacing:var(--uas--typography--title-medium-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.flow-block__head-sentence{font-family:var(--uas--typography--body-medium-font-family);font-size:var(--uas--typography--body-medium-font-size);line-height:var(--uas--typography--body-medium-line-height);font-weight:var(--uas--typography--body-medium-font-weight);letter-spacing:var(--uas--typography--body-medium-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;color:rgba(0,0,0,.5)}.flow-block__head-sentence:empty{display:none}.flow-block__head-actions{flex:0 0 auto;display:flex;align-items:flex-start;padding:var(--uas--base--spacing-sm) var(--uas--base--spacing-sm) 0 0;opacity:0;transition:opacity var(--uas--base--transition)}.flow-block__head-actions .dropdown{--uas--button-dropdown--custom-padding: var( --uas--base--spacing-xs );--uas--button--size-custom-padding-left: var( --uas--base--spacing-xs );--uas--button--size-custom-padding-right: var( --uas--base--spacing-xs )}.flow-block__head:hover .flow-block__head-actions,.flow-block__head-actions:focus-within{opacity:1}.flow-block__drag-handle{position:absolute;top:var(--uas--base--spacing-md);right:100%;margin-right:var(--uas--base--spacing-2xs);display:inline-flex;align-items:center;opacity:0;transition:opacity var(--uas--base--transition)}.flow-block__head:hover .flow-block__drag-handle,.flow-block__drag-handle:hover,.flow-block__drag-handle:focus-within{opacity:1}.flow-block__head:hover .flow-block__chips{filter:contrast(0.9)}.flow-block__chips{display:flex;flex-wrap:wrap;align-items:center;gap:var(--uas--base--spacing-2xs);line-height:1}.flow-block__options-trigger{--uas--button--size-custom-padding-left: var( --uas--base--spacing-2xs );--uas--button--size-custom-padding-right: var( --uas--base--spacing-2xs );margin-right:calc(-1*var(--uas--base--spacing-2xs))}.flow-block__notices{grid-column:1/-1;display:flex;flex-direction:column;gap:var(--uas--base--spacing-2xs);margin-top:calc(var(--uas--base--spacing-2xs) - var(--uas--base--spacing-md));margin-inline:var(--uas--base--spacing-md);margin-bottom:var(--uas--base--spacing-md)}.flow-block__violation-row{display:block}.flow-block__violation-row uaai-f-agent-button{display:none}.flow-block__violation-row uaai-f-agent-button:defined{display:block;margin-block-start:var(--uas--base--spacing-2xs)}.flow-block__body{display:flex;flex-direction:column;gap:var(--uas--base--spacing-sm);padding:var(--uas--base--spacing-md);border-top:1px solid color-mix(in srgb, var(--flow-block-color, var(--uas--color--border)) 50%, transparent)}.flow-block__body:has(>.flow-block__paths){gap:0;padding:0}.flow-block__body:empty{display:none}.flow-block__modifiers{display:flex;flex-direction:column;background:color-mix(in srgb, var(--flow-block-color, var(--uas--color--status-neutral-container)) 10%, transparent);border-top:1px solid color-mix(in srgb, var(--flow-block-color, var(--uas--color--border)) 50%, transparent)}.flow-block__modifiers:has([data-uas-drop-allowed=true]){outline:1px dashed var(--uas--color--border);outline-offset:-1px;background:color-mix(in srgb, var(--uas--color--primary) 4%, transparent)}.flow-block__modifiers-list{position:relative;display:flex;flex-direction:column}.flow-block__modifiers-list:has(uap-f-recipe-builder-flow-block-modifier){padding:calc(var(--uas--base--spacing-md) - var(--uas--base--spacing-xs)) 0}.flow-block__modifiers-list[data-uas-drop-allowed=true]{min-height:var(--uas--base--spacing-2xl)}.flow-block__modifiers-list--empty{padding:var(--uas--base--spacing-xs) var(--uas--base--spacing-sm);border:1px dashed var(--uas--color--border);border-radius:var(--uas--base--border-radius-sm);background:var(--uas--color--status-neutral-container);margin:var(--uas--base--spacing-md)}.flow-block__modifiers-empty-label{font-family:var(--uas--typography--body-small-font-family);font-size:var(--uas--typography--body-small-font-size);line-height:var(--uas--typography--body-small-line-height);font-weight:var(--uas--typography--body-small-font-weight);letter-spacing:var(--uas--typography--body-small-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-style:italic;color:var(--uas--typography--color-tertiary);transition:opacity var(--uas--base--transition)}.flow-block__modifiers-empty-add{position:absolute;inset:0;display:flex;align-items:center;padding:inherit;opacity:0;transition:opacity var(--uas--base--transition)}.flow-block__modifiers-list--empty:not([data-uas-drop-allowed]):hover .flow-block__modifiers-empty-add,.flow-block__modifiers-empty-add:focus-within{opacity:1}.flow-block__modifiers-list--empty:not([data-uas-drop-allowed]):has(.flow-block__modifiers-empty-add):hover .flow-block__modifiers-empty-label,.flow-block__modifiers-list--empty:focus-within .flow-block__modifiers-empty-label{opacity:0}.flow-block__add-modifier{padding:0 var(--uas--base--spacing-md) var(--uas--base--spacing-sm) var(--uas--base--spacing-md)}.flow-block__add-modifier:empty{display:none}.flow-block__paths{display:flex;flex-direction:column}.flow-block__path{display:flex;flex-direction:column;gap:var(--uas--base--spacing-xs);padding:var(--uas--base--spacing-md);border-left:5px solid var(--flow-block-path-color, var(--uas--color--border))}.flow-block__path--bare{border-left:0}.flow-block__path:last-child{border-bottom-left-radius:var(--uas--base--border-radius-md)}.flow-block__path-header{display:flex;align-items:center;gap:var(--uas--base--spacing-2xs)}.flow-block__path-name{font-family:var(--uas--typography--label-small-font-family);font-size:var(--uas--typography--label-small-font-size);line-height:var(--uas--typography--label-small-line-height);font-weight:var(--uas--typography--label-small-font-weight);letter-spacing:var(--uas--typography--label-small-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-transform:uppercase;letter-spacing:.06em;color:var(--uas--typography--color)}.flow-block__path-items{position:relative;display:flex;flex-direction:column;gap:var(--uas--base--spacing-xs)}.flow-block__path-items--empty{padding:var(--uas--base--spacing-xs) var(--uas--base--spacing-sm);border:1px dashed var(--uas--color--border);border-radius:var(--uas--base--border-radius-sm);background:var(--uas--color--status-neutral-container)}.flow-block__path-items[data-uas-drop-allowed=true]{outline:1px dashed var(--uas--color--border);outline-offset:-1px;border-radius:var(--uas--base--border-radius-sm);background:color-mix(in srgb, var(--uas--color--primary) 4%, transparent)}.flow-block__path-empty-label{font-family:var(--uas--typography--body-small-font-family);font-size:var(--uas--typography--body-small-font-size);line-height:var(--uas--typography--body-small-line-height);font-weight:var(--uas--typography--body-small-font-weight);letter-spacing:var(--uas--typography--body-small-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-style:italic;color:var(--uas--typography--color-tertiary)}.flow-block--unknown{border-style:dashed;background:var(--uas--color--status-warning-container)}.flow-block--unknown .flow-block__type{font-family:var(--uas--typography--label-small-font-family);font-size:var(--uas--typography--label-small-font-size);line-height:var(--uas--typography--label-small-line-height);font-weight:var(--uas--typography--label-small-font-weight);letter-spacing:var(--uas--typography--label-small-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;display:inline-block;text-transform:uppercase;letter-spacing:.06em;font-family:monospace;color:var(--uas--typography--color-secondary)}.flow-block__unknown-warning{font-family:var(--uas--typography--body-small-font-family);font-size:var(--uas--typography--body-small-font-size);line-height:var(--uas--typography--body-small-line-height);font-weight:var(--uas--typography--body-small-font-weight);letter-spacing:var(--uas--typography--body-small-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;color:var(--uas--color--status-on-warning-container);margin:0}:host([data-uas-dragging-source]) .flow-block{opacity:.4}::slotted([data-uap-drag-handle]){display:inline-flex;align-items:center;padding:var(--uas--base--spacing-2xs);border:0;color:var(--uas--typography--color-tertiary);font-size:var(--uas--typography--body-medium-font-size);cursor:grab;appearance:none;background:#fff;border-radius:var(--uas--base--border-radius-xs);box-shadow:0 1px 2px rgba(0,0,0,.12)}::slotted([data-uap-drag-handle]:hover){color:var(--uas--typography--color-secondary)}::slotted([data-uap-drag-handle]:active){cursor:grabbing}:host-context(html.is-uap-recipe-dragging) *{cursor:grabbing}`,""]),i.d(t,["default",0,d])},3002(e,t,i){"use strict";i.r(t);var a=i(1601),n=i.n(a),o=i(6314),r=i.n(o),s=i(4417),l=i.n(s),c=new URL(i(3188),i.b),d=r()(n()),u=l()(c);d.push([e.id,`:host{display:block;scroll-margin:40px}.flow-item{position:relative;display:grid;grid-template-columns:minmax(0, 1fr) auto;align-items:start;border:1px solid color-mix(in srgb, var(--uas--color--field-border) 50%, var(--uas--color--border));border-radius:var(--uas--base--border-radius-md);background:#fff;box-shadow:var(--uas--base--shadow-md);font-family:var(--uas--typography--body-large-font-family);font-size:var(--uas--typography--body-large-font-size);line-height:var(--uas--typography--body-large-line-height);font-weight:var(--uas--typography--body-large-font-weight);letter-spacing:var(--uas--typography--body-large-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;color:var(--uas--typography--color);transition:box-shadow 150ms ease-in-out,border-color 150ms ease-in-out,filter 150ms ease-in-out,background-color 150ms ease-in-out}.flow-item:hover{border-color:var(--uap--f--recipe-builder--flow-item--hover-border-color, rgba(0, 0, 0, 0.32));box-shadow:var(--uap--f--recipe-builder--flow-item--hover-shadow, var(--uas--base--shadow-lg))}.flow-item--empty{display:none}.flow-item--muted{background:var(--uas--color--status-neutral-container)}.flow-item--muted .flow-item__chips,.flow-item--muted .flow-item__custom-name,.flow-item--muted .flow-item__sub-sentence,.flow-item--muted .flow-item__sentence>uap-d-recipe-sentence,.flow-item--muted .flow-item__controls{filter:grayscale(1)}.flow-item--muted .flow-item__icon{display:inline-flex;padding-top:0;filter:grayscale(1)}.flow-item--muted .flow-item__chips{--uas--chip--custom-border-color: var( --uas--color--border );--uas--chip--custom-color: var( --uas--typography--color-secondary );--uas--chip--custom-filled-border-color: var( --uas--color--border );--uas--chip--custom-filled-background: var( --uas--color--status-neutral-container );--uas--chip--custom-filled-color: var( --uas--typography--color-secondary )}.flow-item--locked{background:var(--uas--color--status-neutral-container)}.flow-item--locked uap-d-integrations-icon{display:inline-flex;filter:grayscale(1)}.flow-item--locked .flow-item__icon{padding-top:0;opacity:.6}.flow-item--locked .flow-item__chips{--uas--chip--custom-border-color: var( --uas--color--border );--uas--chip--custom-color: var( --uas--typography--color-secondary );--uas--chip--custom-filled-border-color: var( --uas--color--border );--uas--chip--custom-filled-background: var( --uas--color--status-neutral-container );--uas--chip--custom-filled-color: var( --uas--typography--color-secondary )}.flow-item--locked .flow-item__custom-name,.flow-item--locked .flow-item__sub-sentence,.flow-item--locked .flow-item__sentence>uap-d-recipe-sentence,.flow-item--locked .flow-item__controls{opacity:.6}.flow-item--locked .flow-item__controls:has(.flow-item__status:not(:disabled)){opacity:1}.flow-item--locked .flow-item__controls uas-tooltip{line-height:0}.flow-item--locked .flow-item__trigger{cursor:not-allowed}.flow-item__notices{grid-column:1/-1;display:flex;flex-direction:column;gap:var(--uas--base--spacing-2xs);margin-top:calc(var(--uas--base--spacing-2xs) - var(--uas--base--spacing-md));margin-inline:var(--uas--base--spacing-md);margin-bottom:var(--uas--base--spacing-md)}.flow-item__violation-row{display:block}.flow-item__violation-row uaai-f-agent-button{display:none}.flow-item__violation-row uaai-f-agent-button:defined{display:block;margin-block-start:var(--uas--base--spacing-2xs)}.flow-item--inherited .flow-item__trigger,.flow-item--inherited .flow-item__controls{opacity:.6}.flow-item--inherited .flow-item__chips{--uas--chip--custom-border-color: var( --uas--color--border );--uas--chip--custom-color: var( --uas--typography--color-secondary );--uas--chip--custom-filled-border-color: var( --uas--color--border );--uas--chip--custom-filled-background: var( --uas--color--status-neutral-container );--uas--chip--custom-filled-color: var( --uas--typography--color-secondary )}.flow-item--readonly:hover{border-color:color-mix(in srgb, var(--uas--color--field-border) 50%, var(--uas--color--border));box-shadow:var(--uas--base--shadow-md)}.flow-item--readonly .flow-item__trigger,.flow-item--readonly .flow-item__trigger:disabled{cursor:default}.flow-item--readonly .flow-item__trigger:hover,.flow-item--readonly .flow-item__trigger:disabled:hover{background-color:rgba(0,0,0,0)}.flow-item--readonly .flow-item__trigger:hover .flow-item__chips{filter:none}.flow-item--loading:hover{border-color:color-mix(in srgb, var(--uas--color--field-border) 50%, var(--uas--color--border));box-shadow:var(--uas--base--shadow-md)}.flow-item--loading .flow-item__trigger{cursor:default}.flow-item--loading .flow-item__trigger:hover{background-color:rgba(0,0,0,0)}.flow-item--loading .flow-item__icon{display:block;padding-top:0}.flow-item__drag-handle{position:absolute;top:calc(var(--uas--base--spacing-md) + var(--uas--base--spacing-2xs));right:100%;margin-right:var(--uas--base--spacing-2xs);display:inline-flex;align-items:center;opacity:0;transition:opacity var(--uas--base--transition);height:1lh}.flow-item:hover .flow-item__drag-handle,.flow-item__drag-handle:focus-within{opacity:1}.flow-item__trigger{flex:1 1 auto;min-width:0;border:0;background:rgba(0,0,0,0);color:inherit;font:inherit;text-align:left;cursor:url(${u}) 4 20,text}.flow-item__trigger:focus-visible{outline:2px solid var(--uas--color--primary);outline-offset:-2px}:host-context(html.is-uap-recipe-dragging) .flow-item__trigger:hover{background-color:rgba(0,0,0,0)}.flow-item__trigger{display:flex;align-items:flex-start;gap:var(--uas--base--spacing-sm);padding:var(--uas--base--spacing-md);padding-inline-end:var(--uap--f--recipe-builder--flow-item--trigger-padding-inline-end, var(--uas--base--spacing-md));border-radius:var(--uas--base--border-radius-md) 0 0 var(--uas--base--border-radius-md);transition:background-color var(--uas--base--transition),opacity var(--uas--base--transition)}.flow-item__trigger:hover{background-color:var(--uap--f--recipe-builder--flow-item--trigger-hover-background, var(--uas--color--status-neutral-container))}.flow-item__trigger:hover .flow-item__chips{filter:contrast(0.9)}.flow-item__icon{flex:0 0 auto;padding-top:var(--uas--base--spacing-2xs)}.flow-item__sentence{font-family:var(--uas--typography--body-medium-font-family);font-size:var(--uas--typography--body-medium-font-size);line-height:var(--uas--typography--body-medium-line-height);font-weight:var(--uas--typography--body-medium-font-weight);letter-spacing:var(--uas--typography--body-medium-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;flex:1 1 auto;min-width:0;line-height:1.4}.flow-item__sentence:empty{display:none}.flow-item__chips{display:flex;flex-wrap:wrap;align-items:center;gap:var(--uas--base--spacing-2xs);line-height:1;margin-bottom:var(--uas--base--spacing-2xs)}.flow-item__custom-name{display:block;font-weight:600;color:var(--uas--typography--color);line-height:1.25}.flow-item__sub-sentence{color:var(--uas--typography--color-secondary)}.flow-item__controls{flex:0 0 auto;display:flex;align-items:center;gap:var(--uas--base--spacing-xs);padding:var(--uas--base--spacing-md);padding-left:0;transition:opacity var(--uas--base--transition)}.flow-item__options-trigger{--uas--button--size-custom-padding-left: var( --uas--base--spacing-2xs );--uas--button--size-custom-padding-right: var( --uas--base--spacing-2xs )}.flow-item__actions{display:flex;gap:var(--uas--base--spacing-2xs);opacity:0;transition:opacity var(--uas--base--transition)}.flow-item__actions .dropdown{--uas--button-dropdown--custom-padding: var( --uas--base--spacing-xs );--uas--button--size-custom-padding-left: var( --uas--base--spacing-xs );--uas--button--size-custom-padding-right: var( --uas--base--spacing-xs )}.flow-item:hover .flow-item__actions,.flow-item__actions:focus-within{opacity:1}.flow-item__status{flex:0 0 auto;display:inline-flex;align-items:center;justify-content:flex-start;gap:var(--uas--base--spacing-2xs);height:1lh;padding:0;border:0;background:rgba(0,0,0,0);cursor:pointer;appearance:none}.flow-item__status:disabled{cursor:not-allowed;opacity:.4}.flow-item__status:focus-visible{outline:2px solid var(--uas--color--accent, #007cba);outline-offset:2px;border-radius:999px}.flow-item__status-track{position:relative;display:inline-block;width:28px;height:16px;background:rgba(0,0,0,.16);border-radius:999px;transition:background 150ms ease-in-out}.flow-item__status-thumb{position:absolute;top:2px;left:2px;width:12px;height:12px;background:#fff;border-radius:50%;box-shadow:0 1px 2px rgba(0,0,0,.16);transition:transform 150ms ease-in-out}.flow-item__status[aria-checked=true] .flow-item__status-track{background:var(--uas--color--accent, #007cba)}.flow-item__status[aria-checked=true] .flow-item__status-thumb{transform:translateX(12px)}.flow-item__status-label{font-family:var(--uas--typography--body-small-font-family);font-size:var(--uas--typography--body-small-font-size);line-height:var(--uas--typography--body-small-line-height);font-weight:var(--uas--typography--body-small-font-weight);letter-spacing:var(--uas--typography--body-small-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-weight:600;color:var(--uas--typography--color-secondary)}.flow-item__status[aria-checked=true] .flow-item__status-label{color:var(--uas--color--accent, #007cba)}.flow-item__status-anchor{display:inline-flex}.flow-item__status-anchor button:disabled{pointer-events:none}::slotted([data-uap-drag-handle]){display:inline-flex;align-items:center;padding:var(--uas--base--spacing-2xs);border:0;color:var(--uas--typography--color-tertiary);font-size:var(--uas--typography--body-medium-font-size);cursor:grab;appearance:none;background:#fff;border-radius:var(--uas--base--border-radius-xs);box-shadow:0 1px 2px rgba(0,0,0,.12)}::slotted([data-uap-drag-handle]:hover){color:var(--uas--typography--color-secondary)}::slotted([data-uap-drag-handle]:active){cursor:grabbing}:host-context(html.is-uap-recipe-dragging) *{cursor:grabbing}:host([data-uas-dragging-source]) .flow-item{opacity:.4}:host([data-uas-dragging-source]) .flow-item__actions,:host([data-uas-dragging-source]) .flow-item:hover .flow-item__actions,:host([data-uas-dragging-source]) .flow-item__actions:focus-within{opacity:0;pointer-events:none}`,""]),i.d(t,["default",0,d])},1649(e,t,i){"use strict";i.r(t);var a=i(1601),n=i.n(a),o=i(6314),r=(i.n(o))()(n());r.push([e.id,":host{display:block}.lock-reason{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:var(--uas--base--spacing-xs)}.lock-reason__sentence{flex:1 1 auto;min-width:0}",""]),i.d(t,["default",0,r])},3447(e,t,i){"use strict";i.r(t);var a=i(1601),n=i.n(a),o=i(6314),r=i.n(o),s=i(4417),l=i.n(s),c=new URL(i(3188),i.b),d=r()(n()),u=l()(c);d.push([e.id,`:host{display:block}.card{display:flex;align-items:center;gap:var(--uas--base--spacing-sm);padding:var(--uas--base--spacing-sm) var(--uas--base--spacing-md);background:#fff;border:1px solid color-mix(in srgb, var(--uas--color--field-border) 50%, var(--uas--color--border));border-radius:var(--uas--base--border-radius-md);box-shadow:var(--uas--base--shadow-md);color:var(--uas--typography--color);cursor:url(${u}) 4 20,text;transition:background-color var(--uas--base--transition)}.card:hover,.card:focus-within{background-color:var(--uas--color--status-neutral-container)}:host-context(html.is-uap-recipe-dragging) .card:hover{background-color:#fff}:host-context(html.is-uap-recipe-dragging) *{cursor:grabbing}.card--readonly,.card--readonly:hover,.card--readonly:focus-within,.card--needs-pro,.card--needs-pro:hover,.card--needs-pro:focus-within{background-color:#fff;cursor:default}.card__icon{flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;padding:var(--uas--base--spacing-2xs);border-radius:var(--uas--base--border-radius-xs);background:var(--uas--color--status-info-container);color:var(--uas--color--status-on-info-container);font-size:16px}.card__body{flex:1;display:flex;flex-direction:column;gap:var(--uas--base--spacing-2xs)}.card__summary{font-family:var(--uas--typography--body-medium-font-family);font-size:var(--uas--typography--body-medium-font-size);line-height:var(--uas--typography--body-medium-line-height);font-weight:var(--uas--typography--body-medium-font-weight);letter-spacing:var(--uas--typography--body-medium-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.card__summary--placeholder{color:var(--uas--typography--color-tertiary)}.card__alert{display:block;margin-top:var(--uas--base--spacing-xs)}`,""]),i.d(t,["default",0,d])},8530(e,t,i){"use strict";i.r(t);var a=i(1601),n=i.n(a),o=i(6314),r=(i.n(o))()(n());r.push([e.id,":host{display:inline-flex;align-items:center}.trigger-logic{display:inline-flex;flex-wrap:wrap;align-items:center;gap:var(--uas--base--spacing-xs);font-family:var(--uas--typography--body-medium-font-family);font-size:var(--uas--typography--body-medium-font-size);line-height:var(--uas--typography--body-medium-line-height);font-weight:var(--uas--typography--body-medium-font-weight);letter-spacing:var(--uas--typography--body-medium-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.trigger-logic__lead,.trigger-logic__trail{color:var(--uas--typography--color-secondary)}.trigger-logic__static{font-weight:600}",""]),i.d(t,["default",0,r])},6749(e,t,i){"use strict";i.r(t);var a=i(1601),n=i.n(a),o=i(6314),r=(i.n(o))()(n());r.push([e.id,":host{display:block}.flow{display:flex;flex-direction:column;gap:var(--uas--base--spacing-md);max-inline-size:var(--uap--f--recipe-builder--flow--max-inline-size);margin-inline:auto;padding:var(--uas--base--spacing-3xl)}.flow--loading .flow-add-placeholder{align-self:flex-start}@container ( max-width: 768px ){.flow{padding:var(--uas--base--spacing-lg)}}.flow-section{display:flex;flex-direction:column;gap:var(--uas--base--spacing-lg)}.flow-section__heading{font-family:var(--uas--typography--label-medium-font-family);font-size:var(--uas--typography--label-medium-font-size);line-height:var(--uas--typography--label-medium-line-height);font-weight:var(--uas--typography--label-medium-font-weight);letter-spacing:var(--uas--typography--label-medium-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-transform:uppercase;margin:0;letter-spacing:.04em;color:var(--uas--typography--color-secondary)}.flow-section__header{display:flex;align-items:center;gap:var(--uas--base--spacing-md);flex-wrap:wrap}.flow-section__items{position:relative;display:flex;flex-direction:column;gap:var(--uas--base--spacing-lg)}.flow-section__footer-actions{display:flex;gap:var(--uas--base--spacing-xs);align-self:flex-start}.flow-section--content .flow-section__items[data-uas-drop-allowed=true]{outline:1px dashed var(--uas--color--border);outline-offset:-1px;border-radius:var(--uas--base--border-radius-sm);background:color-mix(in srgb, var(--uas--color--primary) 4%, transparent)}.flow-empty{font-family:var(--uas--typography--body-medium-font-family);font-size:var(--uas--typography--body-medium-font-size);line-height:var(--uas--typography--body-medium-line-height);font-weight:var(--uas--typography--body-medium-font-weight);letter-spacing:var(--uas--typography--body-medium-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;padding:var(--uas--base--spacing-sm) 0;font-style:italic;color:var(--uas--typography--color-tertiary)}.flow-section--run-as{margin:var(--uas--base--spacing-sm) 0}:host-context(html.is-uap-recipe-dragging) *{cursor:grabbing}",""]),i.d(t,["default",0,r])},8931(e,t,i){"use strict";i.r(t);var a=i(1601),n=i.n(a),o=i(6314),r=(i.n(o))()(n());r.push([e.id,":host{display:contents}",""]),i.d(t,["default",0,r])},6767(e,t,i){"use strict";i.r(t);var a=i(1601),n=i.n(a),o=i(6314),r=(i.n(o))()(n());r.push([e.id,":host{display:contents}.dependency{--uap--f--recipe-builder--node-selector-viewer--dependency--icon--size: 32px;--uap--f--recipe-builder--node-selector-viewer--dependency--details--opacity: 1;display:flex;gap:var(--uas--base--spacing-sm);padding:var(--uas--base--spacing-md);border:1px solid var(--uas--color--border);border-radius:var(--uas--base--border-radius-md)}.dependency--met{--uap--f--recipe-builder--node-selector-viewer--dependency--icon--size: 24px;padding:var(--uas--base--spacing-sm) var(--uas--base--spacing-md);align-items:center}.dependency--disabled{--uap--f--recipe-builder--node-selector-viewer--dependency--details--opacity: 0.6;background:var(--uas--color--status-neutral-container)}.dependency-icon{flex:0 0 auto;opacity:var(--uap--f--recipe-builder--node-selector-viewer--dependency--details--opacity)}.dependency-icon uas-icon{font-size:var(--uap--f--recipe-builder--node-selector-viewer--dependency--icon--size)}.dependency-icon img{width:var(--uap--f--recipe-builder--node-selector-viewer--dependency--icon--size);aspect-ratio:1/1;object-fit:contain;object-position:center}.dependency-content{flex:1 1 auto;display:flex;flex-direction:column;gap:var(--uas--base--spacing-2xs)}.dependency--met .dependency-content{flex-direction:row}.dependency-name{font-family:var(--uas--typography--title-small-font-family);font-size:var(--uas--typography--title-small-font-size);line-height:var(--uas--typography--title-small-line-height);font-weight:var(--uas--typography--title-small-font-weight);letter-spacing:var(--uas--typography--title-small-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;opacity:var(--uap--f--recipe-builder--node-selector-viewer--dependency--details--opacity)}.dependency-tags{display:flex;gap:var(--uas--base--spacing-2xs);opacity:var(--uap--f--recipe-builder--node-selector-viewer--dependency--details--opacity)}.dependency-description{font-family:var(--uas--typography--body-small-font-family);font-size:var(--uas--typography--body-small-font-size);line-height:var(--uas--typography--body-small-line-height);font-weight:var(--uas--typography--body-small-font-weight);letter-spacing:var(--uas--typography--body-small-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;color:var(--uas--typography--color-secondary);padding-top:calc(var(--uas--base--spacing-2xs)/2) 0;opacity:var(--uap--f--recipe-builder--node-selector-viewer--dependency--details--opacity)}.dependency-metadata{font-family:var(--uas--typography--body-small-font-family);font-size:var(--uas--typography--body-small-font-size);line-height:var(--uas--typography--body-small-line-height);font-weight:var(--uas--typography--body-small-font-weight);letter-spacing:var(--uas--typography--body-small-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;padding-top:var(--uas--base--spacing-2xs);opacity:var(--uap--f--recipe-builder--node-selector-viewer--dependency--details--opacity)}.dependency-cta{padding-top:var(--uas--base--spacing-xs)}.dependency-blocked{padding-top:var(--uas--base--spacing-xs)}.dependency-status{flex:0 0 auto;color:var(--uas--color--status-on-warning-container);opacity:var(--uap--f--recipe-builder--node-selector-viewer--dependency--details--opacity)}.dependency--met .dependency-status{color:var(--uas--color--status-on-success-container)}",""]),i.d(t,["default",0,r])},9122(e,t,i){"use strict";i.r(t);var a=i(1601),n=i.n(a),o=i(6314),r=(i.n(o))()(n());r.push([e.id,":host{display:contents}.dependency{--uap--f--recipe-builder--node-selector-viewer--dependency--icon--size: 32px;--uap--f--recipe-builder--node-selector-viewer--dependency--details--opacity: 1;display:flex;gap:var(--uas--base--spacing-sm);padding:var(--uas--base--spacing-md);border:1px solid var(--uas--color--border);border-radius:var(--uas--base--border-radius-md)}.dependency--met{--uap--f--recipe-builder--node-selector-viewer--dependency--icon--size: 24px;padding:var(--uas--base--spacing-sm) var(--uas--base--spacing-md);align-items:center}.dependency--disabled{--uap--f--recipe-builder--node-selector-viewer--dependency--details--opacity: 0.6;background:var(--uas--color--status-neutral-container)}.dependency-icon{flex:0 0 auto;opacity:var(--uap--f--recipe-builder--node-selector-viewer--dependency--details--opacity)}.dependency-icon uas-icon{font-size:var(--uap--f--recipe-builder--node-selector-viewer--dependency--icon--size)}.dependency-icon img{width:var(--uap--f--recipe-builder--node-selector-viewer--dependency--icon--size);aspect-ratio:1/1;object-fit:contain;object-position:center}.dependency-content{flex:1 1 auto;display:flex;flex-direction:column;gap:var(--uas--base--spacing-2xs)}.dependency--met .dependency-content{flex-direction:row}.dependency-name{font-family:var(--uas--typography--title-small-font-family);font-size:var(--uas--typography--title-small-font-size);line-height:var(--uas--typography--title-small-line-height);font-weight:var(--uas--typography--title-small-font-weight);letter-spacing:var(--uas--typography--title-small-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;opacity:var(--uap--f--recipe-builder--node-selector-viewer--dependency--details--opacity)}.dependency-tags{display:flex;gap:var(--uas--base--spacing-2xs);opacity:var(--uap--f--recipe-builder--node-selector-viewer--dependency--details--opacity)}.dependency-description{font-family:var(--uas--typography--body-small-font-family);font-size:var(--uas--typography--body-small-font-size);line-height:var(--uas--typography--body-small-line-height);font-weight:var(--uas--typography--body-small-font-weight);letter-spacing:var(--uas--typography--body-small-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;color:var(--uas--typography--color-secondary);padding-top:calc(var(--uas--base--spacing-2xs)/2) 0;opacity:var(--uap--f--recipe-builder--node-selector-viewer--dependency--details--opacity)}.dependency-metadata{font-family:var(--uas--typography--body-small-font-family);font-size:var(--uas--typography--body-small-font-size);line-height:var(--uas--typography--body-small-line-height);font-weight:var(--uas--typography--body-small-font-weight);letter-spacing:var(--uas--typography--body-small-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;padding-top:var(--uas--base--spacing-2xs);opacity:var(--uap--f--recipe-builder--node-selector-viewer--dependency--details--opacity)}.dependency-cta{padding-top:var(--uas--base--spacing-xs)}.dependency-blocked{padding-top:var(--uas--base--spacing-xs)}.dependency-status{flex:0 0 auto;color:var(--uas--color--status-on-warning-container);opacity:var(--uap--f--recipe-builder--node-selector-viewer--dependency--details--opacity)}.dependency--met .dependency-status{color:var(--uas--color--status-on-success-container)}:root{display:contents}.dependencies{display:flex;flex-direction:column;flex:1 1 auto}.dependencies-content{flex:1 1 auto}.list{font-family:var(--uas--typography--body-medium-font-family);font-size:var(--uas--typography--body-medium-font-size);line-height:var(--uas--typography--body-medium-line-height);font-weight:var(--uas--typography--body-medium-font-weight);letter-spacing:var(--uas--typography--body-medium-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;position:relative;padding:var(--uas--base--spacing-lg);display:flex;flex-direction:column;gap:var(--uas--base--spacing-md)}.list uas-progress-linear{position:absolute;margin:calc(-1*var(--uas--base--spacing-lg));margin-bottom:0}.list-heading{font-weight:600}.list-group{display:flex;flex-direction:column;gap:var(--uas--base--spacing-md)}.list-group-heading{font-weight:600;color:var(--uas--typography--color-secondary)}.list-group-items{display:flex;flex-direction:column;gap:var(--uas--base--spacing-md)}.integration-entities{display:flex;flex-direction:column;gap:var(--uas--base--spacing-md);border-top:1px solid var(--uas--color--border);padding:var(--uas--base--spacing-lg)}.integration-entities-heading{font-weight:600}.integration-entities-items{display:flex;flex-direction:column;gap:var(--uas--base--spacing-sm)}.integration-entities-item{font-weight:500}.integration-entities-item uas-markdown{display:inline-block;--uas--markdown--string-font-weight: 600}.integration-entities-item-tags{display:inline-flex;flex-wrap:wrap;align-items:center;gap:var(--uas--base--spacing-2xs)}.keyboard-shortcuts{display:flex;align-items:center;gap:var(--uas--base--spacing-sm);padding:var(--uas--base--spacing-sm) var(--uas--base--spacing-lg);border-top:1px solid var(--uas--color--border)}.keyboard-shortcuts-item{display:flex;align-items:center;gap:var(--uas--base--spacing-xs);font-family:var(--uas--typography--body-small-font-family);font-size:var(--uas--typography--body-small-font-size);line-height:var(--uas--typography--body-small-line-height);font-weight:var(--uas--typography--body-small-font-weight);letter-spacing:var(--uas--typography--body-small-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;color:var(--uas--typography--color-secondary)}",""]),i.d(t,["default",0,r])},2687(e,t,i){"use strict";i.r(t);var a=i(1601),n=i.n(a),o=i(6314),r=(i.n(o))()(n());r.push([e.id,":root{display:block}.viewer{font-family:var(--uas--typography--body-medium-font-family);font-size:var(--uas--typography--body-medium-font-size);line-height:var(--uas--typography--body-medium-line-height);font-weight:var(--uas--typography--body-medium-font-weight);letter-spacing:var(--uas--typography--body-medium-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;display:flex;flex-direction:column;flex:1 1 auto}.viewer-controls{display:flex;align-items:center;flex-wrap:wrap;border-bottom:1px solid var(--uas--color--border);padding:0 var(--uas--base--spacing-lg);cursor:text;transition:var(--uas--base--transition);transition-property:box-shadow,background-color}@container uap-f-recipe-builder-node-selector (width <= 768px){.viewer-controls{padding-block:var(--uas--base--spacing-xs)}}.viewer-controls:has(.viewer-controls-search-field:focus-within){box-shadow:0 0 0 3px color(from var(--uas--color--primary) srgb r g b/0.2),0 0 0 1px var(--uas--color--primary)}.viewer-controls:has(.viewer-controls-search-field[disabled]){background:var(--uas--color--field-background-disabled)}.viewer-controls-search{flex:1 1 auto;height:var(--uap--f--recipe-builder--node-selector--steps--height);display:flex;align-items:center}.viewer-controls-search-icon{flex:0 0 auto;color:var(--uas--typography--color-secondary)}.viewer-controls-search-field{font-family:var(--uas--typography--body-medium-font-family);font-size:var(--uas--typography--body-medium-font-size);line-height:var(--uas--typography--body-medium-line-height);font-weight:var(--uas--typography--body-medium-font-weight);letter-spacing:var(--uas--typography--body-medium-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;flex:1 1 auto;border:0;box-shadow:none;background-color:rgba(0,0,0,0);margin:0;outline:0;padding:var(--uas--base--spacing-xs) var(--uas--base--spacing-sm)}.viewer-controls-filter{display:flex;align-items:center;gap:var(--uas--base--spacing-xs)}.viewer-controls-filter-help{cursor:help;color:var(--uas--typography--color-secondary)}.viewer-ai-entity-suggestions{padding:var(--uas--base--spacing-lg) 0 0}.viewer-content{padding:var(--uas--base--spacing-lg);flex:1 1 auto}.viewer-block{display:block;--uas--button--size-custom-height: auto;--uas--button--size-custom-padding-top: calc(var(--uap--f--recipe-builder--node-selector-viewer--spacing-between-items) / 2);--uas--button--size-custom-padding-bottom: calc(var(--uap--f--recipe-builder--node-selector-viewer--spacing-between-items) / 2);--uas--button--custom-justify-content: flex-start;margin-left:calc(var(--uas--button--size-sm-padding-left)*-1)}.viewer-block-content{min-width:0;display:flex;align-items:center;gap:var(--uas--base--spacing-xs);text-align:left;min-height:var(--uap--f--recipe-builder--node-selector-viewer--entity-min-height)}.viewer-block-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.viewer-integration{display:block;--uas--button--size-custom-height: auto;--uas--button--size-custom-padding-top: calc(var(--uap--f--recipe-builder--node-selector-viewer--spacing-between-items) / 2);--uas--button--size-custom-padding-bottom: calc(var(--uap--f--recipe-builder--node-selector-viewer--spacing-between-items) / 2);--uas--button--custom-justify-content: flex-start;margin-left:calc(var(--uas--button--size-sm-padding-left)*-1)}.viewer-integration--placeholder{--uas--button--custom-disabled-opacity: 1}.viewer-integration-content{min-width:0;display:flex;align-items:center;gap:var(--uas--base--spacing-xs);text-align:left;min-height:var(--uap--f--recipe-builder--node-selector-viewer--entity-min-height)}.viewer-integration-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.viewer-integration-icon{width:var(--uap--f--recipe-builder--node-selector-viewer--integration--icon--size);height:var(--uap--f--recipe-builder--node-selector-viewer--integration--icon--size);font-size:var(--uap--f--recipe-builder--node-selector-viewer--integration--icon--size)}.viewer-item{display:block;--uas--button--size-custom-height: auto;--uas--button--size-custom-padding-top: calc(var(--uap--f--recipe-builder--node-selector-viewer--spacing-between-items) / 2);--uas--button--size-custom-padding-bottom: calc(var(--uap--f--recipe-builder--node-selector-viewer--spacing-between-items) / 2);--uas--button--custom-justify-content: flex-start;margin-left:calc(var(--uas--button--size-sm-padding-left)*-1)}.viewer-item-content{display:flex;flex-direction:column;flex-wrap:wrap;align-items:flex-start;gap:var(--uas--base--spacing-2xs);text-align:left;min-height:var(--uap--f--recipe-builder--node-selector-viewer--entity-min-height);white-space:normal}.viewer-item-integration{display:flex;flex-wrap:wrap;gap:var(--uas--base--spacing-xs);padding-bottom:var(--uas--base--spacing-2xs)}.viewer-item-integration--placeholder{--uas--button--size-custom-padding-top: 0;--uas--button--size-custom-padding-bottom: 0}.viewer-item-integration-icon{width:var(--uap--f--recipe-builder--node-selector-viewer--integration--icon--size);height:var(--uap--f--recipe-builder--node-selector-viewer--integration--icon--size);font-size:var(--uap--f--recipe-builder--node-selector-viewer--integration--icon--size)}.viewer-item-integration-tags{display:flex;align-items:center;gap:var(--uas--base--spacing-2xs)}.viewer-item-name uas-markdown{display:inline-block;--uas--markdown--string-font-weight: 600}.viewer-item-name-tags{display:inline-flex;flex-wrap:wrap;align-items:center;gap:var(--uas--base--spacing-2xs)}.viewer-item-description{font-family:var(--uas--typography--body-small-font-family);font-size:var(--uas--typography--body-small-font-size);line-height:var(--uas--typography--body-small-line-height);font-weight:var(--uas--typography--body-small-font-weight);letter-spacing:var(--uas--typography--body-small-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;color:var(--uas--typography--color-secondary)}.viewer-item--view-search{--uas--button--size-custom-padding-top: var(--uap--f--recipe-builder--node-selector-viewer--spacing-between-items);--uas--button--size-custom-padding-bottom: var(--uap--f--recipe-builder--node-selector-viewer--spacing-between-items);--uas--button--custom-border-radius: 0;margin-left:calc(var(--uas--base--spacing-lg)*-1);margin-right:calc(var(--uas--base--spacing-lg)*-1);--uas--button--size-custom-padding-left: calc(var(--uas--base--spacing-lg) - 1px);--uas--button--size-custom-padding-right: calc(var(--uas--base--spacing-lg) - 1px)}.viewer-item--view-search:not(:last-child){border-bottom:1px solid var(--uas--color--border)}.viewer-item--view-search:last-child{margin-bottom:calc(var(--uas--button--size-padding-bottom)*-1)}.viewer-groups{margin-bottom:calc(var(--uas--base--spacing-lg)*-1)}.viewer-groups--two-columns{column-count:2;column-gap:var(--uas--base--spacing-lg)}@container uap-f-recipe-builder-node-selector (width <= 400px){.viewer-groups--two-columns{column-count:1}}.viewer-groups .viewer-group{padding-bottom:var(--uas--base--spacing-lg)}.viewer-group{display:flex;flex-direction:column;gap:var(--uas--base--spacing-xs);break-inside:avoid}.viewer-group-title{font-family:var(--uas--typography--body-small-font-family);font-size:var(--uas--typography--body-small-font-size);line-height:var(--uas--typography--body-small-line-height);font-weight:var(--uas--typography--body-small-font-weight);letter-spacing:var(--uas--typography--body-small-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-weight:600;display:flex;align-items:center;flex-wrap:wrap;gap:var(--uas--base--spacing-2xs);min-height:var(--uap--f--recipe-builder--node-selector-viewer--integration--icon--size)}.viewer-group-title-count{font-family:var(--uas--typography--label-small-font-family);font-size:var(--uas--typography--label-small-font-size);line-height:var(--uas--typography--label-small-line-height);font-weight:var(--uas--typography--label-small-font-weight);letter-spacing:var(--uas--typography--label-small-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-weight:600;width:1.4em;height:1.4em;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;background:var(--uas--color--border)}.viewer-unsupported-entity{display:block;width:100%}.viewer-unsupported-entity-reason{font-family:var(--uas--typography--body-small-font-family);font-size:var(--uas--typography--body-small-font-size);line-height:var(--uas--typography--body-small-line-height);font-weight:var(--uas--typography--body-small-font-weight);letter-spacing:var(--uas--typography--body-small-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;color:var(--uas--typography--color-secondary);display:flex;align-items:baseline;gap:var(--uas--base--spacing-2xs)}.viewer-group-togglable--all-integrations{margin-top:calc(var(--uas--base--spacing-lg) - var(--uap--f--recipe-builder--node-selector-viewer--spacing-between-items)/2);margin-bottom:calc(var(--uap--f--recipe-builder--node-selector-viewer--spacing-between-items)/2*-1)}.viewer-group-togglable-summary{display:flex;align-items:center;justify-content:space-between;gap:var(--uas--base--spacing-sm);color:var(--uas--color--primary);font-weight:600;cursor:pointer;transition:var(--uas--base--transition);transition-property:background-color;padding:calc(var(--uap--f--recipe-builder--node-selector-viewer--spacing-between-items)/2) var(--uap-field-wrapper-padding-right-default);margin:calc(var(--uap--f--recipe-builder--node-selector-viewer--spacing-between-items)/2*-1) calc(var(--uap-field-wrapper-padding-right-default)*-1) 0 calc(var(--uap-field-wrapper-padding-right-default)*-1);border-radius:var(--uas--base--border-radius-md)}@container uap-f-recipe-builder-node-selector (width <= 768px){.viewer-group-togglable-summary{flex-wrap:wrap}}.viewer-group-togglable-summary-title{display:flex;align-items:center;gap:var(--uas--base--spacing-xs)}.viewer-group-togglable-summary-icon{transition:var(--uas--base--transition);transition-property:transform}.viewer-group-togglable[open] .viewer-group-togglable-summary-icon{transform:rotate(180deg)}.viewer-group-togglable-content{margin-top:calc(var(--uas--base--spacing-md) - var(--uap-field-wrapper-padding-top-default));padding-top:var(--uas--base--spacing-md);border-top:1px solid var(--uas--color--border);transition:var(--uas--base--transition);transition-property:border-color}.viewer-group-togglable-content--two-columns{width:100%;display:grid;grid-template-columns:repeat(2, minmax(0, 1fr));gap:0 var(--uas--base--spacing-lg)}@container uap-f-recipe-builder-node-selector (width <= 400px){.viewer-group-togglable-content--two-columns{grid-template-columns:1fr}}.viewer-group-togglable-summary:hover~.viewer-group-togglable-content{border-top-color:rgba(0,0,0,0)}.viewer-keyboard-shortcuts{display:flex;align-items:center;gap:var(--uas--base--spacing-sm);padding:var(--uas--base--spacing-sm) var(--uas--base--spacing-lg);border-top:1px solid var(--uas--color--border)}.viewer-keyboard-shortcuts-item{display:flex;align-items:center;gap:var(--uas--base--spacing-xs);font-family:var(--uas--typography--body-small-font-family);font-size:var(--uas--typography--body-small-font-size);line-height:var(--uas--typography--body-small-line-height);font-weight:var(--uas--typography--body-small-font-weight);letter-spacing:var(--uas--typography--body-small-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;color:var(--uas--typography--color-secondary)}",""]),i.d(t,["default",0,r])},2655(e,t,i){"use strict";i.r(t);var a=i(1601),n=i.n(a),o=i(6314),r=(i.n(o))()(n());r.push([e.id,":root{display:block}.node-selector{background:#fff;border-radius:var(--uas--base--border-radius-md);min-height:var(--uap--f--recipe-builder--node-selector--min-height);display:flex;flex-direction:column;container-name:uap-f-recipe-builder-node-selector;container-type:inline-size}@container uap-f-recipe-builder-node-selector (width <= 768px){.node-selector-steps,.node-selector-content{--uap--f--recipe-builder--node-selector--steps--height: auto}}.node-selector-steps{padding:calc(var(--uas--base--spacing-sm)/2) calc(var(--uas--base--spacing-lg) - var(--uas--button--size-md-padding-left));box-sizing:border-box;min-height:var(--uap--f--recipe-builder--node-selector--steps--height);display:flex;align-items:center;border-bottom:1px solid var(--uas--color--border)}.node-selector-content{flex:1 1 auto;display:flex;flex-direction:column}.node-selector-content uap-f-recipe-builder-node-selector-viewer{flex:1 1 auto;display:flex;flex-direction:column}",""]),i.d(t,["default",0,r])},1510(e,t,i){"use strict";i.r(t);var a=i(1601),n=i.n(a),o=i(6314),r=(i.n(o))()(n());r.push([e.id,":host{display:block}.notices{display:flex;flex-direction:column}.notices__notice{display:block;inline-size:100%}",""]),i.d(t,["default",0,r])},6446(e,t,i){"use strict";i.r(t);var a=i(1601),n=i.n(a),o=i(6314),r=(i.n(o))()(n());r.push([e.id,":host{display:block}.resolve-dependencies{display:flex;flex-direction:column;max-height:calc(100vh - 2*var(--uas--dialog--margin-block))}.resolve-dependencies__step{flex:1 1 auto;min-height:0;overflow-y:auto}.resolve-dependencies__actions{flex:0 0 auto;display:flex;justify-content:flex-end;padding:var(--uas--base--spacing-md) var(--uas--base--spacing-lg);border-top:1px solid var(--uas--color--border)}",""]),i.d(t,["default",0,r])},858(e,t,i){"use strict";i.r(t);var a=i(1601),n=i.n(a),o=i(6314),r=(i.n(o))()(n());r.push([e.id,":host{display:block}.categories{display:flex;flex-direction:column;gap:var(--uas--base--spacing-xs)}.categories__label{color:var(--uas--typography--color-secondary)}.categories__tree{box-sizing:border-box;max-height:12em;margin:0;border:1px solid var(--uas--color--border);border-radius:var(--uas--base--border-radius-sm);padding:var(--uas--base--spacing-sm);overflow-y:auto;list-style:none}.categories__node{list-style:none}.categories__children{margin:0;margin-left:var(--uas--base--spacing-xs);border-left:1px solid var(--uas--color--border);padding-left:var(--uas--base--spacing-sm);list-style:none}.categories__option{display:flex;align-items:center;gap:var(--uas--base--spacing-2xs);padding-block:var(--uas--base--spacing-2xs);cursor:pointer}.categories__checkbox{margin:0;accent-color:var(--uas--color--primary);cursor:pointer}.categories__name{color:var(--uas--typography--color);line-height:1.5}.categories__add-toggle{align-self:flex-start}.categories__add{display:flex;flex-direction:column;gap:var(--uas--base--spacing-2xs)}.categories__add-name,.categories__add-parent{box-sizing:border-box;width:100%;margin:0;border:1px solid var(--uas--color--field-border);border-radius:var(--uas--base--border-radius-sm);padding:var(--uas--base--spacing-sm);background:rgba(0,0,0,0);color:var(--uas--typography--color);font:inherit;line-height:1.5}.categories__add-name:focus,.categories__add-parent:focus{border-color:var(--uas--color--primary);outline:none}.categories__add-name::placeholder{color:var(--uas--typography--color-tertiary)}.categories__add-submit{align-self:flex-start}",""]),i.d(t,["default",0,r])},8189(e,t,i){"use strict";i.r(t);var a=i(1601),n=i.n(a),o=i(6314),r=(i.n(o))()(n());r.push([e.id,":host{display:block}.tags{display:flex;flex-direction:column;gap:var(--uas--base--spacing-xs);position:relative}.tags__label{color:var(--uas--typography--color-secondary)}.tags__field{font-family:var(--uas--typography--body-small-font-family);font-size:var(--uas--typography--body-small-font-size);line-height:var(--uas--typography--body-small-line-height);font-weight:var(--uas--typography--body-small-font-weight);letter-spacing:var(--uas--typography--body-small-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;display:flex;flex-wrap:wrap;align-items:center;gap:var(--uas--base--spacing-2xs);box-sizing:border-box;min-height:5em;align-content:flex-start;margin:0;border:1px solid var(--uas--color--field-border);border-radius:var(--uas--base--border-radius-sm);padding:var(--uas--base--spacing-sm);background:rgba(0,0,0,0);cursor:text}.tags__field:focus-within{border-color:var(--uas--color--primary)}.tags__pill{display:inline-flex;align-items:center;gap:var(--uas--base--spacing-2xs);border-radius:var(--uas--base--border-radius-sm);padding:var(--uas--base--spacing-2xs) var(--uas--base--spacing-xs);background:var(--uas--color--status-neutral-container);color:var(--uas--color--status-on-neutral-container);line-height:1.5}.tags__pill-name{white-space:nowrap}.tags__pill-remove{--uas--button--size-custom-padding-left: var( --uas--base--spacing-2xs );--uas--button--size-custom-padding-right: var( --uas--base--spacing-2xs );--uas--button--size-custom-font-size: 9px;margin-right:calc(var(--uas--base--spacing-2xs)*-1)}.tags__entry{flex:1 1 6em;min-width:6em;color:var(--uas--typography--color);line-height:1.5;white-space:pre-wrap;word-break:break-word;outline:none}.tags__field[data-empty] .tags__entry:empty::before{content:attr(data-placeholder);color:var(--uas--typography--color-tertiary);pointer-events:none}.tags__results{font-family:var(--uas--typography--body-small-font-family);font-size:var(--uas--typography--body-small-font-size);line-height:var(--uas--typography--body-small-line-height);font-weight:var(--uas--typography--body-small-font-weight);letter-spacing:var(--uas--typography--body-small-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;box-sizing:border-box;max-height:12em;margin:0;border:1px solid var(--uas--color--border);border-radius:var(--uas--base--border-radius-sm);padding:var(--uas--base--spacing-2xs);overflow-y:auto;list-style:none}.tags__result{border-radius:var(--uas--base--border-radius-xs);padding:var(--uas--base--spacing-2xs) var(--uas--base--spacing-sm);color:var(--uas--typography--color);line-height:1.5;cursor:pointer}.tags__result:hover{background:var(--uas--color--status-neutral-container)}.tags__hint{font-family:var(--uas--typography--label-small-font-family);font-size:var(--uas--typography--label-small-font-size);line-height:var(--uas--typography--label-small-line-height);font-weight:var(--uas--typography--label-small-font-weight);letter-spacing:var(--uas--typography--label-small-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;color:var(--uas--typography--color-secondary)}",""]),i.d(t,["default",0,r])},2821(e,t,i){"use strict";i.r(t);var a=i(1601),n=i.n(a),o=i(6314),r=(i.n(o))()(n());r.push([e.id,":host{display:block}.taxonomy{font-family:var(--uas--typography--body-small-font-family);font-size:var(--uas--typography--body-small-font-size);line-height:var(--uas--typography--body-small-line-height);font-weight:var(--uas--typography--body-small-font-weight);letter-spacing:var(--uas--typography--body-small-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;display:flex;flex-direction:column;gap:var(--uas--base--spacing-md)}",""]),i.d(t,["default",0,r])},801(e,t,i){"use strict";i.r(t);var a=i(1601),n=i.n(a),o=i(6314),r=(i.n(o))()(n());r.push([e.id,":host{display:contents}",""]),i.d(t,["default",0,r])},2029(e,t,i){"use strict";i.r(t);var a=i(1601),n=i.n(a),o=i(6314),r=(i.n(o))()(n());r.push([e.id,":host{display:block}.details{font-family:var(--uas--typography--body-medium-font-family);font-size:var(--uas--typography--body-medium-font-size);line-height:var(--uas--typography--body-medium-line-height);font-weight:var(--uas--typography--body-medium-font-weight);letter-spacing:var(--uas--typography--body-medium-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;display:flex;flex-direction:column;gap:var(--uas--base--spacing-xs)}",""]),i.d(t,["default",0,r])},6288(e,t,i){"use strict";i.r(t);var a=i(1601),n=i.n(a),o=i(6314),r=(i.n(o))()(n());r.push([e.id,":host{display:block}.wrapper{display:flex;flex-direction:column;gap:var(--uas--base--spacing-sm);align-items:flex-start}.notes{box-sizing:border-box;width:100%;min-height:6em;margin:0;border:1px solid var(--uas--color--field-border);border-radius:var(--uas--base--border-radius-sm);padding:var(--uas--base--spacing-sm);background:rgba(0,0,0,0);color:var(--uas--typography--color);font:inherit;line-height:1.5;field-sizing:content;resize:none}.notes::placeholder{color:var(--uas--typography--color-tertiary)}.notes:focus{border-color:var(--uas--color--primary);outline:none}",""]),i.d(t,["default",0,r])},2672(e,t,i){"use strict";i.r(t);var a=i(1601),n=i.n(a),o=i(6314),r=(i.n(o))()(n());r.push([e.id,".setting{--uap--f--publish--setting--gap: 5px;display:flex;gap:var(--uap--f--publish--setting--gap);--uas--button--size-custom-font-size: 14px;--uas--button--size-custom-padding-left: 3px;--uas--button--size-custom-padding-right: 3px}.setting-icon{width:15px;color:var(--uas--typography--color-secondary);padding-top:1px}.setting-content{display:flex;flex-wrap:wrap;align-items:center;gap:0 var(--uap--f--publish--setting--gap)}.setting-value{font-weight:600}.setting-helper{--uas--button--custom-color: var(--uas--typography--color-secondary)}.setting-edit-button{--uas--button--custom-color: var(--uas--color--primary)}.setting-helper+.setting-edit-button{margin-left:calc(-1*var(--uap--f--publish--setting--gap))}",""]),i.d(t,["default",0,r])},7184(e,t,i){"use strict";i.r(t);var a=i(1601),n=i.n(a),o=i(6314),r=(i.n(o))()(n());r.push([e.id,":host{display:block}.publish-settings{font-family:var(--uas--typography--body-medium-font-family);font-size:var(--uas--typography--body-medium-font-size);line-height:var(--uas--typography--body-medium-line-height);font-weight:var(--uas--typography--body-medium-font-weight);letter-spacing:var(--uas--typography--body-medium-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;display:flex;flex-direction:column;gap:var(--uas--base--spacing-xs)}",""]),i.d(t,["default",0,r])},6301(e,t,i){"use strict";i.r(t);var a=i(1601),n=i.n(a),o=i(6314),r=(i.n(o))()(n());r.push([e.id,":host{display:contents}",""]),i.d(t,["default",0,r])},1984(e,t,i){"use strict";i.r(t);var a=i(1601),n=i.n(a),o=i(6314),r=(i.n(o))()(n());r.push([e.id,":host{display:contents}.button{display:block;width:100%}",""]),i.d(t,["default",0,r])},4687(e,t,i){"use strict";i.r(t);var a=i(1601),n=i.n(a),o=i(6314),r=(i.n(o))()(n());r.push([e.id,":host{display:contents}uas-button{width:100%}",""]),i.d(t,["default",0,r])},7044(e,t,i){"use strict";i.r(t);var a=i(1601),n=i.n(a),o=i(6314),r=(i.n(o))()(n());r.push([e.id,":host{display:contents}uas-button{width:100%}",""]),i.d(t,["default",0,r])},4669(e,t,i){"use strict";i.r(t);var a=i(1601),n=i.n(a),o=i(6314),r=(i.n(o))()(n());r.push([e.id,":host{display:contents}.remove{width:100%;--uas--button--custom-color: var( --uas--color--status-on-error-container );--uas--button--custom-hover-color: var( --uas--color--status-on-error-container )}",""]),i.d(t,["default",0,r])},3616(e,t,i){"use strict";i.r(t);var a=i(1601),n=i.n(a),o=i(6314),r=(i.n(o))()(n());r.push([e.id,":host{display:inline-flex}.dropdown{--uas--button-dropdown--custom-padding: var(--uas--base--spacing-xs);--uas--button--size-custom-padding-left: var(--uas--base--spacing-xs);--uas--button--size-custom-padding-right: var(--uas--base--spacing-xs);margin-right:calc(var(--uas--base--spacing-xs)*-1)}.trigger{--uas--button--custom-color: var(--uas--typography--color-secondary)}",""]),i.d(t,["default",0,r])},1101(e,t,i){"use strict";i.r(t);var a=i(1601),n=i.n(a),o=i(6314),r=(i.n(o))()(n());r.push([e.id,":host{display:contents}.rejection-dialog{display:flex;flex-direction:column;gap:var(--uas--base--spacing-md)}.rejection-dialog__list{border:1px solid var(--uas--color--border);border-radius:var(--uas--base--border-radius-lg)}.rejection-dialog__section{display:flex;flex-direction:column;gap:var(--uas--base--spacing-sm);padding:var(--uas--base--spacing-sm) var(--uas--base--spacing-md) var(--uas--base--spacing-md)}.rejection-dialog__section+.rejection-dialog__section{border-top:1px solid var(--uas--color--border)}.rejection-dialog__section-header{display:flex;align-items:center;gap:var(--uas--base--spacing-xs)}.rejection-dialog__section-icon{flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;font-size:12px;border-radius:var(--uas--base--border-radius-sm);background:var(--uas--color--status-neutral-container);color:var(--uas--color--status-on-neutral-container)}.rejection-dialog__section-title{font-family:var(--uas--typography--label-large-font-family);font-size:var(--uas--typography--label-large-font-size);line-height:var(--uas--typography--label-large-line-height);font-weight:var(--uas--typography--label-large-font-weight);letter-spacing:var(--uas--typography--label-large-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;flex:1 1 auto;margin:0}.rejection-dialog__nodes{display:flex;flex-direction:column;gap:var(--uas--base--spacing-sm);margin:0;padding:0;list-style:none}.rejection-dialog__node{display:flex;flex-direction:column;gap:var(--uas--base--spacing-2xs)}.rejection-dialog__messages{font-family:var(--uas--typography--body-small-font-family);font-size:var(--uas--typography--body-small-font-size);line-height:var(--uas--typography--body-small-line-height);font-weight:var(--uas--typography--body-small-font-weight);letter-spacing:var(--uas--typography--body-small-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;display:flex;flex-direction:column;gap:var(--uas--base--spacing-2xs);margin:0;padding:0;list-style:none;color:var(--uas--color--status-on-error-container)}",""]),i.d(t,["default",0,r])},4284(e,t,i){"use strict";i.r(t);var a=i(1601),n=i.n(a),o=i(6314),r=(i.n(o))()(n());r.push([e.id,":host{display:contents}.mobile{display:none;--uas--chip--size-custom-font-size: 18px;--uas--chip--size-custom-padding-left: var(--uas--base--spacing-xs);--uas--chip--size-custom-padding-right: var(--uas--base--spacing-xs)}@container uap-f-recipe-builder-top-bar (width <= 768px){.desktop{display:none}.mobile{display:block}}",""]),i.d(t,["default",0,r])},562(e,t,i){"use strict";i.r(t);var a=i(1601),n=i.n(a),o=i(6314),r=(i.n(o))()(n());r.push([e.id,":host{display:inline-flex}.button{--uas--button--size-custom-padding-left: var(--uas--base--spacing-xs);--uas--button--size-custom-padding-right: var(--uas--base--spacing-xs);--uas--button--size-custom-font-size: 22px;--uas--button--custom-color: var(--uas--typography--color-secondary)}@container uap-f-recipe-builder-top-bar (width <= 768px){.button{--uas--button--size-custom-font-size: 18px}}",""]),i.d(t,["default",0,r])},4296(e,t,i){"use strict";i.r(t);var a=i(1601),n=i.n(a),o=i(6314),r=(i.n(o))()(n());r.push([e.id,":host{display:inline-flex}",""]),i.d(t,["default",0,r])},4581(e,t,i){"use strict";i.r(t);var a=i(1601),n=i.n(a),o=i(6314),r=(i.n(o))()(n());r.push([e.id,":host{display:block}.publish-bar{display:flex;justify-content:space-between;gap:var(--uas--base--spacing-xs)}@container uap-f-recipe-builder-top-bar (width <= 768px){.publish-bar{gap:var(--uas--base--spacing-2xs)}}.publish-bar-quick-actions{display:flex;align-items:center;gap:var(--uas--base--spacing-xs)}@container uap-f-recipe-builder-top-bar (width <= 768px){.publish-bar-quick-actions{gap:var(--uas--base--spacing-2xs)}}.publish-bar-cta{display:flex;align-items:center;gap:var(--uas--base--spacing-xs)}@container uap-f-recipe-builder-top-bar (width <= 768px){.publish-bar-cta{gap:var(--uas--base--spacing-2xs)}}",""]),i.d(t,["default",0,r])},274(e,t,i){"use strict";i.r(t);var a=i(1601),n=i.n(a),o=i(6314),r=(i.n(o))()(n());r.push([e.id,":host{display:block}.wrapper{font-family:var(--uas--typography--body-large-font-family);font-size:var(--uas--typography--body-large-font-size);line-height:var(--uas--typography--body-large-line-height);font-weight:var(--uas--typography--body-large-font-weight);letter-spacing:var(--uas--typography--body-large-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;display:flex;align-items:center;justify-content:center;gap:var(--uas--base--spacing-xs);box-sizing:border-box;height:calc(var(--uas--base--spacing-xs) + var(--uas--typography--body-large-line-height)*1em);padding:0 var(--uas--base--spacing-xs);background:var(--uas--color--status-neutral-container);border-radius:var(--uas--base--border-radius-md);inline-size:100%;position:relative}@container uap-f-recipe-builder-top-bar (width <= 850px){.wrapper{justify-content:flex-start}}.wrapper uaai-f-agent-button{position:absolute;right:var(--uas--base--spacing-xs);top:50%;transform:translateY(-50%)}@container uap-f-recipe-builder-top-bar (width <= 550px){.wrapper uaai-f-agent-button{display:none}}.title{font-family:var(--uas--typography--body-large-font-family);font-size:var(--uas--typography--body-large-font-size);line-height:var(--uas--typography--body-large-line-height);font-weight:var(--uas--typography--body-large-font-weight);letter-spacing:var(--uas--typography--body-large-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-weight:var(--uas--typography--label-large-font-weight);inline-size:100%;margin:0;padding:0;border:none;outline:none;background:rgba(0,0,0,0);color:var(--uas--typography--color);text-align:center}@container uap-f-recipe-builder-top-bar (width <= 850px){.title{text-align:left}}.title::placeholder{color:var(--uas--typography--color-tertiary)}",""]),i.d(t,["default",0,r])},2312(e,t,i){"use strict";i.r(t);var a=i(1601),n=i.n(a),o=i(6314),r=(i.n(o))()(n());r.push([e.id,":host{display:block}.top-bar{container-name:uap-f-recipe-builder-top-bar;container-type:inline-size}.logo{display:inline-flex;font-size:var(--uap--f--recipe-builder--top-bar--logo-size);line-height:0}uap-f-recipe-builder-title{display:block;inline-size:var(--uap--f--recipe-builder--top-bar--title-inline-size);max-inline-size:100%}@container uap-f-recipe-builder-top-bar (width <= 1300px){uas-top-bar{--uas--top-bar--custom-grid-template-columns: auto 1fr auto}}@container uap-f-recipe-builder-top-bar (width <= 768px){uas-top-bar{--uas--top-bar--custom-gap: var(--uas--base--spacing-sm)}.logo{--uap--f--recipe-builder--top-bar--logo-size: var(--uap--f--recipe-builder--top-bar--logo-size-mobile)}uap-d-recipe-view-switcher{--uap--d--recipe--view-switcher--icon-size: var(--uap--f--recipe-builder--top-bar--view-switcher-icon-size-mobile)}}",""]),i.d(t,["default",0,r])},6309(e,t,i){"use strict";i.r(t);var a=i(1601),n=i.n(a),o=i(6314),r=(i.n(o))()(n());r.push([e.id,":host{display:block}.violations{display:block;inline-size:100%}.violations uaai-f-agent-button:defined{display:inline-block;margin-block-start:var(--uas--base--spacing-sm)}",""]),i.d(t,["default",0,r])},1217(e,t,i){"use strict";i.r(t);var a=i(1601),n=i.n(a),o=i(6314),r=(i.n(o))()(n());r.push([e.id,":host{display:block}.card{display:flex;flex-direction:column;align-items:flex-start;gap:var(--uas--base--spacing-sm);box-sizing:border-box;block-size:100%;padding:var(--uas--base--spacing-lg);border:1px solid var(--uas--color--border);border-radius:var(--uas--base--border-radius-md);background:var(--uas--color--surface)}.card__title{font-family:var(--uas--typography--title-medium-font-family);font-size:var(--uas--typography--title-medium-font-size);line-height:var(--uas--typography--title-medium-line-height);font-weight:var(--uas--typography--title-medium-font-weight);letter-spacing:var(--uas--typography--title-medium-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;margin:0;color:var(--uas--typography--color)}.card__text{font-family:var(--uas--typography--body-medium-font-family);font-size:var(--uas--typography--body-medium-font-size);line-height:var(--uas--typography--body-medium-line-height);font-weight:var(--uas--typography--body-medium-font-weight);letter-spacing:var(--uas--typography--body-medium-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;margin:0;color:var(--uas--typography--color-secondary);overflow-wrap:anywhere}.card__lines{display:flex;flex-direction:column;gap:var(--uas--base--spacing-xs);align-self:stretch}.card__description{font-family:var(--uas--typography--body-medium-font-family);font-size:var(--uas--typography--body-medium-font-size);line-height:var(--uas--typography--body-medium-line-height);font-weight:var(--uas--typography--body-medium-font-weight);letter-spacing:var(--uas--typography--body-medium-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;box-sizing:border-box;align-self:stretch;min-block-size:112px;margin:0;padding:var(--uas--base--spacing-sm);border:1px solid var(--uas--color--field-border);border-radius:var(--uas--base--border-radius-sm);color:var(--uas--typography--color);resize:vertical}.card__description:focus{border-color:var(--uas--color--primary);outline:1px solid var(--uas--color--primary)}.card__hint{font-family:var(--uas--typography--body-small-font-family);font-size:var(--uas--typography--body-small-font-size);line-height:var(--uas--typography--body-small-line-height);font-weight:var(--uas--typography--body-small-font-weight);letter-spacing:var(--uas--typography--body-small-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;margin:0;color:var(--uas--typography--color-secondary);overflow-wrap:anywhere}.card__note{font-family:var(--uas--typography--body-small-font-family);font-size:var(--uas--typography--body-small-font-size);line-height:var(--uas--typography--body-small-line-height);font-weight:var(--uas--typography--body-small-font-weight);letter-spacing:var(--uas--typography--body-small-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;margin:0;color:var(--uas--typography--color-secondary)}.card__note--error{color:var(--uas--color--status-on-error-container)}.card__connections-error{display:flex;align-items:center;flex-wrap:wrap;gap:var(--uas--base--spacing-xs)}.card__actions{display:flex;flex-direction:column;align-items:flex-start;gap:var(--uas--base--spacing-xs);align-self:stretch;margin-block-start:auto;padding-block-start:var(--uas--base--spacing-xs)}.card__steps{align-self:stretch}.card__button{inline-size:100%}.card__button-label{overflow:hidden;min-inline-size:0;text-overflow:ellipsis}.tile{display:inline-flex;align-items:center;justify-content:center;flex:none;inline-size:36px;block-size:36px;border-radius:var(--uas--base--border-radius-sm);background:var(--uas--color--status-info-container);color:var(--uas--color--status-on-info-container);font-size:18px}.tile--md{inline-size:24px;block-size:24px;font-size:12px}.picker{--uas--button-dropdown--custom-max-width: 280px;--uas--button-dropdown--custom-min-width: 240px;container-type:inline-size;align-self:stretch;margin:0}.picker__dropdown{display:block}.picker__trigger{--uas--button--custom-justify-content: flex-start;--uas--button--size-custom-height: auto;--uas--button--size-custom-padding-top: var( --uas--base--spacing-2xs );--uas--button--size-custom-padding-right: var( --uas--base--spacing-xs );--uas--button--size-custom-padding-bottom: var( --uas--base--spacing-2xs );--uas--button--size-custom-padding-left: var( --uas--base--spacing-xs );--uap--f--recipe-builder-welcome--trigger-inset: calc( var( --uas--base--spacing-xs ) + var( --uas--button--border-width ) );box-sizing:border-box;max-inline-size:calc(100cqi + var(--uap--f--recipe-builder-welcome--trigger-inset)*2);margin-inline:calc(var(--uap--f--recipe-builder-welcome--trigger-inset)*-1)}.picker__heading{display:flex;flex-direction:column;align-items:flex-start;min-inline-size:0;text-align:start}.picker__title{font-family:var(--uas--typography--title-medium-font-family);font-size:var(--uas--typography--title-medium-font-size);line-height:var(--uas--typography--title-medium-line-height);font-weight:var(--uas--typography--title-medium-font-weight);letter-spacing:var(--uas--typography--title-medium-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;display:flex;align-items:center;gap:var(--uas--base--spacing-2xs);max-inline-size:100%;color:var(--uas--typography--color)}.picker__title-text{overflow:hidden;min-inline-size:0;text-overflow:ellipsis}.picker__detail{font-family:var(--uas--typography--body-small-font-family);font-size:var(--uas--typography--body-small-font-size);line-height:var(--uas--typography--body-small-line-height);font-weight:var(--uas--typography--body-small-font-weight);letter-spacing:var(--uas--typography--body-small-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;overflow:hidden;max-inline-size:100%;color:var(--uas--typography--color-secondary);text-overflow:ellipsis}.picker__panel{display:flex;flex-direction:column}.picker__group{font-family:var(--uas--typography--label-small-font-family);font-size:var(--uas--typography--label-small-font-size);line-height:var(--uas--typography--label-small-line-height);font-weight:var(--uas--typography--label-small-font-weight);letter-spacing:var(--uas--typography--label-small-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;padding:var(--uas--base--spacing-xs) var(--uas--base--spacing-sm);color:var(--uas--typography--color-secondary)}.picker__option{--uas--button--size-custom-height: auto;--uas--button--size-custom-padding-top: var( --uas--base--spacing-xs );--uas--button--size-custom-padding-bottom: var( --uas--base--spacing-xs );--uas--button--custom-white-space: normal;inline-size:100%}.picker__details{display:flex;flex-direction:column;align-items:flex-start;min-inline-size:0;text-align:start}.picker__name{font-family:var(--uas--typography--label-large-font-family);font-size:var(--uas--typography--label-large-font-size);line-height:var(--uas--typography--label-large-line-height);font-weight:var(--uas--typography--label-large-font-weight);letter-spacing:var(--uas--typography--label-large-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;color:var(--uas--typography--color);overflow-wrap:anywhere}.picker__used{font-family:var(--uas--typography--body-small-font-family);font-size:var(--uas--typography--body-small-font-size);line-height:var(--uas--typography--body-small-line-height);font-weight:var(--uas--typography--body-small-font-weight);letter-spacing:var(--uas--typography--body-small-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;color:var(--uas--typography--color-secondary)}.picker__separator{align-self:stretch;margin:var(--uas--base--spacing-2xs) 0;border:0;border-block-start:1px solid var(--uas--color--border)}",""]),i.d(t,["default",0,r])},5621(e,t,i){"use strict";i.r(t);var a=i(1601),n=i.n(a),o=i(6314),r=(i.n(o))()(n());r.push([e.id,":host{display:flex}.welcome{container-name:uap-f-recipe-builder-welcome;container-type:inline-size;display:flex;flex:1 1 auto;flex-direction:column;align-items:center;justify-content:center;gap:var(--uas--base--spacing-xl);box-sizing:border-box;padding:var(--uas--base--spacing-2xl) var(--uas--base--spacing-lg)}.welcome__header{display:flex;flex-direction:column;gap:var(--uas--base--spacing-xs);text-align:center}.welcome__heading{font-family:var(--uas--typography--headline-medium-font-family);font-size:var(--uas--typography--headline-medium-font-size);line-height:var(--uas--typography--headline-medium-line-height);font-weight:var(--uas--typography--headline-medium-font-weight);letter-spacing:var(--uas--typography--headline-medium-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;margin:0;color:var(--uas--typography--color)}.welcome__subheading{font-family:var(--uas--typography--body-large-font-family);font-size:var(--uas--typography--body-large-font-size);line-height:var(--uas--typography--body-large-line-height);font-weight:var(--uas--typography--body-large-font-weight);letter-spacing:var(--uas--typography--body-large-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;margin:0;color:var(--uas--typography--color-secondary)}.welcome__options{display:grid;grid-template-columns:repeat(3, minmax(0, 1fr));gap:var(--uas--base--spacing-lg);inline-size:100%;max-inline-size:1080px}@container uap-f-recipe-builder-welcome ( width <= 840px ){.welcome__options{grid-template-columns:minmax(0, 1fr);max-inline-size:480px}}.card{display:flex;flex-direction:column;align-items:flex-start;gap:var(--uas--base--spacing-sm);box-sizing:border-box;padding:var(--uas--base--spacing-lg);border:1px solid var(--uas--color--border);border-radius:var(--uas--base--border-radius-md);background:var(--uas--color--surface)}.card__title{font-family:var(--uas--typography--title-medium-font-family);font-size:var(--uas--typography--title-medium-font-size);line-height:var(--uas--typography--title-medium-line-height);font-weight:var(--uas--typography--title-medium-font-weight);letter-spacing:var(--uas--typography--title-medium-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;margin:0;color:var(--uas--typography--color)}.card__text{font-family:var(--uas--typography--body-medium-font-family);font-size:var(--uas--typography--body-medium-font-size);line-height:var(--uas--typography--body-medium-line-height);font-weight:var(--uas--typography--body-medium-font-weight);letter-spacing:var(--uas--typography--body-medium-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;margin:0;color:var(--uas--typography--color-secondary)}.card__actions{display:flex;align-self:stretch;margin-block-start:auto;padding-block-start:var(--uas--base--spacing-xs)}.card__button{inline-size:100%}.panel{display:flex;flex-direction:column;align-items:center;gap:var(--uas--base--spacing-sm);box-sizing:border-box;inline-size:100%;max-inline-size:560px;padding:var(--uas--base--spacing-xl);border:1px solid var(--uas--color--border);border-radius:var(--uas--base--border-radius-md);background:var(--uas--color--surface);text-align:center}.panel__title{font-family:var(--uas--typography--headline-small-font-family);font-size:var(--uas--typography--headline-small-font-size);line-height:var(--uas--typography--headline-small-line-height);font-weight:var(--uas--typography--headline-small-font-weight);letter-spacing:var(--uas--typography--headline-small-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;margin:0;color:var(--uas--typography--color);overflow-wrap:anywhere}.panel__text{font-family:var(--uas--typography--body-medium-font-family);font-size:var(--uas--typography--body-medium-font-size);line-height:var(--uas--typography--body-medium-line-height);font-weight:var(--uas--typography--body-medium-font-weight);letter-spacing:var(--uas--typography--body-medium-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;margin:0;color:var(--uas--typography--color-secondary);overflow-wrap:anywhere}.panel__prompt{font-family:var(--uas--typography--body-medium-font-family);font-size:var(--uas--typography--body-medium-font-size);line-height:var(--uas--typography--body-medium-line-height);font-weight:var(--uas--typography--body-medium-font-weight);letter-spacing:var(--uas--typography--body-medium-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;box-sizing:border-box;align-self:stretch;margin:0;padding:var(--uas--base--spacing-sm);border:1px solid var(--uas--color--field-border);border-radius:var(--uas--base--border-radius-sm);background:var(--uas--color--field-background-disabled);color:var(--uas--typography--color);text-align:start;resize:vertical}.panel__prompt:focus{border-color:var(--uas--color--primary);outline:1px solid var(--uas--color--primary)}.panel__actions{display:flex;flex-wrap:wrap;justify-content:center;gap:var(--uas--base--spacing-sm);max-inline-size:100%;padding-block-start:var(--uas--base--spacing-xs)}.panel__link{max-inline-size:100%}.panel__link-label{overflow:hidden;min-inline-size:0;text-overflow:ellipsis}.panel__back{--uas--button--custom-color: var( --uas--typography--color-link );--uas--button--custom-hover-color: var( --uas--typography--color-link );--uas--button--custom-font-weight: 400}.panel__status{font-family:var(--uas--typography--label-large-font-family);font-size:var(--uas--typography--label-large-font-size);line-height:var(--uas--typography--label-large-line-height);font-weight:var(--uas--typography--label-large-font-weight);letter-spacing:var(--uas--typography--label-large-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;display:inline-flex;align-items:center;gap:var(--uas--base--spacing-xs);margin:0;padding-block-start:var(--uas--base--spacing-xs);color:var(--uas--color--status-on-info-container)}.tile{display:inline-flex;align-items:center;justify-content:center;flex:none;inline-size:36px;block-size:36px;border-radius:var(--uas--base--border-radius-sm);font-size:18px}.tile--info{background:var(--uas--color--status-info-container);color:var(--uas--color--status-on-info-container)}.tile--neutral{background:var(--uas--color--status-neutral-container);color:var(--uas--color--status-on-neutral-container)}",""]),i.d(t,["default",0,r])},5327(e,t,i){"use strict";i.r(t);var a=i(1601),n=i.n(a),o=i(6314),r=(i.n(o))()(n());r.push([e.id,":host{display:block}.builder{display:flex;flex-direction:column;block-size:100%;background:var(--uas--color--surface)}.recipe-builder__error{padding:var(--uas--base--spacing-md)}.templates-dialog__frame{display:flex;flex-direction:column;block-size:80vh}.templates-dialog__frame uap-f-recipe-template{flex:1 1 auto;min-block-size:0}.builder-shell{flex:1 1 auto;min-block-size:0;background-color:var(--uap--f--recipe-builder--shell--background-color);background-image:radial-gradient(circle, var(--uap--f--recipe-builder--shell--dot-color) 1.1px, transparent 1.3px);background-size:var(--uas--base--spacing-md) var(--uas--base--spacing-md)}.builder-shell__main{display:flex;flex-direction:column;min-inline-size:0;min-block-size:100%;overflow:auto;container-type:inline-size}.builder-shell__main uap-f-recipe-builder-welcome{flex:1 1 auto}.builder-shell__main uap-f-recipe-builder-canvas{flex:1 1 auto;min-block-size:0}.builder-shell__sidebar{--uas--side-sheet--custom-left-padding: 0}uap-f-recipe-builder-top-bar{flex:0 0 auto}",""]),i.d(t,["default",0,r])},7633(e,t,i){"use strict";i.r(t);var a=i(1601),n=i.n(a),o=i(6314),r=(i.n(o))()(n());r.push([e.id,":host{display:contents}.notice{display:block;margin-top:var(--uas--base--spacing-lg)}.uap-recipe-type{display:grid;grid-template-columns:1fr 1fr;gap:0 var(--uas--base--spacing-lg)}.uap-recipe-type-item{display:flex;flex-direction:column;align-items:center;margin:0;border:1px solid var(--uas--color--border);border-radius:var(--uas--base--border-radius-md);padding:var(--uas--base--spacing-lg);background:rgba(0,0,0,0);font:inherit;color:inherit;text-align:left;appearance:none;cursor:pointer;transition:var(--uas--base--transition);transition-property:border-color,background}.uap-recipe-type-item[disabled]{pointer-events:none;opacity:.5}.uap-recipe-type-item__icon{width:125px;height:125px;border:1px solid var(--uas--color--border);border-radius:50%;object-fit:contain;object-position:bottom center}.uap-recipe-type-item h3{font-family:var(--uas--typography--label-large-font-family);font-size:var(--uas--typography--label-large-font-size);line-height:var(--uas--typography--label-large-line-height);font-weight:var(--uas--typography--label-large-font-weight);letter-spacing:var(--uas--typography--label-large-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;width:100%;margin:var(--uas--base--spacing-lg) 0 0;color:var(--uas--typography--color)}.uap-recipe-type-item p{font-family:var(--uas--typography--body-medium-font-family);font-size:var(--uas--typography--body-medium-font-size);line-height:var(--uas--typography--body-medium-line-height);font-weight:var(--uas--typography--body-medium-font-weight);letter-spacing:var(--uas--typography--body-medium-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;width:100%;margin:var(--uas--base--spacing-2xs) 0 0;color:var(--uas--typography--color-secondary)}.uap-recipe-type-item[selected]{border-color:var(--uas--color--primary);background:color(from var(--uas--color--primary) srgb r g b/0.1)}",""]),i.d(t,["default",0,r])},76(e,t,i){"use strict";i.r(t);var a=i(1601),n=i.n(a),o=i(6314),r=(i.n(o))()(n());r.push([e.id,":host{display:inline-block}.btn-delete__trigger{--uas--button--custom-color: var( --uas--color--status-on-error-container )}",""]),i.d(t,["default",0,r])},9572(e,t,i){"use strict";i.r(t);var a=i(1601),n=i.n(a),o=i(6314),r=(i.n(o))()(n());r.push([e.id,'.stage__band{position:relative;z-index:6;align-self:stretch}.band{display:flex;flex-direction:column;align-items:center;gap:var(--uap--d--recipe-canvas--node-gap, 56px)}.band__pill{display:inline-flex;align-items:center;max-inline-size:100%;padding:var(--uas--base--spacing-xs) var(--uas--base--spacing-md);background:var(--uas--color--surface);border:1px solid var(--uas--color--border);border-radius:999px}.band__strip{position:relative;isolation:isolate;display:flex;flex-direction:column;align-items:center;gap:var(--uas--base--spacing-md);inline-size:100%;min-block-size:var(--uas--base--spacing-lg);box-sizing:content-box;margin-inline:calc(-1*var(--uap--d--recipe-canvas--node-gap, 56px));padding:var(--uas--base--spacing-lg) var(--uap--d--recipe-canvas--node-gap, 56px)}.band__strip::before{content:"";position:absolute;inset-block:0;inset-inline:calc(-1*100vw/var(--uas--canvas-viewport--zoom, 1));z-index:-1;background:var(--uap--d--recipe-canvas--seam-fill);border-block:1px solid var(--uap--d--recipe-canvas--seam-rule);pointer-events:none}.band__operator{display:inline-flex;max-inline-size:100%}',""]),i.d(t,["default",0,r])},4182(e,t,i){"use strict";i.r(t);var a=i(1601),n=i.n(a),o=i(6314),r=(i.n(o))()(n());r.push([e.id,':host{display:block}:host([selected]) .block-modifier{box-shadow:inset 0 0 0 2px var(--uas--color--primary)}.block-modifier{display:grid;grid-template-columns:min-content 1fr min-content;grid-template-areas:"integration-icon content more-info";align-items:center;gap:var(--uas--base--spacing-xs);padding:var(--uas--base--spacing-md);font-family:var(--uas--typography--body-medium-font-family);font-size:var(--uas--typography--body-medium-font-size);line-height:var(--uas--typography--body-medium-line-height);font-weight:var(--uas--typography--body-medium-font-weight);letter-spacing:var(--uas--typography--body-medium-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;color:var(--uas--typography--color)}.block-modifier--appearance-muted{filter:grayscale(1);opacity:.6}.block-modifier__icon{grid-area:integration-icon;align-self:start;padding-top:var(--uas--base--spacing-2xs)}.block-modifier__content{grid-area:content;min-width:0;display:flex;flex-wrap:wrap;align-items:center;gap:var(--uas--base--spacing-2xs) var(--uas--base--spacing-sm)}.block-modifier__sentence{flex:1 1 16rem;min-width:0;line-height:1.4;display:flex;flex-direction:column;gap:var(--uas--base--spacing-2xs)}.block-modifier__result-message{font-family:var(--uas--typography--body-small-font-family);font-size:var(--uas--typography--body-small-font-size);line-height:var(--uas--typography--body-small-line-height);font-weight:var(--uas--typography--body-small-font-weight);letter-spacing:var(--uas--typography--body-small-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;color:var(--uas--color--status-on-error-container)}.block-modifier__status{flex:0 0 auto;white-space:nowrap}.block-modifier__status-counts{display:inline-flex;align-items:center;gap:var(--uas--base--spacing-sm)}.block-modifier__more-info{grid-area:more-info;align-self:center;--uas--button--custom-color: var( --uas--typography--color-secondary );--uas--button--size-custom-padding-left: var( --uas--base--spacing-xs );--uas--button--size-custom-padding-right: var( --uas--base--spacing-xs );margin-right:calc(-1*var(--uas--base--spacing-xs))}',""]),i.d(t,["default",0,r])},7324(e,t,i){"use strict";i.r(t);var a=i(1601),n=i.n(a),o=i(6314),r=(i.n(o))()(n());r.push([e.id,":host{display:block}.path{display:flex;flex-direction:column;gap:var(--uas--base--spacing-xs)}.path__header{align-self:flex-start}.path__items{display:flex;flex-direction:column;gap:var(--uas--base--spacing-xs)}.path__empty{margin:0;font-family:var(--uas--typography--body-small-font-family);font-size:var(--uas--typography--body-small-font-size);line-height:var(--uas--typography--body-small-line-height);font-weight:var(--uas--typography--body-small-font-weight);letter-spacing:var(--uas--typography--body-small-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;color:var(--uas--typography--color-secondary);font-style:italic}",""]),i.d(t,["default",0,r])},943(e,t,i){"use strict";i.r(t);var a=i(1601),n=i.n(a),o=i(6314),r=(i.n(o))()(n());r.push([e.id,":host{display:block}:host([selected]) .block{box-shadow:0 0 0 2px var(--uas--color--primary)}.block{width:100%;border:1px solid var(--uas--color--border);border-radius:var(--uas--base--border-radius-md);background-color:#fff;font-family:var(--uas--typography--body-medium-font-family);font-size:var(--uas--typography--body-medium-font-size);line-height:var(--uas--typography--body-medium-line-height);font-weight:var(--uas--typography--body-medium-font-weight);letter-spacing:var(--uas--typography--body-medium-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;color:var(--uas--typography--color)}.block--appearance-muted{filter:grayscale(1)}.block--appearance-muted .block__header{opacity:.6}.block__header{display:flex;align-items:center;gap:var(--uas--base--spacing-sm);padding:var(--uas--base--spacing-md);background-color:var(--uas--color--status-neutral-container);border-bottom:1px solid var(--uas--color--border);border-top-left-radius:var(--uas--base--border-radius-md);border-top-right-radius:var(--uas--base--border-radius-md)}.block__heading{flex:1 1 auto;min-width:0;display:flex;align-items:center;flex-wrap:wrap;column-gap:var(--uas--base--spacing-sm);row-gap:var(--uas--base--spacing-2xs)}.block__tag{display:inline-flex;align-items:center;gap:var(--uas--base--spacing-xs);font-family:var(--uas--typography--body-medium-font-family);font-size:var(--uas--typography--body-medium-font-size);line-height:var(--uas--typography--body-medium-line-height);font-weight:var(--uas--typography--body-medium-font-weight);letter-spacing:var(--uas--typography--body-medium-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-weight:500;color:var(--uas--typography--color);text-transform:capitalize}.block__sentence{flex:1 1 auto;min-width:0;font-family:var(--uas--typography--body-small-font-family);font-size:var(--uas--typography--body-small-font-size);line-height:var(--uas--typography--body-small-line-height);font-weight:var(--uas--typography--body-small-font-weight);letter-spacing:var(--uas--typography--body-small-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;color:var(--uas--typography--color-secondary);line-height:1.4}.block__more-info{flex:0 0 auto;--uas--button--custom-color: var( --uas--typography--color-secondary );--uas--button--size-custom-padding-left: var( --uas--base--spacing-xs );--uas--button--size-custom-padding-right: var( --uas--base--spacing-xs );margin-right:calc(-1*var(--uas--base--spacing-xs))}.block__icon{flex:0 0 auto;line-height:0}.block__type{flex:0 0 auto;font-family:var(--uas--typography--body-medium-font-family);font-size:var(--uas--typography--body-medium-font-size);line-height:var(--uas--typography--body-medium-line-height);font-weight:var(--uas--typography--body-medium-font-weight);letter-spacing:var(--uas--typography--body-medium-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-weight:500;color:var(--uas--typography--color);text-transform:capitalize}.block__modifiers{display:flex;flex-direction:column;background-color:#fff;border-bottom:1px solid var(--uas--color--border)}.block__modifiers uap-f-recipe-log-block-modifier:not(:last-child){border-bottom:1px solid var(--uas--color--border)}.block__status-strip{display:flex;flex-wrap:wrap;align-items:center;gap:var(--uas--base--spacing-sm);padding:var(--uas--base--spacing-md);background-color:var(--uas--color--status-neutral-container);border-bottom:1px solid var(--uas--color--border);font-family:var(--uas--typography--body-small-font-family);font-size:var(--uas--typography--body-small-font-size);line-height:var(--uas--typography--body-small-line-height);font-weight:var(--uas--typography--body-small-font-weight);letter-spacing:var(--uas--typography--body-small-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;color:var(--uas--typography--color-secondary)}.block__status-summary{flex:1 1 16rem;min-width:0;display:flex;flex-wrap:wrap;align-items:center;gap:var(--uas--base--spacing-2xs) var(--uas--base--spacing-md)}.block__status-info{display:inline-flex;flex-wrap:wrap;align-items:center;gap:var(--uas--base--spacing-xs);color:var(--uas--typography--color)}.block__status-meta{display:contents}.block__status-meta-item{display:inline-flex;align-items:center;gap:var(--uas--base--spacing-2xs);font-family:var(--uas--typography--body-small-font-family);font-size:var(--uas--typography--body-small-font-size);line-height:var(--uas--typography--body-small-line-height);font-weight:var(--uas--typography--body-small-font-weight);letter-spacing:var(--uas--typography--body-small-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;color:var(--uas--typography--color-secondary)}.block__status-meta-item uas-icon{font-family:var(--uas--typography--body-small-font-family);font-size:var(--uas--typography--body-small-font-size);line-height:var(--uas--typography--body-small-line-height);font-weight:var(--uas--typography--body-small-font-weight);letter-spacing:var(--uas--typography--body-small-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;color:var(--uas--typography--color-secondary)}.block__progress-bar{position:relative;width:100%;height:6px;background-color:var(--uas--color--placeholder-gray);overflow:hidden}.block__progress-fill{display:block;height:100%;background-color:var(--uas--color--primary)}.block__progress-counter{display:inline-flex;align-items:center;gap:var(--uas--base--spacing-2xs);font-weight:500;color:var(--uas--typography--color);white-space:nowrap}.block__progress-percentage{font-weight:400;color:var(--uas--typography--color-secondary)}.block__progress-statuses{display:flex;flex-wrap:wrap;gap:var(--uas--base--spacing-2xs) var(--uas--base--spacing-sm);padding:var(--uas--base--spacing-xs) var(--uas--base--spacing-md);background-color:var(--uas--color--status-neutral-container);border-bottom:1px solid var(--uas--color--border)}.block__progress-status{display:inline-flex;align-items:center;gap:var(--uas--base--spacing-2xs);font-family:var(--uas--typography--body-small-font-family);font-size:var(--uas--typography--body-small-font-size);line-height:var(--uas--typography--body-small-line-height);font-weight:var(--uas--typography--body-small-font-weight);letter-spacing:var(--uas--typography--body-small-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;color:var(--uas--typography--color-secondary)}.block__progress-status-count{font-weight:600;color:var(--uas--typography--color)}.block__control{display:inline-flex;align-items:center;gap:var(--uas--base--spacing-xs);flex:0 0 auto}.block__body{display:flex;flex-direction:column;gap:var(--uas--base--spacing-xs);padding:var(--uas--base--spacing-md);border-radius:0 0 var(--uas--base--border-radius-md) var(--uas--base--border-radius-md)}.block__body--empty{padding:0;min-height:0}:host([head-only]) .block>*:last-child{border-end-start-radius:var(--uas--base--border-radius-md);border-end-end-radius:var(--uas--base--border-radius-md)}",""]),i.d(t,["default",0,r])},8455(e,t,i){"use strict";i.r(t);var a=i(1601),n=i.n(a),o=i(6314),r=(i.n(o))()(n());r.push([e.id,':host{display:block}:host([selected]) .item{box-shadow:0 0 0 2px var(--uas--color--primary)}.item{border:1px solid var(--uas--color--border);border-radius:var(--uas--base--border-radius-md);padding:var(--uas--base--spacing-md);background-color:#fff;font-family:var(--uas--typography--body-medium-font-family);font-size:var(--uas--typography--body-medium-font-size);line-height:var(--uas--typography--body-medium-line-height);font-weight:var(--uas--typography--body-medium-font-weight);letter-spacing:var(--uas--typography--body-medium-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;color:var(--uas--typography--color);display:grid;grid-template-columns:min-content 1fr min-content;grid-template-rows:min-content min-content;grid-auto-flow:row;gap:var(--uas--base--spacing-2xs) var(--uas--base--spacing-sm);grid-template-areas:"integration-icon sentence more-info" "integration-icon details more-info"}@container ( max-width: 768px ){.item{grid-template-columns:1fr min-content;grid-template-areas:"integration-icon more-info" "sentence sentence" "details details"}}.item--appearance-muted{filter:grayscale(1);opacity:.6;background-color:var(--uas--color--status-neutral-container)}.item__icon{grid-area:integration-icon;padding-top:var(--uas--base--spacing-2xs)}.item__sentence{grid-area:sentence;min-width:0;line-height:1.4}.item__custom-name{display:block;color:var(--uas--typography--color-secondary);line-height:1.4;font-weight:500;margin-bottom:var(--uas--base--spacing-2xs)}.item__details{grid-area:details;display:flex;flex-wrap:wrap;gap:var(--uas--base--spacing-2xs) var(--uas--base--spacing-sm);font-family:var(--uas--typography--body-small-font-family);font-size:var(--uas--typography--body-small-font-size);line-height:var(--uas--typography--body-small-line-height);font-weight:var(--uas--typography--body-small-font-weight);letter-spacing:var(--uas--typography--body-small-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;color:var(--uas--typography--color-secondary)}.item__detail{display:inline-flex;align-items:center;gap:var(--uas--base--spacing-2xs)}.item__detail-icon{color:var(--uas--typography--color-secondary)}.item__more-info{grid-area:more-info;align-self:center;--uas--button--custom-color: var( --uas--typography--color-secondary );--uas--button--size-custom-padding-left: var( --uas--base--spacing-xs );--uas--button--size-custom-padding-right: var( --uas--base--spacing-xs );margin-right:calc(-1*var(--uas--base--spacing-xs))}:host([skeleton]) .item__icon{margin-top:var(--uas--base--spacing-2xs)}:host([skeleton]) .item__more-info{margin-right:0}',""]),i.d(t,["default",0,r])},104(e,t,i){"use strict";i.r(t);var a=i(1601),n=i.n(a),o=i(6314),r=(i.n(o))()(n());r.push([e.id,":host{display:block;font-family:var(--uas--typography--body-medium-font-family);font-size:var(--uas--typography--body-medium-font-size);line-height:var(--uas--typography--body-medium-line-height);font-weight:var(--uas--typography--body-medium-font-weight);letter-spacing:var(--uas--typography--body-medium-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;color:var(--uas--typography--color)}.flow{display:flex;flex-direction:column;gap:var(--uas--base--spacing-xl)}.flow__section{display:flex;flex-direction:column;gap:var(--uas--base--spacing-sm)}.flow__section-header{display:flex;align-items:center;gap:var(--uas--base--spacing-xs)}.flow__section-title{font-size:1.3em;font-weight:700;color:var(--uas--typography--color);margin:0}.flow__section-items{display:flex;flex-direction:column;gap:var(--uas--base--spacing-sm)}.flow__section-empty{margin:0;font-family:var(--uas--typography--body-small-font-family);font-size:var(--uas--typography--body-small-font-size);line-height:var(--uas--typography--body-small-line-height);font-weight:var(--uas--typography--body-small-font-weight);letter-spacing:var(--uas--typography--body-small-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;color:var(--uas--typography--color-secondary);font-style:italic}",""]),i.d(t,["default",0,r])},991(e,t,i){"use strict";i.r(t);var a=i(1601),n=i.n(a),o=i(6314),r=(i.n(o))()(n());r.push([e.id,':host{display:block}.header{position:relative;padding:var(--uas--base--spacing-4xl) var(--uas--base--spacing-4xl) var(--uas--base--spacing-md);border-top-left-radius:var(--uas--base--border-radius-md);overflow:hidden}@container ( max-width: 768px ){.header{padding:var(--uas--base--spacing-xl) var(--uas--base--spacing-xl) var(--uas--base--spacing-md)}}.header__refresh-progress{position:absolute;top:0;left:0;right:0;z-index:1;pointer-events:none}.header__actions{--uas--button--custom-color: var( --uas--typography--color-secondary );display:flex;align-items:center;justify-content:space-between;padding-bottom:var(--uas--base--spacing-md)}.header__actions-left,.header__actions-right{display:flex;align-items:center}.header__actions-group{padding:0 var(--uas--base--spacing-sm);position:relative}.header__actions-group:not(:last-child)::after{content:"";width:1px;height:50%;position:absolute;right:0;top:50%;transform:translateY(-50%);background:var(--uas--color--border)}.header__actions-left .header__actions-group:first-child{padding-left:0;margin-left:calc(-1*var(--uas--button--size-xs-padding-left))}.header__actions-right .header__actions-group:last-child{padding-right:0;margin-right:calc(-1*var(--uas--button--size-xs-padding-left))}:host([skeleton]) .header__actions-left .header__actions-group:first-child{margin-left:0}:host([skeleton]) .header__actions-right .header__actions-group:last-child{margin-right:0}.header__action{--uas--button--custom-color: var( --uas--typography--color-secondary )}@container ( max-width: 768px ){.header__action-label{display:none}}.header__action-tip{white-space:nowrap}.header__title{font-family:var(--uas--typography--headline-small-font-family);font-size:var(--uas--typography--headline-small-font-size);line-height:var(--uas--typography--headline-small-line-height);font-weight:var(--uas--typography--headline-small-font-weight);letter-spacing:var(--uas--typography--headline-small-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;color:var(--uas--typography--color);margin:0 0 var(--uas--base--spacing-md);overflow-wrap:anywhere}@container ( max-width: 768px ){.header__title{font-size:1.5em}}.header__summary{border-collapse:collapse;margin:0}.header__summary tbody{vertical-align:middle}.header__summary td{padding:var(--uas--base--spacing-2xs) 0}@container ( max-width: 768px ){.header__summary tr{display:block;padding:var(--uas--base--spacing-xs) 0}.header__summary td{display:block;padding:0}}.header__summary-row--multiline{vertical-align:top}.header__summary-key{font-family:var(--uas--typography--body-medium-font-family);font-size:var(--uas--typography--body-medium-font-size);line-height:var(--uas--typography--body-medium-line-height);font-weight:var(--uas--typography--body-medium-font-weight);letter-spacing:var(--uas--typography--body-medium-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-weight:600;width:150px;color:var(--uas--typography--color)}@container ( max-width: 768px ){.header__summary-key{width:auto}}.header__summary-value{font-family:var(--uas--typography--body-medium-font-family);font-size:var(--uas--typography--body-medium-font-size);line-height:var(--uas--typography--body-medium-line-height);font-weight:var(--uas--typography--body-medium-font-weight);letter-spacing:var(--uas--typography--body-medium-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.header__summary-value-placeholder{color:var(--uas--typography--color-tertiary)}.header__errors{display:flex;flex-direction:column;gap:var(--uas--base--spacing-2xs);margin:0;padding:0;list-style:none}.header__error{color:var(--uas--color--status-on-error-container);overflow-wrap:anywhere}.header__user{display:inline-flex;align-items:center;gap:var(--uas--base--spacing-xs)}.header__user-avatar{width:20px;height:20px;border-radius:50%;object-fit:cover;flex:0 0 auto}.header__user-name{min-width:0;overflow-wrap:anywhere}',""]),i.d(t,["default",0,r])},3640(e,t,i){"use strict";i.r(t);var a=i(1601),n=i.n(a),o=i(6314),r=(i.n(o))()(n());r.push([e.id,":host{display:block}.item-tasks{display:flex;flex-wrap:wrap;gap:var(--uas--base--spacing-xs)}.item-tasks__error{display:block;margin-top:var(--uas--base--spacing-sm)}",""]),i.d(t,["default",0,r])},4396(e,t,i){"use strict";i.r(t);var a=i(1601),n=i.n(a),o=i(6314),r=(i.n(o))()(n());r.push([e.id,":host{display:block}uas-sidebar-section#iterations,uas-sidebar-section#iterations-loading{--uas--sidebar-section--custom-body-padding-x: 0}uas-sidebar-section[id^=iteration-]{--uas--sidebar-section--custom-header-padding-x: var( --uas--base--spacing-md );--uas--sidebar-section--custom-body-padding-x: var( --uas--base--spacing-md )}uas-sidebar-section[id^=iteration-].iteration--flush{--uas--sidebar-section--custom-body-padding-x: 0}uas-sidebar-section[id^=iteration-] .iteration__actions{display:flex;flex-direction:column;align-items:flex-start;gap:var(--uas--base--spacing-sm);padding-bottom:var(--uas--base--spacing-md);margin-bottom:var(--uas--base--spacing-md);border-bottom:1px solid var(--uas--color--border)}uas-sidebar-section[id^=iteration-] .iteration__actions-title{font-family:var(--uas--typography--body-small-font-family);font-size:var(--uas--typography--body-small-font-size);line-height:var(--uas--typography--body-small-line-height);font-weight:var(--uas--typography--body-small-font-weight);letter-spacing:var(--uas--typography--body-small-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-weight:600;color:var(--uas--typography--color)}uas-sidebar-section[id^=iteration-] .iteration__actions-error{align-self:stretch}uas-sidebar-section[id^=iteration-] .iteration__message{font-family:var(--uas--typography--body-small-font-family);font-size:var(--uas--typography--body-small-font-size);line-height:var(--uas--typography--body-small-line-height);font-weight:var(--uas--typography--body-small-font-weight);letter-spacing:var(--uas--typography--body-small-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;margin-bottom:var(--uas--base--spacing-sm);color:var(--uas--color--status-on-error-container);line-height:1.4}uas-sidebar-section[id^=iteration-]:last-of-type,uas-sidebar-section[id^=iteration-run-]:last-of-type{--uas--sidebar-section--custom-border-color: transparent}.iterations{display:flex;flex-direction:column;gap:0}.iterations__search{position:relative;padding:var(--uas--base--spacing-sm) var(--uas--base--spacing-md)}.iterations__search-icon{position:absolute;left:calc(var(--uas--base--spacing-md) + var(--uas--base--spacing-sm));top:50%;transform:translateY(-50%);color:var(--uas--typography--color-tertiary);pointer-events:none;z-index:1}.iterations__search-field{font-family:var(--uas--typography--body-small-font-family);font-size:var(--uas--typography--body-small-font-size);line-height:var(--uas--typography--body-small-line-height);font-weight:var(--uas--typography--body-small-font-weight);letter-spacing:var(--uas--typography--body-small-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;width:100%;padding:var(--uas--base--spacing-xs) var(--uas--base--spacing-sm) var(--uas--base--spacing-xs) var(--uas--base--spacing-3xl);border:1px solid var(--uas--color--field-border);border-radius:var(--uas--base--border-radius-sm);background:var(--uas--color--surface);color:var(--uas--typography--color);box-shadow:0 2px 5px 0 rgba(0,0,0,.1);transition:border-color .15s ease-in-out,box-shadow .15s ease-in-out}.iterations__search-field:focus{outline:none;border-color:var(--uas--color--primary);box-shadow:0 0 0 2px color(from var(--uas--color--primary) srgb r g b/0.2)}.iterations__search-field::-webkit-search-cancel-button{cursor:pointer}.iterations__progress{display:block;position:absolute;left:0;right:0;bottom:0;margin:0;z-index:2}.iterations__empty{font-family:var(--uas--typography--body-small-font-family);font-size:var(--uas--typography--body-small-font-size);line-height:var(--uas--typography--body-small-line-height);font-weight:var(--uas--typography--body-small-font-weight);letter-spacing:var(--uas--typography--body-small-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;padding:0 var(--uas--base--spacing-md);color:var(--uas--typography--color-tertiary)}.iterations__error{padding:var(--uas--base--spacing-md);color:var(--uas--color--status-on-error-container);font:inherit}.iterations__paginator{font-family:var(--uas--typography--body-small-font-family);font-size:var(--uas--typography--body-small-font-size);line-height:var(--uas--typography--body-small-line-height);font-weight:var(--uas--typography--body-small-font-weight);letter-spacing:var(--uas--typography--body-small-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;display:flex;align-items:center;justify-content:space-between;gap:var(--uas--base--spacing-md);padding:var(--uas--base--spacing-sm) var(--uas--base--spacing-md)}.iterations__paginator-range{color:var(--uas--typography--color-secondary)}.iterations__paginator-buttons{display:inline-flex;align-items:center;gap:var(--uas--base--spacing-sm)}.iterations__paginator-buttons uas-button{--uas--button--size-custom-padding-left: var( --uas--base--spacing-xs );--uas--button--size-custom-padding-right: var( --uas--base--spacing-xs )}.iterations__paginator-buttons uas-button:last-child{margin-right:calc(-1*var(--uas--base--spacing-xs))}.iterations__paginator-page{min-width:6em;text-align:center;color:var(--uas--typography--color-secondary)}.iterations-loading{display:flex;flex-direction:column}.iterations-loading__section{display:flex;flex-direction:column;border-top:1px solid var(--uas--color--border);padding:var(--uas--base--spacing-sm) var(--uas--base--spacing-md)}.iterations-loading__section:first-child{border-top:0}.iterations-loading__section-head{display:flex;align-items:center;justify-content:space-between;gap:var(--uas--base--spacing-md)}.iterations-loading__section-body{display:flex;flex-direction:column;gap:var(--uas--base--spacing-2xs)}.iterations-loading__skeleton{display:block}.iterations-loading__skeleton--title{height:1em;width:60%}.iterations-loading__skeleton--title-0{width:70%}.iterations-loading__skeleton--title-1{width:45%}.iterations-loading__skeleton--title-2{width:80%}.iterations-loading__skeleton--chip{height:1em;width:64px;flex:0 0 64px}.iterations-loading__skeleton--label{height:.75em;width:30%}.iterations-loading__skeleton--label-short{width:18%}.iterations-loading__skeleton--value{height:.85em;width:85%}.iterations-loading__skeleton--value-short{width:55%}",""]),i.d(t,["default",0,r])},2166(e,t,i){"use strict";i.r(t);var a=i(1601),n=i.n(a),o=i(6314),r=(i.n(o))()(n());r.push([e.id,":host{display:block}.property{display:flex;flex-direction:column;gap:var(--uas--base--spacing-2xs);color:var(--uas--typography--color)}.property__label{margin:0;font-weight:600}.property__value{margin:0;display:block;overflow-wrap:anywhere}.property__code{background:rgba(0,0,0,0)}.property__code--inline{display:inline}.property__line{display:inline-flex;flex-wrap:wrap;align-items:center;gap:var(--uas--base--spacing-2xs)}.property__empty{color:var(--uas--typography--color-tertiary)}",""]),i.d(t,["default",0,r])},1030(e,t,i){"use strict";i.r(t);var a=i(1601),n=i.n(a),o=i(6314),r=(i.n(o))()(n());r.push([e.id,":host{display:block}.property{display:flex;flex-direction:column;gap:var(--uas--base--spacing-2xs);color:var(--uas--typography--color)}.property__label{margin:0;font-weight:600;display:flex;align-items:center;gap:var(--uas--base--spacing-2xs)}.property__value{margin:0;display:flex;flex-direction:column;gap:var(--uas--base--spacing-xs);align-items:flex-start}.property__code-viewer{display:block;width:100%}.property__preview{flex:0 0 auto}.property__empty{color:var(--uas--typography--color-tertiary)}",""]),i.d(t,["default",0,r])},2911(e,t,i){"use strict";i.r(t);var a=i(1601),n=i.n(a),o=i(6314),r=(i.n(o))()(n());r.push([e.id,":host{display:block}.property{display:flex;flex-direction:column;gap:var(--uas--base--spacing-2xs);color:var(--uas--typography--color)}.property__label{margin:0;font-weight:600}.property__value{margin:0;display:flex;flex-direction:column;gap:var(--uas--base--spacing-xs)}.property__empty{color:var(--uas--typography--color-tertiary)}.file{display:flex;align-items:center;gap:var(--uas--base--spacing-sm);padding:var(--uas--base--spacing-xs) var(--uas--base--spacing-sm);border:1px solid var(--uas--color--border);border-radius:var(--uas--base--border-radius-md);background-color:var(--uas--color--surface)}.file__icon{flex:0 0 auto;width:36px;height:36px;display:flex;align-items:center;justify-content:center;border-radius:var(--uas--base--border-radius-sm);background:var(--uas--color--placeholder-gray);overflow:hidden}.file__icon-image{width:100%;height:100%;object-fit:cover}.file__icon-glyph{color:var(--uas--typography--color-secondary);font-size:22px}.file__meta{flex:1;min-width:0;display:flex;flex-direction:column;line-height:1.2}.file__name{font-weight:500;overflow-wrap:anywhere}.file__details{display:flex;gap:var(--uas--base--spacing-xs);color:var(--uas--typography--color-secondary);font-family:var(--uas--typography--body-small-font-family);font-size:var(--uas--typography--body-small-font-size);line-height:var(--uas--typography--body-small-line-height);font-weight:var(--uas--typography--body-small-font-weight);letter-spacing:var(--uas--typography--body-small-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.file__actions{flex:0 0 auto}",""]),i.d(t,["default",0,r])},5929(e,t,i){"use strict";i.r(t);var a=i(1601),n=i.n(a),o=i(6314),r=(i.n(o))()(n());r.push([e.id,":host{display:block}.property{display:flex;flex-direction:column;gap:var(--uas--base--spacing-2xs);color:var(--uas--typography--color)}.property__label{margin:0;font-weight:600}.property__value{margin:0;display:block}.property__empty{color:var(--uas--typography--color-tertiary)}.repeater{width:100%;border-spacing:0;border:1px solid var(--uas--color--border);border-radius:var(--uas--base--border-radius-md);overflow:hidden}.repeater tbody{vertical-align:top}.repeater__row:not(:last-child) td{border-bottom:1px solid var(--uas--color--border)}.repeater__number{width:1%;white-space:nowrap;padding:var(--uas--base--spacing-sm);background-color:var(--uas--color--surface);color:var(--uas--typography--color-secondary);font-family:var(--uas--typography--body-small-font-family);font-size:var(--uas--typography--body-small-font-size);line-height:var(--uas--typography--body-small-line-height);font-weight:var(--uas--typography--body-small-font-weight);letter-spacing:var(--uas--typography--body-small-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.repeater__number-value{display:inline-block}.repeater__cells{padding:var(--uas--base--spacing-sm);display:flex;flex-direction:column;gap:var(--uas--base--spacing-sm)}.repeater__cells uap-f-recipe-log-sidebar-property-base::part(label ){text-transform:lowercase}.repeater__cells uap-f-recipe-log-sidebar-property-base::part(label )::first-letter{text-transform:uppercase}",""]),i.d(t,["default",0,r])},1971(e,t,i){"use strict";i.r(t);var a=i(1601),n=i.n(a),o=i(6314),r=(i.n(o))()(n());r.push([e.id,":host{display:block}.property{display:flex;flex-direction:column;gap:var(--uas--base--spacing-2xs);color:var(--uas--typography--color)}.property__label{margin:0;font-weight:600;display:flex;align-items:center;gap:var(--uas--base--spacing-2xs)}.property__value{margin:0;display:block;overflow-wrap:anywhere}.property__code{background:rgba(0,0,0,0);white-space:pre-wrap}.property__empty{color:var(--uas--typography--color-tertiary)}",""]),i.d(t,["default",0,r])},559(e,t,i){"use strict";i.r(t);var a=i(1601),n=i.n(a),o=i(6314),r=(i.n(o))()(n());r.push([e.id,":host{display:block;font-family:var(--uas--typography--body-small-font-family);font-size:var(--uas--typography--body-small-font-size);line-height:var(--uas--typography--body-small-line-height);font-weight:var(--uas--typography--body-small-font-weight);letter-spacing:var(--uas--typography--body-small-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.properties{display:flex;flex-direction:column;gap:var(--uas--base--spacing-md);margin:0}",""]),i.d(t,["default",0,r])},5902(e,t,i){"use strict";i.r(t);var a=i(1601),n=i.n(a),o=i(6314),r=(i.n(o))()(n());r.push([e.id,":host{display:block}.run__status{display:inline-flex;align-items:center;font-family:var(--uas--typography--body-small-font-family);font-size:var(--uas--typography--body-small-font-size);line-height:var(--uas--typography--body-small-line-height);font-weight:var(--uas--typography--body-small-font-weight);letter-spacing:var(--uas--typography--body-small-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.run__body{display:flex;flex-direction:column;gap:var(--uas--base--spacing-md);padding-top:var(--uas--base--spacing-xs)}.run__row{display:flex;flex-direction:column;gap:var(--uas--base--spacing-2xs)}.run__row-label{font-weight:600;color:var(--uas--typography--color)}.run__row-value{color:var(--uas--typography--color)}.run__outputs{display:flex;flex-direction:column;gap:var(--uas--base--spacing-xs)}.run__message{font-family:var(--uas--typography--body-small-font-family);font-size:var(--uas--typography--body-small-font-size);line-height:var(--uas--typography--body-small-line-height);font-weight:var(--uas--typography--body-small-font-weight);letter-spacing:var(--uas--typography--body-small-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;color:var(--uas--color--status-on-error-container);line-height:1.4}",""]),i.d(t,["default",0,r])},2354(e,t,i){"use strict";i.r(t);var a=i(1601),n=i.n(a),o=i(6314),r=(i.n(o))()(n());r.push([e.id,":host{display:block;font-family:var(--uas--typography--body-medium-font-family);font-size:var(--uas--typography--body-medium-font-size);line-height:var(--uas--typography--body-medium-line-height);font-weight:var(--uas--typography--body-medium-font-weight);letter-spacing:var(--uas--typography--body-medium-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;color:var(--uas--typography--color)}.summary{display:flex;flex-direction:column;gap:var(--uas--base--spacing-sm)}.summary__headline{display:flex;align-items:flex-start;gap:var(--uas--base--spacing-sm);min-width:0}.summary__icon{flex:0 0 auto;line-height:0;margin-top:calc(var(--uas--base--spacing-2xs)/2)}.summary__sentence{display:flex;flex-direction:column;gap:var(--uas--base--spacing-2xs);min-width:0;flex:1;color:var(--uas--typography--color);line-height:1.4}.summary__block{font-weight:600}.summary__code{font-weight:600;color:var(--uas--typography--color);word-break:break-word}.summary__details{display:grid;grid-template-columns:max-content 1fr;gap:var(--uas--base--spacing-2xs) var(--uas--base--spacing-sm);margin:0;font-family:var(--uas--typography--body-small-font-family);font-size:var(--uas--typography--body-small-font-size);line-height:var(--uas--typography--body-small-line-height);font-weight:var(--uas--typography--body-small-font-weight);letter-spacing:var(--uas--typography--body-small-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.summary__row{display:contents}.summary__label{margin:0;font-weight:600;color:var(--uas--typography--color-secondary)}.summary__value{margin:0;min-width:0;overflow-wrap:anywhere;color:var(--uas--typography--color)}",""]),i.d(t,["default",0,r])},9922(e,t,i){"use strict";i.r(t);var a=i(1601),n=i.n(a),o=i(6314),r=(i.n(o))()(n());r.push([e.id,":host{display:block;font-family:var(--uas--typography--body-medium-font-family);font-size:var(--uas--typography--body-medium-font-size);line-height:var(--uas--typography--body-medium-line-height);font-weight:var(--uas--typography--body-medium-font-weight);letter-spacing:var(--uas--typography--body-medium-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;color:var(--uas--typography--color)}",""]),i.d(t,["default",0,r])},538(e,t,i){"use strict";i.r(t);var a=i(1601),n=i.n(a),o=i(6314),r=(i.n(o))()(n());r.push([e.id,":host{display:inline-flex;vertical-align:middle}.status{display:inline-flex;align-items:center;gap:6px;font-size:inherit;line-height:1;color:inherit}.status__icon{display:inline-flex;align-items:center;justify-content:center;color:var(--uap-f-recipe-log-status-color)}.status__icon uas-icon{font-size:inherit;line-height:1}.status__label{color:inherit;font-weight:400}.status__count{color:inherit;font-weight:600;line-height:1}",""]),i.d(t,["default",0,r])},6278(e,t,i){"use strict";i.r(t);var a=i(1601),n=i.n(a),o=i(6314),r=(i.n(o))()(n());r.push([e.id,":host{display:block;font-family:var(--uas--typography--font--family);font-family:var(--uas--typography--body-medium-font-family);font-size:var(--uas--typography--body-medium-font-size);line-height:var(--uas--typography--body-medium-line-height);font-weight:var(--uas--typography--body-medium-font-weight);letter-spacing:var(--uas--typography--body-medium-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;color:var(--uas--typography--color)}.dialog__frame{display:flex;flex-direction:column;min-height:0;container-type:inline-size}.dialog__frame:has(>.log__alert){padding:var(--uas--base--spacing-4xl)}@container ( max-width: 768px ){.dialog__frame:has(>.log__alert){padding:var(--uas--base--spacing-xl)}}.log-shell{display:block;height:var(--uap-f-recipe-log-shell-custom-height)}.log-shell__sidebar-title{flex:1;min-width:0;font-weight:600;font-size:1.05em;overflow-wrap:anywhere;line-height:1.3}.log-shell__sidebar-back,.log-shell__sidebar-close{flex:0 0 auto;--uas--button--custom-color: var( --uas--typography--color-secondary );--uas--button--size-custom-padding-left: var( --uas--base--spacing-xs );--uas--button--size-custom-padding-right: var( --uas--base--spacing-xs )}.log-shell__sidebar-back{margin-left:calc(-1*var(--uas--base--spacing-xs));margin-right:var(--uas--base--spacing-xs)}.log-shell__sidebar-close{margin-right:var(--uas--side-sheet--button-left-padding)}uas-side-sheet{--uas--side-sheet--custom-width: 430px;--uas--side-sheet--custom-max-width: 430px;--uas--side-sheet--custom-left-padding: 0;--uas--side-sheet--custom-border-radius-top-right: var( --uas--base--border-radius-md );--uas--side-sheet--custom-border-radius-bottom-right: var( --uas--base--border-radius-md )}@container ( max-width: 768px ){uas-side-sheet{--uas--side-sheet--custom-width: 100%;--uas--side-sheet--custom-min-width: 0px;--uas--side-sheet--custom-max-width: 100%}}uas-sidebar-section{--uas--sidebar-section--custom-header-padding-x: 0;--uas--sidebar-section--custom-body-padding-x: 0}.log{display:flex;flex-direction:column}.log__loading{display:flex;align-items:center;justify-content:center;min-height:200px;padding:var(--uas--base--spacing-4xl);color:var(--uas--typography--color-secondary);font-family:inherit;font-family:var(--uas--typography--body-medium-font-family);font-size:var(--uas--typography--body-medium-font-size);line-height:var(--uas--typography--body-medium-line-height);font-weight:var(--uas--typography--body-medium-font-weight);letter-spacing:var(--uas--typography--body-medium-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}@container ( max-width: 768px ){.log__loading{padding:var(--uas--base--spacing-xl)}}.log__alert{display:block;width:100%}uap-f-recipe-log-flow{display:block;padding:var(--uas--base--spacing-md) var(--uas--base--spacing-4xl) var(--uas--base--spacing-4xl)}@container ( max-width: 768px ){uap-f-recipe-log-flow{padding:var(--uas--base--spacing-md) var(--uas--base--spacing-xl) var(--uas--base--spacing-xl)}}:host([view=diagram]) .log-shell{block-size:var(--uap-f-recipe-log-shell-custom-height, 80dvh)}:host([view=diagram]) .log-shell__main{display:flex;flex-direction:column;block-size:100%;min-block-size:0}:host([view=diagram]) .log{flex:1 1 auto;min-block-size:0}:host([view=diagram]) uap-f-recipe-log-canvas{flex:1 1 auto;min-block-size:0}",""]),i.d(t,["default",0,r])},5190(e,t,i){"use strict";i.r(t);var a=i(1601),n=i.n(a),o=i(6314),r=(i.n(o))()(n());r.push([e.id,":host{display:block}.active-filters{display:flex;flex-wrap:wrap;align-items:center;gap:var(--uas--base--spacing-xs)}.active-filters__chip{display:inline-flex;align-items:center;gap:var(--uas--base--spacing-2xs);flex:0 1 auto;min-inline-size:0;padding:var(--uas--base--spacing-2xs) var(--uas--base--spacing-sm);border:0;border-radius:999px;background:var(--uas--color--status-info-container);color:var(--uas--color--status-on-info-container);cursor:pointer;font-family:var(--uas--typography--body-small-font-family);font-size:var(--uas--typography--body-small-font-size);line-height:var(--uas--typography--body-small-line-height);font-weight:var(--uas--typography--body-small-font-weight);letter-spacing:var(--uas--typography--body-small-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-weight:600}.active-filters__chip:hover{background:color-mix(in srgb, var(--uas--color--status-info-container) 80%, var(--uas--color--status-on-info-container))}.active-filters__chip:focus-visible{outline:2px solid var(--uas--color--primary);outline-offset:2px}.active-filters__chip uas-icon{flex:0 0 auto}.active-filters__chip--ready{background:var(--uas--color--status-success-container);color:var(--uas--color--status-on-success-container)}.active-filters__chip--ready:hover{background:color-mix(in srgb, var(--uas--color--status-success-container) 80%, var(--uas--color--status-on-success-container))}.active-filters__label{min-inline-size:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.active-filters__clear{padding:var(--uas--base--spacing-2xs) var(--uas--base--spacing-xs);border:0;background:none;color:var(--uas--color--primary);cursor:pointer;font-family:var(--uas--typography--body-small-font-family);font-size:var(--uas--typography--body-small-font-size);line-height:var(--uas--typography--body-small-line-height);font-weight:var(--uas--typography--body-small-font-weight);letter-spacing:var(--uas--typography--body-small-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-weight:600;text-decoration:underline}.active-filters__clear:focus-visible{outline:2px solid var(--uas--color--primary);outline-offset:2px}",""]),i.d(t,["default",0,r])},4994(e,t,i){"use strict";i.r(t);var a=i(1601),n=i.n(a),o=i(6314),r=(i.n(o))()(n());r.push([e.id,":host{display:contents}.dialog__state{display:flex;align-items:center;justify-content:center;padding:var(--uas--base--spacing-4xl)}",""]),i.d(t,["default",0,r])},7278(e,t,i){"use strict";i.r(t);var a=i(1601),n=i.n(a),o=i(6314),r=(i.n(o))()(n());r.push([e.id,":host{display:block}.card{display:flex;flex-direction:column;gap:var(--uas--base--spacing-sm);box-sizing:border-box;width:100%;height:100%;padding:var(--uas--base--spacing-lg);border:1px solid var(--uas--color--border);border-radius:var(--uas--base--border-radius-lg);background:var(--uas--color--surface);cursor:pointer;text-align:start;transition:border-color var(--uas--base--transition),box-shadow var(--uas--base--transition)}.card:hover{border-color:var(--uas--color--primary);box-shadow:var(--uas--base--shadow-sm)}.card:focus-visible{outline:2px solid var(--uas--color--primary);outline-offset:2px}.card--loading{height:auto;cursor:default}.card--loading:hover{border-color:var(--uas--color--border);box-shadow:none}.card__title{font-family:var(--uas--typography--title-medium-font-family);font-size:var(--uas--typography--title-medium-font-size);line-height:var(--uas--typography--title-medium-line-height);font-weight:var(--uas--typography--title-medium-font-weight);letter-spacing:var(--uas--typography--title-medium-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;color:var(--uas--typography--color);display:inline-flex;align-items:center;flex-wrap:wrap;gap:var(--uas--base--spacing-xs)}.card__title-skeleton{display:flex;flex-direction:column;gap:var(--uas--base--spacing-2xs)}.card__tags{display:flex;flex-wrap:wrap;align-items:center;gap:var(--uas--base--spacing-xs)}.card__requires{display:flex;flex-direction:column;align-items:flex-start;gap:var(--uas--base--spacing-xs)}.card__requires-label{font-family:var(--uas--typography--body-small-font-family);font-size:var(--uas--typography--body-small-font-size);line-height:var(--uas--typography--body-small-line-height);font-weight:var(--uas--typography--body-small-font-weight);letter-spacing:var(--uas--typography--body-small-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;color:var(--uas--typography--color-secondary)}.card__requires-list{display:flex;flex-direction:column;gap:var(--uas--base--spacing-xs);font-family:var(--uas--typography--body-medium-font-family);font-size:var(--uas--typography--body-medium-font-size);line-height:var(--uas--typography--body-medium-line-height);font-weight:var(--uas--typography--body-medium-font-weight);letter-spacing:var(--uas--typography--body-medium-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;color:var(--uas--typography--color)}",""]),i.d(t,["default",0,r])},5946(e,t,i){"use strict";i.r(t);var a=i(1601),n=i.n(a),o=i(6314),r=(i.n(o))()(n());r.push([e.id,":host{display:block}.grid{display:block}.grid__row{inline-size:100%;display:grid;gap:var(--uas--base--spacing-md);padding-block-end:var(--uas--base--spacing-md)}.grid__cell{display:grid;min-width:0}.grid__empty-message{margin-block-start:var(--uas--base--spacing-md);font-family:var(--uas--typography--body-medium-font-family);font-size:var(--uas--typography--body-medium-font-size);line-height:var(--uas--typography--body-medium-line-height);font-weight:var(--uas--typography--body-medium-font-weight);letter-spacing:var(--uas--typography--body-medium-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;color:var(--uas--typography--color-secondary)}.grid--empty{display:grid;grid-template-columns:repeat(auto-fill, minmax(280px, 1fr));gap:var(--uas--base--spacing-md)}.create-card{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:var(--uas--base--spacing-xs);box-sizing:border-box;height:100%;padding:var(--uas--base--spacing-md);text-align:center;border:1px dashed var(--uas--color--field-border);border-radius:var(--uas--base--border-radius-md)}.create-card__icon{margin-block-end:var(--uas--base--spacing-2xs);font-size:32px;color:var(--uas--typography--color-tertiary)}.create-card__heading{font-family:var(--uas--typography--body-medium-font-family);font-size:var(--uas--typography--body-medium-font-size);line-height:var(--uas--typography--body-medium-line-height);font-weight:var(--uas--typography--body-medium-font-weight);letter-spacing:var(--uas--typography--body-medium-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-weight:600;color:var(--uas--typography--color)}.create-card__description{font-family:var(--uas--typography--body-small-font-family);font-size:var(--uas--typography--body-small-font-size);line-height:var(--uas--typography--body-small-line-height);font-weight:var(--uas--typography--body-small-font-weight);letter-spacing:var(--uas--typography--body-small-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;color:var(--uas--typography--color-secondary)}.create-card__button{--uas--button--custom-color: var( --uas--color--primary );--uas--button--custom-hover-color: var( --uas--color--primary )}",""]),i.d(t,["default",0,r])},1139(e,t,i){"use strict";i.r(t);var a=i(1601),n=i.n(a),o=i(6314),r=(i.n(o))()(n());r.push([e.id,":host{display:block}.base-filters{display:flex;flex-direction:column;gap:var(--uas--base--spacing-sm)}.base-filters__filter{display:flex;flex-direction:column;gap:var(--uas--base--spacing-2xs)}.base-filters__label{display:flex;align-items:center;gap:var(--uas--base--spacing-xs);cursor:pointer;font-family:var(--uas--typography--body-medium-font-family);font-size:var(--uas--typography--body-medium-font-size);line-height:var(--uas--typography--body-medium-line-height);font-weight:var(--uas--typography--body-medium-font-weight);letter-spacing:var(--uas--typography--body-medium-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;color:var(--uas--typography--color)}.base-filters__checkbox{margin:0;accent-color:var(--uas--color--primary)}.base-filters__description{padding-inline-start:var(--uas--base--spacing-lg);font-family:var(--uas--typography--body-small-font-family);font-size:var(--uas--typography--body-small-font-size);line-height:var(--uas--typography--body-small-line-height);font-weight:var(--uas--typography--body-small-font-weight);letter-spacing:var(--uas--typography--body-small-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;color:var(--uas--typography--color-secondary)}",""]),i.d(t,["default",0,r])},4480(e,t,i){"use strict";i.r(t);var a=i(1601),n=i.n(a),o=i(6314),r=(i.n(o))()(n());r.push([e.id,":host{display:block}.menu{display:flex;flex-direction:column;gap:var(--uas--base--spacing-2xs)}.menu__item{display:block;--uas--button--size-custom-padding-left: var( --uas--base--spacing-xs );--uas--button--size-custom-padding-right: var( --uas--base--spacing-xs );margin-inline:calc(-1*var(--uas--base--spacing-xs))}.menu__item-inner{display:flex;align-items:center;justify-content:space-between;gap:var(--uas--base--spacing-xs);inline-size:100%;text-align:start}.menu__item-name{flex:1 1 auto;min-inline-size:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.menu__item-count{flex:0 0 auto;color:var(--uas--typography--color-tertiary)}",""]),i.d(t,["default",0,r])},9484(e,t,i){"use strict";i.r(t);var a=i(1601),n=i.n(a),o=i(6314),r=(i.n(o))()(n());r.push([e.id,":host{display:block}.menu{display:flex;flex-direction:column;gap:var(--uas--base--spacing-2xs)}.menu__item{display:block;--uas--button--size-custom-padding-left: var( --uas--base--spacing-xs );--uas--button--size-custom-padding-right: var( --uas--base--spacing-xs );margin-inline:calc(-1*var(--uas--base--spacing-xs))}.menu__item-inner{display:flex;align-items:center;justify-content:space-between;gap:var(--uas--base--spacing-xs);inline-size:100%;text-align:start}.menu__item-name{flex:1 1 auto;min-inline-size:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.menu__item-name--loading{display:flex;align-items:center;gap:var(--uas--base--spacing-xs)}.menu__item-count{flex:0 0 auto;color:var(--uas--typography--color-tertiary)}",""]),i.d(t,["default",0,r])},6058(e,t,i){"use strict";i.r(t);var a=i(1601),n=i.n(a),o=i(6314),r=(i.n(o))()(n());r.push([e.id,":host{display:block}.search{position:relative;display:flex;align-items:center}.search__icon{position:absolute;inset-inline-start:var(--uas--base--spacing-sm);color:var(--uas--typography--color-tertiary);pointer-events:none}.search__input{width:100%;padding:var(--uas--base--spacing-2xs) var(--uas--base--spacing-sm);padding-inline-start:var(--uas--base--spacing-2xl);border:1px solid rgba(0,0,0,0);border-radius:var(--uas--base--border-radius-md);background:var(--uas--color--status-neutral-container);font-family:var(--uas--typography--body-medium-font-family);font-size:var(--uas--typography--body-medium-font-size);line-height:var(--uas--typography--body-medium-line-height);font-weight:var(--uas--typography--body-medium-font-weight);letter-spacing:var(--uas--typography--body-medium-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;color:var(--uas--typography--color)}.search__input:focus{outline:none;border-color:var(--uas--color--primary);box-shadow:0 0 0 2px color(from var(--uas--color--primary) srgb r g b/0.2)}.search__input::placeholder{color:var(--uas--typography--color-tertiary)}",""]),i.d(t,["default",0,r])},1928(e,t,i){"use strict";i.r(t);var a=i(1601),n=i.n(a),o=i(6314),r=(i.n(o))()(n());r.push([e.id,":host{display:block}.rail{height:100%}",""]),i.d(t,["default",0,r])},8522(e,t,i){"use strict";i.r(t);var a=i(1601),n=i.n(a),o=i(6314),r=(i.n(o))()(n());r.push([e.id,":host{display:block}.requirements{display:flex;flex-direction:column;gap:var(--uas--base--spacing-lg)}.requirements__empty{margin:0;color:var(--uas--typography--color-secondary)}",""]),i.d(t,["default",0,r])},9258(e,t,i){"use strict";i.r(t);var a=i(1601),n=i.n(a),o=i(6314),r=(i.n(o))()(n());r.push([e.id,":host{display:block}.requires{display:flex;flex-direction:column;gap:var(--uas--base--spacing-xs)}.requires__list{display:flex;flex-direction:column;align-items:flex-start;gap:var(--uas--base--spacing-xs);min-inline-size:0}.requires__tail{display:inline-flex;align-items:center;gap:var(--uas--base--spacing-md)}.requires__label{font-family:var(--uas--typography--body-medium-font-family);font-size:var(--uas--typography--body-medium-font-size);line-height:var(--uas--typography--body-medium-line-height);font-weight:var(--uas--typography--body-medium-font-weight);letter-spacing:var(--uas--typography--body-medium-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-weight:600;color:var(--uas--typography--color)}.requires__item{display:inline-flex;align-items:center;gap:var(--uas--base--spacing-xs)}.requires__item--described{cursor:help}.requires__summary{display:inline-flex;align-items:center;cursor:help}.requires__status{flex:0 0 auto}.requires__status--met{color:var(--uas--color--status-on-success-container)}.requires__status--unmet{color:var(--uas--color--status-on-warning-container)}",""]),i.d(t,["default",0,r])},8092(e,t,i){"use strict";i.r(t);var a=i(1601),n=i.n(a),o=i(6314),r=(i.n(o))()(n());r.push([e.id,':host{display:block}.detail{position:relative;display:block;block-size:var(--uap--f--recipe-template--detail--height);container-type:inline-size;overflow:auto;background:var(--uas--color--surface);border-radius:var(--uas--base--border-radius-md)}.detail__close{position:absolute;inset-block-start:var(--uas--base--spacing-md);inset-inline-end:var(--uas--base--spacing-md);z-index:2;--uas--button--custom-color: var( --uas--typography--color-secondary )}.detail__layout{display:grid;grid-template-columns:minmax(0, 1fr) minmax(0, 1fr);grid-template-rows:auto 1fr;grid-template-areas:"intro preview" "actions preview";column-gap:var(--uas--base--spacing-4xl);row-gap:var(--uas--base--spacing-lg);box-sizing:border-box;block-size:100%;min-block-size:100%;padding:var(--uas--base--spacing-4xl) var(--uas--base--spacing-4xl) 0}@container ( max-width: 900px ){.detail__layout{block-size:auto;grid-template-columns:minmax(0, 1fr);grid-template-rows:auto;grid-template-areas:"intro" "actions" "preview"}}.detail__intro{grid-area:intro;display:flex;flex-direction:column;gap:var(--uas--base--spacing-md)}.detail__tags{display:flex;flex-wrap:wrap;gap:var(--uas--base--spacing-xs)}.detail__title{margin:0;font-family:var(--uas--typography--headline-medium-font-family);font-size:var(--uas--typography--headline-medium-font-size);line-height:var(--uas--typography--headline-medium-line-height);font-weight:var(--uas--typography--headline-medium-font-weight);letter-spacing:var(--uas--typography--headline-medium-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;color:var(--uas--typography--color);overflow-wrap:anywhere}.detail__description{margin:0;font-family:var(--uas--typography--body-large-font-family);font-size:var(--uas--typography--body-large-font-size);line-height:var(--uas--typography--body-large-line-height);font-weight:var(--uas--typography--body-large-font-weight);letter-spacing:var(--uas--typography--body-large-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;color:var(--uas--typography--color-secondary)}.detail__facts{display:flex;flex-direction:column;gap:var(--uas--base--spacing-xs)}.detail__settings{margin:0;display:grid;grid-template-columns:auto 1fr;align-items:baseline;column-gap:var(--uas--base--spacing-sm);row-gap:var(--uas--base--spacing-xs)}.detail__setting{display:contents}.detail__setting-label{margin:0;font-family:var(--uas--typography--body-medium-font-family);font-size:var(--uas--typography--body-medium-font-size);line-height:var(--uas--typography--body-medium-line-height);font-weight:var(--uas--typography--body-medium-font-weight);letter-spacing:var(--uas--typography--body-medium-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-weight:600;color:var(--uas--typography--color)}.detail__setting-value{margin:0;font-family:var(--uas--typography--body-medium-font-family);font-size:var(--uas--typography--body-medium-font-size);line-height:var(--uas--typography--body-medium-line-height);font-weight:var(--uas--typography--body-medium-font-weight);letter-spacing:var(--uas--typography--body-medium-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;color:var(--uas--typography--color)}.detail__requires{display:flex;flex-wrap:wrap;align-items:center;gap:var(--uas--base--spacing-sm) var(--uas--base--spacing-md)}.detail__requires-label{font-family:var(--uas--typography--body-medium-font-family);font-size:var(--uas--typography--body-medium-font-size);line-height:var(--uas--typography--body-medium-line-height);font-weight:var(--uas--typography--body-medium-font-weight);letter-spacing:var(--uas--typography--body-medium-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-weight:600;color:var(--uas--typography--color)}.detail__requires-note{margin:0;font-family:var(--uas--typography--body-small-font-family);font-size:var(--uas--typography--body-small-font-size);line-height:var(--uas--typography--body-small-line-height);font-weight:var(--uas--typography--body-small-font-weight);letter-spacing:var(--uas--typography--body-small-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;color:var(--uas--typography--color-secondary)}.detail__actions{grid-area:actions;align-self:end;position:sticky;inset-block-end:0;z-index:1;display:flex;flex-wrap:wrap;gap:var(--uas--base--spacing-sm);padding-block:var(--uas--base--spacing-lg) var(--uas--base--spacing-4xl);background:var(--uas--color--surface)}@container ( max-width: 900px ){.detail__actions{align-self:start;position:static;padding-block:0}}.detail__preview{grid-area:preview;align-self:stretch;min-width:0;min-block-size:0;margin-block-end:var(--uas--base--spacing-4xl);border:1px solid var(--uas--color--border);border-radius:var(--uas--base--border-radius-lg);overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;background-color:var(--uap--f--recipe-builder--shell--background-color);background-image:radial-gradient(circle, var(--uap--f--recipe-builder--shell--dot-color) 1.1px, transparent 1.3px);background-size:var(--uas--base--spacing-md) var(--uas--base--spacing-md)}.detail__preview>uap-f-recipe-builder-flow{display:block;--uap--f--recipe-builder--flow--canvas--background-color: var( --uas--color--surface );--uap--f--recipe-builder--flow--canvas--dot-color: transparent}.detail__preview--setup{background:var(--uas--color--surface);padding:var(--uas--base--spacing-2xl)}@container ( max-width: 900px ){.detail__preview--setup{padding:var(--uas--base--spacing-2xl) var(--uas--base--spacing-4xl)}}.detail__preview--diagram{display:flex;flex-direction:column;overflow:hidden}.detail__preview--diagram>uap-f-recipe-builder-canvas{flex:1 1 0;min-block-size:0}@container ( max-width: 900px ){.detail__preview--diagram{min-block-size:480px}}@container ( max-width: 900px ){.detail__preview{overflow:visible;margin-inline:calc(-1*var(--uas--base--spacing-4xl));margin-block-end:0;border:0;border-block-start:1px solid var(--uas--color--border);border-radius:0}.detail__preview>uap-f-recipe-builder-flow{padding:calc(var(--uas--base--spacing-xl) - var(--uas--base--spacing-lg)) calc(var(--uas--base--spacing-4xl) - var(--uas--base--spacing-lg))}}.detail__setup{display:flex;flex-direction:column;gap:var(--uas--base--spacing-md)}.detail__setup-title{font-family:var(--uas--typography--title-medium-font-family);font-size:var(--uas--typography--title-medium-font-size);line-height:var(--uas--typography--title-medium-line-height);font-weight:var(--uas--typography--title-medium-font-weight);letter-spacing:var(--uas--typography--title-medium-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;margin:0}.detail__setup-intro{font-family:var(--uas--typography--body-medium-font-family);font-size:var(--uas--typography--body-medium-font-size);line-height:var(--uas--typography--body-medium-line-height);font-weight:var(--uas--typography--body-medium-font-weight);letter-spacing:var(--uas--typography--body-medium-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;margin:0;color:var(--uas--typography--color-secondary)}.detail__progress{display:flex;flex-direction:column;gap:var(--uas--base--spacing-xs);max-inline-size:420px}.detail__progress-head{display:flex;justify-content:space-between;align-items:baseline;gap:var(--uas--base--spacing-sm)}.detail__progress-label{font-family:var(--uas--typography--label-large-font-family);font-size:var(--uas--typography--label-large-font-size);line-height:var(--uas--typography--label-large-line-height);font-weight:var(--uas--typography--label-large-font-weight);letter-spacing:var(--uas--typography--label-large-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.detail__progress-count{font-family:var(--uas--typography--body-small-font-family);font-size:var(--uas--typography--body-small-font-size);line-height:var(--uas--typography--body-small-line-height);font-weight:var(--uas--typography--body-small-font-weight);letter-spacing:var(--uas--typography--body-small-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;color:var(--uas--typography--color-secondary);font-variant-numeric:tabular-nums}.detail__progress-note{font-family:var(--uas--typography--body-small-font-family);font-size:var(--uas--typography--body-small-font-size);line-height:var(--uas--typography--body-small-line-height);font-weight:var(--uas--typography--body-small-font-weight);letter-spacing:var(--uas--typography--body-small-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;margin:0;color:var(--uas--typography--color-secondary)}.detail__progress uas-progress-linear{--uas--progress-linear--custom-height: 8px;--uas--progress-linear--custom-value-background: var( --uas--color--primary )}.detail__progress--complete uas-progress-linear{--uas--progress-linear--custom-value-background: var( --uas--color--status-on-success-container )}',""]),i.d(t,["default",0,r])},4943(e,t,i){"use strict";i.r(t);var a=i(1601),n=i.n(a),o=i(6314),r=(i.n(o))()(n());r.push([e.id,":host{display:block}:host([import-into-recipe-id]) .library{border-radius:var(--uas--base--border-radius-md);overflow:clip}.library{display:flex;flex-direction:column;block-size:100%;min-block-size:0;container:uap-f-recipe-template/inline-size}.library__bar{flex:0 0 auto;--uas--top-bar--custom-grid-template-columns: minmax( max-content, 1fr ) minmax( 0, 480px ) minmax( max-content, 1fr )}.library__search{inline-size:100%}.library .shell__filters-trigger{flex:0 0 auto}.shell__filters-count{display:none;min-inline-size:1.5em;padding-inline:var(--uas--base--spacing-2xs);border-radius:999px;background:color-mix(in srgb, currentColor 16%, transparent);color:inherit;font-size:.85em;font-weight:600;line-height:1.5;text-align:center}@container uap-f-recipe-template (width < 600px){.shell__filters-label{position:absolute;inline-size:1px;block-size:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.shell__filters-count{display:inline-block}}.shell{flex:1 1 auto;min-block-size:0}.shell__sidebar{--uas--side-sheet--custom-left-padding: 0;--uas--side-sheet--custom-button-left-padding: var( --uas--base--spacing-xs )}.shell__sidebar uap-f-recipe-template-sidebar{block-size:100%}.shell__active-filters{margin-block-end:var(--uas--base--spacing-md)}.shell__main{min-inline-size:0;min-block-size:0;block-size:100%;overflow-y:auto;padding:var(--uas--base--spacing-lg)}.shell__skeleton-grid{display:grid;grid-template-columns:repeat(auto-fill, minmax(280px, 1fr));grid-auto-rows:min-content;gap:var(--uas--base--spacing-md)}",""]),i.d(t,["default",0,r])},7395(e,t,i){"use strict";i.r(t);var a=i(1601),n=i.n(a),o=i(6314),r=(i.n(o))()(n());r.push([e.id,":host{display:inline}.wrapper{display:inline}",""]),i.d(t,["default",0,r])},6438(e,t,i){"use strict";i.r(t);var a=i(1601),n=i.n(a),o=i(6314),r=(i.n(o))()(n());r.push([e.id,':host{--uap-field-file-icon-width: 36px;--uap-field-file-padding: 15px}.wrapper{display:flex;flex-direction:column;gap:var(--uas--base--spacing-sm)}.wrapper .files{border-radius:var(--uas--base--border-radius-md);border:1px solid var(--uas--color--border)}.wrapper .file{width:100%;display:grid;grid-auto-columns:1fr;grid-auto-rows:1fr;grid-template-columns:min-content 1.1fr min-content;grid-template-rows:min-content min-content;gap:0 var(--uas--base--spacing-sm);grid-template-areas:"Icon Name Actions" "Icon Details Details";padding:var(--uap-field-file-padding);align-items:center}.wrapper .file-icon{grid-area:Icon;display:flex;align-items:center;justify-content:center;width:var(--uap-field-file-icon-width);aspect-ratio:1;border-radius:calc(var(--uas--base--border-radius-md)/2);overflow:hidden}.wrapper .file-icon img{display:inline-block;width:100%;height:100%}.wrapper .file-icon__image-preview{object-fit:cover}.wrapper .file-icon__file-type{font-size:var(--uap-field-file-icon-width)}.wrapper .file-name{grid-area:Name;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-weight:600}.wrapper .file-details{font-family:var(--uas--typography--body-small-font-family);font-size:var(--uas--typography--body-small-font-size);line-height:var(--uas--typography--body-small-line-height);font-weight:var(--uas--typography--body-small-font-weight);letter-spacing:var(--uas--typography--body-small-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;grid-area:Details;color:var(--uas--typography--color-secondary)}.wrapper .file-actions{grid-area:Actions}.wrapper .file-actions uas-button:has(>uas-icon:only-child){--uas--button--size-custom-line-height: 1}.wrapper .file:not(:last-child){border-bottom:1px solid var(--uas--color--border)}.tooltip-nowrap{white-space:nowrap}',""]),i.d(t,["default",0,r])},9963(e,t,i){"use strict";i.r(t);var a=i(1601),n=i.n(a),o=i(6314),r=(i.n(o))()(n());r.push([e.id,":host{--uap-field-input-radio-control-size: 18px;--uap-field-input-radio-control-size-large: 22px;--uap-field-input-radio-control-inner-size: 8px;--uap-field-input-radio-control-inner-size-large: 10px}:host{display:block}label.wrapper{display:flex;align-items:flex-start;cursor:pointer;width:100%;user-select:none;position:relative}input[type=radio]{position:absolute;opacity:0;pointer-events:none;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;border:0}.radio{display:flex;align-items:flex-start;gap:var(--uas--base--spacing-sm, 12px);width:100%;padding:2px 0}.radio.radio[disabled]{opacity:.6;cursor:not-allowed;pointer-events:none}.radio-control{position:relative;flex-shrink:0;width:var(--uap-field-input-radio-control-size, 18px);height:var(--uap-field-input-radio-control-size, 18px);margin-top:var(--uas--base--spacing-xs, 2px);border:2px solid var(--uas--typography--color-secondary);border-radius:50%;background:var(--uap-color-white);transition:border-color .2s}.radio-control-inner{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%) scale(0);width:var(--uap-field-input-radio-control-inner-size, 8px);height:var(--uap-field-input-radio-control-inner-size, 8px);background:var(--uap-color-white);border-radius:50%;transition:transform .2s}.radio-label{flex-grow:1;color:var(--uas--typography--color, #222);font-weight:normal}.radio[size=large] .radio-control{width:var(--uap-field-input-radio-control-size-large, 22px);height:var(--uap-field-input-radio-control-size-large, 22px);margin-top:var(--uas--base--spacing-xs, 3px)}.radio[size=large] .radio-control .radio-control-inner{width:var(--uap-field-input-radio-control-inner-size-large, 10px);height:var(--uap-field-input-radio-control-inner-size-large, 10px)}input[type=radio]:checked+.radio .radio-control{border-color:var(--uas--color--primary);background:var(--uas--color--primary)}input[type=radio]:checked+.radio .radio-control .radio-control-inner{transform:translate(-50%, -50%) scale(1)}",""]),i.d(t,["default",0,r])},2236(e,t,i){"use strict";i.r(t);var a=i(1601),n=i.n(a),o=i(6314),r=(i.n(o))()(n());r.push([e.id,":host{display:inline-flex}.wrapper{--uap-switch-main-color: var(--uas--typography--color-secondary);--uap-switch-main-color-checked: var(--uas--color--accent);--uap-switch-control-padding: 2px;display:inline-block;cursor:pointer}.wrapper input{position:absolute;top:0;left:0;width:0;height:0;opacity:0}.switch{display:flex;align-items:center;gap:6px;transition:var(--uas--base--transition);transition-property:opacity}.switch[checked]{--uap-switch-main-color: var(--uap-switch-main-color-checked)}.switch[disabled]{opacity:.6;cursor:not-allowed;pointer-events:none}.switch[label-placement=left]{flex-direction:row-reverse}.switch-control{position:relative;width:26px;aspect-ratio:2/1;border:2px solid var(--uap-switch-main-color);border-radius:100px;transition:var(--uas--base--transition);transition-property:background-color,border-color}.switch[checked] .switch-control{background-color:var(--uap-switch-main-color)}.switch-control-inner{--uap-switch-control-inner-height: calc(100% - calc(var(--uap-switch-control-padding) * 2));background:var(--uap-switch-main-color);height:var(--uap-switch-control-inner-height);aspect-ratio:1;border-radius:50%;position:absolute;top:var(--uap-switch-control-padding);left:var(--uap-switch-control-padding);transition:var(--uas--base--transition);transition-property:left,transform,box-shadow}.switch:hover .switch-control-inner{--uap-switch-inner-shadow-color: var(--uap-switch-main-color);box-shadow:0 0 0 5px color(from var(--uap-switch-inner-shadow-color) srgb r g b/0.2)}.switch[checked] .switch-control-inner{left:calc(100% - var(--uap-switch-control-padding));transform:translateX(-100%);background:#fff}.switch[checked]:hover .switch-control-inner{--uap-switch-inner-shadow-color: #fff}input:focus-within~.switch .switch-control{box-shadow:0 0 0 5px color(from var(--uap-switch-main-color) srgb r g b/0.2);outline:1px auto Highlight;outline:1px auto -webkit-focus-ring-color;outline-offset:5px}.switch-label{color:var(--uap-switch-main-color);font-weight:600;line-height:1}.switch[size=large] .switch-control{width:30px}",""]),i.d(t,["default",0,r])},2752(e,t,i){"use strict";i.r(t);var a=i(1601),n=i.n(a),o=i(6314),r=(i.n(o))()(n());r.push([e.id,':host{display:block}a{color:var(--uas--typography--color-link);text-decoration:none}a:hover{text-decoration:underline}.wrapper{display:block;font-family:var(--uas--typography--font--family)}.wrapper input,.wrapper select{font-family:var(--uas--typography--font--family)}label.top-label{font-family:var(--uas--typography--label-large-font-family);font-size:var(--uas--typography--label-large-font-size);line-height:var(--uas--typography--label-large-line-height);font-weight:var(--uas--typography--label-large-font-weight);letter-spacing:var(--uas--typography--label-large-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;color:var(--uas--typography--color);display:block;margin-bottom:8px}:host([required]) label.top-label span::after{content:"*";color:var(--uas--color--status-on-error-container);margin-left:4px}.error label.top-label{color:var(--uas--color--status-on-error-container)}.helper{font-family:var(--uas--typography--body-small-font-family);font-size:var(--uas--typography--body-small-font-size);line-height:var(--uas--typography--body-small-line-height);font-weight:var(--uas--typography--body-small-font-weight);letter-spacing:var(--uas--typography--body-small-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;color:var(--uas--typography--color-secondary);margin-top:8px}:host([hidden]),:host([hidden]) .wrapper{display:none !important}',""]),i.d(t,["default",0,r])},4739(e,t,i){"use strict";i.r(t);var a=i(1601),n=i.n(a),o=i(6314),r=(i.n(o))()(n());r.push([e.id,'.switch{display:inline-flex;align-items:center;cursor:pointer;gap:5px;min-width:24px;min-height:24px;position:relative}.switch input{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);clip-path:inset(50%);white-space:nowrap;border:0}.switch input:focus-visible~.switch__handle{outline:2px solid var(--uap-font-anchor, #2271b1);outline-offset:3px}.switch--left{flex-direction:row-reverse}.switch__handle{width:26px;height:12px;border:2px solid var(--uas--typography--color-secondary);background:rgba(0,0,0,0);cursor:pointer;border-radius:150px;position:relative;transition:border 150ms ease-in-out,background 150ms ease-in-out}input:checked~.switch__handle{border-color:var(--uas--color--accent);background:var(--uas--color--accent)}.switch__handle:after{content:"";background:var(--uas--typography--color-secondary);position:absolute;width:8px;height:8px;border-radius:50%;top:2px;left:3px;transition:left 150ms ease-in-out,background 150ms ease-in-out}input:checked~.switch__handle:after{left:15px;background:#fff}input:disabled~.switch__handle{opacity:.7;pointer-events:none;cursor:default}.switch__label{font-family:var(--uas--typography--label-large-font-family);font-size:var(--uas--typography--label-large-font-size);line-height:var(--uas--typography--label-large-line-height);font-weight:var(--uas--typography--label-large-font-weight);letter-spacing:var(--uas--typography--label-large-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;color:var(--uas--typography--color-secondary);margin-left:6px;user-select:none}input:checked~.switch__label{color:var(--uas--color--status-on-success-container)}.switch__label-dynamic{display:none}input:checked~.switch__label .switch__label-dynamic--on{display:block}input:checked~.switch__label .switch__label-dynamic--off{display:none}input:not(:checked)~.switch__label .switch__label-dynamic--on{display:none}input:not(:checked)~.switch__label .switch__label-dynamic--off{display:block}input:disabled~.switch__label{opacity:.7;pointer-events:none;cursor:default}',""]),i.d(t,["default",0,r])},3274(e,t,i){"use strict";i.r(t);var a=i(1601),n=i.n(a),o=i(6314),r=(i.n(o))()(n());r.push([e.id,".input-wrapper{display:flex;align-items:center;gap:5px;font-family:var(--uas--typography--body-medium-font-family);font-size:var(--uas--typography--body-medium-font-size);line-height:var(--uas--typography--body-medium-line-height);font-weight:var(--uas--typography--body-medium-font-weight);letter-spacing:var(--uas--typography--body-medium-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;color:var(--uap-font-color);border:var(--uap-field-border-width, 1px) solid var(--uas--color--field-border);box-shadow:var(--uap-field-box-shadow, var(--uas--base--shadow-sm));padding-top:var(--uap-field-wrapper-padding-top-custom, var(--uap-field-wrapper-padding-top-default));padding-bottom:var(--uap-field-wrapper-padding-bottom-custom, var(--uap-field-wrapper-padding-bottom-default));padding-left:var(--uap-field-wrapper-padding-left-custom, var(--uap-field-wrapper-padding-left-default));padding-right:var(--uap-field-wrapper-padding-right-custom, var(--uap-field-wrapper-padding-right-default));border-top-left-radius:var(--uap-field-left-top-border-radius, var(--uas--base--border-radius-md));border-top-right-radius:var(--uap-field-right-top-border-radius, var(--uas--base--border-radius-md));border-bottom-left-radius:var(--uap-field-left-bottom-border-radius, var(--uas--base--border-radius-md));border-bottom-right-radius:var(--uap-field-right-bottom-border-radius, var(--uas--base--border-radius-md));transition:var(--uas--base--transition);cursor:text;background-color:var(--uap-field-wrapper-background-color, #fff)}.input-wrapper:focus-within{border-color:var(--uas--color--primary);box-shadow:var(--uap-field-focus-box-shadow, 0 0 0 2px color(from var(--uas--color--primary) srgb r g b/0.2))}.error .input-wrapper{border-color:var(--uas--color--status-on-error-container)}.error .input-wrapper:focus-within{box-shadow:0 0 0 2px color(from var(--uas--color--status-on-error-container) srgb r g b/0.2)}input{width:100%;flex:1 1 auto;font-size:inherit !important;font-family:inherit !important;border:0 !important;box-shadow:none !important;margin:0 !important;outline:0 !important;color:inherit !important;text-overflow:ellipsis;background-color:var(--uap-field-input-background-color, #fff);padding-top:var(--uap-field-padding-top-custom, var(--uap-field-padding-top-default));padding-bottom:var(--uap-field-padding-bottom-custom, var(--uap-field-padding-bottom-default));padding-left:var(--uap-field-padding-left-custom, var(--uap-field-padding-left-default));padding-right:var(--uap-field-padding-right-custom, var(--uap-field-padding-right-default))}input::placeholder{font-family:var(--uas--typography--body-medium-font-family);font-size:var(--uas--typography--body-medium-font-size);line-height:var(--uas--typography--body-medium-line-height);font-weight:var(--uas--typography--body-medium-font-weight);letter-spacing:var(--uas--typography--body-medium-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;color:var(--uas--typography--color-secondary);opacity:.7}.input-wrapper--disabled,input[disabled]{background-color:var(--uas--color--field-background-disabled);color:var(--uas--typography--color-secondary)}:host([label-hidden]) label.top-label{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);clip-path:inset(50%);white-space:nowrap;border:0}:host([label-hidden]) label.top-label{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);clip-path:inset(50%);white-space:nowrap;border:0}",""]),i.d(t,["default",0,r])},6314(e){"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map(function(t){var i="",a=void 0!==t[5];return t[4]&&(i+="@supports (".concat(t[4],") {")),t[2]&&(i+="@media ".concat(t[2]," {")),a&&(i+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),i+=e(t),a&&(i+="}"),t[2]&&(i+="}"),t[4]&&(i+="}"),i}).join("")},t.i=function(e,i,a,n,o){"string"==typeof e&&(e=[[null,e,void 0]]);var r={};if(a)for(var s=0;s<this.length;s++){var l=this[s][0];null!=l&&(r[l]=!0)}for(var c=0;c<e.length;c++){var d=[].concat(e[c]);a&&r[d[0]]||(void 0!==o&&(void 0===d[5]||(d[1]="@layer".concat(d[5].length>0?" ".concat(d[5]):""," {").concat(d[1],"}")),d[5]=o),i&&(d[2]&&(d[1]="@media ".concat(d[2]," {").concat(d[1],"}")),d[2]=i),n&&(d[4]?(d[1]="@supports (".concat(d[4],") {").concat(d[1],"}"),d[4]=n):d[4]="".concat(n)),t.push(d))}},t}},4417(e){"use strict";e.exports=function(e,t){return(t||(t={}),e&&(e=String(e.__esModule?e.default:e),/^['"].*['"]$/.test(e)&&(e=e.slice(1,-1)),t.hash&&(e+=t.hash),/["'() \t\n]|(%20)/.test(e)||t.needQuotes))?'"'.concat(e.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):e}},1601(e){"use strict";e.exports=function(e){return e[1]}},5458(e,t,i){var a,n,o;o=function(e){var t=function(){if(e&&e.fn&&e.fn.select2&&e.fn.select2.amd)var t,i,a,n,n=e.fn.select2.amd;return n&&n.requirejs||(n?i=n:n={},function(){var e,n,o,r,s={},l={},c={},d={},u=Object.prototype.hasOwnProperty,p=[].slice,h=/\.js$/;function g(e,t){return u.call(e,t)}function m(e,t){var i,a,n,o,r,s,l,d,u,p,g,m=t&&t.split("/"),f=c.map,y=f&&f["*"]||{};if(e){for(r=(e=e.split("/")).length-1,c.nodeIdCompat&&h.test(e[r])&&(e[r]=e[r].replace(h,"")),"."===e[0].charAt(0)&&m&&(e=m.slice(0,m.length-1).concat(e)),u=0;u<e.length;u++)if("."===(g=e[u]))e.splice(u,1),u-=1;else if(".."===g)if(0===u||1===u&&".."===e[2]||".."===e[u-1])continue;else u>0&&(e.splice(u-1,2),u-=2);e=e.join("/")}if((m||y)&&f){for(u=(i=e.split("/")).length;u>0;u-=1){if(a=i.slice(0,u).join("/"),m){for(p=m.length;p>0;p-=1)if((n=f[m.slice(0,p).join("/")])&&(n=n[a])){o=n,s=u;break}}if(o)break;!l&&y&&y[a]&&(l=y[a],d=u)}!o&&l&&(o=l,s=d),o&&(i.splice(0,s,o),e=i.join("/"))}return e}function f(e,t){return function(){var i=p.call(arguments,0);return"string"!=typeof i[0]&&1===i.length&&i.push(null),n.apply(void 0,i.concat([e,t]))}}function y(t){if(g(l,t)){var i=l[t];delete l[t],d[t]=!0,e.apply(void 0,i)}if(!g(s,t)&&!g(d,t))throw Error("No "+t);return s[t]}function b(e){var t,i=e?e.indexOf("!"):-1;return i>-1&&(t=e.substring(0,i),e=e.substring(i+1,e.length)),[t,e]}o=function(e,t){var i,a=b(e),n=a[0],o=t[1];return(e=a[1],n&&(i=y(n=m(n,o))),n)?e=i&&i.normalize?i.normalize(e,function(e){return m(e,o)}):m(e,o):(n=(a=b(e=m(e,o)))[0],e=a[1],n&&(i=y(n))),{f:n?n+"!"+e:e,n:e,pr:n,p:i}},r={require:function(e){return f(e)},exports:function(e){var t=s[e];return void 0!==t?t:s[e]={}},module:function(e){return{id:e,uri:"",exports:s[e],config:function(){return c&&c.config&&c.config[e]||{}}}}},e=function(e,t,i,a){var n,c,u,p,h,m,v,_,w=[],x=typeof i;if(v=(n=a=a||e)?b(n):[],"undefined"===x||"function"===x){for(t=!t.length&&i.length?["require","exports","module"]:t,m=0;m<t.length;m+=1)if("require"===(u=(h=o(t[m],v)).f))w[m]=r.require(e);else if("exports"===u)w[m]=r.exports(e),_=!0;else if("module"===u)c=w[m]=r.module(e);else if(g(s,u)||g(l,u)||g(d,u))w[m]=y(u);else if(h.p)h.p.load(h.n,f(a,!0),function(e){return function(t){s[e]=t}}(u),{}),w[m]=s[u];else throw Error(e+" missing "+u);p=i?i.apply(s[e],w):void 0,e&&(c&&void 0!==c.exports&&c.exports!==s[e]?s[e]=c.exports:void 0===p&&_||(s[e]=p))}else e&&(s[e]=i)},t=i=n=function(t,i,a,s,l){if("string"==typeof t){var d;return r[t]?r[t](i):y(o(t,(d=i)?b(d):[]).f)}if(!t.splice){if((c=t).deps&&n(c.deps,c.callback),!i)return;i.splice?(t=i,i=a,a=null):t=void 0}return i=i||function(){},"function"==typeof a&&(a=s,s=l),s?e(void 0,t,i,a):setTimeout(function(){e(void 0,t,i,a)},4),n},n.config=function(e){return n(e)},t._defined=s,(a=function(e,t,i){if("string"!=typeof e)throw Error("See almond README: incorrect module build, no module name");t.splice||(i=t,t=[]),g(s,e)||g(l,e)||(l[e]=[e,t,i])}).amd={jQuery:!0}}(),n.requirejs=t,n.require=i,n.define=a),n.define("almond",function(){}),n.define("jquery",[],function(){var t=e||$;return null==t&&console&&console.error&&console.error("Select2: An instance of jQuery or a jQuery-compatible library was not found. Make sure that you are including jQuery before Select2 on your web page."),t}),n.define("select2/utils",[],function(){var e={};function t(e){var t=e.prototype,i=[];for(var a in t)"function"==typeof t[a]&&"constructor"!==a&&i.push(a);return i}e.Extend=function(e,t){var i={}.hasOwnProperty;function a(){this.constructor=e}for(var n in t)i.call(t,n)&&(e[n]=t[n]);return a.prototype=t.prototype,e.prototype=new a,e.__super__=t.prototype,e},e.Decorate=function(e,i){var a=t(i),n=t(e);function o(){var t=Array.prototype.unshift,a=i.prototype.constructor.length,n=e.prototype.constructor;a>0&&(t.call(arguments,e.prototype.constructor),n=i.prototype.constructor),n.apply(this,arguments)}i.displayName=e.displayName,o.prototype=new function(){this.constructor=o};for(var r=0;r<n.length;r++){var s=n[r];o.prototype[s]=e.prototype[s]}for(var l=0;l<a.length;l++){var c=a[l];o.prototype[c]=function(e){var t=function(){};e in o.prototype&&(t=o.prototype[e]);var a=i.prototype[e];return function(){return Array.prototype.unshift.call(arguments,t),a.apply(this,arguments)}}(c)}return o};var i=function(){this.listeners={}};i.prototype.on=function(e,t){this.listeners=this.listeners||{},e in this.listeners?this.listeners[e].push(t):this.listeners[e]=[t]},i.prototype.trigger=function(e){var t=Array.prototype.slice,i=t.call(arguments,1);this.listeners=this.listeners||{},null==i&&(i=[]),0===i.length&&i.push({}),i[0]._type=e,e in this.listeners&&this.invoke(this.listeners[e],t.call(arguments,1)),"*"in this.listeners&&this.invoke(this.listeners["*"],arguments)},i.prototype.invoke=function(e,t){for(var i=0,a=e.length;i<a;i++)e[i].apply(this,t)},e.Observable=i,e.generateChars=function(e){for(var t="",i=0;i<e;i++)t+=Math.floor(36*Math.random()).toString(36);return t},e.bind=function(e,t){return function(){e.apply(t,arguments)}},e._convertData=function(e){for(var t in e){var i=t.split("-"),a=e;if(1!==i.length){for(var n=0;n<i.length;n++){var o=i[n];(o=o.substring(0,1).toLowerCase()+o.substring(1))in a||(a[o]={}),n==i.length-1&&(a[o]=e[t]),a=a[o]}delete e[t]}}return e},e.hasScroll=function(e,t){var i=t.style.overflowX,a=t.style.overflowY;if(i===a&&("hidden"===a||"visible"===a))return!1;if("scroll"===i||"scroll"===a)return!0;var n=window.getComputedStyle(t);return parseFloat(n.height)<t.scrollHeight||parseFloat(n.width)<t.scrollWidth},e.escapeMarkup=function(e){var t={"\\":"\","&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};return"string"!=typeof e?e:String(e).replace(/[&<>"'\/\\]/g,function(e){return t[e]})},e.__cache={};var a=0;return e.GetUniqueElementId=function(t){var i=t.getAttribute("data-select2-id");return null!=i||(i=t.id?"select2-data-"+t.id:"select2-data-"+(++a).toString()+"-"+e.generateChars(4),t.setAttribute("data-select2-id",i)),i},e.StoreData=function(t,i,a){var n=e.GetUniqueElementId(t);e.__cache[n]||(e.__cache[n]={}),e.__cache[n][i]=a},e.GetData=function(t,i){var a=e.GetUniqueElementId(t);if(!i)return e.__cache[a];var n=i.replace(/-([a-z])/g,function(e,t){return t.toUpperCase()});return e.__cache[a]&&null!=e.__cache[a][i]?e.__cache[a][i]:t.dataset[n]},e.RemoveData=function(t){var i=e.GetUniqueElementId(t);null!=e.__cache[i]&&delete e.__cache[i],t.removeAttribute("data-select2-id")},e.copyNonInternalCssClasses=function(e,t){var i=e.getAttribute("class").trim().split(/\s+/);i=i.filter(function(e){return 0===e.indexOf("select2-")});var a=t.getAttribute("class").trim().split(/\s+/);a=a.filter(function(e){return 0!==e.indexOf("select2-")});var n=i.concat(a);e.setAttribute("class",n.join(" "))},e}),n.define("select2/results",["jquery","./utils"],function(e,t){function i(e,t,a){this.$element=e,this.data=a,this.options=t,i.__super__.constructor.call(this)}return t.Extend(i,t.Observable),i.prototype.render=function(){var t=e('<ul class="select2-results__options" role="listbox"></ul>');return this.options.get("multiple")&&t[0].setAttribute("aria-multiselectable","true"),this.$results=t,t},i.prototype.clear=function(){this.$results.empty()},i.prototype.displayMessage=function(t){var i=this.options.get("escapeMarkup");this.clear(),this.hideLoading();var a=e('<li role="alert" aria-live="assertive" class="select2-results__option"></li>'),n=this.options.get("translations").get(t.message);a.append(i(n(t.args))),a[0].className+=" select2-results__message",this.$results.append(a)},i.prototype.hideMessages=function(){this.$results.find(".select2-results__message").remove()},i.prototype.append=function(e){this.hideLoading();var t=[];if(null==e.results||0===e.results.length){0===this.$results.children().length&&this.trigger("results:message",{message:"noResults"});return}e.results=this.sort(e.results);for(var i=0;i<e.results.length;i++){var a=e.results[i],n=this.option(a);t.push(n)}this.$results.append(t)},i.prototype.position=function(e,t){t.find(".select2-results").append(e)},i.prototype.sort=function(e){return this.options.get("sorter")(e)},i.prototype.highlightFirstItem=function(){var e=this.$results.find(".select2-results__option--selectable"),t=e.filter(".select2-results__option--selected");t.length>0?t.first().trigger("mouseenter"):e.first().trigger("mouseenter"),this.ensureHighlightVisible()},i.prototype.setClasses=function(){var i=this;this.data.current(function(a){var n=a.map(function(e){return e.id.toString()});i.$results.find(".select2-results__option--selectable").each(function(){var i=e(this),a=t.GetData(this,"data"),o=""+a.id;null!=a.element&&a.element.selected||null==a.element&&n.indexOf(o)>-1?(this.classList.add("select2-results__option--selected"),i[0].setAttribute("aria-selected","true")):(this.classList.remove("select2-results__option--selected"),i[0].setAttribute("aria-selected","false"))})})},i.prototype.showLoading=function(e){this.hideLoading();var t={disabled:!0,loading:!0,text:this.options.get("translations").get("searching")(e)},i=this.option(t);i.className+=" loading-results",this.$results.prepend(i)},i.prototype.hideLoading=function(){this.$results.find(".loading-results").remove()},i.prototype.option=function(i){var a=document.createElement("li");a.classList.add("select2-results__option"),a.classList.add("select2-results__option--selectable");var n={role:"option"},o=window.Element.prototype.matches||window.Element.prototype.msMatchesSelector||window.Element.prototype.webkitMatchesSelector;for(var r in(null!=i.element&&o.call(i.element,":disabled")||null==i.element&&i.disabled)&&(n["aria-disabled"]="true",a.classList.remove("select2-results__option--selectable"),a.classList.add("select2-results__option--disabled")),null==i.id&&a.classList.remove("select2-results__option--selectable"),null!=i._resultId&&(a.id=i._resultId),i.title&&(a.title=i.title),i.children&&(n.role="group",n["aria-label"]=i.text,a.classList.remove("select2-results__option--selectable"),a.classList.add("select2-results__option--group")),n){var s=n[r];a.setAttribute(r,s)}if(i.children){var l=e(a),c=document.createElement("strong");c.className="select2-results__group",this.template(i,c);for(var d=[],u=0;u<i.children.length;u++){var p=i.children[u],h=this.option(p);d.push(h)}var g=e("<ul></ul>",{class:"select2-results__options select2-results__options--nested",role:"none"});g.append(d),l.append(c),l.append(g)}else this.template(i,a);return t.StoreData(a,"data",i),a},i.prototype.bind=function(i,a){var n=this,o=i.id+"-results";this.$results[0].setAttribute("id",o),i.on("results:all",function(e){n.clear(),n.append(e.data),i.isOpen()&&(n.setClasses(),n.highlightFirstItem())}),i.on("results:append",function(e){n.append(e.data),i.isOpen()&&n.setClasses()}),i.on("query",function(e){n.hideMessages(),n.showLoading(e)}),i.on("select",function(){i.isOpen()&&(n.setClasses(),n.options.get("scrollAfterSelect")&&n.highlightFirstItem())}),i.on("unselect",function(){i.isOpen()&&(n.setClasses(),n.options.get("scrollAfterSelect")&&n.highlightFirstItem())}),i.on("open",function(){n.$results[0].setAttribute("aria-expanded","true"),n.$results[0].setAttribute("aria-hidden","false"),n.setClasses(),n.ensureHighlightVisible()}),i.on("close",function(){n.$results[0].setAttribute("aria-expanded","false"),n.$results[0].setAttribute("aria-hidden","true"),n.$results[0].removeAttribute("aria-activedescendant")}),i.on("results:toggle",function(){var e=n.getHighlightedResults();0!==e.length&&e.trigger("mouseup")}),i.on("results:select",function(){var e=n.getHighlightedResults();if(0!==e.length){var i=t.GetData(e[0],"data");e.hasClass("select2-results__option--selected")?n.trigger("close",{}):n.trigger("select",{data:i})}}),i.on("results:previous",function(){var e=n.getHighlightedResults(),t=n.$results.find(".select2-results__option--selectable"),i=t.index(e);if(!(i<=0)){var a=i-1;0===e.length&&(a=0);var o=t.eq(a);o.trigger("mouseenter");var r=n.$results.offset().top,s=o.offset().top,l=n.$results.scrollTop()+(s-r);0===a?n.$results.scrollTop(0):s-r<0&&n.$results.scrollTop(l)}}),i.on("results:next",function(){var e=n.getHighlightedResults(),t=n.$results.find(".select2-results__option--selectable"),i=t.index(e)+1;if(!(i>=t.length)){var a=t.eq(i);a.trigger("mouseenter");var o=n.$results.offset().top+n.$results.outerHeight(!1),r=a.offset().top+a.outerHeight(!1),s=n.$results.scrollTop()+r-o;0===i?n.$results.scrollTop(0):r>o&&n.$results.scrollTop(s)}}),i.on("results:focus",function(e){e.element[0].classList.add("select2-results__option--highlighted"),e.element[0].setAttribute("aria-selected","true")}),i.on("results:message",function(e){n.displayMessage(e)}),e.fn.mousewheel&&this.$results.on("mousewheel",function(e){var t=n.$results.scrollTop(),i=n.$results.get(0).scrollHeight-t+e.deltaY,a=e.deltaY>0&&t-e.deltaY<=0,o=e.deltaY<0&&i<=n.$results.height();a?(n.$results.scrollTop(0),e.preventDefault(),e.stopPropagation()):o&&(n.$results.scrollTop(n.$results.get(0).scrollHeight-n.$results.height()),e.preventDefault(),e.stopPropagation())}),this.$results.on("mouseup",".select2-results__option--selectable",function(i){var a=e(this),o=t.GetData(this,"data");a.hasClass("select2-results__option--selected")?n.options.get("multiple")?n.trigger("unselect",{originalEvent:i,data:o}):n.trigger("close",{originalEvent:i,data:o}):n.trigger("select",{originalEvent:i,data:o})}),this.$results.on("mouseenter",".select2-results__option--selectable",function(i){var a=t.GetData(this,"data"),o=n.getHighlightedResults();o.removeClass("select2-results__option--highlighted"),o.each(function(){this.setAttribute("aria-selected","false")}),n.trigger("results:focus",{data:a,element:e(this)})})},i.prototype.getHighlightedResults=function(){return this.$results.find(".select2-results__option--highlighted")},i.prototype.destroy=function(){this.$results.remove()},i.prototype.ensureHighlightVisible=function(){var e=this.getHighlightedResults();if(0!==e.length){var t=this.$results.find(".select2-results__option--selectable").index(e),i=this.$results.offset().top,a=e.offset().top,n=this.$results.scrollTop()+(a-i),o=a-i;n-=2*e.outerHeight(!1),t<=2?this.$results.scrollTop(0):(o>this.$results.outerHeight()||o<0)&&this.$results.scrollTop(n)}},i.prototype.template=function(t,i){var a=this.options.get("templateResult"),n=this.options.get("escapeMarkup"),o=a(t,i);null==o?i.style.display="none":"string"==typeof o?i.innerHTML=n(o):e(i).append(o)},i}),n.define("select2/keys",[],function(){return{BACKSPACE:8,TAB:9,ENTER:13,SHIFT:16,CTRL:17,ALT:18,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46}}),n.define("select2/selection/base",["jquery","../utils","../keys"],function(e,t,i){function a(e,t){this.$element=e,this.options=t,a.__super__.constructor.call(this)}return t.Extend(a,t.Observable),a.prototype.render=function(){var i=e('<span class="select2-selection" role="combobox" aria-haspopup="true" aria-expanded="false"></span>');return this._tabindex=0,null!=t.GetData(this.$element[0],"old-tabindex")?this._tabindex=t.GetData(this.$element[0],"old-tabindex"):null!=this.$element[0].getAttribute("tabindex")&&(this._tabindex=this.$element[0].getAttribute("tabindex")),this.$element[0].getAttribute("title")&&i[0].setAttribute("title",this.$element[0].getAttribute("title")),i[0].setAttribute("tabindex",this._tabindex),i[0].setAttribute("aria-disabled","false"),this.$selection=i,i},a.prototype.bind=function(e,t){var a=this,n=e.id+"-results";this.container=e,this.$selection.on("focus",function(e){a.trigger("focus",e)}),this.$selection.on("blur",function(e){a._handleBlur(e)}),this.$selection.on("keydown",function(e){a.trigger("keypress",e),e.which===i.SPACE&&e.preventDefault()}),e.on("results:focus",function(e){a.$selection[0].setAttribute("aria-activedescendant",e.data._resultId)}),e.on("selection:update",function(e){a.update(e.data)}),e.on("open",function(){a.$selection[0].setAttribute("aria-expanded","true"),a.$selection[0].setAttribute("aria-owns",n),a._attachCloseHandler(e)}),e.on("close",function(){a.$selection[0].setAttribute("aria-expanded","false"),a.$selection[0].removeAttribute("aria-activedescendant"),a.$selection[0].removeAttribute("aria-owns"),a.$selection.trigger("focus"),a._detachCloseHandler(e)}),e.on("enable",function(){a.$selection[0].setAttribute("tabindex",a._tabindex),a.$selection[0].setAttribute("aria-disabled","false")}),e.on("disable",function(){a.$selection[0].setAttribute("tabindex","-1"),a.$selection[0].setAttribute("aria-disabled","true")})},a.prototype._handleBlur=function(t){var i=this;window.setTimeout(function(){document.activeElement==i.$selection[0]||e.contains(i.$selection[0],document.activeElement)||i.trigger("blur",t)},1)},a.prototype._attachCloseHandler=function(i){e(document.body).on("mousedown.select2."+i.id,function(i){var a=e(i.target).closest(".select2");e(".select2.select2-container--open").each(function(){this!=a[0]&&t.GetData(this,"element").select2("close")})})},a.prototype._detachCloseHandler=function(t){e(document.body).off("mousedown.select2."+t.id)},a.prototype.position=function(e,t){t.find(".selection").append(e)},a.prototype.destroy=function(){this._detachCloseHandler(this.container)},a.prototype.update=function(e){throw Error("The `update` method must be defined in child classes.")},a.prototype.isEnabled=function(){return!this.isDisabled()},a.prototype.isDisabled=function(){return this.options.get("disabled")},a}),n.define("select2/selection/single",["jquery","./base","../utils","../keys"],function(e,t,i,a){function n(){n.__super__.constructor.apply(this,arguments)}return i.Extend(n,t),n.prototype.render=function(){var e=n.__super__.render.call(this);return e[0].classList.add("select2-selection--single"),e.html('<span class="select2-selection__rendered"></span><span class="select2-selection__arrow" role="presentation"><b role="presentation"></b></span>'),e},n.prototype.bind=function(e,t){var i=this;n.__super__.bind.apply(this,arguments);var a=e.id+"-container",o=this.$selection.find(".select2-selection__rendered")[0];null!=o&&(o.setAttribute("id",a),o.setAttribute("role","textbox"),o.setAttribute("aria-readonly","true")),this.$selection[0].setAttribute("aria-labelledby",a),this.$selection[0].setAttribute("aria-controls",a),this.$selection.on("mousedown",function(e){1===e.which&&i.trigger("toggle",{originalEvent:e})}),this.$selection.on("focus",function(e){}),this.$selection.on("blur",function(e){}),e.on("focus",function(t){e.isOpen()||i.$selection.trigger("focus")})},n.prototype.clear=function(){var e=this.$selection.find(".select2-selection__rendered");e.empty(),e[0].removeAttribute("title")},n.prototype.display=function(e,t){var i=this.options.get("templateSelection");return this.options.get("escapeMarkup")(i(e,t))},n.prototype.selectionContainer=function(){return e("<span></span>")},n.prototype.update=function(e){if(0===e.length)return void this.clear();var t=e[0],i=this.$selection.find(".select2-selection__rendered"),a=this.display(t,i);i.empty().append(a);var n=t.title||t.text;n?i[0].setAttribute("title",n):i[0].removeAttribute("title")},n}),n.define("select2/selection/multiple",["jquery","./base","../utils"],function(e,t,i){function a(e,t){a.__super__.constructor.apply(this,arguments)}return i.Extend(a,t),a.prototype.render=function(){var e=a.__super__.render.call(this);return e[0].classList.add("select2-selection--multiple"),e.html('<ul class="select2-selection__rendered"></ul>'),e},a.prototype.bind=function(t,n){var o=this;a.__super__.bind.apply(this,arguments);var r=t.id+"-container",s=this.$selection.find(".select2-selection__rendered")[0];null!=s&&s.setAttribute("id",r),this.$selection.on("click",function(e){o.trigger("toggle",{originalEvent:e})}),this.$selection.on("click",".select2-selection__choice__remove",function(t){if(!o.isDisabled()){var a=e(this).parent(),n=i.GetData(a[0],"data");o.trigger("unselect",{originalEvent:t,data:n})}}),this.$selection.on("keydown",".select2-selection__choice__remove",function(e){o.isDisabled()||e.stopPropagation()})},a.prototype.clear=function(){var e=this.$selection.find(".select2-selection__rendered");e.empty(),e[0].removeAttribute("title")},a.prototype.display=function(e,t){var i=this.options.get("templateSelection");return this.options.get("escapeMarkup")(i(e,t))},a.prototype.selectionContainer=function(){return e('<li class="select2-selection__choice"><button type="button" class="select2-selection__choice__remove" tabindex="-1"><span aria-hidden="true">×</span></button><span class="select2-selection__choice__display"></span></li>')},a.prototype.update=function(e){if(this.clear(),0!==e.length){for(var t=[],a=this.$selection.find(".select2-selection__rendered")[0].getAttribute("id")+"-choice-",n=0;n<e.length;n++){var o=e[n],r=this.selectionContainer(),s=this.display(o,r),l=a+i.generateChars(4)+"-";o.id?l+=o.id:l+=i.generateChars(4),r.find(".select2-selection__choice__display").append(s)[0].setAttribute("id",l);var c=o.title||o.text;c&&r[0].setAttribute("title",c);var d=this.options.get("translations").get("removeItem"),u=r.find(".select2-selection__choice__remove")[0];u.setAttribute("title",d()),u.setAttribute("aria-label",d()),u.setAttribute("aria-describedby",l),i.StoreData(r[0],"data",o),t.push(r)}this.$selection.find(".select2-selection__rendered").append(t)}},a}),n.define("select2/selection/placeholder",[],function(){function e(e,t,i){this.placeholder=this.normalizePlaceholder(i.get("placeholder")),e.call(this,t,i)}return e.prototype.normalizePlaceholder=function(e,t){return"object"!=typeof t&&(t={id:"",text:t}),t},e.prototype.createPlaceholder=function(e,t){var i=this.selectionContainer();i.html(this.display(t)),i[0].classList.add("select2-selection__placeholder"),i[0].classList.remove("select2-selection__choice");var a=t.title||t.text||i.text();return this.$selection.find(".select2-selection__rendered")[0].setAttribute("title",a),i},e.prototype.update=function(e,t){var i=1==t.length&&t[0].id!=this.placeholder.id;if(t.length>1||i)return e.call(this,t);this.clear();var a=this.createPlaceholder(this.placeholder);this.$selection.find(".select2-selection__rendered").append(a)},e}),n.define("select2/selection/allowClear",["jquery","../keys","../utils"],function(e,t,i){function a(){}return a.prototype.bind=function(e,t,i){var a=this;e.call(this,t,i),null==this.placeholder&&this.options.get("debug")&&window.console&&console.error&&console.error("Select2: The `allowClear` option should be used in combination with the `placeholder` option."),this.$selection.on("mousedown",".select2-selection__clear",function(e){a._handleClear(e)}),t.on("keypress",function(e){a._handleKeyboardClear(e,t)})},a.prototype._handleClear=function(e,t){if(!this.isDisabled()){var a=this.$selection.find(".select2-selection__clear");if(0!==a.length){t.stopPropagation();var n=i.GetData(a[0],"data"),o=this.$element.val();this.$element.val(this.placeholder.id);var r={data:n};if(this.trigger("clear",r),r.prevented)return void this.$element.val(o);for(var s=0;s<n.length;s++)if(r={data:n[s]},this.trigger("unselect",r),r.prevented)return void this.$element.val(o);this.$element.trigger("input").trigger("change"),this.trigger("toggle",{})}}},a.prototype._handleKeyboardClear=function(e,i,a){a.isOpen()||(i.which==t.DELETE||i.which==t.BACKSPACE)&&this._handleClear(i)},a.prototype.update=function(t,a){if(t.call(this,a),this.$selection.find(".select2-selection__clear").remove(),this.$selection[0].classList.remove("select2-selection--clearable"),!(this.$selection.find(".select2-selection__placeholder").length>0)&&0!==a.length){var n=this.$selection.find(".select2-selection__rendered")[0],o=null;null!=n&&(o=n.getAttribute("id"));var r=this.options.get("translations").get("removeAllItems"),s=e('<button type="button" class="select2-selection__clear" tabindex="-1"><span aria-hidden="true">×</span></button>');s[0].setAttribute("title",r()),s[0].setAttribute("aria-label",r()),s[0].setAttribute("aria-describedby",o),i.StoreData(s[0],"data",a),this.$selection.prepend(s),this.$selection[0].classList.add("select2-selection--clearable")}},a}),n.define("select2/selection/search",["jquery","../utils","../keys"],function(e,t,i){function a(e,t,i){e.call(this,t,i)}return a.prototype.render=function(t){var i=this.options.get("translations").get("search"),a=e('<span class="select2-search select2-search--inline"><textarea class="select2-search__field" type="search" tabindex="-1" autocorrect="off" autocapitalize="none" spellcheck="false" role="searchbox" aria-autocomplete="list" ></textarea></span>');this.$searchContainer=a,this.$search=a.find("textarea"),this.$search[0].autocomplete=this.options.get("autocomplete"),this.$search[0].setAttribute("aria-label",i());var n=t.call(this);return this._transferTabIndex(),n.append(this.$searchContainer),n},a.prototype.bind=function(e,a,n){var o=this,r=a.id+"-results",s=a.id+"-container";e.call(this,a,n),o.$search[0].setAttribute("aria-describedby",s),a.on("open",function(){o.$search[0].setAttribute("aria-controls",r),o.$search.trigger("focus")}),a.on("close",function(){o.$search.val(""),o.resizeSearch(),o.$search[0].removeAttribute("aria-controls"),o.$search[0].removeAttribute("aria-activedescendant"),o.$search.trigger("focus")}),a.on("enable",function(){o.$search[0].disabled=!1,o._transferTabIndex()}),a.on("disable",function(){o.$search[0].disabled=!0}),a.on("focus",function(e){o.$search.trigger("focus")}),a.on("results:focus",function(e){e.data._resultId?o.$search[0].setAttribute("aria-activedescendant",e.data._resultId):o.$search[0].removeAttribute("aria-activedescendant")}),this.$selection.on("focusin",".select2-search--inline",function(e){o.trigger("focus",e)}),this.$selection.on("focusout",".select2-search--inline",function(e){o._handleBlur(e)}),this.$selection.on("keydown",".select2-search--inline",function(e){if(e.stopPropagation(),o.trigger("keypress",e),o._keyUpPrevented=e.isDefaultPrevented(),e.which===i.BACKSPACE&&""===o.$search.val()){var a=o.$selection.find(".select2-selection__choice").last();if(a.length>0){var n=t.GetData(a[0],"data");o.searchRemoveChoice(n),e.preventDefault()}}}),this.$selection.on("click",".select2-search--inline",function(e){o.$search.val()&&e.stopPropagation()});var l=document.documentMode,c=l&&l<=11;this.$selection.on("input.searchcheck",".select2-search--inline",function(e){c?o.$selection.off("input.search input.searchcheck"):o.$selection.off("keyup.search")}),this.$selection.on("keyup.search input.search",".select2-search--inline",function(e){if(c&&"input"===e.type)return void o.$selection.off("input.search input.searchcheck");var t=e.which;t==i.SHIFT||t==i.CTRL||t==i.ALT||t!=i.TAB&&o.handleSearch(e)})},a.prototype._transferTabIndex=function(e){this.$search[0].setAttribute("tabindex",this.$selection[0].getAttribute("tabindex")),this.$selection[0].setAttribute("tabindex","-1")},a.prototype.createPlaceholder=function(e,t){this.$search[0].setAttribute("placeholder",t.text)},a.prototype.update=function(e,t){var i=this.$search[0]==document.activeElement;this.$search[0].setAttribute("placeholder",""),e.call(this,t),this.resizeSearch(),i&&this.$search.trigger("focus")},a.prototype.handleSearch=function(){if(this.resizeSearch(),!this._keyUpPrevented){var e=this.$search.val();this.trigger("query",{term:e})}this._keyUpPrevented=!1},a.prototype.searchRemoveChoice=function(e,t){this.trigger("unselect",{data:t}),this.$search.val(t.text),this.handleSearch()},a.prototype.resizeSearch=function(){this.$search.css("width","25px");var e="100%";""===this.$search[0].getAttribute("placeholder")&&(e=.75*(this.$search.val().length+1)+"em"),this.$search.css("width",e)},a}),n.define("select2/selection/selectionCss",["../utils"],function(e){function t(){}return t.prototype.render=function(t){var i=t.call(this),a=this.options.get("selectionCssClass")||"";return -1!==a.indexOf(":all:")&&(a=a.replace(":all:",""),e.copyNonInternalCssClasses(i[0],this.$element[0])),a.trim().split(" ").forEach(function(e){e.length>0&&i[0].classList.add(e)}),i},t}),n.define("select2/selection/eventRelay",["jquery"],function(e){function t(){}return t.prototype.bind=function(t,i,a){var n=this,o=["open","opening","close","closing","select","selecting","unselect","unselecting","clear","clearing"],r=["opening","closing","selecting","unselecting","clearing"];t.call(this,i,a),i.on("*",function(t,i){if(-1!==o.indexOf(t)){i=i||{};var a=e.Event("select2:"+t,{params:i});n.$element.trigger(a),-1!==r.indexOf(t)&&(i.prevented=a.isDefaultPrevented())}})},t}),n.define("select2/translation",["require"],function(e){function t(e){this.dict=e||{}}return t.prototype.all=function(){return this.dict},t.prototype.get=function(e){return this.dict[e]},t.prototype.extend=function(e){this.dict=Object.assign({},e.all(),this.dict)},t._cache={},t.loadPath=function(i){if(!(i in t._cache)){var a=e(i);t._cache[i]=a}return new t(t._cache[i])},t}),n.define("select2/diacritics",[],function(){return{"Ⓐ":"A",A:"A",À:"A",Á:"A",Â:"A",Ầ:"A",Ấ:"A",Ẫ:"A",Ẩ:"A",Ã:"A",Ā:"A",Ă:"A",Ằ:"A",Ắ:"A",Ẵ:"A",Ẳ:"A",Ȧ:"A",Ǡ:"A",Ä:"A",Ǟ:"A",Ả:"A",Å:"A",Ǻ:"A",Ǎ:"A",Ȁ:"A",Ȃ:"A",Ạ:"A",Ậ:"A",Ặ:"A",Ḁ:"A",Ą:"A",Ⱥ:"A",Ɐ:"A",Ꜳ:"AA",Æ:"AE",Ǽ:"AE",Ǣ:"AE",Ꜵ:"AO",Ꜷ:"AU",Ꜹ:"AV",Ꜻ:"AV",Ꜽ:"AY","Ⓑ":"B",B:"B",Ḃ:"B",Ḅ:"B",Ḇ:"B",Ƀ:"B",Ƃ:"B",Ɓ:"B","Ⓒ":"C",C:"C",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",Ç:"C",Ḉ:"C",Ƈ:"C",Ȼ:"C",Ꜿ:"C","Ⓓ":"D",D:"D",Ḋ:"D",Ď:"D",Ḍ:"D",Ḑ:"D",Ḓ:"D",Ḏ:"D",Đ:"D",Ƌ:"D",Ɗ:"D",Ɖ:"D",Ꝺ:"D",DZ:"DZ",DŽ:"DZ",Dz:"Dz",Dž:"Dz","Ⓔ":"E",E:"E",È:"E",É:"E",Ê:"E",Ề:"E",Ế:"E",Ễ:"E",Ể:"E",Ẽ:"E",Ē:"E",Ḕ:"E",Ḗ:"E",Ĕ:"E",Ė:"E",Ë:"E",Ẻ:"E",Ě:"E",Ȅ:"E",Ȇ:"E",Ẹ:"E",Ệ:"E",Ȩ:"E",Ḝ:"E",Ę:"E",Ḙ:"E",Ḛ:"E",Ɛ:"E",Ǝ:"E","Ⓕ":"F",F:"F",Ḟ:"F",Ƒ:"F",Ꝼ:"F","Ⓖ":"G",G:"G",Ǵ:"G",Ĝ:"G",Ḡ:"G",Ğ:"G",Ġ:"G",Ǧ:"G",Ģ:"G",Ǥ:"G",Ɠ:"G",Ꞡ:"G",Ᵹ:"G",Ꝿ:"G","Ⓗ":"H",H:"H",Ĥ:"H",Ḣ:"H",Ḧ:"H",Ȟ:"H",Ḥ:"H",Ḩ:"H",Ḫ:"H",Ħ:"H",Ⱨ:"H",Ⱶ:"H",Ɥ:"H","Ⓘ":"I",I:"I",Ì:"I",Í:"I",Î:"I",Ĩ:"I",Ī:"I",Ĭ:"I",İ:"I",Ï:"I",Ḯ:"I",Ỉ:"I",Ǐ:"I",Ȉ:"I",Ȋ:"I",Ị:"I",Į:"I",Ḭ:"I",Ɨ:"I","Ⓙ":"J",J:"J",Ĵ:"J",Ɉ:"J","Ⓚ":"K",K:"K",Ḱ:"K",Ǩ:"K",Ḳ:"K",Ķ:"K",Ḵ:"K",Ƙ:"K",Ⱪ:"K",Ꝁ:"K",Ꝃ:"K",Ꝅ:"K",Ꞣ:"K","Ⓛ":"L",L:"L",Ŀ:"L",Ĺ:"L",Ľ:"L",Ḷ:"L",Ḹ:"L",Ļ:"L",Ḽ:"L",Ḻ:"L",Ł:"L",Ƚ:"L",Ɫ:"L",Ⱡ:"L",Ꝉ:"L",Ꝇ:"L",Ꞁ:"L",LJ:"LJ",Lj:"Lj","Ⓜ":"M",M:"M",Ḿ:"M",Ṁ:"M",Ṃ:"M",Ɱ:"M",Ɯ:"M","Ⓝ":"N",N:"N",Ǹ:"N",Ń:"N",Ñ:"N",Ṅ:"N",Ň:"N",Ṇ:"N",Ņ:"N",Ṋ:"N",Ṉ:"N",Ƞ:"N",Ɲ:"N",Ꞑ:"N",Ꞥ:"N",NJ:"NJ",Nj:"Nj","Ⓞ":"O",O:"O",Ò:"O",Ó:"O",Ô:"O",Ồ:"O",Ố:"O",Ỗ:"O",Ổ:"O",Õ:"O",Ṍ:"O",Ȭ:"O",Ṏ:"O",Ō:"O",Ṑ:"O",Ṓ:"O",Ŏ:"O",Ȯ:"O",Ȱ:"O",Ö:"O",Ȫ:"O",Ỏ:"O",Ő:"O",Ǒ:"O",Ȍ:"O",Ȏ:"O",Ơ:"O",Ờ:"O",Ớ:"O",Ỡ:"O",Ở:"O",Ợ:"O",Ọ:"O",Ộ:"O",Ǫ:"O",Ǭ:"O",Ø:"O",Ǿ:"O",Ɔ:"O",Ɵ:"O",Ꝋ:"O",Ꝍ:"O",Œ:"OE",Ƣ:"OI",Ꝏ:"OO",Ȣ:"OU","Ⓟ":"P",P:"P",Ṕ:"P",Ṗ:"P",Ƥ:"P",Ᵽ:"P",Ꝑ:"P",Ꝓ:"P",Ꝕ:"P","Ⓠ":"Q",Q:"Q",Ꝗ:"Q",Ꝙ:"Q",Ɋ:"Q","Ⓡ":"R",R:"R",Ŕ:"R",Ṙ:"R",Ř:"R",Ȑ:"R",Ȓ:"R",Ṛ:"R",Ṝ:"R",Ŗ:"R",Ṟ:"R",Ɍ:"R",Ɽ:"R",Ꝛ:"R",Ꞧ:"R",Ꞃ:"R","Ⓢ":"S",S:"S",ẞ:"S",Ś:"S",Ṥ:"S",Ŝ:"S",Ṡ:"S",Š:"S",Ṧ:"S",Ṣ:"S",Ṩ:"S",Ș:"S",Ş:"S",Ȿ:"S",Ꞩ:"S",Ꞅ:"S","Ⓣ":"T",T:"T",Ṫ:"T",Ť:"T",Ṭ:"T",Ț:"T",Ţ:"T",Ṱ:"T",Ṯ:"T",Ŧ:"T",Ƭ:"T",Ʈ:"T",Ⱦ:"T",Ꞇ:"T",Ꜩ:"TZ","Ⓤ":"U",U:"U",Ù:"U",Ú:"U",Û:"U",Ũ:"U",Ṹ:"U",Ū:"U",Ṻ:"U",Ŭ:"U",Ü:"U",Ǜ:"U",Ǘ:"U",Ǖ:"U",Ǚ:"U",Ủ:"U",Ů:"U",Ű:"U",Ǔ:"U",Ȕ:"U",Ȗ:"U",Ư:"U",Ừ:"U",Ứ:"U",Ữ:"U",Ử:"U",Ự:"U",Ụ:"U",Ṳ:"U",Ų:"U",Ṷ:"U",Ṵ:"U",Ʉ:"U","Ⓥ":"V",V:"V",Ṽ:"V",Ṿ:"V",Ʋ:"V",Ꝟ:"V",Ʌ:"V",Ꝡ:"VY","Ⓦ":"W",W:"W",Ẁ:"W",Ẃ:"W",Ŵ:"W",Ẇ:"W",Ẅ:"W",Ẉ:"W",Ⱳ:"W","Ⓧ":"X",X:"X",Ẋ:"X",Ẍ:"X","Ⓨ":"Y",Y:"Y",Ỳ:"Y",Ý:"Y",Ŷ:"Y",Ỹ:"Y",Ȳ:"Y",Ẏ:"Y",Ÿ:"Y",Ỷ:"Y",Ỵ:"Y",Ƴ:"Y",Ɏ:"Y",Ỿ:"Y","Ⓩ":"Z",Z:"Z",Ź:"Z",Ẑ:"Z",Ż:"Z",Ž:"Z",Ẓ:"Z",Ẕ:"Z",Ƶ:"Z",Ȥ:"Z",Ɀ:"Z",Ⱬ:"Z",Ꝣ:"Z","ⓐ":"a",a:"a",ẚ:"a",à:"a",á:"a",â:"a",ầ:"a",ấ:"a",ẫ:"a",ẩ:"a",ã:"a",ā:"a",ă:"a",ằ:"a",ắ:"a",ẵ:"a",ẳ:"a",ȧ:"a",ǡ:"a",ä:"a",ǟ:"a",ả:"a",å:"a",ǻ:"a",ǎ:"a",ȁ:"a",ȃ:"a",ạ:"a",ậ:"a",ặ:"a",ḁ:"a",ą:"a",ⱥ:"a",ɐ:"a",ꜳ:"aa",æ:"ae",ǽ:"ae",ǣ:"ae",ꜵ:"ao",ꜷ:"au",ꜹ:"av",ꜻ:"av",ꜽ:"ay","ⓑ":"b",b:"b",ḃ:"b",ḅ:"b",ḇ:"b",ƀ:"b",ƃ:"b",ɓ:"b","ⓒ":"c",c:"c",ć:"c",ĉ:"c",ċ:"c",č:"c",ç:"c",ḉ:"c",ƈ:"c",ȼ:"c",ꜿ:"c",ↄ:"c","ⓓ":"d",d:"d",ḋ:"d",ď:"d",ḍ:"d",ḑ:"d",ḓ:"d",ḏ:"d",đ:"d",ƌ:"d",ɖ:"d",ɗ:"d",ꝺ:"d",dz:"dz",dž:"dz","ⓔ":"e",e:"e",è:"e",é:"e",ê:"e",ề:"e",ế:"e",ễ:"e",ể:"e",ẽ:"e",ē:"e",ḕ:"e",ḗ:"e",ĕ:"e",ė:"e",ë:"e",ẻ:"e",ě:"e",ȅ:"e",ȇ:"e",ẹ:"e",ệ:"e",ȩ:"e",ḝ:"e",ę:"e",ḙ:"e",ḛ:"e",ɇ:"e",ɛ:"e",ǝ:"e","ⓕ":"f",f:"f",ḟ:"f",ƒ:"f",ꝼ:"f","ⓖ":"g",g:"g",ǵ:"g",ĝ:"g",ḡ:"g",ğ:"g",ġ:"g",ǧ:"g",ģ:"g",ǥ:"g",ɠ:"g",ꞡ:"g",ᵹ:"g",ꝿ:"g","ⓗ":"h",h:"h",ĥ:"h",ḣ:"h",ḧ:"h",ȟ:"h",ḥ:"h",ḩ:"h",ḫ:"h",ẖ:"h",ħ:"h",ⱨ:"h",ⱶ:"h",ɥ:"h",ƕ:"hv","ⓘ":"i",i:"i",ì:"i",í:"i",î:"i",ĩ:"i",ī:"i",ĭ:"i",ï:"i",ḯ:"i",ỉ:"i",ǐ:"i",ȉ:"i",ȋ:"i",ị:"i",į:"i",ḭ:"i",ɨ:"i",ı:"i","ⓙ":"j",j:"j",ĵ:"j",ǰ:"j",ɉ:"j","ⓚ":"k",k:"k",ḱ:"k",ǩ:"k",ḳ:"k",ķ:"k",ḵ:"k",ƙ:"k",ⱪ:"k",ꝁ:"k",ꝃ:"k",ꝅ:"k",ꞣ:"k","ⓛ":"l",l:"l",ŀ:"l",ĺ:"l",ľ:"l",ḷ:"l",ḹ:"l",ļ:"l",ḽ:"l",ḻ:"l",ſ:"l",ł:"l",ƚ:"l",ɫ:"l",ⱡ:"l",ꝉ:"l",ꞁ:"l",ꝇ:"l",lj:"lj","ⓜ":"m",m:"m",ḿ:"m",ṁ:"m",ṃ:"m",ɱ:"m",ɯ:"m","ⓝ":"n",n:"n",ǹ:"n",ń:"n",ñ:"n",ṅ:"n",ň:"n",ṇ:"n",ņ:"n",ṋ:"n",ṉ:"n",ƞ:"n",ɲ:"n",ʼn:"n",ꞑ:"n",ꞥ:"n",nj:"nj","ⓞ":"o",o:"o",ò:"o",ó:"o",ô:"o",ồ:"o",ố:"o",ỗ:"o",ổ:"o",õ:"o",ṍ:"o",ȭ:"o",ṏ:"o",ō:"o",ṑ:"o",ṓ:"o",ŏ:"o",ȯ:"o",ȱ:"o",ö:"o",ȫ:"o",ỏ:"o",ő:"o",ǒ:"o",ȍ:"o",ȏ:"o",ơ:"o",ờ:"o",ớ:"o",ỡ:"o",ở:"o",ợ:"o",ọ:"o",ộ:"o",ǫ:"o",ǭ:"o",ø:"o",ǿ:"o",ɔ:"o",ꝋ:"o",ꝍ:"o",ɵ:"o",œ:"oe",ƣ:"oi",ȣ:"ou",ꝏ:"oo","ⓟ":"p",p:"p",ṕ:"p",ṗ:"p",ƥ:"p",ᵽ:"p",ꝑ:"p",ꝓ:"p",ꝕ:"p","ⓠ":"q",q:"q",ɋ:"q",ꝗ:"q",ꝙ:"q","ⓡ":"r",r:"r",ŕ:"r",ṙ:"r",ř:"r",ȑ:"r",ȓ:"r",ṛ:"r",ṝ:"r",ŗ:"r",ṟ:"r",ɍ:"r",ɽ:"r",ꝛ:"r",ꞧ:"r",ꞃ:"r","ⓢ":"s",s:"s",ß:"s",ś:"s",ṥ:"s",ŝ:"s",ṡ:"s",š:"s",ṧ:"s",ṣ:"s",ṩ:"s",ș:"s",ş:"s",ȿ:"s",ꞩ:"s",ꞅ:"s",ẛ:"s","ⓣ":"t",t:"t",ṫ:"t",ẗ:"t",ť:"t",ṭ:"t",ț:"t",ţ:"t",ṱ:"t",ṯ:"t",ŧ:"t",ƭ:"t",ʈ:"t",ⱦ:"t",ꞇ:"t",ꜩ:"tz","ⓤ":"u",u:"u",ù:"u",ú:"u",û:"u",ũ:"u",ṹ:"u",ū:"u",ṻ:"u",ŭ:"u",ü:"u",ǜ:"u",ǘ:"u",ǖ:"u",ǚ:"u",ủ:"u",ů:"u",ű:"u",ǔ:"u",ȕ:"u",ȗ:"u",ư:"u",ừ:"u",ứ:"u",ữ:"u",ử:"u",ự:"u",ụ:"u",ṳ:"u",ų:"u",ṷ:"u",ṵ:"u",ʉ:"u","ⓥ":"v",v:"v",ṽ:"v",ṿ:"v",ʋ:"v",ꝟ:"v",ʌ:"v",ꝡ:"vy","ⓦ":"w",w:"w",ẁ:"w",ẃ:"w",ŵ:"w",ẇ:"w",ẅ:"w",ẘ:"w",ẉ:"w",ⱳ:"w","ⓧ":"x",x:"x",ẋ:"x",ẍ:"x","ⓨ":"y",y:"y",ỳ:"y",ý:"y",ŷ:"y",ỹ:"y",ȳ:"y",ẏ:"y",ÿ:"y",ỷ:"y",ẙ:"y",ỵ:"y",ƴ:"y",ɏ:"y",ỿ:"y","ⓩ":"z",z:"z",ź:"z",ẑ:"z",ż:"z",ž:"z",ẓ:"z",ẕ:"z",ƶ:"z",ȥ:"z",ɀ:"z",ⱬ:"z",ꝣ:"z",Ά:"Α",Έ:"Ε",Ή:"Η",Ί:"Ι",Ϊ:"Ι",Ό:"Ο",Ύ:"Υ",Ϋ:"Υ",Ώ:"Ω",ά:"α",έ:"ε",ή:"η",ί:"ι",ϊ:"ι",ΐ:"ι",ό:"ο",ύ:"υ",ϋ:"υ",ΰ:"υ",ώ:"ω",ς:"σ","’":"'"}}),n.define("select2/data/base",["../utils"],function(e){function t(e,i){t.__super__.constructor.call(this)}return e.Extend(t,e.Observable),t.prototype.current=function(e){throw Error("The `current` method must be defined in child classes.")},t.prototype.query=function(e,t){throw Error("The `query` method must be defined in child classes.")},t.prototype.bind=function(e,t){},t.prototype.destroy=function(){},t.prototype.generateResultId=function(t,i){var a=t.id+"-result-";return a+=e.generateChars(4),null!=i.id?a+="-"+i.id.toString():a+="-"+e.generateChars(4),a},t}),n.define("select2/data/select",["./base","../utils","jquery"],function(e,t,i){function a(e,t){this.$element=e,this.options=t,a.__super__.constructor.call(this)}return t.Extend(a,e),a.prototype.current=function(e){var t=this;e(Array.prototype.map.call(this.$element[0].querySelectorAll(":checked"),function(e){return t.item(i(e))}))},a.prototype.select=function(e){var t=this;if(e.selected=!0,null!=e.element&&"option"===e.element.tagName.toLowerCase()){e.element.selected=!0,this.$element.trigger("input").trigger("change");return}if(this.$element[0].multiple)this.current(function(i){var a=[];(e=[e]).push.apply(e,i);for(var n=0;n<e.length;n++){var o=e[n].id;-1===a.indexOf(o)&&a.push(o)}t.$element.val(a),t.$element.trigger("input").trigger("change")});else{var i=e.id;this.$element.val(i),this.$element.trigger("input").trigger("change")}},a.prototype.unselect=function(e){var t=this;if(this.$element[0].multiple){if(e.selected=!1,null!=e.element&&"option"===e.element.tagName.toLowerCase()){e.element.selected=!1,this.$element.trigger("input").trigger("change");return}this.current(function(i){for(var a=[],n=0;n<i.length;n++){var o=i[n].id;o!==e.id&&-1===a.indexOf(o)&&a.push(o)}t.$element.val(a),t.$element.trigger("input").trigger("change")})}},a.prototype.bind=function(e,t){var i=this;this.container=e,e.on("select",function(e){i.select(e.data)}),e.on("unselect",function(e){i.unselect(e.data)})},a.prototype.destroy=function(){this.$element.find("*").each(function(){t.RemoveData(this)})},a.prototype.query=function(e,t){var a=[],n=this;this.$element.children().each(function(){if("option"===this.tagName.toLowerCase()||"optgroup"===this.tagName.toLowerCase()){var t=i(this),o=n.item(t),r=n.matches(e,o);null!==r&&a.push(r)}}),t({results:a})},a.prototype.addOptions=function(e){this.$element.append(e)},a.prototype.option=function(e){e.children?(a=document.createElement("optgroup")).label=e.text:void 0!==(a=document.createElement("option")).textContent?a.textContent=e.text:a.innerText=e.text,void 0!==e.id&&(a.value=e.id),e.disabled&&(a.disabled=!0),e.selected&&(a.selected=!0),e.title&&(a.title=e.title);var a,n=this._normalizeItem(e);return n.element=a,t.StoreData(a,"data",n),i(a)},a.prototype.item=function(e){var a={};if(null!=(a=t.GetData(e[0],"data")))return a;var n=e[0];if("option"===n.tagName.toLowerCase())a={id:e.val(),text:e.text(),disabled:e[0].disabled,selected:e[0].selected,title:e[0].title};else if("optgroup"===n.tagName.toLowerCase()){a={text:e[0].label,children:[],title:e[0].title};for(var o=e.children("option"),r=[],s=0;s<o.length;s++){var l=i(o[s]),c=this.item(l);r.push(c)}a.children=r}return(a=this._normalizeItem(a)).element=e[0],t.StoreData(e[0],"data",a),a},a.prototype._normalizeItem=function(e){return e!==Object(e)&&(e={id:e,text:e}),null!=(e=i.extend({},{text:""},e)).id&&(e.id=e.id.toString()),null!=e.text&&(e.text=e.text.toString()),null==e._resultId&&e.id&&null!=this.container&&(e._resultId=this.generateResultId(this.container,e)),e.children&&(e.children=e.children.map(a.prototype._normalizeItem)),i.extend({},{selected:!1,disabled:!1},e)},a.prototype.matches=function(e,t){return this.options.get("matcher")(e,t)},a}),n.define("select2/data/array",["./select","../utils","jquery"],function(e,t,i){function a(e,t){this._dataToConvert=t.get("data")||[],a.__super__.constructor.call(this,e,t)}return t.Extend(a,e),a.prototype.bind=function(e,t){a.__super__.bind.call(this,e,t),this.addOptions(this.convertToOptions(this._dataToConvert))},a.prototype.select=function(e){var t=this.$element.find("option").filter(function(t,i){return i.value==e.id.toString()});0===t.length&&(t=this.option(e),this.addOptions(t)),a.__super__.select.call(this,e)},a.prototype.convertToOptions=function(e){for(var t=this,a=this.$element.find("option"),n=a.map(function(){return t.item(i(this)).id}).get(),o=[],r=0;r<e.length;r++){var s=this._normalizeItem(e[r]);if(n.indexOf(s.id)>=0){var l=a.filter(function(e){return function(){return i(this).val()==e.id}}(s)),c=this.item(l),d=i.extend(!0,{},s,c),u=this.option(d);l.replaceWith(u);continue}var p=this.option(s);if(s.children){var h=this.convertToOptions(s.children);p.append(h)}o.push(p)}return o},a}),n.define("select2/data/ajax",["./array","../utils","jquery"],function(e,t,i){function a(e,t){this.ajaxOptions=this._applyDefaults(t.get("ajax")),null!=this.ajaxOptions.processResults&&(this.processResults=this.ajaxOptions.processResults),a.__super__.constructor.call(this,e,t)}return t.Extend(a,e),a.prototype._applyDefaults=function(e){return i.extend({},{data:function(e){return i.extend({},e,{q:e.term})},transport:function(e,t,a){var n=i.ajax(e);return n.then(t),n.fail(a),n}},e,!0)},a.prototype.processResults=function(e){return e},a.prototype.query=function(e,t){var n=this;null!=this._request&&("function"==typeof this._request.abort&&this._request.abort(),this._request=null);var o=i.extend({type:"GET"},this.ajaxOptions);function r(){var i=o.transport(o,function(i){var o=n.processResults(i,e);o&&o.results&&Array.isArray(o.results)?o.results=o.results.map(a.prototype._normalizeItem):n.options.get("debug")&&window.console&&console.error&&console.error("Select2: The AJAX results did not return an array in the `results` key of the response."),t(o)},function(){i&&"status"in i&&(0===i.status||"0"===i.status)||n.trigger("results:message",{message:"errorLoading"})});n._request=i}"function"==typeof o.url&&(o.url=o.url.call(this.$element,e)),"function"==typeof o.data&&(o.data=o.data.call(this.$element,e)),this.ajaxOptions.delay&&null!=e.term?(this._queryTimeout&&window.clearTimeout(this._queryTimeout),this._queryTimeout=window.setTimeout(r,this.ajaxOptions.delay)):r()},a}),n.define("select2/data/tags",["jquery"],function(e){function t(e,t,i){var a=i.get("tags"),n=i.get("createTag");void 0!==n&&(this.createTag=n);var o=i.get("insertTag");if(void 0!==o&&(this.insertTag=o),e.call(this,t,i),Array.isArray(a))for(var r=0;r<a.length;r++){var s=a[r],l=this._normalizeItem(s),c=this.option(l);this.$element.append(c)}}return t.prototype.query=function(e,t,i){var a=this;(this._removeOldTags(),null==t.term||null!=t.page)?e.call(this,t,i):e.call(this,t,function e(n,o){for(var r=n.results,s=0;s<r.length;s++){var l=r[s],c=null!=l.children&&!e({results:l.children},!0);if((l.text||"").toUpperCase()===(t.term||"").toUpperCase()||c){if(o)return!1;n.data=r,i(n);return}}if(o)return!0;var d=a.createTag(t);if(null!=d){var u=a.option(d);u[0].setAttribute("data-select2-tag","true"),a.addOptions([u]),a.insertTag(r,d)}n.results=r,i(n)})},t.prototype.createTag=function(e,t){if(null==t.term)return null;var i=t.term.trim();return""===i?null:{id:i,text:i}},t.prototype.insertTag=function(e,t,i){t.unshift(i)},t.prototype._removeOldTags=function(t){this.$element.find("option[data-select2-tag]").each(function(){this.selected||e(this).remove()})},t}),n.define("select2/data/tokenizer",["jquery"],function(e){function t(e,t,i){var a=i.get("tokenizer");void 0!==a&&(this.tokenizer=a),e.call(this,t,i)}return t.prototype.bind=function(e,t,i){e.call(this,t,i),this.$search=t.dropdown.$search||t.selection.$search||i.find(".select2-search__field")},t.prototype.query=function(t,i,a){var n=this;i.term=i.term||"";var o=this.tokenizer(i,this.options,function(t){var i,a=n._normalizeItem(t);if(!n.$element.find("option").filter(function(){return e(this).val()===a.id}).length){var o=n.option(a);o[0].setAttribute("data-select2-tag",!0),n._removeOldTags(),n.addOptions([o])}i=a,n.trigger("select",{data:i})});o.term!==i.term&&(this.$search.length&&(this.$search.val(o.term),this.$search.trigger("focus")),i.term=o.term),t.call(this,i,a)},t.prototype.tokenizer=function(t,i,a,n){for(var o=a.get("tokenSeparators")||[],r=i.term,s=0,l=this.createTag||function(e){return{id:e.term,text:e.term}};s<r.length;){var c=r[s];if(-1===o.indexOf(c)){s++;continue}var d=r.substr(0,s),u=l(e.extend({},i,{term:d}));if(null==u){s++;continue}n(u),r=r.substr(s+1)||"",s=0}return{term:r}},t}),n.define("select2/data/minimumInputLength",[],function(){function e(e,t,i){this.minimumInputLength=i.get("minimumInputLength"),e.call(this,t,i)}return e.prototype.query=function(e,t,i){(t.term=t.term||"",t.term.length<this.minimumInputLength)?this.trigger("results:message",{message:"inputTooShort",args:{minimum:this.minimumInputLength,input:t.term,params:t}}):e.call(this,t,i)},e}),n.define("select2/data/maximumInputLength",[],function(){function e(e,t,i){this.maximumInputLength=i.get("maximumInputLength"),e.call(this,t,i)}return e.prototype.query=function(e,t,i){(t.term=t.term||"",this.maximumInputLength>0&&t.term.length>this.maximumInputLength)?this.trigger("results:message",{message:"inputTooLong",args:{maximum:this.maximumInputLength,input:t.term,params:t}}):e.call(this,t,i)},e}),n.define("select2/data/maximumSelectionLength",[],function(){function e(e,t,i){this.maximumSelectionLength=i.get("maximumSelectionLength"),e.call(this,t,i)}return e.prototype.bind=function(e,t,i){var a=this;e.call(this,t,i),t.on("select",function(){a._checkIfMaximumSelected()})},e.prototype.query=function(e,t,i){var a=this;this._checkIfMaximumSelected(function(){e.call(a,t,i)})},e.prototype._checkIfMaximumSelected=function(e,t){var i=this;this.current(function(e){var a=null!=e?e.length:0;i.maximumSelectionLength>0&&a>=i.maximumSelectionLength?i.trigger("results:message",{message:"maximumSelected",args:{maximum:i.maximumSelectionLength}}):t&&t()})},e}),n.define("select2/dropdown",["jquery","./utils"],function(e,t){function i(e,t){this.$element=e,this.options=t,i.__super__.constructor.call(this)}return t.Extend(i,t.Observable),i.prototype.render=function(){var t=e('<span class="select2-dropdown"><span class="select2-results"></span></span>');return t[0].setAttribute("dir",this.options.get("dir")),this.$dropdown=t,t},i.prototype.bind=function(){},i.prototype.position=function(e,t){},i.prototype.destroy=function(){this.$dropdown.remove()},i}),n.define("select2/dropdown/search",["jquery"],function(e){function t(){}return t.prototype.render=function(t){var i=t.call(this),a=this.options.get("translations").get("search"),n=e('<span class="select2-search select2-search--dropdown"><input class="select2-search__field" type="search" tabindex="-1" autocorrect="off" autocapitalize="none" spellcheck="false" role="searchbox" aria-autocomplete="list" /></span>');return this.$searchContainer=n,this.$search=n.find("input"),this.$search[0].autocomplete=this.options.get("autocomplete"),this.$search[0].setAttribute("aria-label",a()),i.prepend(n),i},t.prototype.bind=function(t,i,a){var n=this,o=i.id+"-results";t.call(this,i,a),this.$search.on("keydown",function(e){n.trigger("keypress",e),n._keyUpPrevented=e.isDefaultPrevented()}),this.$search.on("input",function(t){e(this).off("keyup")}),this.$search.on("keyup input",function(e){n.handleSearch(e)}),i.on("open",function(){n.$search[0].setAttribute("tabindex",0),n.$search[0].setAttribute("aria-controls",o),n.$search.trigger("focus"),window.setTimeout(function(){n.$search.trigger("focus")},0)}),i.on("close",function(){n.$search[0].setAttribute("tabindex",-1),n.$search[0].removeAttribute("aria-controls"),n.$search[0].removeAttribute("aria-activedescendant"),n.$search.val(""),n.$search.trigger("blur")}),i.on("focus",function(){i.isOpen()||n.$search.trigger("focus")}),i.on("results:all",function(e){(null==e.query.term||""===e.query.term)&&(n.showSearch(e)?n.$searchContainer[0].classList.remove("select2-search--hide"):n.$searchContainer[0].classList.add("select2-search--hide"))}),i.on("results:focus",function(e){e.data._resultId?n.$search[0].setAttribute("aria-activedescendant",e.data._resultId):n.$search[0].removeAttribute("aria-activedescendant")})},t.prototype.handleSearch=function(e){if(!this._keyUpPrevented){var t=this.$search.val();this.trigger("query",{term:t})}this._keyUpPrevented=!1},t.prototype.showSearch=function(e,t){return!0},t}),n.define("select2/dropdown/hidePlaceholder",[],function(){function e(e,t,i,a){this.placeholder=this.normalizePlaceholder(i.get("placeholder")),e.call(this,t,i,a)}return e.prototype.append=function(e,t){t.results=this.removePlaceholder(t.results),e.call(this,t)},e.prototype.normalizePlaceholder=function(e,t){return"object"!=typeof t&&(t={id:"",text:t}),t},e.prototype.removePlaceholder=function(e,t){for(var i=t.slice(0),a=t.length-1;a>=0;a--){var n=t[a];this.placeholder.id===n.id&&i.splice(a,1)}return i},e}),n.define("select2/dropdown/infiniteScroll",["jquery"],function(e){function t(e,t,i,a){this.lastParams={},e.call(this,t,i,a),this.$loadingMore=this.createLoadingMore(),this.loading=!1}return t.prototype.append=function(e,t){this.$loadingMore.remove(),this.loading=!1,e.call(this,t),this.showLoadingMore(t)&&(this.$results.append(this.$loadingMore),this.loadMoreIfNeeded())},t.prototype.bind=function(e,t,i){var a=this;e.call(this,t,i),t.on("query",function(e){a.lastParams=e,a.loading=!0}),t.on("query:append",function(e){a.lastParams=e,a.loading=!0}),this.$results.on("scroll",this.loadMoreIfNeeded.bind(this))},t.prototype.loadMoreIfNeeded=function(){var t=e.contains(document.documentElement,this.$loadingMore[0]);!this.loading&&t&&this.$results.offset().top+this.$results.outerHeight(!1)+50>=this.$loadingMore.offset().top+this.$loadingMore.outerHeight(!1)&&this.loadMore()},t.prototype.loadMore=function(){this.loading=!0;var t=e.extend({},{page:1},this.lastParams);t.page++,this.trigger("query:append",t)},t.prototype.showLoadingMore=function(e,t){return t.pagination&&t.pagination.more},t.prototype.createLoadingMore=function(){var t=e('<li class="select2-results__option select2-results__option--load-more"role="option" aria-disabled="true"></li>'),i=this.options.get("translations").get("loadingMore");return t.html(i(this.lastParams)),t},t}),n.define("select2/dropdown/attachBody",["jquery","../utils"],function(e,t){function i(t,i,a){this.$dropdownParent=e(a.get("dropdownParent")||document.body),t.call(this,i,a)}return i.prototype.bind=function(e,t,i){var a=this;e.call(this,t,i),t.on("open",function(){a._showDropdown(),a._attachPositioningHandler(t),a._bindContainerResultHandlers(t)}),t.on("close",function(){a._hideDropdown(),a._detachPositioningHandler(t)}),this.$dropdownContainer.on("mousedown",function(e){e.stopPropagation()})},i.prototype.destroy=function(e){e.call(this),this.$dropdownContainer.remove()},i.prototype.position=function(e,t,i){t[0].setAttribute("class",i[0].getAttribute("class")),t[0].classList.remove("select2"),t[0].classList.add("select2-container--open"),t.css({position:"absolute",top:-999999}),this.$container=i},i.prototype.render=function(t){var i=e("<span></span>"),a=t.call(this);return i.append(a),this.$dropdownContainer=i,i},i.prototype._hideDropdown=function(e){this.$dropdownContainer.detach()},i.prototype._bindContainerResultHandlers=function(e,t){if(!this._containerResultsHandlersBound){var i=this;t.on("results:all",function(){i._positionDropdown(),i._resizeDropdown()}),t.on("results:append",function(){i._positionDropdown(),i._resizeDropdown()}),t.on("results:message",function(){i._positionDropdown(),i._resizeDropdown()}),t.on("select",function(){i._positionDropdown(),i._resizeDropdown()}),t.on("unselect",function(){i._positionDropdown(),i._resizeDropdown()}),this._containerResultsHandlersBound=!0}},i.prototype._attachPositioningHandler=function(i,a){var n=this,o="scroll.select2."+a.id,r="resize.select2."+a.id,s="orientationchange.select2."+a.id,l=this.$container.parents().filter(t.hasScroll);l.each(function(){t.StoreData(this,"select2-scroll-position",{x:e(this).scrollLeft(),y:e(this).scrollTop()})}),l.on(o,function(i){var a=t.GetData(this,"select2-scroll-position");e(this).scrollTop(a.y)}),e(window).on(o+" "+r+" "+s,function(e){n._positionDropdown(),n._resizeDropdown()})},i.prototype._detachPositioningHandler=function(i,a){var n="scroll.select2."+a.id,o="resize.select2."+a.id,r="orientationchange.select2."+a.id;this.$container.parents().filter(t.hasScroll).off(n),e(window).off(n+" "+o+" "+r)},i.prototype._positionDropdown=function(){var t=e(window),i=this.$dropdown[0].classList.contains("select2-dropdown--above"),a=this.$dropdown[0].classList.contains("select2-dropdown--below"),n=null,o=this.$container.offset();o.bottom=o.top+this.$container.outerHeight(!1);var r={height:this.$container.outerHeight(!1)};r.top=o.top,r.bottom=o.top+r.height;var s={height:this.$dropdown.outerHeight(!1)},l={top:t.scrollTop(),bottom:t.scrollTop()+t.height()},c=l.top<o.top-s.height,d=l.bottom>o.bottom+s.height,u={left:o.left,top:r.bottom},p=this.$dropdownParent;"static"===p.css("position")&&(p=p.offsetParent());var h={top:0,left:0};(e.contains(document.body,p[0])||p[0].isConnected)&&(h=p.offset()),u.top-=h.top,u.left-=h.left,i||a||(n="below"),d||!c||i?!c&&d&&i&&(n="below"):n="above",("above"==n||i&&"below"!==n)&&(u.top=r.top-h.top-s.height),null!=n&&(this.$dropdown[0].classList.remove("select2-dropdown--below"),this.$dropdown[0].classList.remove("select2-dropdown--above"),this.$dropdown[0].classList.add("select2-dropdown--"+n),this.$container[0].classList.remove("select2-container--below"),this.$container[0].classList.remove("select2-container--above"),this.$container[0].classList.add("select2-container--"+n)),this.$dropdownContainer.css(u)},i.prototype._resizeDropdown=function(){var e={width:this.$container.outerWidth(!1)+"px"};this.options.get("dropdownAutoWidth")&&(e.minWidth=e.width,e.position="relative",e.width="auto"),this.$dropdown.css(e)},i.prototype._showDropdown=function(e){this.$dropdownContainer.appendTo(this.$dropdownParent),this._positionDropdown(),this._resizeDropdown()},i}),n.define("select2/dropdown/minimumResultsForSearch",[],function(){function e(e,t,i,a){this.minimumResultsForSearch=i.get("minimumResultsForSearch"),this.minimumResultsForSearch<0&&(this.minimumResultsForSearch=1/0),e.call(this,t,i,a)}return e.prototype.showSearch=function(e,t){return!(function e(t){for(var i=0,a=0;a<t.length;a++){var n=t[a];n.children?i+=e(n.children):i++}return i}(t.data.results)<this.minimumResultsForSearch)&&e.call(this,t)},e}),n.define("select2/dropdown/selectOnClose",["../utils"],function(e){function t(){}return t.prototype.bind=function(e,t,i){var a=this;e.call(this,t,i),t.on("close",function(e){a._handleSelectOnClose(e)})},t.prototype._handleSelectOnClose=function(t,i){if(i&&null!=i.originalSelect2Event){var a=i.originalSelect2Event;if("select"===a._type||"unselect"===a._type)return}var n=this.getHighlightedResults();if(!(n.length<1)){var o=e.GetData(n[0],"data");null!=o.element&&o.element.selected||null==o.element&&o.selected||this.trigger("select",{data:o})}},t}),n.define("select2/dropdown/closeOnSelect",[],function(){function e(){}return e.prototype.bind=function(e,t,i){var a=this;e.call(this,t,i),t.on("select",function(e){a._selectTriggered(e)}),t.on("unselect",function(e){a._selectTriggered(e)})},e.prototype._selectTriggered=function(e,t){var i=t.originalEvent;i&&(i.ctrlKey||i.metaKey)||this.trigger("close",{originalEvent:i,originalSelect2Event:t})},e}),n.define("select2/dropdown/dropdownCss",["../utils"],function(e){function t(){}return t.prototype.render=function(t){var i=t.call(this),a=this.options.get("dropdownCssClass")||"";return -1!==a.indexOf(":all:")&&(a=a.replace(":all:",""),e.copyNonInternalCssClasses(i[0],this.$element[0])),a.trim().split(" ").forEach(function(e){e.length>0&&i[0].classList.add(e)}),i},t}),n.define("select2/dropdown/tagsSearchHighlight",["../utils"],function(e){function t(){}return t.prototype.highlightFirstItem=function(t){var i=this.$results.find(".select2-results__option--selectable:not(.select2-results__option--selected)");if(i.length>0){var a=i.first(),n=e.GetData(a[0],"data").element;if(n&&n.getAttribute&&"true"===n.getAttribute("data-select2-tag"))return void a.trigger("mouseenter")}t.call(this)},t}),n.define("select2/i18n/en",[],function(){return{errorLoading:function(){return"The results could not be loaded."},inputTooLong:function(e){var t=e.input.length-e.maximum,i="Please delete "+t+" character";return 1!=t&&(i+="s"),i},inputTooShort:function(e){return"Please enter "+(e.minimum-e.input.length)+" or more characters"},loadingMore:function(){return"Loading more results…"},maximumSelected:function(e){var t="You can only select "+e.maximum+" item";return 1!=e.maximum&&(t+="s"),t},noResults:function(){return"No results found"},searching:function(){return"Searching…"},removeAllItems:function(){return"Remove all items"},removeItem:function(){return"Remove item"},search:function(){return"Search"}}}),n.define("select2/defaults",["jquery","./results","./selection/single","./selection/multiple","./selection/placeholder","./selection/allowClear","./selection/search","./selection/selectionCss","./selection/eventRelay","./utils","./translation","./diacritics","./data/select","./data/array","./data/ajax","./data/tags","./data/tokenizer","./data/minimumInputLength","./data/maximumInputLength","./data/maximumSelectionLength","./dropdown","./dropdown/search","./dropdown/hidePlaceholder","./dropdown/infiniteScroll","./dropdown/attachBody","./dropdown/minimumResultsForSearch","./dropdown/selectOnClose","./dropdown/closeOnSelect","./dropdown/dropdownCss","./dropdown/tagsSearchHighlight","./i18n/en"],function(e,t,i,a,n,o,r,s,l,c,d,u,p,h,g,m,f,y,b,v,_,w,x,k,E,S,C,T,I,D,A){function O(){this.reset()}return O.prototype.apply=function(d){if(null==(d=e.extend(!0,{},this.defaults,d)).dataAdapter&&(null!=d.ajax?d.dataAdapter=g:null!=d.data?d.dataAdapter=h:d.dataAdapter=p,d.minimumInputLength>0&&(d.dataAdapter=c.Decorate(d.dataAdapter,y)),d.maximumInputLength>0&&(d.dataAdapter=c.Decorate(d.dataAdapter,b)),d.maximumSelectionLength>0&&(d.dataAdapter=c.Decorate(d.dataAdapter,v)),d.tags&&(d.dataAdapter=c.Decorate(d.dataAdapter,m)),(null!=d.tokenSeparators||null!=d.tokenizer)&&(d.dataAdapter=c.Decorate(d.dataAdapter,f))),null==d.resultsAdapter&&(d.resultsAdapter=t,null!=d.ajax&&(d.resultsAdapter=c.Decorate(d.resultsAdapter,k)),null!=d.placeholder&&(d.resultsAdapter=c.Decorate(d.resultsAdapter,x)),d.selectOnClose&&(d.resultsAdapter=c.Decorate(d.resultsAdapter,C)),d.tags&&(d.resultsAdapter=c.Decorate(d.resultsAdapter,D))),null==d.dropdownAdapter){if(d.multiple)d.dropdownAdapter=_;else{var u=c.Decorate(_,w);d.dropdownAdapter=u}0!==d.minimumResultsForSearch&&(d.dropdownAdapter=c.Decorate(d.dropdownAdapter,S)),d.closeOnSelect&&(d.dropdownAdapter=c.Decorate(d.dropdownAdapter,T)),null!=d.dropdownCssClass&&(d.dropdownAdapter=c.Decorate(d.dropdownAdapter,I)),d.dropdownAdapter=c.Decorate(d.dropdownAdapter,E)}null==d.selectionAdapter&&(d.multiple?d.selectionAdapter=a:d.selectionAdapter=i,null!=d.placeholder&&(d.selectionAdapter=c.Decorate(d.selectionAdapter,n)),d.allowClear&&(d.selectionAdapter=c.Decorate(d.selectionAdapter,o)),d.multiple&&(d.selectionAdapter=c.Decorate(d.selectionAdapter,r)),null!=d.selectionCssClass&&(d.selectionAdapter=c.Decorate(d.selectionAdapter,s)),d.selectionAdapter=c.Decorate(d.selectionAdapter,l)),d.language=this._resolveLanguage(d.language),d.language.push("en");for(var A=[],O=0;O<d.language.length;O++){var R=d.language[O];-1===A.indexOf(R)&&A.push(R)}return d.language=A,d.translations=this._processTranslations(d.language,d.debug),d},O.prototype.reset=function(){function t(e){return e.replace(/[^\u0000-\u007E]/g,function(e){return u[e]||e})}this.defaults={amdLanguageBase:"./i18n/",autocomplete:"off",closeOnSelect:!0,debug:!1,dropdownAutoWidth:!1,escapeMarkup:c.escapeMarkup,language:{},matcher:function i(a,n){if(null==a.term||""===a.term.trim())return n;if(n.children&&n.children.length>0){for(var o=e.extend(!0,{},n),r=n.children.length-1;r>=0;r--)null==i(a,n.children[r])&&o.children.splice(r,1);return o.children.length>0?o:i(a,o)}var s=t(n.text).toUpperCase(),l=t(a.term).toUpperCase();return s.indexOf(l)>-1?n:null},minimumInputLength:0,maximumInputLength:0,maximumSelectionLength:0,minimumResultsForSearch:0,selectOnClose:!1,scrollAfterSelect:!1,sorter:function(e){return e},templateResult:function(e){return e.text},templateSelection:function(e){return e.text},theme:"default",width:"resolve"}},O.prototype.applyFromElement=function(e,t){var i=e.language,a=this.defaults.language,n=t[0].lang,o=t.closest("[lang]"),r=o[0]?o[0].lang:null;return e.language=Array.prototype.concat.call(this._resolveLanguage(n),this._resolveLanguage(i),this._resolveLanguage(a),this._resolveLanguage(r)),e},O.prototype._resolveLanguage=function(t){if(!t||e.isEmptyObject(t))return[];if(e.isPlainObject(t))return[t];for(var i=Array.isArray(t)?t:[t],a=[],n=0;n<i.length;n++)if(a.push(i[n]),"string"==typeof i[n]&&i[n].indexOf("-")>0){var o=i[n].split("-")[0];a.push(o)}return a},O.prototype._processTranslations=function(t,i){for(var a=new d,n=0;n<t.length;n++){var o=new d,r=t[n];if("string"==typeof r)try{o=d.loadPath(r)}catch{try{r=this.defaults.amdLanguageBase+r,o=d.loadPath(r)}catch{i&&window.console&&console.warn&&console.warn('Select2: The language file for "'+r+'" could not be automatically loaded. A fallback will be used instead.')}}else o=e.isPlainObject(r)?new d(r):r;a.extend(o)}return a},O.prototype.set=function(t,i){var a=t.replace(/-([a-z])/g,function(e,t){return t.toUpperCase()}),n={};n[a]=i;var o=c._convertData(n);e.extend(!0,this.defaults,o)},new O}),n.define("select2/options",["jquery","./defaults","./utils"],function(e,t,i){function a(e,i){this.options=e,null!=i&&this.fromElement(i),null!=i&&(this.options=t.applyFromElement(this.options,i)),this.options=t.apply(this.options)}return a.prototype.fromElement=function(t){var a=["select2"];if(null==this.options.multiple&&(this.options.multiple=t[0].multiple),null==this.options.disabled&&(this.options.disabled=t[0].disabled),null==this.options.autocomplete&&t[0].autocomplete&&(this.options.autocomplete=t[0].autocomplete),null===this.options.dir){var n=t[0].getAttribute("dir");if(n)this.options.dir=n;else{var o=t.closest("[dir]").getAttribute("dir");o?this.options.dir=o:this.options.dir="ltr"}}t[0].disabled=this.options.disabled,t[0].multiple=this.options.multiple,i.GetData(t[0],"select2Tags")&&(this.options.debug&&window.console&&console.warn&&console.warn('Select2: The `data-select2-tags` attribute has been changed to use the `data-data` and `data-tags="true"` attributes and will be removed in future versions of Select2.'),i.StoreData(t[0],"data",i.GetData(t[0],"select2Tags")),i.StoreData(t[0],"tags",!0)),i.GetData(t[0],"ajaxUrl")&&(this.options.debug&&window.console&&console.warn&&console.warn("Select2: The `data-ajax-url` attribute has been changed to `data-ajax--url` and support for the old attribute will be removed in future versions of Select2."),t[0].setAttribute("ajax--url",i.GetData(t[0],"ajaxUrl")),i.StoreData(t[0],"ajax-Url",i.GetData(t[0],"ajaxUrl")));var r={};function s(e,t){return t.toUpperCase()}for(var l=0;l<t[0].attributes.length;l++){var c=t[0].attributes[l].name,d="data-";if(c.substr(0,d.length)==d){var u=c.substring(d.length),p=i.GetData(t[0],u);r[u.replace(/-([a-z])/g,s)]=p}}e.fn.jquery&&"1."==e.fn.jquery.substr(0,2)&&t[0].dataset&&(r=e.extend(!0,{},t[0].dataset,r));var h=e.extend(!0,{},i.GetData(t[0]),r);for(var g in h=i._convertData(h))a.indexOf(g)>-1||(e.isPlainObject(this.options[g])?e.extend(this.options[g],h[g]):this.options[g]=h[g]);return this},a.prototype.get=function(e){return this.options[e]},a.prototype.set=function(e,t){this.options[e]=t},a}),n.define("select2/core",["jquery","./options","./utils","./keys"],function(e,t,i,a){var n=function(e,a){null!=i.GetData(e[0],"select2")&&i.GetData(e[0],"select2").destroy(),this.$element=e,this.id=this._generateId(e),a=a||{},this.options=new t(a,e),n.__super__.constructor.call(this);var o=e[0].getAttribute("tabindex")||0;i.StoreData(e[0],"old-tabindex",o),e[0].setAttribute("tabindex","-1");var r=this.options.get("dataAdapter");this.dataAdapter=new r(e,this.options);var s=this.render();this._placeContainer(s);var l=this.options.get("selectionAdapter");this.selection=new l(e,this.options),this.$selection=this.selection.render(),this.selection.position(this.$selection,s);var c=this.options.get("dropdownAdapter");this.dropdown=new c(e,this.options),this.$dropdown=this.dropdown.render(),this.dropdown.position(this.$dropdown,s);var d=this.options.get("resultsAdapter");this.results=new d(e,this.options,this.dataAdapter),this.$results=this.results.render(),this.results.position(this.$results,this.$dropdown);var u=this;this._bindAdapters(),this._registerDomEvents(),this._registerDataEvents(),this._registerSelectionEvents(),this._registerDropdownEvents(),this._registerResultsEvents(),this._registerEvents(),this.dataAdapter.current(function(e){u.trigger("selection:update",{data:e})}),e[0].classList.add("select2-hidden-accessible"),e[0].setAttribute("aria-hidden","true"),this._syncAttributes(),i.StoreData(e[0],"select2",this),e.data("select2",this)};return i.Extend(n,i.Observable),n.prototype._generateId=function(e){var t=e[0];return"select2-"+(null!=t&&null!=t.getAttribute("id")?t.getAttribute("id"):null!=t&&null!=t.getAttribute("name")?t.getAttribute("name")+"-"+i.generateChars(2):i.generateChars(4)).replace(/(:|\.|\[|\]|,)/g,"")},n.prototype._placeContainer=function(e){e.insertAfter(this.$element);var t=this._resolveWidth(this.$element,this.options.get("width"));null!=t&&e.css("width",t)},n.prototype._resolveWidth=function(e,t){var i=/^width:(([-+]?([0-9]*\.)?[0-9]+)(px|em|ex|%|in|cm|mm|pt|pc))/i;if("resolve"==t){var a=this._resolveWidth(e,"style");return null!=a?a:this._resolveWidth(e,"element")}if("element"==t){var n=e.outerWidth(!1);return n<=0?"auto":n+"px"}if("style"==t){var o=e[0].getAttribute("style");if("string"!=typeof o)return null;for(var r=o.split(";"),s=0,l=r.length;s<l;s+=1){var c=r[s].replace(/\s/g,"").match(i);if(null!==c&&c.length>=1)return c[1]}return null}return"computedstyle"==t?window.getComputedStyle(e[0]).width:t},n.prototype._bindAdapters=function(){this.dataAdapter.bind(this,this.$container),this.selection.bind(this,this.$container),this.dropdown.bind(this,this.$container),this.results.bind(this,this.$container)},n.prototype._registerDomEvents=function(){var e=this;this.$element.on("change.select2",function(){e.dataAdapter.current(function(t){e.trigger("selection:update",{data:t})})}),this.$element.on("focus.select2",function(t){e.trigger("focus",t)}),this._syncA=i.bind(this._syncAttributes,this),this._syncS=i.bind(this._syncSubtree,this),this._observer=new window.MutationObserver(function(t){e._syncA(),e._syncS(t)}),this._observer.observe(this.$element[0],{attributes:!0,childList:!0,subtree:!1})},n.prototype._registerDataEvents=function(){var e=this;this.dataAdapter.on("*",function(t,i){e.trigger(t,i)})},n.prototype._registerSelectionEvents=function(){var e=this,t=["toggle","focus"];this.selection.on("toggle",function(){e.toggleDropdown()}),this.selection.on("focus",function(t){e.focus(t)}),this.selection.on("*",function(i,a){-1===t.indexOf(i)&&e.trigger(i,a)})},n.prototype._registerDropdownEvents=function(){var e=this;this.dropdown.on("*",function(t,i){e.trigger(t,i)})},n.prototype._registerResultsEvents=function(){var e=this;this.results.on("*",function(t,i){e.trigger(t,i)})},n.prototype._registerEvents=function(){var e=this;this.on("open",function(){e.$container[0].classList.add("select2-container--open")}),this.on("close",function(){e.$container[0].classList.remove("select2-container--open")}),this.on("enable",function(){e.$container[0].classList.remove("select2-container--disabled")}),this.on("disable",function(){e.$container[0].classList.add("select2-container--disabled")}),this.on("blur",function(){e.$container[0].classList.remove("select2-container--focus")}),this.on("query",function(t){e.isOpen()||e.trigger("open",{}),this.dataAdapter.query(t,function(i){e.trigger("results:all",{data:i,query:t})})}),this.on("query:append",function(t){this.dataAdapter.query(t,function(i){e.trigger("results:append",{data:i,query:t})})}),this.on("keypress",function(t){var i=t.which;e.isOpen()?i===a.ESC||i===a.UP&&t.altKey?(e.close(t),t.preventDefault()):i===a.ENTER||i===a.TAB?(e.trigger("results:select",{}),t.preventDefault()):i===a.SPACE&&t.ctrlKey?(e.trigger("results:toggle",{}),t.preventDefault()):i===a.UP?(e.trigger("results:previous",{}),t.preventDefault()):i===a.DOWN&&(e.trigger("results:next",{}),t.preventDefault()):(i===a.ENTER||i===a.SPACE||i===a.DOWN&&t.altKey)&&(e.open(),t.preventDefault())})},n.prototype._syncAttributes=function(){this.options.set("disabled",this.$element[0].disabled),this.isDisabled()?(this.isOpen()&&this.close(),this.trigger("disable",{})):this.trigger("enable",{})},n.prototype._isChangeMutation=function(e){var t=this;if(e.addedNodes&&e.addedNodes.length>0){for(var i=0;i<e.addedNodes.length;i++)if(e.addedNodes[i].selected)return!0}else if(e.removedNodes&&e.removedNodes.length>0)return!0;else if(Array.isArray(e))return e.some(function(e){return t._isChangeMutation(e)});return!1},n.prototype._syncSubtree=function(e){var t=this._isChangeMutation(e),i=this;t&&this.dataAdapter.current(function(e){i.trigger("selection:update",{data:e})})},n.prototype.trigger=function(e,t){var i=n.__super__.trigger,a={open:"opening",close:"closing",select:"selecting",unselect:"unselecting",clear:"clearing"};if(void 0===t&&(t={}),e in a){var o=a[e],r={prevented:!1,name:e,args:t};if(i.call(this,o,r),r.prevented){t.prevented=!0;return}}i.call(this,e,t)},n.prototype.toggleDropdown=function(){this.isDisabled()||(this.isOpen()?this.close():this.open())},n.prototype.open=function(){this.isOpen()||this.isDisabled()||this.trigger("query",{})},n.prototype.close=function(e){this.isOpen()&&this.trigger("close",{originalEvent:e})},n.prototype.isEnabled=function(){return!this.isDisabled()},n.prototype.isDisabled=function(){return this.options.get("disabled")},n.prototype.isOpen=function(){return this.$container[0].classList.contains("select2-container--open")},n.prototype.hasFocus=function(){return this.$container[0].classList.contains("select2-container--focus")},n.prototype.focus=function(e){this.hasFocus()||(this.$container[0].classList.add("select2-container--focus"),this.trigger("focus",{}))},n.prototype.enable=function(e){this.options.get("debug")&&window.console&&console.warn&&console.warn('Select2: The `select2("enable")` method has been deprecated and will be removed in later Select2 versions. Use $element[0].disabled instead.'),(null==e||0===e.length)&&(e=[!0]);var t=!e[0];this.$element[0].disabled=t},n.prototype.data=function(){this.options.get("debug")&&arguments.length>0&&window.console&&console.warn&&console.warn('Select2: Data can no longer be set using `select2("data")`. You should consider setting the value instead using `$element.val()`.');var e=[];return this.dataAdapter.current(function(t){e=t}),e},n.prototype.val=function(e){if(this.options.get("debug")&&window.console&&console.warn&&console.warn('Select2: The `select2("val")` method has been deprecated and will be removed in later Select2 versions. Use $element.val() instead.'),null==e||0===e.length)return this.$element.val();var t=e[0];Array.isArray(t)&&(t=t.map(function(e){return e.toString()})),this.$element.val(t).trigger("input").trigger("change")},n.prototype.destroy=function(){i.RemoveData(this.$container[0]),this.$container.remove(),this._observer.disconnect(),this._observer=null,this._syncA=null,this._syncS=null,this.$element.off(".select2"),this.$element[0].setAttribute("tabindex",i.GetData(this.$element[0],"old-tabindex")),this.$element[0].classList.remove("select2-hidden-accessible"),this.$element[0].setAttribute("aria-hidden","false"),i.RemoveData(this.$element[0]),this.$element.removeData("select2"),this.dataAdapter.destroy(),this.selection.destroy(),this.dropdown.destroy(),this.results.destroy(),this.dataAdapter=null,this.selection=null,this.dropdown=null,this.results=null},n.prototype.render=function(){var t=e('<span class="select2 select2-container"><span class="selection"></span><span class="dropdown-wrapper" aria-hidden="true"></span></span>');return t[0].setAttribute("dir",this.options.get("dir")),this.$container=t,this.$container[0].classList.add("select2-container--"+this.options.get("theme")),i.StoreData(t[0],"element",this.$element),t},n}),n.define("jquery-mousewheel",["jquery"],function(e){return e}),n.define("jquery.select2",["jquery","jquery-mousewheel","./select2/core","./select2/defaults","./select2/utils"],function(e,t,i,a,n){if(null==e.fn.select2){var o=["open","close","destroy"];e.fn.select2=function(t){if("object"==typeof(t=t||{}))return this.each(function(){var a=e.extend(!0,{},t);new i(e(this),a)}),this;if("string"==typeof t){var a,r=Array.prototype.slice.call(arguments,1);return(this.each(function(){var e=n.GetData(this,"select2");null==e&&window.console&&console.error&&console.error("The select2('"+t+"') method was called on an element that is not using Select2."),a=e[t].apply(e,r)}),o.indexOf(t)>-1)?this:a}throw Error("Invalid arguments for Select2: "+t)}}return null==e.fn.select2.defaults&&(e.fn.select2.defaults=a),i}),{define:n.define,require:n.require}}(),i=t.require("jquery.select2");return e.fn.select2.amd=t,i},a=[i(428)],void 0===(n=o.apply(t,a))||(e.exports=n)},3508(e,t,i){var a=i(6696);a&&a.__esModule&&(a=a.default),"string"==typeof a?e.exports=a:e.exports=a.toString()},8927(e,t,i){var a=i(8971);a&&a.__esModule&&(a=a.default),"string"==typeof a?e.exports=a:e.exports=a.toString()},4647(e,t,i){var a=i(331);a&&a.__esModule&&(a=a.default),"string"==typeof a?e.exports=a:e.exports=a.toString()},4084(e,t,i){var a=i(176);a&&a.__esModule&&(a=a.default),"string"==typeof a?e.exports=a:e.exports=a.toString()},7595(e,t,i){var a=i(5111);a&&a.__esModule&&(a=a.default),"string"==typeof a?e.exports=a:e.exports=a.toString()},5859(e,t,i){var a=i(6391);a&&a.__esModule&&(a=a.default),"string"==typeof a?e.exports=a:e.exports=a.toString()},7358(e,t,i){var a=i(762);a&&a.__esModule&&(a=a.default),"string"==typeof a?e.exports=a:e.exports=a.toString()},1080(e,t,i){var a=i(8060);a&&a.__esModule&&(a=a.default),"string"==typeof a?e.exports=a:e.exports=a.toString()},5048(e,t,i){var a=i(5228);a&&a.__esModule&&(a=a.default),"string"==typeof a?e.exports=a:e.exports=a.toString()},7835(e,t,i){var a=i(8015);a&&a.__esModule&&(a=a.default),"string"==typeof a?e.exports=a:e.exports=a.toString()},353(e,t,i){var a=i(8157);a&&a.__esModule&&(a=a.default),"string"==typeof a?e.exports=a:e.exports=a.toString()},2657(e,t,i){var a=i(9069);a&&a.__esModule&&(a=a.default),"string"==typeof a?e.exports=a:e.exports=a.toString()},5938(e,t,i){var a=i(6942);a&&a.__esModule&&(a=a.default),"string"==typeof a?e.exports=a:e.exports=a.toString()},1212(e,t,i){var a=i(1512);a&&a.__esModule&&(a=a.default),"string"==typeof a?e.exports=a:e.exports=a.toString()},5208(e,t,i){var a=i(9324);a&&a.__esModule&&(a=a.default),"string"==typeof a?e.exports=a:e.exports=a.toString()},1145(e,t,i){var a=i(1093);a&&a.__esModule&&(a=a.default),"string"==typeof a?e.exports=a:e.exports=a.toString()},9210(e,t,i){var a=i(5174);a&&a.__esModule&&(a=a.default),"string"==typeof a?e.exports=a:e.exports=a.toString()},6916(e,t,i){var a=i(616);a&&a.__esModule&&(a=a.default),"string"==typeof a?e.exports=a:e.exports=a.toString()},1953(e,t,i){var a=i(2789);a&&a.__esModule&&(a=a.default),"string"==typeof a?e.exports=a:e.exports=a.toString()},1758(e,t,i){var a=i(7458);a&&a.__esModule&&(a=a.default),"string"==typeof a?e.exports=a:e.exports=a.toString()},5202(e,t,i){var a=i(5206);a&&a.__esModule&&(a=a.default),"string"==typeof a?e.exports=a:e.exports=a.toString()},2158(e,t,i){var a=i(9530);a&&a.__esModule&&(a=a.default),"string"==typeof a?e.exports=a:e.exports=a.toString()},7872(e,t,i){var a=i(7188);a&&a.__esModule&&(a=a.default),"string"==typeof a?e.exports=a:e.exports=a.toString()},3967(e,t,i){var a=i(8299);a&&a.__esModule&&(a=a.default),"string"==typeof a?e.exports=a:e.exports=a.toString()},9640(e,t,i){var a=i(964);a&&a.__esModule&&(a=a.default),"string"==typeof a?e.exports=a:e.exports=a.toString()},7837(e,t,i){var a=i(9913);a&&a.__esModule&&(a=a.default),"string"==typeof a?e.exports=a:e.exports=a.toString()},9610(e,t,i){var a=i(2438);a&&a.__esModule&&(a=a.default),"string"==typeof a?e.exports=a:e.exports=a.toString()},1825(e,t,i){var a=i(3637);a&&a.__esModule&&(a=a.default),"string"==typeof a?e.exports=a:e.exports=a.toString()},6516(e,t,i){var a=i(1776);a&&a.__esModule&&(a=a.default),"string"==typeof a?e.exports=a:e.exports=a.toString()},3932(e,t,i){var a=i(9968);a&&a.__esModule&&(a=a.default),"string"==typeof a?e.exports=a:e.exports=a.toString()},5806(e,t,i){var a=i(2730);a&&a.__esModule&&(a=a.default),"string"==typeof a?e.exports=a:e.exports=a.toString()},2646(e,t,i){var a=i(2170);a&&a.__esModule&&(a=a.default),"string"==typeof a?e.exports=a:e.exports=a.toString()},9300(e,t,i){var a=i(8720);a&&a.__esModule&&(a=a.default),"string"==typeof a?e.exports=a:e.exports=a.toString()},7604(e,t,i){var a=i(8312);a&&a.__esModule&&(a=a.default),"string"==typeof a?e.exports=a:e.exports=a.toString()},3414(e,t,i){var a=i(7554);a&&a.__esModule&&(a=a.default),"string"==typeof a?e.exports=a:e.exports=a.toString()},817(e,t,i){var a=i(6389);a&&a.__esModule&&(a=a.default),"string"==typeof a?e.exports=a:e.exports=a.toString()},2083(e,t,i){var a=i(1327);a&&a.__esModule&&(a=a.default),"string"==typeof a?e.exports=a:e.exports=a.toString()},8277(e,t,i){var a=i(4361);a&&a.__esModule&&(a=a.default),"string"==typeof a?e.exports=a:e.exports=a.toString()},2291(e,t,i){var a=i(5647);a&&a.__esModule&&(a=a.default),"string"==typeof a?e.exports=a:e.exports=a.toString()},944(e,t,i){var a=i(9020);a&&a.__esModule&&(a=a.default),"string"==typeof a?e.exports=a:e.exports=a.toString()},8191(e,t,i){var a=i(9691);a&&a.__esModule&&(a=a.default),"string"==typeof a?e.exports=a:e.exports=a.toString()},6274(e,t,i){var a=i(3366);a&&a.__esModule&&(a=a.default),"string"==typeof a?e.exports=a:e.exports=a.toString()},7271(e,t,i){var a=i(6707);a&&a.__esModule&&(a=a.default),"string"==typeof a?e.exports=a:e.exports=a.toString()},738(e,t,i){var a=i(5038);a&&a.__esModule&&(a=a.default),"string"==typeof a?e.exports=a:e.exports=a.toString()},2814(e,t,i){var a=i(6594);a&&a.__esModule&&(a=a.default),"string"==typeof a?e.exports=a:e.exports=a.toString()},9256(e,t,i){var a=i(7228);a&&a.__esModule&&(a=a.default),"string"==typeof a?e.exports=a:e.exports=a.toString()},7572(e,t,i){var a=i(4840);a&&a.__esModule&&(a=a.default),"string"==typeof a?e.exports=a:e.exports=a.toString()},7171(e,t,i){var a=i(6951);a&&a.__esModule&&(a=a.default),"string"==typeof a?e.exports=a:e.exports=a.toString()},3896(e,t,i){var a=i(2500);a&&a.__esModule&&(a=a.default),"string"==typeof a?e.exports=a:e.exports=a.toString()},4719(e,t,i){var a=i(9155);a&&a.__esModule&&(a=a.default),"string"==typeof a?e.exports=a:e.exports=a.toString()},9138(e,t,i){var a=i(4750);a&&a.__esModule&&(a=a.default),"string"==typeof a?e.exports=a:e.exports=a.toString()},7521(e,t,i){var a=i(6933);a&&a.__esModule&&(a=a.default),"string"==typeof a?e.exports=a:e.exports=a.toString()},1728(e,t,i){var a=i(4980);a&&a.__esModule&&(a=a.default),"string"==typeof a?e.exports=a:e.exports=a.toString()},1537(e,t,i){var a=i(5341);a&&a.__esModule&&(a=a.default),"string"==typeof a?e.exports=a:e.exports=a.toString()},74(e,t,i){var a=i(433);a&&a.__esModule&&(a=a.default),"string"==typeof a?e.exports=a:e.exports=a.toString()},7487(e,t,i){var a=i(7715);a&&a.__esModule&&(a=a.default),"string"==typeof a?e.exports=a:e.exports=a.toString()},3125(e,t,i){var a=i(4505);a&&a.__esModule&&(a=a.default),"string"==typeof a?e.exports=a:e.exports=a.toString()},2306(e,t,i){var a=i(3598);a&&a.__esModule&&(a=a.default),"string"==typeof a?e.exports=a:e.exports=a.toString()},9540(e,t,i){var a=i(2288);a&&a.__esModule&&(a=a.default),"string"==typeof a?e.exports=a:e.exports=a.toString()},1340(e,t,i){var a=i(7880);a&&a.__esModule&&(a=a.default),"string"==typeof a?e.exports=a:e.exports=a.toString()},644(e,t,i){var a=i(9416);a&&a.__esModule&&(a=a.default),"string"==typeof a?e.exports=a:e.exports=a.toString()},4880(e,t,i){var a=i(5644);a&&a.__esModule&&(a=a.default),"string"==typeof a?e.exports=a:e.exports=a.toString()},1646(e,t,i){var a=i(146);a&&a.__esModule&&(a=a.default),"string"==typeof a?e.exports=a:e.exports=a.toString()},3947(e,t,i){var a=i(2239);a&&a.__esModule&&(a=a.default),"string"==typeof a?e.exports=a:e.exports=a.toString()},8281(e,t,i){var a=i(669);a&&a.__esModule&&(a=a.default),"string"==typeof a?e.exports=a:e.exports=a.toString()},245(e,t,i){var a=i(4769);a&&a.__esModule&&(a=a.default),"string"==typeof a?e.exports=a:e.exports=a.toString()},4193(e,t,i){var a=i(6461);a&&a.__esModule&&(a=a.default),"string"==typeof a?e.exports=a:e.exports=a.toString()},4075(e,t,i){var a=i(919);a&&a.__esModule&&(a=a.default),"string"==typeof a?e.exports=a:e.exports=a.toString()},14(e,t,i){var a=i(8466);a&&a.__esModule&&(a=a.default),"string"==typeof a?e.exports=a:e.exports=a.toString()},2685(e,t,i){var a=i(5465);a&&a.__esModule&&(a=a.default),"string"==typeof a?e.exports=a:e.exports=a.toString()},77(e,t,i){var a=i(5473);a&&a.__esModule&&(a=a.default),"string"==typeof a?e.exports=a:e.exports=a.toString()},6439(e,t,i){var a=i(8995);a&&a.__esModule&&(a=a.default),"string"==typeof a?e.exports=a:e.exports=a.toString()},7286(e,t,i){var a=i(2794);a&&a.__esModule&&(a=a.default),"string"==typeof a?e.exports=a:e.exports=a.toString()},9261(e,t,i){var a=i(9145);a&&a.__esModule&&(a=a.default),"string"==typeof a?e.exports=a:e.exports=a.toString()},5793(e,t,i){var a=i(7413);a&&a.__esModule&&(a=a.default),"string"==typeof a?e.exports=a:e.exports=a.toString()},8627(e,t,i){var a=i(8319);a&&a.__esModule&&(a=a.default),"string"==typeof a?e.exports=a:e.exports=a.toString()},1653(e,t,i){var a=i(6841);a&&a.__esModule&&(a=a.default),"string"==typeof a?e.exports=a:e.exports=a.toString()},7412(e,t,i){var a=i(920);a&&a.__esModule&&(a=a.default),"string"==typeof a?e.exports=a:e.exports=a.toString()},4161(e,t,i){var a=i(3181);a&&a.__esModule&&(a=a.default),"string"==typeof a?e.exports=a:e.exports=a.toString()},4391(e,t,i){var a=i(7355);a&&a.__esModule&&(a=a.default),"string"==typeof a?e.exports=a:e.exports=a.toString()},9889(e,t,i){var a=i(4101);a&&a.__esModule&&(a=a.default),"string"==typeof a?e.exports=a:e.exports=a.toString()},4467(e,t,i){var a=i(3791);a&&a.__esModule&&(a=a.default),"string"==typeof a?e.exports=a:e.exports=a.toString()},9525(e,t,i){var a=i(673);a&&a.__esModule&&(a=a.default),"string"==typeof a?e.exports=a:e.exports=a.toString()},1334(e,t,i){var a=i(8802);a&&a.__esModule&&(a=a.default),"string"==typeof a?e.exports=a:e.exports=a.toString()},1428(e,t,i){var a=i(992);a&&a.__esModule&&(a=a.default),"string"==typeof a?e.exports=a:e.exports=a.toString()},1426(e,t,i){var a=i(5758);a&&a.__esModule&&(a=a.default),"string"==typeof a?e.exports=a:e.exports=a.toString()},2869(e,t,i){var a=i(7145);a&&a.__esModule&&(a=a.default),"string"==typeof a?e.exports=a:e.exports=a.toString()},2464(e,t,i){var a=i(4644);a&&a.__esModule&&(a=a.default),"string"==typeof a?e.exports=a:e.exports=a.toString()},1670(e,t,i){var a=i(3002);a&&a.__esModule&&(a=a.default),"string"==typeof a?e.exports=a:e.exports=a.toString()},1405(e,t,i){var a=i(1649);a&&a.__esModule&&(a=a.default),"string"==typeof a?e.exports=a:e.exports=a.toString()},2499(e,t,i){var a=i(3447);a&&a.__esModule&&(a=a.default),"string"==typeof a?e.exports=a:e.exports=a.toString()},3710(e,t,i){var a=i(8530);a&&a.__esModule&&(a=a.default),"string"==typeof a?e.exports=a:e.exports=a.toString()},8105(e,t,i){var a=i(6749);a&&a.__esModule&&(a=a.default),"string"==typeof a?e.exports=a:e.exports=a.toString()},3399(e,t,i){var a=i(8931);a&&a.__esModule&&(a=a.default),"string"==typeof a?e.exports=a:e.exports=a.toString()},1499(e,t,i){var a=i(6767);a&&a.__esModule&&(a=a.default),"string"==typeof a?e.exports=a:e.exports=a.toString()},8318(e,t,i){var a=i(9122);a&&a.__esModule&&(a=a.default),"string"==typeof a?e.exports=a:e.exports=a.toString()},2315(e,t,i){var a=i(2687);a&&a.__esModule&&(a=a.default),"string"==typeof a?e.exports=a:e.exports=a.toString()},6115(e,t,i){var a=i(2655);a&&a.__esModule&&(a=a.default),"string"==typeof a?e.exports=a:e.exports=a.toString()},9482(e,t,i){var a=i(1510);a&&a.__esModule&&(a=a.default),"string"==typeof a?e.exports=a:e.exports=a.toString()},2042(e,t,i){var a=i(6446);a&&a.__esModule&&(a=a.default),"string"==typeof a?e.exports=a:e.exports=a.toString()},7390(e,t,i){var a=i(858);a&&a.__esModule&&(a=a.default),"string"==typeof a?e.exports=a:e.exports=a.toString()},5593(e,t,i){var a=i(8189);a&&a.__esModule&&(a=a.default),"string"==typeof a?e.exports=a:e.exports=a.toString()},8929(e,t,i){var a=i(2821);a&&a.__esModule&&(a=a.default),"string"==typeof a?e.exports=a:e.exports=a.toString()},3997(e,t,i){var a=i(801);a&&a.__esModule&&(a=a.default),"string"==typeof a?e.exports=a:e.exports=a.toString()},1057(e,t,i){var a=i(2029);a&&a.__esModule&&(a=a.default),"string"==typeof a?e.exports=a:e.exports=a.toString()},7364(e,t,i){var a=i(6288);a&&a.__esModule&&(a=a.default),"string"==typeof a?e.exports=a:e.exports=a.toString()},8900(e,t,i){var a=i(2672);a&&a.__esModule&&(a=a.default),"string"==typeof a?e.exports=a:e.exports=a.toString()},7140(e,t,i){var a=i(7184);a&&a.__esModule&&(a=a.default),"string"==typeof a?e.exports=a:e.exports=a.toString()},5569(e,t,i){var a=i(6301);a&&a.__esModule&&(a=a.default),"string"==typeof a?e.exports=a:e.exports=a.toString()},8908(e,t,i){var a=i(1984);a&&a.__esModule&&(a=a.default),"string"==typeof a?e.exports=a:e.exports=a.toString()},3264(e,t,i){var a=i(4687);a&&a.__esModule&&(a=a.default),"string"==typeof a?e.exports=a:e.exports=a.toString()},3824(e,t,i){var a=i(7044);a&&a.__esModule&&(a=a.default),"string"==typeof a?e.exports=a:e.exports=a.toString()},1113(e,t,i){var a=i(4669);a&&a.__esModule&&(a=a.default),"string"==typeof a?e.exports=a:e.exports=a.toString()},5148(e,t,i){var a=i(3616);a&&a.__esModule&&(a=a.default),"string"==typeof a?e.exports=a:e.exports=a.toString()},6505(e,t,i){var a=i(1101);a&&a.__esModule&&(a=a.default),"string"==typeof a?e.exports=a:e.exports=a.toString()},7888(e,t,i){var a=i(4284);a&&a.__esModule&&(a=a.default),"string"==typeof a?e.exports=a:e.exports=a.toString()},6582(e,t,i){var a=i(562);a&&a.__esModule&&(a=a.default),"string"==typeof a?e.exports=a:e.exports=a.toString()},2860(e,t,i){var a=i(4296);a&&a.__esModule&&(a=a.default),"string"==typeof a?e.exports=a:e.exports=a.toString()},9(e,t,i){var a=i(4581);a&&a.__esModule&&(a=a.default),"string"==typeof a?e.exports=a:e.exports=a.toString()},6574(e,t,i){var a=i(274);a&&a.__esModule&&(a=a.default),"string"==typeof a?e.exports=a:e.exports=a.toString()},1572(e,t,i){var a=i(2312);a&&a.__esModule&&(a=a.default),"string"==typeof a?e.exports=a:e.exports=a.toString()},3281(e,t,i){var a=i(6309);a&&a.__esModule&&(a=a.default),"string"==typeof a?e.exports=a:e.exports=a.toString()},9202(e,t,i){var a=i(1217);a&&a.__esModule&&(a=a.default),"string"==typeof a?e.exports=a:e.exports=a.toString()},6777(e,t,i){var a=i(5621);a&&a.__esModule&&(a=a.default),"string"==typeof a?e.exports=a:e.exports=a.toString()},2755(e,t,i){var a=i(5327);a&&a.__esModule&&(a=a.default),"string"==typeof a?e.exports=a:e.exports=a.toString()},3349(e,t,i){var a=i(7633);a&&a.__esModule&&(a=a.default),"string"==typeof a?e.exports=a:e.exports=a.toString()},6728(e,t,i){var a=i(76);a&&a.__esModule&&(a=a.default),"string"==typeof a?e.exports=a:e.exports=a.toString()},7096(e,t,i){var a=i(9572);a&&a.__esModule&&(a=a.default),"string"==typeof a?e.exports=a:e.exports=a.toString()},930(e,t,i){var a=i(4182);a&&a.__esModule&&(a=a.default),"string"==typeof a?e.exports=a:e.exports=a.toString()},5264(e,t,i){var a=i(7324);a&&a.__esModule&&(a=a.default),"string"==typeof a?e.exports=a:e.exports=a.toString()},883(e,t,i){var a=i(943);a&&a.__esModule&&(a=a.default),"string"==typeof a?e.exports=a:e.exports=a.toString()},2827(e,t,i){var a=i(8455);a&&a.__esModule&&(a=a.default),"string"==typeof a?e.exports=a:e.exports=a.toString()},8220(e,t,i){var a=i(104);a&&a.__esModule&&(a=a.default),"string"==typeof a?e.exports=a:e.exports=a.toString()},8027(e,t,i){var a=i(991);a&&a.__esModule&&(a=a.default),"string"==typeof a?e.exports=a:e.exports=a.toString()},2052(e,t,i){var a=i(3640);a&&a.__esModule&&(a=a.default),"string"==typeof a?e.exports=a:e.exports=a.toString()},6008(e,t,i){var a=i(4396);a&&a.__esModule&&(a=a.default),"string"==typeof a?e.exports=a:e.exports=a.toString()},8194(e,t,i){var a=i(2166);a&&a.__esModule&&(a=a.default),"string"==typeof a?e.exports=a:e.exports=a.toString()},3858(e,t,i){var a=i(1030);a&&a.__esModule&&(a=a.default),"string"==typeof a?e.exports=a:e.exports=a.toString()},6923(e,t,i){var a=i(2911);a&&a.__esModule&&(a=a.default),"string"==typeof a?e.exports=a:e.exports=a.toString()},8781(e,t,i){var a=i(5929);a&&a.__esModule&&(a=a.default),"string"==typeof a?e.exports=a:e.exports=a.toString()},2071(e,t,i){var a=i(1971);a&&a.__esModule&&(a=a.default),"string"==typeof a?e.exports=a:e.exports=a.toString()},6339(e,t,i){var a=i(559);a&&a.__esModule&&(a=a.default),"string"==typeof a?e.exports=a:e.exports=a.toString()},4450(e,t,i){var a=i(5902);a&&a.__esModule&&(a=a.default),"string"==typeof a?e.exports=a:e.exports=a.toString()},342(e,t,i){var a=i(2354);a&&a.__esModule&&(a=a.default),"string"==typeof a?e.exports=a:e.exports=a.toString()},9102(e,t,i){var a=i(9922);a&&a.__esModule&&(a=a.default),"string"==typeof a?e.exports=a:e.exports=a.toString()},406(e,t,i){var a=i(538);a&&a.__esModule&&(a=a.default),"string"==typeof a?e.exports=a:e.exports=a.toString()},1778(e,t,i){var a=i(6278);a&&a.__esModule&&(a=a.default),"string"==typeof a?e.exports=a:e.exports=a.toString()},9882(e,t,i){var a=i(5190);a&&a.__esModule&&(a=a.default),"string"==typeof a?e.exports=a:e.exports=a.toString()},6502(e,t,i){var a=i(4994);a&&a.__esModule&&(a=a.default),"string"==typeof a?e.exports=a:e.exports=a.toString()},8357(e,t,i){var a=i(7278);a&&a.__esModule&&(a=a.default),"string"==typeof a?e.exports=a:e.exports=a.toString()},8062(e,t,i){var a=i(5946);a&&a.__esModule&&(a=a.default),"string"==typeof a?e.exports=a:e.exports=a.toString()},2503(e,t,i){var a=i(1139);a&&a.__esModule&&(a=a.default),"string"==typeof a?e.exports=a:e.exports=a.toString()},9220(e,t,i){var a=i(4480);a&&a.__esModule&&(a=a.default),"string"==typeof a?e.exports=a:e.exports=a.toString()},2992(e,t,i){var a=i(9484);a&&a.__esModule&&(a=a.default),"string"==typeof a?e.exports=a:e.exports=a.toString()},2486(e,t,i){var a=i(6058);a&&a.__esModule&&(a=a.default),"string"==typeof a?e.exports=a:e.exports=a.toString()},3092(e,t,i){var a=i(1928);a&&a.__esModule&&(a=a.default),"string"==typeof a?e.exports=a:e.exports=a.toString()},4478(e,t,i){var a=i(8522);a&&a.__esModule&&(a=a.default),"string"==typeof a?e.exports=a:e.exports=a.toString()},8846(e,t,i){var a=i(9258);a&&a.__esModule&&(a=a.default),"string"==typeof a?e.exports=a:e.exports=a.toString()},8672(e,t,i){var a=i(8092);a&&a.__esModule&&(a=a.default),"string"==typeof a?e.exports=a:e.exports=a.toString()},8488(e,t,i){var a=i(4943);a&&a.__esModule&&(a=a.default),"string"==typeof a?e.exports=a:e.exports=a.toString()},2839(e,t,i){var a=i(7395);a&&a.__esModule&&(a=a.default),"string"==typeof a?e.exports=a:e.exports=a.toString()},8130(e,t,i){var a=i(6438);a&&a.__esModule&&(a=a.default),"string"==typeof a?e.exports=a:e.exports=a.toString()},4263(e,t,i){var a=i(9963);a&&a.__esModule&&(a=a.default),"string"==typeof a?e.exports=a:e.exports=a.toString()},6656(e,t,i){var a=i(2236);a&&a.__esModule&&(a=a.default),"string"==typeof a?e.exports=a:e.exports=a.toString()},8436(e,t,i){var a=i(2752);a&&a.__esModule&&(a=a.default),"string"==typeof a?e.exports=a:e.exports=a.toString()},1647(e,t,i){var a=i(4739);a&&a.__esModule&&(a=a.default),"string"==typeof a?e.exports=a:e.exports=a.toString()},8526(e,t,i){var a=i(3274);a&&a.__esModule&&(a=a.default),"string"==typeof a?e.exports=a:e.exports=a.toString()},3188(e){"use strict";e.exports="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iLTQgLTQgMzIgMzIiPjxkZWZzPjxmaWx0ZXIgaWQ9InMiIHg9Ii01MCUiIHk9Ii01MCUiIHdpZHRoPSIyMDAlIiBoZWlnaHQ9IjIwMCUiPjxmZURyb3BTaGFkb3cgZHg9IjAiIGR5PSIxLjMiIHN0ZERldmlhdGlvbj0iMC45IiBmbG9vZC1jb2xvcj0iIzAwMCIgZmxvb2Qtb3BhY2l0eT0iMC40NSIvPjwvZmlsdGVyPjwvZGVmcz48ZyBmaWx0ZXI9InVybCgjcykiPjxwb2x5Z29uIHBvaW50cz0iMjQgNy4yMSAyMy4wOCA4LjE0IDE5Ljg0IDExLjM4IDE4LjkxIDEyLjMgMTguNTcgMTIuNjQgMTcuMyAxMy45MSAxMC4yNiAyMC45NSAxMC4wMSAyMS4yIDkuNjkgMjEuMjkgMi41OSAyMy4yNyAyLjIzIDIzLjM3IDAgMjQgLjYzIDIxLjc3IC43MyAyMS40MSAyLjcxIDE0LjMxIDIuOCAxMy45OSAzLjA1IDEzLjc0IDEwLjA5IDYuNyAxMS4zNiA1LjQzIDEyLjI4IDQuNTEgMTIuNjMgNC4xNyAxNS44NyAuOTIgMTYuNzkgMCAxNy43MSAuOTIgMTguOTcgMi4xOSAyMy4wOCA2LjI5IDI0IDcuMjEiIHN0eWxlPSJmaWxsOiNmZmY7Ii8+PHBhdGggZD0iTTEuODgsMjIuMTJjLjc3LS4yMiwzLjI2LS45MSw3LjQ1LTIuMDlsNy4wNS03LjA1LDEuMjYtMS4yNmMtLjU4LS41OC0xLjk1LTEuOTUtNC4xLTQuMWwtMS4yNi0xLjI2LTEuMjYsMS4yNi03LjA1LDcuMDVjLTEuMTcsNC4yLTEuODcsNi42OC0yLjA5LDcuNDVaTTUuNTUsMTUuNjVsMi44LDIuOC0zLjg5LDEuMDksMS4wOS0zLjg5Wk0xNy42NSw5LjE5bDEuMjcsMS4yN2MxLjk5LTEuOTksMi4yNC0yLjI0LDMuMjQtMy4yNC0uNTgtLjU4LTEuOTUtMS45NS00LjEtNC4xbC0xLjI2LTEuMjdjLTEuOTksMS45OS0yLjI0LDIuMjQtMy4yNCwzLjI0LjU4LjU4LDEuOTUsMS45NSw0LjEsNC4xaDBaIi8+PC9nPjwvc3ZnPgo="},428(e){"use strict";e.exports=window.jQuery},8416(e){class t{constructor(e){void 0===e.data&&(e.data={}),this.data=e.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function i(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function a(e,...t){let i=Object.create(null);for(let t in e)i[t]=e[t];return t.forEach(function(e){for(let t in e)i[t]=e[t]}),i}class n{constructor(e,t){this.buffer="",this.classPrefix=t.classPrefix,e.walk(this)}addText(e){this.buffer+=i(e)}openNode(e){if(!e.scope)return;let t=((e,{prefix:t})=>{if(e.startsWith("language:"))return e.replace("language:","language-");if(e.includes(".")){let i=e.split(".");return[`${t}${i.shift()}`,...i.map((e,t)=>`${e}${"_".repeat(t+1)}`)].join(" ")}return`${t}${e}`})(e.scope,{prefix:this.classPrefix});this.span(t)}closeNode(e){e.scope&&(this.buffer+="</span>")}value(){return this.buffer}span(e){this.buffer+=`<span class="${e}">`}}let o=(e={})=>{let t={children:[]};return Object.assign(t,e),t};class r{constructor(){this.rootNode=o(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(e){this.top.children.push(e)}openNode(e){let t=o({scope:e});this.add(t),this.stack.push(t)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(e){return this.constructor._walk(e,this.rootNode)}static _walk(e,t){return"string"==typeof t?e.addText(t):t.children&&(e.openNode(t),t.children.forEach(t=>this._walk(e,t)),e.closeNode(t)),e}static _collapse(e){"string"==typeof e||e.children&&(e.children.every(e=>"string"==typeof e)?e.children=[e.children.join("")]:e.children.forEach(e=>{r._collapse(e)}))}}class s extends r{constructor(e){super(),this.options=e}addText(e){""!==e&&this.add(e)}startScope(e){this.openNode(e)}endScope(){this.closeNode()}__addSublanguage(e,t){let i=e.root;t&&(i.scope=`language:${t}`),this.add(i)}toHTML(){return new n(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function l(e){return e?"string"==typeof e?e:e.source:null}function c(e){return p("(?=",e,")")}function d(e){return p("(?:",e,")*")}function u(e){return p("(?:",e,")?")}function p(...e){return e.map(e=>l(e)).join("")}function h(...e){let t;return"("+(("object"==typeof(t=e[e.length-1])&&t.constructor===Object?(e.splice(e.length-1,1),t):{}).capture?"":"?:")+e.map(e=>l(e)).join("|")+")"}function g(e){return RegExp(e.toString()+"|").exec("").length-1}let m=new RegExp(h(/\[(?:[^\\\]]|\\.)*\]/,/\(\?<(?![=!])[^>]+>/,/\(\?'[^']+'/,/\(\??/,/\\([1-9][0-9]*)/,/\\./));function f(e,{joinWith:t}){let i=0;return e.map(e=>{let t=i+=1,a=l(e),n="";for(;a.length>0;){let e=m.exec(a);if(!e){n+=a;break}n+=a.substring(0,e.index),a=a.substring(e.index+e[0].length),"\\"===e[0][0]&&e[1]?n+="\\"+String(Number(e[1])+t):(n+=e[0],("("===e[0]||/^\(\?[<']/.test(e[0]))&&i++)}return n}).map(e=>`(${e})`).join(t)}let y="[a-zA-Z]\\w*",b="[a-zA-Z_]\\w*",v="\\b\\d+(\\.\\d+)?",_="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",w="\\b(0b[01]+)",x={begin:"\\\\[\\s\\S]",relevance:0},k=function(e,t,i={}){let n=a({scope:"comment",begin:e,end:t,contains:[]},i);n.contains.push({scope:"doctag",begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});let o=h("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return n.contains.push({begin:p(/[ ]+/,"(",o,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),n},E=k("//","$"),S=k("/\\*","\\*/"),C=k("#","$");var T=Object.freeze({__proto__:null,APOS_STRING_MODE:{scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[x]},BACKSLASH_ESCAPE:x,BINARY_NUMBER_MODE:{scope:"number",begin:w,relevance:0},BINARY_NUMBER_RE:w,COMMENT:k,C_BLOCK_COMMENT_MODE:S,C_LINE_COMMENT_MODE:E,C_NUMBER_MODE:{scope:"number",begin:_,relevance:0},C_NUMBER_RE:_,END_SAME_AS_BEGIN:function(e){return Object.assign(e,{"on:begin":(e,t)=>{t.data._beginMatch=e[1]},"on:end":(e,t)=>{t.data._beginMatch!==e[1]&&t.ignoreMatch()}})},HASH_COMMENT_MODE:C,IDENT_RE:y,MATCH_NOTHING_RE:/\b\B/,METHOD_GUARD:{begin:"\\.\\s*"+b,relevance:0},NUMBER_MODE:{scope:"number",begin:v,relevance:0},NUMBER_RE:v,PHRASAL_WORDS_MODE:{begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},QUOTE_STRING_MODE:{scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[x]},REGEXP_MODE:{scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[x,{begin:/\[/,end:/\]/,relevance:0,contains:[x]}]},RE_STARTERS_RE:"!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",SHEBANG:(e={})=>{let t=/^#![ ]*\//;return e.binary&&(e.begin=p(t,/.*\b/,e.binary,/\b.*/)),a({scope:"meta",begin:t,end:/$/,relevance:0,"on:begin":(e,t)=>{0!==e.index&&t.ignoreMatch()}},e)},TITLE_MODE:{scope:"title",begin:y,relevance:0},UNDERSCORE_IDENT_RE:b,UNDERSCORE_TITLE_MODE:{scope:"title",begin:b,relevance:0}});function I(e,t){"."===e.input[e.index-1]&&t.ignoreMatch()}function D(e,t){void 0!==e.className&&(e.scope=e.className,delete e.className)}function A(e,t){!t||e.beginKeywords&&(e.begin="\\b("+e.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",e.__beforeBegin=I,e.keywords=e.keywords||e.beginKeywords,delete e.beginKeywords,void 0===e.relevance&&(e.relevance=0))}function O(e,t){Array.isArray(e.illegal)&&(e.illegal=h(...e.illegal))}function R(e,t){if(e.match){if(e.begin||e.end)throw Error("begin & end are not supported with match");e.begin=e.match,delete e.match}}function M(e,t){void 0===e.relevance&&(e.relevance=1)}let L=(e,t)=>{if(!e.beforeMatch)return;if(e.starts)throw Error("beforeMatch cannot be used with starts");let i=Object.assign({},e);Object.keys(e).forEach(t=>{delete e[t]}),e.keywords=i.keywords,e.begin=p(i.beforeMatch,c(i.begin)),e.starts={relevance:0,contains:[Object.assign(i,{endsParent:!0})]},e.relevance=0,delete i.beforeMatch},N=["of","and","for","in","not","or","if","then","parent","list","value"],P={},z=e=>{console.error(e)},U=(e,...t)=>{console.log(`WARN: ${e}`,...t)},F=(e,t)=>{P[`${e}/${t}`]||(console.log(`Deprecated as of ${e}. ${t}`),P[`${e}/${t}`]=!0)},j=Error();function B(e,t,{key:i}){let a=0,n=e[i],o={},r={};for(let e=1;e<=t.length;e++)r[e+a]=n[e],o[e+a]=!0,a+=g(t[e-1]);e[i]=r,e[i]._emit=o,e[i]._multi=!0}function H(e){if(e.scope&&"object"==typeof e.scope&&null!==e.scope&&(e.beginScope=e.scope,delete e.scope),"string"==typeof e.beginScope&&(e.beginScope={_wrap:e.beginScope}),"string"==typeof e.endScope&&(e.endScope={_wrap:e.endScope}),Array.isArray(e.begin)){if(e.skip||e.excludeBegin||e.returnBegin)throw z("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),j;if("object"!=typeof e.beginScope||null===e.beginScope)throw z("beginScope must be object"),j;B(e,e.begin,{key:"beginScope"}),e.begin=f(e.begin,{joinWith:""})}if(Array.isArray(e.end)){if(e.skip||e.excludeEnd||e.returnEnd)throw z("skip, excludeEnd, returnEnd not compatible with endScope: {}"),j;if("object"!=typeof e.endScope||null===e.endScope)throw z("endScope must be object"),j;B(e,e.end,{key:"endScope"}),e.end=f(e.end,{joinWith:""})}}class V extends Error{constructor(e,t){super(e),this.name="HTMLInjectionError",this.html=t}}let q=Symbol("nomatch"),Z=function(e){let n=Object.create(null),o=Object.create(null),r=[],m=!0,y="Could not find the language '{}', did you forget to load/include a language module?",b={disableAutodetect:!0,name:"Plain text",contains:[]},v={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:s};function _(e){return v.noHighlightRe.test(e)}function w(e,t,i){let a="",n="";"object"==typeof t?(a=e,i=t.ignoreIllegals,n=t.language):(F("10.7.0","highlight(lang, code, ...args) has been deprecated."),F("10.7.0",`Please use highlight(code, options) instead. https://github.com/highlightjs/highlight.js/issues/2277`),n=e,a=t),void 0===i&&(i=!0);let o={code:a,language:n};B("before:highlight",o);let r=o.result?o.result:x(o.language,o.code,i);return r.code=o.code,B("after:highlight",r),r}function x(e,o,r,s){let c=Object.create(null);function d(){if(!T.keywords)return void U.addText(j);let e=0;T.keywordPatternRe.lastIndex=0;let t=T.keywordPatternRe.exec(j),i="";for(;t;){i+=j.substring(e,t.index);let a=E.case_insensitive?t[0].toLowerCase():t[0],n=T.keywords[a];if(n){let[e,o]=n;if(U.addText(i),i="",c[a]=(c[a]||0)+1,c[a]<=7&&(B+=o),e.startsWith("_"))i+=t[0];else{let i=E.classNameAliases[e]||e;p(t[0],i)}}else i+=t[0];e=T.keywordPatternRe.lastIndex,t=T.keywordPatternRe.exec(j)}i+=j.substring(e),U.addText(i)}function u(){null!=T.subLanguage?function(){if(""===j)return;let e=null;if("string"==typeof T.subLanguage){if(!n[T.subLanguage])return U.addText(j);e=x(T.subLanguage,j,!0,P[T.subLanguage]),P[T.subLanguage]=e._top}else e=k(j,T.subLanguage.length?T.subLanguage:null);T.relevance>0&&(B+=e.relevance),U.__addSublanguage(e._emitter,e.language)}():d(),j=""}function p(e,t){""!==e&&(U.startScope(t),U.addText(e),U.endScope())}function h(e,t){let i=1,a=t.length-1;for(;i<=a;){if(!e._emit[i]){i++;continue}let a=E.classNameAliases[e[i]]||e[i],n=t[i];a?p(n,a):(j=n,d(),j=""),i++}}function b(e,t){return e.scope&&"string"==typeof e.scope&&U.openNode(E.classNameAliases[e.scope]||e.scope),e.beginScope&&(e.beginScope._wrap?(p(j,E.classNameAliases[e.beginScope._wrap]||e.beginScope._wrap),j=""):e.beginScope._multi&&(h(e.beginScope,t),j="")),T=Object.create(e,{parent:{value:T}})}let _={};function w(i,a){let n=a&&a[0];if(j+=i,null==n)return u(),0;if("begin"===_.type&&"end"===a.type&&_.index===a.index&&""===n){if(j+=o.slice(a.index,a.index+1),!m){let t=Error(`0 width match regex (${e})`);throw t.languageName=e,t.badRule=_.rule,t}return 1}if(_=a,"begin"===a.type){let e=a[0],i=a.rule,n=new t(i);for(let t of[i.__beforeBegin,i["on:begin"]])if(t&&(t(a,n),n.isMatchIgnored))return 0===T.matcher.regexIndex?(j+=e[0],1):(W=!0,0);return i.skip?j+=e:(i.excludeBegin&&(j+=e),u(),i.returnBegin||i.excludeBegin||(j=e)),b(i,a),i.returnBegin?0:e.length}if("illegal"!==a.type||r){if("end"===a.type){let e=function(e){let i=e[0],a=o.substring(e.index),n=function e(i,a,n){var o;let r,s=(o=i.endRe,(r=o&&o.exec(n))&&0===r.index);if(s){if(i["on:end"]){let e=new t(i);i["on:end"](a,e),e.isMatchIgnored&&(s=!1)}if(s){for(;i.endsParent&&i.parent;)i=i.parent;return i}}if(i.endsWithParent)return e(i.parent,a,n)}(T,e,a);if(!n)return q;let r=T;T.endScope&&T.endScope._wrap?(u(),p(i,T.endScope._wrap)):T.endScope&&T.endScope._multi?(u(),h(T.endScope,e)):r.skip?j+=i:(r.returnEnd||r.excludeEnd||(j+=i),u(),r.excludeEnd&&(j=i));do T.scope&&U.closeNode(),T.skip||T.subLanguage||(B+=T.relevance),T=T.parent;while(T!==n.parent)return n.starts&&b(n.starts,e),r.returnEnd?0:i.length}(a);if(e!==q)return e}}else{let e=Error('Illegal lexeme "'+n+'" for mode "'+(T.scope||"<unnamed>")+'"');throw e.mode=T,e}if("illegal"===a.type&&""===n)return a.index===o.length||(j+=` `),1;if(Z>1e5&&Z>3*a.index)throw Error("potential infinite loop, way more iterations than matches");return j+=n,n.length}let E=I(e);if(!E)throw z(y.replace("{}",e)),Error('Unknown language: "'+e+'"');let S=function(e){function t(t,i){return RegExp(l(t),"m"+(e.case_insensitive?"i":"")+(e.unicodeRegex?"u":"")+(i?"g":""))}class i{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(e,t){t.position=this.position++,this.matchIndexes[this.matchAt]=t,this.regexes.push([t,e]),this.matchAt+=g(e)+1}compile(){0===this.regexes.length&&(this.exec=()=>null);let e=this.regexes.map(e=>e[1]);this.matcherRe=t(f(e,{joinWith:"|"}),!0),this.lastIndex=0}exec(e){this.matcherRe.lastIndex=this.lastIndex;let t=this.matcherRe.exec(e);if(!t)return null;let i=t.findIndex((e,t)=>t>0&&void 0!==e),a=this.matchIndexes[i];return t.splice(0,i),Object.assign(t,a)}}class n{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(e){if(this.multiRegexes[e])return this.multiRegexes[e];let t=new i;return this.rules.slice(e).forEach(([e,i])=>t.addRule(e,i)),t.compile(),this.multiRegexes[e]=t,t}resumingScanAtSamePosition(){return 0!==this.regexIndex}considerAll(){this.regexIndex=0}addRule(e,t){this.rules.push([e,t]),"begin"===t.type&&this.count++}exec(e){let t=this.getMatcher(this.regexIndex);t.lastIndex=this.lastIndex;let i=t.exec(e);if(this.resumingScanAtSamePosition())if(i&&i.index===this.lastIndex);else{let t=this.getMatcher(0);t.lastIndex=this.lastIndex+1,i=t.exec(e)}return i&&(this.regexIndex+=i.position+1,this.regexIndex===this.count&&this.considerAll()),i}}if(e.compilerExtensions||(e.compilerExtensions=[]),e.contains&&e.contains.includes("self"))throw Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return e.classNameAliases=a(e.classNameAliases||{}),function i(o,r){let s;if(o.isCompiled)return o;[D,R,H,L].forEach(e=>e(o,r)),e.compilerExtensions.forEach(e=>e(o,r)),o.__beforeBegin=null,[A,O,M].forEach(e=>e(o,r)),o.isCompiled=!0;let c=null;return"object"==typeof o.keywords&&o.keywords.$pattern&&(o.keywords=Object.assign({},o.keywords),c=o.keywords.$pattern,delete o.keywords.$pattern),c=c||/\w+/,o.keywords&&(o.keywords=function e(t,i,a="keyword"){let n=Object.create(null);return"string"==typeof t?o(a,t.split(" ")):Array.isArray(t)?o(a,t):Object.keys(t).forEach(function(a){Object.assign(n,e(t[a],i,a))}),n;function o(e,t){i&&(t=t.map(e=>e.toLowerCase())),t.forEach(function(t){var i,a,o;let r=t.split("|");n[r[0]]=[e,(i=r[0],(a=r[1])?Number(a):+(o=i,!N.includes(o.toLowerCase())))]})}}(o.keywords,e.case_insensitive)),o.keywordPatternRe=t(c,!0),r&&(o.begin||(o.begin=/\B|\b/),o.beginRe=t(o.begin),o.end||o.endsWithParent||(o.end=/\B|\b/),o.end&&(o.endRe=t(o.end)),o.terminatorEnd=l(o.end)||"",o.endsWithParent&&r.terminatorEnd&&(o.terminatorEnd+=(o.end?"|":"")+r.terminatorEnd)),o.illegal&&(o.illegalRe=t(o.illegal)),o.contains||(o.contains=[]),o.contains=[].concat(...o.contains.map(function(e){var t;return((t="self"===e?o:e).variants&&!t.cachedVariants&&(t.cachedVariants=t.variants.map(function(e){return a(t,{variants:null},e)})),t.cachedVariants)?t.cachedVariants:!function e(t){return!!t&&(t.endsWithParent||e(t.starts))}(t)?Object.isFrozen(t)?a(t):t:a(t,{starts:t.starts?a(t.starts):null})})),o.contains.forEach(function(e){i(e,o)}),o.starts&&i(o.starts,r),s=new n,o.contains.forEach(e=>s.addRule(e.begin,{rule:e,type:"begin"})),o.terminatorEnd&&s.addRule(o.terminatorEnd,{type:"end"}),o.illegal&&s.addRule(o.illegal,{type:"illegal"}),o.matcher=s,o}(e)}(E),C="",T=s||S,P={},U=new v.__emitter(v),F=[];for(let e=T;e!==E;e=e.parent)e.scope&&F.unshift(e.scope);F.forEach(e=>U.openNode(e));let j="",B=0,V=0,Z=0,W=!1;try{if(E.__emitTokens)E.__emitTokens(o,U);else{for(T.matcher.considerAll();;){Z++,W?W=!1:T.matcher.considerAll(),T.matcher.lastIndex=V;let e=T.matcher.exec(o);if(!e)break;let t=o.substring(V,e.index),i=w(t,e);V=e.index+i}w(o.substring(V))}return U.finalize(),C=U.toHTML(),{language:e,value:C,relevance:B,illegal:!1,_emitter:U,_top:T}}catch(t){if(t.message&&t.message.includes("Illegal"))return{language:e,value:i(o),illegal:!0,relevance:0,_illegalBy:{message:t.message,index:V,context:o.slice(V-100,V+100),mode:t.mode,resultSoFar:C},_emitter:U};if(m)return{language:e,value:i(o),illegal:!1,relevance:0,errorRaised:t,_emitter:U,_top:T};throw t}}function k(e,t){let a;t=t||v.languages||Object.keys(n);let o=((a={value:i(e),illegal:!1,relevance:0,_top:b,_emitter:new v.__emitter(v)})._emitter.addText(e),a),r=t.filter(I).filter(j).map(t=>x(t,e,!1));r.unshift(o);let[s,l]=r.sort((e,t)=>{if(e.relevance!==t.relevance)return t.relevance-e.relevance;if(e.language&&t.language){if(I(e.language).supersetOf===t.language)return 1;else if(I(t.language).supersetOf===e.language)return -1}return 0});return s.secondBest=l,s}function E(e){var t;let i,a=function(e){let t=e.className+" ";t+=e.parentNode?e.parentNode.className:"";let i=v.languageDetectRe.exec(t);if(i){let t=I(i[1]);return t||(U(y.replace("{}",i[1])),U("Falling back to no-highlight mode for this block.",e)),t?i[1]:"no-highlight"}return t.split(/\s+/).find(e=>_(e)||I(e))}(e);if(_(a))return;if(B("before:highlightElement",{el:e,language:a}),e.dataset.highlighted)return void console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",e);if(e.children.length>0&&(v.ignoreUnescapedHTML||(console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."),console.warn("https://github.com/highlightjs/highlight.js/wiki/security"),console.warn("The element with unescaped HTML:"),console.warn(e)),v.throwUnescapedHTML))throw new V("One of your code blocks includes unescaped HTML.",e.innerHTML);let n=e.textContent,r=a?w(n,{language:a,ignoreIllegals:!0}):k(n);e.innerHTML=r.value,e.dataset.highlighted="yes",t=r.language,i=a&&o[a]||t,e.classList.add("hljs"),e.classList.add(`language-${i}`),e.result={language:r.language,re:r.relevance,relevance:r.relevance},r.secondBest&&(e.secondBest={language:r.secondBest.language,relevance:r.secondBest.relevance}),B("after:highlightElement",{el:e,result:r,text:n})}let S=!1;function C(){if("loading"===document.readyState){S||window.addEventListener("DOMContentLoaded",function(){C()},!1),S=!0;return}document.querySelectorAll(v.cssSelector).forEach(E)}function I(e){return n[e=(e||"").toLowerCase()]||n[o[e]]}function P(e,{languageName:t}){"string"==typeof e&&(e=[e]),e.forEach(e=>{o[e.toLowerCase()]=t})}function j(e){let t=I(e);return t&&!t.disableAutodetect}function B(e,t){r.forEach(function(i){i[e]&&i[e](t)})}for(let t in Object.assign(e,{highlight:w,highlightAuto:k,highlightAll:C,highlightElement:E,highlightBlock:function(e){return F("10.7.0","highlightBlock will be removed entirely in v12.0"),F("10.7.0","Please use highlightElement now."),E(e)},configure:function(e){v=a(v,e)},initHighlighting:()=>{C(),F("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")},initHighlightingOnLoad:function(){C(),F("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")},registerLanguage:function(t,i){let a=null;try{a=i(e)}catch(e){if(z("Language definition for '{}' could not be registered.".replace("{}",t)),m)z(e);else throw e;a=b}a.name||(a.name=t),n[t]=a,a.rawDefinition=i.bind(null,e),a.aliases&&P(a.aliases,{languageName:t})},unregisterLanguage:function(e){for(let t of(delete n[e],Object.keys(o)))o[t]===e&&delete o[t]},listLanguages:function(){return Object.keys(n)},getLanguage:I,registerAliases:P,autoDetection:j,inherit:a,addPlugin:function(e){var t;(t=e)["before:highlightBlock"]&&!t["before:highlightElement"]&&(t["before:highlightElement"]=e=>{t["before:highlightBlock"](Object.assign({block:e.el},e))}),t["after:highlightBlock"]&&!t["after:highlightElement"]&&(t["after:highlightElement"]=e=>{t["after:highlightBlock"](Object.assign({block:e.el},e))}),r.push(e)},removePlugin:function(e){let t=r.indexOf(e);-1!==t&&r.splice(t,1)}}),e.debugMode=function(){m=!1},e.safeMode=function(){m=!0},e.versionString="11.12.0",e.regex={concat:p,lookahead:c,either:h,optional:u,anyNumberOfTimes:d},T)"object"==typeof T[t]&&function e(t){return t instanceof Map?t.clear=t.delete=t.set=function(){throw Error("map is read-only")}:t instanceof Set&&(t.add=t.clear=t.delete=function(){throw Error("set is read-only")}),Object.freeze(t),Object.getOwnPropertyNames(t).forEach(i=>{let a=t[i],n=typeof a;"object"!==n&&"function"!==n||Object.isFrozen(a)||e(a)}),t}(T[t]);return Object.assign(e,T),e},W=Z({});W.newInstance=()=>Z({}),e.exports=W,W.HighlightJS=W,W.default=W},5896(e,t,i){"use strict";i.r(t),i.d(t,{FlowLayout:()=>c,flow:()=>r});class a{constructor(e){this._map=new Map,this._roundAverageSize=!1,this.totalSize=0,e?.roundAverageSize===!0&&(this._roundAverageSize=!0)}set(e,t){let i=this._map.get(e)||0;this._map.set(e,t),this.totalSize+=t-i}get averageSize(){if(this._map.size>0){let e=this.totalSize/this._map.size;return this._roundAverageSize?Math.round(e):e}return 0}getSize(e){return this._map.get(e)}clear(){this._map.clear(),this.totalSize=0}}function n(e){return"horizontal"===e?"width":"height"}class o{_getDefaultConfig(){return{direction:"vertical"}}constructor(e,t){this._latestCoords={left:0,top:0},this._direction=null,this._viewportSize={width:0,height:0},this.totalScrollSize={width:0,height:0},this.offsetWithinScroller={left:0,top:0},this._pendingReflow=!1,this._pendingLayoutUpdate=!1,this._pin=null,this._firstVisible=0,this._lastVisible=0,this._physicalMin=0,this._physicalMax=0,this._first=-1,this._last=-1,this._sizeDim="height",this._secondarySizeDim="width",this._positionDim="top",this._secondaryPositionDim="left",this._scrollPosition=0,this._scrollError=0,this._items=[],this._scrollSize=1,this._overhang=1e3,this._hostSink=e,Promise.resolve().then(()=>this.config=t||this._getDefaultConfig())}set config(e){Object.assign(this,Object.assign({},this._getDefaultConfig(),e))}get config(){return{direction:this.direction}}get items(){return this._items}set items(e){this._setItems(e)}_setItems(e){e!==this._items&&(this._items=e,this._scheduleReflow())}get direction(){return this._direction}set direction(e){(e="horizontal"===e?e:"vertical")!==this._direction&&(this._direction=e,this._sizeDim="horizontal"===e?"width":"height",this._secondarySizeDim="horizontal"===e?"height":"width",this._positionDim="horizontal"===e?"left":"top",this._secondaryPositionDim="horizontal"===e?"top":"left",this._triggerReflow())}get viewportSize(){return this._viewportSize}set viewportSize(e){let{_viewDim1:t,_viewDim2:i}=this;Object.assign(this._viewportSize,e),i!==this._viewDim2?this._scheduleLayoutUpdate():t!==this._viewDim1&&this._checkThresholds()}get viewportScroll(){return this._latestCoords}set viewportScroll(e){Object.assign(this._latestCoords,e);let t=this._scrollPosition;this._scrollPosition=this._latestCoords[this._positionDim],Math.abs(t-this._scrollPosition)>=1&&this._checkThresholds()}reflowIfNeeded(e=!1){(e||this._pendingReflow)&&(this._pendingReflow=!1,this._reflow())}set pin(e){this._pin=e,this._triggerReflow()}get pin(){if(null!==this._pin){let{index:e,block:t}=this._pin;return{index:Math.max(0,Math.min(e,this.items.length-1)),block:t}}return null}_clampScrollPosition(e){return Math.max(-this.offsetWithinScroller[this._positionDim],Math.min(e,this.totalScrollSize[n(this.direction)]-this._viewDim1))}unpin(){null!==this._pin&&(this._sendUnpinnedMessage(),this._pin=null)}_updateLayout(){}get _viewDim1(){return this._viewportSize[this._sizeDim]}get _viewDim2(){return this._viewportSize[this._secondarySizeDim]}_scheduleReflow(){this._pendingReflow=!0}_scheduleLayoutUpdate(){this._pendingLayoutUpdate=!0,this._scheduleReflow()}_triggerReflow(){this._scheduleLayoutUpdate(),Promise.resolve().then(()=>this.reflowIfNeeded())}_reflow(){this._pendingLayoutUpdate&&(this._updateLayout(),this._pendingLayoutUpdate=!1),this._updateScrollSize(),this._setPositionFromPin(),this._getActiveItems(),this._updateVisibleIndices(),this._sendStateChangedMessage()}_setPositionFromPin(){if(null!==this.pin){let e=this._scrollPosition,{index:t,block:i}=this.pin;this._scrollPosition=this._calculateScrollIntoViewPosition({index:t,block:i||"start"})-this.offsetWithinScroller[this._positionDim],this._scrollError=e-this._scrollPosition}}_calculateScrollIntoViewPosition(e){let{block:t}=e,i=Math.min(this.items.length,Math.max(0,e.index)),a=this._getItemPosition(i)[this._positionDim],n=a;if("start"!==t){let e=this._getItemSize(i)[this._sizeDim];if("center"===t)n=a-.5*this._viewDim1+.5*e;else{let i=a-this._viewDim1+e;if("end"===t)n=i;else{let e=this._scrollPosition;n=Math.abs(e-a)<Math.abs(e-i)?a:i}}}return n+=this.offsetWithinScroller[this._positionDim],this._clampScrollPosition(n)}getScrollIntoViewCoordinates(e){return{[this._positionDim]:this._calculateScrollIntoViewPosition(e)}}_sendUnpinnedMessage(){this._hostSink({type:"unpinned"})}_sendVisibilityChangedMessage(){this._hostSink({type:"visibilityChanged",firstVisible:this._firstVisible,lastVisible:this._lastVisible})}_sendStateChangedMessage(){let e=new Map;if(-1!==this._first&&-1!==this._last)for(let t=this._first;t<=this._last;t++)e.set(t,this._getItemPosition(t));let t={type:"stateChanged",scrollSize:{[this._sizeDim]:this._scrollSize,[this._secondarySizeDim]:null},range:{first:this._first,last:this._last,firstVisible:this._firstVisible,lastVisible:this._lastVisible},childPositions:e};this._scrollError&&(t.scrollError={[this._positionDim]:this._scrollError,[this._secondaryPositionDim]:0},this._scrollError=0),this._hostSink(t)}get _num(){return -1===this._first||-1===this._last?0:this._last-this._first+1}_checkThresholds(){if(0===this._viewDim1&&this._num>0||null!==this._pin)this._scheduleReflow();else{let e=Math.max(0,this._scrollPosition-this._overhang),t=Math.min(this._scrollSize,this._scrollPosition+this._viewDim1+this._overhang);this._physicalMin>e||this._physicalMax<t?this._scheduleReflow():this._updateVisibleIndices({emit:!0})}}_updateVisibleIndices(e){if(-1===this._first||-1===this._last)return;let t=this._first;for(;t<this._last&&Math.round(this._getItemPosition(t)[this._positionDim]+this._getItemSize(t)[this._sizeDim])<=Math.round(this._scrollPosition);)t++;let i=this._last;for(;i>this._first&&Math.round(this._getItemPosition(i)[this._positionDim])>=Math.round(this._scrollPosition+this._viewDim1);)i--;(t!==this._firstVisible||i!==this._lastVisible)&&(this._firstVisible=t,this._lastVisible=i,e&&e.emit&&this._sendVisibilityChangedMessage())}}let r=e=>Object.assign({type:c},e);function s(e){return"horizontal"===e?"marginLeft":"marginTop"}class l{constructor(){this._childSizeCache=new a,this._marginSizeCache=new a,this._metricsCache=new Map}update(e,t){let i=new Set;for(let a of(Object.keys(e).forEach(a=>{let o=Number(a);this._metricsCache.set(o,e[o]),this._childSizeCache.set(o,e[o][n(t)]),i.add(o),i.add(o+1)}),i)){let e=this._metricsCache.get(a)?.[s(t)]||0,i=this._metricsCache.get(a-1)?.["horizontal"===t?"marginRight":"marginBottom"]||0;this._marginSizeCache.set(a,function(e,t){let i=[e,t].sort();return i[1]<=0?Math.min(...i):i[0]>=0?Math.max(...i):i[0]+i[1]}(e,i))}}get averageChildSize(){return this._childSizeCache.averageSize}get totalChildSize(){return this._childSizeCache.totalSize}get averageMarginSize(){return this._marginSizeCache.averageSize}get totalMarginSize(){return this._marginSizeCache.totalSize}getLeadingMarginValue(e,t){return this._metricsCache.get(e)?.[s(t)]||0}getChildSize(e){return this._childSizeCache.getSize(e)}getMarginSize(e){return this._marginSizeCache.getSize(e)}clear(){this._childSizeCache.clear(),this._marginSizeCache.clear(),this._metricsCache.clear()}}class c extends o{constructor(){super(...arguments),this._itemSize={width:100,height:100},this._physicalItems=new Map,this._newPhysicalItems=new Map,this._metricsCache=new l,this._anchorIdx=null,this._anchorPos=null,this._stable=!0,this._measureChildren=!0,this._estimate=!0}get measureChildren(){return this._measureChildren}updateItemSizes(e){this._metricsCache.update(e,this.direction),this._scheduleReflow()}_getPhysicalItem(e){return this._newPhysicalItems.get(e)??this._physicalItems.get(e)}_getSize(e){return this._getPhysicalItem(e)&&this._metricsCache.getChildSize(e)}_getAverageSize(){return this._metricsCache.averageChildSize||this._itemSize[this._sizeDim]}_estimatePosition(e){let t=this._metricsCache;if(-1===this._first||-1===this._last)return t.averageMarginSize+e*(t.averageMarginSize+this._getAverageSize());if(e<this._first){let i=this._first-e;return this._getPhysicalItem(this._first).pos-(t.getMarginSize(this._first-1)||t.averageMarginSize)-(i*t.averageChildSize+(i-1)*t.averageMarginSize)}{let i=e-this._last;return this._getPhysicalItem(this._last).pos+(t.getChildSize(this._last)||t.averageChildSize)+(t.getMarginSize(this._last)||t.averageMarginSize)+i*(t.averageChildSize+t.averageMarginSize)}}_getPosition(e){let t=this._getPhysicalItem(e),{averageMarginSize:i}=this._metricsCache;return 0===e?this._metricsCache.getMarginSize(0)??i:t?t.pos:this._estimatePosition(e)}_calculateAnchor(e,t){return e<=0?0:t>this._scrollSize-this._viewDim1?this.items.length-1:Math.max(0,Math.min(this.items.length-1,Math.floor((e+t)/2/this._delta)))}_getAnchor(e,t){if(0===this._physicalItems.size||this._first<0||this._last<0)return this._calculateAnchor(e,t);let i=this._getPhysicalItem(this._first),a=this._getPhysicalItem(this._last),n=i.pos;if(a.pos+this._metricsCache.getChildSize(this._last)<e||n>t)return this._calculateAnchor(e,t);let o=this._firstVisible-1,r=-1/0;for(;r<e;)r=this._getPhysicalItem(++o).pos+this._metricsCache.getChildSize(o);return o}_getActiveItems(){0===this._viewDim1||0===this.items.length?this._clearItems():this._getItems()}_clearItems(){this._first=-1,this._last=-1,this._physicalMin=0,this._physicalMax=0;let e=this._newPhysicalItems;this._newPhysicalItems=this._physicalItems,this._newPhysicalItems.clear(),this._physicalItems=e,this._stable=!0}_getItems(){let e,t,i=this._newPhysicalItems;if(this._stable=!0,null!==this.pin){let{index:e}=this.pin;this._anchorIdx=e,this._anchorPos=this._getPosition(e)}if(e=this._scrollPosition-this._overhang,(t=this._scrollPosition+this._viewDim1+this._overhang)<0||e>this._scrollSize)return void this._clearItems();(null===this._anchorIdx||null===this._anchorPos)&&(this._anchorIdx=this._getAnchor(e,t),this._anchorPos=this._getPosition(this._anchorIdx));let a=this._getSize(this._anchorIdx);void 0===a&&(this._stable=!1,a=this._getAverageSize());let n=this._metricsCache.getMarginSize(this._anchorIdx)??this._metricsCache.averageMarginSize,o=this._metricsCache.getMarginSize(this._anchorIdx+1)??this._metricsCache.averageMarginSize;0===this._anchorIdx&&(this._anchorPos=n),this._anchorIdx===this.items.length-1&&(this._anchorPos=this._scrollSize-o-a);let r=0;for(this._anchorPos+a+o<e&&(r=e-(this._anchorPos+a+o)),this._anchorPos-n>t&&(r=t-(this._anchorPos-n)),r&&(this._scrollPosition-=r,e-=r,t-=r,this._scrollError+=r),i.set(this._anchorIdx,{pos:this._anchorPos,size:a}),this._first=this._last=this._anchorIdx,this._physicalMin=this._anchorPos-n,this._physicalMax=this._anchorPos+a+o;this._physicalMin>e&&this._first>0;){let e=this._getSize(--this._first);void 0===e&&(this._stable=!1,e=this._getAverageSize());let t=this._metricsCache.getMarginSize(this._first);void 0===t&&(this._stable=!1,t=this._metricsCache.averageMarginSize),this._physicalMin-=e;let a=this._physicalMin;if(i.set(this._first,{pos:a,size:e}),this._physicalMin-=t,!1===this._stable&&!1===this._estimate)break}for(;this._physicalMax<t&&this._last<this.items.length-1;){let e=this._getSize(++this._last);void 0===e&&(this._stable=!1,e=this._getAverageSize());let t=this._metricsCache.getMarginSize(this._last);void 0===t&&(this._stable=!1,t=this._metricsCache.averageMarginSize);let a=this._physicalMax;if(i.set(this._last,{pos:a,size:e}),this._physicalMax+=e+t,!this._stable&&!this._estimate)break}let s=this._calculateError();s&&(this._physicalMin-=s,this._physicalMax-=s,this._anchorPos-=s,this._scrollPosition-=s,i.forEach(e=>e.pos-=s),this._scrollError+=s),this._stable&&(this._newPhysicalItems=this._physicalItems,this._newPhysicalItems.clear(),this._physicalItems=i)}_calculateError(){return 0===this._first?this._physicalMin:this._physicalMin<=0?this._physicalMin-this._first*this._delta:this._last===this.items.length-1?this._physicalMax-this._scrollSize:this._physicalMax>=this._scrollSize?this._physicalMax-this._scrollSize+(this.items.length-1-this._last)*this._delta:0}_reflow(){let{_first:e,_last:t}=this;super._reflow(),(-1===this._first&&-1==this._last||this._first===e&&this._last===t)&&this._resetReflowState()}_resetReflowState(){this._anchorIdx=null,this._anchorPos=null,this._stable=!0}_updateScrollSize(){let{averageMarginSize:e}=this._metricsCache;this._scrollSize=Math.max(1,this.items.length*(e+this._getAverageSize())+e)}get _delta(){let{averageMarginSize:e}=this._metricsCache;return this._getAverageSize()+e}_getItemPosition(e){return{[this._positionDim]:this._getPosition(e),[this._secondaryPositionDim]:0,["horizontal"===this.direction?"xOffset":"yOffset"]:-(this._metricsCache.getLeadingMarginValue(e,this.direction)??this._metricsCache.averageMarginSize)}}_getItemSize(e){return{[this._sizeDim]:this._getSize(e)||this._getAverageSize(),[this._secondarySizeDim]:this._itemSize[this._secondarySizeDim]}}_viewDim2Changed(){this._metricsCache.clear(),this._scheduleReflow()}}}};let i={};function a(e){let n=i[e];if(void 0!==n)return n.exports;let o=i[e]={id:e,exports:{}};return t[e](o,o.exports,a),o.exports}a.n=e=>{let t=e&&e.__esModule?()=>e.default:()=>e;return a.d(t,{a:t}),t},a.cw=e=>{var t;return()=>{if(e){var i=e;e=0,t={exports:{}},i.call(t.exports,t,t.exports)}return t.exports}},a.d=(e,t)=>{if(Array.isArray(t))for(var i=0;i<t.length;){var n=t[i++],o=t[i++],r=0===o?{enumerable:!0,value:t[i++]}:{enumerable:!0,get:o};a.o(e,n)||Object.defineProperty(e,n,r)}else for(var n in t)a.o(t,n)&&!a.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},a.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch{if("object"==typeof window)return window}}(),a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),a.r=e=>{Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.dn=e=>{var t=Object.getOwnPropertyDescriptor(e,"name");t&&(t.writable||!t.configurable)||Object.defineProperty(e,"name",{value:"default",configurable:!0})},a.g.importScripts&&(e=a.g.location+"");let n=a.g.document;if(!e&&n&&(n.currentScript?.tagName.toUpperCase()==="SCRIPT"&&(e=n.currentScript.src),!e)){let t=n.getElementsByTagName("script");if(t.length){let i=t.length-1;for(;i>-1&&(!e||!/^https?:/.test(e));)e=t[i--].src}}if(!e)throw Error("Automatic publicPath is not supported in this browser");a.p=e=e.replace(/^blob:|[?#].*$/g,"").replace(/\/[^/]+$/,"/"),a.b="u">typeof document&&document.baseURI||self.location.href,(()=>{"use strict";let e,t,i,n,o,r,s,l,c,d,u,p,h,g,m,f,y,b,v,_,w,x,k,E,S,C,T,I,D,A,O,R,M,L,N,P,z,U,F,j,B,H,V,q,Z,W,G,K,Y,Q,X,J,ee,et,ei,ea,en,eo,er,es,el,ec,ed,eu,ep,eh,eg,em,ef,ey,eb,ev,e_,ew,ex,ek,eE,eS,eC,eT,eI,eD,eA,e$,eO,eR,eM,eL,eN,eP,ez,eU,eF,ej,eB,eH,eV,eq,eZ,eW,eG,eK,eY,eQ,eX,eJ,e1,e0,e2;var e3,e4,e6,e5,e8,e7,e9=a.cw(function(e,t){var i=/["'&<>]/;e.exports=function(e){var t,a=""+e,n=i.exec(a);if(!n)return a;var o="",r=0,s=0;for(r=n.index;r<a.length;r++){switch(a.charCodeAt(r)){case 34:t=""";break;case 38:t="&";break;case 39:t="'";break;case 60:t="<";break;case 62:t=">";break;default:continue}s!==r&&(o+=a.substring(s,r)),s=r+1,o+=t}return s!==r?o+a.substring(s,r):o}}),te=a.cw(function(e,t){var i=Object.prototype.hasOwnProperty,a=Object.prototype.toString,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,r=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===a.call(e)},s=function(e){if(!e||"[object Object]"!==a.call(e))return!1;var t,n=i.call(e,"constructor"),o=e.constructor&&e.constructor.prototype&&i.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!n&&!o)return!1;for(t in e);return void 0===t||i.call(e,t)},l=function(e,t){n&&"__proto__"===t.name?n(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},c=function(e,t){if("__proto__"===t){if(!i.call(e,t))return;else if(o)return o(e,t).value}return e[t]};e.exports=function e(){var t,i,a,n,o,d,u=arguments[0],p=1,h=arguments.length,g=!1;for("boolean"==typeof u&&(g=u,u=arguments[1]||{},p=2),(null==u||"object"!=typeof u&&"function"!=typeof u)&&(u={});p<h;++p)if(t=arguments[p],null!=t)for(i in t)a=c(u,i),u!==(n=c(t,i))&&(g&&n&&(s(n)||(o=r(n)))?(o?(o=!1,d=a&&r(a)?a:[]):d=a&&s(a)?a:{},l(u,{name:i,newValue:e(g,d,n)})):void 0!==n&&l(u,{name:i,newValue:n}));return u}}),tt=a.cw(function(e,t){"function"!=typeof Object.assign&&(Object.assign=function(e){for(var t=[],i=1;i<arguments.length;i++)t[i-1]=arguments[i];if(!e)throw TypeError("Cannot convert undefined or null to object");for(var a=function(t){t&&Object.keys(t).forEach(function(i){return e[i]=t[i]})},n=0;n<t.length;n++)a(t[n]);return e})}),ti={};a.r(ti),a.d(ti,{attentionMarkers:()=>gk,contentInitial:()=>gy,disable:()=>gE,document:()=>gf,flow:()=>gv,flowInitial:()=>gb,insideSpan:()=>gx,string:()=>g_,text:()=>gw});var ta={};function tn(e){let t=Object.values(e).filter(e=>"number"==typeof e);return Object.entries(e).filter(([e,i])=>-1===t.indexOf(+e)).map(([e,t])=>t)}function to(e,t="|"){return e.map(e=>tT(e)).join(t)}function tr(e,t){return"bigint"==typeof t?t.toString():t}a.r(ta),a.d(ta,{boolean:()=>fP,booleanish:()=>fz,commaOrSpaceSeparated:()=>fH,commaSeparated:()=>fB,number:()=>fF,overloadedBoolean:()=>fU,spaceSeparated:()=>fj});class ts{constructor(e){this._getter=e,this._value=void 0}get value(){let e=this._getter;return void 0!==e&&(this._value=e(),this._getter=void 0),this._value}}function tl(e){return new ts(e)}function tc(e){let t=+!!e.startsWith("^"),i=e.endsWith("$")?e.length-1:e.length;return e.slice(t,i)}let td=Symbol("evaluating");function tu(e,t,i){Object.defineProperty(e,t,{value:i,writable:!0,enumerable:!0,configurable:!0})}function tp(e){let t=Object.getOwnPropertyDescriptor(e,"shape");return t?.get?t.get.raw:t?.value}function th(e){return tp(e._zod.def)??e._zod.def.shape}function tg(e,t,i){Object.defineProperty(e,t,{get(){let e=i();return tu(this,t,e),e},enumerable:!0,configurable:!0})}function tm(e,t,i){t in e?tu(e,t,i):e[t]=i}function tf(e,t,i,a){let n=th(t);for(let o of i){let i=Object.getOwnPropertyDescriptor(n,o);i.enumerable&&(i.get?tg(e,o,()=>{let e=t._zod.def.shape[o];return a?a(e,o):e}):tm(e,o,a?a(i.value,o):i.value))}}function ty(...e){let t={};for(let i of e)Object.assign(t,Object.getOwnPropertyDescriptors(i));return Object.defineProperties({},t)}let tb="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function tv(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)}let t_=tl(()=>{if(tJ.jitless||"u">typeof navigator&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{return Function(""),!0}catch{return!1}});function tw(e){if(!1===tv(e))return!1;let t=e.constructor;if(void 0===t||"function"!=typeof t)return!0;let i=t.prototype;return!1!==tv(i)&&!1!==Object.prototype.hasOwnProperty.call(i,"isPrototypeOf")}function tx(e){return tw(e)?{...e}:Array.isArray(e)?[...e]:e instanceof Map?new Map(e):e instanceof Set?new Set(e):e}let tk=new Set(["string","number","symbol"]);function tE(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function tS(e,t,i){let a=new e._zod.constr(t??e._zod.def);return(!t||i?.parent)&&(a._zod.parent=e),a}function tC(e){if(!e)return{};if("string"==typeof e)return{error:()=>e};if(e?.message!==void 0){if(e?.error!==void 0)throw Error("Cannot specify both `message` and `error` params");e.error=e.message}return(delete e.message,"string"==typeof e.error)?{...e,error:()=>e.error}:e}function tT(e){return"bigint"==typeof e?e.toString()+"n":"string"==typeof e?`"${e}"`:`${e}`}let tI={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-0x80000000,0x7fffffff],uint32:[0,0xffffffff],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]},tD={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function tA(e,t){let i=th(e),a=[];for(let e of Reflect.ownKeys(t)){if(!Object.getOwnPropertyDescriptor(i,e)?.enumerable)throw Error(`Unrecognized key: "${String(e)}"`);t[e]&&a.push(e)}return a}function t$(e,t){let i={};tf(i,e,Reflect.ownKeys(th(e)));for(let e of Reflect.ownKeys(t)){let a=Object.getOwnPropertyDescriptor(t,e);a.enumerable&&(a.get?tg(i,e,()=>t[e]):tm(i,e,a.value))}return i}function tO(e,t,i,a="partial"){let n=t._zod.def.checks;if(n&&n.length>0)throw Error(`.${a}() cannot be used on object schemas containing refinements`);let o=i?new Set(tA(t,i)):void 0,r={};return tf(r,t,Reflect.ownKeys(th(t)),e&&((t,i)=>o&&!o.has(i)?t:new e({type:"optional",innerType:t}))),tS(t,ty(t._zod.def,{shape:r,checks:[]}))}function tR(e,t=0){if(!0===e.aborted)return!0;for(let i=t;i<e.issues.length;i++)if(e.issues[i]?.continue!==!0)return!0;return!1}function tM(e,t){return t.map(t=>(t.path??(t.path=[]),t.path.unshift(e),t))}function tL(e){return"string"==typeof e?e:e?.message}function tN(e,t,i){var a;for(let n=t;n<e.length;n++)(a=e[n]).schema??(a.schema=i)}function tP(e,t,i){let a=e.inst?._zod?.traits;a?.has("$ZodType")&&(a.has("$ZodCheck")?e.schema??(e.schema=e.inst):e.schema=e.inst);let n=e.schema!==e.inst?e.schema?._zod.def?.error:void 0,o=e.message?e.message:tL(e.inst?._zod.def?.error?.(e))??tL(n?.(e))??tL(t?.error?.(e))??tL(i.customError?.(e))??tL(i.localeError?.(e))??"Invalid input",r={};for(let t of Object.keys(e))"inst"!==t&&"schema"!==t&&"continue"!==t&&"input"!==t&&"__proto__"!==t&&(r[t]=e[t]);return r.path??(r.path=[]),r.message=o,t?.reportInput&&(r.input=e.input),r}function tz(e){return e instanceof Set?"set":e instanceof Map?"map":e instanceof File?"file":"unknown"}let tU=/[\uD800-\uDBFF]/;function tF(e){let t=e.length;if(!tU.test(e))return t;let i=t;for(let a=0;a<t-1;a++)(64512&e.charCodeAt(a))==55296&&(64512&e.charCodeAt(a+1))==56320&&(i--,a++);return i}function tj(e){return Array.isArray(e)?"array":"string"==typeof e?"string":"unknown"}function tB(...e){let[t,i,a]=e;return"string"==typeof t?{message:t,code:"custom",input:i,inst:a}:{...t}}function tH(e,t,i,a=!0){return Object.defineProperty(e,t,{configurable:!0,writable:!0,enumerable:a,value:i}),i}function tV(e,t){for(let i in e){let a=e[i];Object.defineProperty(t,i,{configurable:!0,enumerable:!0,get(){return tH(this,i,a(this))},set(e){tH(this,i,e)}})}return t}let tq=!1,tZ={configurable:!0,get(){tq=!0}};function tW(t,i,a){let n=Object.getPrototypeOf(t._zod);if(i in n&&e!==t._zod){e=void 0;return}e=t._zod,Object.defineProperty(n,i,{configurable:!0,get(){Object.defineProperty(this,i,tZ);let e=tq;tq=!1;try{let t=a(this);return tq?delete this[i]:Object.defineProperty(this,i,{configurable:!0,writable:!0,value:t}),tq=tq||e,t}catch(t){throw delete this[i],tq=tq||e,t}},set(e){Object.defineProperty(this,i,{configurable:!0,writable:!0,value:e})}})}let tG={value:void 0,enumerable:!1},tK="captureStackTrace"in Error?Error:null;function tY(e,t,i,a){function n(e){this.def=e,this.constr=c,this.traits=new Set}n.prototype={};let o=i&&new WeakSet;function r(a,r){if(a._zod){if(a._zod.traits.has(e))return}else{tG.value=new n(r);try{Object.defineProperty(a,"_zod",tG)}finally{tG.value=void 0}}if(a._zod.traits.add(e),t(a,r),o){let e=Object.getPrototypeOf(a),t=a._zod.constr.prototype,n=e;for(;n&&n!==t;)n=Object.getPrototypeOf(n);let r=n??e;if(!o.has(r)){o.add(r);for(let e in i){let t=Object.getOwnPropertyDescriptor(i,e);t.get?Object.defineProperty(r,e,{...t,enumerable:!1}):function(e,t,i){Object.defineProperty(e,t,{configurable:!0,get(){return this==null?i:tH(this,t,i.bind(this))},set(e){tH(this,t,e)}})}(r,e,t.value)}}}let s=c.prototype;for(let e in s)Object.prototype.hasOwnProperty.call(s,e)&&(e in a||(a[e]=s[e].bind(a)))}let s=a?.Parent??Object;class l extends s{}function c(e){let t=a?.Parent?function(e){let t=tK;if(t){let i=t.stackTraceLimit;if("number"==typeof i){try{t.stackTraceLimit=0}catch{return tK=null,new e}try{return new e}finally{t.stackTraceLimit=i}}}return new e}(l):this;r(t,e);let i=t._zod.deferred;if(i){for(let e of i)e();t._zod.deferred=void 0}let n=globalThis.__zod_globalConfig?.postProcessor;return n&&n(t),t}return Object.defineProperty(l,"name",{value:e}),Object.defineProperty(c,"init",{value:r}),Object.defineProperty(c,Symbol.hasInstance,{value:t=>!!a?.Parent&&t instanceof a.Parent||t?._zod?.traits?.has(e)}),Object.defineProperty(c,"name",{value:e}),c}class tQ extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class tX extends Error{constructor(e){super(`Encountered unidirectional transform during encode: ${e}`),this.name="ZodEncodeError"}}(wv=globalThis).__zod_globalConfig??(wv.__zod_globalConfig={});let tJ=globalThis.__zod_globalConfig;function t1(e){return e&&Object.assign(tJ,e),tJ}class t0 extends Error{constructor(){super("Cannot parse a reference cycle that closes through a transform"),this.name="ZodCyclicError"}}let t2="~memo",t3=[];function t4(e){return null!==e&&"object"==typeof e}function t6(e){return e.map(e=>e.path?{...e,path:e.path.slice()}:{...e})}let t5=new WeakMap,t8=[],t7={alloc(e,i,a){let n=t;if(!n)return a;t=void 0;let o={value:a,issues:null};return n.set(i.value,o),t8.push(o),a},guard(e){var t;(t=e._zod).deferred??(t.deferred=[]),e._zod.deferred.push(()=>{let t=e._zod.parse,i=(e,i)=>{var a,n;let o;if("backward"!==i.direction&&(a=i,n=e.value,void 0!==(o=a[t2]?.backEdges)&&t4(n)&&o.has(n)))throw new t0;return t(e,i)};e._zod.parse=i,e._zod.run===t&&(e._zod.run=i)})},attach(e){var i;let a,n,o,r=!1;(i=e._zod).deferred??(i.deferred=[]),e._zod.deferred.push(()=>{let i=e._zod.parse,s=(l,c)=>{let d;if(void 0===a){let t=function e(t,i,a){var n,o;let r=t5.get(t);if(void 0!==r)return 2*!!r;if(i.has(t))return 2;i.add(t);let s=0,l=t=>{if(2!==s&&t?._zod){let n=e(t,i,a);n>s&&(s=n)}},c=e=>{e>s&&(s=e)},d=t._zod.def;switch(d.type){case"object":{let t=tp(d);c(t?((t,n)=>{let o=0;for(let r of Reflect.ownKeys(t)){let s=Object.getOwnPropertyDescriptor(t,r);if(n&&!s.enumerable)continue;let l=s.get?1:s.value?._zod?e(s.value,i,a):0;l>o&&(o=l)}return o})(t,!0):1),l(d.catchall);break}case"array":l(d.element);break;case"tuple":for(let e of d.items)l(e);l(d.rest);break;case"record":case"map":l(d.keyType),l(d.valueType);break;case"set":l(d.valueType);break;case"union":for(let e of d.options)l(e);break;case"intersection":l(d.left),l(d.right);break;case"optional":case"nullable":case"default":case"prefault":case"catch":case"readonly":case"nonoptional":case"promise":case"success":l(d.innerType);break;case"pipe":l(d.in),l(d.out);break;case"function":l(d.input),l(d.output);break;case"lazy":{let n=d._cachedInner??(a?t._zod.innerType:void 0);c(n?e(n,i,!1):1);break}case"template_literal":case"string":case"number":case"int":case"boolean":case"bigint":case"symbol":case"undefined":case"null":case"void":case"never":case"any":case"unknown":case"date":case"nan":case"enum":case"literal":case"file":case"transform":case"custom":break;default:for(let e in d){let t=Object.getOwnPropertyDescriptor(d,e);if(!t||t.get)continue;let i=t.value;if(i&&"object"==typeof i){if(i._zod)l(i);else if(Array.isArray(i))for(let e of i)l(e)}}}return i.delete(t),n=t,1!==(o=s)&&t5.set(n,2===o),o}(e,new Set,!1);if(0===t)return e._zod.parse=i,e._zod.run===s&&(e._zod.run=i),i(l,c);2===t||r?a=!0:r=!0}let u=l.value;if(!t4(u))return i(l,c);let p=c[t2];if(p||(p={buckets:new WeakMap,backEdges:void 0},c[t2]=p),n===c)d=o;else{var h;let t;(t=(h=p).buckets.get(e))||(t=new WeakMap,h.buckets.set(e,t)),d=t,n=c,o=d}let g=d.get(u);if(g)return l.value=g.value,g.issues?g.issues.length&&l.issues.push(...t6(g.issues)):(l.memo=!0,p.backEdges??(p.backEdges=new WeakSet),p.backEdges.add(g.value)),l;t=d;let m=t8.length,f=i(l,c);t=void 0;let y=t8.length>m?t8.pop():void 0;return f instanceof Promise?f.then(e=>(y&&(y.issues=e.issues.length?t6(e.issues):t3),e)):(y&&(y.issues=f.issues.length?t6(f.issues):t3),f)};e._zod.parse=s,e._zod.run===i&&(e._zod.run=s)})}},t9=/^[cC][0-9a-z]{6,}$/,ie=/^[0-9a-z]+$/,it=/^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/,ii=/^[0-9a-vA-V]{20}$/,ia=/^[A-Za-z0-9]{27}$/,io=/^[a-zA-Z0-9_-]{21}$/,ir=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,is=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,il=e=>e?RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,ic=/^(?:[A-Za-z0-9_'+\-]+\.)*[A-Za-z0-9_'+\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,id=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,iu=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,ip=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,ih=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,ig=/^https?$/,im=/^\+[1-9]\d{6,14}$/,iy="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))",ib=RegExp(`^${iy}$`);function iv(e){let t="(?:[01]\\d|2[0-3]):[0-5]\\d";return"number"==typeof e.precision?-1===e.precision?`${t}`:0===e.precision?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:e.seconds?`${t}:[0-5]\\d(?:\\.\\d+)?`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}let i_=/^[\s\S]{0,}$/,iw=/^-?\d+$/,ix=/^-?\d+(?:\.\d+)?$/,ik=/^(?:true|false)$/i,iE=/^null$/i,iS=/^[^A-Z]*$/,iC=/^[^a-z]*$/,iT=tY("$ZodCheck",(e,t)=>{var i;e._zod??(e._zod={}),e._zod.def=t,(i=e._zod).onattach??(i.onattach=[])}),iI=e=>{let t=e.value;return null!=t&&void 0!==t.size},iD=e=>{let t=e.value;return null!=t&&void 0!==t.length},iA={number:"number",bigint:"bigint",object:"date"},i$=tY("$ZodCheckLessThan",(e,t)=>{iT.init(e,t);let i=iA[typeof t.value];e._zod.check=a=>{(t.inclusive?a.value<=t.value:a.value<t.value)||a.issues.push({origin:iA[typeof a.value]??i,code:"too_big",maximum:"object"==typeof t.value?t.value.getTime():t.value,input:a.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),iO=tY("$ZodCheckGreaterThan",(e,t)=>{iT.init(e,t);let i=iA[typeof t.value];e._zod.check=a=>{(t.inclusive?a.value>=t.value:a.value>t.value)||a.issues.push({origin:iA[typeof a.value]??i,code:"too_small",minimum:"object"==typeof t.value?t.value.getTime():t.value,input:a.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),iR=tY("$ZodCheckMultipleOf",(e,t)=>{iT.init(e,t),e._zod.check=i=>{let a,n,o;if(typeof i.value!=typeof t.value)throw Error("Cannot mix number and bigint in multiple_of check.");("bigint"==typeof i.value?t.value!==BigInt(0)&&i.value%t.value===BigInt(0):0==(n=Math.round(a=i.value/t.value),o=4*Number.EPSILON*Math.max(Math.abs(a),1),Math.abs(a-n)<o?0:a-n))||i.issues.push({origin:typeof i.value,code:"not_multiple_of",divisor:t.value,input:i.value,inst:e,continue:!t.abort})}}),iM=tY("$ZodCheckNumberFormat",(e,t)=>{iT.init(e,t),t.format=t.format||"float64";let i=t.format?.includes("int"),a=i?"int":"number",[n,o]=tI[t.format];e._zod.check=r=>{let s=r.value;if(i){if(!Number.isInteger(s))return void r.issues.push({expected:a,format:t.format,code:"invalid_type",continue:!1,input:s,inst:e});if(!Number.isSafeInteger(s))return void(s>0?r.issues.push({input:s,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:a,inclusive:!0,continue:!t.abort}):r.issues.push({input:s,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:a,inclusive:!0,continue:!t.abort}))}s<n&&r.issues.push({origin:"number",input:s,code:"too_small",minimum:n,inclusive:!0,inst:e,continue:!t.abort}),s>o&&r.issues.push({origin:"number",input:s,code:"too_big",maximum:o,inclusive:!0,inst:e,continue:!t.abort})}}),iL=tY("$ZodCheckMaxSize",(e,t)=>{var i;iT.init(e,t),(i=e._zod.def).when??(i.when=iI),e._zod.check=i=>{let a=i.value;a.size<=t.maximum||i.issues.push({origin:tz(a),code:"too_big",maximum:t.maximum,inclusive:!0,input:a,inst:e,continue:!t.abort})}}),iN=tY("$ZodCheckMinSize",(e,t)=>{var i;iT.init(e,t),(i=e._zod.def).when??(i.when=iI),e._zod.check=i=>{let a=i.value;a.size>=t.minimum||i.issues.push({origin:tz(a),code:"too_small",minimum:t.minimum,inclusive:!0,input:a,inst:e,continue:!t.abort})}}),iP=tY("$ZodCheckSizeEquals",(e,t)=>{var i;iT.init(e,t),(i=e._zod.def).when??(i.when=iI),e._zod.check=i=>{let a=i.value,n=a.size;if(n===t.size)return;let o=n>t.size;i.issues.push({origin:tz(a),...o?{code:"too_big",maximum:t.size}:{code:"too_small",minimum:t.size},inclusive:!0,exact:!0,input:i.value,inst:e,continue:!t.abort})}}),iz=tY("$ZodCheckMaxLength",(e,t)=>{var i;iT.init(e,t),(i=e._zod.def).when??(i.when=iD),e._zod.check=i=>{let a=i.value,n=a.length;if(("string"==typeof a&&n>t.maximum?tF(a):n)<=t.maximum)return;let o=tj(a);i.issues.push({origin:o,code:"too_big",maximum:t.maximum,inclusive:!0,input:a,inst:e,continue:!t.abort})}}),iU=tY("$ZodCheckMinLength",(e,t)=>{var i;iT.init(e,t),(i=e._zod.def).when??(i.when=iD),e._zod.check=i=>{let a=i.value,n=a.length;if(("string"==typeof a&&n>=t.minimum&&n<2*t.minimum?tF(a):n)>=t.minimum)return;let o=tj(a);i.issues.push({origin:o,code:"too_small",minimum:t.minimum,inclusive:!0,input:a,inst:e,continue:!t.abort})}}),iF=tY("$ZodCheckLengthEquals",(e,t)=>{var i;iT.init(e,t),(i=e._zod.def).when??(i.when=iD),e._zod.check=i=>{let a=i.value,n=a.length,o="string"==typeof a&&n>=t.length&&n<=2*t.length?tF(a):n;if(o===t.length)return;let r=tj(a),s=o>t.length;i.issues.push({origin:r,...s?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:i.value,inst:e,continue:!t.abort})}}),ij=tY("$ZodCheckStringFormat",(e,t)=>{var i,a;iT.init(e,t),t.pattern?(i=e._zod).check??(i.check=i=>{t.pattern.lastIndex=0,t.pattern.test(i.value)||i.issues.push({origin:"string",code:"invalid_format",format:t.format,input:i.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(a=e._zod).check??(a.check=()=>{})}),iB=tY("$ZodCheckRegex",(e,t)=>{ij.init(e,t),e._zod.check=i=>{t.pattern.lastIndex=0,t.pattern.test(i.value)||i.issues.push({origin:"string",code:"invalid_format",format:"regex",input:i.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),iH=tY("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=iS),ij.init(e,t)}),iV=tY("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=iC),ij.init(e,t)}),iq=tY("$ZodCheckIncludes",(e,t)=>{iT.init(e,t);let i=tE(t.includes),a=new RegExp("number"==typeof t.position?`^.{${t.position},}${i}`:i);t.pattern=a,e._zod.check=i=>{i.value.includes(t.includes,t.position)||i.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:i.value,inst:e,continue:!t.abort})}}),iZ=tY("$ZodCheckStartsWith",(e,t)=>{iT.init(e,t);let i=RegExp(`^${tE(t.prefix)}.*`);t.pattern??(t.pattern=i),e._zod.check=i=>{i.value.startsWith(t.prefix)||i.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:i.value,inst:e,continue:!t.abort})}}),iW=tY("$ZodCheckEndsWith",(e,t)=>{iT.init(e,t);let i=RegExp(`.*${tE(t.suffix)}$`);t.pattern??(t.pattern=i),e._zod.check=i=>{i.value.endsWith(t.suffix)||i.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:i.value,inst:e,continue:!t.abort})}});function iG(e,t,i){e.issues.length&&t.issues.push(...tM(i,e.issues))}let iK=tY("$ZodCheckProperties",(e,t)=>{let i;iT.init(e,t),tH(e,Symbol.iterator,function*(){yield e},!1),e._zod.check=a=>{let n;if(null==a.value)return void a.issues.push({expected:"object",code:"invalid_type",input:a.value,inst:e});i??(i=Reflect.ownKeys(t.shape).map(e=>[e,t.shape[e]]));let o=a.value;for(let[e,t]of i){let i=t._zod.run({value:o[e],issues:[]},{});i instanceof Promise?(n??(n=[]),n.push(i.then(t=>iG(t,a,e)))):iG(i,a,e)}if(n)return Promise.all(n).then(()=>void 0)}}),iY=tY("$ZodCheckOverwrite",(e,t)=>{iT.init(e,t),e._zod.check=e=>{e.value=t.tx(e.value)}});class iQ{constructor(e=[],t={}){this.content=[],this.indent=0,this.args=e,this.closed=t}indented(e){this.indent+=1;try{e(this)}finally{this.indent-=1}}write(e){if("function"==typeof e){e(this,{execution:"sync"}),e(this,{execution:"async"});return}let t=e.split(` `).filter(e=>e),i=Math.min(...t.map(e=>e.length-e.trimStart().length));for(let e of t.map(e=>e.slice(i)).map(e=>" ".repeat(2*this.indent)+e))this.content.push(e)}compile(){let e=Function,t=this?.content??[""];return new e(...Object.keys(this.closed),`return function (${this.args.join(", ")}) { ${t.join(` `)} };`)(...Object.values(this.closed))}}let iX={get:function(){let e=this._zod;return e.message??(e.message=JSON.stringify(e.def,tr,2)),e.message},set:function(e){this._zod.message=e},enumerable:!0,configurable:!0},iJ={value:void 0,enumerable:!1},i1=new WeakSet([Object.prototype,Error.prototype]),i0=(e,t)=>{e.name="$ZodError",iJ.value=t,Object.defineProperty(e,"issues",iJ),iJ.value=void 0,Object.defineProperty(e,"message",iX);let i=Object.getPrototypeOf(e);i1.has(i)||(i1.add(i),Object.defineProperty(i,"toString",{configurable:!0,enumerable:!1,get(){let e=()=>this.message;return Object.defineProperty(this,"toString",{value:e,configurable:!0,writable:!0}),e},set(e){Object.defineProperty(this,"toString",{value:e,configurable:!0,writable:!0})}}))},i2=tY("$ZodError",i0),i3=tY("$ZodError",i0,void 0,{Parent:Error});function i4(e,t){return{callee:t?.callee??e,Err:t?.Err}}let i6=e=>{let t=(i,a,n,o)=>{let r=n?{...n,async:!1}:{async:!1},s=i._zod.run({value:a,issues:[]},r);if(s instanceof Promise)throw new tQ;if(s.issues.length){let i=new(o?.Err??e)(s.issues.map(e=>tP(e,r,t1())));throw tb(i,o?.callee??t),i}return s.value};return t},i5=i6(i3),i8=e=>{let t=async(i,a,n,o)=>{let r=n?{...n,async:!0}:{async:!0},s=i._zod.run({value:a,issues:[]},r);if(s instanceof Promise&&(s=await s),s.issues.length){let i=new(o?.Err??e)(s.issues.map(e=>tP(e,r,t1())));throw tb(i,o?.callee??t),i}return s.value};return t},i7=i8(i3),i9=e=>(t,i,a)=>{let n=a?{...a,async:!1}:{async:!1},o=t._zod.run({value:i,issues:[]},n);if(o instanceof Promise)throw new tQ;return o.issues.length?ae(e,o.issues,n):{success:!0,data:o.value}};function ae(e,t,i){let a;return{success:!1,get error(){return a||(a=new e(t.map(e=>tP(e,i,t1()))),t=void 0,i=void 0),a},set error(e){a=e,t=void 0,i=void 0}}}let at=e=>async(t,i,a)=>{let n=a?{...a,async:!0}:{async:!0},o=t._zod.run({value:i,issues:[]},n);return o instanceof Promise&&(o=await o),o.issues.length?ae(e,o.issues,n):{success:!0,data:o.value}},ai=Symbol.for("zod.compile.invalid"),aa=Symbol.for("zod.compile.fallback"),an={major:4,minor:6,patch:5},ao=tY("$ZodType",(e,t)=>{var i;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=an;let a=e._zod.def.checks,n=e._zod.traits.has("$ZodCheck")?[e,...a??[]]:a?.length?[...a]:[];for(let t of n)for(let i of t._zod.onattach)i(e);if(0===n.length)(i=e._zod).deferred??(i.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{let t=(t,i,a)=>{let n;if(t.memo)return t;let o=tR(t);for(let r of i){if(r._zod.def.when){if(function(e,t=0){if(!0===e.aborted)return!0;for(let i=t;i<e.issues.length;i++)if(e.issues[i]?.continue===!1)return!0;return!1}(t)||!r._zod.def.when(t))continue}else if(o)continue;let i=t.issues.length,s=r._zod.check(t);if(s instanceof Promise&&a?.async===!1)throw new tQ;if(n||s instanceof Promise)n=(n??Promise.resolve()).then(async()=>{await s,t.issues.length!==i&&(tN(t.issues,i,e),o||(o=tR(t,i)))});else{if(t.issues.length===i)continue;tN(t.issues,i,e),o||(o=tR(t,i))}}return n?n.then(()=>t):t},i=(i,a,o)=>{if(tR(i))return i.aborted=!0,i;let r=t(a,n,o);if(r instanceof Promise){if(!1===o.async)throw new tQ;return r.then(t=>e._zod.parse(t,o))}return e._zod.parse(r,o)};e._zod.run=(a,o)=>{if(o.skipChecks)return e._zod.parse(a,o);if("backward"===o.direction){let t=e._zod.parse({value:a.value,issues:[]},{...o,skipChecks:!0});return t instanceof Promise?t.then(e=>i(e,a,o)):i(t,a,o)}let r=e._zod.parse(a,o);if(r instanceof Promise){if(!1===o.async)throw new tQ;return r.then(e=>t(e,n,o))}return t(r,n,o)}}},{get"~standard"(){return tH(this,"~standard",as(this),!1)},set"~standard"(e){tH(this,"~standard",e)}}),ar=(e,t)=>e.issues.length?{issues:e.issues.map(e=>tP(e,t,t1()))}:{value:e.value};function as(e){return{validate:t=>{let i={async:!1};try{let a=e._zod.run({value:t,issues:[]},i);if(!(a instanceof Promise))return ar(a,i)}catch{}return async function(e,t){let i={async:!0};return ar(await e._zod.run({value:t,issues:[]},i),i)}(e,t)},vendor:"zod",version:1}}let al=tY("$ZodString",(e,t)=>{ao.init(e,t),e._zod.pattern=t.pattern??i_,e._zod.parse=(i,a)=>{if(t.coerce)try{i.value=String(i.value)}catch{}return"string"==typeof i.value||i.issues.push({expected:"string",code:"invalid_type",input:i.value,inst:e}),i}}),ac=tY("$ZodStringFormat",(e,t)=>{ij.init(e,t),al.init(e,t)}),ad=tY("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=is),ac.init(e,t)}),au=tY("$ZodUUID",(e,t)=>{if(t.version){let e={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(void 0===e)throw Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=il(e))}else t.pattern??(t.pattern=il());ac.init(e,t)}),ap=tY("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=ic),ac.init(e,t)});function ah(e){try{if("u">typeof URL&&"function"==typeof URL.canParse)return URL.canParse(e);return new URL(e),!0}catch{return!1}}let ag=/[\t\n\r]/g;function am(e){return e.replace(ag,"")}let af=tY("$ZodURL",(e,t)=>{ac.init(e,t),e._zod.check=i=>{try{var a,n;let o=i.value.trim(),r="normalize"in t||"hostname"in t||"protocol"in t?function(e,t){if(!t.normalize&&t.protocol?.source===ig.source&&!/^https?:\/\//i.test(e))return 1;try{if("u">typeof URL){let t=URL;if("function"==typeof t.parse)return t.parse(e)??2}return new URL(e)}catch{return 2}}(o,t):ah(o)||2;if(1===r)return void i.issues.push({code:"invalid_format",format:"url",note:"Invalid URL format",input:i.value,inst:e,continue:!t.abort});if(2===r)return void i.issues.push({code:"invalid_format",format:"url",input:i.value,inst:e,continue:!t.abort});if(!0===r){i.value=am(o);return}t.hostname&&((a=t.hostname).lastIndex=0,!a.test(r.hostname))&&i.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:t.hostname.source,input:i.value,inst:e,continue:!t.abort}),t.protocol&&((n=t.protocol).lastIndex=0,!n.test(r.protocol.endsWith(":")?r.protocol.slice(0,-1):r.protocol))&&i.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:i.value,inst:e,continue:!t.abort}),i.value=t.normalize?r.href:am(o);return}catch{i.issues.push({code:"invalid_format",format:"url",input:i.value,inst:e,continue:!t.abort})}}}),ay=tY("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=RegExp("^(?=[\\s\\S]*[\\p{Extended_Pictographic}\\p{Regional_Indicator}\\u20E3])[\\p{Extended_Pictographic}\\p{Emoji_Component}]+$","u")),ac.init(e,t)}),ab=tY("$ZodNanoID",(e,t)=>{var i;if(void 0!==t.length&&(!Number.isInteger(t.length)||t.length<1))throw Error(`Invalid nanoid length: ${t.length}`);t.pattern??(t.pattern=void 0===t.length?io:(i=t.length,RegExp(`^[a-zA-Z0-9_-]{${i}}$`))),ac.init(e,t)}),av=tY("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=t9),ac.init(e,t)}),a_=tY("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=ie),ac.init(e,t)}),aw=tY("$ZodULID",(e,t)=>{t.pattern??(t.pattern=it),ac.init(e,t)}),ax=tY("$ZodXID",(e,t)=>{t.pattern??(t.pattern=ii),ac.init(e,t)}),ak=tY("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=ia),ac.init(e,t)}),aE=tY("$ZodISODateTime",(e,t)=>{let i,a,n;t.pattern??(i=["Z"],t.offset&&i.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)"),a=`${iv({precision:t.precision,seconds:!0})}(?:${i.join("|")})`,n=t.local?`${a}|${iv({precision:t.precision})}`:a,t.pattern=RegExp(`^${iy}T(?:${n})$`)),ac.init(e,t)}),aS=tY("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=ib),ac.init(e,t)}),aC=tY("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=RegExp(`^${iv(t)}$`)),ac.init(e,t)}),aT=tY("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=ir),ac.init(e,t)}),aI=tY("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=id),ac.init(e,t)}),aD=/^[0-9a-fA-F:.]+$/;function aA(e){return!!aD.test(e)&&ah(`http://[${e}]`)}let a$=tY("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=iu),ac.init(e,t),e._zod.check=i=>{aA(i.value)||i.issues.push({code:"invalid_format",format:"ipv6",input:i.value,inst:e,continue:!t.abort})}}),aO=tY("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=ip),ac.init(e,t)}),aR=tY("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=ih),ac.init(e,t),e._zod.check=i=>{!function(e){let t=e.split("/");if(2!==t.length)return!1;let[i,a]=t;if(!a)return!1;let n=Number(a);return`${n}`===a&&!(n<0)&&!(n>128)&&aA(i)}(i.value)&&i.issues.push({code:"invalid_format",format:"cidrv6",input:i.value,inst:e,continue:!t.abort})}});function aM(e){if(""===e)return!0;if(/\s/.test(e)||e.length%4!=0)return!1;try{return atob(e),!0}catch{return!1}}let aL=/^[0-9a-zA-Z+/]*={0,2}$/,aN=tY("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=aL),ac.init(e,t),e._zod.check=i=>{aM(i.value)||i.issues.push({code:"invalid_format",format:"base64",input:i.value,inst:e,continue:!t.abort})}}),aP=/^[A-Za-z0-9_-]*$/,az=tY("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=aP),ac.init(e,t),e._zod.check=i=>{!function(e){if(!aP.test(e))return!1;let t=e.replace(/[-_]/g,e=>"-"===e?"+":"/");return aM(t.padEnd(4*Math.ceil(t.length/4),"="))}(i.value)&&i.issues.push({code:"invalid_format",format:"base64url",input:i.value,inst:e,continue:!t.abort})}}),aU=tY("$ZodE164",(e,t)=>{t.pattern??(t.pattern=im),ac.init(e,t)}),aF=tY("$ZodJWT",(e,t)=>{ac.init(e,t),e._zod.check=i=>{!function(e,t=null){try{let i=e.split(".");if(3!==i.length)return!1;let[a]=i;if(!a)return!1;let n=JSON.parse(atob(a));if("typ"in n&&n?.typ!=="JWT"||!n.alg||t&&(!("alg"in n)||n.alg!==t))return!1;return!0}catch{return!1}}(i.value,t.alg)&&i.issues.push({code:"invalid_format",format:"jwt",input:i.value,inst:e,continue:!t.abort})}}),aj=tY("$ZodNumber",(e,t)=>{ao.init(e,t),e._zod.pattern=ix,e._zod.parse=(i,a)=>{if(t.coerce)try{i.value=Number(i.value)}catch{}let n=i.value;if("number"==typeof n&&!Number.isNaN(n)&&Number.isFinite(n))return i;let o="number"==typeof n?Number.isNaN(n)?"NaN":Number.isFinite(n)?void 0:String(n):void 0;return i.issues.push({expected:"number",code:"invalid_type",input:n,inst:e,...o?{received:o}:{}}),i}}),aB=tY("$ZodNumberFormat",(e,t)=>{iM.init(e,t),aj.init(e,t)}),aH=tY("$ZodBoolean",(e,t)=>{ao.init(e,t),e._zod.pattern=ik,e._zod.parse=(i,a)=>{if(t.coerce)try{i.value=!!i.value}catch{}let n=i.value;return"boolean"==typeof n||i.issues.push({expected:"boolean",code:"invalid_type",input:n,inst:e}),i}}),aV=tY("$ZodNull",(e,t)=>{ao.init(e,t),e._zod.pattern=iE,e._zod.values=new Set([null]),e._zod.parse=(t,i)=>{let a=t.value;return null===a||t.issues.push({expected:"null",code:"invalid_type",input:a,inst:e}),t}}),aq=tY("$ZodAny",(e,t)=>{ao.init(e,t),e._zod.parse=e=>e}),aZ=tY("$ZodUnknown",(e,t)=>{ao.init(e,t),e._zod.parse=e=>e}),aW=tY("$ZodNever",(e,t)=>{ao.init(e,t),e._zod.parse=(t,i)=>(t.issues.push({expected:"never",code:"invalid_type",input:t.value,inst:e}),t)}),aG=tY("$ZodVoid",(e,t)=>{ao.init(e,t),e._zod.parse=(t,i)=>{let a=t.value;return void 0===a||t.issues.push({expected:"void",code:"invalid_type",input:a,inst:e}),t}}),aK=tY("$ZodDate",(e,t)=>{ao.init(e,t),e._zod.parse=(i,a)=>{if(t.coerce)try{i.value=new Date(i.value)}catch{}let n=i.value,o=n instanceof Date;return o&&!Number.isNaN(n.getTime())||i.issues.push({expected:"date",code:"invalid_type",input:n,...o?{received:"Invalid Date"}:{},inst:e}),i}});function aY(e,t,i){e.issues.length&&t.issues.push(...tM(i,e.issues)),t.value[i]=e.value}let aQ=tY("$ZodArray",(e,t)=>{ao.init(e,t);let i=tJ.memoizer;i?.attach(e),e._zod.parse=(a,n)=>{let o=a.value;if(!Array.isArray(o))return a.issues.push({expected:"array",code:"invalid_type",input:o,inst:e}),a;a.value=i?i.alloc(e,a,Array(o.length),n):Array(o.length);let r=[],s=n?.abortEarly;for(let e=0;e<o.length;e++){let i=o[e],l=t.element._zod.run({value:i,issues:[]},n);if(l instanceof Promise)r.push(l.then(t=>aY(t,a,e)));else if(aY(l,a,e),s&&0!==l.issues.length&&tR(l))break}return r.length?Promise.all(r).then(()=>a):a}});function aX(e,t,i,a,n,o){let r=i in a,s="optional"===o;if(r||!s||"optional"!==n){if(e.issues.length){if(void 0!==n&&s&&!r)return;t.issues.push(...tM(i,e.issues))}if(!r&&void 0===n){e.issues.length||t.issues.push({code:"invalid_type",expected:"nonoptional",input:void 0,path:[i]});return}void 0===e.value?(r||"defaulted"===n&&!s)&&(t.value[i]=void 0):t.value[i]=e.value}}let aJ=[];function a1(e){var t;let i=Object.keys(e.shape),a=Object.getOwnPropertySymbols(e.shape),n=a.length?a:aJ,o=n.length?[...i,...n]:i;for(let t of o)if(!e.shape?.[t]?._zod?.traits?.has("$ZodType"))throw Error(`Invalid element at key "${String(t)}": expected a Zod schema`);let r=Object.keys(t=e.shape).filter(e=>void 0!==t[e]._zod.optin&&"optional"===t[e]._zod.optout);return{...e,allKeys:o,symbolKeys:n,keySet:new Set(i),numKeys:i.length,optionalKeys:new Set(r)}}function a0(e,t,i,a,n,o,r){let s=[],l=n.keySet,c=n.catchall._zod,d=c.def.type,u=c.optin,p=c.optout,h=0;for(let n in t){if(r&&i.issues.length!==h){if(tR(i,h))break;h=i.issues.length}if(l.has(n))continue;if("__proto__"===n){"never"===d&&s.push(n);continue}if("never"===d){s.push(n);continue}let o=c.run({value:t[n],issues:[]},a);o instanceof Promise?e.push(o.then(e=>aX(e,i,n,t,u,p))):aX(o,i,n,t,u,p)}return(s.length&&i.issues.push({code:"unrecognized_keys",keys:s,input:t,inst:o,continue:!0}),e.length)?Promise.all(e).then(()=>i):i}let a2=tY("$ZodObject",(e,t)=>{let i;ao.init(e,t);let a=Object.getOwnPropertyDescriptor(t,"shape"),n=a?.get?a.get.raw:t.shape??{};if(n){let e=()=>{let i={...n};return Object.defineProperty(t,"shape",{value:i}),e.raw=i,i};e.raw=n,Object.defineProperty(t,"shape",{get:e})}let o=tl(()=>a1(t));tW(e,"propValues",e=>{let t=e.def.shape,i={};for(let e in t){let a=t[e]._zod;if(a.values){for(let t of(Object.prototype.hasOwnProperty.call(i,e)||tu(i,e,new Set),a.values))i[e].add(t);void 0!==a.optin&&i[e].add(void 0)}}return i});let r=t.catchall,s=tJ.memoizer;s?.attach(e),e._zod.parse=(t,a)=>{i??(i=o.value);let n=t.value;if(!tv(n))return t.issues.push({expected:"object",code:"invalid_type",input:n,inst:e}),t;t.value=s?s.alloc(e,t,{},a):{};let l=[],c=i.shape,d=a?.abortEarly,u=t.issues.length;for(let e of i.allKeys){if(d&&t.issues.length!==u){if(tR(t,u))break;u=t.issues.length}if("__proto__"===e)continue;let i=c[e],o=i._zod.optin,r=i._zod.optout,s=i._zod.run({value:n[e],issues:[]},a);s instanceof Promise?l.push(s.then(i=>aX(i,t,e,n,o,r))):aX(s,t,e,n,o,r)}return r?a0(l,n,t,a,o.value,e,!0===d):l.length?Promise.all(l).then(()=>t):t}}),a3=tY("$ZodObjectJIT",(e,t)=>{let i,a;a2.init(e,t);let n=e._zod.parse,o=tl(()=>a1(t)),r=tJ.memoizer,s=!tJ.jitless,l=s&&t_.value,c=t.catchall;e._zod.parse=(d,u)=>{a??(a=o.value);let p=d.value;return tv(p)?s&&l&&u?.async===!1&&!0!==u.jitless?(i||(i=(t=>{let i=o.value,a=i.symbolKeys,n=new iQ(["payload","ctx"],{shape:t,inst:e,memo:r,syms:a}),s=e=>`shape[${e}]._zod.run({ value: input[${e}], issues: [] }, ctx)`,l=(e,t)=>` let ${e}_ab = false; for (let i = 0; i < ${e}.issues.length; i++) { const iss = ${e}.issues[i]; iss.path = iss.path ? [${t}, ...iss.path] : [${t}]; payload.issues.push(iss); if (iss.continue !== true) ${e}_ab = true; } if (${e}_ab && ctx && ctx.abortEarly) { payload.value = newResult; return payload; }`;n.write("const input = payload.value;");let c=Object.create(null),d=0;for(let e of i.allKeys)c[e]=`key_${d++}`;for(let e of(n.write(r?"const newResult = memo.alloc(inst, payload, {}, ctx);":"const newResult = {};"),i.allKeys)){if("__proto__"===e)continue;let i=c[e],o="symbol"==typeof e?`syms[${a.indexOf(e)}]`:JSON.stringify(e),r=`${o} in input`,d=t[e],u=d?._zod?.optin,p=void 0!==u,h=d?._zod?.optout==="optional";if(n.write(`const ${i} = ${s(o)};`),p&&h){let e="optional"===u?`${i}_present`:`${i}.value !== undefined || ${i}_present`;n.write(` const ${i}_present = ${r}; if (!${i}.issues.length || ${i}_present) { if (${i}.issues.length) {${l(i,o)} } if (${e}) { newResult[${o}] = ${i}.value; } } `)}else p?(n.write(` if (${i}.issues.length) {${l(i,o)} } `),"defaulted"===u?n.write(`newResult[${o}] = ${i}.value;`):n.write(` if (${i}.value !== undefined || ${r}) { newResult[${o}] = ${i}.value; } `)):n.write(` const ${i}_present = ${r}; if (${i}.issues.length) {${l(i,o)} } if (!${i}_present && !${i}.issues.length) { payload.issues.push({ code: "invalid_type", expected: "nonoptional", input: undefined, path: [${o}] }); if (ctx && ctx.abortEarly) { payload.value = newResult; return payload; } } if (${i}_present) { newResult[${o}] = ${i}.value; } `)}return n.write("payload.value = newResult;"),n.write("return payload;"),n.compile()})(t.shape)),d=i(d,u),c)?a0([],p,d,u,a,e,u?.abortEarly===!0):d:n(d,u):(d.issues.push({expected:"object",code:"invalid_type",input:p,inst:e}),d)}});function a4(e,t,i,a){for(let i of e)if(0===i.issues.length)return t.value=i.value,t;let n=e.filter(e=>!tR(e));return 1===n.length?(t.value=n[0].value,n[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:i,errors:e.map(e=>e.issues.map(e=>tP(e,a,t1())))}),t)}let a6=tY("$ZodUnion",(e,t)=>{ao.init(e,t),tW(e,"optin",e=>e.def.options.some(e=>"defaulted"===e._zod.optin)?"defaulted":e.def.options.some(e=>void 0!==e._zod.optin)?"optional":void 0),tW(e,"optout",e=>e.def.options.some(e=>"optional"===e._zod.optout)?"optional":void 0),tW(e,"values",e=>{if(e.def.options.every(e=>e._zod.values))return new Set(e.def.options.flatMap(e=>Array.from(e._zod.values)))}),tW(e,"pattern",e=>{if(e.def.options.every(e=>e._zod.pattern)){let t=e.def.options.map(e=>e._zod.pattern);return RegExp(`^(${t.map(e=>tc(e.source)).join("|")})$`)}});let i=1===t.options.length?t.options[0]._zod.run:null;e._zod.parse=(a,n)=>{if(i)return i(a,n);let o=!1,r=[];for(let e of t.options){let t=e._zod.run({value:a.value,issues:[]},n);if(t instanceof Promise)r.push(t),o=!0;else{if(0===t.issues.length)return t;r.push(t)}}return o?Promise.all(r).then(t=>a4(t,a,e,n)):a4(r,a,e,n)}}),a5=tY("$ZodDiscriminatedUnion",(e,t)=>{t.inclusive=!1,a6.init(e,t);let i=e._zod.parse;tW(e,"propValues",e=>{let t={},i=0;for(let a of e.def.options){let n=a._zod.propValues;if(!n||0===Object.keys(n).length)throw Error(`Invalid discriminated union option at index "${e.def.options.indexOf(a)}"`);for(let[a,o]of(n[e.def.discriminator]?.has(void 0)&&i++,Object.entries(n)))for(let e of(Object.prototype.hasOwnProperty.call(t,a)||tu(t,a,new Set),o))t[a].add(e)}return!e.def.unionFallback&&i>1&&t[e.def.discriminator]?.delete(void 0),t}),t.options.forEach((e,i)=>{let a=tp(e._zod.def);if(a&&!Object.prototype.hasOwnProperty.call(a,t.discriminator))throw Error(`Invalid discriminated union option at index "${i}"`)});let a=tl(()=>(function(e){let t=new Map;for(let i of e.options){let a=i._zod.propValues?.[e.discriminator];if(!a||0===a.size)throw Error(`Invalid discriminated union option at index "${e.options.indexOf(i)}"`);for(let e of a)if(t.has(e)){if(void 0!==e)throw Error(`Duplicate discriminator value "${String(e)}"`);t.set(e,null)}else t.set(e,i)}return t})(t));e._zod.parse=(n,o)=>{let r=n.value;if(!tv(r))return n.issues.push({code:"invalid_type",expected:"object",input:r,inst:e}),n;let s=r?.[t.discriminator],l=a.value.get(s);return l&&(void 0!==s||"backward"!==o.direction)?l._zod.run(n,o):t.unionFallback||"backward"===o.direction?i(n,o):(n.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:t.discriminator,options:Array.from(a.value.keys()).filter(e=>null!==a.value.get(e)),input:r,path:[t.discriminator],inst:e}),n)}}),a8=tY("$ZodIntersection",(e,t)=>{ao.init(e,t),e._zod.parse=(e,i)=>{let a=e.value,n=t.left._zod.run({value:a,issues:[]},i),o=t.right._zod.run({value:a,issues:[]},i);return n instanceof Promise||o instanceof Promise?Promise.all([n,o]).then(([t,i])=>a7(e,t,i)):a7(e,n,o)}});function a7(e,t,i){let a,n=new Map,o=new Map,r=(e,t)=>{let i;if("unrecognized_keys"!==e.code||e.path?.length)if("invalid_key"!==e.code||"record"!==e.origin||e.path?.length!==1)return!1;else{let t=String(e.path[0]);o.has(t)||o.set(t,e),i=[t]}else a??(a=e),i=e.keys;for(let e of i)n.has(e)||n.set(e,{}),n.get(e)[t]=!0;return!0};for(let i of t.issues)r(i,"l")||e.issues.push(i);for(let t of i.issues)r(t,"r")||e.issues.push(t);let s=[...n].filter(([,e])=>e.l&&e.r).map(([e])=>e);if(s.length){let t=a?s.filter(e=>a.keys.includes(e)):[];for(let i of(t.length&&e.issues.push({...a,keys:t}),s))!t.includes(i)&&o.has(i)&&e.issues.push(o.get(i))}let l=function e(t,i){if(t===i||t instanceof Date&&i instanceof Date&&+t==+i)return{valid:!0,data:t};if(tw(t)&&tw(i)){let a=Object.keys(i),n=Object.keys(t).filter(e=>-1!==a.indexOf(e)),o={...t,...i};for(let a of(Object.prototype.hasOwnProperty.call(o,"__proto__")&&delete o.__proto__,n)){if("__proto__"===a)continue;let n=e(t[a],i[a]);if(!n.valid)return{valid:!1,mergeErrorPath:[a,...n.mergeErrorPath]};o[a]=n.data}return{valid:!0,data:o}}if(Array.isArray(t)&&Array.isArray(i)){if(t.length!==i.length)return{valid:!1,mergeErrorPath:[]};let a=[];for(let n=0;n<t.length;n++){let o=e(t[n],i[n]);if(!o.valid)return{valid:!1,mergeErrorPath:[n,...o.mergeErrorPath]};a.push(o.data)}return{valid:!0,data:a}}return{valid:!1,mergeErrorPath:[]}}(t.value,i.value);if(!l.valid){if(tR(e))return e;throw Error(`Unmergable intersection. Error path: ${JSON.stringify(l.mergeErrorPath)}`)}return e.value=l.data,e}let a9=tY("$ZodTuple",(e,t)=>{ao.init(e,t);let i=t.items,a=tJ.memoizer;a?.attach(e),e._zod.parse=(n,o)=>{let r=n.value;if(!Array.isArray(r))return n.issues.push({input:r,inst:e,expected:"tuple",code:"invalid_type"}),n;n.value=a?a.alloc(e,n,[],o):[];let s=[],l=ne(i,"optin"),c=ne(i,"optout");if(!t.rest){if(r.length<l)return n.issues.push({code:"too_small",minimum:l,inclusive:!0,input:r,inst:e,origin:"array"}),n;r.length>i.length&&n.issues.push({code:"too_big",maximum:i.length,inclusive:!0,input:r,inst:e,origin:"array"})}let d=Array(i.length),u=t.rest?o?.abortEarly:void 0,p=!1;for(let e=0;e<i.length;e++){let t=i[e]._zod.run({value:r[e],issues:[]},o);t instanceof Promise?s.push(t.then(t=>{d[e]=t})):(d[e]=t,u&&!p&&t.issues.length&&(p=tR(t)))}if(t.rest&&!p){let e=i.length-1,a=r.slice(i.length),l=n.issues.length;for(let i of a){if(u&&n.issues.length!==l){if(tR(n,l))break;l=n.issues.length}e++;let a=t.rest._zod.run({value:i,issues:[]},o);a instanceof Promise?s.push(a.then(t=>nt(t,n,e))):nt(a,n,e)}}return s.length?Promise.all(s).then(()=>ni(d,n,i,r,c)):ni(d,n,i,r,c)}});function ne(e,t){for(let i=e.length-1;i>=0;i--)if(!("optin"===t?void 0!==e[i]._zod.optin:"optional"===e[i]._zod.optout))return i+1;return 0}function nt(e,t,i){e.issues.length&&t.issues.push(...tM(i,e.issues)),t.value[i]=e.value}function ni(e,t,i,a,n){for(let o=0;o<i.length;o++){let r=e[o],s=o<a.length;if(!s&&o>=n&&"optional"===i[o]._zod.optin){t.value.length=o;break}if(r.issues.length){if(!s&&o>=n){t.value.length=o;break}t.issues.push(...tM(o,r.issues))}t.value[o]=r.value}for(let e=t.value.length-1;e>=a.length&&"optional"===i[e]._zod.optout&&void 0===t.value[e];e--)t.value.length=e;return t}let na=tY("$ZodRecord",(e,t)=>{ao.init(e,t);let i=tJ.memoizer;i?.attach(e),e._zod.parse=(a,n)=>{let o=a.value;if(!tw(o))return a.issues.push({expected:"record",code:"invalid_type",input:o,inst:e}),a;let r=[],s=t.keyType._zod.values;if(s&&!t.partial){let l;a.value=i?i.alloc(e,a,{},n):{};let c=new Set;for(let i of s)if("string"==typeof i||"number"==typeof i||"symbol"==typeof i){if(c.add("number"==typeof i?i.toString():i),"__proto__"===i)continue;let s=t.keyType._zod.run({value:i,issues:[]},n);if(s instanceof Promise)throw Error("Async schemas not supported in object keys currently");if(s.issues.length){a.issues.push({code:"invalid_key",origin:"record",issues:s.issues.map(e=>tP(e,n,t1())),input:i,path:[i],inst:e});continue}let l=s.value;if("__proto__"===l)continue;let d=t.valueType._zod.run({value:o[i],issues:[]},n);d instanceof Promise?r.push(d.then(e=>{e.issues.length&&a.issues.push(...tM(i,e.issues)),a.value[l]=e.value})):(d.issues.length&&a.issues.push(...tM(i,d.issues)),a.value[l]=d.value)}for(let e in o)if(!c.has(e))if("loose"===t.mode){if("__proto__"===e)continue;a.value[e]=o[e]}else(l=l??[]).push(e);l&&l.length>0&&a.issues.push({code:"unrecognized_keys",input:o,inst:e,keys:l,continue:!0})}else{let l;for(let c of(a.value=i?i.alloc(e,a,{},n):{},Reflect.ownKeys(o))){if("__proto__"===c||!Object.prototype.propertyIsEnumerable.call(o,c))continue;let i=t.keyType._zod.run({value:c,issues:[]},n);if(i instanceof Promise)throw Error("Async schemas not supported in object keys currently");if("string"==typeof c&&ix.test(c)&&i.issues.length){let e=t.keyType._zod.run({value:Number(c),issues:[]},n);if(e instanceof Promise)throw Error("Async schemas not supported in object keys currently");0===e.issues.length&&(i=e)}if(i.issues.length){"loose"===t.mode?a.value[c]=o[c]:s?(l=l??[]).push(c):a.issues.push({code:"invalid_key",origin:"record",issues:i.issues.map(e=>tP(e,n,t1())),input:c,path:[c],inst:e});continue}let d=i.value;if("__proto__"===d)continue;let u=t.valueType._zod.run({value:o[c],issues:[]},n);u instanceof Promise?r.push(u.then(e=>{e.issues.length&&a.issues.push(...tM(c,e.issues)),a.value[d]=e.value})):(u.issues.length&&a.issues.push(...tM(c,u.issues)),a.value[d]=u.value)}l&&l.length>0&&a.issues.push({code:"unrecognized_keys",input:o,inst:e,keys:l,continue:!0})}return r.length?Promise.all(r).then(()=>a):a}}),nn=tY("$ZodMap",(e,t)=>{ao.init(e,t);let i=tJ.memoizer;i?.attach(e),e._zod.parse=(a,n)=>{let o=a.value;if(!(o instanceof Map))return a.issues.push({expected:"map",code:"invalid_type",input:o,inst:e}),a;let r=[];a.value=i?i.alloc(e,a,new Map,n):new Map;let s=n?.abortEarly,l=a.issues.length;for(let[i,c]of o){if(s&&a.issues.length!==l){if(tR(a,l))break;l=a.issues.length}let d=t.keyType._zod.run({value:i,issues:[]},n),u=t.valueType._zod.run({value:c,issues:[]},n);d instanceof Promise||u instanceof Promise?r.push(Promise.all([d,u]).then(([t,r])=>{no(t,r,a,i,o,e,n)})):no(d,u,a,i,o,e,n)}return r.length?Promise.all(r).then(()=>a):a}});function no(e,t,i,a,n,o,r){e.issues.length&&(tk.has(typeof a)?i.issues.push(...tM(a,e.issues)):i.issues.push({code:"invalid_key",origin:"map",input:n,inst:o,issues:e.issues.map(e=>tP(e,r,t1()))})),t.issues.length&&(tk.has(typeof a)?i.issues.push(...tM(a,t.issues)):i.issues.push({origin:"map",code:"invalid_element",input:n,inst:o,key:a,issues:t.issues.map(e=>tP(e,r,t1()))})),i.value.set(e.value,t.value)}let nr=tY("$ZodEnum",(e,t)=>{ao.init(e,t);let i=tn(t.entries),a=new Set(i);e._zod.values=a,tW(e,"pattern",e=>{let t=tn(e.def.entries).filter(e=>tk.has(typeof e));return new RegExp(t.length?`^(${t.map(e=>tE(e.toString())).join("|")})$`:"^[^\\s\\S]$")}),e._zod.parse=(t,n)=>{let o=t.value;return a.has(o)||t.issues.push({code:"invalid_value",values:i,input:o,inst:e}),t}}),ns=tY("$ZodTransform",(e,t)=>{ao.init(e,t),e._zod.optin="optional",tJ.memoizer?.guard(e),e._zod.parse=(i,a)=>{if("backward"===a.direction)throw new tX(e.constructor.name);let n=t.transform(i.value,i);if(a.async)return(n instanceof Promise?n:Promise.resolve(n)).then(e=>(i.value=e,i));if(n instanceof Promise)throw new tQ;return i.value=n,i}});function nl(e,t){return e.value=t.issues.length?void 0:t.value,e}let nc=tY("$ZodOptional",(e,t)=>{ao.init(e,t),tW(e,"optin",e=>"defaulted"===e.def.innerType._zod.optin?"defaulted":"optional"),e._zod.optout="optional",tW(e,"values",e=>{let t=e.def.innerType._zod.values;return t?new Set([...t,void 0]):void 0}),tW(e,"pattern",e=>{let t=e.def.innerType._zod.pattern;return t?RegExp(`^(${tc(t.source)})?$`):void 0}),e._zod.parse=(e,i)=>{if(void 0===e.value){if("defaulted"!==t.innerType._zod.optin)return e;let a=t.innerType._zod.run({value:e.value,issues:[]},i);return a instanceof Promise?a.then(t=>nl(e,t)):nl(e,a)}return t.innerType._zod.run(e,i)}}),nd=tY("$ZodExactOptional",(e,t)=>{nc.init(e,t),tW(e,"values",e=>e.def.innerType._zod.values),tW(e,"pattern",e=>e.def.innerType._zod.pattern),e._zod.parse=(e,i)=>t.innerType._zod.run(e,i)}),nu=tY("$ZodNullable",(e,t)=>{ao.init(e,t),tW(e,"optin",e=>e.def.innerType._zod.optin),tW(e,"optout",e=>e.def.innerType._zod.optout),tW(e,"pattern",e=>{let t=e.def.innerType._zod.pattern;return t?RegExp(`^(${tc(t.source)}|null)$`):void 0}),tW(e,"values",e=>e.def.innerType._zod.values?new Set([...e.def.innerType._zod.values,null]):void 0),e._zod.parse=(e,i)=>null===e.value?e:t.innerType._zod.run(e,i)}),np=tY("$ZodDefault",(e,t)=>{ao.init(e,t),e._zod.optin="defaulted",tW(e,"values",e=>e.def.innerType._zod.values),e._zod.parse=(e,i)=>{if("backward"===i.direction)return t.innerType._zod.run(e,i);if(void 0===e.value)return e.value=t.defaultValue,e;let a=t.innerType._zod.run(e,i);return a instanceof Promise?a.then(e=>nh(e,t)):nh(a,t)}});function nh(e,t){return void 0===e.value&&(e.value=t.defaultValue),e}let ng=tY("$ZodPrefault",(e,t)=>{ao.init(e,t),e._zod.optin="defaulted",tW(e,"values",e=>e.def.innerType._zod.values),e._zod.parse=(e,i)=>("backward"===i.direction||void 0===e.value&&(e.value=t.defaultValue),t.innerType._zod.run(e,i))}),nm=tY("$ZodNonOptional",(e,t)=>{ao.init(e,t),tW(e,"values",e=>{let t=e.def.innerType._zod.values;return t?new Set([...t].filter(e=>void 0!==e)):void 0}),e._zod.parse=(i,a)=>{let n=t.innerType._zod.run(i,a);return n instanceof Promise?n.then(t=>nf(t,e)):nf(n,e)}});function nf(e,t){return e.issues.length||void 0!==e.value||e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:t}),e}function ny(e,t,i,a){return t.issues.length?e.value=i.catchValue({...t,value:e.value,error:{issues:t.issues.map(e=>tP(e,a,t1()))},input:e.value}):(e.value=t.value,t.memo&&(e.memo=!0)),e}let nb=tY("$ZodCatch",(e,t)=>{ao.init(e,t),tW(e,"optin",e=>"defaulted"===e.def.innerType._zod.optin?"defaulted":"optional"),tW(e,"optout",e=>e.def.innerType._zod.optout),tW(e,"values",e=>e.def.innerType._zod.values),e._zod.parse=(e,i)=>{if("backward"===i.direction)return t.innerType._zod.run(e,i);let a=t.innerType._zod.run({value:e.value,issues:[]},i);return a instanceof Promise?a.then(a=>ny(e,a,t,i)):ny(e,a,t,i)}}),nv=tY("$ZodPipe",(e,t)=>{ao.init(e,t),tW(e,"values",e=>e.def.in._zod.values),tW(e,"optin",e=>e.def.in._zod.optin),tW(e,"optout",e=>e.def.out._zod.optout),tW(e,"propValues",e=>e.def.in._zod.propValues),e._zod.parse=(e,i)=>{if("backward"===i.direction){let a=t.out._zod.run(e,i);return a instanceof Promise?a.then(e=>n_(e,t.in,i)):n_(a,t.in,i)}let a=t.in._zod.run(e,i);return a instanceof Promise?a.then(e=>n_(e,t.out,i)):n_(a,t.out,i)}});function n_(e,t,i){return e.issues.some(e=>"unrecognized_keys"!==e.code)?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},i)}let nw=tY("$ZodReadonly",(e,t)=>{ao.init(e,t),tW(e,"propValues",e=>e.def.innerType._zod.propValues),tW(e,"values",e=>e.def.innerType._zod.values),tW(e,"optin",e=>e.def.innerType?._zod?.optin),tW(e,"optout",e=>e.def.innerType?._zod?.optout),e._zod.parse=(e,i)=>{if("backward"===i.direction)return t.innerType._zod.run(e,i);let a=t.innerType._zod.run(e,i);return a instanceof Promise?a.then(nx):nx(a)}});function nx(e){return e.memo||(e.value=Object.freeze(e.value)),e}let nk=tY("$ZodFunction",(e,t)=>(ao.init(e,t),Object.defineProperty(e,"_def",{value:t}),e._zod.def=t,e.implement=t=>{if("function"!=typeof t)throw Error("implement() must be called with a function");return Object.defineProperty(function(...i){let a=Reflect.apply(t,this,e._def.input?i5(e._def.input,i):i);return e._def.output?i5(e._def.output,a):a},"_zod",{value:e._zod,enumerable:!1})},e.implementAsync=t=>{if("function"!=typeof t)throw Error("implementAsync() must be called with a function");return Object.defineProperty(async function(...i){let a=e._def.input?await i7(e._def.input,i):i,n=await Reflect.apply(t,this,a);return e._def.output?await i7(e._def.output,n):n},"_zod",{value:e._zod,enumerable:!1})},e._zod.parse=(t,i)=>("function"!=typeof t.value?t.issues.push({code:"invalid_type",expected:"function",input:t.value,inst:e}):e._def.output&&"promise"===e._def.output._zod.def.type?t.value=e.implementAsync(t.value):t.value=e.implement(t.value),t),e.input=(...t)=>{let i=e.constructor;return new i(Array.isArray(t[0])?{type:"function",input:new a9({type:"tuple",items:t[0],rest:t[1]}),output:e._def.output}:{type:"function",input:t[0],output:e._def.output})},e.output=t=>new e.constructor({type:"function",input:e._def.input,output:t}),e)),nE=tY("$ZodLazy",(e,t)=>{var i;let a;ao.init(e,t),i=e._zod,Object.defineProperty(i,"innerType",{get(){if(a!==td)return void 0===a&&(a=td,a=(()=>(t._cachedInner||(t._cachedInner=t.getter()),t._cachedInner))()),a},set(e){Object.defineProperty(i,"innerType",{value:e})},configurable:!0}),tW(e,"pattern",e=>e.innerType?._zod?.pattern),tW(e,"propValues",e=>e.innerType?._zod?.propValues),tW(e,"optin",e=>e.innerType?._zod?.optin??void 0),tW(e,"optout",e=>e.innerType?._zod?.optout??void 0),e._zod.parse=(t,i)=>e._zod.innerType._zod.run(t,i)}),nS=tY("$ZodCustom",(e,t)=>{iT.init(e,t),ao.init(e,t),e._zod.parse=(e,t)=>e,e._zod.check=i=>{let a=i.value,n=t.fn(a);if(n instanceof Promise)return n.then(t=>nC(t,i,a,e));nC(n,i,a,e)}});function nC(e,t,i,a){if(!e){let e={code:"custom",input:i,inst:a,path:[...a._zod.def.path??[]],continue:!a._zod.def.abort};a._zod.def.params&&(e.params=a._zod.def.params),t.issues.push(tB(e))}}(w_=globalThis).__zod_globalRegistry??(w_.__zod_globalRegistry=new class e{constructor(){this._map=new WeakMap,this._idmap=new Map}add(e,...t){let i=t[0];return this._map.set(e,i),i&&"object"==typeof i&&"id"in i&&this._idmap.set(i.id,e),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(e){let t=this._map.get(e);return t&&"object"==typeof t&&"id"in t&&this._idmap.delete(t.id),this._map.delete(e),this}get(e){let t=e._zod.parent;if(t){let i={...this.get(t)??{}};delete i.id;let a={...i,...this._map.get(e)};return Object.keys(a).length?a:void 0}return this._map.get(e)}has(e){return this._map.has(e)}});let nT=globalThis.__zod_globalRegistry;function nI(e){return e.checks&&(e.checks=[...e.checks]),e}function nD(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...tC(t)})}function nA(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...tC(t)})}function n$(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...tC(t)})}function nO(e,t){return new e({type:"string",format:"date",check:"string_format",...tC(t)})}function nR(e,t){return new i$({check:"less_than",...tC(t),value:e,inclusive:!1})}function nM(e,t){return new i$({check:"less_than",...tC(t),value:e,inclusive:!0})}function nL(e,t){return new iO({check:"greater_than",...tC(t),value:e,inclusive:!1})}function nN(e,t){return new iO({check:"greater_than",...tC(t),value:e,inclusive:!0})}function nP(e,t){return new iR({check:"multiple_of",...tC(t),value:e})}function nz(e,t){return new iN({check:"min_size",...tC(t),minimum:e})}function nU(e,t){return new iz({check:"max_length",...tC(t),maximum:e})}function nF(e,t){return new iU({check:"min_length",...tC(t),minimum:e})}function nj(e,t){return new iF({check:"length_equals",...tC(t),length:e})}function nB(e){return new iY({check:"overwrite",tx:e})}function nH(e,...t){for(let i of t)for(let t of Reflect.ownKeys(i))Object.prototype.propertyIsEnumerable.call(i,t)&&tu(e,t,i[t]);return e}function nV(e){let t=e?.target??"draft-2020-12";return"draft-4"===t&&(t="draft-04"),"draft-7"===t&&(t="draft-07"),{processors:e.processors??{},metadataRegistry:e?.metadata??nT,target:t,unrepresentable:e?.unrepresentable??"throw",override:e?.override??(()=>{}),io:e?.io??"output",counter:0,seen:new Map,sharedDefsExtractedFor:void 0,sharedEmitDoneFor:void 0,cycles:e?.cycles??"ref",reused:e?.reused??"inline",intersections:[],deferred:[],external:e?.external??void 0}}function nq(e,t,i,a,n){let o="function"==typeof t.unrepresentable?t.unrepresentable({zodSchema:e,path:a.path,message:n}):t.unrepresentable;if("any"===o)return!1;if(void 0===o||"throw"===o)throw Error(n);return Object.assign(i,o),!0}function nZ(e,t,i={path:[],schemaPath:[]}){var a;let n=e._zod.def,o=t.seen.get(e);if(o)return o.count++,i.schemaPath.includes(e)&&(o.cycle=i.path),o.schema;let r={schema:{},count:1,cycle:void 0,path:i.path};t.seen.set(e,r),t.sharedDefsExtractedFor=void 0,t.sharedEmitDoneFor=void 0;let s=e._zod.toJSONSchema?.();if(s)r.schema=s;else{let a={...i,schemaPath:[...i.schemaPath,e],path:i.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,r.schema,a);else{let i=r.schema,o=t.processors[n.type];if(!o)throw Error(`[toJSONSchema]: Non-representable type encountered: ${n.type}`);o(e,t,i,a)}let o=e._zod.parent;o&&(r.ref||(r.ref=o),nZ(o,t,a),t.seen.get(o).isParent=!0)}let l=t.metadataRegistry.get(e);return l&&nH(r.schema,l),"input"===t.io&&function e(t,i){let a=i??{seen:new Set};if(a.seen.has(t))return!1;a.seen.add(t);let n=t._zod.def;if("transform"===n.type)return!0;if("array"===n.type)return e(n.element,a);if("set"===n.type)return e(n.valueType,a);if("lazy"===n.type)return e(n.getter(),a);if("promise"===n.type||"optional"===n.type||"nonoptional"===n.type||"nullable"===n.type||"readonly"===n.type||"default"===n.type||"prefault"===n.type||"catch"===n.type)return e(n.innerType,a);if("intersection"===n.type)return e(n.left,a)||e(n.right,a);if("record"===n.type||"map"===n.type)return e(n.keyType,a)||e(n.valueType,a);if("pipe"===n.type)return!!t._zod.traits.has("$ZodCodec")||e(n.in,a)||e(n.out,a);if("object"===n.type){for(let t in n.shape)if(e(n.shape[t],a))return!0;return!1}if("union"===n.type){for(let t of n.options)if(e(t,a))return!0;return!1}if("tuple"===n.type){for(let t of n.items)if(e(t,a))return!0;if(n.rest&&e(n.rest,a))return!0}return!1}(e)&&(delete r.schema.examples,delete r.schema.default),"input"===t.io&&"_prefault"in r.schema&&((a=r.schema).default??(a.default=r.schema._prefault)),delete r.schema._prefault,t.seen.get(e).schema}function nW(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}function nG(e,t){let i=e.seen.get(t);if(!i)throw Error("Unprocessed schema. This is a bug in Zod.");if(e.external&&e.sharedDefsExtractedFor===e.external)return;let a=new Map;for(let t of e.seen.entries()){let i=e.metadataRegistry.get(t[0])?.id;if(i){let e=a.get(i);if(e&&e!==t[0])throw Error(`Duplicate schema id "${i}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);a.set(i,t[0])}}let n=t=>{if(t[1].schema.$ref)return;let a=t[1],{ref:n,defId:o}=(t=>{let a="draft-2020-12"===e.target?"$defs":"definitions";if(e.external){let i=e.external.registry.get(t[0])?.id,n=e.external.uri??(e=>e);if(i)return{ref:n(i)};let o=t[1].defId??t[1].schema.id??`schema${e.counter++}`;return t[1].defId=o,{defId:o,ref:`${n("__shared")}#/${a}/${nW(o)}`}}let n=`#/${a}/`;if(t[1]===i&&!t[1].schema.id)return{ref:"#"};let o=t[1].schema.id??`__schema${e.counter++}`;return{defId:o,ref:n+nW(o)}})(t);a.def={...a.schema},o&&(a.defId=o);let r=a.schema;for(let e in r)delete r[e];r.$ref=n};if("throw"===e.cycles)for(let t of e.seen.entries()){let e=t[1];if(e.cycle)throw Error(`Cycle detected: #/${e.cycle?.join("/")}/<root> Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let i of e.seen.entries()){let a=i[1];if(t===i[0]){n(i);continue}if(e.external){let a=e.external.registry.get(i[0])?.id;if(t!==i[0]&&a){n(i);continue}}if(e.metadataRegistry.get(i[0])?.id||a.cycle){n(i);continue}a.count>1&&"ref"===e.reused&&n(i)}e.external&&(e.sharedDefsExtractedFor=e.external)}let nK=new Set(["type","properties","required","additionalProperties"]),nY=["oneOf","anyOf"];function nQ(e){let t=e.additionalProperties;return void 0===t||!1===t||"object"!=typeof t||null===t?null:Object.keys(t).length?t:null}function nX(e){let t=[];for(let i of e){if("object"!=typeof i||"object"!==i.type)return null;for(let e in i)if(!nK.has(e))return null;t.push(i)}let i={},a=new Set;for(let e of t){for(let a in e.properties){if(Object.prototype.hasOwnProperty.call(i,a))continue;let e=[];for(let i of t){let t=i.properties?.[a]??nQ(i);null!=t&&(e.some(e=>JSON.stringify(e)===JSON.stringify(t))||e.push(t))}tu(i,a,1===e.length?e[0]:nX(e)??{allOf:e})}for(let t of e.required??[])a.add(t)}let n={type:"object",properties:i};if(a.size&&(n.required=[...a]),t.every(e=>!1===e.additionalProperties))n.additionalProperties=!1;else{let e=[];for(let i of t){let t=nQ(i);t&&!e.some(e=>JSON.stringify(e)===JSON.stringify(t))&&e.push(t)}1===e.length?n.additionalProperties=e[0]:e.length>1&&(n.additionalProperties={allOf:e})}return n}function nJ(e,t){let i=e.seen.get(t);if(!i)throw Error("Unprocessed schema. This is a bug in Zod.");let a=t=>{let i=e.seen.get(t);if(null===i.ref)return;let n=i.def??i.schema,o={...n},r=i.ref;if(i.ref=null,r){a(r);let i=e.seen.get(r),s=i.schema;if(s.$ref&&("draft-07"===e.target||"draft-04"===e.target||"openapi-3.0"===e.target)?(n.allOf=n.allOf??[],n.allOf.push(s)):nH(n,s),nH(n,o),t._zod.parent===r)for(let e in n)"$ref"!==e&&"allOf"!==e&&(e in o||delete n[e]);if(s.$ref&&i.def)for(let e in n)"$ref"!==e&&"allOf"!==e&&e in i.def&&JSON.stringify(n[e])===JSON.stringify(i.def[e])&&delete n[e]}let s=t._zod.parent;if(s&&s!==r){a(s);let t=e.seen.get(s);if(t?.schema.$ref&&(n.$ref=t.schema.$ref,t.def))for(let e in n)"$ref"!==e&&"allOf"!==e&&e in t.def&&JSON.stringify(n[e])===JSON.stringify(t.def[e])&&delete n[e]}e.override({zodSchema:t,jsonSchema:n,path:i.path??[]})};if(!e.external||e.sharedEmitDoneFor!==e.external){for(let t of[...e.seen.entries()].reverse())a(t[0]);if("openapi-3.0"!==e.target)for(let t of e.seen.entries())!function e(t){let i=t.anyOf;if(!Array.isArray(i)||0===i.length||void 0!==t.type)return;let a=[];for(let t of i){if(!t||"object"!=typeof t)return;e(t);let i=Object.keys(t);if(1!==i.length||"type"!==i[0])return;let n=t.type;for(let e of Array.isArray(n)?n:[n]){if("string"!=typeof e)return;a.includes(e)||a.push(e)}}delete t.anyOf,t.type=1===a.length?a[0]:a}(t[1].def??t[1].schema);for(let t of e.deferred)t();if(e.intersections.length){let t=new Map;for(let i of e.seen.values())for(let e of[i.schema,i.def]){let i=e?.allOf;if(!Array.isArray(i))continue;let a=t.get(i);a?a.push(e):t.set(i,[e])}for(let i of e.intersections)for(let e of t.get(i)??[])!function(e){let t=e.allOf;if(!Array.isArray(t)||t.length<2)return;for(let t of nK)if(t in e)return;let i=t.filter(e=>nY.some(t=>Array.isArray(e[t]))),a=null;if(i.length){let e=i[0],n=nY.find(t=>Array.isArray(e[t]));if(1!==Object.keys(e).length)return;let o=t.filter(t=>t!==e),r=e[n].map(e=>nX([...o,e]));if(r.some(e=>!e))return;a={[n]:r}}else a=nX(t);a&&(delete e.allOf,nH(e,a))}(e)}}let n={};if("draft-2020-12"===e.target?n.$schema="https://json-schema.org/draft/2020-12/schema":"draft-07"===e.target?n.$schema="http://json-schema.org/draft-07/schema#":"draft-04"===e.target?n.$schema="http://json-schema.org/draft-04/schema#":e.target,e.external?.uri){let i=e.external.registry.get(t)?.id;if(!i)throw Error("Schema is missing an `id` property");n.$id=e.external.uri(i)}nH(n,i.defId?i.schema:i.def??i.schema);let o=e.metadataRegistry.get(t)?.id;void 0!==o&&n.id===o&&delete n.id;let r=e.external?.defs??{};if(!e.external||e.sharedEmitDoneFor!==e.external)for(let t of e.seen.entries()){let e=t[1];e.def&&e.defId&&(e.def.id===e.defId&&delete e.def.id,tu(r,e.defId,e.def))}e.external&&(e.sharedEmitDoneFor=e.external),e.external||Object.keys(r).length>0&&("draft-2020-12"===e.target?n.$defs=r:n.definitions=r);try{let i=JSON.parse(JSON.stringify(n));return Object.defineProperty(i,"~standard",{value:{...t["~standard"],jsonSchema:{input:n1(t,"input",e.processors),output:n1(t,"output",e.processors)}},enumerable:!1,writable:!1}),i}catch{throw Error("Error converting schema to JSON.")}}let n1=(e,t,i={})=>a=>{let{libraryOptions:n,target:o}=a??{},r=nV({...n??{},target:o,io:t,processors:i});return nZ(e,r),nG(r,e),nJ(r,e)},n0=(e,t,i)=>{(void 0===e[t]||i>e[t])&&(e[t]=i)},n2=(e,t,i)=>{(void 0===e[t]||i<e[t])&&(e[t]=i)},n3=(e,t)=>{n0(e,"minimum",t),n2(e,"maximum",t)},n4=(e,t)=>{e.multipleOf??(e.multipleOf=[]),e.multipleOf.includes(t)||e.multipleOf.push(t)},n6=(e,t)=>{e.patterns??(e.patterns=new Set),e.patterns.add(t)},n5=(e,t)=>{e.mime=e.mime?e.mime.filter(e=>t.includes(e)):[...t]},n8=(e,t)=>{e.format=t,t.includes("int")&&(e.isInt=!0)},n7=(e,t)=>n0(e,"minimum",t.minimum),n9=(e,t)=>n2(e,"maximum",t.maximum),oe=e=>(t,i)=>{n8(t,i.format);let[a,n]=e[i.format];n0(t,"minimum",a),n2(t,"maximum",n)},ot={greater_than:(e,t)=>n0(e,t.inclusive?"minimum":"exclusiveMinimum",t.value),less_than:(e,t)=>n2(e,t.inclusive?"maximum":"exclusiveMaximum",t.value),multiple_of:(e,t)=>n4(e,t.value),number_format:oe(tI),bigint_format:oe(tD),min_length:n7,max_length:n9,length_equals:(e,t)=>n3(e,t.length),min_size:n7,max_size:n9,size_equals:(e,t)=>n3(e,t.size),string_format:(e,t)=>{n8(e,t.format),t.pattern&&n6(e,t.pattern),("base64"===t.format||"base64url"===t.format)&&(e.contentEncoding=t.format),(t.local||-1===t.precision)&&(e.laxFormat=!0)},mime_type:(e,t)=>n5(e,t.mime)};function oi(e){let t={},i=e._zod.def;for(let a of e._zod.traits.has("$ZodCheck")?[e,...i.checks??[]]:i.checks??[])ot[a._zod.def.check]?.(t,a._zod.def);let a=e._zod.bag;for(let e of(void 0!==a.minimum&&n0(t,"minimum",a.minimum),void 0!==a.exclusiveMinimum&&n0(t,"exclusiveMinimum",a.exclusiveMinimum),void 0!==a.maximum&&n2(t,"maximum",a.maximum),void 0!==a.exclusiveMaximum&&n2(t,"exclusiveMaximum",a.exclusiveMaximum),void 0!==a.multipleOf&&n4(t,a.multipleOf),void 0!==a.format&&(t.format??(t.format=a.format),a.format.includes("int")&&(t.isInt=!0)),a.mime&&n5(t,a.mime),a.patterns??[]))n6(t,e);return t}let oa={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},on=new Map([[aL,/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/],[aP,/^(?:[A-Za-z0-9_-]{4})*(?:[A-Za-z0-9_-]{2,3})?$/]]),oo=e=>on.get(e)??e;function or(e){let t=e._zod.def;return"pipe"===t.type&&t.in._zod.traits.has("$ZodTransform")?or(t.out):"catch"===t.type?or(t.innerType):e._zod.optin}let os=new WeakMap,ol=Symbol();function oc(e,t,i,a,n){let o=!1,r=JSON.stringify(e,(e,t)=>"bigint"!=typeof t?t:(o=!0,null));return o?(nq(t,i,a,n,"BigInt defaults cannot be represented in JSON Schema"),ol):JSON.parse(r)}let od=(e,t,i,a)=>{let n=e._zod.def;nZ(n.innerType,t,a),t.seen.get(e).ref=n.innerType};function ou(){return{localeError:(()=>{let e={string:{unit:"characters",verb:"to have"},file:{unit:"bytes",verb:"to have"},array:{unit:"items",verb:"to have"},set:{unit:"items",verb:"to have"},map:{unit:"entries",verb:"to have"}},t={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",mac:"MAC address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",currency_code:"currency code",credit_card:"credit card number",iban:"IBAN",jwt:"JWT",template_literal:"input"},i={nan:"NaN"};function a(e,t){return"number"!==e||"number"!=typeof t||Number.isFinite(t)?i[e]??e:String(t)}return i=>{switch(i.code){case"invalid_type":{let e=a(i.expected),t=a(function(e){let t=typeof e;switch(t){case"number":return Number.isNaN(e)?"nan":"number";case"object":if(null===e)return"null";if(Array.isArray(e))return"array";if(e&&Object.getPrototypeOf(e)!==Object.prototype&&"constructor"in e&&e.constructor)return e.constructor.name}return t}(i.input),i.input);return`Invalid input: expected ${e}, received ${t}`}case"invalid_value":if(1===i.values.length)return`Invalid input: expected ${tT(i.values[0])}`;return`Invalid option: expected one of ${to(i.values,"|")}`;case"too_big":{let t=i.exact?"exactly ":i.inclusive?"<=":"<",a=e[i.origin]??null;if(a)return`Too big: expected ${i.origin??"value"} to have ${t}${i.maximum.toString()} ${a.unit??"elements"}`;return`Too big: expected ${i.origin??"value"} to be ${t}${i.maximum.toString()}`}case"too_small":{let t=i.exact?"exactly ":i.inclusive?">=":">",a=e[i.origin]??null;if(a)return`Too small: expected ${i.origin} to have ${t}${i.minimum.toString()} ${a.unit}`;return`Too small: expected ${i.origin} to be ${t}${i.minimum.toString()}`}case"invalid_format":if("starts_with"===i.format)return`Invalid string: must start with "${i.prefix}"`;if("ends_with"===i.format)return`Invalid string: must end with "${i.suffix}"`;if("includes"===i.format)return`Invalid string: must include "${i.includes}"`;if("regex"===i.format)return`Invalid string: must match pattern ${i.pattern}`;return`Invalid ${t[i.format]??i.format}`;case"not_multiple_of":return`Invalid number: must be a multiple of ${i.divisor}`;case"unrecognized_keys":return`Unrecognized key${i.keys.length>1?"s":""}: ${to(i.keys,", ")}`;case"invalid_key":return`Invalid key in ${i.origin}`;case"invalid_union":if(i.options&&Array.isArray(i.options)&&i.options.length>0){let e=i.options.map(e=>`'${e}'`).join(" | ");return`Invalid discriminator value. Expected ${e}`}if(!1===i.inclusive)return"Invalid input: more than one option matched";return"Invalid input";case"invalid_element":return`Invalid value in ${i.origin}`;default:return"Invalid input"}}})()}}a.dn(ou);let op=new WeakSet([Object.prototype,Error.prototype]);function oh(e,t,i){Object.defineProperty(e,t,{configurable:!0,enumerable:!1,get(){let e=i(this);return Object.defineProperty(this,t,{value:e,configurable:!0,writable:!0}),e},set(e){Object.defineProperty(this,t,{value:e,configurable:!0,writable:!0})}})}let og=(e,t)=>{i2.init(e,t),e.name="ZodError";let i=Object.getPrototypeOf(e);op.has(i)||(op.add(i),oh(i,"format",e=>t=>(function(e,t=e=>e.message){let i={_errors:[]},a=(e,n=[])=>{for(let o of e.issues)if("invalid_union"===o.code&&o.errors.length)o.errors.map(e=>a({issues:e},[...n,...o.path]));else if("invalid_key"===o.code)a({issues:o.issues},[...n,...o.path]);else if("invalid_element"===o.code)a({issues:o.issues},[...n,...o.path]);else{let e=[...n,...o.path];if(0===e.length)i._errors.push(t(o));else{let a=i,n=0;for(;n<e.length;){let i=e[n],r=n===e.length-1;if("_errors"===i){r&&a._errors.push(t(o)),n++;continue}Object.prototype.hasOwnProperty.call(a,i)||Object.defineProperty(a,i,{value:{_errors:[]},enumerable:!0,writable:!0,configurable:!0});let s=a[i];r&&s._errors.push(t(o)),a=s,n++}}}};return a(e),i})(e,t)),oh(i,"flatten",e=>t=>(function(e,t=e=>e.message){let i={},a=[];for(let r of e.issues)if(r.path.length>0){var n,o;(n=r.path[0],o=()=>[],!Object.prototype.hasOwnProperty.call(i,n)&&("__proto__"===n?Object.defineProperty(i,n,{value:o(),writable:!0,enumerable:!0,configurable:!0}):i[n]=o()),i[n]).push(t(r))}else a.push(t(r));return{formErrors:a,fieldErrors:i}})(e,t)),oh(i,"addIssue",e=>t=>{e.issues.push(t),e.message=JSON.stringify(e.issues,tr,2)}),oh(i,"addIssues",e=>t=>{e.issues.push(...t),e.message=JSON.stringify(e.issues,tr,2)}),Object.defineProperty(i,"isEmpty",{configurable:!0,enumerable:!1,get(){return 0===this.issues.length}}))},om=tY("ZodError",og),of=tY("ZodError",og,void 0,{Parent:Error}),oy=i6(of),ob=i8(of),ov=i9(of),o_=at(of),ow=(ek=i6(of),eE=(e,t,i,a)=>ek(e,t,i?{...i,direction:"backward"}:{direction:"backward"},i4(eE,a))),ox=(eS=i6(of),eC=(e,t,i,a)=>eS(e,t,i,i4(eC,a))),ok=(eT=i8(of),eI=async(e,t,i,a)=>{let n=i?{...i,direction:"backward"}:{direction:"backward"};return await eT(e,t,n,i4(eI,a))}),oE=(eD=i8(of),eA=async(e,t,i,a)=>await eD(e,t,i,i4(eA,a))),oS=(e,t,i)=>{let a=i?{...i,direction:"backward"}:{direction:"backward"};return i9(of)(e,t,a)},oC=(e,t,i)=>i9(of)(e,t,i),oT=async(e,t,i)=>{let a=i?{...i,direction:"backward"}:{direction:"backward"};return at(of)(e,t,a)},oI=async(e,t,i)=>at(of)(e,t,i);function oD(){tJ.memoizer||t1({memoizer:t7})}let oA=tY("ZodType",(e,t)=>(tJ.localeError||t1(ou()),ao.init(e,t),e.def=t,e.type=t.type,e),{check(...e){let t=this.def;return this.clone(ty(t,{checks:[...t.checks??[],...e.map(e=>"function"==typeof e?{_zod:{check:e,def:{check:"custom"},onattach:[]}}:e)]}),{parent:!0})},with(...e){return this.check(...e)},clone(e,t){return tS(this,e,t)},brand(){return this},register(e,t){return e.add(this,t),this},refine(e,t){return this.check(function(e,t={}){return new rq({type:"custom",check:"custom",fn:e,...tC(t)})}(e,t))},superRefine(e,t){return this.check(function(e,t){var i;let a,n;return i=t=>(t.addIssue=e=>{"string"==typeof e?t.issues.push(tB(e,t.value,a._zod.def)):(e.fatal&&(e.continue=!1),e.code??(e.code="custom"),"input"in e||(e.input=t.value),e.inst??(e.inst=a),e.continue??(e.continue=!a._zod.def.abort),t.issues.push(tB(e)))},e(t.value,t)),(n=new iT({check:"custom",...tC(t)}))._zod.check=i,a=n}(e,t))},overwrite(e){return this.check(nB(e))},optional(){return rA(this)},exactOptional(){var e;return e=this,new r$({type:"optional",innerType:e})},nullable(){return rR(this)},nullish(){return rA(rR(this))},nonoptional(e){var t;return t=this,new rN({type:"nonoptional",innerType:t,...tC(e)})},array(){return rp(this)},or(e){return ry([this,e])},and(e){var t;return t=this,new r_({type:"intersection",left:t,right:e})},transform(e){return rU(this,new rI({type:"transform",transform:e}))},default(e){var t,i;return t=this,i=e,new rM({type:"default",innerType:t,get defaultValue(){return"function"==typeof i?i():tx(i)}})},prefault(e){var t,i;return t=this,i=e,new rL({type:"prefault",innerType:t,get defaultValue(){return"function"==typeof i?i():tx(i)}})},catch(e){return function(e,t){let i;return new rP({type:"catch",innerType:e,catchValue:"function"==typeof t?t:((i=()=>t)["~constantCatch"]=!0,i)})}(this,e)},pipe(e){return rU(this,e)},readonly(){var e;return e=this,new rF({type:"readonly",innerType:e})},describe(e){let t=this.clone();return nT.add(t,{description:e}),t},meta(...e){if(0===e.length)return nT.get(this);let t=this.clone();return nT.add(t,e[0]),t},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(e,...t){return 0===t.length?e(this):e(this,...t)},get"~standard"(){return tH(this,"~standard",{...as(this),jsonSchema:{input:n1(this,"input"),output:n1(this,"output")}},!1)},set"~standard"(e){tH(this,"~standard",e)},parse:function e(t,i){return oy(this,t,i,{callee:e})},parseAsync:async function e(t,i){return await ob(this,t,i,{callee:e})},safeParse(e,t){return ov(this,e,t)},async safeParseAsync(e,t){return o_(this,e,t)},get spa(){return this?.safeParseAsync},set spa(e){tH(this,"spa",e)},validate(e,t){let i=this._zod.bag.validator;if(void 0!==i){if(i(e)!==ai)return!0;if(!0===i.definite&&void 0===t)return!1}return function(e,t,i){let a,n=i?{...i,async:!1,abortEarly:!0}:{async:!1,abortEarly:!0},o=e._zod.bag.fallbackRun;if(o?(n[aa]=!0,a=o({value:t,issues:[]},n)):a=e._zod.run({value:t,issues:[]},n),a instanceof Promise)throw new tQ;return 0===a.issues.length}(this,e,t)},validateAsync(e,t){return(async(e,t,i)=>{let a=i?{...i,async:!0,abortEarly:!0}:{async:!0,abortEarly:!0},n=e._zod.run({value:t,issues:[]},a);return n instanceof Promise&&(n=await n),0===n.issues.length})(this,e,t)},encode:function e(t,i){return ow(this,t,i,{callee:e})},decode:function e(t,i){return ox(this,t,i,{callee:e})},encodeAsync:async function e(t,i){return await ok(this,t,i,{callee:e})},decodeAsync:async function e(t,i){return await oE(this,t,i,{callee:e})},safeEncode(e,t){return oS(this,e,t)},safeDecode(e,t){return oC(this,e,t)},async safeEncodeAsync(e,t){return oT(this,e,t)},async safeDecodeAsync(e,t){return oI(this,e,t)},toJSONSchema(e){return((e,t={})=>i=>{let a=nV({...i,processors:t});return nZ(e,a),nG(a,e),nJ(a,e)})(this,{})(e)},get description(){return nT.get(this)?.description},get _def(){return this._zod.def}}),o$=tY("_ZodString",(e,t)=>{al.init(e,t),oA.init(e,t),e._zod.processJSONSchema=(t,i,a)=>((e,t,i)=>{i.type="string";let{minimum:a,maximum:n,format:o,patterns:r,contentEncoding:s,laxFormat:l}=oi(e);if("number"==typeof a&&(i.minLength=a),"number"==typeof n&&(i.maxLength=n),o&&(i.format=oa[o]??o,""===i.format&&delete i.format,("time"===o||l)&&delete i.format),s&&(i.contentEncoding=s),r&&r.size>0){let e=[...r].map(oo);1===e.length?i.pattern=e[0].source:e.length>1&&(i.allOf=[...e.map(e=>({..."draft-07"===t.target||"draft-04"===t.target||"openapi-3.0"===t.target?{type:"string"}:{},pattern:e.source}))])}})(e,t,i)},tV({format:e=>oi(e).format??null,minLength:e=>oi(e).minimum??null,maxLength:e=>oi(e).maximum??null},{regex(...e){return this.check(function(e,t){return new iB({check:"string_format",format:"regex",...tC(t),pattern:e})}(...e))},includes(...e){return this.check(function(e,t){return new iq({check:"string_format",format:"includes",...tC(t),includes:e})}(...e))},startsWith(...e){return this.check(function(e,t){return new iZ({check:"string_format",format:"starts_with",...tC(t),prefix:e})}(...e))},endsWith(...e){return this.check(function(e,t){return new iW({check:"string_format",format:"ends_with",...tC(t),suffix:e})}(...e))},min(...e){return this.check(nF(...e))},max(...e){return this.check(nU(...e))},length(...e){return this.check(nj(...e))},nonempty(...e){return this.check(nF(1,...e))},lowercase(e){return this.check(new iH({check:"string_format",format:"lowercase",...tC(e)}))},uppercase(e){return this.check(new iV({check:"string_format",format:"uppercase",...tC(e)}))},trim(){return this.check(nB(e=>e.trim()))},normalize(...e){return this.check(function(e){return nB(t=>t.normalize(e))}(...e))},toLowerCase(){return this.check(nB(e=>e.toLowerCase()))},toUpperCase(){return this.check(nB(e=>e.toUpperCase()))},slugify(){return this.check(nB(e=>e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")))}})),oO=tY("ZodString",(e,t)=>{al.init(e,t),o$.init(e,t)},{email(e){return this.check(nD(oU,e))},url(e){return this.check(nA(oB,e))},jwt(e){return this.check(new o4({type:"string",format:"jwt",check:"string_format",abort:!1,...tC(e)}))},emoji(e){return this.check(new oV({type:"string",format:"emoji",check:"string_format",abort:!1,...tC(e)}))},guid(e){return this.check(new oF({type:"string",format:"guid",check:"string_format",abort:!1,...tC(e)}))},uuid(e){return this.check(new oj({type:"string",format:"uuid",check:"string_format",abort:!1,...tC(e)}))},uuidv4(e){return this.check(new oj({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...tC(e)}))},uuidv6(e){return this.check(new oj({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...tC(e)}))},uuidv7(e){return this.check(new oj({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...tC(e)}))},nanoid(e){return this.check(new oq({type:"string",format:"nanoid",check:"string_format",abort:!1,...tC(e)}))},cuid(e){return this.check(new oZ({type:"string",format:"cuid",check:"string_format",abort:!1,...tC(e)}))},cuid2(e){return this.check(new oW({type:"string",format:"cuid2",check:"string_format",abort:!1,...tC(e)}))},ulid(e){return this.check(new oG({type:"string",format:"ulid",check:"string_format",abort:!1,...tC(e)}))},base64(e){return this.check(new o0({type:"string",format:"base64",check:"string_format",abort:!1,...tC(e)}))},base64url(e){return this.check(new o2({type:"string",format:"base64url",check:"string_format",abort:!1,...tC(e)}))},xid(e){return this.check(new oK({type:"string",format:"xid",check:"string_format",abort:!1,...tC(e)}))},ksuid(e){return this.check(new oY({type:"string",format:"ksuid",check:"string_format",abort:!1,...tC(e)}))},ipv4(e){return this.check(new oQ({type:"string",format:"ipv4",check:"string_format",abort:!1,...tC(e)}))},ipv6(e){return this.check(new oX({type:"string",format:"ipv6",check:"string_format",abort:!1,...tC(e)}))},cidrv4(e){return this.check(new oJ({type:"string",format:"cidrv4",check:"string_format",abort:!1,...tC(e)}))},cidrv6(e){return this.check(new o1({type:"string",format:"cidrv6",check:"string_format",abort:!1,...tC(e)}))},e164(e){return this.check(new o3({type:"string",format:"e164",check:"string_format",abort:!1,...tC(e)}))},datetime(e){return this.check(n$(oL,e))},date(e){return this.check(nO(oN,e))},time(e){return this.check(new oP({type:"string",format:"time",check:"string_format",precision:null,...tC(e)}))},duration(e){return this.check(new oz({type:"string",format:"duration",check:"string_format",...tC(e)}))}});function oR(e){return new oO(nI({type:"string",...tC(e)}))}let oM=tY("ZodStringFormat",(e,t)=>{ac.init(e,t),o$.init(e,t)}),oL=tY("ZodISODateTime",(e,t)=>{aE.init(e,t),oM.init(e,t)}),oN=tY("ZodISODate",(e,t)=>{aS.init(e,t),oM.init(e,t)}),oP=tY("ZodISOTime",(e,t)=>{aC.init(e,t),oM.init(e,t)}),oz=tY("ZodISODuration",(e,t)=>{aT.init(e,t),oM.init(e,t)}),oU=tY("ZodEmail",(e,t)=>{ap.init(e,t),oM.init(e,t)}),oF=tY("ZodGUID",(e,t)=>{ad.init(e,t),oM.init(e,t)}),oj=tY("ZodUUID",(e,t)=>{au.init(e,t),oM.init(e,t)}),oB=tY("ZodURL",(e,t)=>{af.init(e,t),oM.init(e,t)});function oH(e){return nA(oB,e)}let oV=tY("ZodEmoji",(e,t)=>{ay.init(e,t),oM.init(e,t)}),oq=tY("ZodNanoID",(e,t)=>{ab.init(e,t),oM.init(e,t)}),oZ=tY("ZodCUID",(e,t)=>{av.init(e,t),oM.init(e,t)}),oW=tY("ZodCUID2",(e,t)=>{a_.init(e,t),oM.init(e,t)}),oG=tY("ZodULID",(e,t)=>{aw.init(e,t),oM.init(e,t)}),oK=tY("ZodXID",(e,t)=>{ax.init(e,t),oM.init(e,t)}),oY=tY("ZodKSUID",(e,t)=>{ak.init(e,t),oM.init(e,t)}),oQ=tY("ZodIPv4",(e,t)=>{aI.init(e,t),oM.init(e,t)}),oX=tY("ZodIPv6",(e,t)=>{a$.init(e,t),oM.init(e,t)}),oJ=tY("ZodCIDRv4",(e,t)=>{aO.init(e,t),oM.init(e,t)}),o1=tY("ZodCIDRv6",(e,t)=>{aR.init(e,t),oM.init(e,t)}),o0=tY("ZodBase64",(e,t)=>{aN.init(e,t),oM.init(e,t)}),o2=tY("ZodBase64URL",(e,t)=>{az.init(e,t),oM.init(e,t)}),o3=tY("ZodE164",(e,t)=>{aU.init(e,t),oM.init(e,t)}),o4=tY("ZodJWT",(e,t)=>{aF.init(e,t),oM.init(e,t)}),o6=tY("ZodNumber",(e,t)=>{aj.init(e,t),oA.init(e,t),e._zod.processJSONSchema=(t,i,a)=>((e,t,i,a)=>{let{minimum:n,maximum:o,multipleOf:r,exclusiveMaximum:s,exclusiveMinimum:l,isInt:c}=oi(e);i.type=c?"integer":"number";let d="number"==typeof l&&l>=(n??-1/0),u="number"==typeof s&&s<=(o??1/0),p="draft-04"===t.target||"openapi-3.0"===t.target;if(d?p?(i.minimum=l,i.exclusiveMinimum=!0):i.exclusiveMinimum=l:"number"==typeof n&&(i.minimum=n),u?p?(i.maximum=s,i.exclusiveMaximum=!0):i.exclusiveMaximum=s:"number"==typeof o&&(i.maximum=o),r){let n=new Set;for(let o of r)Number.isFinite(o)&&0!==o?n.add(Math.abs(o)):nq(e,t,i,a,`A multipleOf divisor of ${o} cannot be represented in JSON Schema`);let[o,...s]=n;void 0!==o&&(i.multipleOf=o),s.length&&(i.allOf=[...i.allOf??[],...s.map(e=>({multipleOf:e}))])}})(e,t,i,a),e.isFinite=!0},tV({minValue:e=>{let{minimum:t,exclusiveMinimum:i}=oi(e);return Math.max(t??-1/0,i??-1/0)},maxValue:e=>{let{maximum:t,exclusiveMaximum:i}=oi(e);return Math.min(t??1/0,i??1/0)},isInt:e=>{let{isInt:t,multipleOf:i}=oi(e);return!!t||!!i?.some(Number.isSafeInteger)},format:e=>oi(e).format??null},{gt(e,t){return this.check(nL(e,t))},gte(e,t){return this.check(nN(e,t))},min(e,t){return this.check(nN(e,t))},lt(e,t){return this.check(nR(e,t))},lte(e,t){return this.check(nM(e,t))},max(e,t){return this.check(nM(e,t))},int(e){return this.check(o7(e))},safe(e){return this.check(o7(e))},positive(e){return this.check(nL(0,e))},nonnegative(e){return this.check(nN(0,e))},negative(e){return this.check(nR(0,e))},nonpositive(e){return this.check(nM(0,e))},multipleOf(e,t){return this.check(nP(e,t))},step(e,t){return this.check(nP(e,t))},finite(){return this}}));function o5(e){return new o6(nI({type:"number",checks:[],...tC(e)}))}let o8=tY("ZodNumberFormat",(e,t)=>{aB.init(e,t),o6.init(e,t)});function o7(e){return new o8({type:"number",check:"number_format",abort:!1,format:"safeint",...tC(e)})}let o9=tY("ZodBoolean",(e,t)=>{aH.init(e,t),oA.init(e,t),e._zod.processJSONSchema=(e,t,i)=>{t.type="boolean"}});function re(e){return new o9({type:"boolean",...tC(e)})}let rt=tY("ZodNull",(e,t)=>{aV.init(e,t),oA.init(e,t),e._zod.processJSONSchema=(e,t,i)=>{"openapi-3.0"===e.target?(t.type="string",t.nullable=!0,t.enum=[null]):t.type="null"}});function ri(e){return new rt({type:"null",...tC(e)})}let ra=tY("ZodAny",(e,t)=>{aq.init(e,t),oA.init(e,t),e._zod.processJSONSchema=(e,t,i)=>void 0});function rn(){return new ra({type:"any"})}let ro=tY("ZodUnknown",(e,t)=>{aZ.init(e,t),oA.init(e,t),e._zod.processJSONSchema=(e,t,i)=>void 0});function rr(){return new ro({type:"unknown"})}let rs=tY("ZodNever",(e,t)=>{aW.init(e,t),oA.init(e,t),e._zod.processJSONSchema=(e,t,i)=>{t.not={}}}),rl=tY("ZodVoid",(e,t)=>{aG.init(e,t),oA.init(e,t),e._zod.processJSONSchema=(t,i,a)=>{nq(e,t,i,a,"Void cannot be represented in JSON Schema")}});function rc(e){return new rl({type:"void",...tC(e)})}let rd=tY("ZodDate",(e,t)=>{aK.init(e,t),oA.init(e,t),e._zod.processJSONSchema=(t,i,a)=>{nq(e,t,i,a,"Date cannot be represented in JSON Schema")},e.min=(t,i)=>e.check(nN(t,i)),e.max=(t,i)=>e.check(nM(t,i))},tV({minDate:e=>{let{minimum:t}=oi(e);return t?new Date(t):null},maxDate:e=>{let{maximum:t}=oi(e);return t?new Date(t):null}},{})),ru=tY("ZodArray",(e,t)=>{oD(),aQ.init(e,t),oA.init(e,t),e._zod.processJSONSchema=(t,i,a)=>((e,t,i,a)=>{let n=e._zod.def,{minimum:o,maximum:r}=oi(e);"number"==typeof o&&(i.minItems=o),"number"==typeof r&&(i.maxItems=r),i.type="array",i.items=nZ(n.element,t,{...a,path:[...a.path,"items"]})})(e,t,i,a),e.element=t.element},{min(e,t){return this.check(nF(e,t))},nonempty(e){return this.check(nF(1,e))},max(e,t){return this.check(nU(e,t))},length(e,t){return this.check(nj(e,t))},unwrap(){return this.element}});function rp(e,t){return new ru({type:"array",element:e,...tC(t)})}let rh=tY("ZodObject",(e,t)=>{var i;let a,n;oD(),a3.init(e,t),oA.init(e,t),e._zod.processJSONSchema=(t,i,a)=>((e,t,i,a)=>{let n=e._zod.def,o=n.shape;if(Object.getOwnPropertySymbols(o).length&&nq(e,t,i,a,"Symbol keys cannot be represented in JSON Schema"))return;for(let e in i.type="object",i.properties={},o)tu(i.properties,e,nZ(o[e],t,{...a,path:[...a.path,"properties",e]}));let r=[];for(let e of Object.keys(o)){let i=n.shape[e];("input"===t.io?void 0===or(i):void 0===i._zod.optout)&&r.push(e)}r.length>0&&(i.required=r),n.catchall?._zod.def.type==="never"?i.additionalProperties=!1:n.catchall?n.catchall&&(i.additionalProperties=nZ(n.catchall,t,{...a,path:[...a.path,"additionalProperties"]})):"output"===t.io&&(i.additionalProperties=!1)})(e,t,i,a),i="shape",(n=i in(a=Object.getPrototypeOf(e))?void 0:a)&&Object.defineProperty(n,i,{configurable:!0,get(){let e={configurable:!0,writable:!0,enumerable:!1,value:void 0};return Object.defineProperty(this,i,e),e.value=(e=>e._zod.def.shape)(this),Object.defineProperty(this,i,e),e.value},set(e){Object.defineProperty(this,i,{configurable:!0,writable:!0,enumerable:!1,value:e})}})},{keyof(){return rT(Object.keys(this._zod.def.shape))},catchall(e){return this.clone(ty(this._zod.def,{catchall:e}))},passthrough(){return this.clone(ty(this._zod.def,{catchall:rr()}))},loose(){return this.clone(ty(this._zod.def,{catchall:rr()}))},strict(){return this.clone(ty(this._zod.def,{catchall:new rs({type:"never",...tC(void 0)})}))},strip(){return this.clone(ty(this._zod.def,{catchall:void 0}))},extend(e){if(!tw(e))throw Error("Invalid input to extend: expected a plain object");let t=this._zod.def.checks;if(t&&t.length>0){let t=th(this);for(let i of Reflect.ownKeys(e))if(void 0!==Object.getOwnPropertyDescriptor(t,i))throw Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}return tS(this,ty(this._zod.def,{shape:t$(this,e)}))},safeExtend(e){if(!tw(e))throw Error("Invalid input to safeExtend: expected a plain object");return tS(this,ty(this._zod.def,{shape:t$(this,e)}))},merge(e){if(!e?._zod?.def)throw Error("Invalid input to merge: expected an object schema. To merge a plain shape, use `.extend()`.");if(this._zod.def.checks?.length)throw Error(".merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.");let t={};return tf(t,this,Reflect.ownKeys(th(this))),tf(t,e,Reflect.ownKeys(th(e))),tS(this,ty(this._zod.def,{shape:t,get catchall(){return e._zod.def.catchall},checks:e._zod.def.checks??[]}))},pick(e){return function(e,t){let i=e._zod.def,a=i.checks;if(a&&a.length>0)throw Error(".pick() cannot be used on object schemas containing refinements");let n={};return tf(n,e,tA(e,t)),tS(e,ty(i,{shape:n,checks:[]}))}(this,e)},omit(e){return function(e,t){let i=e._zod.def,a=i.checks;if(a&&a.length>0)throw Error(".omit() cannot be used on object schemas containing refinements");let n=new Set(tA(e,t)),o={};return tf(o,e,Reflect.ownKeys(th(e)).filter(e=>!n.has(e))),tS(e,ty(i,{shape:o,checks:[]}))}(this,e)},partial(...e){return tO(rD,this,e[0])},exactPartial(...e){return tO(r$,this,e[0],"exactPartial")},required(...e){var t;let i,a;return i=(t=e[0])?new Set(tA(this,t)):void 0,tf(a={},this,Reflect.ownKeys(th(this)),(e,t)=>i&&!i.has(t)?e:new rN({type:"nonoptional",innerType:e})),tS(this,ty(this._zod.def,{shape:a}))}});function rg(e,t){return new rh({type:"object",shape:e??{},...tC(t)})}function rm(e,t){return new rh({type:"object",shape:e,catchall:rr(),...tC(t)})}let rf=tY("ZodUnion",(e,t)=>{a6.init(e,t),oA.init(e,t),e._zod.processJSONSchema=(t,i,a)=>{let n,o,r;return o=!1===(n=e._zod.def).inclusive,r=n.options.map((e,i)=>nZ(e,t,{...a,path:[...a.path,o?"oneOf":"anyOf",i]})),void(o?i.oneOf=r:i.anyOf=r)},e.options=t.options});function ry(e,t){return new rf({type:"union",options:e,...tC(t)})}let rb=tY("ZodDiscriminatedUnion",(e,t)=>{rf.init(e,t),a5.init(e,t)});function rv(e,t,i){return new rb({type:"union",options:t,discriminator:e,...tC(i)})}let r_=tY("ZodIntersection",(e,t)=>{a8.init(e,t),oA.init(e,t),e._zod.processJSONSchema=(t,i,a)=>{let n,o,r,s,l;return o=nZ((n=e._zod.def).left,t,{...a,path:[...a.path,"allOf",0]}),r=nZ(n.right,t,{...a,path:[...a.path,"allOf",1]}),void(i.allOf=l=[...(s=e=>"allOf"in e&&1===Object.keys(e).length)(o)?o.allOf:[o],...s(r)?r.allOf:[r]],t.intersections.push(l))}}),rw=tY("ZodTuple",(e,t)=>{oD(),a9.init(e,t),oA.init(e,t),e._zod.processJSONSchema=(t,i,a)=>((e,t,i,a)=>{let n=e._zod.def;i.type="array";let o="draft-2020-12"===t.target?"prefixItems":"items",r="draft-2020-12"===t.target||"openapi-3.0"===t.target?"items":"additionalItems",s=n.items.map((e,i)=>nZ(e,t,{...a,path:[...a.path,o,i]})),l=n.rest?nZ(n.rest,t,{...a,path:[...a.path,r,..."openapi-3.0"===t.target?[n.items.length]:[]]}):null,c=n.items.length;for(;c>0;){let e=n.items[c-1];if(!("input"===t.io?void 0!==or(e):"optional"===e._zod.optout))break;c--}let d=n.items.length,u=!n.rest;"draft-2020-12"===t.target?(i.prefixItems=s,u?i.items=!1:l&&(i.items=l)):"openapi-3.0"===t.target?(i.items={anyOf:s},l&&i.items.anyOf.push(l)):(i.items=s,u?i.additionalItems=!1:l&&(i.additionalItems=l)),c>0&&(i.minItems=c),u&&(i.maxItems=d);let{minimum:p,maximum:h}=oi(e);"number"==typeof p&&(i.minItems=p),"number"==typeof h&&(i.maxItems=h)})(e,t,i,a)},{rest(e){return this.clone({...this._zod.def,rest:e})},partial(){let e=this._zod.def;if(e.checks?.length)throw Error(".partial() cannot be used on tuple schemas containing refinements");return this.clone({...e,items:e.items.map(e=>new rD({type:"optional",innerType:e}))})}});function rx(e,t,i){let a=t instanceof ao,n=a?i:t;return new rw({type:"tuple",items:e,rest:a?t:null,...tC(n)})}let rk=tY("ZodRecord",(e,t)=>{oD(),na.init(e,t),oA.init(e,t),e._zod.processJSONSchema=(t,i,a)=>((e,t,i,a)=>{let n=e._zod.def;i.type="object";let o=n.keyType,r=oi(o).patterns;if("loose"===n.mode&&r&&r.size>0){let e=nZ(n.valueType,t,{...a,path:[...a.path,"patternProperties","*"]});for(let t of(i.patternProperties={},r))tu(i.patternProperties,oo(t).source,e)}else{if("draft-07"===t.target||"draft-2020-12"===t.target){i.propertyNames=nZ(n.keyType,t,{...a,path:[...a.path,"propertyNames"]});let o=os.get(t);o||(o=[],os.set(t,o),t.deferred.push(()=>(function(e){let t=new Map;for(let i of e.seen.values())i.def&&!t.has(i.schema)&&t.set(i.schema,i);let i=new Map;for(let a of os.get(e)??[]){let n=e.seen.get(a),o=(n?.def??n?.schema)?.propertyNames;if(!o||!0===o||i.has(o))continue;let r=function e(t,i,a){if(i.$ref){if(a.has(i))return i;a.add(i);let n=t.get(i)?.def;if(!n)return i;let o=e(t,n,a);return o===n?i:o}for(let n of["anyOf","oneOf"]){let o=i[n];if(!Array.isArray(o))continue;let r=o.map(i=>e(t,i,a));r.some((e,t)=>e!==o[t])&&(i={...i,[n]:r})}let n=Array.isArray(i.type)?i.type:[i.type],o=!n.includes("string")&&n.some(e=>"number"===e||"integer"===e),r=i.enum??(void 0!==i.const?[i.const]:void 0);if(!o&&!r?.some(e=>"number"==typeof e))return i;let{minimum:s,maximum:l,exclusiveMinimum:c,exclusiveMaximum:d,multipleOf:u,format:p,id:h,...g}=i;return g.enum?g.enum=g.enum.map(e=>"number"==typeof e?String(e):e):"number"==typeof g.const&&(g.const=String(g.const)),o&&(g.type="string",r||(g.pattern=(n.includes("number")?ix:iw).source)),g}(t,o,new Set);r!==o&&i.set(o,r)}if(i.size)for(let t of e.seen.values())for(let e of[t.schema,t.def]){let t=e&&i.get(e.propertyNames);t&&(e.propertyNames=t)}})(t))),o.push(e)}i.additionalProperties=nZ(n.valueType,t,{...a,path:[...a.path,"additionalProperties"]})}let s=o._zod.values,l="input"===t.io&&void 0!==or(n.valueType);if(s&&!n.partial&&!l){let e=[...s].filter(e=>"string"==typeof e||"number"==typeof e);e.length>0&&(i.required=e.map(String))}})(e,t,i,a),e.keyType=t.keyType,e.valueType=t.valueType});function rE(e,t,i){return new rk(t&&t._zod?{type:"record",keyType:e,valueType:t,...tC(i)}:{type:"record",keyType:oR(),valueType:e,...tC(t)})}let rS=tY("ZodMap",(e,t)=>{oD(),nn.init(e,t),oA.init(e,t),e._zod.processJSONSchema=(t,i,a)=>{nq(e,t,i,a,"Map cannot be represented in JSON Schema")},e.keyType=t.keyType,e.valueType=t.valueType,e.min=(...t)=>e.check(nz(...t)),e.nonempty=t=>e.check(nz(1,t)),e.max=(...t)=>e.check(function(e,t){return new iL({check:"max_size",...tC(t),maximum:e})}(...t)),e.size=(...t)=>e.check(function(e,t){return new iP({check:"size_equals",...tC(t),size:e})}(...t))}),rC=tY("ZodEnum",(e,t)=>{nr.init(e,t),oA.init(e,t),e._zod.processJSONSchema=(t,i,a)=>((e,t)=>{let i=tn(e._zod.def.entries);if(0===i.length){t.not={};return}i.every(e=>"number"==typeof e)&&(t.type="number"),i.every(e=>"string"==typeof e)&&(t.type="string"),t.enum=i})(e,i),e.enum=t.entries,e.options=[...e._zod.values];let i=new Set(Object.keys(t.entries));e.extract=(e,a)=>{let n={};for(let a of e)if(i.has(a))n[a]=t.entries[a];else throw Error(`Key ${a} not found in enum`);return new rC({...t,checks:[],...tC(a),entries:n})},e.exclude=(e,a)=>{let n={...t.entries};for(let t of e)if(i.has(t))delete n[t];else throw Error(`Key ${t} not found in enum`);return new rC({...t,checks:[],...tC(a),entries:n})}});function rT(e,t){return new rC({type:"enum",entries:Array.isArray(e)?Object.fromEntries(e.map(e=>[e,e])):e,...tC(t)})}let rI=tY("ZodTransform",(e,t)=>{oD(),ns.init(e,t),oA.init(e,t),e._zod.processJSONSchema=(t,i,a)=>{nq(e,t,i,a,"Transforms cannot be represented in JSON Schema")},e._zod.parse=(i,a)=>{if("backward"===a.direction)throw new tX(e.constructor.name);i.addIssue=a=>{"string"==typeof a?i.issues.push(tB(a,i.value,t)):(a.fatal&&(a.continue=!1),a.code??(a.code="custom"),"input"in a||(a.input=i.value),a.inst??(a.inst=e),i.issues.push(tB(a)))};let n=t.transform(i.value,i);return n instanceof Promise?n.then(e=>(i.value=e,i)):(i.value=n,i)}}),rD=tY("ZodOptional",(e,t)=>{nc.init(e,t),oA.init(e,t),e._zod.processJSONSchema=(t,i,a)=>od(e,t,i,a),e.unwrap=()=>e._zod.def.innerType});function rA(e){return new rD({type:"optional",innerType:e})}let r$=tY("ZodExactOptional",(e,t)=>{nd.init(e,t),oA.init(e,t),e._zod.processJSONSchema=(t,i,a)=>od(e,t,i,a),e.unwrap=()=>e._zod.def.innerType}),rO=tY("ZodNullable",(e,t)=>{nu.init(e,t),oA.init(e,t),e._zod.processJSONSchema=(t,i,a)=>{let n,o,r;return o=nZ((n=e._zod.def).innerType,t,a),r=t.seen.get(e),void("openapi-3.0"===t.target?(r.ref=n.innerType,i.nullable=!0):i.anyOf=[o,{type:"null"}])},e.unwrap=()=>e._zod.def.innerType});function rR(e){return new rO({type:"nullable",innerType:e})}let rM=tY("ZodDefault",(e,t)=>{np.init(e,t),oA.init(e,t),e._zod.processJSONSchema=(t,i,a)=>{let n,o;return nZ((n=e._zod.def).innerType,t,a),t.seen.get(e).ref=n.innerType,void((o=oc(n.defaultValue,e,t,i,a))!==ol&&(i.default=o))},e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap}),rL=tY("ZodPrefault",(e,t)=>{ng.init(e,t),oA.init(e,t),e._zod.processJSONSchema=(t,i,a)=>((e,t,i,a)=>{let n=e._zod.def;if(nZ(n.innerType,t,a),t.seen.get(e).ref=n.innerType,"input"!==t.io)return;let o=oc(n.defaultValue,e,t,i,a);o!==ol&&(i._prefault=o)})(e,t,i,a),e.unwrap=()=>e._zod.def.innerType}),rN=tY("ZodNonOptional",(e,t)=>{nm.init(e,t),oA.init(e,t),e._zod.processJSONSchema=(t,i,a)=>{let n;nZ((n=e._zod.def).innerType,t,a),t.seen.get(e).ref=n.innerType},e.unwrap=()=>e._zod.def.innerType}),rP=tY("ZodCatch",(e,t)=>{nb.init(e,t),oA.init(e,t),e._zod.processJSONSchema=(t,i,a)=>((e,t,i,a)=>{let n,o=e._zod.def;nZ(o.innerType,t,a),t.seen.get(e).ref=o.innerType;try{n=o.catchValue(void 0)}catch{nq(e,t,i,a,"Dynamic catch values are not supported in JSON Schema");return}i.default=n})(e,t,i,a),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap}),rz=tY("ZodPipe",(e,t)=>{nv.init(e,t),oA.init(e,t),e._zod.processJSONSchema=(t,i,a)=>{let n,o,r;return o=(n=e._zod.def).in._zod.traits.has("$ZodTransform"),void(nZ(r="input"===t.io?o?n.out:n.in:n.out,t,a),t.seen.get(e).ref=r)},e.in=t.in,e.out=t.out});function rU(e,t){return new rz({type:"pipe",in:e,out:t})}let rF=tY("ZodReadonly",(e,t)=>{nw.init(e,t),oA.init(e,t),e._zod.processJSONSchema=(t,i,a)=>{let n;nZ((n=e._zod.def).innerType,t,a),t.seen.get(e).ref=n.innerType,i.readOnly=!0},e.unwrap=()=>e._zod.def.innerType}),rj=tY("ZodLazy",(e,t)=>{nE.init(e,t),oA.init(e,t),e._zod.processJSONSchema=(t,i,a)=>{let n;nZ(n=e._zod.innerType,t,a),t.seen.get(e).ref=n},e.unwrap=()=>e._zod.def.getter()});function rB(e){return new rj({type:"lazy",getter:e})}let rH=tY("ZodFunction",(e,t)=>{nk.init(e,t),oA.init(e,t),e._zod.processJSONSchema=(t,i,a)=>{nq(e,t,i,a,"Function types cannot be represented in JSON Schema")}});function rV(e){return new rH({type:"function",input:Array.isArray(e?.input)?rx(e?.input):e?.input??rp(rr()),output:e?.output??rr()})}let rq=tY("ZodCustom",(e,t)=>{nS.init(e,t),oA.init(e,t),e._zod.processJSONSchema=(t,i,a)=>{nq(e,t,i,a,"Custom types cannot be represented in JSON Schema")}});function rZ(e,t){var i;let a;return i=e??(()=>!0),(a=tC(t)).abort??(a.abort=!0),new rq({type:"custom",check:"custom",fn:i,...a})}let rW=tY("ZodInstanceOf",(e,t)=>{rq.init(e,t)},{properties(e,t){return this.check(new iK({check:"properties",shape:e,...tC(t)}))}});function rG(e,t={}){let i=new rW({type:"custom",check:"custom",fn:t=>t instanceof e,abort:!0,...tC(t)});return i._zod.bag.Class=e,i._zod.check=t=>{t.value instanceof e||t.issues.push({code:"invalid_type",expected:e.name,input:t.value,inst:i,path:[...i._zod.def.path??[]]})},i}function rK(e){return null!=e}function rY(e){return!!(!rK(e)||!1===e||"string"==typeof e&&0===e.length||Array.isArray(e)&&0===e.length)||"object"==typeof e&&0===Object.keys(e).length}function rQ(e="",t={},i={}){let a,n=e;if(rY(n)&&"u">typeof window&&window.location&&(n=window.location.href),rY(n))return e;try{a=new URL(n)}catch(e){return console.error("Failed to parse URL:",n,e),n}let o=a.search?a.search.substring(1).split("&").filter(Boolean):[];for(let[e,i]of Object.entries(t)){let t=encodeURIComponent(e),a=encodeURIComponent(null==i?"":String(i)),n=!1;for(let e=0;e<o.length;e++){let[i]=o[e].split("=");if(i===t){o[e]=`${t}=${a}`,n=!0;break}}n||o.push(`${t}=${a}`)}o=o.filter(e=>{let[,t]=e.split("=");return!rY(e)&&!rY(t)}),a.search=o.join("&");let r={setAsURL:!1,refresh:!1,hash:a.hash,...i},s=r.hash.replace(/^#/,"");a.hash=rY(s)?"":`#${s}`;let l=a.toString();if("u">typeof window&&"u">typeof document&&r.setAsURL)if(r.refresh)window.location.href=l;else{let e=document.title;window.history.pushState({},e,l)}return l}rg({words:o5({error:"Words must be a number."}).int({error:"Words must be an integer."}).positive({error:"Words must be a positive number."}).optional().default(6),separator:oR({error:"Separator must be a string."}).optional().default(" ... "),minLengthDiff:o5({error:"Minimum length difference must be a number."}).int({error:"Minimum length difference must be an integer."}).positive({error:"Minimum length difference must be a positive number."}).optional().default(1)});let rX=rg({source:oR().nullish(),medium:oR().nullish(),referrer:oR().nullish()}).strict(),rJ=rg({campaign:oR().nullish(),content:oR().nullish()}).strict(),r1={};function r0(e,t={}){if(rY(e))return"";let{campaign:i,content:a}=rJ.parse(t??{}),{source:n,medium:o,referrer:r}=r1,s={};return rY(n)||(s.utm_source=n),s.utm_medium=rY(o)?"plugin":o,rY(i)||(s.utm_campaign=i),rY(a)||(s.utm_content=a),rY(r)||(s.utm_r=r),rQ(e,s)}let r2=e=>Number.isFinite(e.x)&&Number.isFinite(e.y);rg({x:o5(),y:o5(),width:o5(),height:o5()}).readonly();let r3="data-entity-id",r4="data-canvas-port",r6=`[${r4}],[${r3}]`;function r5(e){return{x:e.x+e.width/2,y:e.y}}function r8(e){return{x:e.x+e.width/2,y:e.y+e.height}}function r7(e){return{x:e.x+e.width/2,y:e.y+e.height/2}}function r9(e,t,i,a,n){let o=new Map,r=e=>{for(let s of e.querySelectorAll("*")){if(s.matches(a)){let e=n(s);null===e||o.has(e)||o.set(e,function(e,t,i){let a=Number.isFinite(i)&&i>0?i:1;return{x:(e.left-t.left)/a,y:(e.top-t.top)/a,width:e.width/a,height:e.height/a}}(s.getBoundingClientRect(),t,i))}null!==s.shadowRoot&&r(s.shadowRoot)}};return e instanceof Element&&null!==e.shadowRoot&&r(e.shadowRoot),r(e),o}let se="data-container-id",st="data-slot",si=`[${se}][${st}]`;function sa(e,t){return`${e}:${t}`}function sn(e){let t=e.getAttribute(se),i=e.getAttribute(st);return null===t||""===t||null===i||""===i?null:sa(t,i)}let so=`${r6},${si}`;function sr(e){return function(e){let t=e.getAttribute(r4);if(null!==t&&""!==t)return t;let i=e.getAttribute(r3);return null!==i&&""!==i?i:null}(e)??sn(e)}let ss={NO_FOCUS_CHANGE:"no-focus-change",FOCUS_CAPTURED_SURFACE:"focus-captured-surface"},sl=rT(ss);rg({maxBytes:o5().int().positive().optional(),jpegQuality:o5().min(0).max(1).optional(),filenamePrefix:oR().min(1).optional(),displayMediaOptions:rZ().optional(),focusBehavior:sl.optional()}),ss.NO_FOCUS_CHANGE,rg({locale:oR().min(1).optional()}).strict();let sc={},sd=globalThis,su=sd.ShadowRoot&&(void 0===sd.ShadyCSS||sd.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,sp=Symbol(),sh=new WeakMap;class sg{constructor(e,t,i){if(this._$cssResult$=!0,i!==sp)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o,t=this.t;if(su&&void 0===e){let i=void 0!==t&&1===t.length;i&&(e=sh.get(t)),void 0===e&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),i&&sh.set(t,e))}return e}toString(){return this.cssText}}let sm=e=>new sg("string"==typeof e?e:e+"",void 0,sp),sf=(e,...t)=>new sg(1===e.length?e[0]:t.reduce((t,i,a)=>t+(e=>{if(!0===e._$cssResult$)return e.cssText;if("number"==typeof e)return e;throw Error("Value passed to 'css' function must be a 'css' function result: "+e+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+e[a+1],e[0]),e,sp),sy=su?e=>e:e=>e instanceof CSSStyleSheet?(e=>{let t="";for(let i of e.cssRules)t+=i.cssText;return sm(t)})(e):e,{is:sb,defineProperty:sv,getOwnPropertyDescriptor:s_,getOwnPropertyNames:sw,getOwnPropertySymbols:sx,getPrototypeOf:sk}=Object,sE=globalThis,sS=sE.trustedTypes,sC=sS?sS.emptyScript:"",sT=sE.reactiveElementPolyfillSupport,sI={toAttribute(e,t){switch(t){case Boolean:e=e?sC:null;break;case Object:case Array:e=null==e?e:JSON.stringify(e)}return e},fromAttribute(e,t){let i=e;switch(t){case Boolean:i=null!==e;break;case Number:i=null===e?null:Number(e);break;case Object:case Array:try{i=JSON.parse(e)}catch{i=null}}return i}},sD=(e,t)=>!sb(e,t),sA={attribute:!0,type:String,converter:sI,reflect:!1,useDefault:!1,hasChanged:sD};Symbol.metadata??=Symbol("metadata"),sE.litPropertyMetadata??=new WeakMap;class s$ extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??=[]).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,t=sA){if(t.state&&(t.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(e)&&((t=Object.create(t)).wrapped=!0),this.elementProperties.set(e,t),!t.noAccessor){let i=Symbol(),a=this.getPropertyDescriptor(e,i,t);void 0!==a&&sv(this.prototype,e,a)}}static getPropertyDescriptor(e,t,i){let{get:a,set:n}=s_(this.prototype,e)??{get(){return this[t]},set(e){this[t]=e}};return{get:a,set(t){let o=a?.call(this);n?.call(this,t),this.requestUpdate(e,o,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??sA}static _$Ei(){if(this.hasOwnProperty("elementProperties"))return;let e=sk(this);e.finalize(),void 0!==e.l&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty("finalized"))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty("properties")){let e=this.properties;for(let t of[...sw(e),...sx(e)])this.createProperty(t,e[t])}let e=this[Symbol.metadata];if(null!==e){let t=litPropertyMetadata.get(e);if(void 0!==t)for(let[e,i]of t)this.elementProperties.set(e,i)}for(let[e,t]of(this._$Eh=new Map,this.elementProperties)){let i=this._$Eu(e,t);void 0!==i&&this._$Eh.set(i,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){let t=[];if(Array.isArray(e))for(let i of new Set(e.flat(1/0).reverse()))t.unshift(sy(i));else void 0!==e&&t.push(sy(e));return t}static _$Eu(e,t){let i=t.attribute;return!1===i?void 0:"string"==typeof i?i:"string"==typeof e?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(e=>e(this))}addController(e){(this._$EO??=new Set).add(e),void 0!==this.renderRoot&&this.isConnected&&e.hostConnected?.()}removeController(e){this._$EO?.delete(e)}_$E_(){let e=new Map;for(let t of this.constructor.elementProperties.keys())this.hasOwnProperty(t)&&(e.set(t,this[t]),delete this[t]);e.size>0&&(this._$Ep=e)}createRenderRoot(){let e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return((e,t)=>{if(su)e.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(let i of t){let t=document.createElement("style"),a=sd.litNonce;void 0!==a&&t.setAttribute("nonce",a),t.textContent=i.cssText,e.appendChild(t)}})(e,this.constructor.elementStyles),e}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(e=>e.hostConnected?.())}enableUpdating(e){}disconnectedCallback(){this._$EO?.forEach(e=>e.hostDisconnected?.())}attributeChangedCallback(e,t,i){this._$AK(e,i)}_$ET(e,t){let i=this.constructor.elementProperties.get(e),a=this.constructor._$Eu(e,i);if(void 0!==a&&!0===i.reflect){let n=(void 0!==i.converter?.toAttribute?i.converter:sI).toAttribute(t,i.type);this._$Em=e,null==n?this.removeAttribute(a):this.setAttribute(a,n),this._$Em=null}}_$AK(e,t){let i=this.constructor,a=i._$Eh.get(e);if(void 0!==a&&this._$Em!==a){let e=i.getPropertyOptions(a),n="function"==typeof e.converter?{fromAttribute:e.converter}:void 0!==e.converter?.fromAttribute?e.converter:sI;this._$Em=a;let o=n.fromAttribute(t,e.type);this[a]=o??this._$Ej?.get(a)??o,this._$Em=null}}requestUpdate(e,t,i,a=!1,n){if(void 0!==e){let o=this.constructor;if(!1===a&&(n=this[e]),!(((i??=o.getPropertyOptions(e)).hasChanged??sD)(n,t)||i.useDefault&&i.reflect&&n===this._$Ej?.get(e)&&!this.hasAttribute(o._$Eu(e,i))))return;this.C(e,t,i)}!1===this.isUpdatePending&&(this._$ES=this._$EP())}C(e,t,{useDefault:i,reflect:a,wrapped:n},o){i&&!(this._$Ej??=new Map).has(e)&&(this._$Ej.set(e,o??t??this[e]),!0!==n||void 0!==o)||(this._$AL.has(e)||(this.hasUpdated||i||(t=void 0),this._$AL.set(e,t)),!0===a&&this._$Em!==e&&(this._$Eq??=new Set).add(e))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(e){Promise.reject(e)}let e=this.scheduleUpdate();return null!=e&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[e,t]of this._$Ep)this[e]=t;this._$Ep=void 0}let e=this.constructor.elementProperties;if(e.size>0)for(let[t,i]of e){let{wrapped:e}=i,a=this[t];!0!==e||this._$AL.has(t)||void 0===a||this.C(t,void 0,i,a)}}let e=!1,t=this._$AL;try{(e=this.shouldUpdate(t))?(this.willUpdate(t),this._$EO?.forEach(e=>e.hostUpdate?.()),this.update(t)):this._$EM()}catch(t){throw e=!1,this._$EM(),t}e&&this._$AE(t)}willUpdate(e){}_$AE(e){this._$EO?.forEach(e=>e.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Eq&&=this._$Eq.forEach(e=>this._$ET(e,this[e])),this._$EM()}updated(e){}firstUpdated(e){}}s$.elementStyles=[],s$.shadowRootOptions={mode:"open"},s$.elementProperties=new Map,s$.finalized=new Map,sT?.({ReactiveElement:s$}),(sE.reactiveElementVersions??=[]).push("2.1.2");let sO=globalThis,sR=e=>e,sM=sO.trustedTypes,sL=sM?sM.createPolicy("lit-html",{createHTML:e=>e}):void 0,sN="$lit$",sP=`lit$${Math.random().toFixed(9).slice(2)}$`,sz="?"+sP,sU=`<${sz}>`,sF=document,sj=()=>sF.createComment(""),sB=e=>null===e||"object"!=typeof e&&"function"!=typeof e,sH=Array.isArray,sV=e=>sH(e)||"function"==typeof e?.[Symbol.iterator],sq=`[ \f\r]`,sZ=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,sW=/--\x3e/g,sG=/>/g,sK=RegExp(`>|${sq}(?:([^\\s"'>=/]+)(${sq}*=${sq}*(?:[^ \f\r"'\`<>=]|("|')|))|$)`,"g"),sY=/'/g,sQ=/"/g,sX=/^(?:script|style|textarea|title)$/i,sJ=e=>(t,...i)=>({_$litType$:e,strings:t,values:i}),s1=sJ(1),s0=sJ(2),s2=(sJ(3),Symbol.for("lit-noChange")),s3=Symbol.for("lit-nothing"),s4=new WeakMap,s6=sF.createTreeWalker(sF,129);function s5(e,t){if(!sH(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==sL?sL.createHTML(t):t}let s8=(e,t)=>{let i=e.length-1,a=[],n,o=2===t?"<svg>":3===t?"<math>":"",r=sZ;for(let t=0;t<i;t++){let i=e[t],s,l,c=-1,d=0;for(;d<i.length&&(r.lastIndex=d,null!==(l=r.exec(i)));)d=r.lastIndex,r===sZ?"!--"===l[1]?r=sW:void 0!==l[1]?r=sG:void 0!==l[2]?(sX.test(l[2])&&(n=RegExp("</"+l[2],"g")),r=sK):void 0!==l[3]&&(r=sK):r===sK?">"===l[0]?(r=n??sZ,c=-1):void 0===l[1]?c=-2:(c=r.lastIndex-l[2].length,s=l[1],r=void 0===l[3]?sK:'"'===l[3]?sQ:sY):r===sQ||r===sY?r=sK:r===sW||r===sG?r=sZ:(r=sK,n=void 0);let u=r===sK&&e[t+1].startsWith("/>")?" ":"";o+=r===sZ?i+sU:c>=0?(a.push(s),i.slice(0,c)+sN+i.slice(c)+sP+u):i+sP+(-2===c?t:u)}return[s5(e,o+(e[i]||"<?>")+(2===t?"</svg>":3===t?"</math>":"")),a]};class s7{constructor({strings:e,_$litType$:t},i){let a;this.parts=[];let n=0,o=0,r=e.length-1,s=this.parts,[l,c]=s8(e,t);if(this.el=s7.createElement(l,i),s6.currentNode=this.el.content,2===t||3===t){let e=this.el.content.firstChild;e.replaceWith(...e.childNodes)}for(;null!==(a=s6.nextNode())&&s.length<r;){if(1===a.nodeType){if(a.hasAttributes())for(let e of a.getAttributeNames())if(e.endsWith(sN)){let t=c[o++],i=a.getAttribute(e).split(sP),r=/([.?@])?(.*)/.exec(t);s.push({type:1,index:n,name:r[2],strings:i,ctor:"."===r[1]?la:"?"===r[1]?ln:"@"===r[1]?lo:li}),a.removeAttribute(e)}else e.startsWith(sP)&&(s.push({type:6,index:n}),a.removeAttribute(e));if(sX.test(a.tagName)){let e=a.textContent.split(sP),t=e.length-1;if(t>0){a.textContent=sM?sM.emptyScript:"";for(let i=0;i<t;i++)a.append(e[i],sj()),s6.nextNode(),s.push({type:2,index:++n});a.append(e[t],sj())}}}else if(8===a.nodeType)if(a.data===sz)s.push({type:2,index:n});else{let e=-1;for(;-1!==(e=a.data.indexOf(sP,e+1));)s.push({type:7,index:n}),e+=sP.length-1}n++}}static createElement(e,t){let i=sF.createElement("template");return i.innerHTML=e,i}}function s9(e,t,i=e,a){if(t===s2)return t;let n=void 0!==a?i._$Co?.[a]:i._$Cl,o=sB(t)?void 0:t._$litDirective$;return n?.constructor!==o&&(n?._$AO?.(!1),void 0===o?n=void 0:(n=new o(e))._$AT(e,i,a),void 0!==a?(i._$Co??=[])[a]=n:i._$Cl=n),void 0!==n&&(t=s9(e,n._$AS(e,t.values),n,a)),t}class le{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){let{el:{content:t},parts:i}=this._$AD,a=(e?.creationScope??sF).importNode(t,!0);s6.currentNode=a;let n=s6.nextNode(),o=0,r=0,s=i[0];for(;void 0!==s;){if(o===s.index){let t;2===s.type?t=new lt(n,n.nextSibling,this,e):1===s.type?t=new s.ctor(n,s.name,s.strings,this,e):6===s.type&&(t=new lr(n,this,e)),this._$AV.push(t),s=i[++r]}o!==s?.index&&(n=s6.nextNode(),o++)}return s6.currentNode=sF,a}p(e){let t=0;for(let i of this._$AV)void 0!==i&&(void 0!==i.strings?(i._$AI(e,i,t),t+=i.strings.length-2):i._$AI(e[t])),t++}}class lt{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,t,i,a){this.type=2,this._$AH=s3,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=i,this.options=a,this._$Cv=a?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode,t=this._$AM;return void 0!==t&&11===e?.nodeType&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){sB(e=s9(this,e,t))?e===s3||null==e||""===e?(this._$AH!==s3&&this._$AR(),this._$AH=s3):e!==this._$AH&&e!==s2&&this._(e):void 0!==e._$litType$?this.$(e):void 0!==e.nodeType?this.T(e):sV(e)?this.k(e):this._(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==s3&&sB(this._$AH)?this._$AA.nextSibling.data=e:this.T(sF.createTextNode(e)),this._$AH=e}$(e){let{values:t,_$litType$:i}=e,a="number"==typeof i?this._$AC(e):(void 0===i.el&&(i.el=s7.createElement(s5(i.h,i.h[0]),this.options)),i);if(this._$AH?._$AD===a)this._$AH.p(t);else{let e=new le(a,this),i=e.u(this.options);e.p(t),this.T(i),this._$AH=e}}_$AC(e){let t=s4.get(e.strings);return void 0===t&&s4.set(e.strings,t=new s7(e)),t}k(e){sH(this._$AH)||(this._$AH=[],this._$AR());let t=this._$AH,i,a=0;for(let n of e)a===t.length?t.push(i=new lt(this.O(sj()),this.O(sj()),this,this.options)):i=t[a],i._$AI(n),a++;a<t.length&&(this._$AR(i&&i._$AB.nextSibling,a),t.length=a)}_$AR(e=this._$AA.nextSibling,t){for(this._$AP?.(!1,!0,t);e!==this._$AB;){let t=sR(e).nextSibling;sR(e).remove(),e=t}}setConnected(e){void 0===this._$AM&&(this._$Cv=e,this._$AP?.(e))}}class li{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,t,i,a,n){this.type=1,this._$AH=s3,this._$AN=void 0,this.element=e,this.name=t,this._$AM=a,this.options=n,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=s3}_$AI(e,t=this,i,a){let n=this.strings,o=!1;if(void 0===n)(o=!sB(e=s9(this,e,t,0))||e!==this._$AH&&e!==s2)&&(this._$AH=e);else{let a,r,s=e;for(e=n[0],a=0;a<n.length-1;a++)(r=s9(this,s[i+a],t,a))===s2&&(r=this._$AH[a]),o||=!sB(r)||r!==this._$AH[a],r===s3?e=s3:e!==s3&&(e+=(r??"")+n[a+1]),this._$AH[a]=r}o&&!a&&this.j(e)}j(e){e===s3?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}}class la extends li{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===s3?void 0:e}}class ln extends li{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==s3)}}class lo extends li{constructor(e,t,i,a,n){super(e,t,i,a,n),this.type=5}_$AI(e,t=this){if((e=s9(this,e,t,0)??s3)===s2)return;let i=this._$AH,a=e===s3&&i!==s3||e.capture!==i.capture||e.once!==i.once||e.passive!==i.passive,n=e!==s3&&(i===s3||a);a&&this.element.removeEventListener(this.name,this,i),n&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}}class lr{constructor(e,t,i){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(e){s9(this,e)}}let ls=sO.litHtmlPolyfillSupport;ls?.(s7,lt),(sO.litHtmlVersions??=[]).push("3.3.3");let ll=(e,t,i)=>{let a=i?.renderBefore??t,n=a._$litPart$;if(void 0===n){let e=i?.renderBefore??null;a._$litPart$=n=new lt(t.insertBefore(sj(),e),e,void 0,i??{})}return n._$AI(e),n},lc=globalThis;class ld extends s${constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let e=super.createRenderRoot();return this.renderOptions.renderBefore??=e.firstChild,e}update(e){let t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=ll(t,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return s2}}ld._$litElement$=!0,ld.finalized=!0,lc.litElementHydrateSupport?.({LitElement:ld});let lu=lc.litElementPolyfillSupport;function lp({content:e="",heading:t=e9()("Are you sure?"),confirmButtonLabel:i=e9()("Confirm"),cancelButtonLabel:a=e9()("Cancel")}={}){let n=document.createElement("div");document.body.append(n);let o=()=>{n.remove()};return new Promise((r,s)=>{ll(s1` <uas-dialog .heading=${t} force-manual-close open @uas.dialog.close=${e=>{o(),e.detail.was_cancelled&&s(Error("Confirmation cancelled by user."))}} > ${e} <uas-button slot="primary-action" dialog-action="close" @click=${()=>{o(),r()}} > ${i} </uas-button> <uas-button slot="secondary-action" dialog-action="close" color="secondary" @click=${()=>{o(),s(Error("Confirmation cancelled by user."))}} > ${a} </uas-button> </uas-dialog> `,n)})}lu?.({LitElement:ld}),(lc.litElementVersions??=[]).push("4.2.2"),e9(),rg({allowedTags:rp(oR()).optional()});let lh={BOTTOM_CENTER:"bottom-center",BOTTOM_LEFT:"bottom-left",BOTTOM_RIGHT:"bottom-right",TOP_CENTER:"top-center",TOP_LEFT:"top-left",TOP_RIGHT:"top-right"},lg=rT(lh),lm={DEFAULT:"",ERROR:"error"},lf=rT(lm);function ly({message:e,position:t=lh.BOTTOM_CENTER,duration:i=-1,iconID:a,iconAnimation:n,color:o=lm.DEFAULT}){if(rY(e))return console.warn("Snackbar message is required and cannot be empty."),null;let r=document.createElement("uas-snackbar");return(r.message=e,r.position=t,r.duration=i,r.color=o,rY(a)||r.insertAdjacentHTML("beforeend",` <uas-icon slot="icon" code="${String(a)}" icon-style="solid" ${n?`animation="${n}"`:""} ></uas-icon> `),document.body)?(document.body.appendChild(r),r):(console.warn("Snackbar could not be appended: document.body is not available."),null)}rg({message:oR(),position:lg.optional(),duration:o5().optional(),iconID:oR().optional(),iconAnimation:oR().optional(),color:lf.optional()});let lb=ry([oR().nullish(),rp(oR().nullish()).readonly()]),lv=rp(oR().min(1)).readonly(),l_=rg({bubbles:re().optional(),cancelable:re().optional(),composed:re().optional()});function lw(e){let{element:t=document,eventName:i,options:a}=e;if("data"in e&&"schema"in e){let{data:n,schema:o}=e,r=o.safeParse(n);if(!r.success){let e="Unknown validation error";return r.error instanceof om&&(e=(r.error.issues||[]).map(e=>{let t=e.path.join(".");return`${t||"value"}: ${e.message}`}).join("; ")),console.error(`[dispatchEvent] Failed to dispatch event "${i}": Data validation failed. Validation issues: ${e}`),null}let s=new CustomEvent(i,{detail:r.data,...a});return t.dispatchEvent(s),s}let n=new CustomEvent(i,a);return t.dispatchEvent(n),n}rg({element:rZ(e=>!!("u">typeof Element&&e instanceof Element||"u">typeof Document&&e instanceof Document||"u">typeof Window&&e instanceof Window),{message:"Element must be an Element, Document, or Window instance."}).optional(),eventName:oR(),options:l_.optional()});let lx={aiIcon:'<?xml version="1.0" encoding="UTF-8"?><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64"><defs><style>.cls-1{fill:none;}.cls-2,.cls-3{fill:#ff9908;}.cls-4{fill:#fff;}.cls-3{isolation:isolate;opacity:.15;}</style></defs><g id="Layer_2"><rect class="cls-1" width="64" height="64"/></g><g id="Layer_1"><g id="Document"><path class="cls-3" d="M42.52,13.11c-1.46,0-2.85-.58-3.88-1.61-1.03-1.03-1.61-2.42-1.61-3.88V0H12.5C10.6,0,8.78.75,7.44,2.1c-1.35,1.34-2.1,3.16-2.1,5.06v43.18c0,1.9.76,3.72,2.1,5.06,1.34,1.34,3.16,2.09,5.06,2.09h29.44c.94,0,1.87-.18,2.74-.54.87-.36,1.66-.89,2.32-1.55s1.19-1.45,1.55-2.32.55-1.8.55-2.74V13.1h-6.59.01Z"/><path class="cls-2" d="M49.11,13.11h-6.59c-1.46,0-2.85-.58-3.88-1.61-1.03-1.03-1.61-2.42-1.61-3.88V0s12.08,13.11,12.08,13.11Z"/><path class="cls-2" d="M54.36,45.5H21.04c-2.36,0-4.28,1.92-4.28,4.28v9.94c0,2.36,1.92,4.28,4.28,4.28h33.33c2.36,0,4.28-1.92,4.28-4.28v-9.94c0-2.36-1.92-4.28-4.28-4.28h-.01Z"/></g><g id="File"><path class="cls-2" d="M23.48,31.77c.21-.21.29-.52.39-.8.05-.15.14-.29.25-.4.1-.1.22-.18.35-.23s.27-.08.41-.08.28.03.41.08.25.13.35.23.18.22.23.35.08.27.08.41-.03.28-.08.41-.13.25-.23.35c-.11.11-.25.2-.4.25-.28.1-.59.17-.8.38l-7.42,7.42c-.87.87.14,2.28,1.25,1.74l12.16-5.96c.28-.14.49-.39.58-.69.44-1.51,1.89-6.3,3.61-8.77.34-.49.34-1.18-.08-1.61l-3.17-3.17c-.42-.42-1.11-.42-1.61-.08-2.47,1.72-7.26,3.18-8.77,3.61-.3.09-.55.29-.69.58l-5.97,12.17c-.54,1.1.88,2.11,1.74,1.25l7.43-7.42-.02-.02Z"/><path class="cls-2" d="M39.87,22.09l-5.77-5.77c-.42-.42-1.11-.42-1.54,0l-2.05,2.05c-.42.42-.42,1.11,0,1.54l5.77,5.77c.42.42,1.11.42,1.54,0l2.05-2.05c.42-.42.42-1.11,0-1.54h0Z"/><path class="cls-4" d="M32.55,59.58c-.36-.14-.47-.39-.33-.75l3.26-8.02c.14-.3.35-.45.64-.45h.03c.3,0,.5.16.6.45l3.31,8.02c.15.36.04.61-.31.75-.36.14-.61.04-.75-.31l-.74-1.79h-4.26l-.7,1.79c-.14.36-.39.46-.74.31h0ZM34.44,56.32h3.34l-1.7-4.15s-1.64,4.15-1.64,4.15Z"/><path class="cls-4" d="M42.68,59.63c-.2,0-.34-.05-.44-.14-.09-.1-.14-.24-.14-.44v-8.11c0-.2.05-.35.14-.44.1-.09.24-.14.44-.14s.35.05.44.14.14.24.14.44v8.11c0,.2-.05.34-.14.44-.09.09-.24.14-.44.14Z"/></g></g></svg>',aviIcon:'<?xml version="1.0" encoding="UTF-8"?><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64"><defs><style>.cls-1{fill:none;}.cls-2,.cls-3{fill:#ff9908;}.cls-4{fill:#fff;}.cls-3{isolation:isolate;opacity:.15;}</style></defs><g id="Layer_2"><rect class="cls-1" width="64" height="64"/></g><g id="Layer_1"><g id="Document"><path class="cls-3" d="M42.52,13.11c-1.46,0-2.85-.58-3.88-1.61-1.03-1.03-1.61-2.42-1.61-3.88V0H12.5C10.6,0,8.78.75,7.44,2.1c-1.35,1.34-2.1,3.16-2.1,5.06v43.18c0,1.9.76,3.72,2.1,5.06,1.34,1.34,3.16,2.09,5.06,2.09h29.44c.94,0,1.87-.18,2.74-.54.87-.36,1.66-.89,2.32-1.55s1.19-1.45,1.55-2.32.55-1.8.55-2.74V13.1h-6.59.01Z"/><path class="cls-2" d="M49.11,13.11h-6.59c-1.46,0-2.85-.58-3.88-1.61-1.03-1.03-1.61-2.42-1.61-3.88V0s12.08,13.11,12.08,13.11Z"/><path class="cls-2" d="M54.36,45.5H21.04c-2.36,0-4.28,1.92-4.28,4.28v9.94c0,2.36,1.92,4.28,4.28,4.28h33.33c2.36,0,4.28-1.92,4.28-4.28v-9.94c0-2.36-1.92-4.28-4.28-4.28h-.01Z"/></g><g id="File"><path class="cls-2" d="M27.19,42c-3.45,0-6.75-1.38-9.19-3.81s-3.81-5.74-3.81-9.19,1.38-6.75,3.81-9.19c2.44-2.44,5.74-3.81,9.19-3.81s6.75,1.38,9.19,3.81c2.44,2.44,3.81,5.74,3.81,9.19s-1.38,6.75-3.81,9.19-5.74,3.81-9.19,3.81ZM27.19,18.28c-2.84,0-5.57,1.14-7.58,3.15s-3.14,4.73-3.15,7.58c0,2.85,1.13,5.57,3.14,7.59,2.01,2.01,4.74,3.15,7.58,3.15s5.57-1.14,7.58-3.15c2.01-2.01,3.14-4.74,3.14-7.59s-1.14-5.57-3.15-7.58-4.73-3.14-7.58-3.15h.02Z"/><path class="cls-2" d="M30.92,28.11l-3.02-1.74c-.16-.09-.33-.14-.51-.14s-.36.05-.51.14-.29.22-.38.38c-.09.16-.14.33-.14.51v3.49c0,.18.05.36.14.51.09.16.22.29.38.38s.33.14.51.14.36-.05.51-.14l3.02-1.75c.16-.09.29-.22.38-.38s.14-.33.14-.51-.05-.36-.14-.51-.22-.29-.38-.38h0Z"/><path class="cls-2" d="M24.8,26.09h-1.11c-.41,0-.75.33-.75.75v4.32c0,.41.33.75.75.75h1.11c.41,0,.75-.33.75-.75v-4.32c0-.41-.33-.75-.75-.75Z"/><path class="cls-4" d="M28.45,59.54c-.36-.14-.47-.39-.33-.75l3.22-7.94c.14-.3.35-.45.64-.45h.03c.29,0,.49.16.6.45l3.28,7.94c.14.36.04.61-.31.75-.36.14-.61.04-.75-.31l-.73-1.77h-4.22l-.7,1.77c-.14.35-.38.46-.73.31h0ZM30.33,56.32h3.31l-1.69-4.11s-1.62,4.11-1.62,4.11Z"/><path class="cls-4" d="M40.39,59.6c-.23,0-.42-.15-.56-.45l-3.35-7.93c-.07-.16-.09-.3-.05-.42.03-.13.14-.23.31-.31.37-.19.63-.09.79.28l3.16,7.49h-.39l3.08-7.49c.15-.37.41-.47.79-.28.16.08.26.19.29.31.04.12.03.26-.03.42l-3.37,7.93c-.14.3-.34.45-.61.45h-.06Z"/><path class="cls-4" d="M46.77,59.6c-.19,0-.34-.05-.43-.14s-.14-.24-.14-.43v-8.03c0-.2.05-.34.14-.43s.24-.14.43-.14.34.05.43.14.14.23.14.43v8.03c0,.19-.05.34-.14.43s-.23.14-.43.14Z"/></g></g></svg>',bmpIcon:'<?xml version="1.0" encoding="UTF-8"?><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64"><defs><style>.cls-1{fill:none;}.cls-2,.cls-3{fill:#a140ff;}.cls-4{fill:#fff;}.cls-3{isolation:isolate;opacity:.15;}</style></defs><g id="Layer_2"><rect class="cls-1" width="64" height="64"/></g><g id="Layer_1"><g id="Document"><path class="cls-3" d="M42.52,13.11c-1.46,0-2.85-.58-3.88-1.61-1.03-1.03-1.61-2.42-1.61-3.88V0H12.5C10.6,0,8.78.75,7.44,2.1c-1.35,1.34-2.1,3.16-2.1,5.06v43.18c0,1.9.76,3.72,2.1,5.06,1.34,1.34,3.16,2.09,5.06,2.09h29.44c.94,0,1.87-.18,2.74-.54.87-.36,1.66-.89,2.32-1.55s1.19-1.45,1.55-2.32.55-1.8.55-2.74V13.1h-6.59.01Z"/><path class="cls-2" d="M49.11,13.11h-6.59c-1.46,0-2.85-.58-3.88-1.61-1.03-1.03-1.61-2.42-1.61-3.88V0s12.08,13.11,12.08,13.11Z"/><path class="cls-2" d="M54.36,45.5H21.04c-2.36,0-4.28,1.92-4.28,4.28v9.94c0,2.36,1.92,4.28,4.28,4.28h33.33c2.36,0,4.28-1.92,4.28-4.28v-9.94c0-2.36-1.92-4.28-4.28-4.28h-.01Z"/></g><g id="File"><path class="cls-2" d="M34.67,42h-14.95c-1.46,0-2.87-.58-3.9-1.62-1.04-1.04-1.62-2.44-1.62-3.9v-14.96c0-1.46.58-2.87,1.62-3.9,1.04-1.04,2.44-1.62,3.9-1.62h14.96c1.46,0,2.87.58,3.9,1.62,1.03,1.04,1.62,2.44,1.62,3.9v14.96c0,1.46-.58,2.87-1.62,3.9s-2.44,1.62-3.9,1.62h-.01ZM19.72,18.44c-.82,0-1.6.33-2.18.9s-.9,1.36-.9,2.18v14.96c0,.82.33,1.6.9,2.18s1.36.9,2.18.9h14.96c.82,0,1.6-.33,2.18-.9.58-.57.9-1.36.9-2.18v-14.96c0-.82-.33-1.6-.9-2.18-.58-.58-1.36-.9-2.18-.9h-14.96Z"/><path class="cls-2" d="M38.98,33.63v2.84c0,1.14-.45,2.23-1.26,3.04-.81.81-1.9,1.26-3.04,1.26h-14.95c-1.14,0-2.23-.45-3.04-1.26-.81-.81-1.26-1.9-1.26-3.04v-4.77c2.32-.5,5.82-.67,10.06.93.25.09.53.04.72-.14l1.7-1.62c.35-.33.92-.21,1.1.24l.77,1.95c.24.6,1.4.62,2.01.42.24-.08.52-.11.84-.06,1.62.25,4.24,1.12,5.36.38.3-.17.65-.23,1-.17h-.01Z"/><path class="cls-2" d="M33.73,24.58c.92,0,1.66-.74,1.66-1.66s-.74-1.66-1.66-1.66-1.66.74-1.66,1.66.74,1.66,1.66,1.66Z"/><path class="cls-4" d="M24.89,59.6c-.38,0-.57-.19-.57-.57v-8.06c0-.38.19-.57.57-.57h3.54c.72,0,1.27.19,1.65.57.39.38.58.92.58,1.63v.37c0,.61-.19,1.08-.58,1.42.72.4,1.08,1.14,1.08,2.2v.46c0,.83-.22,1.46-.66,1.9-.44.43-1.07.65-1.9.65h-3.72,0ZM25.45,58.46h3.15c.51,0,.87-.11,1.09-.33s.33-.58.33-1.09v-.46c0-.5-.11-.86-.32-1.07-.21-.22-.58-.33-1.11-.33h-3.15v3.27h.01ZM25.45,54.05h3.21c.33,0,.55-.1.67-.31.12-.2.18-.46.18-.78v-.37c0-.39-.08-.67-.24-.82-.16-.16-.45-.24-.85-.24h-2.97v2.51h0Z"/><path class="cls-4" d="M34,59.6c-.38,0-.57-.19-.57-.57v-8.06c0-.38.19-.57.57-.57.25,0,.46.12.62.37l3.2,4.82-.24.04,3.23-4.86c.15-.24.38-.37.69-.37s.46.19.46.57v8.06c0,.38-.19.57-.57.57s-.57-.19-.57-.57v-6.92l.35.12-2.85,4.19c-.17.24-.4.37-.69.37-.2,0-.39-.12-.56-.37l-2.85-4.19.34.09v6.7c0,.38-.19.57-.57.57h.01Z"/><path class="cls-4" d="M45.36,59.6c-.38,0-.57-.19-.57-.57v-8.06c0-.38.19-.57.57-.57h3.17c.83,0,1.46.22,1.9.66.44.44.66,1.07.66,1.9v.41c0,.83-.22,1.46-.66,1.91s-1.07.66-1.9.66h-2.6v3.09c0,.38-.19.57-.57.57h0ZM45.93,54.8h2.6c.52,0,.88-.11,1.1-.33s.33-.58.33-1.1v-.41c0-.51-.11-.88-.33-1.09-.22-.22-.58-.33-1.1-.33h-2.6v3.26Z"/></g></g></svg>',csvIcon:'<?xml version="1.0" encoding="UTF-8"?><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64"><defs><style>.cls-1{fill:none;}.cls-2,.cls-3{fill:#00c650;}.cls-4{fill:#fff;}.cls-3{isolation:isolate;opacity:.15;}</style></defs><g id="Layer_2"><rect class="cls-1" width="64" height="64"/></g><g id="Layer_1"><g id="Document"><path class="cls-3" d="M42.52,13.11c-1.46,0-2.85-.58-3.88-1.61-1.03-1.03-1.61-2.42-1.61-3.88V0H12.5C10.6,0,8.78.75,7.44,2.1c-1.35,1.34-2.1,3.16-2.1,5.06v43.18c0,1.9.76,3.72,2.1,5.06,1.34,1.34,3.16,2.09,5.06,2.09h29.44c.94,0,1.87-.18,2.74-.54.87-.36,1.66-.89,2.32-1.55s1.19-1.45,1.55-2.32.55-1.8.55-2.74V13.1h-6.59.01Z"/><path class="cls-2" d="M49.11,13.11h-6.59c-1.46,0-2.85-.58-3.88-1.61-1.03-1.03-1.61-2.42-1.61-3.88V0s12.08,13.11,12.08,13.11Z"/><path class="cls-2" d="M54.36,45.5H21.04c-2.36,0-4.28,1.92-4.28,4.28v9.94c0,2.36,1.92,4.28,4.28,4.28h33.33c2.36,0,4.28-1.92,4.28-4.28v-9.94c0-2.36-1.92-4.28-4.28-4.28h-.01Z"/></g><g id="File"><path class="cls-4" d="M27.66,59.6c-1.04,0-1.8-.25-2.3-.74-.49-.5-.74-1.26-.74-2.3v-3.12c0-1.05.25-1.81.74-2.31s1.26-.74,2.29-.73h1.64c.85,0,1.5.18,1.95.53s.71.9.78,1.66c.03.19,0,.33-.11.43s-.24.15-.43.15c-.34,0-.54-.19-.6-.57-.05-.42-.19-.7-.43-.84s-.62-.22-1.15-.22h-1.64c-.48,0-.86.05-1.13.16-.27.11-.47.31-.58.59s-.17.66-.17,1.15v3.12c0,.48.06.86.17,1.14.12.28.31.47.59.59.28.11.66.17,1.14.17h1.63c.53,0,.91-.07,1.15-.22s.39-.43.43-.84c.05-.38.25-.57.6-.57.19,0,.33.05.43.15s.14.24.11.43c-.07.76-.33,1.31-.78,1.66s-1.1.52-1.95.52h-1.64Z"/><path class="cls-4" d="M36.69,59.6c-.77,0-1.38-.16-1.81-.47s-.7-.79-.81-1.45c-.02-.2.02-.35.12-.45s.24-.15.43-.15.33.05.41.14c.09.09.15.23.18.42.07.31.21.53.43.64.23.11.57.17,1.03.17h1.95c.58,0,.98-.1,1.19-.31s.32-.61.32-1.18-.11-.98-.33-1.19c-.22-.22-.61-.33-1.18-.33h-1.68c-.86,0-1.49-.21-1.91-.62-.41-.42-.62-1.06-.62-1.91s.2-1.48.61-1.89,1.05-.62,1.9-.62h1.62c.72,0,1.28.15,1.69.44.41.29.67.74.78,1.35.03.19,0,.34-.11.45-.1.1-.25.15-.45.15-.18,0-.32-.05-.41-.14s-.15-.23-.18-.41c-.07-.27-.21-.45-.41-.54-.2-.1-.51-.15-.92-.15h-1.62c-.54,0-.91.1-1.09.29-.19.19-.28.55-.28,1.08s.1.9.29,1.1.56.3,1.1.3h1.68c.89,0,1.55.22,1.99.65.44.43.66,1.1.66,2.01s-.22,1.57-.65,2-1.1.64-2,.64h-1.95l.03-.02Z"/><path class="cls-4" d="M46.68,59.6c-.24,0-.42-.15-.56-.45l-3.35-7.94c-.07-.16-.09-.3-.05-.42.03-.13.14-.23.31-.31.37-.19.63-.09.79.29l3.17,7.51h-.39l3.09-7.51c.15-.37.41-.47.79-.29.16.08.26.19.29.31.04.12.03.26-.03.42l-3.38,7.94c-.14.3-.34.45-.61.45h-.07Z"/><path class="cls-2" d="M37.12,39.97h-19.79c-1.71,0-3.1-1.7-3.1-3.8v-14.35c0-2.1,1.39-3.8,3.1-3.8h19.79c1.71,0,3.1,1.7,3.1,3.8v14.35c0,2.1-1.39,3.8-3.1,3.8h0ZM17.33,19.96c-.84,0-1.52.83-1.52,1.86v14.35c0,1.03.68,1.86,1.52,1.86h19.79c.84,0,1.52-.83,1.52-1.86v-14.35c0-1.03-.68-1.86-1.52-1.86,0,0-19.79,0-19.79,0Z"/><path class="cls-2" d="M39.43,31.33H15.02v1.94h24.41v-1.94Z"/><path class="cls-2" d="M39.43,24.66H15.02v1.94h24.41v-1.94Z"/><path class="cls-2" d="M33.18,18.99h-1.94v20.01h1.94v-20.01Z"/><path class="cls-2" d="M23.22,18.99h-1.94v20.01h1.94v-20.01Z"/></g></g></svg>',defaultIcon:'<?xml version="1.0" encoding="UTF-8"?><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64"><defs><style>.cls-1{fill:none;}.cls-2{isolation:isolate;opacity:.15;}.cls-2,.cls-3{fill:#4c4c4c;}.cls-4{fill:#fff;}</style></defs><g id="Layer_2"><rect class="cls-1" width="64" height="64"/></g><g id="Layer_1"><g id="Document"><path class="cls-2" d="M42.52,13.11c-1.46,0-2.85-.58-3.88-1.61-1.03-1.03-1.61-2.42-1.61-3.88V0H12.5C10.6,0,8.78.75,7.44,2.1c-1.35,1.34-2.1,3.16-2.1,5.06v43.18c0,1.9.76,3.72,2.1,5.06,1.34,1.34,3.16,2.09,5.06,2.09h29.44c.94,0,1.87-.18,2.74-.54.87-.36,1.66-.89,2.32-1.55s1.19-1.45,1.55-2.32.55-1.8.55-2.74V13.1h-6.59.01Z"/><path class="cls-3" d="M49.11,13.11h-6.59c-1.46,0-2.85-.58-3.88-1.61-1.03-1.03-1.61-2.42-1.61-3.88V0s12.08,13.11,12.08,13.11Z"/><path class="cls-3" d="M54.36,45.5H21.04c-2.36,0-4.28,1.92-4.28,4.28v9.94c0,2.36,1.92,4.28,4.28,4.28h33.33c2.36,0,4.28-1.92,4.28-4.28v-9.94c0-2.36-1.92-4.28-4.28-4.28h-.01Z"/></g><g id="File"><path class="cls-3" d="M39.32,22H15.07c-.23,0-.46-.09-.62-.26s-.26-.39-.26-.62.09-.46.26-.62.39-.26.62-.26h24.24c.23,0,.46.09.62.26s.26.39.26.62-.09.46-.26.62c-.16.16-.39.26-.62.26h0Z"/><path class="cls-3" d="M39.32,27.25H15.07c-.23,0-.46-.09-.62-.26s-.26-.39-.26-.62.09-.46.26-.62c.16-.16.39-.26.62-.26h24.24c.23,0,.46.09.62.26.16.16.26.39.26.62s-.09.46-.26.62c-.16.16-.39.26-.62.26h0Z"/><path class="cls-3" d="M39.32,32.51H15.07c-.23,0-.46-.09-.62-.26s-.26-.39-.26-.62.09-.46.26-.62.39-.26.62-.26h24.24c.23,0,.46.09.62.26.16.16.26.39.26.62s-.09.46-.26.62c-.16.16-.39.26-.62.26h0Z"/><path class="cls-3" d="M39.32,37.76H15.07c-.23,0-.46-.09-.62-.26-.16-.16-.26-.39-.26-.62s.09-.46.26-.62.39-.26.62-.26h24.24c.23,0,.46.09.62.26s.26.39.26.62-.09.46-.26.62-.39.26-.62.26h0Z"/><path class="cls-4" d="M44.5,51.64v2.75h3.3c.15,0,.3.02.43.1.22.14.33.4.26.66-.06.26-.3.44-.59.46h-3.4v2.79h4.66c.09,0,.18,0,.27.02.3.06.51.34.48.63-.03.31-.27.55-.59.58h-5.43c-.09,0-.19,0-.28-.04-.25-.07-.41-.29-.42-.55v-7.93c0-.44.25-.69.69-.69h5.23c.12,0,.24.02.35.07.25.11.38.37.33.64-.04.25-.27.46-.53.5-.07,0-.15,0-.23,0h-4.53Z"/><path class="cls-4" d="M26.8,54.71h2.98c.08,0,.17,0,.25.02.3.06.5.33.48.63-.03.3-.27.54-.59.56h-3.13v3.05c0,.29-.13.5-.38.6-.26.11-.56.05-.75-.15-.1-.11-.16-.23-.17-.38v-7.97c0-.44.24-.69.69-.69h4.84c.17,0,.33.03.46.15.2.17.27.38.19.62-.07.25-.25.39-.5.43-.07,0-.15,0-.22,0h-4.15v3.12h0Z"/><path class="cls-4" d="M37.51,58.42h3.87c.09,0,.18,0,.26.02.31.07.5.33.47.65-.02.28-.28.52-.58.54h-4.63c-.12,0-.25-.03-.36-.08-.2-.09-.31-.27-.32-.49v-7.97c0-.26.09-.47.34-.59.26-.12.51-.1.74.07.14.11.22.26.22.43v7.42h0Z"/><path class="cls-4" d="M34.14,55.02v3.96c0,.3-.13.5-.38.6-.26.1-.56.04-.75-.16-.11-.12-.16-.26-.16-.41v-7.97c0-.26.09-.47.34-.58.25-.12.5-.1.72.06.16.11.23.27.23.47v4.03h0Z"/></g></g></svg>',dllIcon:'<?xml version="1.0" encoding="UTF-8"?><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64"><defs><style>.cls-1{fill:none;}.cls-2,.cls-3{fill:#a140ff;}.cls-4{fill:#fff;}.cls-3{isolation:isolate;opacity:.15;}</style></defs><g id="Layer_2"><rect class="cls-1" width="64" height="64"/></g><g id="Layer_1"><g id="Document"><path class="cls-3" d="M42.52,13.11c-1.46,0-2.85-.58-3.88-1.61-1.03-1.03-1.61-2.42-1.61-3.88V0H12.5C10.6,0,8.78.75,7.44,2.1c-1.35,1.34-2.1,3.16-2.1,5.06v43.18c0,1.9.76,3.72,2.1,5.06,1.34,1.34,3.16,2.09,5.06,2.09h29.44c.94,0,1.87-.18,2.74-.54.87-.36,1.66-.89,2.32-1.55s1.19-1.45,1.55-2.32.55-1.8.55-2.74V13.1h-6.59.01Z"/><path class="cls-2" d="M49.11,13.11h-6.59c-1.46,0-2.85-.58-3.88-1.61-1.03-1.03-1.61-2.42-1.61-3.88V0s12.08,13.11,12.08,13.11Z"/><path class="cls-2" d="M54.36,45.5H21.04c-2.36,0-4.28,1.92-4.28,4.28v9.94c0,2.36,1.92,4.28,4.28,4.28h33.33c2.36,0,4.28-1.92,4.28-4.28v-9.94c0-2.36-1.92-4.28-4.28-4.28h-.01Z"/></g><g id="File"><path class="cls-2" d="M23.85,42c-.29,0-.57-.12-.78-.32-.21-.21-.32-.49-.32-.78v-1.7c0-.15.03-.29.08-.42s.14-.26.24-.36c.1-.1.22-.18.36-.24.13-.06.28-.08.42-.08.29,0,.57.12.78.32.21.21.32.49.32.78v1.7c0,.29-.12.57-.32.78-.21.21-.49.32-.78.32h0Z"/><path class="cls-2" d="M23.85,28.29c-.15,0-.29-.03-.42-.08-.13-.06-.26-.14-.36-.24s-.18-.22-.24-.36-.08-.28-.08-.42v-1.98c0-.29.12-.57.32-.78s.49-.32.78-.32.57.12.78.32c.21.21.32.49.32.78v1.98c0,.29-.12.57-.32.78-.21.21-.49.32-.78.32h0Z"/><path class="cls-2" d="M27.77,40.95c-.19,0-.39-.05-.55-.15s-.31-.24-.41-.4l-.82-1.43c-.15-.25-.19-.56-.11-.84s.26-.52.51-.67c.25-.15.56-.19.84-.11s.52.26.67.52l.83,1.43c.15.25.19.56.11.84s-.26.52-.52.67c-.17.1-.36.15-.55.15h0Z"/><path class="cls-2" d="M20.94,29.12c-.19,0-.39-.05-.55-.15-.17-.1-.31-.24-.41-.41l-1.01-1.75c-.07-.13-.12-.26-.14-.41-.02-.14,0-.29.03-.43.04-.14.1-.27.19-.39.09-.11.2-.21.32-.28.13-.07.26-.12.41-.14s.29,0,.43.03c.14.04.27.1.39.19s.21.2.28.32l1.01,1.75c.07.13.12.26.14.41.02.14,0,.29-.03.43-.04.14-.1.27-.19.39-.09.12-.2.21-.32.28-.17.1-.36.15-.55.15h0Z"/><path class="cls-2" d="M30.64,38.08c-.19,0-.38-.05-.55-.15l-1.43-.83c-.25-.15-.44-.39-.51-.67-.08-.28-.04-.58.11-.84.15-.25.39-.44.67-.52s.58-.04.84.11l1.43.83c.25.15.44.39.51.67.08.28.04.58-.11.84-.1.17-.24.31-.4.41-.17.1-.36.15-.55.15h-.01Z"/><path class="cls-2" d="M18.81,31.25c-.19,0-.38-.05-.55-.15l-1.75-1.01c-.25-.15-.44-.39-.51-.67-.08-.28-.04-.58.11-.84.15-.25.39-.44.67-.52s.58-.04.84.11l1.75,1.01c.25.15.44.39.51.67.08.28.04.58-.11.84-.1.17-.24.31-.41.41s-.36.15-.55.15Z"/><path class="cls-2" d="M31.69,34.16h-1.7c-.29,0-.57-.12-.78-.32-.21-.21-.32-.49-.32-.78s.12-.57.32-.78.49-.32.78-.32h1.7c.29,0,.57.12.78.32s.32.49.32.78-.12.57-.32.78c-.21.21-.49.32-.78.32Z"/><path class="cls-2" d="M17.98,34.16h-1.98c-.29,0-.57-.12-.78-.32-.21-.21-.32-.49-.32-.78s.12-.57.32-.78.49-.32.78-.32h1.98c.29,0,.57.12.78.32.21.21.32.49.32.78s-.12.57-.32.78c-.21.21-.49.32-.78.32Z"/><path class="cls-2" d="M29.09,31.13c-.19,0-.39-.05-.55-.15-.17-.1-.31-.24-.41-.41-.07-.13-.12-.26-.14-.41-.02-.14,0-.29.03-.43.04-.14.1-.27.19-.39.09-.11.2-.21.32-.28l1.54-.9c.25-.15.56-.19.84-.11s.52.26.67.52c.15.25.19.56.11.84s-.26.52-.51.67l-1.54.9c-.17.1-.36.15-.55.15h0Z"/><path class="cls-2" d="M17.06,38.08c-.19,0-.38-.05-.55-.15-.17-.1-.31-.24-.4-.4-.15-.25-.19-.56-.11-.84s.26-.52.51-.67l1.64-.94c.25-.15.56-.18.84-.11s.52.26.67.51.19.56.11.84-.26.52-.51.67l-1.64.94c-.17.1-.36.15-.55.15h-.01Z"/><path class="cls-2" d="M23.99,40.3h-.18c-1.26-.03-2.5-.4-3.57-1.06-1.06-.66-1.93-1.58-2.52-2.68-.55-1.03-.84-2.19-.84-3.36v-.18c.03-1.21.37-2.39.98-3.43s1.48-1.91,2.52-2.52c1.05-.61,2.23-.95,3.44-.98h.16c1.17,0,2.33.29,3.36.85,1.1.59,2.02,1.46,2.68,2.52.67,1.08,1.04,2.32,1.06,3.59v.16c0,1.23-.32,2.44-.92,3.5-.63,1.12-1.56,2.05-2.68,2.68-1.07.6-2.27.92-3.5.92h.01ZM23.97,28.29h-.07c-.84.02-1.66.25-2.38.67-.72.42-1.32,1.02-1.74,1.74s-.66,1.54-.68,2.37v.11c0,.81.2,1.6.58,2.31.41.76,1.01,1.4,1.74,1.85.74.46,1.59.71,2.47.73h.11c.85,0,1.68-.22,2.42-.64.77-.44,1.41-1.08,1.85-1.85.42-.74.64-1.57.64-2.41v-.1c-.02-.88-.27-1.74-.73-2.48-.45-.73-1.09-1.33-1.85-1.74-.72-.38-1.53-.58-2.35-.58h0v.02Z"/><path class="cls-2" d="M26.82,29c-.19,0-.38-.05-.55-.15-.13-.07-.24-.17-.32-.28s-.15-.25-.19-.39-.05-.29-.03-.43c.02-.14.07-.28.14-.41l.94-1.64c.07-.13.17-.24.28-.32s.25-.15.39-.19.29-.05.43-.03c.14.02.28.07.41.14s.24.17.32.28c.09.11.15.25.19.39s.05.29.03.43-.07.28-.14.41l-.95,1.64c-.1.17-.24.31-.41.41s-.36.15-.55.15h0Z"/><path class="cls-2" d="M19.93,40.95c-.19,0-.38-.05-.55-.15-.13-.07-.24-.17-.32-.28s-.15-.25-.19-.39-.05-.29-.03-.43.07-.28.14-.41l.89-1.54c.07-.13.17-.24.28-.32.12-.09.25-.15.39-.19.14-.04.29-.05.43-.03s.28.07.41.14c.25.15.44.39.51.67.08.28.04.58-.11.84l-.89,1.54c-.1.17-.24.31-.41.41s-.36.15-.55.15h0Z"/><path class="cls-2" d="M34.05,26.89c-.18,0-.35-.07-.48-.2-.13-.13-.2-.3-.2-.48v-1.03c0-.09.02-.18.05-.26.03-.08.08-.16.15-.22s.14-.11.22-.15c.08-.03.17-.05.26-.05.18,0,.35.07.47.2.13.13.2.3.2.47v1.03c0,.09-.02.18-.05.26-.03.08-.08.16-.15.22-.06.06-.14.11-.22.15-.08.03-.17.05-.26.05h.01Z"/><path class="cls-2" d="M34.05,18.55c-.09,0-.18-.02-.26-.05s-.16-.08-.22-.15-.11-.14-.15-.22c-.03-.08-.05-.17-.05-.26v-1.2c0-.18.07-.35.2-.48.13-.13.3-.2.48-.2.09,0,.18.02.26.05s.16.08.22.15c.06.06.11.14.15.22.03.08.05.17.05.26v1.2c0,.18-.07.35-.2.47-.13.13-.3.2-.47.2h-.01Z"/><path class="cls-2" d="M36.42,26.25c-.12,0-.23-.03-.34-.09s-.19-.14-.25-.25l-.5-.87c-.09-.16-.11-.34-.06-.51.05-.17.16-.32.32-.41.08-.04.16-.07.25-.08s.18,0,.26.02c.09.02.17.06.23.12.07.05.13.12.17.2l.51.87c.04.08.07.16.08.25s0,.18-.02.26c-.02.09-.06.17-.12.23s-.12.13-.2.17c-.11.06-.23.09-.35.08h.02Z"/><path class="cls-2" d="M32.28,19.05c-.12,0-.23-.03-.34-.09-.1-.06-.19-.14-.25-.25l-.61-1.07c-.04-.08-.07-.16-.08-.25s0-.18.02-.26c.02-.09.06-.17.12-.23.05-.07.12-.13.2-.17s.16-.07.25-.08.18,0,.26.02c.09.02.17.06.23.12s.13.12.17.2l.61,1.07c.04.08.07.16.08.25s0,.18-.02.26-.06.17-.12.23c-.05.07-.12.13-.2.17-.1.05-.22.08-.33.08h.01Z"/><path class="cls-2" d="M38.18,24.5c-.12,0-.23-.03-.34-.09l-.87-.51c-.08-.04-.15-.1-.2-.17-.05-.07-.1-.15-.12-.23-.02-.09-.03-.17-.02-.26s.04-.17.08-.25c.04-.08.1-.15.17-.2.07-.05.15-.1.23-.12s.17-.03.26-.02c.09.01.17.04.25.08l.87.51c.08.04.15.1.2.17s.1.15.12.23.03.17.02.26-.04.17-.08.25c-.06.1-.14.19-.24.25-.1.06-.22.09-.34.09h.01Z"/><path class="cls-2" d="M30.97,20.35c-.12,0-.23-.03-.34-.09l-1.07-.61c-.08-.04-.15-.1-.2-.17-.05-.07-.1-.15-.12-.23-.02-.09-.03-.17-.02-.26s.04-.17.08-.25c.09-.16.23-.27.41-.32.17-.05.36-.03.51.06l1.06.61c.16.09.27.23.32.41.05.17.03.36-.06.51-.06.1-.14.19-.24.25s-.22.09-.34.09h.01Z"/><path class="cls-2" d="M38.82,22.12h-1.03c-.09,0-.18-.02-.26-.05s-.16-.08-.22-.15c-.06-.06-.11-.14-.15-.22-.03-.08-.05-.17-.05-.26,0-.18.07-.35.2-.47.13-.13.3-.2.47-.2h1.03c.09,0,.18.02.26.05s.16.08.22.15.11.14.15.22c.03.08.05.17.05.26,0,.18-.07.35-.2.48s-.3.2-.48.2h0Z"/><path class="cls-2" d="M30.48,22.12h-1.2c-.09,0-.18-.02-.26-.05s-.16-.08-.22-.15c-.06-.06-.11-.14-.15-.22s-.05-.17-.05-.26.02-.18.05-.26c.03-.08.08-.16.15-.22.06-.06.14-.11.22-.15.08-.03.17-.05.26-.05h1.2c.18,0,.35.07.47.2.13.13.2.3.2.47,0,.09-.02.18-.05.26-.03.08-.08.16-.15.22-.06.06-.14.11-.22.15-.08.03-.17.05-.26.05h0Z"/><path class="cls-2" d="M37.23,20.29c-.12,0-.23-.03-.34-.09-.1-.06-.19-.14-.25-.25-.04-.08-.07-.16-.08-.25s0-.18.02-.26c.02-.09.06-.17.12-.23s.12-.13.2-.17l.94-.55c.08-.04.16-.07.25-.08s.18,0,.26.02c.09.02.17.06.23.12.07.05.13.12.17.2.04.08.07.16.08.25,0,.09,0,.18-.02.26s-.06.17-.12.23c-.06.07-.12.13-.2.17l-.94.55c-.1.05-.22.08-.33.08h.01Z"/><path class="cls-2" d="M29.9,24.5c-.12,0-.23-.03-.34-.09-.1-.06-.19-.14-.25-.25-.04-.08-.07-.16-.09-.25s0-.18.02-.26c.02-.09.06-.17.12-.24.05-.07.12-.13.2-.17l1-.57c.08-.04.16-.07.25-.08s.18,0,.26.02c.09.02.17.06.23.12s.13.12.17.2.07.16.08.25,0,.18-.02.26c-.02.09-.06.17-.12.23s-.12.13-.2.17l-.99.58c-.1.05-.21.08-.33.08h.01Z"/><path class="cls-2" d="M34.12,25.86h-.11c-.77-.02-1.52-.24-2.17-.65-.65-.4-1.18-.96-1.54-1.63-.34-.63-.52-1.34-.51-2.06v-.11c.02-.74.22-1.45.6-2.09.37-.64.91-1.17,1.54-1.54.64-.37,1.36-.58,2.1-.6h.1c.72,0,1.43.17,2.06.51.67.36,1.23.89,1.63,1.54.41.66.63,1.41.65,2.18v.1c0,.75-.19,1.48-.56,2.13-.39.68-.95,1.25-1.63,1.63-.65.37-1.39.57-2.14.57h0l-.02.02ZM34.1,18.55h-.04c-.51,0-1.01.15-1.45.41s-.8.62-1.06,1.06c-.26.44-.4.93-.41,1.44v.07c0,.49.12.98.35,1.41.25.46.61.85,1.06,1.12.45.28.97.43,1.5.45h.07c.51,0,1.02-.13,1.47-.39.47-.27.86-.66,1.13-1.13.25-.45.39-.95.39-1.47v-.06c-.01-.53-.17-1.06-.44-1.51-.28-.44-.67-.81-1.13-1.06-.44-.23-.93-.35-1.43-.35h0Z"/><path class="cls-2" d="M35.85,18.98c-.12,0-.23-.03-.33-.09-.08-.04-.15-.1-.2-.17-.05-.07-.1-.15-.12-.23-.02-.09-.03-.17-.02-.26s.04-.17.08-.25l.58-1c.04-.08.1-.15.17-.2.07-.05.15-.1.23-.12.09-.02.17-.03.26-.02s.17.04.25.08c.08.04.15.1.2.17s.1.15.12.23c.02.09.03.17.02.26s-.04.17-.08.25l-.58,1c-.06.1-.14.19-.25.25-.1.06-.22.09-.34.09h.01Z"/><path class="cls-2" d="M31.65,26.25c-.12,0-.23-.03-.33-.09-.08-.04-.15-.1-.2-.17-.05-.07-.1-.15-.12-.23-.02-.09-.03-.17-.02-.26s.04-.17.08-.25l.54-.94c.04-.08.1-.15.17-.2.07-.05.15-.1.23-.12.09-.02.17-.03.26-.02s.17.04.25.08c.08.04.15.1.2.17s.1.15.12.23c.02.09.03.17.02.26s-.04.17-.08.25l-.54.94c-.06.1-.14.19-.25.25-.1.06-.22.09-.34.09h.01Z"/><path class="cls-4" d="M26.98,59.6c-.38,0-.57-.19-.57-.57v-8.06c0-.38.19-.57.57-.57h3.27c1.18,0,2.05.28,2.61.84.56.56.84,1.42.84,2.61v2.31c0,1.18-.28,2.05-.83,2.61s-1.42.83-2.61.83h-3.28ZM27.55,58.46h2.7c.58,0,1.04-.07,1.37-.21.34-.14.58-.38.72-.72s.22-.8.22-1.38v-2.31c0-.57-.07-1.03-.22-1.36-.14-.34-.38-.58-.72-.73-.33-.14-.79-.22-1.37-.22h-2.7v6.92h0Z"/><path class="cls-4" d="M36.76,59.6c-.38,0-.57-.19-.57-.57v-8.06c0-.38.19-.57.57-.57s.57.19.57.57v7.49h3.76c.38,0,.57.19.57.57s-.19.57-.57.57h-4.33Z"/><path class="cls-4" d="M44.1,59.6c-.38,0-.57-.19-.57-.57v-8.06c0-.38.19-.57.57-.57s.57.19.57.57v7.49h3.76c.38,0,.57.19.57.57s-.19.57-.57.57c0,0-4.33,0-4.33,0Z"/></g></g></svg>',docIcon:'<?xml version="1.0" encoding="UTF-8"?><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64"><defs><style>.cls-1{fill:none;}.cls-2,.cls-3{fill:#0072ff;}.cls-4{fill:#fff;}.cls-3{isolation:isolate;opacity:.15;}</style></defs><g id="Layer_2"><rect class="cls-1" width="64" height="64"/></g><g id="Layer_1"><g id="Document"><path class="cls-3" d="M42.52,13.11c-1.46,0-2.85-.58-3.88-1.61-1.03-1.03-1.61-2.42-1.61-3.88V0H12.5C10.6,0,8.78.75,7.44,2.1c-1.35,1.34-2.1,3.16-2.1,5.06v43.18c0,1.9.76,3.72,2.1,5.06,1.34,1.34,3.16,2.09,5.06,2.09h29.44c.94,0,1.87-.18,2.74-.54.87-.36,1.66-.89,2.32-1.55s1.19-1.45,1.55-2.32.55-1.8.55-2.74V13.1h-6.59.01Z"/><path class="cls-2" d="M49.11,13.11h-6.59c-1.46,0-2.85-.58-3.88-1.61-1.03-1.03-1.61-2.42-1.61-3.88V0s12.08,13.11,12.08,13.11Z"/><path class="cls-2" d="M54.36,45.5H21.04c-2.36,0-4.28,1.92-4.28,4.28v9.94c0,2.36,1.92,4.28,4.28,4.28h33.33c2.36,0,4.28-1.92,4.28-4.28v-9.94c0-2.36-1.92-4.28-4.28-4.28h-.01Z"/></g><g id="File"><path class="cls-2" d="M39.32,22H15.07c-.23,0-.46-.09-.62-.26s-.26-.39-.26-.62c0-.12.02-.23.07-.34.04-.11.11-.2.19-.29.08-.08.18-.15.29-.19s.22-.07.34-.07h24.24c.23,0,.46.09.62.26.17.17.26.39.26.62s-.09.46-.26.62-.39.26-.62.26h0Z"/><path class="cls-2" d="M39.32,27.25H15.07c-.23,0-.46-.09-.62-.26-.16-.16-.26-.39-.26-.62,0-.12.02-.23.07-.34.04-.11.11-.2.19-.29.08-.08.18-.15.29-.19s.22-.07.34-.07h24.24c.23,0,.46.09.62.26.17.17.26.39.26.62s-.09.46-.26.62-.39.26-.62.26h0Z"/><path class="cls-2" d="M39.32,32.51H15.07c-.12,0-.23-.02-.34-.07-.11-.04-.2-.11-.29-.19s-.15-.18-.19-.29-.07-.22-.07-.34c0-.23.09-.46.26-.62.16-.16.39-.26.62-.26h24.24c.23,0,.46.09.62.26s.26.39.26.62-.09.46-.26.62c-.17.17-.39.26-.62.26h.01Z"/><path class="cls-2" d="M29.75,37.76h-14.68c-.12,0-.23-.02-.34-.07-.11-.04-.2-.11-.29-.19s-.15-.18-.19-.29-.07-.22-.07-.34c0-.23.09-.46.26-.62.16-.16.39-.26.62-.26h14.68c.23,0,.46.09.62.26.16.16.26.39.26.62,0,.12-.02.23-.07.34-.04.11-.11.2-.19.29s-.18.15-.29.19c-.11.04-.22.07-.34.07h.02Z"/><path class="cls-4" d="M24.91,59.61c-.38,0-.57-.19-.57-.57v-8.06c0-.38.19-.57.57-.57h3.27c1.18,0,2.05.28,2.61.84.56.56.84,1.42.84,2.61v2.31c0,1.18-.28,2.05-.83,2.61s-1.42.83-2.61.83h-3.28ZM25.48,58.47h2.7c.58,0,1.04-.07,1.37-.21.34-.14.58-.38.72-.72s.22-.8.22-1.38v-2.31c0-.57-.07-1.03-.22-1.36-.14-.34-.38-.58-.72-.73-.33-.14-.79-.22-1.37-.22h-2.7v6.92h0Z"/><path class="cls-4" d="M36.83,59.61c-1.04,0-1.8-.25-2.3-.74-.49-.5-.74-1.26-.74-2.3v-3.13c0-1.04.25-1.81.75-2.3.5-.49,1.26-.74,2.29-.73h1.63c1.04,0,1.81.25,2.3.74.49.49.74,1.26.74,2.3v3.12c0,1.04-.25,1.8-.74,2.3-.49.49-1.26.74-2.3.74h-1.63ZM36.83,58.47h1.63c.48,0,.86-.06,1.14-.17.28-.12.47-.31.58-.59.12-.28.18-.66.18-1.14v-3.12c0-.48-.06-.86-.18-1.13-.11-.28-.31-.47-.58-.59s-.66-.18-1.14-.18h-1.63c-.48,0-.86.05-1.13.16s-.47.31-.59.58-.18.66-.18,1.14v3.13c0,.48.06.86.17,1.14.12.28.31.47.59.59.28.11.66.17,1.14.17h0Z"/><path class="cls-4" d="M46.7,59.61c-1.04,0-1.8-.25-2.3-.74-.49-.5-.74-1.26-.74-2.3v-3.12c0-1.04.25-1.81.74-2.31s1.26-.74,2.29-.73h1.64c.85,0,1.5.18,1.95.53s.71.9.78,1.66c.03.19,0,.33-.11.43s-.24.15-.43.15c-.34,0-.54-.19-.6-.57-.05-.42-.19-.7-.43-.84s-.62-.22-1.15-.22h-1.64c-.48,0-.86.05-1.13.16s-.47.31-.58.59-.17.66-.17,1.15v3.12c0,.48.06.86.17,1.14.12.28.31.47.59.59.28.11.66.17,1.14.17h1.63c.53,0,.91-.07,1.15-.22s.39-.43.43-.84c.05-.38.25-.57.6-.57.19,0,.33.05.43.15s.14.24.11.43c-.07.76-.33,1.31-.78,1.66s-1.1.52-1.95.52h-1.64Z"/></g></g></svg>',docxIcon:'<?xml version="1.0" encoding="UTF-8"?><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64"><defs><style>.cls-1{fill:none;}.cls-2,.cls-3{fill:#0072ff;}.cls-4{fill:#fff;}.cls-3{isolation:isolate;opacity:.15;}</style></defs><g id="Layer_2"><rect class="cls-1" width="64" height="64"/></g><g id="Layer_1"><g id="Document"><path class="cls-3" d="M42.52,13.11c-1.46,0-2.85-.58-3.88-1.61-1.03-1.03-1.61-2.42-1.61-3.88V0H12.5C10.6,0,8.78.75,7.44,2.1c-1.35,1.34-2.1,3.16-2.1,5.06v43.18c0,1.9.76,3.72,2.1,5.06,1.34,1.34,3.16,2.09,5.06,2.09h29.44c.94,0,1.87-.18,2.74-.54.87-.36,1.66-.89,2.32-1.55s1.19-1.45,1.55-2.32.55-1.8.55-2.74V13.1h-6.59.01Z"/><path class="cls-2" d="M49.11,13.11h-6.59c-1.46,0-2.85-.58-3.88-1.61-1.03-1.03-1.61-2.42-1.61-3.88V0s12.08,13.11,12.08,13.11Z"/><path class="cls-2" d="M54.36,45.5H21.04c-2.36,0-4.28,1.92-4.28,4.28v9.94c0,2.36,1.92,4.28,4.28,4.28h33.33c2.36,0,4.28-1.92,4.28-4.28v-9.94c0-2.36-1.92-4.28-4.28-4.28h-.01Z"/></g><g id="File"><path class="cls-2" d="M39.32,22H15.07c-.23,0-.46-.09-.62-.26s-.26-.39-.26-.62c0-.12.02-.23.07-.34.04-.11.11-.2.19-.29.08-.08.18-.15.29-.19s.22-.07.34-.07h24.24c.23,0,.46.09.62.26.17.17.26.39.26.62s-.09.46-.26.62-.39.26-.62.26h0Z"/><path class="cls-2" d="M39.32,27.25H15.07c-.23,0-.46-.09-.62-.26-.16-.16-.26-.39-.26-.62,0-.12.02-.23.07-.34.04-.11.11-.2.19-.29.08-.08.18-.15.29-.19s.22-.07.34-.07h24.24c.23,0,.46.09.62.26.17.17.26.39.26.62s-.09.46-.26.62-.39.26-.62.26h0Z"/><path class="cls-2" d="M39.32,32.51H15.07c-.12,0-.23-.02-.34-.07-.11-.04-.2-.11-.29-.19s-.15-.18-.19-.29-.07-.22-.07-.34c0-.23.09-.46.26-.62.16-.16.39-.26.62-.26h24.24c.23,0,.46.09.62.26s.26.39.26.62-.09.46-.26.62c-.17.17-.39.26-.62.26h.01Z"/><path class="cls-2" d="M29.75,37.76h-14.68c-.12,0-.23-.02-.34-.07-.11-.04-.2-.11-.29-.19s-.15-.18-.19-.29-.07-.22-.07-.34c0-.23.09-.46.26-.62.16-.16.39-.26.62-.26h14.68c.23,0,.46.09.62.26.16.16.26.39.26.62,0,.12-.02.23-.07.34-.04.11-.11.2-.19.29s-.18.15-.29.19c-.11.04-.22.07-.34.07h.02Z"/><path class="cls-4" d="M20.57,59.6c-.38,0-.57-.19-.57-.57v-8.05c0-.38.19-.57.57-.57h3.27c1.18,0,2.05.28,2.6.84.56.56.84,1.42.84,2.6v2.3c0,1.18-.28,2.05-.83,2.61s-1.42.83-2.61.83h-3.27ZM21.14,58.46h2.7c.58,0,1.03-.07,1.37-.21s.58-.38.72-.72.22-.8.22-1.38v-2.3c0-.57-.07-1.03-.22-1.36-.14-.34-.38-.58-.72-.72-.33-.14-.79-.22-1.37-.22h-2.7v6.91Z"/><path class="cls-4" d="M32.48,59.6c-1.03,0-1.8-.25-2.3-.74-.49-.5-.74-1.26-.74-2.3v-3.13c0-1.04.25-1.81.75-2.3.5-.49,1.26-.73,2.29-.72h1.63c1.04,0,1.8.25,2.3.74.49.49.74,1.26.74,2.3v3.12c0,1.03-.25,1.8-.74,2.3-.49.49-1.26.74-2.3.74h-1.63ZM32.48,58.46h1.63c.48,0,.86-.06,1.14-.17.28-.12.47-.31.58-.59.12-.28.18-.65.18-1.14v-3.12c0-.48-.06-.86-.18-1.13-.11-.28-.31-.47-.58-.59s-.65-.18-1.14-.18h-1.63c-.48,0-.86.05-1.13.16s-.47.31-.59.58-.18.65-.18,1.14v3.13c0,.48.06.86.17,1.14.12.28.31.47.59.59.28.11.65.17,1.14.17h0Z"/><path class="cls-4" d="M42.34,59.6c-1.03,0-1.8-.25-2.3-.74-.49-.5-.74-1.26-.74-2.3v-3.12c0-1.04.25-1.81.74-2.3.49-.5,1.25-.74,2.28-.73h1.64c.85,0,1.5.18,1.94.53.45.35.71.9.78,1.65.03.19,0,.33-.11.43s-.24.15-.43.15c-.34,0-.54-.19-.6-.57-.05-.42-.19-.7-.43-.84s-.62-.22-1.15-.22h-1.64c-.48,0-.86.05-1.13.16s-.47.31-.58.59-.17.66-.17,1.14v3.12c0,.48.06.86.17,1.14.12.28.31.47.59.59.28.11.65.17,1.14.17h1.63c.53,0,.91-.07,1.15-.22s.39-.43.43-.84c.05-.38.25-.57.6-.57.19,0,.33.05.43.15s.14.24.11.43c-.07.76-.33,1.31-.78,1.66s-1.1.52-1.94.52h-1.63v.02Z"/><path class="cls-4" d="M48.82,59.47c-.3-.21-.35-.47-.14-.8l2.48-3.66-2.61-3.69c-.2-.3-.15-.56.15-.8.31-.21.57-.16.79.15l2.43,3.4,2.44-3.4c.23-.3.5-.34.79-.12.31.23.35.49.14.79l-2.67,3.71,2.56,3.6c.21.31.16.58-.15.81-.31.21-.57.16-.79-.15l-2.36-3.32-2.25,3.33c-.21.29-.47.34-.8.14h0Z"/></g></g></svg>',dwgIcon:'<?xml version="1.0" encoding="UTF-8"?><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64"><defs><style>.cls-1{fill:none;}.cls-2{fill:#fff;}.cls-3{isolation:isolate;opacity:.15;}.cls-3,.cls-4{fill:#005fad;}</style></defs><g id="Layer_2"><rect class="cls-1" width="64" height="64"/></g><g id="Layer_1"><g id="Document"><path class="cls-3" d="M42.52,13.11c-1.46,0-2.85-.58-3.88-1.61-1.03-1.03-1.61-2.42-1.61-3.88V0H12.5C10.6,0,8.78.75,7.44,2.1c-1.35,1.34-2.1,3.16-2.1,5.06v43.18c0,1.9.76,3.72,2.1,5.06,1.34,1.34,3.16,2.09,5.06,2.09h29.44c.94,0,1.87-.18,2.74-.54.87-.36,1.66-.89,2.32-1.55s1.19-1.45,1.55-2.32.55-1.8.55-2.74V13.1h-6.59.01Z"/><path class="cls-4" d="M49.11,13.11h-6.59c-1.46,0-2.85-.58-3.88-1.61-1.03-1.03-1.61-2.42-1.61-3.88V0s12.08,13.11,12.08,13.11Z"/><path class="cls-4" d="M54.36,45.5H21.04c-2.36,0-4.28,1.92-4.28,4.28v9.94c0,2.36,1.92,4.28,4.28,4.28h33.33c2.36,0,4.28-1.92,4.28-4.28v-9.94c0-2.36-1.92-4.28-4.28-4.28h-.01Z"/></g><g id="File"><path class="cls-4" d="M39.32,24.55H15.07c-.23,0-.46-.09-.62-.26-.16-.16-.26-.39-.26-.62s.09-.46.26-.62c.16-.16.39-.26.62-.26h24.24c.12,0,.23.02.34.07.11.04.2.11.28.19.08.08.15.18.19.29.04.11.07.22.07.34,0,.23-.09.46-.26.62-.16.16-.39.26-.62.26h0Z"/><path class="cls-4" d="M33.06,16.88v24.24c0,.12-.02.23-.07.34-.04.11-.11.2-.19.29-.08.08-.18.15-.29.19-.11.04-.22.07-.34.07s-.23-.02-.34-.07c-.11-.04-.2-.11-.28-.19-.08-.08-.15-.18-.19-.29s-.07-.22-.07-.34v-24.24c0-.23.09-.46.26-.62.16-.16.39-.26.62-.26s.46.09.62.26c.17.16.26.39.26.62h.01Z"/><path class="cls-4" d="M34.23,20.74h-3.98c-.45,0-.82.37-.82.82v3.98c0,.45.37.82.82.82h3.98c.45,0,.82-.37.82-.82v-3.98c0-.45-.37-.82-.82-.82Z"/><path class="cls-2" d="M24.05,59.6c-.38,0-.57-.19-.57-.57v-8.05c0-.38.19-.57.57-.57h3.27c1.18,0,2.05.28,2.6.84.56.56.84,1.42.84,2.6v2.3c0,1.18-.28,2.05-.83,2.61s-1.42.83-2.61.83h-3.27ZM24.6,58.46h2.7c.58,0,1.03-.07,1.37-.21s.58-.38.72-.72.22-.8.22-1.38v-2.3c0-.57-.07-1.03-.22-1.36-.14-.34-.38-.58-.72-.72-.33-.14-.79-.22-1.37-.22h-2.7v6.91Z"/><path class="cls-2" d="M34.94,59.6c-.25,0-.42-.16-.53-.49l-2.51-7.94c-.05-.17-.03-.34.07-.51.11-.17.26-.26.47-.26.11,0,.21.04.31.11s.17.18.22.33l2.21,7.03h-.3l2.1-6.96c.05-.16.13-.28.25-.37.12-.08.25-.12.37-.12.14,0,.27.04.39.12s.21.2.26.37l2.1,6.96h-.3l2.21-7.03c.05-.15.12-.26.21-.32.09-.07.2-.1.3-.1.2,0,.36.08.47.23s.14.33.08.53l-2.51,7.94c-.11.33-.31.49-.6.49h-.03c-.3,0-.5-.16-.6-.49l-2.18-7.06h.3l-2.19,7.06c-.05.16-.11.28-.2.37-.09.08-.22.12-.39.12h.02Z"/><path class="cls-2" d="M47.55,59.6c-1.03,0-1.8-.25-2.3-.74-.49-.5-.74-1.26-.74-2.3v-3.12c0-1.04.25-1.81.74-2.3.49-.5,1.25-.74,2.28-.73h1.64c.85,0,1.5.18,1.94.53.45.35.71.9.78,1.65.03.19,0,.33-.11.43s-.24.15-.43.15c-.34,0-.54-.19-.6-.57-.05-.42-.19-.7-.43-.84s-.62-.22-1.15-.22h-1.64c-.48,0-.86.05-1.13.16s-.47.31-.58.59-.17.66-.17,1.15v3.12c0,.48.06.86.17,1.14.12.28.31.47.59.59.28.11.65.17,1.14.17h1.63c.42,0,.75-.05.98-.14.24-.09.41-.26.5-.49s.14-.57.14-1v-.64h-1.06c-.38,0-.57-.2-.57-.58s.19-.57.57-.57h1.63c.38,0,.57.2.57.58v1.21c0,.96-.22,1.66-.67,2.11-.45.44-1.15.66-2.09.66,0,0-1.63,0-1.63,0Z"/></g></g></svg>',exeIcon:'<?xml version="1.0" encoding="UTF-8"?><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64"><defs><style>.cls-1{fill:none;}.cls-2,.cls-3{fill:#0072ff;}.cls-4{fill:#fff;}.cls-3{isolation:isolate;opacity:.15;}</style></defs><g id="Layer_2"><rect class="cls-1" width="64" height="64"/></g><g id="Layer_1"><g id="Document"><path class="cls-3" d="M42.52,13.11c-1.46,0-2.85-.58-3.88-1.61-1.03-1.03-1.61-2.42-1.61-3.88V0H12.5C10.6,0,8.78.75,7.44,2.1c-1.35,1.34-2.1,3.16-2.1,5.06v43.18c0,1.9.76,3.72,2.1,5.06,1.34,1.34,3.16,2.09,5.06,2.09h29.44c.94,0,1.87-.18,2.74-.54.87-.36,1.66-.89,2.32-1.55s1.19-1.45,1.55-2.32.55-1.8.55-2.74V13.1h-6.59.01Z"/><path class="cls-2" d="M49.11,13.11h-6.59c-1.46,0-2.85-.58-3.88-1.61-1.03-1.03-1.61-2.42-1.61-3.88V0s12.08,13.11,12.08,13.11Z"/><path class="cls-2" d="M54.36,45.5H21.04c-2.36,0-4.28,1.92-4.28,4.28v9.94c0,2.36,1.92,4.28,4.28,4.28h33.33c2.36,0,4.28-1.92,4.28-4.28v-9.94c0-2.36-1.92-4.28-4.28-4.28h-.01Z"/></g><g id="File"><path class="cls-2" d="M27.19,42c-.43,0-.83-.17-1.14-.47-.3-.3-.47-.71-.47-1.14v-2.47c0-.21.04-.42.12-.61.08-.19.2-.37.35-.52s.33-.27.52-.35c.19-.08.4-.12.61-.12.43,0,.83.17,1.13.47.3.3.47.71.47,1.13v2.47c0,.43-.17.83-.47,1.13s-.71.47-1.13.47h0Z"/><path class="cls-2" d="M27.19,22.09c-.43,0-.83-.17-1.14-.47s-.47-.71-.47-1.14v-2.87c0-.43.17-.83.47-1.14s.71-.47,1.14-.47.83.17,1.13.47.47.71.47,1.13v2.87c0,.43-.17.83-.47,1.13s-.71.47-1.13.47h0v.02Z"/><path class="cls-2" d="M32.89,40.47c-.28,0-.56-.07-.8-.21s-.45-.34-.59-.59l-1.2-2.08c-.21-.37-.27-.81-.16-1.22s.38-.76.75-.97c.18-.11.38-.17.59-.2.21-.03.42,0,.63.04.2.05.39.15.56.28.17.13.31.29.41.47l1.2,2.07c.21.37.27.81.16,1.22s-.38.76-.75.98c-.24.14-.52.22-.8.22h0Z"/><path class="cls-2" d="M22.97,23.29c-.28,0-.56-.07-.8-.21s-.45-.34-.59-.59l-1.47-2.54c-.21-.37-.27-.81-.16-1.22.11-.41.38-.76.75-.97s.81-.27,1.22-.16.76.38.98.75l1.47,2.55c.21.37.27.81.16,1.22s-.38.76-.75.98c-.24.14-.52.21-.8.21h0v-.02Z"/><path class="cls-2" d="M37.05,36.3c-.28,0-.56-.07-.8-.21l-2.08-1.2c-.37-.21-.64-.56-.75-.98-.11-.41-.05-.85.16-1.22.21-.37.56-.64.97-.75s.85-.05,1.22.16l2.08,1.2c.37.21.64.56.75.98.11.41.05.85-.16,1.22-.14.24-.34.45-.59.59-.24.14-.52.22-.8.21h0Z"/><path class="cls-2" d="M19.87,26.38c-.28,0-.56-.08-.8-.22l-2.55-1.47c-.37-.21-.64-.56-.75-.98-.11-.41-.05-.85.16-1.22.11-.18.25-.34.41-.47.17-.13.36-.22.56-.28.2-.05.42-.07.63-.04.21.03.41.1.59.2l2.55,1.47c.37.21.64.56.75.98.11.41.05.85-.16,1.22-.14.24-.34.45-.59.59-.24.14-.52.22-.8.21h0Z"/><path class="cls-2" d="M38.59,30.61h-2.47c-.43,0-.83-.17-1.14-.47-.3-.3-.47-.71-.47-1.14s.17-.83.47-1.13.71-.47,1.13-.47h2.47c.43,0,.83.17,1.13.47s.47.71.47,1.13-.17.83-.47,1.14c-.3.3-.71.47-1.14.47h.02Z"/><path class="cls-2" d="M18.67,30.61h-2.87c-.43,0-.83-.17-1.14-.47-.3-.3-.47-.71-.47-1.14s.17-.83.47-1.13.71-.47,1.13-.47h2.87c.21,0,.42.04.61.12s.37.2.52.35.27.33.35.52.12.4.12.61-.04.42-.12.61-.2.37-.35.52-.33.27-.52.35c-.19.08-.4.12-.61.12h.01Z"/><path class="cls-2" d="M34.81,26.21c-.28,0-.56-.07-.8-.21s-.45-.34-.59-.59c-.21-.37-.27-.81-.16-1.22s.38-.76.75-.97l2.24-1.3c.37-.21.81-.27,1.22-.16.41.11.76.38.98.75.21.37.27.81.16,1.22s-.38.76-.75.98l-2.24,1.3c-.24.14-.52.21-.8.21h-.01Z"/><path class="cls-2" d="M17.33,36.3c-.28,0-.56-.07-.8-.21s-.45-.34-.59-.59c-.21-.37-.27-.81-.16-1.22.11-.41.38-.76.75-.98l2.38-1.37c.37-.21.81-.27,1.22-.16s.76.38.98.75c.21.37.27.81.16,1.22-.11.41-.38.76-.75.97l-2.37,1.37c-.24.14-.52.22-.8.22h-.02Z"/><path class="cls-2" d="M27.39,39.53h-.26c-1.84-.04-3.63-.58-5.19-1.55-1.54-.95-2.8-2.3-3.66-3.89-.8-1.5-1.22-3.18-1.23-4.88v-.26c.04-1.76.54-3.47,1.43-4.98s2.15-2.77,3.66-3.66c1.52-.89,3.24-1.38,5-1.42h.24c1.71,0,3.38.42,4.89,1.23,1.59.86,2.94,2.12,3.89,3.65.97,1.57,1.51,3.36,1.55,5.21v.24c0,1.78-.46,3.54-1.34,5.09-.92,1.63-2.26,2.98-3.89,3.9-1.55.88-3.3,1.34-5.08,1.34h0v-.02ZM27.34,22.09h-.1c-1.22.03-2.41.36-3.47.98-1.04.61-1.91,1.48-2.53,2.52-.61,1.05-.94,2.23-.96,3.44v.16c0,1.17.29,2.33.84,3.36.59,1.1,1.46,2.03,2.53,2.69,1.08.67,2.32,1.04,3.59,1.06h.16c1.23,0,2.44-.32,3.51-.92,1.12-.64,2.05-1.57,2.69-2.69.61-1.07.92-2.28.92-3.5v-.14c-.03-1.28-.4-2.52-1.07-3.61-.66-1.06-1.58-1.93-2.68-2.52-1.05-.56-2.23-.85-3.42-.84h-.01Z"/><path class="cls-2" d="M31.51,23.12c-.28,0-.56-.07-.8-.21-.18-.11-.34-.25-.47-.41-.13-.17-.22-.36-.28-.56-.05-.2-.07-.42-.04-.63s.1-.41.2-.59l1.37-2.38c.11-.18.25-.34.41-.47s.36-.22.56-.28c.2-.05.42-.07.63-.04.21.03.41.1.59.2.18.11.34.25.47.41.13.17.22.36.28.56s.07.42.04.63c-.03.21-.1.41-.2.59l-1.37,2.38c-.14.24-.34.45-.59.59-.24.14-.52.22-.8.21h0Z"/><path class="cls-2" d="M21.5,40.47c-.28,0-.56-.08-.8-.22-.37-.21-.64-.56-.75-.97s-.05-.85.16-1.22l1.3-2.24c.21-.37.56-.64.98-.75.41-.11.85-.05,1.22.16.37.21.64.56.75.98.11.41.05.85-.16,1.22l-1.3,2.24c-.14.24-.34.45-.59.59-.24.14-.52.22-.8.21h-.01Z"/><path class="cls-4" d="M26.94,59.6c-.38,0-.57-.19-.57-.57v-8.05c0-.38.19-.57.57-.57h4.86c.38,0,.57.19.57.57s-.19.57-.57.57h-4.29v2.85h2.7c.38,0,.57.19.57.57s-.19.57-.57.57h-2.7v2.93h4.29c.38,0,.57.19.57.57s-.19.57-.57.57h-4.86Z"/><path class="cls-4" d="M34.3,59.47c-.3-.21-.35-.47-.14-.8l2.48-3.66-2.61-3.69c-.2-.3-.15-.56.15-.8.31-.21.57-.16.79.15l2.43,3.4,2.44-3.4c.23-.3.5-.34.79-.12.31.23.35.49.14.79l-2.67,3.71,2.56,3.6c.21.31.16.58-.15.81-.31.21-.57.16-.79-.15l-2.36-3.32-2.25,3.33c-.21.29-.47.34-.8.14h0Z"/><path class="cls-4" d="M43.59,59.6c-.38,0-.57-.19-.57-.57v-8.05c0-.38.19-.57.57-.57h4.86c.38,0,.57.19.57.57s-.19.57-.57.57h-4.29v2.85h2.7c.38,0,.57.19.57.57s-.19.57-.57.57h-2.7v2.93h4.29c.38,0,.57.19.57.57s-.19.57-.57.57h-4.86Z"/></g></g></svg>',flvIcon:'<?xml version="1.0" encoding="UTF-8"?><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64"><defs><style>.cls-1{fill:none;}.cls-2{isolation:isolate;opacity:.15;}.cls-2,.cls-3{fill:#ff3e4c;}.cls-4{fill:#fff;}</style></defs><g id="Layer_2"><rect class="cls-1" width="64" height="64"/></g><g id="Layer_1"><g id="Document"><path class="cls-2" d="M42.52,13.11c-1.46,0-2.85-.58-3.88-1.61-1.03-1.03-1.61-2.42-1.61-3.88V0H12.5C10.6,0,8.78.75,7.44,2.1c-1.35,1.34-2.1,3.16-2.1,5.06v43.18c0,1.9.76,3.72,2.1,5.06,1.34,1.34,3.16,2.09,5.06,2.09h29.44c.94,0,1.87-.18,2.74-.54.87-.36,1.66-.89,2.32-1.55s1.19-1.45,1.55-2.32.55-1.8.55-2.74V13.1h-6.59.01Z"/><path class="cls-3" d="M49.11,13.11h-6.59c-1.46,0-2.85-.58-3.88-1.61-1.03-1.03-1.61-2.42-1.61-3.88V0s12.08,13.11,12.08,13.11Z"/><path class="cls-3" d="M54.36,45.5H21.04c-2.36,0-4.28,1.92-4.28,4.28v9.94c0,2.36,1.92,4.28,4.28,4.28h33.33c2.36,0,4.28-1.92,4.28-4.28v-9.94c0-2.36-1.92-4.28-4.28-4.28h-.01Z"/></g><g id="File"><path class="cls-3" d="M40.19,37.34v-16.67c0-.08,0-.16-.02-.24v-.07c0-.06-.03-.11-.05-.16l-.03-.07s-.05-.1-.08-.15l-.03-.06c-.05-.06-.09-.12-.15-.18l-.02-.02s-.1-.09-.15-.13l-.06-.04s-.09-.05-.14-.08l-.07-.03c-.06-.02-.11-.04-.17-.05h-.06c-.08-.02-.16-.03-.24-.02H15.38c-.32.03-.62.18-.84.42s-.34.55-.34.88v16.72c0,.21.06.42.19.59.12.19.28.35.48.47s.42.17.64.17h23.41c.34,0,.66-.14.9-.38s.37-.56.38-.9h-.01ZM16.26,22.52c-.39,0-.7-.31-.7-.7v-1.13c0-.39.31-.7.7-.7h.66c.39,0,.7.31.7.7v1.13c0,.39-.31.7-.7.7h-.66ZM19.73,22.52c-.39,0-.7-.31-.7-.7v-1.13c0-.39.31-.7.7-.7h.66c.39,0,.7.31.7.7v1.13c0,.39-.31.7-.7.7h-.66ZM23.22,22.52c-.39,0-.7-.31-.7-.7v-1.13c0-.39.31-.7.7-.7h.66c.39,0,.7.31.7.7v1.13c0,.39-.31.7-.7.7h-.66ZM26.68,22.52c-.39,0-.7-.31-.7-.7v-1.13c0-.39.31-.7.7-.7h.66c.39,0,.7.31.7.7v1.13c0,.39-.31.7-.7.7h-.66ZM30.15,22.52c-.39,0-.7-.31-.7-.7v-1.13c0-.39.31-.7.7-.7h.66c.39,0,.7.31.7.7v1.13c0,.39-.31.7-.7.7h-.66ZM33.64,22.52c-.39,0-.7-.31-.7-.7v-1.13c0-.39.31-.7.7-.7h.66c.39,0,.7.31.7.7v1.13c0,.39-.31.7-.7.7h-.66ZM37.1,22.52c-.39,0-.7-.31-.7-.7v-1.13c0-.39.31-.7.7-.7h.66c.39,0,.7.31.7.7v1.13c0,.39-.31.7-.7.7h-.66ZM15.79,34.78c-.39,0-.7-.31-.7-.7v-10.19c0-.39.31-.7.7-.7h22.79c.39,0,.7.31.7.7v10.19c0,.39-.31.7-.7.7H15.79ZM16.26,37.99c-.39,0-.7-.31-.7-.7v-1.13c0-.39.31-.7.7-.7h.66c.39,0,.7.31.7.7v1.13c0,.39-.31.7-.7.7h-.66ZM19.73,37.99c-.39,0-.7-.31-.7-.7v-1.13c0-.39.31-.7.7-.7h.66c.39,0,.7.31.7.7v1.13c0,.39-.31.7-.7.7h-.66ZM23.2,37.99c-.39,0-.7-.31-.7-.7v-1.13c0-.39.31-.7.7-.7h.66c.39,0,.7.31.7.7v1.13c0,.39-.31.7-.7.7h-.66ZM26.68,37.99c-.39,0-.7-.31-.7-.7v-1.13c0-.39.31-.7.7-.7h.66c.39,0,.7.31.7.7v1.13c0,.39-.31.7-.7.7h-.66ZM30.15,37.99c-.39,0-.7-.31-.7-.7v-1.13c0-.39.31-.7.7-.7h.66c.39,0,.7.31.7.7v1.13c0,.39-.31.7-.7.7h-.66ZM33.62,37.99c-.39,0-.7-.31-.7-.7v-1.13c0-.39.31-.7.7-.7h.66c.39,0,.7.31.7.7v1.13c0,.39-.31.7-.7.7h-.66ZM37.1,37.99c-.39,0-.7-.31-.7-.7v-1.13c0-.39.31-.7.7-.7h.66c.39,0,.7.31.7.7v1.13c0,.39-.31.7-.7.7h-.66Z"/><path class="cls-3" d="M29.93,28.13l-3.34-1.93c-.17-.1-.37-.15-.57-.15s-.4.05-.57.15-.32.24-.42.42c-.1.17-.15.37-.15.57v3.86c0,.2.05.4.15.57s.24.32.42.42c.17.1.37.15.57.15s.4-.05.57-.15l3.34-1.93c.17-.1.32-.24.42-.42s.15-.37.15-.57-.05-.4-.15-.57-.24-.32-.42-.42h0Z"/><path class="cls-4" d="M27.82,59.6c-.38,0-.57-.19-.57-.57v-8.05c0-.38.19-.57.57-.57h4.99c.18,0,.31.05.41.16.1.1.16.24.16.41,0,.38-.19.57-.57.57h-4.42v2.85h2.72c.38,0,.57.19.57.57s-.19.57-.57.57h-2.72v3.5c0,.38-.19.57-.57.57h0Z"/><path class="cls-4" d="M35.35,59.6c-.38,0-.57-.19-.57-.57v-8.05c0-.38.19-.57.57-.57s.57.19.57.57v7.48h3.75c.38,0,.57.19.57.57s-.19.57-.57.57h-4.32Z"/><path class="cls-4" d="M44.05,59.6c-.23,0-.42-.15-.56-.45l-3.35-7.93c-.07-.16-.09-.3-.05-.42.03-.13.14-.23.31-.31.37-.19.63-.09.79.28l3.16,7.5h-.39l3.08-7.5c.15-.37.41-.47.79-.28.16.08.26.19.29.31.04.12.03.26-.03.42l-3.37,7.93c-.14.3-.34.45-.61.45h-.06Z"/></g></g></svg>',gifIcon:'<?xml version="1.0" encoding="UTF-8"?><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64"><defs><style>.cls-1{fill:none;}.cls-2,.cls-3{fill:#ff9908;}.cls-4{fill:#fff;}.cls-3{isolation:isolate;opacity:.15;}</style></defs><g id="Layer_2"><rect class="cls-1" width="64" height="64"/></g><g id="Layer_1"><g id="Document"><path class="cls-3" d="M42.52,13.11c-1.46,0-2.85-.58-3.88-1.61-1.03-1.03-1.61-2.42-1.61-3.88V0H12.5C10.6,0,8.78.75,7.44,2.1c-1.35,1.34-2.1,3.16-2.1,5.06v43.18c0,1.9.76,3.72,2.1,5.06,1.34,1.34,3.16,2.09,5.06,2.09h29.44c.94,0,1.87-.18,2.74-.54.87-.36,1.66-.89,2.32-1.55s1.19-1.45,1.55-2.32.55-1.8.55-2.74V13.1h-6.59.01Z"/><path class="cls-2" d="M49.11,13.11h-6.59c-1.46,0-2.85-.58-3.88-1.61-1.03-1.03-1.61-2.42-1.61-3.88V0s12.08,13.11,12.08,13.11Z"/><path class="cls-2" d="M54.36,45.5H21.04c-2.36,0-4.28,1.92-4.28,4.28v9.94c0,2.36,1.92,4.28,4.28,4.28h33.33c2.36,0,4.28-1.92,4.28-4.28v-9.94c0-2.36-1.92-4.28-4.28-4.28h-.01Z"/></g><g id="File"><path class="cls-2" d="M27.19,42c-3.45,0-6.75-1.38-9.19-3.81-2.44-2.44-3.81-5.74-3.81-9.19s1.38-6.75,3.81-9.19c2.44-2.44,5.74-3.81,9.19-3.81s6.75,1.38,9.19,3.81c2.44,2.44,3.81,5.74,3.81,9.19s-1.38,6.75-3.81,9.19c-2.44,2.44-5.74,3.81-9.19,3.81ZM27.19,18.28c-2.84,0-5.57,1.14-7.58,3.15s-3.14,4.73-3.15,7.58c0,2.84,1.14,5.57,3.15,7.58,2.01,2.01,4.73,3.14,7.58,3.15,2.84,0,5.57-1.14,7.58-3.15,2.01-2.01,3.14-4.73,3.15-7.58,0-2.84-1.14-5.57-3.15-7.58s-4.73-3.14-7.58-3.15Z"/><path class="cls-2" d="M27.19,36.29c-1.49,0-2.95-.36-4.26-1.06-.97-.52-1.84-1.21-2.56-2.04-.41-.48-.27-1.19.26-1.54.52-.35,1.22-.2,1.66.26.5.53,1.08.97,1.72,1.31.98.52,2.07.8,3.18.8s2.2-.27,3.18-.8c.64-.34,1.22-.79,1.72-1.31.43-.46,1.13-.61,1.66-.26.52.35.67,1.06.26,1.54-.72.83-1.58,1.52-2.56,2.04-1.31.7-2.77,1.07-4.25,1.07h-.01Z"/><path class="cls-2" d="M23.59,27.01c.84,0,1.51-.68,1.51-1.51s-.68-1.51-1.51-1.51-1.51.68-1.51,1.51.68,1.51,1.51,1.51Z"/><path class="cls-2" d="M30.8,27.01c.84,0,1.51-.68,1.51-1.51s-.68-1.51-1.51-1.51-1.51.68-1.51,1.51.68,1.51,1.51,1.51Z"/><path class="cls-4" d="M30.8,59.6c-1.04,0-1.8-.25-2.3-.74-.49-.5-.74-1.26-.74-2.3v-3.12c0-1.04.25-1.81.74-2.31s1.26-.74,2.29-.73h1.64c.85,0,1.5.18,1.95.53s.71.9.78,1.66c.03.19,0,.33-.11.43s-.24.15-.43.15c-.34,0-.54-.19-.6-.57-.05-.42-.19-.7-.43-.84s-.62-.22-1.15-.22h-1.64c-.48,0-.86.05-1.13.16-.27.11-.47.31-.58.59s-.17.66-.17,1.15v3.12c0,.48.06.86.17,1.14.12.28.31.47.59.59.28.11.66.17,1.14.17h1.63c.42,0,.75-.05.98-.14.24-.09.41-.26.5-.5s.14-.57.14-1v-.64h-1.06c-.38,0-.57-.2-.57-.58s.19-.57.57-.57h1.63c.38,0,.57.2.57.58v1.21c0,.96-.22,1.67-.67,2.11-.45.44-1.15.66-2.1.66h-1.64Z"/><path class="cls-4" d="M38.12,59.6c-.19,0-.34-.05-.43-.14s-.14-.24-.14-.43v-8.05c0-.2.05-.34.14-.43s.24-.14.43-.14.34.05.43.14.14.24.14.43v8.05c0,.19-.05.34-.14.43s-.24.14-.43.14Z"/><path class="cls-4" d="M42.09,59.6c-.38,0-.57-.19-.57-.57v-8.06c0-.38.19-.57.57-.57h4.99c.18,0,.31.05.41.16.1.1.16.24.16.41,0,.38-.19.57-.57.57h-4.42v2.85h2.73c.38,0,.57.19.57.57s-.19.57-.57.57h-2.73v3.5c0,.38-.19.57-.57.57h0Z"/></g></g></svg>',htmlIcon:'<?xml version="1.0" encoding="UTF-8"?><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64"><defs><style>.cls-1{fill:none;}.cls-2,.cls-3{fill:#00c650;}.cls-4{fill:#fff;}.cls-3{isolation:isolate;opacity:.15;}</style></defs><g id="Layer_2"><rect class="cls-1" width="64" height="64"/></g><g id="Layer_1"><g id="Document"><path class="cls-3" d="M42.52,13.11c-1.46,0-2.85-.58-3.88-1.61-1.03-1.03-1.61-2.42-1.61-3.88V0H12.5C10.6,0,8.78.75,7.44,2.1c-1.35,1.34-2.1,3.16-2.1,5.06v43.18c0,1.9.76,3.72,2.1,5.06,1.34,1.34,3.16,2.09,5.06,2.09h29.44c.94,0,1.87-.18,2.74-.54.87-.36,1.66-.89,2.32-1.55s1.19-1.45,1.55-2.32.55-1.8.55-2.74V13.1h-6.59.01Z"/><path class="cls-2" d="M49.11,13.11h-6.59c-1.46,0-2.85-.58-3.88-1.61-1.03-1.03-1.61-2.42-1.61-3.88V0s12.08,13.11,12.08,13.11Z"/><path class="cls-2" d="M54.36,45.5H21.04c-2.36,0-4.28,1.92-4.28,4.28v9.94c0,2.36,1.92,4.28,4.28,4.28h33.33c2.36,0,4.28-1.92,4.28-4.28v-9.94c0-2.36-1.92-4.28-4.28-4.28h-.01Z"/></g><g id="File"><path class="cls-2" d="M14.19,29.46c0-.14.04-.27.12-.38.1-.12.21-.23.35-.32.2-.1.41-.19.62-.27l.62-.26,2.47-1.04c.34-.16.98-.43,1.92-.8l1.18-.48.42-.15.07-.03h.06s.1-.03.15-.03c.1,0,.2,0,.29.04.09.03.18.09.25.15.06.06.11.13.14.21.03.08.05.16.05.25v.81c0,.15-.05.3-.14.42-.09.14-.22.25-.37.3l-5.05,2.07,5.05,2.07c.15.06.28.16.37.29.09.12.14.26.14.41v.81c0,.17-.07.34-.2.46-.07.07-.16.12-.25.16s-.19.05-.29.04c-.05,0-.1,0-.15-.03l-.13-.04-.42-.15-1.18-.48-1.92-.8-2.47-1.04-.62-.26c-.2-.08-.41-.17-.62-.27-.13-.06-.24-.16-.33-.28-.08-.12-.13-.26-.14-.4v-.98h.01Z"/><path class="cls-2" d="M24.31,35.07c-.2,0-.39-.06-.55-.19-.07-.05-.12-.12-.16-.2s-.06-.16-.06-.25c0-.12.36-.96,1.09-2.56l1.06-2.32.22-.48,1.7-3.78.6-1.31.12-.3c.05-.11.1-.22.17-.32.08-.14.2-.25.35-.33.14-.08.3-.11.47-.11h.75c.2,0,.4.06.55.19.07.05.12.12.16.2.04.08.06.16.06.25-.26.75-.56,1.48-.9,2.19l-.17.36-1.28,2.8-1.7,3.78-.6,1.31-.12.3c-.04.12-.1.24-.16.35-.09.14-.21.25-.36.32-.14.08-.31.12-.47.11h-.77Z"/><path class="cls-2" d="M32.22,34.21c-.1,0-.2,0-.3-.04-.1-.03-.18-.09-.26-.16-.06-.06-.11-.13-.14-.21s-.05-.16-.05-.25v-.81c0-.15.04-.29.13-.41.1-.13.23-.24.38-.29l5.06-2.07-5.06-2.07c-.15-.07-.29-.18-.38-.32-.09-.12-.13-.27-.13-.42v-.83c0-.09.02-.17.05-.25.03-.08.09-.15.15-.21.15-.13.35-.2.55-.2.05,0,.1,0,.14.03h.08l.07.03s.12.04.41.15l1.19.48c-.06-.03.58.24,1.92.8.73.3,1.57.66,2.52,1.07.06.02.14.05.24.09l.35.14c.2.07.4.16.59.27.14.06.25.16.33.28s.13.27.13.41v.99c0,.14-.05.27-.13.38-.09.12-.2.23-.34.3-.18.09-.4.19-.64.29l-.64.26-5.58,2.34c-.16.08-.26.13-.29.15l-.06.04-.29.03h0Z"/><path class="cls-4" d="M20.37,59.6c-.15,0-.28-.06-.4-.17-.11-.12-.17-.25-.17-.4v-8.06c0-.15.06-.28.17-.39.12-.12.25-.18.4-.18s.28.06.39.18c.12.11.18.24.18.39v3.41h5.54v-3.41c0-.15.06-.28.17-.39.11-.12.25-.18.4-.18s.28.06.39.18c.12.11.18.24.18.39v8.06c0,.15-.06.28-.18.4s-.24.17-.39.17-.29-.06-.4-.17c-.11-.12-.17-.25-.17-.4v-3.51h-5.54v3.51c0,.15-.06.28-.18.4-.11.11-.24.17-.39.17Z"/><path class="cls-4" d="M33.2,59.6c-.19,0-.33-.05-.43-.14s-.14-.24-.14-.43v-7.48h-2.63c-.19,0-.33-.05-.43-.14s-.14-.24-.14-.43.05-.33.14-.43.24-.14.43-.14h6.4c.19,0,.33.05.43.14s.14.24.14.43-.05.33-.14.43-.24.14-.43.14h-2.63v7.48c0,.18-.05.32-.15.42-.09.1-.24.15-.42.15Z"/><path class="cls-4" d="M39.35,59.6c-.38,0-.57-.19-.57-.57v-8.06c0-.38.19-.57.57-.57.25,0,.46.12.62.37l3.2,4.82-.24.04,3.23-4.86c.15-.24.38-.37.69-.37s.46.19.46.57v8.06c0,.38-.19.57-.57.57s-.57-.19-.57-.57v-6.92l.35.12-2.85,4.19c-.17.24-.4.37-.69.37-.2,0-.39-.12-.56-.37l-2.85-4.19.34.09v6.7c0,.38-.19.57-.57.57h.01Z"/><path class="cls-4" d="M50.7,59.6c-.38,0-.57-.19-.57-.57v-8.06c0-.38.19-.57.57-.57s.57.19.57.57v7.49h3.76c.38,0,.57.19.57.57s-.19.57-.57.57h-4.33Z"/></g></g></svg>',isoIcon:'<?xml version="1.0" encoding="UTF-8"?><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64"><defs><style>.cls-1{fill:none;}.cls-2,.cls-3{fill:#0072ff;}.cls-4{fill:#fff;}.cls-3{isolation:isolate;opacity:.15;}</style></defs><g id="Layer_2"><rect class="cls-1" width="64" height="64"/></g><g id="Layer_1"><g id="Document"><path class="cls-3" d="M42.52,13.11c-1.46,0-2.85-.58-3.88-1.61-1.03-1.03-1.61-2.42-1.61-3.88V0H12.5C10.6,0,8.78.75,7.44,2.1c-1.35,1.34-2.1,3.16-2.1,5.06v43.18c0,1.9.76,3.72,2.1,5.06,1.34,1.34,3.16,2.09,5.06,2.09h29.44c.94,0,1.87-.18,2.74-.54.87-.36,1.66-.89,2.32-1.55s1.19-1.45,1.55-2.32.55-1.8.55-2.74V13.1h-6.59.01Z"/><path class="cls-2" d="M49.11,13.11h-6.59c-1.46,0-2.85-.58-3.88-1.61-1.03-1.03-1.61-2.42-1.61-3.88V0s12.08,13.11,12.08,13.11Z"/><path class="cls-2" d="M54.36,45.5H21.04c-2.36,0-4.28,1.92-4.28,4.28v9.94c0,2.36,1.92,4.28,4.28,4.28h33.33c2.36,0,4.28-1.92,4.28-4.28v-9.94c0-2.36-1.92-4.28-4.28-4.28h-.01Z"/></g><g id="File"><path class="cls-2" d="M27.19,42c-3.45,0-6.75-1.37-9.19-3.81-2.44-2.44-3.81-5.74-3.81-9.19s1.37-6.75,3.81-9.19,5.74-3.81,9.19-3.81,6.75,1.37,9.19,3.81c2.44,2.44,3.81,5.74,3.81,9.19s-1.37,6.75-3.81,9.19-5.74,3.81-9.19,3.81h0ZM27.19,16.78c-3.24,0-6.34,1.29-8.63,3.58s-3.58,5.39-3.58,8.63,1.29,6.34,3.58,8.63,5.39,3.58,8.63,3.58,6.34-1.29,8.63-3.58c2.29-2.29,3.58-5.39,3.58-8.63s-1.3-6.34-3.58-8.62c-2.29-2.29-5.39-3.57-8.63-3.57h0v-.02Z"/><path class="cls-2" d="M27.22,16.33v10.34c-.62,0-1.21.25-1.65.69-.44.44-.68,1.03-.68,1.65,0,.41.11.81.31,1.16l-8.91,5.14-.2-.37c-.99-1.84-1.5-3.89-1.5-5.97v-.29c.04-2.16.65-4.27,1.74-6.13,1.09-1.85,2.64-3.39,4.49-4.48,1.86-1.1,3.97-1.7,6.13-1.74,0,0,.27,0,.27,0Z"/><path class="cls-2" d="M39.86,28.99c0,2.18-.56,4.32-1.64,6.21-1.13,2-2.78,3.65-4.77,4.78-1.79,1.02-3.81,1.59-5.87,1.64-.2,0-.36-.16-.36-.36v-9.56c0-.2.16-.36.36-.39.48-.08.93-.31,1.28-.66.43-.44.68-1.03.68-1.64,0-.29-.05-.57-.16-.84-.07-.19-.02-.41.16-.52l8.32-4.81c.18-.1.4-.04.49.14.95,1.76,1.47,3.72,1.51,5.72v.3h0Z"/><path class="cls-2" d="M27.19,30.59c-.42,0-.83-.17-1.13-.47s-.47-.7-.47-1.13.17-.83.47-1.13.7-.47,1.13-.47.83.17,1.13.47.47.71.47,1.13-.17.83-.47,1.13-.7.47-1.13.47h0ZM27.19,28.2c-.21,0-.42.08-.57.24-.15.15-.24.36-.24.57s.09.42.24.57.35.24.57.24.42-.09.57-.24.24-.35.24-.57c0-.11-.02-.21-.06-.31-.04-.1-.1-.19-.17-.26s-.16-.13-.26-.17-.2-.06-.31-.06h-.01Z"/><path class="cls-4" d="M27.9,59.6c-.19,0-.34-.05-.43-.14s-.14-.24-.14-.43v-8.05c0-.2.05-.34.14-.43s.24-.14.43-.14.34.05.43.14.14.24.14.43v8.05c0,.19-.05.34-.14.43s-.24.14-.43.14Z"/><path class="cls-4" d="M33.59,59.6c-.77,0-1.38-.16-1.81-.47s-.7-.79-.81-1.45c-.02-.2.02-.35.12-.45s.24-.15.43-.15.33.05.41.14c.09.09.15.23.18.42.07.31.21.53.43.64.23.11.57.17,1.03.17h1.95c.58,0,.98-.1,1.19-.31.21-.21.32-.61.32-1.18s-.11-.98-.33-1.19c-.22-.22-.61-.33-1.18-.33h-1.68c-.85,0-1.49-.21-1.91-.62-.41-.42-.62-1.06-.62-1.91s.2-1.48.61-1.89,1.04-.62,1.9-.62h1.61c.72,0,1.28.15,1.69.44.41.29.67.74.78,1.35.03.19,0,.34-.11.45-.1.1-.25.15-.45.15-.18,0-.32-.05-.41-.14s-.15-.23-.18-.41c-.07-.27-.21-.45-.41-.54-.2-.1-.51-.15-.92-.15h-1.61c-.54,0-.91.1-1.09.29-.19.19-.28.55-.28,1.08s.09.9.28,1.1.56.3,1.1.3h1.68c.89,0,1.55.22,1.99.65.44.43.66,1.1.66,2.01s-.22,1.56-.65,1.99-1.1.64-1.99.64h-1.95.03Z"/><path class="cls-4" d="M43.41,59.6c-1.04,0-1.8-.25-2.3-.74-.49-.5-.74-1.26-.74-2.3v-3.13c0-1.04.25-1.81.75-2.3.5-.49,1.26-.74,2.29-.73h1.63c1.04,0,1.81.25,2.3.74.49.49.74,1.26.74,2.3v3.12c0,1.04-.25,1.8-.74,2.3-.49.49-1.26.74-2.3.74h-1.63ZM43.41,58.46h1.63c.48,0,.86-.06,1.14-.17.28-.12.47-.31.58-.59.12-.28.18-.66.18-1.14v-3.12c0-.48-.06-.86-.18-1.13-.11-.28-.31-.47-.58-.59s-.66-.18-1.14-.18h-1.63c-.48,0-.86.05-1.13.16s-.47.31-.59.58-.18.66-.18,1.14v3.13c0,.48.06.86.17,1.14.12.28.31.47.59.59.28.11.66.17,1.14.17h0Z"/></g></g></svg>',javaIcon:'<?xml version="1.0" encoding="UTF-8"?><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64"><defs><style>.cls-1{fill:none;}.cls-2{isolation:isolate;opacity:.15;}.cls-2,.cls-3{fill:#ff3e4c;}.cls-4{fill:#fff;}</style></defs><g id="Layer_2"><rect class="cls-1" width="64" height="64"/></g><g id="Layer_1"><g id="Document"><path class="cls-2" d="M42.52,13.11c-1.46,0-2.85-.58-3.88-1.61-1.03-1.03-1.61-2.42-1.61-3.88V0H12.5C10.6,0,8.78.75,7.44,2.1c-1.35,1.34-2.1,3.16-2.1,5.06v43.18c0,1.9.76,3.72,2.1,5.06,1.34,1.34,3.16,2.09,5.06,2.09h29.44c.94,0,1.87-.18,2.74-.54.87-.36,1.66-.89,2.32-1.55s1.19-1.45,1.55-2.32.55-1.8.55-2.74V13.1h-6.59.01Z"/><path class="cls-3" d="M49.11,13.11h-6.59c-1.46,0-2.85-.58-3.88-1.61-1.03-1.03-1.61-2.42-1.61-3.88V0s12.08,13.11,12.08,13.11Z"/><path class="cls-3" d="M54.36,45.5H21.04c-2.36,0-4.28,1.92-4.28,4.28v9.94c0,2.36,1.92,4.28,4.28,4.28h33.33c2.36,0,4.28-1.92,4.28-4.28v-9.94c0-2.36-1.92-4.28-4.28-4.28h-.01Z"/></g><g id="File"><path class="cls-3" d="M22.94,41.37c0,.34-.28.62-.62.62-1.44,0-2.58-.42-3.43-1.27s-1.28-1.98-1.28-3.42v-4.6c0-1.25-.35-2.05-1.05-2.41-.53-.27-1.05-.71-1.05-1.3s.52-1.03,1.05-1.3c.7-.36,1.05-1.17,1.05-2.41v-4.6c0-1.44.43-2.58,1.28-3.42s2-1.26,3.43-1.26c.34,0,.62.28.62.62v1.11c0,.23-.19.43-.43.43-1.69,0-2.54.96-2.54,2.87v4.71c-.02,1.67-.66,2.73-1.92,3.19-.03.01-.05.04-.05.07s.02.06.05.08c1.23.43,1.87,1.46,1.92,3.1v4.79c0,1.91.85,2.87,2.54,2.87.23,0,.43.19.43.43v1.12-.02Z"/><path class="cls-3" d="M32.07,42c-.35,0-.63-.28-.63-.63v-1.11c0-.23.19-.43.43-.43,1.69,0,2.54-.96,2.54-2.87v-4.79c.04-1.64.68-2.68,1.92-3.1.03-.01.05-.04.05-.08s-.02-.06-.05-.07c-1.25-.46-1.89-1.53-1.92-3.19v-4.71c0-1.91-.85-2.87-2.54-2.87-.23,0-.43-.19-.43-.43v-1.11c0-.35.28-.63.63-.63,1.44,0,2.58.42,3.43,1.26s1.28,1.98,1.28,3.42v4.6c0,1.25.35,2.05,1.05,2.41.53.27,1.05.71,1.05,1.3s-.52,1.03-1.05,1.3c-.7.36-1.05,1.17-1.05,2.41v4.6c0,1.44-.43,2.58-1.28,3.42s-2,1.26-3.43,1.27h0v.03Z"/><path class="cls-3" d="M26.97,22.84c1.03,0,1.87-.84,1.87-1.87s-.84-1.87-1.87-1.87-1.87.84-1.87,1.87.84,1.87,1.87,1.87Z"/><path class="cls-3" d="M26.97,30.87c1.03,0,1.87-.84,1.87-1.87s-.84-1.87-1.87-1.87-1.87.84-1.87,1.87.84,1.87,1.87,1.87Z"/><path class="cls-3" d="M26.97,38.89c1.03,0,1.87-.84,1.87-1.87s-.84-1.87-1.87-1.87-1.87.84-1.87,1.87.84,1.87,1.87,1.87Z"/><path class="cls-4" d="M23.77,59.59c-.84,0-1.49-.17-1.94-.52-.45-.35-.71-.9-.79-1.65-.02-.19.02-.34.12-.44s.24-.16.43-.16c.35,0,.54.19.58.57.05.41.2.69.44.84.24.14.63.22,1.16.22h1.12c.42,0,.75-.05.98-.14.24-.09.41-.26.5-.49s.14-.56.14-.99v-5.85c0-.38.19-.57.57-.57s.57.19.57.57v5.85c0,.95-.22,1.65-.67,2.1-.45.44-1.14.66-2.09.66,0,0-1.12,0-1.12,0Z"/><path class="cls-4" d="M29.97,59.54c-.36-.14-.47-.39-.32-.74l3.22-7.93c.14-.3.35-.45.64-.45h.03c.29,0,.49.16.6.45l3.28,7.93c.14.36.04.6-.31.74-.36.14-.6.04-.74-.31l-.73-1.77h-4.22l-.7,1.77c-.14.35-.38.46-.73.31h-.02ZM31.85,56.32h3.3l-1.69-4.1-1.62,4.1h.01Z"/><path class="cls-4" d="M41.91,59.59c-.23,0-.42-.15-.56-.45l-3.34-7.92c-.07-.16-.09-.3-.05-.42.03-.13.14-.23.31-.31.37-.19.63-.09.79.28l3.16,7.49h-.39l3.08-7.49c.15-.37.41-.46.79-.28.16.08.26.19.29.31.04.12.03.26-.03.42l-3.37,7.92c-.14.3-.34.45-.61.45h-.07Z"/><path class="cls-4" d="M46.87,59.54c-.36-.14-.47-.39-.32-.74l3.22-7.93c.14-.3.35-.45.64-.45h.03c.29,0,.49.16.6.45l3.28,7.93c.14.36.04.6-.31.74-.36.14-.6.04-.74-.31l-.73-1.77h-4.22l-.7,1.77c-.14.35-.38.46-.73.31h-.02ZM48.75,56.32h3.3l-1.69-4.1-1.62,4.1h0Z"/></g></g></svg>',jsonIcon:'<?xml version="1.0" encoding="UTF-8"?><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64"><defs><style>.cls-1{fill:none;}.cls-2,.cls-3{fill:#0072ff;}.cls-4{fill:#fff;}.cls-3{isolation:isolate;opacity:.15;}</style></defs><g id="Layer_2"><rect class="cls-1" width="64" height="64"/></g><g id="Layer_1"><g id="Document"><path class="cls-3" d="M42.52,13.11c-1.46,0-2.85-.58-3.88-1.61-1.03-1.03-1.61-2.42-1.61-3.88V0H12.5C10.6,0,8.78.75,7.44,2.1c-1.35,1.34-2.1,3.16-2.1,5.06v43.18c0,1.9.76,3.72,2.1,5.06,1.34,1.34,3.16,2.09,5.06,2.09h29.44c.94,0,1.87-.18,2.74-.54.87-.36,1.66-.89,2.32-1.55s1.19-1.45,1.55-2.32.55-1.8.55-2.74V13.1h-6.59.01Z"/><path class="cls-2" d="M49.11,13.11h-6.59c-1.46,0-2.85-.58-3.88-1.61-1.03-1.03-1.61-2.42-1.61-3.88V0s12.08,13.11,12.08,13.11Z"/><path class="cls-2" d="M54.36,45.5H21.04c-2.36,0-4.28,1.92-4.28,4.28v9.94c0,2.36,1.92,4.28,4.28,4.28h33.33c2.36,0,4.28-1.92,4.28-4.28v-9.94c0-2.36-1.92-4.28-4.28-4.28h-.01Z"/></g><g id="File"><path class="cls-2" d="M16.91,34.35v-2.42c0-.94-.41-1.41-1.33-1.57-.23-.04-.46-.1-.66-.2-.49-.24-.74-.65-.73-1.2,0-.55.27-.93.77-1.15.21-.09.44-.15.67-.19.86-.16,1.28-.64,1.28-1.51v-4.6c0-.74.12-1.45.43-2.12.62-1.32,1.7-2.07,3.07-2.44.6-.16,1.2-.22,1.82-.2.65.02,1.26.49,1.43,1.08.24.86-.38,1.75-1.29,1.86-.34.04-.68.04-1.02.11-.78.17-1.2.68-1.21,1.48-.02,1.54,0,3.08-.01,4.62,0,.19,0,.38-.02.56-.14,1.11-.64,1.96-1.73,2.38-.05.02-.1.1-.1.15,0,.06.05.14.11.16,1.07.41,1.56,1.25,1.71,2.33.03.21.03.42.03.64v4.29c0,.18,0,.36.03.54.14.79.68,1.24,1.54,1.31.27.02.54.02.81.07.78.17,1.26.82,1.19,1.61-.06.67-.71,1.27-1.44,1.3-1.42.04-2.74-.27-3.85-1.21-.91-.78-1.4-1.8-1.47-2.99-.05-.89,0-1.79,0-2.69h-.03Z"/><path class="cls-2" d="M37.46,23.64v2.44c0,.92.4,1.38,1.31,1.55.25.05.51.11.73.23.89.46.93,1.72.07,2.23-.23.14-.52.19-.78.27-.18.06-.38.09-.55.17-.47.21-.72.59-.76,1.1-.02.2,0,.4,0,.6v4.27c0,1.03-.24,1.99-.86,2.83-.66.9-1.56,1.42-2.62,1.71-.63.17-1.27.24-1.91.2-.95-.06-1.61-.98-1.36-1.87.16-.57.75-1.03,1.38-1.08.32-.03.65-.04.96-.11.75-.17,1.17-.68,1.18-1.44.02-1.22,0-2.44.01-3.65,0-.53-.03-1.07.03-1.6.11-1.09.66-1.89,1.7-2.32.05-.02.11-.1.12-.16,0-.05-.04-.14-.08-.16-1.26-.52-1.76-1.52-1.76-2.81v-4.45c0-.24,0-.48-.07-.71-.16-.66-.63-.99-1.27-1.1-.28-.05-.58-.05-.87-.08-.78-.08-1.38-.72-1.38-1.46s.6-1.43,1.39-1.47c1.42-.07,2.74.24,3.86,1.17.94.78,1.45,1.81,1.52,3.02.05.89,0,1.79,0,2.69h.03-.01Z"/><path class="cls-2" d="M26.92,36.21c-.06-.02-.11-.03-.16-.04-.72-.14-1.14-.56-1.26-1.28-.16-.94.41-1.83,1.29-2.02,1.21-.25,2.17.57,2.15,1.84-.01.6-.2,1.14-.51,1.64-.45.74-.92,1.46-1.38,2.19-.25.4-.6.54-.98.44-.35-.1-.54-.41-.44-.76.06-.19.15-.37.26-.53.3-.45.61-.88.92-1.32.04-.05.07-.11.11-.17h0Z"/><path class="cls-2" d="M27.19,23.68c.99,0,1.73.75,1.73,1.74s-.75,1.72-1.73,1.72-1.74-.75-1.73-1.74c0-.99.75-1.73,1.74-1.73h-.01Z"/><g id="b"><path class="cls-4" d="M46.68,52.86v5.97c0,.29-.13.49-.38.59s-.53.04-.71-.15c-.1-.11-.15-.23-.15-.38v-7.62c0-.39.25-.67.63-.72.19-.02.35.04.5.14.18.13.32.3.45.49,1.28,1.96,2.56,3.91,3.83,5.87.04.06.07.11.17.07v-5.93c0-.18.03-.35.18-.49.34-.31.93-.17,1.05.25.02.07.02.14.02.21v7.54c0,.31-.12.53-.39.67-.28.14-.56.1-.79-.1-.15-.13-.28-.28-.38-.45-1.16-1.77-2.32-3.54-3.47-5.31-.13-.21-.27-.41-.4-.62-.02-.04-.07-.05-.11-.08l-.03.03h0l-.02.02Z"/><path class="cls-4" d="M36.47,55v-1.31c.02-1.62,1.13-2.93,2.73-3.21.91-.16,1.79-.09,2.61.35,1.04.56,1.6,1.44,1.7,2.61.03.35.02.71.02,1.07v1.8c-.02.89-.32,1.68-.96,2.31-.55.55-1.23.84-2,.94-.68.09-1.35.05-1.99-.21-1.24-.49-1.95-1.41-2.08-2.74-.05-.53,0-1.07,0-1.61h-.03ZM37.73,54.99h0v1.18c0,.13,0,.27.02.4.1.76.48,1.31,1.17,1.65.45.22.93.25,1.42.2.47-.05.9-.21,1.26-.53.48-.42.7-.97.71-1.6v-2.39c0-.15,0-.3-.02-.46-.07-.68-.39-1.21-.98-1.57-.51-.31-1.08-.37-1.66-.31-1.16.12-1.91.96-1.93,2.12v1.29h0v.02Z"/><path class="cls-4" d="M31.66,59.6c-.72,0-1.49-.18-2.19-.65-.35-.23-.62-.53-.86-.88-.13-.19-.21-.4-.2-.64.02-.22.12-.38.33-.47.2-.09.4-.07.57.08.1.09.19.2.27.31.29.4.63.74,1.1.92.42.16.86.18,1.31.15.39-.03.76-.13,1.09-.34.37-.23.61-.56.64-1,.02-.3-.07-.57-.29-.78-.21-.21-.45-.37-.73-.46-.51-.18-1.02-.34-1.54-.51-.47-.16-.94-.31-1.38-.54-.3-.16-.55-.38-.77-.64-.27-.32-.39-.7-.41-1.12-.04-1.04.53-1.9,1.54-2.34.53-.23,1.08-.3,1.65-.28.64.02,1.25.19,1.81.51.38.23.69.53.93.9.13.2.21.42.17.67-.08.49-.66.56-.9.33-.11-.11-.21-.23-.3-.35-.29-.39-.64-.69-1.11-.82-.55-.15-1.1-.15-1.64.04-.43.15-.75.42-.87.88-.1.4,0,.75.31,1.04.29.26.65.41,1.02.53.6.2,1.21.38,1.81.58.39.13.76.3,1.1.55,1.09.8.98,2.12.53,2.87-.36.61-.91.98-1.56,1.22-.43.16-.88.22-1.44.23h.01Z"/><path class="cls-4" d="M26.95,53.88c0,.9.01,1.8,0,2.71,0,.55-.13,1.08-.39,1.58-.4.74-1.03,1.17-1.84,1.34-.31.06-.63.09-.94.1-.38,0-.65-.29-.61-.66.03-.24.24-.44.53-.48.23-.04.46-.05.68-.11.76-.2,1.18-.71,1.3-1.47.03-.22.04-.44.04-.66v-5.04c0-.32.15-.53.43-.61.36-.1.72.08.79.41.02.07.02.15.02.22v2.68h-.01Z"/></g></g></g></svg>',jpgIcon:'<?xml version="1.0" encoding="UTF-8"?><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64"><defs><style>.cls-1{fill:none;}.cls-2,.cls-3,.cls-4{fill:#00c650;}.cls-3{fill-rule:evenodd;}.cls-5{fill:#fff;}.cls-4{isolation:isolate;opacity:.15;}</style></defs><g id="Layer_2"><rect class="cls-1" width="64" height="64"/></g><g id="Layer_1"><g id="Document"><path class="cls-4" d="M42.52,13.11c-1.46,0-2.85-.58-3.88-1.61-1.03-1.03-1.61-2.42-1.61-3.88V0H12.5C10.6,0,8.78.75,7.44,2.1c-1.35,1.34-2.1,3.16-2.1,5.06v43.18c0,1.9.76,3.72,2.1,5.06,1.34,1.34,3.16,2.09,5.06,2.09h29.44c.94,0,1.87-.18,2.74-.54.87-.36,1.66-.89,2.32-1.55s1.19-1.45,1.55-2.32.55-1.8.55-2.74V13.1h-6.59.01Z"/><path class="cls-2" d="M49.11,13.11h-6.59c-1.46,0-2.85-.58-3.88-1.61-1.03-1.03-1.61-2.42-1.61-3.88V0s12.08,13.11,12.08,13.11Z"/><path class="cls-2" d="M54.36,45.5H21.04c-2.36,0-4.28,1.92-4.28,4.28v9.94c0,2.36,1.92,4.28,4.28,4.28h33.33c2.36,0,4.28-1.92,4.28-4.28v-9.94c0-2.36-1.92-4.28-4.28-4.28h-.01Z"/></g><g id="File"><path class="cls-3" d="M19.72,42h14.96c1.46,0,2.87-.58,3.9-1.62,1.03-1.04,1.62-2.44,1.62-3.9v-14.96c0-1.46-.58-2.87-1.62-3.9-1.03-1.04-2.44-1.62-3.9-1.62h-14.96c-1.46,0-2.87.58-3.9,1.62-1.04,1.04-1.62,2.44-1.62,3.9v14.96c0,1.46.58,2.87,1.62,3.9,1.04,1.04,2.44,1.62,3.9,1.62h0ZM17.54,19.34c.58-.58,1.36-.9,2.18-.9h14.96c.82,0,1.6.33,2.18.9.58.58.9,1.36.9,2.18v11.95c0,.27-.16.52-.43.57-.92.17-2.23-.11-3.4-.36-.47-.1-.92-.2-1.31-.26-.32-.05-.6-.02-.84.06-.61.2-1.77.18-2.01-.42l-.77-1.95c-.18-.45-.75-.57-1.1-.24l-1.7,1.62c-.19.18-.47.24-.72.14-3.17-1.19-5.92-1.4-8.07-1.23-.41.03-.77-.28-.77-.69v-9.2c0-.82.33-1.6.9-2.18h0Z"/><path class="cls-2" d="M33.73,24.58c.92,0,1.66-.74,1.66-1.66s-.74-1.66-1.66-1.66-1.66.74-1.66,1.66.74,1.66,1.66,1.66h0Z"/><path class="cls-5" d="M28.03,59.6c-.85,0-1.49-.17-1.95-.52-.45-.35-.71-.9-.79-1.65-.02-.19.02-.34.12-.44s.24-.16.43-.16c.35,0,.54.19.58.57.05.41.2.69.44.84.24.14.63.22,1.16.22h1.13c.42,0,.75-.05.98-.14.24-.09.41-.26.5-.5s.14-.57.14-.99v-5.86c0-.38.19-.57.57-.57s.57.19.57.57v5.86c0,.95-.22,1.66-.67,2.1s-1.15.66-2.1.66h-1.13.02Z"/><path class="cls-5" d="M35.25,59.6c-.38,0-.57-.19-.57-.57v-8.06c0-.38.19-.57.57-.57h3.18c.83,0,1.46.22,1.9.66.44.44.66,1.07.66,1.9v.41c0,.83-.22,1.46-.66,1.91s-1.07.66-1.9.66h-2.61v3.09c0,.38-.19.57-.57.57ZM35.82,54.8h2.61c.52,0,.88-.11,1.1-.33s.33-.58.33-1.1v-.41c0-.51-.11-.88-.33-1.09-.22-.22-.58-.33-1.1-.33h-2.61v3.26Z"/><path class="cls-5" d="M45.73,59.6c-1.04,0-1.8-.25-2.3-.74-.49-.5-.74-1.26-.74-2.3v-3.12c0-1.04.25-1.81.74-2.31s1.25-.74,2.29-.73h1.64c.85,0,1.5.18,1.95.53s.71.9.78,1.66c.03.19,0,.33-.11.43s-.24.15-.43.15c-.34,0-.54-.19-.6-.57-.05-.42-.19-.7-.43-.84s-.62-.22-1.15-.22h-1.64c-.48,0-.86.05-1.13.16s-.47.31-.58.59-.17.66-.17,1.15v3.12c0,.48.06.86.17,1.14.12.28.31.47.59.59.28.11.66.17,1.14.17h1.63c.42,0,.75-.05.98-.14.24-.09.41-.26.5-.5s.14-.57.14-1v-.64h-1.06c-.38,0-.57-.2-.57-.58s.19-.57.57-.57h1.63c.38,0,.57.2.57.58v1.21c0,.96-.22,1.67-.67,2.11-.45.44-1.15.66-2.1.66h-1.64Z"/></g></g></svg>',keyIcon:'<?xml version="1.0" encoding="UTF-8"?><svg id="a" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64"><g id="b"><rect width="64" height="64" style="fill:none;"/></g><g id="c"><g id="d"><path d="M42.52,13.11c-1.46,0-2.85-.58-3.88-1.61-1.03-1.03-1.61-2.42-1.61-3.88V0H12.5c-1.9,0-3.72.75-5.06,2.1-1.35,1.34-2.1,3.16-2.1,5.06v43.18c0,1.9.76,3.72,2.1,5.06s3.16,2.09,5.06,2.09h29.44c.94,0,1.87-.18,2.74-.54.87-.36,1.66-.89,2.32-1.55s1.19-1.45,1.55-2.32.55-1.8.55-2.74V13.1h-6.59,0Z" style="fill:#ff3e4c; isolation:isolate; opacity:.15;"/><path d="M49.11,13.11h-6.59c-1.46,0-2.85-.58-3.88-1.61-1.03-1.03-1.61-2.42-1.61-3.88V0l12.08,13.11Z" style="fill:#ff3e4c;"/><path d="M54.36,45.5H21.04c-2.36,0-4.28,1.92-4.28,4.28v9.94c0,2.36,1.92,4.28,4.28,4.28h33.33c2.36,0,4.28-1.92,4.28-4.28v-9.94c0-2.36-1.92-4.28-4.28-4.28h-.01Z" style="fill:#ff3e4c;"/></g><g id="e"><path d="M24,22.84h-9.03c-.21,0-.4-.08-.55-.23s-.23-.34-.23-.55.08-.4.23-.55.34-.23.55-.23h9.02c.21,0,.4.08.55.23s.23.34.23.55-.08.4-.22.54c-.14.14-.34.23-.54.23h-.01Z" style="fill:#ff3e4c;"/><path d="M24,27.46h-9.03c-.21,0-.4-.08-.55-.23s-.23-.34-.23-.55.08-.4.23-.55.34-.23.55-.23h9.02c.21,0,.4.08.55.23s.23.34.23.55-.08.4-.22.54c-.14.14-.34.23-.54.23h-.01Z" style="fill:#ff3e4c;"/><path d="M24,32.09h-9.03c-.21,0-.4-.08-.55-.23-.15-.15-.23-.34-.23-.55s.08-.4.23-.54c.15-.14.34-.22.55-.22h9.02c.21,0,.4.08.55.23s.23.34.23.55-.08.4-.23.54c-.14.14-.34.23-.54.23h0Z" style="fill:#ff3e4c;"/><path d="M24,36.71h-9.03c-.21,0-.4-.08-.55-.23-.15-.15-.23-.34-.23-.55s.08-.4.23-.55.34-.23.55-.23h9.02c.21,0,.4.08.55.23s.23.34.23.55-.08.4-.22.55c-.14.15-.34.23-.54.23h-.01Z" style="fill:#ff3e4c;"/><path d="M33.42,29.92c-.34,0-.62-.28-.62-.62v-5.6c0-.36-.3-.64-.65-.59-1.43.22-2.75.91-3.75,1.96-1.15,1.22-1.8,2.83-1.8,4.5,0,.86.17,1.71.5,2.5s.81,1.52,1.42,2.12c.61.61,1.33,1.09,2.12,1.42.79.33,1.65.5,2.5.5,1.68,0,3.29-.64,4.5-1.8,1.06-1,1.74-2.33,1.96-3.76.05-.35-.23-.65-.59-.65h-5.61s.02.02.02.02Z" style="fill:#ff3e4c;"/><path d="M34.7,22.59c-.35-.05-.65.23-.65.59v4.93c0,.34.28.62.62.62h4.93c.35,0,.64-.3.59-.65-.21-1.37-.85-2.65-1.84-3.64s-2.27-1.63-3.64-1.84h0Z" style="fill:#ff3e4c;"/></g></g><path d="M40.6,58.91c0,.32-.24.65-.67.65h-4.85c-.37,0-.67-.3-.67-.65v-7.84c0-.35.3-.65.67-.65h4.69c.44,0,.67.32.67.65,0,.31-.23.65-.67.65h-4.02v2.57h1.71c.44,0,.67.32.67.65,0,.31-.23.65-.67.65h-1.71v2.67h4.18c.44,0,.67.33.67.65Z" style="fill:#fff;"/><path d="M32.54,58.59c.1.14.15.27.15.39,0,.35-.33.67-.7.67-.21,0-.38-.09-.52-.28l-2.84-3.76-1.21,1.42v1.95c0,.43-.34.65-.67.65s-.67-.23-.67-.65v-7.93c0-.43.33-.65.67-.65.32,0,.67.22.67.65v3.93l3.66-4.34c.14-.17.32-.26.52-.26.37,0,.68.3.68.65,0,.15-.06.31-.17.43l-2.61,3.1s3.04,4.03,3.04,4.03Z" style="fill:#fff;"/><path d="M47.98,51.02c0,.09-.03.19-.09.31h0l-2.5,4.78v2.88c0,.42-.34.65-.67.65s-.67-.23-.67-.65v-2.88l-2.36-4.79c-.06-.12-.06-.22-.06-.3,0-.39.36-.63.69-.63.25,0,.47.13.59.36l1.83,3.73,1.96-3.74c.12-.23.32-.35.58-.35.34,0,.7.25.7.63Z" style="fill:#fff;"/></svg>',mdIcon:'<?xml version="1.0" encoding="UTF-8"?><svg id="a" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64"><g id="b"><rect width="64" height="64" style="fill:none;"/></g><g id="c"><g id="d"><path d="M42.52,13.11c-1.46,0-2.85-.58-3.88-1.61-1.03-1.03-1.61-2.42-1.61-3.88V0H12.5c-1.9,0-3.72.75-5.06,2.1-1.35,1.34-2.1,3.16-2.1,5.06v43.18c0,1.9.76,3.72,2.1,5.06s3.16,2.09,5.06,2.09h29.44c.94,0,1.87-.18,2.74-.54.87-.36,1.66-.89,2.32-1.55s1.19-1.45,1.55-2.32.55-1.8.55-2.74V13.1h-6.59,0Z" style="fill:#0072ff; isolation:isolate; opacity:.15;"/><path d="M49.11,13.11h-6.59c-1.46,0-2.85-.58-3.88-1.61-1.03-1.03-1.61-2.42-1.61-3.88V0l12.08,13.11Z" style="fill:#0072ff;"/><path d="M54.36,45.5H21.04c-2.36,0-4.28,1.92-4.28,4.28v9.94c0,2.36,1.92,4.28,4.28,4.28h33.33c2.36,0,4.28-1.92,4.28-4.28v-9.94c0-2.36-1.92-4.28-4.28-4.28h-.01Z" style="fill:#0072ff;"/></g><g id="e"><path d="M39.32,22H15.07c-.23,0-.46-.09-.62-.26-.16-.16-.26-.39-.26-.62s.09-.46.26-.62.39-.26.62-.26h24.24c.23,0,.46.09.62.26s.26.39.26.62-.09.46-.26.62c-.16.16-.39.26-.62.26h.01Z" style="fill:#0072ff;"/><path d="M39.32,27.25H15.07c-.23,0-.46-.09-.62-.26-.16-.16-.26-.39-.26-.62s.09-.46.26-.62c.16-.17.39-.26.62-.26h24.24c.23,0,.46.09.62.26s.26.39.26.62-.09.46-.26.62c-.16.16-.39.26-.62.26h.01Z" style="fill:#0072ff;"/><path d="M39.32,32.51H15.07c-.23,0-.46-.09-.62-.26s-.26-.39-.26-.62.09-.46.26-.62c.16-.16.39-.26.62-.26h24.24c.23,0,.46.09.62.26.16.16.26.39.26.62s-.09.46-.26.62c-.16.17-.39.26-.62.26h.01Z" style="fill:#0072ff;"/><path d="M39.32,37.76H15.07c-.23,0-.46-.09-.62-.26-.16-.16-.26-.39-.26-.62s.09-.46.26-.62.39-.26.62-.26h24.24c.23,0,.46.09.62.26s.26.39.26.62-.09.46-.26.62c-.16.16-.39.26-.62.26h.01Z" style="fill:#0072ff;"/><path d="M29.25,59.6c-.38,0-.57-.19-.57-.57v-8.06c0-.38.19-.57.57-.57.25,0,.46.12.62.37l3.2,4.82-.24.04,3.23-4.86c.15-.24.38-.37.69-.37s.46.19.46.57v8.06c0,.38-.19.57-.57.57s-.57-.19-.57-.57v-6.92l.35.12-2.85,4.19c-.17.24-.4.37-.69.37-.2,0-.39-.12-.56-.37l-2.85-4.19.34.09v6.7c0,.38-.19.57-.57.57h.01Z" style="fill:#fff;"/><path d="M40.01,59.6c-.38,0-.57-.19-.57-.57v-8.06c0-.38.19-.57.57-.57h3.27c1.18,0,2.05.28,2.61.84.56.56.84,1.42.84,2.61v2.31c0,1.18-.28,2.05-.83,2.61s-1.42.83-2.61.83c0,0-3.28,0-3.28,0ZM40.58,58.46h2.7c.58,0,1.04-.07,1.37-.21.34-.14.58-.38.72-.72s.22-.8.22-1.38v-2.31c0-.57-.07-1.03-.22-1.36-.14-.34-.38-.58-.72-.73-.33-.14-.79-.22-1.37-.22h-2.7v6.92h0Z" style="fill:#fff;"/></g></g></svg>',mdbIcon:'<?xml version="1.0" encoding="UTF-8"?><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64"><defs><style>.cls-1{fill:none;}.cls-2,.cls-3{fill:#a140ff;}.cls-4{fill:#fff;}.cls-3{isolation:isolate;opacity:.15;}</style></defs><g id="Layer_2"><rect class="cls-1" width="64" height="64"/></g><g id="Layer_1"><g id="Document"><path class="cls-3" d="M42.52,13.11c-1.46,0-2.85-.58-3.88-1.61-1.03-1.03-1.61-2.42-1.61-3.88V0H12.5C10.6,0,8.78.75,7.44,2.1c-1.35,1.34-2.1,3.16-2.1,5.06v43.18c0,1.9.76,3.72,2.1,5.06,1.34,1.34,3.16,2.09,5.06,2.09h29.44c.94,0,1.87-.18,2.74-.54.87-.36,1.66-.89,2.32-1.55s1.19-1.45,1.55-2.32.55-1.8.55-2.74V13.1h-6.59.01Z"/><path class="cls-2" d="M49.11,13.11h-6.59c-1.46,0-2.85-.58-3.88-1.61-1.03-1.03-1.61-2.42-1.61-3.88V0s12.08,13.11,12.08,13.11Z"/><path class="cls-2" d="M54.36,45.5H21.04c-2.36,0-4.28,1.92-4.28,4.28v9.94c0,2.36,1.92,4.28,4.28,4.28h33.33c2.36,0,4.28-1.92,4.28-4.28v-9.94c0-2.36-1.92-4.28-4.28-4.28h-.01Z"/></g><g id="File"><path class="cls-2" d="M27.19,16c-.79,0-1.57.15-2.29.46-.73.3-1.39.74-1.94,1.3-.56.56-1,1.22-1.3,1.94-.3.73-.46,1.51-.45,2.29,0,1.22.37,2.41,1.07,3.41.52.75,1.21,1.37,2.01,1.82.47.26.82.74.82,1.28v.56c0,.29.12.58.32.78s.32.49.32.78v1.26c0,.22-.12.42-.31.53-.19.11-.31.31-.31.53v.83c0,.22.12.42.31.53.19.11.31.31.31.53v.26c0,.26-.14.5-.36.63-.23.13-.36.37-.36.63v.42c0,.26.14.5.36.63s.36.37.36.63v.63c0,.24-.13.46-.34.58s-.34.34-.34.58v.22c0,.32.15.63.4.83l1.03.82c.23.18.51.28.8.28h.79c.44,0,.85-.22,1.09-.59l.27-.41c.14-.21.21-.46.21-.71v-12.02c0-.51.3-.96.73-1.23.73-.46,1.35-1.08,1.82-1.81.62-.97.95-2.09.95-3.24,0-1.59-.63-3.11-1.76-4.23-1.12-1.12-2.65-1.75-4.24-1.75h0l.03.02ZM27.34,20.86h0c-.4,0-.78-.16-1.07-.44-.28-.28-.44-.67-.44-1.07s.16-.79.45-1.07c.28-.28.67-.44,1.07-.44.2,0,.4.04.58.11.18.08.35.19.49.33s.25.31.33.49.12.38.12.58c0,.4-.16.78-.45,1.06-.28.28-.66.44-1.06.44h-.02Z"/><path class="cls-4" d="M24.28,59.6c-.38,0-.57-.19-.57-.57v-8.06c0-.38.19-.57.57-.57.25,0,.46.12.62.37l3.2,4.82-.24.04,3.23-4.86c.15-.24.38-.37.69-.37s.46.19.46.57v8.06c0,.38-.19.57-.57.57s-.57-.19-.57-.57v-6.92l.35.12-2.85,4.19c-.17.24-.4.37-.69.37-.2,0-.39-.12-.56-.37l-2.85-4.19.34.09v6.7c0,.38-.19.57-.57.57h0Z"/><path class="cls-4" d="M35.64,59.6c-.38,0-.57-.19-.57-.57v-8.06c0-.38.19-.57.57-.57h3.27c1.18,0,2.05.28,2.61.84s.84,1.42.84,2.61v2.31c0,1.18-.28,2.05-.83,2.61-.55.56-1.42.83-2.61.83h-3.28ZM36.2,58.46h2.7c.58,0,1.04-.07,1.37-.21.34-.14.58-.38.72-.72s.22-.8.22-1.38v-2.31c0-.57-.07-1.03-.22-1.36-.14-.34-.38-.58-.72-.73-.33-.14-.79-.22-1.37-.22h-2.7v6.92h0Z"/><path class="cls-4" d="M45.41,59.6c-.38,0-.57-.19-.57-.57v-8.06c0-.38.19-.57.57-.57h3.54c.72,0,1.27.19,1.66.57s.58.92.58,1.63v.37c0,.61-.19,1.08-.58,1.42.72.4,1.08,1.14,1.08,2.21v.46c0,.83-.22,1.47-.66,1.9s-1.07.65-1.9.65h-3.72ZM45.98,58.46h3.15c.51,0,.88-.11,1.09-.33s.33-.58.33-1.09v-.46c0-.5-.11-.86-.32-1.07-.21-.22-.58-.33-1.11-.33h-3.15v3.27h0ZM45.98,54.05h3.22c.33,0,.55-.1.67-.31.12-.2.18-.46.18-.78v-.37c0-.39-.08-.67-.24-.82-.16-.16-.45-.24-.85-.24h-2.97v2.51h0Z"/></g></g></svg>',midIcon:'<?xml version="1.0" encoding="UTF-8"?><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64"><defs><style>.cls-1{fill:none;}.cls-2{fill:#fff;}.cls-3{isolation:isolate;opacity:.15;}.cls-3,.cls-4{fill:#005fad;}</style></defs><g id="Layer_2"><rect class="cls-1" width="64" height="64"/></g><g id="Layer_1"><g id="Document"><path class="cls-3" d="M42.52,13.11c-1.46,0-2.85-.58-3.88-1.61-1.03-1.03-1.61-2.42-1.61-3.88V0H12.5C10.6,0,8.78.75,7.44,2.1c-1.35,1.34-2.1,3.16-2.1,5.06v43.18c0,1.9.76,3.72,2.1,5.06,1.34,1.34,3.16,2.09,5.06,2.09h29.44c.94,0,1.87-.18,2.74-.54.87-.36,1.66-.89,2.32-1.55s1.19-1.45,1.55-2.32.55-1.8.55-2.74V13.1h-6.59.01Z"/><path class="cls-4" d="M49.11,13.11h-6.59c-1.46,0-2.85-.58-3.88-1.61-1.03-1.03-1.61-2.42-1.61-3.88V0s12.08,13.11,12.08,13.11Z"/><path class="cls-4" d="M54.36,45.5H21.04c-2.36,0-4.28,1.92-4.28,4.28v9.94c0,2.36,1.92,4.28,4.28,4.28h33.33c2.36,0,4.28-1.92,4.28-4.28v-9.94c0-2.36-1.92-4.28-4.28-4.28h-.01Z"/></g><g id="File"><path class="cls-4" d="M40.19,37.18h-3.74v-15.14c0-.51-.2-.99-.56-1.35-.36-.36-.84-.56-1.35-.56h-9.58c-.51,0-.99.2-1.35.56-.36.36-.56.84-.56,1.35v15.14h-3.76v-16.41c0-1.16.46-2.28,1.29-3.1.82-.82,1.94-1.28,3.1-1.28h12.11c1.16,0,2.28.46,3.1,1.28s1.28,1.94,1.28,3.1l.03,16.41h0Z"/><path class="cls-4" d="M35.75,41.62c2.45,0,4.44-1.99,4.44-4.44s-1.99-4.44-4.44-4.44-4.44,1.99-4.44,4.44,1.99,4.44,4.44,4.44Z"/><path class="cls-4" d="M18.63,41.62c2.45,0,4.44-1.99,4.44-4.44s-1.99-4.44-4.44-4.44-4.44,1.99-4.44,4.44,1.99,4.44,4.44,4.44Z"/><path class="cls-2" d="M26.97,59.61c-.38,0-.57-.19-.57-.57v-8.06c0-.38.19-.57.57-.57.25,0,.46.12.62.37l3.2,4.82-.24.04,3.23-4.86c.15-.24.38-.37.69-.37s.46.19.46.57v8.06c0,.38-.19.57-.57.57s-.57-.19-.57-.57v-6.92l.35.12-2.85,4.19c-.17.24-.4.37-.69.37-.2,0-.39-.12-.56-.37l-2.85-4.19.34.09v6.7c0,.38-.19.57-.57.57h0Z"/><path class="cls-2" d="M38.34,59.61c-.19,0-.34-.05-.43-.14s-.14-.24-.14-.43v-8.05c0-.2.05-.34.14-.43s.24-.14.43-.14.34.05.43.14.14.24.14.43v8.05c0,.19-.05.34-.14.43s-.24.14-.43.14h0Z"/><path class="cls-2" d="M42.3,59.61c-.38,0-.57-.19-.57-.57v-8.06c0-.38.19-.57.57-.57h3.27c1.18,0,2.05.28,2.61.84s.84,1.42.84,2.61v2.31c0,1.18-.28,2.05-.83,2.61-.55.56-1.42.83-2.61.83h-3.28ZM42.86,58.47h2.7c.58,0,1.04-.07,1.37-.21.34-.14.58-.38.72-.72s.22-.8.22-1.38v-2.31c0-.57-.07-1.03-.22-1.36-.14-.34-.38-.58-.72-.73-.33-.14-.79-.22-1.37-.22h-2.7v6.92h0Z"/></g></g></svg>',movIcon:'<?xml version="1.0" encoding="UTF-8"?><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64"><defs><style>.cls-1{fill:none;}.cls-2,.cls-3{fill:#0072ff;}.cls-4{fill:#fff;}.cls-3{isolation:isolate;opacity:.15;}</style></defs><g id="Layer_2"><rect class="cls-1" width="64" height="64"/></g><g id="Layer_1"><g id="Document"><path class="cls-3" d="M42.52,13.11c-1.46,0-2.85-.58-3.88-1.61-1.03-1.03-1.61-2.42-1.61-3.88V0H12.5C10.6,0,8.78.75,7.44,2.1c-1.35,1.34-2.1,3.16-2.1,5.06v43.18c0,1.9.76,3.72,2.1,5.06,1.34,1.34,3.16,2.09,5.06,2.09h29.44c.94,0,1.87-.18,2.74-.54.87-.36,1.66-.89,2.32-1.55s1.19-1.45,1.55-2.32.55-1.8.55-2.74V13.1h-6.59.01Z"/><path class="cls-2" d="M49.11,13.11h-6.59c-1.46,0-2.85-.58-3.88-1.61-1.03-1.03-1.61-2.42-1.61-3.88V0s12.08,13.11,12.08,13.11Z"/><path class="cls-2" d="M54.36,45.5H21.04c-2.36,0-4.28,1.92-4.28,4.28v9.94c0,2.36,1.92,4.28,4.28,4.28h33.33c2.36,0,4.28-1.92,4.28-4.28v-9.94c0-2.36-1.92-4.28-4.28-4.28h-.01Z"/></g><g id="File"><path class="cls-2" d="M25.95,17.24c-3.12,0-6.11,1.24-8.32,3.45s-3.45,5.2-3.45,8.32,1.24,6.11,3.45,8.32,5.2,3.44,8.32,3.44,6.11-1.24,8.32-3.45,3.44-5.2,3.44-8.32-1.24-6.11-3.45-8.31c-2.2-2.2-5.19-3.44-8.31-3.45h0ZM25.95,19.53c.62,0,1.22.25,1.66.69s.69,1.04.69,1.66-.25,1.22-.69,1.66-1.04.69-1.66.69-1.22-.25-1.66-.69-.69-1.04-.69-1.66.25-1.22.69-1.66,1.04-.69,1.66-.69ZM17.75,24.26c.31-.54.83-.93,1.43-1.1.6-.16,1.24-.08,1.78.23.27.15.5.36.69.6s.33.52.41.82.1.61.06.92-.14.6-.29.87c-.31.54-.83.93-1.43,1.1s-1.25.08-1.79-.24c-.54-.31-.93-.83-1.1-1.43-.16-.6-.08-1.24.24-1.78h0ZM20.96,34.6c-.27.15-.56.25-.87.29s-.62.02-.92-.06-.58-.22-.82-.41-.45-.42-.6-.69c-.31-.54-.4-1.18-.24-1.78s.56-1.12,1.1-1.43,1.18-.4,1.79-.24,1.12.56,1.43,1.1.4,1.18.23,1.79-.56,1.12-1.1,1.43ZM25.95,38.47c-.62,0-1.22-.25-1.66-.69s-.69-1.04-.69-1.66.25-1.22.69-1.66,1.04-.69,1.66-.69c.31,0,.62.06.9.18.29.12.55.29.76.51.22.22.39.48.51.76.12.29.18.59.18.9,0,.62-.25,1.22-.69,1.66s-1.04.69-1.66.69h0ZM34.16,33.74c-.15.27-.36.5-.6.69s-.52.33-.82.41c-.3.08-.61.1-.92.06-.31-.04-.6-.14-.87-.3-.54-.31-.93-.83-1.1-1.43-.16-.6-.08-1.25.24-1.79.31-.54.83-.93,1.43-1.1s1.24-.08,1.78.23c.27.15.5.36.69.6.19.25.33.53.41.82.08.29.1.61.06.92-.04.31-.14.6-.3.87h0v.02ZM33.3,27.47c-.54.31-1.18.4-1.78.23s-1.12-.56-1.43-1.1-.4-1.18-.24-1.78.56-1.12,1.1-1.43,1.18-.4,1.78-.23c.6.16,1.12.56,1.43,1.1.15.27.26.56.3.87.04.31.02.62-.06.92s-.22.58-.41.82c-.19.25-.42.45-.69.6h0Z"/><path class="cls-2" d="M37.02,38.33c-.16,0-.32-.02-.48-.05-1.31-.31-1.84-1.7-1.84-1.76-.02-.05-.03-.1-.02-.16s.02-.11.04-.15c.02-.05.06-.09.09-.13.04-.04.09-.06.14-.08s.1-.03.16-.02c.05,0,.1.02.15.04s.09.05.13.09c.04.04.06.08.08.13,0,.02.4,1.05,1.27,1.24.74.16,1.7-.31,2.78-1.39.04-.04.08-.07.13-.09s.1-.03.15-.03.11,0,.15.03c.05.02.09.05.13.09.08.08.12.18.12.28s-.04.21-.12.28c-1.11,1.11-2.13,1.66-3.05,1.66h0v.02Z"/><path class="cls-4" d="M24.32,59.6c-.38,0-.57-.19-.57-.57v-8.05c0-.38.19-.57.57-.57.25,0,.46.12.62.37l3.2,4.81-.24.04,3.23-4.85c.15-.24.38-.37.69-.37s.46.19.46.57v8.05c0,.38-.19.57-.57.57s-.57-.19-.57-.57v-6.91l.35.12-2.85,4.19c-.17.24-.4.37-.69.37-.2,0-.39-.12-.56-.37l-2.85-4.19.34.09v6.7c0,.38-.19.57-.57.57h0Z"/><path class="cls-4" d="M37.82,59.6c-1.03,0-1.8-.25-2.3-.74-.49-.5-.74-1.26-.74-2.3v-3.13c0-1.04.25-1.81.75-2.3.5-.49,1.26-.73,2.29-.73h1.63c1.04,0,1.81.25,2.3.74s.74,1.26.74,2.3v3.12c0,1.03-.25,1.8-.74,2.3-.49.49-1.26.74-2.3.74h-1.63ZM37.82,58.46h1.63c.48,0,.86-.06,1.14-.17.28-.12.47-.31.58-.59.12-.28.18-.66.18-1.14v-3.12c0-.48-.06-.86-.18-1.13-.11-.28-.31-.47-.58-.59s-.66-.18-1.14-.18h-1.63c-.48,0-.86.05-1.13.16s-.47.31-.59.58-.18.66-.18,1.14v3.13c0,.48.06.86.17,1.14.12.28.31.47.59.59.28.11.66.17,1.14.17h0Z"/><path class="cls-4" d="M47.59,59.6c-.23,0-.42-.15-.56-.45l-3.35-7.93c-.07-.16-.09-.3-.05-.42.03-.13.14-.23.31-.31.37-.19.63-.09.79.28l3.16,7.5h-.39l3.08-7.5c.15-.37.41-.47.79-.28.16.08.26.19.29.31.04.12.03.26-.03.42l-3.37,7.93c-.14.3-.34.45-.61.45h-.06Z"/></g></g></svg>',mp3Icon:'<?xml version="1.0" encoding="UTF-8"?><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64"><defs><style>.cls-1{fill:none;}.cls-2{isolation:isolate;opacity:.15;}.cls-2,.cls-3{fill:#ff3e4c;}.cls-4{fill:#fff;}</style></defs><g id="Layer_2"><rect class="cls-1" width="64" height="64"/></g><g id="Layer_1"><g id="Document"><path class="cls-2" d="M42.52,13.11c-1.46,0-2.85-.58-3.88-1.61-1.03-1.03-1.61-2.42-1.61-3.88V0H12.5C10.6,0,8.78.75,7.44,2.1c-1.35,1.34-2.1,3.16-2.1,5.06v43.18c0,1.9.76,3.72,2.1,5.06,1.34,1.34,3.16,2.09,5.06,2.09h29.44c.94,0,1.87-.18,2.74-.54.87-.36,1.66-.89,2.32-1.55s1.19-1.45,1.55-2.32.55-1.8.55-2.74V13.1h-6.59.01Z"/><path class="cls-3" d="M49.11,13.11h-6.59c-1.46,0-2.85-.58-3.88-1.61-1.03-1.03-1.61-2.42-1.61-3.88V0s12.08,13.11,12.08,13.11Z"/><path class="cls-3" d="M54.36,45.5H21.04c-2.36,0-4.28,1.92-4.28,4.28v9.94c0,2.36,1.92,4.28,4.28,4.28h33.33c2.36,0,4.28-1.92,4.28-4.28v-9.94c0-2.36-1.92-4.28-4.28-4.28h-.01Z"/></g><g id="File"><path class="cls-3" d="M40.19,37.18h-3.74v-15.13c0-.51-.2-.99-.56-1.35-.36-.36-.84-.56-1.35-.56h-9.57c-.25,0-.5.05-.73.15s-.44.24-.62.41c-.18.18-.32.39-.41.62s-.15.48-.15.73v15.13h-3.76v-16.41c0-.58.11-1.15.33-1.68s.54-1.02.95-1.42c.41-.41.89-.73,1.42-.95.53-.22,1.1-.33,1.68-.33h12.14c1.16,0,2.28.46,3.1,1.28s1.28,1.94,1.28,3.1v16.41h0Z"/><path class="cls-3" d="M35.75,41.62c2.45,0,4.44-1.99,4.44-4.44s-1.99-4.44-4.44-4.44-4.44,1.99-4.44,4.44,1.99,4.44,4.44,4.44h0Z"/><path class="cls-3" d="M18.63,41.62c2.45,0,4.44-1.99,4.44-4.44s-1.99-4.44-4.44-4.44-4.44,1.99-4.44,4.44,1.99,4.44,4.44,4.44Z"/><path class="cls-4" d="M25.5,59.6c-.38,0-.57-.19-.57-.57v-8.06c0-.38.19-.57.57-.57.25,0,.46.12.62.37l3.2,4.82-.24.04,3.23-4.86c.15-.24.38-.37.69-.37s.46.19.46.57v8.06c0,.38-.19.57-.57.57s-.57-.19-.57-.57v-6.92l.35.12-2.85,4.19c-.17.24-.4.37-.69.37-.2,0-.39-.12-.56-.37l-2.85-4.19.34.09v6.7c0,.38-.19.57-.57.57h0Z"/><path class="cls-4" d="M36.86,59.6c-.38,0-.57-.19-.57-.57v-8.06c0-.38.19-.57.57-.57h3.18c.83,0,1.46.22,1.9.66.44.44.66,1.07.66,1.9v.41c0,.83-.22,1.46-.66,1.91s-1.07.66-1.9.66h-2.61v3.09c0,.38-.19.57-.57.57h0ZM37.43,54.8h2.61c.52,0,.88-.11,1.1-.33s.33-.58.33-1.1v-.41c0-.51-.11-.88-.33-1.09-.22-.22-.58-.33-1.1-.33h-2.61v3.26Z"/><path class="cls-4" d="M46.28,59.6c-.79,0-1.4-.17-1.84-.5-.43-.33-.69-.85-.78-1.54-.02-.19.02-.34.12-.44s.24-.16.43-.16c.35,0,.54.19.58.57.06.35.21.59.43.73s.57.2,1.05.2h1.55c.58,0,.98-.1,1.19-.31s.32-.61.32-1.18-.11-.96-.32-1.17-.6-.32-1.19-.32h-1.04c-.38,0-.57-.19-.57-.57s.19-.57.57-.57h1.56c.28,0,.48-.13.6-.38.12-.26.18-.61.18-1.04,0-.54-.1-.9-.29-1.09-.19-.19-.55-.28-1.08-.28h-1.32c-.43,0-.74.06-.94.17s-.33.32-.39.63c-.05.37-.25.56-.6.56-.19,0-.33-.05-.43-.15-.1-.1-.14-.25-.11-.45.09-.64.34-1.11.75-1.42.41-.32.99-.47,1.72-.47h1.32c.85,0,1.48.21,1.89.62s.62,1.04.62,1.89-.24,1.43-.71,1.78c.31.2.54.49.69.87.15.38.23.85.23,1.41,0,.9-.21,1.56-.64,1.99s-1.1.64-2,.64h-1.55v-.02Z"/></g></g></svg>',mp4Icon:'<?xml version="1.0" encoding="UTF-8"?><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64"><defs><style>.cls-1{fill:none;}.cls-2,.cls-3{fill:#a140ff;}.cls-4{fill:#fff;}.cls-3{isolation:isolate;opacity:.15;}</style></defs><g id="Layer_2"><rect class="cls-1" width="64" height="64"/></g><g id="Layer_1"><g id="Document"><path class="cls-3" d="M42.52,13.11c-1.46,0-2.85-.58-3.88-1.61-1.03-1.03-1.61-2.42-1.61-3.88V0H12.5C10.6,0,8.78.75,7.44,2.1c-1.35,1.34-2.1,3.16-2.1,5.06v43.18c0,1.9.76,3.72,2.1,5.06,1.34,1.34,3.16,2.09,5.06,2.09h29.44c.94,0,1.87-.18,2.74-.54.87-.36,1.66-.89,2.32-1.55s1.19-1.45,1.55-2.32.55-1.8.55-2.74V13.1h-6.59.01Z"/><path class="cls-2" d="M49.11,13.11h-6.59c-1.46,0-2.85-.58-3.88-1.61-1.03-1.03-1.61-2.42-1.61-3.88V0s12.08,13.11,12.08,13.11Z"/><path class="cls-2" d="M54.36,45.5H21.04c-2.36,0-4.28,1.92-4.28,4.28v9.94c0,2.36,1.92,4.28,4.28,4.28h33.33c2.36,0,4.28-1.92,4.28-4.28v-9.94c0-2.36-1.92-4.28-4.28-4.28h-.01Z"/></g><g id="File"><path class="cls-2" d="M30.03,28.13l-3.34-1.93c-.17-.1-.37-.15-.57-.15s-.4.05-.57.15-.32.24-.42.42c-.1.17-.15.37-.15.57v3.86c0,.2.05.4.15.57s.24.32.42.42c.17.1.37.15.57.15s.4-.05.57-.15l3.34-1.93c.17-.1.32-.24.42-.42s.15-.37.15-.57-.05-.4-.15-.57-.24-.32-.42-.42Z"/><path class="cls-2" d="M40.19,37.34v-16.67c0-.08,0-.16-.02-.24v-.07c0-.06-.03-.11-.05-.16l-.03-.07s-.05-.1-.08-.15l-.03-.06c-.05-.06-.09-.12-.15-.18l-.02-.02s-.1-.09-.15-.13l-.06-.04s-.09-.05-.14-.08l-.07-.03c-.06-.02-.11-.04-.17-.05h-.06c-.08-.02-.16-.03-.24-.02H15.38c-.32.03-.62.18-.84.42s-.34.55-.34.88v16.72c0,.21.06.42.19.59.12.19.28.35.48.47s.42.17.64.17h23.41c.34,0,.66-.14.9-.38s.37-.56.38-.9h-.01ZM16.26,22.52c-.39,0-.7-.31-.7-.7v-1.13c0-.39.31-.7.7-.7h.66c.39,0,.7.31.7.7v1.13c0,.39-.31.7-.7.7h-.66ZM19.73,22.52c-.39,0-.7-.31-.7-.7v-1.13c0-.39.31-.7.7-.7h.66c.39,0,.7.31.7.7v1.13c0,.39-.31.7-.7.7h-.66ZM23.22,22.52c-.39,0-.7-.31-.7-.7v-1.13c0-.39.31-.7.7-.7h.66c.39,0,.7.31.7.7v1.13c0,.39-.31.7-.7.7h-.66ZM26.68,22.52c-.39,0-.7-.31-.7-.7v-1.13c0-.39.31-.7.7-.7h.66c.39,0,.7.31.7.7v1.13c0,.39-.31.7-.7.7h-.66ZM30.15,22.52c-.39,0-.7-.31-.7-.7v-1.13c0-.39.31-.7.7-.7h.66c.39,0,.7.31.7.7v1.13c0,.39-.31.7-.7.7h-.66ZM33.64,22.52c-.39,0-.7-.31-.7-.7v-1.13c0-.39.31-.7.7-.7h.66c.39,0,.7.31.7.7v1.13c0,.39-.31.7-.7.7h-.66ZM37.1,22.52c-.39,0-.7-.31-.7-.7v-1.13c0-.39.31-.7.7-.7h.66c.39,0,.7.31.7.7v1.13c0,.39-.31.7-.7.7h-.66ZM15.79,34.78c-.39,0-.7-.31-.7-.7v-10.19c0-.39.31-.7.7-.7h22.79c.39,0,.7.31.7.7v10.19c0,.39-.31.7-.7.7H15.79ZM16.26,37.99c-.39,0-.7-.31-.7-.7v-1.13c0-.39.31-.7.7-.7h.66c.39,0,.7.31.7.7v1.13c0,.39-.31.7-.7.7h-.66ZM19.73,37.99c-.39,0-.7-.31-.7-.7v-1.13c0-.39.31-.7.7-.7h.66c.39,0,.7.31.7.7v1.13c0,.39-.31.7-.7.7h-.66ZM23.2,37.99c-.39,0-.7-.31-.7-.7v-1.13c0-.39.31-.7.7-.7h.66c.39,0,.7.31.7.7v1.13c0,.39-.31.7-.7.7h-.66ZM26.68,37.99c-.39,0-.7-.31-.7-.7v-1.13c0-.39.31-.7.7-.7h.66c.39,0,.7.31.7.7v1.13c0,.39-.31.7-.7.7h-.66ZM30.15,37.99c-.39,0-.7-.31-.7-.7v-1.13c0-.39.31-.7.7-.7h.66c.39,0,.7.31.7.7v1.13c0,.39-.31.7-.7.7h-.66ZM33.62,37.99c-.39,0-.7-.31-.7-.7v-1.13c0-.39.31-.7.7-.7h.66c.39,0,.7.31.7.7v1.13c0,.39-.31.7-.7.7h-.66ZM37.1,37.99c-.39,0-.7-.31-.7-.7v-1.13c0-.39.31-.7.7-.7h.66c.39,0,.7.31.7.7v1.13c0,.39-.31.7-.7.7h-.66Z"/><path class="cls-4" d="M25.75,59.6c-.38,0-.57-.19-.57-.57v-8.06c0-.38.19-.57.57-.57.25,0,.46.12.62.37l3.2,4.82-.24.04,3.23-4.86c.15-.24.38-.37.69-.37s.46.19.46.57v8.06c0,.38-.19.57-.57.57s-.57-.19-.57-.57v-6.92l.35.12-2.85,4.19c-.17.24-.4.37-.69.37-.2,0-.39-.12-.56-.37l-2.85-4.19.34.09v6.7c0,.38-.19.57-.57.57h0Z"/><path class="cls-4" d="M37.11,59.6c-.38,0-.57-.19-.57-.57v-8.06c0-.38.19-.57.57-.57h3.18c.83,0,1.46.22,1.9.66.44.44.66,1.07.66,1.9v.41c0,.83-.22,1.46-.66,1.91s-1.07.66-1.9.66h-2.61v3.09c0,.38-.19.57-.57.57h0ZM37.68,54.8h2.61c.52,0,.88-.11,1.1-.33s.33-.58.33-1.1v-.41c0-.51-.11-.88-.33-1.09-.22-.22-.58-.33-1.1-.33h-2.61v3.26Z"/><path class="cls-4" d="M48.3,59.6c-.38,0-.57-.19-.57-.57v-7.3l.46-.33-4.02,5.44-.09-.28,5.58-.03c.19,0,.33.05.42.16.1.11.15.24.15.41,0,.38-.19.57-.57.57h-6.12c-.38,0-.57-.19-.57-.57,0-.18.08-.38.23-.6l4.26-5.75c.12-.16.24-.26.36-.29.13-.04.27-.06.44-.06.42,0,.62.19.62.57v8.06c0,.38-.2.57-.58.57h0Z"/></g></g></svg>',mpegIcon:'<?xml version="1.0" encoding="UTF-8"?><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64"><defs><style>.cls-1{fill:none;}.cls-2,.cls-3{fill:#00c650;}.cls-4{fill:#fff;}.cls-3{isolation:isolate;opacity:.15;}</style></defs><g id="Layer_2"><rect class="cls-1" width="64" height="64"/></g><g id="Layer_1"><g id="Document"><path class="cls-3" d="M42.52,13.11c-1.46,0-2.85-.58-3.88-1.61-1.03-1.03-1.61-2.42-1.61-3.88V0H12.5C10.6,0,8.78.75,7.44,2.1c-1.35,1.34-2.1,3.16-2.1,5.06v43.18c0,1.9.76,3.72,2.1,5.06,1.34,1.34,3.16,2.09,5.06,2.09h29.44c.94,0,1.87-.18,2.74-.54.87-.36,1.66-.89,2.32-1.55s1.19-1.45,1.55-2.32.55-1.8.55-2.74V13.1h-6.59.01Z"/><path class="cls-2" d="M49.11,13.11h-6.59c-1.46,0-2.85-.58-3.88-1.61-1.03-1.03-1.61-2.42-1.61-3.88V0s12.08,13.11,12.08,13.11Z"/><path class="cls-2" d="M54.36,45.5H21.04c-2.36,0-4.28,1.92-4.28,4.28v9.94c0,2.36,1.92,4.28,4.28,4.28h33.33c2.36,0,4.28-1.92,4.28-4.28v-9.94c0-2.36-1.92-4.28-4.28-4.28h-.01Z"/></g><g id="File"><path class="cls-2" d="M40.19,37.34v-16.67c0-.08,0-.16-.02-.24v-.07c0-.06-.03-.11-.05-.16l-.03-.07s-.05-.1-.08-.15l-.03-.06c-.05-.06-.09-.12-.15-.18l-.02-.02s-.1-.09-.15-.13l-.06-.04s-.09-.05-.14-.08l-.07-.03c-.06-.02-.11-.04-.17-.05h-.06c-.08-.02-.16-.03-.24-.02H15.38c-.32.03-.62.18-.84.42s-.34.55-.34.88v16.72c0,.21.06.42.19.59.12.19.28.35.48.47s.42.17.64.17h23.41c.34,0,.66-.14.9-.38s.37-.56.38-.9h-.01ZM16.26,22.52c-.39,0-.7-.31-.7-.7v-1.13c0-.39.31-.7.7-.7h.66c.39,0,.7.31.7.7v1.13c0,.39-.31.7-.7.7h-.66ZM19.73,22.52c-.39,0-.7-.31-.7-.7v-1.13c0-.39.31-.7.7-.7h.66c.39,0,.7.31.7.7v1.13c0,.39-.31.7-.7.7h-.66ZM23.22,22.52c-.39,0-.7-.31-.7-.7v-1.13c0-.39.31-.7.7-.7h.66c.39,0,.7.31.7.7v1.13c0,.39-.31.7-.7.7h-.66ZM26.68,22.52c-.39,0-.7-.31-.7-.7v-1.13c0-.39.31-.7.7-.7h.66c.39,0,.7.31.7.7v1.13c0,.39-.31.7-.7.7h-.66ZM30.15,22.52c-.39,0-.7-.31-.7-.7v-1.13c0-.39.31-.7.7-.7h.66c.39,0,.7.31.7.7v1.13c0,.39-.31.7-.7.7h-.66ZM33.64,22.52c-.39,0-.7-.31-.7-.7v-1.13c0-.39.31-.7.7-.7h.66c.39,0,.7.31.7.7v1.13c0,.39-.31.7-.7.7h-.66ZM37.1,22.52c-.39,0-.7-.31-.7-.7v-1.13c0-.39.31-.7.7-.7h.66c.39,0,.7.31.7.7v1.13c0,.39-.31.7-.7.7h-.66ZM15.79,34.78c-.39,0-.7-.31-.7-.7v-10.19c0-.39.31-.7.7-.7h22.79c.39,0,.7.31.7.7v10.19c0,.39-.31.7-.7.7H15.79ZM16.26,37.99c-.39,0-.7-.31-.7-.7v-1.13c0-.39.31-.7.7-.7h.66c.39,0,.7.31.7.7v1.13c0,.39-.31.7-.7.7h-.66ZM19.73,37.99c-.39,0-.7-.31-.7-.7v-1.13c0-.39.31-.7.7-.7h.66c.39,0,.7.31.7.7v1.13c0,.39-.31.7-.7.7h-.66ZM23.2,37.99c-.39,0-.7-.31-.7-.7v-1.13c0-.39.31-.7.7-.7h.66c.39,0,.7.31.7.7v1.13c0,.39-.31.7-.7.7h-.66ZM26.68,37.99c-.39,0-.7-.31-.7-.7v-1.13c0-.39.31-.7.7-.7h.66c.39,0,.7.31.7.7v1.13c0,.39-.31.7-.7.7h-.66ZM30.15,37.99c-.39,0-.7-.31-.7-.7v-1.13c0-.39.31-.7.7-.7h.66c.39,0,.7.31.7.7v1.13c0,.39-.31.7-.7.7h-.66ZM33.62,37.99c-.39,0-.7-.31-.7-.7v-1.13c0-.39.31-.7.7-.7h.66c.39,0,.7.31.7.7v1.13c0,.39-.31.7-.7.7h-.66ZM37.1,37.99c-.39,0-.7-.31-.7-.7v-1.13c0-.39.31-.7.7-.7h.66c.39,0,.7.31.7.7v1.13c0,.39-.31.7-.7.7h-.66Z"/><path class="cls-2" d="M29.98,28.13l-3.34-1.93c-.17-.1-.37-.15-.57-.15s-.4.05-.57.15-.32.24-.42.42c-.1.17-.15.37-.15.57v3.86c0,.2.05.4.15.57s.24.32.42.42.37.15.57.15.4-.05.57-.15l3.34-1.93c.17-.1.32-.24.42-.42s.15-.37.15-.57-.05-.4-.15-.57-.24-.32-.42-.42Z"/><path class="cls-4" d="M20.92,59.6c-.38,0-.57-.19-.57-.57v-8.06c0-.38.19-.57.57-.57.25,0,.46.12.62.37l3.2,4.82-.24.04,3.23-4.86c.15-.24.38-.37.69-.37s.46.19.46.57v8.06c0,.38-.19.57-.57.57s-.57-.19-.57-.57v-6.92l.35.12-2.85,4.19c-.17.24-.4.37-.69.37-.2,0-.39-.12-.56-.37l-2.85-4.19.34.09v6.7c0,.38-.19.57-.57.57h0Z"/><path class="cls-4" d="M32.28,59.6c-.38,0-.57-.19-.57-.57v-8.06c0-.38.19-.57.57-.57h3.18c.83,0,1.46.22,1.9.66s.66,1.07.66,1.9v.41c0,.83-.22,1.46-.66,1.91s-1.07.66-1.9.66h-2.61v3.09c0,.38-.19.57-.57.57ZM32.85,54.8h2.61c.52,0,.88-.11,1.1-.33s.33-.58.33-1.1v-.41c0-.51-.11-.88-.33-1.09-.22-.22-.58-.33-1.1-.33h-2.61v3.26Z"/><path class="cls-4" d="M40.6,59.6c-.38,0-.57-.19-.57-.57v-8.06c0-.38.19-.57.57-.57h4.87c.38,0,.57.19.57.57s-.19.57-.57.57h-4.3v2.85h2.7c.38,0,.57.19.57.57s-.19.57-.57.57h-2.7v2.93h4.3c.38,0,.57.19.57.57s-.19.57-.57.57c0,0-4.87,0-4.87,0Z"/><path class="cls-4" d="M50.66,59.6c-1.04,0-1.8-.25-2.3-.74-.49-.5-.74-1.26-.74-2.3v-3.12c0-1.04.25-1.81.74-2.31s1.25-.74,2.29-.73h1.64c.85,0,1.5.18,1.95.53s.71.9.78,1.66c.03.19,0,.33-.11.43s-.24.15-.43.15c-.34,0-.54-.19-.6-.57-.05-.42-.19-.7-.43-.84s-.62-.22-1.15-.22h-1.64c-.48,0-.86.05-1.13.16s-.47.31-.58.59-.17.66-.17,1.15v3.12c0,.48.06.86.17,1.14.12.28.31.47.59.59.28.11.66.17,1.14.17h1.63c.42,0,.75-.05.98-.14.24-.09.41-.26.5-.5s.14-.57.14-1v-.64h-1.06c-.38,0-.57-.2-.57-.58s.19-.57.57-.57h1.63c.38,0,.57.2.57.58v1.21c0,.96-.22,1.67-.67,2.11-.45.44-1.15.66-2.1.66h-1.64Z"/></g></g></svg>',numbersIcon:'<?xml version="1.0" encoding="UTF-8"?><svg id="a" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64"><g id="b"><rect width="64" height="64" style="fill:none;"/></g><g id="c"><g id="d"><path d="M42.52,13.11c-1.46,0-2.85-.58-3.88-1.61-1.03-1.03-1.61-2.42-1.61-3.88V0H12.5c-1.9,0-3.72.75-5.06,2.1-1.35,1.34-2.1,3.16-2.1,5.06v43.18c0,1.9.76,3.72,2.1,5.06s3.16,2.09,5.06,2.09h29.44c.94,0,1.87-.18,2.74-.54.87-.36,1.66-.89,2.32-1.55s1.19-1.45,1.55-2.32.55-1.8.55-2.74V13.1h-6.59,0Z" style="fill:#00c650; isolation:isolate; opacity:.15;"/><path d="M49.11,13.11h-6.59c-1.46,0-2.85-.58-3.88-1.61-1.03-1.03-1.61-2.42-1.61-3.88V0l12.08,13.11Z" style="fill:#00c650;"/><path d="M54.36,45.5H21.04c-2.36,0-4.28,1.92-4.28,4.28v9.94c0,2.36,1.92,4.28,4.28,4.28h33.33c2.36,0,4.28-1.92,4.28-4.28v-9.94c0-2.36-1.92-4.28-4.28-4.28h-.01Z" style="fill:#00c650;"/></g><g id="e"><path d="M37.08,39.98h-19.78c-1.71,0-3.11-1.7-3.11-3.8v-14.35c0-2.1,1.39-3.8,3.11-3.8h19.79c1.71,0,3.11,1.7,3.11,3.8v14.35c0,2.1-1.4,3.8-3.11,3.8h-.01ZM17.3,19.97c-.84,0-1.52.83-1.52,1.86v2.03c0,.45.36.81.81.81h3.83c.45,0,.81-.36.81-.81v-3.08c0-.45-.36-.81-.81-.81,0,0-3.12,0-3.12,0ZM23.18,20.77c0-.45.36-.81.81-.81h6.4c.45,0,.81.36.81.81v3.08c0,.45-.36.81-.81.81h-6.4c-.45,0-.81-.36-.81-.81v-3.08ZM23.18,27.42c0-.45.36-.81.81-.81h6.4c.45,0,.81.36.81.81v3.11c0,.45-.36.81-.81.81h-6.4c-.45,0-.81-.36-.81-.81v-3.11ZM21.23,27.42c0-.45-.36-.81-.81-.81h-3.83c-.45,0-.81.36-.81.81v3.11c0,.45.36.81.81.81h3.83c.45,0,.81-.36.81-.81v-3.11ZM21.23,34.09c0-.45-.36-.81-.81-.81h-3.83c-.45,0-.81.36-.81.81v2.08c0,1.03.68,1.86,1.52,1.86h3.12c.45,0,.81-.36.81-.81,0,0,0-3.13,0-3.13ZM23.18,37.22c0,.45.36.81.81.81h6.4c.45,0,.81-.36.81-.81v-3.13c0-.45-.36-.81-.81-.81h-6.4c-.45,0-.81.36-.81.81v3.13ZM33.95,26.61c-.45,0-.81.36-.81.81v3.11c0,.45.36.81.81.81h3.85c.45,0,.81-.36.81-.81v-3.11c0-.45-.36-.81-.81-.81h-3.85ZM33.95,33.28c-.45,0-.81.36-.81.81v3.13c0,.45.36.81.81.81h3.14c.84,0,1.52-.83,1.52-1.86v-2.08c0-.45-.36-.81-.81-.81,0,0-3.85,0-3.85,0ZM33.95,19.97c-.45,0-.81.36-.81.81v3.08c0,.45.36.81.81.81h3.85c.45,0,.81-.36.81-.81v-2.03c0-1.03-.68-1.86-1.52-1.86,0,0-3.14,0-3.14,0Z" style="fill:#00c650; fill-rule:evenodd;"/></g></g><path d="M21.37,59.45c-.38,0-.57-.19-.57-.57v-8.06c0-.38.19-.57.57-.57.19,0,.38.11.57.34l5.45,7.03h-.28v-6.8c0-.38.19-.57.57-.57s.57.19.57.57v8.06c0,.38-.19.57-.57.57-.2,0-.39-.11-.57-.34l-5.45-7.03h.28v6.8c0,.38-.19.57-.57.57h0Z" style="fill:#fff;"/><path d="M32.99,59.76c-1.04,0-1.8-.26-2.3-.77-.49-.52-.74-1.3-.74-2.38v-5.78c0-.2.05-.34.14-.44s.24-.14.43-.14.33.05.43.14.14.25.14.44v5.78c0,.5.06.89.17,1.18.12.29.31.49.59.61.28.11.66.18,1.14.18h1.63c.48,0,.86-.06,1.14-.18.28-.12.47-.32.58-.61.12-.29.18-.68.18-1.18v-5.78c0-.2.05-.34.14-.44s.24-.14.43-.14.33.05.43.14.14.25.14.44v5.78c0,1.08-.25,1.86-.74,2.38-.49.51-1.26.77-2.3.77,0,0-1.63,0-1.63,0Z" style="fill:#fff;"/><path d="M39.93,59.76c-.38,0-.57-.2-.57-.59v-8.34c0-.39.19-.59.57-.59.25,0,.46.12.62.38l3.2,4.98-.24.04,3.23-5.03c.15-.25.38-.38.69-.38s.46.2.46.59v8.34c0,.39-.19.59-.57.59s-.57-.2-.57-.59v-7.16l.35.12-2.85,4.33c-.17.25-.4.38-.69.38-.2,0-.39-.12-.56-.38l-2.85-4.33.34.09v6.93c0,.39-.19.59-.57.59h.01Z" style="fill:#fff;"/><path d="M50.15,59.76c-.38,0-.57-.2-.57-.59v-8.34c0-.39.19-.59.57-.59h3.54c.72,0,1.27.2,1.65.59.39.39.58.95.58,1.69v.38c0,.63-.19,1.12-.58,1.47.72.41,1.08,1.18,1.08,2.28v.48c0,.86-.22,1.51-.66,1.96-.44.44-1.07.67-1.9.67h-3.72,0ZM50.71,58.58h3.15c.51,0,.87-.11,1.09-.34s.33-.6.33-1.13v-.48c0-.52-.11-.89-.32-1.11-.21-.23-.58-.34-1.11-.34h-3.15v3.38h.01ZM50.71,54.02h3.21c.33,0,.55-.1.67-.32.12-.21.18-.48.18-.81v-.38c0-.4-.08-.69-.24-.85-.16-.17-.45-.25-.85-.25h-2.97v2.6h0Z" style="fill:#fff;"/></svg>',pagesIcon:'<?xml version="1.0" encoding="UTF-8"?><svg id="a" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64"><g id="b"><rect width="64" height="64" style="fill:none;"/></g><g id="c"><g id="d"><path d="M42.52,13.11c-1.46,0-2.85-.58-3.88-1.61-1.03-1.03-1.61-2.42-1.61-3.88V0H12.5c-1.9,0-3.72.75-5.06,2.1-1.35,1.34-2.1,3.16-2.1,5.06v43.18c0,1.9.76,3.72,2.1,5.06s3.16,2.09,5.06,2.09h29.44c.94,0,1.87-.18,2.74-.54.87-.36,1.66-.89,2.32-1.55s1.19-1.45,1.55-2.32.55-1.8.55-2.74V13.1h-6.59,0Z" style="fill:#0072ff; isolation:isolate; opacity:.15;"/><path d="M49.11,13.11h-6.59c-1.46,0-2.85-.58-3.88-1.61-1.03-1.03-1.61-2.42-1.61-3.88V0l12.08,13.11Z" style="fill:#0072ff;"/><path d="M54.36,45.5H21.04c-2.36,0-4.28,1.92-4.28,4.28v9.94c0,2.36,1.92,4.28,4.28,4.28h33.33c2.36,0,4.28-1.92,4.28-4.28v-9.94c0-2.36-1.92-4.28-4.28-4.28h-.01Z" style="fill:#0072ff;"/></g><g id="e"><path d="M39.32,22H15.07c-.23,0-.46-.09-.62-.26s-.26-.39-.26-.62c0-.12.02-.23.07-.34.04-.11.11-.2.19-.29.08-.08.18-.15.29-.19s.22-.07.34-.07h24.24c.23,0,.46.09.62.26.17.17.26.39.26.62s-.09.46-.26.62-.39.26-.62.26h0Z" style="fill:#0072ff;"/><path d="M39.32,27.25H15.07c-.23,0-.46-.09-.62-.26-.16-.16-.26-.39-.26-.62,0-.12.02-.23.07-.34.04-.11.11-.2.19-.29.08-.08.18-.15.29-.19s.22-.07.34-.07h24.24c.23,0,.46.09.62.26.17.17.26.39.26.62s-.09.46-.26.62-.39.26-.62.26h0Z" style="fill:#0072ff;"/><path d="M39.32,32.51H15.07c-.12,0-.23-.02-.34-.07-.11-.04-.2-.11-.29-.19s-.15-.18-.19-.29-.07-.22-.07-.34c0-.23.09-.46.26-.62.16-.16.39-.26.62-.26h24.24c.23,0,.46.09.62.26s.26.39.26.62-.09.46-.26.62c-.17.17-.39.26-.62.26h.02Z" style="fill:#0072ff;"/><path d="M29.75,37.76h-14.68c-.12,0-.23-.02-.34-.07-.11-.04-.2-.11-.29-.19s-.15-.18-.19-.29-.07-.22-.07-.34c0-.23.09-.46.26-.62.16-.16.39-.26.62-.26h14.68c.23,0,.46.09.62.26.16.16.26.39.26.62,0,.12-.02.23-.07.34-.04.11-.11.2-.19.29s-.18.15-.29.19c-.11.04-.22.07-.34.07,0,0,.02,0,.02,0Z" style="fill:#0072ff;"/></g></g><path d="M45.41,59.49c-.76,0-1.36-.15-1.79-.46-.42-.31-.69-.78-.8-1.42-.02-.2.02-.34.12-.44s.24-.15.43-.15.32.04.41.13.15.23.18.41c.07.31.21.52.43.64.22.11.56.17,1.02.17h1.93c.58,0,.97-.1,1.17-.31.21-.21.31-.6.31-1.16s-.11-.97-.32-1.18-.6-.32-1.16-.32h-1.66c-.84,0-1.47-.21-1.88-.62s-.61-1.04-.61-1.89.2-1.46.6-1.87c.41-.41,1.03-.61,1.87-.61h1.59c.71,0,1.26.14,1.67.43s.66.73.77,1.33c.03.19,0,.34-.11.44-.1.1-.25.15-.44.15-.18,0-.31-.05-.4-.14s-.15-.23-.17-.41c-.07-.26-.21-.44-.41-.54-.2-.1-.5-.15-.9-.15h-1.59c-.54,0-.89.1-1.08.29-.18.19-.27.54-.27,1.06s.09.89.28,1.08.55.29,1.08.29h1.66c.88,0,1.53.21,1.96.64s.65,1.09.65,1.98-.21,1.54-.64,1.97c-.43.42-1.08.63-1.97.63h-1.93s0,.03,0,.03Z" style="fill:#fff;"/><path d="M26.03,59.63c-.38,0-.57-.19-.57-.57v-8.06c0-.38.19-.57.57-.57h3.17c.83,0,1.46.22,1.9.66.44.44.66,1.07.66,1.9v.41c0,.83-.22,1.46-.66,1.91s-1.07.66-1.9.66h-2.6v3.09c0,.38-.19.57-.57.57h0ZM26.6,54.83h2.6c.52,0,.88-.11,1.1-.33s.33-.58.33-1.1v-.41c0-.51-.11-.88-.33-1.09-.22-.22-.58-.33-1.1-.33h-2.6v3.26Z" style="fill:#fff;"/><path d="M36.43,59.63c-1.04,0-1.8-.25-2.3-.74-.49-.5-.74-1.26-.74-2.3v-3.12c0-1.04.25-1.81.74-2.31s1.26-.74,2.29-.73h1.64c.85,0,1.5.18,1.95.53s.71.9.78,1.66c.03.19,0,.33-.11.43s-.24.15-.43.15c-.34,0-.54-.19-.6-.57-.05-.42-.19-.7-.43-.84s-.62-.22-1.15-.22h-1.64c-.48,0-.86.05-1.13.16s-.47.31-.58.59-.17.66-.17,1.15v3.12c0,.48.06.86.17,1.14.12.28.31.47.59.59.28.11.66.17,1.14.17h1.63c.42,0,.75-.05.98-.14.24-.09.41-.26.5-.5s.14-.57.14-1v-.64h-1.06c-.38,0-.57-.2-.57-.58s.19-.57.57-.57h1.63c.38,0,.57.2.57.58v1.21c0,.96-.22,1.67-.67,2.11-.45.44-1.15.66-2.1.66h-1.64Z" style="fill:#fff;"/></svg>',pdfIcon:'<?xml version="1.0" encoding="UTF-8"?><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64"><defs><style>.cls-1{fill:none;}.cls-2{isolation:isolate;opacity:.15;}.cls-2,.cls-3{fill:#ff3e4c;}.cls-4{fill:#fff;}</style></defs><g id="Layer_2"><rect class="cls-1" width="64" height="64"/></g><g id="Layer_1"><g id="Document"><path class="cls-2" d="M42.52,13.11c-1.46,0-2.85-.58-3.88-1.61-1.03-1.03-1.61-2.42-1.61-3.88V0H12.5C10.6,0,8.78.75,7.44,2.1c-1.35,1.34-2.1,3.16-2.1,5.06v43.18c0,1.9.76,3.72,2.1,5.06,1.34,1.34,3.16,2.09,5.06,2.09h29.44c.94,0,1.87-.18,2.74-.54.87-.36,1.66-.89,2.32-1.55s1.19-1.45,1.55-2.32.55-1.8.55-2.74V13.1h-6.59.01Z"/><path class="cls-3" d="M49.11,13.11h-6.59c-1.46,0-2.85-.58-3.88-1.61-1.03-1.03-1.61-2.42-1.61-3.88V0s12.08,13.11,12.08,13.11Z"/><path class="cls-3" d="M54.36,45.5H21.04c-2.36,0-4.28,1.92-4.28,4.28v9.94c0,2.36,1.92,4.28,4.28,4.28h33.33c2.36,0,4.28-1.92,4.28-4.28v-9.94c0-2.36-1.92-4.28-4.28-4.28h-.01Z"/></g><g id="File"><path class="cls-3" d="M39.32,39.8H15.07c-.23,0-.46-.09-.62-.26-.17-.17-.26-.39-.26-.62s.09-.46.26-.62.39-.26.62-.26h24.24c.23,0,.46.09.62.26.16.16.26.39.26.62,0,.12-.02.23-.07.34-.04.11-.11.2-.19.29-.08.08-.18.15-.29.19-.11.04-.22.07-.34.07h.01Z"/><path class="cls-3" d="M39.32,29.88H15.07c-.23,0-.46-.09-.62-.26-.17-.16-.26-.39-.26-.62s.09-.46.26-.62c.17-.17.39-.26.62-.26h24.24c.12,0,.23.02.34.07.11.04.2.11.29.19.08.08.15.18.19.29.04.11.07.22.07.34,0,.23-.09.46-.26.62-.16.16-.39.26-.62.26h-.01Z"/><path class="cls-3" d="M39.32,34.84H15.07c-.23,0-.46-.09-.62-.26-.17-.17-.26-.39-.26-.62s.09-.46.26-.62.39-.26.62-.26h24.24c.23,0,.46.09.62.26.16.16.26.39.26.62,0,.12-.02.23-.07.34-.04.11-.11.2-.19.29-.08.08-.18.15-.29.19-.11.04-.22.07-.34.07h.01Z"/><path class="cls-3" d="M29.75,24.92h-14.68c-.23,0-.46-.09-.62-.26-.17-.16-.26-.39-.26-.62s.09-.46.26-.62.39-.26.62-.26h14.68c.23,0,.46.09.62.26s.26.39.26.62-.09.46-.26.62-.39.26-.62.26h0Z"/><path class="cls-3" d="M29.75,19.96h-14.68c-.23,0-.46-.09-.62-.26-.17-.16-.26-.39-.26-.62s.09-.46.26-.62c.17-.17.39-.26.62-.26h14.68c.23,0,.46.09.62.26s.26.39.26.62-.09.46-.26.62-.39.26-.62.26h0Z"/><path class="cls-3" d="M38.89,18.2h-4.15c-.72,0-1.31.59-1.31,1.31v4.15c0,.72.59,1.31,1.31,1.31h4.15c.72,0,1.31-.59,1.31-1.31v-4.15c0-.72-.59-1.31-1.31-1.31Z"/><path class="cls-4" d="M26.15,59.6c-.38,0-.57-.19-.57-.57v-8.06c0-.38.19-.57.57-.57h3.18c.83,0,1.46.22,1.9.66.44.44.66,1.07.66,1.9v.41c0,.83-.22,1.46-.66,1.91s-1.07.66-1.9.66h-2.61v3.09c0,.38-.19.57-.57.57h0ZM26.72,54.8h2.61c.52,0,.88-.11,1.1-.33s.33-.58.33-1.1v-.41c0-.51-.11-.88-.33-1.09-.22-.22-.58-.33-1.1-.33h-2.61v3.26Z"/><path class="cls-4" d="M34.48,59.6c-.38,0-.57-.19-.57-.57v-8.06c0-.38.19-.57.57-.57h3.27c1.18,0,2.05.28,2.61.84s.84,1.42.84,2.61v2.31c0,1.18-.28,2.05-.83,2.61-.55.56-1.42.83-2.61.83h-3.28ZM35.05,58.46h2.7c.58,0,1.04-.07,1.37-.21.34-.14.58-.38.72-.72s.22-.8.22-1.38v-2.31c0-.57-.07-1.03-.22-1.36-.14-.34-.38-.58-.72-.73-.33-.14-.79-.22-1.37-.22h-2.7v6.92h0Z"/><path class="cls-4" d="M44.26,59.6c-.38,0-.57-.19-.57-.57v-8.06c0-.38.19-.57.57-.57h4.99c.18,0,.31.05.41.16.1.1.16.24.16.41,0,.38-.19.57-.57.57h-4.42v2.85h2.73c.38,0,.57.19.57.57s-.19.57-.57.57h-2.73v3.5c0,.38-.19.57-.57.57Z"/></g></g></svg>',pngIcon:'<?xml version="1.0" encoding="UTF-8"?><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64"><defs><style>.cls-1{fill:none;}.cls-2{fill:#fff;}.cls-3{isolation:isolate;opacity:.15;}.cls-3,.cls-4{fill:#005fad;}</style></defs><g id="Layer_2"><rect class="cls-1" width="64" height="64"/></g><g id="Layer_1"><g id="Document"><path class="cls-3" d="M42.52,13.11c-1.46,0-2.85-.58-3.88-1.61-1.03-1.03-1.61-2.42-1.61-3.88V0H12.5C10.6,0,8.78.75,7.44,2.1c-1.35,1.34-2.1,3.16-2.1,5.06v43.18c0,1.9.76,3.72,2.1,5.06,1.34,1.34,3.16,2.09,5.06,2.09h29.44c.94,0,1.87-.18,2.74-.54.87-.36,1.66-.89,2.32-1.55s1.19-1.45,1.55-2.32.55-1.8.55-2.74V13.1h-6.59.01Z"/><path class="cls-4" d="M49.11,13.11h-6.59c-1.46,0-2.85-.58-3.88-1.61-1.03-1.03-1.61-2.42-1.61-3.88V0s12.08,13.11,12.08,13.11Z"/><path class="cls-4" d="M54.36,45.5H21.04c-2.36,0-4.28,1.92-4.28,4.28v9.94c0,2.36,1.92,4.28,4.28,4.28h33.33c2.36,0,4.28-1.92,4.28-4.28v-9.94c0-2.36-1.92-4.28-4.28-4.28h-.01Z"/></g><g id="File"><path class="cls-4" d="M17.9,16h-3.07c-.35,0-.63.28-.63.63v3.07c0,.35.28.63.63.63h3.07c.35,0,.63-.28.63-.63v-3.07c0-.35-.28-.63-.63-.63Z"/><path class="cls-4" d="M22.23,20.33h-3.07c-.35,0-.63.28-.63.63v3.07c0,.35.28.63.63.63h3.07c.35,0,.63-.28.63-.63v-3.07c0-.35-.28-.63-.63-.63Z"/><path class="cls-4" d="M26.56,16h-3.07c-.35,0-.63.28-.63.63v3.07c0,.35.28.63.63.63h3.07c.35,0,.63-.28.63-.63v-3.07c0-.35-.28-.63-.63-.63Z"/><path class="cls-4" d="M30.89,20.33h-3.07c-.35,0-.63.28-.63.63v3.07c0,.35.28.63.63.63h3.07c.35,0,.63-.28.63-.63v-3.07c0-.35-.28-.63-.63-.63Z"/><path class="cls-4" d="M35.22,16h-3.07c-.35,0-.63.28-.63.63v3.07c0,.35.28.63.63.63h3.07c.35,0,.63-.28.63-.63v-3.07c0-.35-.28-.63-.63-.63Z"/><path class="cls-4" d="M39.55,20.33h-3.07c-.35,0-.63.28-.63.63v3.07c0,.35.28.63.63.63h3.07c.35,0,.63-.28.63-.63v-3.07c0-.35-.28-.63-.63-.63Z"/><path class="cls-4" d="M17.9,24.65h-3.07c-.35,0-.63.28-.63.63v3.07c0,.35.28.63.63.63h3.07c.35,0,.63-.28.63-.63v-3.07c0-.35-.28-.63-.63-.63Z"/><path class="cls-4" d="M22.23,28.98h-3.07c-.35,0-.63.28-.63.63v3.07c0,.35.28.63.63.63h3.07c.35,0,.63-.28.63-.63v-3.07c0-.35-.28-.63-.63-.63Z"/><path class="cls-4" d="M26.56,24.65h-3.07c-.35,0-.63.28-.63.63v3.07c0,.35.28.63.63.63h3.07c.35,0,.63-.28.63-.63v-3.07c0-.35-.28-.63-.63-.63Z"/><path class="cls-4" d="M30.89,28.98h-3.07c-.35,0-.63.28-.63.63v3.07c0,.35.28.63.63.63h3.07c.35,0,.63-.28.63-.63v-3.07c0-.35-.28-.63-.63-.63Z"/><path class="cls-4" d="M35.22,24.65h-3.07c-.35,0-.63.28-.63.63v3.07c0,.35.28.63.63.63h3.07c.35,0,.63-.28.63-.63v-3.07c0-.35-.28-.63-.63-.63Z"/><path class="cls-4" d="M39.55,28.98h-3.07c-.35,0-.63.28-.63.63v3.07c0,.35.28.63.63.63h3.07c.35,0,.63-.28.63-.63v-3.07c0-.35-.28-.63-.63-.63Z"/><path class="cls-4" d="M17.9,33.34h-3.07c-.35,0-.63.28-.63.63v3.07c0,.35.28.63.63.63h3.07c.35,0,.63-.28.63-.63v-3.07c0-.35-.28-.63-.63-.63Z"/><path class="cls-4" d="M22.23,37.67h-3.07c-.35,0-.63.28-.63.63v3.07c0,.35.28.63.63.63h3.07c.35,0,.63-.28.63-.63v-3.07c0-.35-.28-.63-.63-.63Z"/><path class="cls-4" d="M26.56,33.34h-3.07c-.35,0-.63.28-.63.63v3.07c0,.35.28.63.63.63h3.07c.35,0,.63-.28.63-.63v-3.07c0-.35-.28-.63-.63-.63Z"/><path class="cls-4" d="M30.89,37.67h-3.07c-.35,0-.63.28-.63.63v3.07c0,.35.28.63.63.63h3.07c.35,0,.63-.28.63-.63v-3.07c0-.35-.28-.63-.63-.63Z"/><path class="cls-4" d="M35.22,33.34h-3.07c-.35,0-.63.28-.63.63v3.07c0,.35.28.63.63.63h3.07c.35,0,.63-.28.63-.63v-3.07c0-.35-.28-.63-.63-.63Z"/><path class="cls-4" d="M39.55,37.67h-3.07c-.35,0-.63.28-.63.63v3.07c0,.35.28.63.63.63h3.07c.35,0,.63-.28.63-.63v-3.07c0-.35-.28-.63-.63-.63Z"/><path class="cls-2" d="M25.42,59.6c-.38,0-.57-.19-.57-.57v-8.06c0-.38.19-.57.57-.57h3.18c.83,0,1.46.22,1.9.66.44.44.66,1.07.66,1.9v.41c0,.83-.22,1.46-.66,1.91s-1.07.66-1.9.66h-2.61v3.09c0,.38-.19.57-.57.57ZM25.99,54.8h2.61c.52,0,.88-.11,1.1-.33s.33-.58.33-1.1v-.41c0-.51-.11-.88-.33-1.09-.22-.22-.58-.33-1.1-.33h-2.61v3.26Z"/><path class="cls-2" d="M33.74,59.6c-.38,0-.57-.19-.57-.57v-8.06c0-.38.19-.57.57-.57.19,0,.38.11.57.34l5.45,7.03h-.28v-6.8c0-.38.19-.57.57-.57s.57.19.57.57v8.06c0,.38-.19.57-.57.57-.2,0-.39-.11-.57-.34l-5.45-7.03h.28v6.8c0,.38-.19.57-.57.57h0Z"/><path class="cls-2" d="M46.16,59.6c-1.04,0-1.8-.25-2.3-.74-.49-.5-.74-1.26-.74-2.3v-3.12c0-1.04.25-1.81.74-2.31s1.26-.74,2.29-.73h1.64c.85,0,1.5.18,1.95.53s.71.9.78,1.66c.03.19,0,.33-.11.43s-.24.15-.43.15c-.34,0-.54-.19-.6-.57-.05-.42-.19-.7-.43-.84s-.62-.22-1.15-.22h-1.64c-.48,0-.86.05-1.13.16s-.47.31-.58.59-.17.66-.17,1.15v3.12c0,.48.06.86.17,1.14.12.28.31.47.59.59.28.11.66.17,1.14.17h1.63c.42,0,.75-.05.98-.14.24-.09.41-.26.5-.5s.14-.57.14-1v-.64h-1.06c-.38,0-.57-.2-.57-.58s.19-.57.57-.57h1.63c.38,0,.57.2.57.58v1.21c0,.96-.22,1.67-.67,2.11-.45.44-1.15.66-2.1.66h-1.64Z"/></g></g></svg>',pptIcon:'<?xml version="1.0" encoding="UTF-8"?><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64"><defs><style>.cls-1{fill:none;}.cls-2{isolation:isolate;opacity:.15;}.cls-2,.cls-3{fill:#ff3e4c;}.cls-4{fill:#fff;}</style></defs><g id="Layer_2"><rect class="cls-1" width="64" height="64"/></g><g id="Layer_1"><g id="Document"><path class="cls-2" d="M42.52,13.11c-1.46,0-2.85-.58-3.88-1.61-1.03-1.03-1.61-2.42-1.61-3.88V0H12.5C10.6,0,8.78.75,7.44,2.1c-1.35,1.34-2.1,3.16-2.1,5.06v43.18c0,1.9.76,3.72,2.1,5.06,1.34,1.34,3.16,2.09,5.06,2.09h29.44c.94,0,1.87-.18,2.74-.54.87-.36,1.66-.89,2.32-1.55s1.19-1.45,1.55-2.32.55-1.8.55-2.74V13.1h-6.59.01Z"/><path class="cls-3" d="M49.11,13.11h-6.59c-1.46,0-2.85-.58-3.88-1.61-1.03-1.03-1.61-2.42-1.61-3.88V0s12.08,13.11,12.08,13.11Z"/><path class="cls-3" d="M54.36,45.5H21.04c-2.36,0-4.28,1.92-4.28,4.28v9.94c0,2.36,1.92,4.28,4.28,4.28h33.33c2.36,0,4.28-1.92,4.28-4.28v-9.94c0-2.36-1.92-4.28-4.28-4.28h-.01Z"/></g><g id="File"><path class="cls-3" d="M24,22.84h-9.03c-.21,0-.4-.08-.55-.23s-.23-.34-.23-.55.08-.4.23-.55.34-.23.55-.23h9.02c.21,0,.4.08.55.23s.23.34.23.55-.08.4-.22.54c-.14.14-.34.23-.54.23h-.01Z"/><path class="cls-3" d="M24,27.46h-9.03c-.21,0-.4-.08-.55-.23s-.23-.34-.23-.55.08-.4.23-.55.34-.23.55-.23h9.02c.21,0,.4.08.55.23s.23.34.23.55-.08.4-.22.54c-.14.14-.34.23-.54.23h-.01Z"/><path class="cls-3" d="M24,32.09h-9.03c-.21,0-.4-.08-.55-.23-.15-.15-.23-.34-.23-.55s.08-.4.23-.54c.15-.14.34-.22.55-.22h9.02c.21,0,.4.08.55.23s.23.34.23.55-.08.4-.23.54c-.14.14-.34.23-.54.23h0Z"/><path class="cls-3" d="M24,36.71h-9.03c-.21,0-.4-.08-.55-.23-.15-.15-.23-.34-.23-.55s.08-.4.23-.55.34-.23.55-.23h9.02c.21,0,.4.08.55.23s.23.34.23.55-.08.4-.22.55c-.14.15-.34.23-.54.23h-.01Z"/><path class="cls-3" d="M33.42,29.92c-.34,0-.62-.28-.62-.62v-5.6c0-.36-.3-.64-.65-.59-1.43.22-2.75.91-3.75,1.96-1.15,1.22-1.8,2.83-1.8,4.5,0,.86.17,1.71.5,2.5s.81,1.52,1.42,2.12c.61.61,1.33,1.09,2.12,1.42.79.33,1.65.5,2.5.5,1.68,0,3.29-.64,4.5-1.8,1.06-1,1.74-2.33,1.96-3.76.05-.35-.23-.65-.59-.65h-5.61l.02.02Z"/><path class="cls-3" d="M34.7,22.59c-.35-.05-.65.23-.65.59v4.93c0,.34.28.62.62.62h4.93c.35,0,.64-.3.59-.65-.21-1.37-.85-2.65-1.84-3.64s-2.27-1.63-3.64-1.84h-.01Z"/><path class="cls-4" d="M26.69,59.61c-.38,0-.57-.19-.57-.57v-8.06c0-.38.19-.57.57-.57h3.18c.83,0,1.46.22,1.9.66.44.44.66,1.07.66,1.9v.41c0,.83-.22,1.46-.66,1.91s-1.07.66-1.9.66h-2.61v3.09c0,.38-.19.57-.57.57h0ZM27.26,54.8h2.61c.52,0,.88-.11,1.1-.33s.33-.58.33-1.1v-.41c0-.51-.11-.88-.33-1.09-.22-.22-.58-.33-1.1-.33h-2.61v3.26Z"/><path class="cls-4" d="M35.01,59.61c-.38,0-.57-.19-.57-.57v-8.06c0-.38.19-.57.57-.57h3.18c.83,0,1.46.22,1.9.66.44.44.66,1.07.66,1.9v.41c0,.83-.22,1.46-.66,1.91s-1.07.66-1.9.66h-2.61v3.09c0,.38-.19.57-.57.57h0ZM35.58,54.8h2.61c.52,0,.88-.11,1.1-.33s.33-.58.33-1.1v-.41c0-.51-.11-.88-.33-1.09-.22-.22-.58-.33-1.1-.33h-2.61s0,3.26,0,3.26Z"/><path class="cls-4" d="M45.51,59.61c-.19,0-.33-.05-.43-.14s-.14-.24-.14-.43v-7.48h-2.63c-.19,0-.33-.05-.43-.14s-.14-.24-.14-.43.05-.33.14-.43.24-.14.43-.14h6.4c.19,0,.33.05.43.14s.14.24.14.43-.05.33-.14.43-.24.14-.43.14h-2.63v7.48c0,.18-.05.32-.15.42-.09.1-.24.15-.42.15h0Z"/></g></g></svg>',psdIcon:'<?xml version="1.0" encoding="UTF-8"?><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64"><defs><style>.cls-1{fill:none;}.cls-2{fill:#fff;}.cls-3{isolation:isolate;opacity:.15;}.cls-3,.cls-4{fill:#005fad;}</style></defs><g id="Layer_2"><rect class="cls-1" width="64" height="64"/></g><g id="Layer_1"><g id="Document"><path class="cls-3" d="M42.52,13.11c-1.46,0-2.85-.58-3.88-1.61-1.03-1.03-1.61-2.42-1.61-3.88V0H12.5C10.6,0,8.78.75,7.44,2.1c-1.35,1.34-2.1,3.16-2.1,5.06v43.18c0,1.9.76,3.72,2.1,5.06,1.34,1.34,3.16,2.09,5.06,2.09h29.44c.94,0,1.87-.18,2.74-.54.87-.36,1.66-.89,2.32-1.55s1.19-1.45,1.55-2.32.55-1.8.55-2.74V13.1h-6.59.01Z"/><path class="cls-4" d="M49.11,13.11h-6.59c-1.46,0-2.85-.58-3.88-1.61-1.03-1.03-1.61-2.42-1.61-3.88V0s12.08,13.11,12.08,13.11Z"/><path class="cls-4" d="M54.36,45.5H21.04c-2.36,0-4.28,1.92-4.28,4.28v9.94c0,2.36,1.92,4.28,4.28,4.28h33.33c2.36,0,4.28-1.92,4.28-4.28v-9.94c0-2.36-1.92-4.28-4.28-4.28h-.01Z"/></g><g id="File"><path class="cls-2" d="M25.99,59.6c-.38,0-.57-.19-.57-.57v-8.06c0-.38.19-.57.57-.57h3.18c.83,0,1.46.22,1.9.66.44.44.66,1.07.66,1.9v.41c0,.83-.22,1.46-.66,1.91s-1.07.66-1.9.66h-2.61v3.09c0,.38-.19.57-.57.57h0ZM26.56,54.8h2.61c.52,0,.88-.11,1.1-.33s.33-.58.33-1.1v-.41c0-.51-.11-.88-.33-1.09-.22-.22-.58-.33-1.1-.33h-2.61v3.26Z"/><path class="cls-2" d="M36.05,59.6c-.77,0-1.38-.16-1.81-.47s-.7-.79-.81-1.44c-.02-.2.02-.35.12-.45s.24-.15.43-.15.33.05.41.14c.09.09.15.23.18.42.07.31.21.53.43.64.23.11.57.17,1.03.17h1.95c.58,0,.98-.1,1.19-.31s.32-.61.32-1.18-.11-.98-.33-1.19c-.22-.22-.61-.33-1.18-.33h-1.68c-.85,0-1.49-.21-1.91-.62-.41-.42-.62-1.06-.62-1.91s.2-1.48.61-1.89,1.04-.62,1.9-.62h1.61c.72,0,1.28.15,1.69.44.41.29.67.74.78,1.35.03.19,0,.34-.11.45-.1.1-.25.15-.45.15-.18,0-.32-.05-.41-.14s-.15-.23-.18-.41c-.07-.27-.21-.45-.41-.54-.2-.1-.51-.15-.92-.15h-1.61c-.54,0-.91.1-1.09.29-.19.19-.28.55-.28,1.08s.09.9.28,1.1.56.3,1.1.3h1.68c.89,0,1.55.22,1.99.65.44.43.66,1.1.66,2.01s-.22,1.56-.65,1.99-1.1.64-1.99.64h-1.95l.03-.02Z"/><path class="cls-2" d="M43.27,59.6c-.38,0-.57-.19-.57-.57v-8.06c0-.38.19-.57.57-.57h3.27c1.18,0,2.05.28,2.61.84s.84,1.42.84,2.61v2.31c0,1.18-.28,2.05-.83,2.61-.55.56-1.42.83-2.61.83,0,0-3.28,0-3.28,0ZM43.84,58.46h2.7c.58,0,1.04-.07,1.37-.21.34-.14.58-.38.72-.72s.22-.8.22-1.38v-2.31c0-.57-.07-1.03-.22-1.36-.14-.34-.38-.58-.72-.73-.33-.14-.79-.22-1.37-.22h-2.7v6.92h0Z"/><path class="cls-4" d="M18.27,34.78c-.23.44-.84.41-.96-.07-.35-1.31-.65-3.57.38-5.93.2-.46.85-.4,1.08.04.11.22.24.42.37.58.21.26.44.03.37-.3-.19-.95-.49-2.76-.08-3.44,0,0,.01-.02.02-.02.14-.2,2.08-2.92,4.38-4.84.37-.3.91-.05,1,.42.03.19.08.37.13.55.13.39.47.23.53-.18.08-.55.27-1.35.7-2.32.04-.09.1-.17.18-.22.71-.5,4.58-3.02,10.69-3.04.46,0,.74.51.49.9-.93,1.47-2.81,4.48-4.01,6.71-.82,1.56-1.72,3.07-2.69,4.54-.11.17-.28.33-.46.42-.38.2-1.11.56-1.87.79-.42.13-.94.55-.52.68.39.12,1.17.65.93.98-1.22,1.7-4.18,5.06-8.79,5.74-.2.03-.38.15-.46.34-.3.68-1.03,2.41-1.27,4.04-.03.18-.13.35-.3.44-.23.12-.57.29-.9.39s-.54-.2-.44-.52c.78-2.5,4.3-12.4,13.39-19.9.11-.09.1-.12-.03-.07-1.06.39-6.25,2.76-11.86,13.29h0Z"/></g></g></svg>',pubIcon:'<?xml version="1.0" encoding="UTF-8"?><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64"><defs><style>.cls-1{fill:none;}.cls-2{isolation:isolate;opacity:.15;}.cls-2,.cls-3{fill:#ff3e4c;}.cls-4{fill:#fff;}</style></defs><g id="Layer_2"><rect class="cls-1" width="64" height="64"/></g><g id="Layer_1"><g id="Document"><path class="cls-2" d="M42.52,13.11c-1.46,0-2.85-.58-3.88-1.61-1.03-1.03-1.61-2.42-1.61-3.88V0H12.5C10.6,0,8.78.75,7.44,2.1c-1.35,1.34-2.1,3.16-2.1,5.06v43.18c0,1.9.76,3.72,2.1,5.06,1.34,1.34,3.16,2.09,5.06,2.09h29.44c.94,0,1.87-.18,2.74-.54.87-.36,1.66-.89,2.32-1.55s1.19-1.45,1.55-2.32.55-1.8.55-2.74V13.1h-6.59.01Z"/><path class="cls-3" d="M49.11,13.11h-6.59c-1.46,0-2.85-.58-3.88-1.61-1.03-1.03-1.61-2.42-1.61-3.88V0s12.08,13.11,12.08,13.11Z"/><path class="cls-3" d="M54.36,45.5H21.04c-2.36,0-4.28,1.92-4.28,4.28v9.94c0,2.36,1.92,4.28,4.28,4.28h33.33c2.36,0,4.28-1.92,4.28-4.28v-9.94c0-2.36-1.92-4.28-4.28-4.28h-.01Z"/></g><g id="File"><path class="cls-3" d="M25.32,22h-10.25c-.23,0-.46-.09-.62-.26s-.26-.39-.26-.62c0-.12.02-.23.07-.34.04-.11.11-.2.19-.29.08-.08.18-.15.29-.19s.22-.07.34-.07h10.25c.23,0,.45.1.62.26.16.17.25.39.25.62s-.09.45-.26.62c-.16.16-.38.26-.61.26h0Z"/><path class="cls-3" d="M25.32,27.25h-10.25c-.23,0-.46-.09-.62-.26-.16-.16-.26-.39-.26-.62,0-.12.02-.23.07-.34.04-.11.11-.2.19-.29.08-.08.18-.15.29-.19s.22-.07.34-.07h10.25c.23,0,.46.09.62.26.16.17.26.39.26.62s-.09.46-.26.62-.39.26-.62.26h0Z"/><path class="cls-3" d="M25.32,32.51h-10.25c-.12,0-.23-.02-.34-.07-.11-.04-.2-.11-.29-.19-.08-.08-.15-.18-.19-.29s-.07-.22-.07-.34c0-.23.09-.46.26-.62.16-.16.39-.26.62-.26h10.25c.23,0,.46.09.62.26.16.16.26.39.26.62s-.09.46-.26.62c-.16.17-.39.26-.62.26h0Z"/><path class="cls-3" d="M25.32,37.76h-10.25c-.12,0-.23-.02-.34-.07-.11-.04-.2-.11-.29-.19-.08-.08-.15-.18-.19-.29s-.07-.22-.07-.34c0-.23.09-.46.26-.62.16-.16.39-.26.62-.26h10.25c.23,0,.46.09.62.26s.26.39.26.62-.09.46-.26.62-.39.26-.62.26h0Z"/><path class="cls-3" d="M39.32,22h-9.99c-.23,0-.46-.09-.62-.26s-.26-.39-.26-.62c0-.12.02-.23.07-.34.04-.11.11-.2.19-.29.08-.08.18-.15.29-.19s.22-.07.34-.07h9.99c.23,0,.46.09.62.26.17.17.26.39.26.62s-.09.46-.26.62-.39.26-.62.26h-.01Z"/><path class="cls-3" d="M39.32,27.25h-9.99c-.23,0-.46-.09-.62-.26-.16-.16-.26-.39-.26-.62,0-.12.02-.23.07-.34.04-.11.11-.2.19-.29.08-.08.18-.15.29-.19s.22-.07.34-.07h9.99c.23,0,.46.09.62.26.17.17.26.39.26.62s-.09.46-.26.62-.39.26-.62.26h-.01Z"/><path class="cls-3" d="M39.32,32.51h-9.99c-.12,0-.23-.02-.34-.07-.11-.04-.2-.11-.29-.19s-.15-.18-.19-.29-.07-.22-.07-.34c0-.23.09-.46.26-.62.16-.16.39-.26.62-.26h9.99c.23,0,.46.09.62.26s.26.39.26.62-.09.46-.26.62c-.17.17-.39.26-.62.26h.01Z"/><path class="cls-3" d="M39.32,37.76h-9.99c-.12,0-.23-.02-.34-.07-.11-.04-.2-.11-.29-.19s-.15-.18-.19-.29-.07-.22-.07-.34c0-.23.09-.46.26-.62.16-.16.39-.26.62-.26h9.99c.23,0,.46.09.62.26s.26.39.26.62-.09.46-.26.62c-.17.17-.39.26-.62.26h.01Z"/><path class="cls-4" d="M25.47,59.6c-.38,0-.57-.19-.57-.57v-8.06c0-.38.19-.57.57-.57h3.18c.83,0,1.46.22,1.9.66.44.44.66,1.07.66,1.9v.41c0,.83-.22,1.46-.66,1.91s-1.07.66-1.9.66h-2.61v3.09c0,.38-.19.57-.57.57h0ZM26.03,54.8h2.61c.52,0,.88-.11,1.1-.33s.33-.58.33-1.1v-.41c0-.51-.11-.88-.33-1.09-.22-.22-.58-.33-1.1-.33h-2.61v3.26Z"/><path class="cls-4" d="M36.19,59.6c-1.04,0-1.8-.25-2.3-.74-.49-.5-.74-1.26-.74-2.3v-5.59c0-.19.05-.33.14-.43s.24-.14.43-.14.33.05.43.14.14.24.14.43v5.59c0,.48.06.86.17,1.14.12.28.31.47.59.59.28.11.66.17,1.14.17h1.63c.48,0,.86-.06,1.14-.17.28-.12.47-.31.58-.59.12-.28.18-.66.18-1.14v-5.59c0-.19.05-.33.14-.43s.24-.14.43-.14.33.05.43.14.14.24.14.43v5.59c0,1.04-.25,1.8-.74,2.3-.49.49-1.26.74-2.3.74h-1.63Z"/><path class="cls-4" d="M44.18,59.6c-.38,0-.57-.19-.57-.57v-8.06c0-.38.19-.57.57-.57h3.54c.72,0,1.27.19,1.66.57s.58.92.58,1.63v.37c0,.61-.19,1.08-.58,1.42.72.4,1.08,1.14,1.08,2.21v.46c0,.83-.22,1.47-.66,1.9s-1.07.65-1.9.65h-3.72ZM44.75,58.46h3.15c.51,0,.88-.11,1.09-.33.22-.22.33-.58.33-1.09v-.46c0-.5-.11-.86-.32-1.07-.21-.22-.58-.33-1.11-.33h-3.15v3.27h0ZM44.75,54.05h3.22c.33,0,.55-.1.67-.31.12-.2.18-.46.18-.78v-.37c0-.39-.08-.67-.24-.82-.16-.16-.45-.24-.85-.24h-2.97v2.51h0Z"/></g></g></svg>',rarIcon:'<?xml version="1.0" encoding="UTF-8"?><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64"><defs><style>.cls-1{fill:none;}.cls-2,.cls-3{fill:#a140ff;}.cls-4{fill:#fff;}.cls-3{isolation:isolate;opacity:.15;}</style></defs><g id="Layer_2"><rect class="cls-1" width="64" height="64"/></g><g id="Layer_1"><g id="Document"><path class="cls-3" d="M42.52,13.11c-1.46,0-2.85-.58-3.88-1.61-1.03-1.03-1.61-2.42-1.61-3.88V0H12.5C10.6,0,8.78.75,7.44,2.1c-1.35,1.34-2.1,3.16-2.1,5.06v43.18c0,1.9.76,3.72,2.1,5.06,1.34,1.34,3.16,2.09,5.06,2.09h29.44c.94,0,1.87-.18,2.74-.54.87-.36,1.66-.89,2.32-1.55s1.19-1.45,1.55-2.32.55-1.8.55-2.74V13.1h-6.59.01Z"/><path class="cls-2" d="M49.11,13.11h-6.59c-1.46,0-2.85-.58-3.88-1.61-1.03-1.03-1.61-2.42-1.61-3.88V0s12.08,13.11,12.08,13.11Z"/><path class="cls-2" d="M54.36,45.5H21.04c-2.36,0-4.28,1.92-4.28,4.28v9.94c0,2.36,1.92,4.28,4.28,4.28h33.33c2.36,0,4.28-1.92,4.28-4.28v-9.94c0-2.36-1.92-4.28-4.28-4.28h-.01Z"/></g><g id="File"><path class="cls-2" d="M30.3,38.13h-15.19c-.24,0-.47-.1-.64-.27s-.27-.4-.27-.64.1-.47.27-.64.4-.27.64-.27h15.19c.12,0,.24.02.35.07s.21.11.3.2c.08.08.15.18.2.3.05.11.07.23.07.35,0,.24-.1.47-.27.64s-.4.27-.64.27h-.01Z"/><path class="cls-2" d="M30.3,32.76h-15.19c-.24,0-.47-.1-.64-.27s-.27-.4-.27-.64.1-.47.27-.64.4-.27.64-.27h15.19c.24,0,.47.1.64.27s.27.4.27.64-.1.47-.27.64-.4.27-.64.27Z"/><path class="cls-2" d="M30.3,27.4h-15.19c-.24,0-.47-.1-.64-.27s-.27-.4-.27-.64.1-.47.27-.64.4-.27.64-.27h15.19c.24,0,.47.1.64.27s.27.4.27.64c0,.12-.02.24-.07.35s-.11.21-.2.29c-.08.08-.19.15-.3.2-.11.05-.23.07-.35.07h.01Z"/><path class="cls-2" d="M30.3,22.03h-15.19c-.24,0-.47-.1-.64-.27s-.27-.4-.27-.64.1-.47.27-.64.4-.27.64-.27h15.19c.12,0,.24.02.35.07s.21.11.3.2c.08.08.15.18.2.3.05.11.07.23.07.35s-.02.24-.07.35-.11.21-.2.3c-.08.08-.19.15-.3.2-.11.05-.23.07-.35.07v-.02Z"/><path class="cls-2" d="M37.1,38.54c-.82,0-1.6-.33-2.18-.9-.58-.58-.9-1.36-.9-2.18v-2.6c0-.27.22-.49.49-.49h5.19c.27,0,.49.22.49.49v2.6c0,.82-.33,1.6-.9,2.18s-1.36.9-2.18.9h-.01ZM36.08,33.95c-.27,0-.49.22-.49.49v1.02c0,.4.16.78.44,1.06s.67.44,1.06.44.78-.16,1.06-.44.44-.67.44-1.06v-1.02c0-.27-.22-.49-.49-.49h-2.04.02Z"/><path class="cls-2" d="M34.75,31.82h1.63c.4,0,.73-.33.73-.73v-1.63c0-.4-.33-.73-.73-.73h-1.63c-.4,0-.73.33-.73.73v1.63c0,.4.33.73.73.73Z"/><path class="cls-2" d="M37.84,28.73h1.63c.4,0,.73-.33.73-.73v-1.63c0-.4-.33-.73-.73-.73h-1.63c-.4,0-.73.33-.73.73v1.63c0,.4.33.73.73.73Z"/><path class="cls-2" d="M34.75,25.64h1.63c.4,0,.73-.33.73-.73v-1.63c0-.4-.33-.73-.73-.73h-1.63c-.4,0-.73.33-.73.73v1.63c0,.4.33.73.73.73Z"/><path class="cls-2" d="M37.84,22.55h1.63c.4,0,.73-.33.73-.73v-1.63c0-.4-.33-.73-.73-.73h-1.63c-.4,0-.73.33-.73.73v1.63c0,.4.33.73.73.73Z"/><path class="cls-4" d="M31.8,59.5c-.15.09-.29.12-.42.09s-.25-.13-.34-.27l-2.07-3.45h-1.87v3.05c0,.37-.19.56-.56.56s-.56-.19-.56-.56v-7.95c0-.37.19-.56.56-.56h3.13c.82,0,1.44.22,1.87.66.44.43.66,1.06.66,1.87v.4c0,.71-.17,1.28-.5,1.7-.33.42-.81.68-1.43.78l1.75,2.92c.17.31.1.57-.21.76h-.01ZM27.08,54.74h2.57c.51,0,.87-.11,1.08-.32s.32-.58.32-1.08v-.4c0-.5-.11-.86-.32-1.08s-.58-.33-1.08-.33h-2.57v3.21Z"/><path class="cls-4" d="M33.89,59.42c-.36-.14-.46-.38-.32-.74l3.18-7.84c.13-.29.34-.44.63-.44h.03c.29,0,.49.16.59.44l3.24,7.84c.14.35.04.6-.31.74-.35.14-.6.04-.74-.31l-.72-1.75h-4.17l-.69,1.75c-.14.35-.38.45-.72.31h0ZM35.74,56.23h3.26l-1.67-4.05-1.6,4.05h.01Z"/><path class="cls-4" d="M49.07,59.5c-.15.09-.29.12-.42.09s-.25-.13-.34-.27l-2.07-3.45h-1.87v3.05c0,.37-.19.56-.56.56s-.56-.19-.56-.56v-7.95c0-.37.19-.56.56-.56h3.13c.82,0,1.44.22,1.87.66.44.43.66,1.06.66,1.87v.4c0,.71-.17,1.28-.5,1.7-.33.42-.81.68-1.43.78l1.75,2.92c.17.31.1.57-.21.76h-.01ZM44.35,54.74h2.57c.51,0,.87-.11,1.08-.32s.32-.58.32-1.08v-.4c0-.5-.11-.86-.32-1.08s-.58-.33-1.08-.33h-2.57v3.21Z"/></g></g></svg>',rssIcon:'<?xml version="1.0" encoding="UTF-8"?><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64"><defs><style>.cls-1{fill:none;}.cls-2,.cls-3,.cls-4{fill:#ff9908;}.cls-5{fill:#fff;}.cls-3{isolation:isolate;opacity:.15;}.cls-4{fill-rule:evenodd;}</style></defs><g id="Layer_2"><rect class="cls-1" width="64" height="64"/></g><g id="Layer_1"><g id="Document"><path class="cls-3" d="M42.52,13.11c-1.46,0-2.85-.58-3.88-1.61-1.03-1.03-1.61-2.42-1.61-3.88V0H12.5C10.6,0,8.78.75,7.44,2.1c-1.35,1.34-2.1,3.16-2.1,5.06v43.18c0,1.9.76,3.72,2.1,5.06,1.34,1.34,3.16,2.09,5.06,2.09h29.44c.94,0,1.87-.18,2.74-.54.87-.36,1.66-.89,2.32-1.55s1.19-1.45,1.55-2.32.55-1.8.55-2.74V13.1h-6.59.01Z"/><path class="cls-2" d="M49.11,13.11h-6.59c-1.46,0-2.85-.58-3.88-1.61-1.03-1.03-1.61-2.42-1.61-3.88V0s12.08,13.11,12.08,13.11Z"/><path class="cls-2" d="M54.36,45.5H21.04c-2.36,0-4.28,1.92-4.28,4.28v9.94c0,2.36,1.92,4.28,4.28,4.28h33.33c2.36,0,4.28-1.92,4.28-4.28v-9.94c0-2.36-1.92-4.28-4.28-4.28h-.01Z"/></g><g id="File"><path class="cls-2" d="M17.18,42c1.65,0,2.99-1.34,2.99-2.99s-1.34-2.99-2.99-2.99-2.99,1.34-2.99,2.99,1.34,2.99,2.99,2.99Z"/><path class="cls-4" d="M36.28,40.35c.07.91.8,1.65,1.71,1.65h.6c.91,0,1.66-.74,1.6-1.65-.41-6.3-3.09-12.27-7.58-16.76s-10.46-7.18-16.76-7.58c-.91-.06-1.65.69-1.65,1.6v.6c0,.91.74,1.64,1.65,1.71,5.27.4,10.25,2.67,14.01,6.43s6.04,8.74,6.43,14.01h0ZM15.83,28.43c-.9-.11-1.64-.84-1.64-1.75v-.6c0-.91.74-1.66,1.65-1.57,4.05.39,7.87,2.17,10.77,5.07s4.69,6.72,5.07,10.77c.09.91-.66,1.65-1.57,1.65h-.6c-.91,0-1.64-.74-1.75-1.64-.37-3.02-1.74-5.85-3.91-8.02s-5-3.54-8.02-3.91h0Z"/><path class="cls-5" d="M31.32,59.5c-.15.09-.29.12-.42.09s-.25-.13-.34-.27l-2.07-3.45h-1.87v3.05c0,.37-.19.56-.56.56s-.56-.19-.56-.56v-7.95c0-.37.19-.56.56-.56h3.13c.82,0,1.44.22,1.87.66.44.43.66,1.06.66,1.87v.4c0,.71-.17,1.28-.5,1.7-.33.42-.81.68-1.43.78l1.75,2.92c.17.31.1.57-.21.76h-.01ZM26.61,54.74h2.57c.51,0,.87-.11,1.08-.32s.32-.58.32-1.08v-.4c0-.5-.11-.86-.32-1.08s-.58-.33-1.08-.33h-2.57v3.21Z"/><path class="cls-5" d="M36.12,59.47c-.76,0-1.36-.15-1.79-.46-.42-.31-.69-.78-.8-1.42-.02-.2.02-.34.12-.44s.24-.15.43-.15.32.04.41.13.15.23.18.41c.07.31.21.52.43.64.22.11.56.17,1.02.17h1.93c.58,0,.97-.1,1.17-.31s.31-.6.31-1.16-.11-.97-.32-1.18-.6-.32-1.16-.32h-1.66c-.84,0-1.47-.21-1.88-.62s-.61-1.04-.61-1.89.2-1.46.6-1.87c.41-.41,1.03-.61,1.87-.61h1.59c.71,0,1.26.14,1.67.43s.66.73.77,1.33c.03.19,0,.34-.11.44-.1.1-.25.15-.44.15-.18,0-.31-.05-.4-.14s-.15-.23-.17-.41c-.07-.26-.21-.44-.41-.54-.2-.1-.5-.15-.9-.15h-1.59c-.54,0-.89.1-1.08.29-.18.19-.27.54-.27,1.06s.09.89.28,1.08.55.29,1.08.29h1.66c.88,0,1.53.21,1.96.64s.65,1.09.65,1.98-.21,1.54-.64,1.97c-.43.42-1.08.63-1.97.63h-1.93v.03Z"/><path class="cls-5" d="M45.39,59.47c-.76,0-1.36-.15-1.79-.46-.42-.31-.69-.78-.8-1.42-.02-.2.02-.34.12-.44s.24-.15.43-.15.32.04.41.13.15.23.18.41c.07.31.21.52.43.64.22.11.56.17,1.02.17h1.93c.58,0,.97-.1,1.17-.31.21-.21.31-.6.31-1.16s-.11-.97-.32-1.18-.6-.32-1.16-.32h-1.66c-.84,0-1.47-.21-1.88-.62s-.61-1.04-.61-1.89.2-1.46.6-1.87c.41-.41,1.03-.61,1.87-.61h1.59c.71,0,1.26.14,1.67.43s.66.73.77,1.33c.03.19,0,.34-.11.44-.1.1-.25.15-.44.15-.18,0-.31-.05-.4-.14s-.15-.23-.17-.41c-.07-.26-.21-.44-.41-.54-.2-.1-.5-.15-.9-.15h-1.59c-.54,0-.89.1-1.08.29-.18.19-.27.54-.27,1.06s.09.89.28,1.08.55.29,1.08.29h1.66c.88,0,1.53.21,1.96.64s.65,1.09.65,1.98-.21,1.54-.64,1.97c-.43.42-1.08.63-1.97.63h-1.93v.03Z"/></g></g></svg>',svgIcon:'<?xml version="1.0" encoding="UTF-8"?><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64"><defs><style>.cls-1{fill:none;}.cls-2,.cls-3{fill:#ff9908;}.cls-4{fill:#fff;}.cls-3{isolation:isolate;opacity:.15;}</style></defs><g id="Layer_2"><rect class="cls-1" width="64" height="64"/></g><g id="Layer_1"><g id="Document"><path class="cls-3" d="M42.52,13.11c-1.46,0-2.85-.58-3.88-1.61-1.03-1.03-1.61-2.42-1.61-3.88V0H12.5C10.6,0,8.78.75,7.44,2.1c-1.35,1.34-2.1,3.16-2.1,5.06v43.18c0,1.9.76,3.72,2.1,5.06,1.34,1.34,3.16,2.09,5.06,2.09h29.44c.94,0,1.87-.18,2.74-.54.87-.36,1.66-.89,2.32-1.55s1.19-1.45,1.55-2.32.55-1.8.55-2.74V13.1h-6.59.01Z"/><path class="cls-2" d="M49.11,13.11h-6.59c-1.46,0-2.85-.58-3.88-1.61-1.03-1.03-1.61-2.42-1.61-3.88V0s12.08,13.11,12.08,13.11Z"/><path class="cls-2" d="M54.36,45.5H21.04c-2.36,0-4.28,1.92-4.28,4.28v9.94c0,2.36,1.92,4.28,4.28,4.28h33.33c2.36,0,4.28-1.92,4.28-4.28v-9.94c0-2.36-1.92-4.28-4.28-4.28h-.01Z"/></g><g id="File"><path class="cls-2" d="M35.82,33.17h-.53c0-2.13-.85-4.18-2.36-5.69s-3.55-2.36-5.69-2.36-4.18.85-5.69,2.36-2.36,3.55-2.36,5.69h-.53c0-2.27.91-4.45,2.51-6.06,1.61-1.61,3.79-2.51,6.06-2.51s4.45.91,6.06,2.51c1.61,1.61,2.51,3.79,2.51,6.06h.02Z"/><path class="cls-2" d="M39.43,24.6H15.06v.53h24.37v-.53Z"/><path class="cls-2" d="M19.35,32.33h-.84c-.23,0-.42.19-.42.42v.84c0,.23.19.42.42.42h.84c.23,0,.42-.19.42-.42v-.84c0-.23-.19-.42-.42-.42Z"/><path class="cls-2" d="M35.97,32.33h-.84c-.23,0-.42.19-.42.42v.84c0,.23.19.42.42.42h.84c.23,0,.42-.19.42-.42v-.84c0-.23-.19-.42-.42-.42Z"/><path class="cls-2" d="M27.66,23.99h-.84c-.23,0-.42.19-.42.42v.84c0,.23.19.42.42.42h.84c.23,0,.42-.19.42-.42v-.84c0-.23-.19-.42-.42-.42Z"/><path class="cls-2" d="M15.04,25.68c.47,0,.84-.38.84-.84s-.38-.84-.84-.84-.84.38-.84.84.38.84.84.84Z"/><path class="cls-2" d="M39.35,25.68c.47,0,.84-.38.84-.84s-.38-.84-.84-.84-.84.38-.84.84.38.84.84.84Z"/><path class="cls-4" d="M27.69,59.6c-.77,0-1.38-.16-1.81-.47s-.7-.79-.81-1.44c-.02-.2.02-.35.12-.45s.24-.15.43-.15.33.05.41.14c.09.09.15.23.18.42.07.31.21.53.43.64.23.11.57.17,1.03.17h1.95c.58,0,.98-.1,1.19-.31.21-.21.32-.61.32-1.18s-.11-.98-.33-1.19c-.22-.22-.61-.33-1.18-.33h-1.68c-.85,0-1.49-.21-1.9-.62-.41-.42-.62-1.06-.62-1.91s.2-1.48.61-1.89,1.04-.62,1.9-.62h1.61c.72,0,1.28.15,1.69.44.41.29.67.74.78,1.35.03.19,0,.34-.11.45-.1.1-.25.15-.45.15-.18,0-.32-.05-.41-.14s-.15-.23-.18-.41c-.07-.27-.21-.45-.41-.54-.2-.1-.51-.15-.91-.15h-1.61c-.54,0-.91.1-1.09.29-.19.19-.28.55-.28,1.08s.09.9.28,1.1.56.3,1.1.3h1.68c.89,0,1.55.22,1.99.65s.66,1.1.66,2.01-.22,1.56-.65,1.99c-.43.42-1.1.64-1.99.64h-1.95v-.02Z"/><path class="cls-4" d="M37.68,59.6c-.23,0-.42-.15-.56-.45l-3.35-7.93c-.07-.16-.09-.3-.05-.42.03-.13.14-.23.31-.31.37-.19.63-.09.79.28l3.16,7.5h-.39l3.08-7.5c.15-.37.41-.47.79-.28.16.08.26.19.29.31.04.12.03.26-.03.42l-3.37,7.93c-.14.3-.34.45-.61.45h-.06Z"/><path class="cls-4" d="M45.94,59.6c-1.03,0-1.8-.25-2.3-.74-.49-.5-.74-1.26-.74-2.3v-3.12c0-1.04.25-1.81.74-2.3.49-.5,1.25-.74,2.28-.73h1.64c.85,0,1.5.18,1.95.53s.71.9.78,1.65c.03.19,0,.33-.11.43s-.24.15-.43.15c-.34,0-.54-.19-.6-.57-.05-.42-.19-.7-.43-.84s-.62-.22-1.15-.22h-1.64c-.48,0-.86.05-1.13.16s-.47.31-.58.59-.17.66-.17,1.15v3.12c0,.48.06.86.17,1.14.12.28.31.47.59.59.28.11.66.17,1.14.17h1.63c.42,0,.75-.05.98-.14.24-.09.41-.26.5-.49s.14-.57.14-1v-.64h-1.06c-.38,0-.57-.2-.57-.58s.19-.57.57-.57h1.63c.38,0,.57.2.57.58v1.21c0,.96-.22,1.66-.67,2.11-.45.44-1.15.66-2.09.66h-1.64Z"/></g></g></svg>',tiffIcon:'<?xml version="1.0" encoding="UTF-8"?><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64"><defs><style>.cls-1{fill:none;}.cls-2,.cls-3{fill:#a140ff;}.cls-4{fill:#fff;}.cls-3{isolation:isolate;opacity:.15;}</style></defs><g id="Layer_2"><rect class="cls-1" width="64" height="64"/></g><g id="Layer_1"><g id="Document"><path class="cls-3" d="M42.52,13.11c-1.46,0-2.85-.58-3.88-1.61-1.03-1.03-1.61-2.42-1.61-3.88V0H12.5C10.6,0,8.78.75,7.44,2.1c-1.35,1.34-2.1,3.16-2.1,5.06v43.18c0,1.9.76,3.72,2.1,5.06,1.34,1.34,3.16,2.09,5.06,2.09h29.44c.94,0,1.87-.18,2.74-.54.87-.36,1.66-.89,2.32-1.55s1.19-1.45,1.55-2.32.55-1.8.55-2.74V13.1h-6.59.01Z"/><path class="cls-2" d="M49.11,13.11h-6.59c-1.46,0-2.85-.58-3.88-1.61-1.03-1.03-1.61-2.42-1.61-3.88V0s12.08,13.11,12.08,13.11Z"/><path class="cls-2" d="M54.36,45.5H21.04c-2.36,0-4.28,1.92-4.28,4.28v9.94c0,2.36,1.92,4.28,4.28,4.28h33.33c2.36,0,4.28-1.92,4.28-4.28v-9.94c0-2.36-1.92-4.28-4.28-4.28h-.01Z"/></g><g id="File"><path class="cls-2" d="M34.67,42h-14.96c-1.46,0-2.87-.58-3.9-1.62-1.04-1.04-1.62-2.44-1.62-3.9v-14.96c0-1.46.58-2.87,1.62-3.9,1.04-1.04,2.44-1.62,3.9-1.62h14.96c1.46,0,2.87.59,3.9,1.62s1.62,2.44,1.62,3.9v14.96c0,1.46-.58,2.87-1.62,3.9-1.03,1.04-2.44,1.62-3.9,1.62ZM19.72,18.44c-.82,0-1.6.33-2.18.9s-.9,1.36-.9,2.18v14.96c0,.82.33,1.6.9,2.18s1.36.9,2.18.9h14.96c.82,0,1.6-.33,2.18-.9.58-.58.9-1.36.9-2.18v-14.96c0-.82-.33-1.6-.9-2.18-.58-.58-1.36-.9-2.18-.9h-14.96Z"/><path class="cls-2" d="M38.98,33.63v2.84c0,1.14-.45,2.23-1.26,3.04-.81.81-1.9,1.26-3.04,1.26h-14.96c-1.14,0-2.23-.45-3.04-1.26-.81-.81-1.26-1.9-1.26-3.04v-4.77c2.39-.51,6.04-.68,10.47,1.09l2.74-2.61,1.87,4.74s.5-1.74,2.12-1.5,4.24,1.12,5.36.38c.3-.17.66-.23,1-.17h0Z"/><path class="cls-2" d="M33.74,24.58c.92,0,1.66-.74,1.66-1.66s-.74-1.66-1.66-1.66-1.66.74-1.66,1.66.74,1.66,1.66,1.66h0Z"/><path class="cls-4" d="M28.03,59.6c-.19,0-.33-.05-.43-.14s-.14-.24-.14-.43v-7.48h-2.63c-.19,0-.33-.05-.43-.14s-.14-.24-.14-.43.05-.33.14-.43.24-.14.43-.14h6.4c.19,0,.33.05.43.14s.14.24.14.43-.05.33-.14.43-.24.14-.43.14h-2.63v7.48c0,.18-.05.32-.15.42-.09.1-.24.15-.42.15h0Z"/><path class="cls-4" d="M34.18,59.6c-.19,0-.34-.05-.43-.14s-.14-.24-.14-.43v-8.05c0-.2.05-.34.14-.43s.24-.14.43-.14.34.05.43.14.14.24.14.43v8.05c0,.19-.05.34-.14.43s-.24.14-.43.14Z"/><path class="cls-4" d="M38.14,59.6c-.38,0-.57-.19-.57-.57v-8.06c0-.38.19-.57.57-.57h4.99c.18,0,.31.05.41.16.1.1.16.24.16.41,0,.38-.19.57-.57.57h-4.42v2.85h2.73c.38,0,.57.19.57.57s-.19.57-.57.57h-2.73v3.5c0,.38-.19.57-.57.57Z"/><path class="cls-4" d="M45.68,59.6c-.38,0-.57-.19-.57-.57v-8.06c0-.38.19-.57.57-.57h4.99c.18,0,.31.05.41.16.1.1.16.24.16.41,0,.38-.19.57-.57.57h-4.42v2.85h2.73c.38,0,.57.19.57.57s-.19.57-.57.57h-2.73v3.5c0,.38-.19.57-.57.57Z"/></g></g></svg>',txtIcon:'<?xml version="1.0" encoding="UTF-8"?><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64"><defs><style>.cls-1{fill:none;}.cls-2,.cls-3{fill:#0072ff;}.cls-4{fill:#fff;}.cls-3{isolation:isolate;opacity:.15;}</style></defs><g id="Layer_2"><rect class="cls-1" width="64" height="64"/></g><g id="Layer_1"><g id="Document"><path class="cls-3" d="M42.52,13.11c-1.46,0-2.85-.58-3.88-1.61-1.03-1.03-1.61-2.42-1.61-3.88V0H12.5C10.6,0,8.78.75,7.44,2.1c-1.35,1.34-2.1,3.16-2.1,5.06v43.18c0,1.9.76,3.72,2.1,5.06,1.34,1.34,3.16,2.09,5.06,2.09h29.44c.94,0,1.87-.18,2.74-.54.87-.36,1.66-.89,2.32-1.55s1.19-1.45,1.55-2.32.55-1.8.55-2.74V13.1h-6.59.01Z"/><path class="cls-2" d="M49.11,13.11h-6.59c-1.46,0-2.85-.58-3.88-1.61-1.03-1.03-1.61-2.42-1.61-3.88V0s12.08,13.11,12.08,13.11Z"/><path class="cls-2" d="M54.36,45.5H21.04c-2.36,0-4.28,1.92-4.28,4.28v9.94c0,2.36,1.92,4.28,4.28,4.28h33.33c2.36,0,4.28-1.92,4.28-4.28v-9.94c0-2.36-1.92-4.28-4.28-4.28h-.01Z"/></g><g id="File"><path class="cls-2" d="M39.32,22H15.07c-.23,0-.46-.09-.62-.26-.16-.16-.26-.39-.26-.62s.09-.46.26-.62.39-.26.62-.26h24.24c.23,0,.46.09.62.26s.26.39.26.62-.09.46-.26.62c-.16.16-.39.26-.62.26Z"/><path class="cls-2" d="M39.32,27.25H15.07c-.23,0-.46-.09-.62-.26-.16-.16-.26-.39-.26-.62s.09-.46.26-.62c.16-.17.39-.26.62-.26h24.24c.23,0,.46.09.62.26s.26.39.26.62-.09.46-.26.62c-.16.16-.39.26-.62.26Z"/><path class="cls-2" d="M39.32,32.51H15.07c-.23,0-.46-.09-.62-.26s-.26-.39-.26-.62.09-.46.26-.62c.16-.16.39-.26.62-.26h24.24c.23,0,.46.09.62.26.16.16.26.39.26.62s-.09.46-.26.62c-.16.17-.39.26-.62.26Z"/><path class="cls-2" d="M39.32,37.76H15.07c-.23,0-.46-.09-.62-.26-.16-.16-.26-.39-.26-.62s.09-.46.26-.62.39-.26.62-.26h24.24c.23,0,.46.09.62.26s.26.39.26.62-.09.46-.26.62c-.16.16-.39.26-.62.26h0Z"/><path class="cls-4" d="M29.3,59.59c-.19,0-.33-.05-.43-.14s-.14-.24-.14-.43v-7.47h-2.63c-.19,0-.33-.05-.43-.14s-.14-.24-.14-.43.05-.33.14-.43.24-.14.43-.14h6.39c.19,0,.33.05.43.14s.14.24.14.43-.05.33-.14.43-.24.14-.43.14h-2.63v7.47c0,.18-.05.32-.15.42-.09.1-.23.15-.42.15h.01Z"/><path class="cls-4" d="M34.64,59.47c-.3-.21-.35-.47-.14-.8l2.48-3.66-2.61-3.69c-.2-.3-.15-.56.15-.8.31-.21.57-.16.79.15l2.43,3.4,2.44-3.4c.23-.3.5-.34.79-.12.31.23.35.49.14.79l-2.67,3.71,2.56,3.6c.21.31.16.58-.15.81-.31.21-.57.16-.79-.15l-2.36-3.32-2.25,3.33c-.21.29-.47.34-.8.14h0Z"/><path class="cls-4" d="M46.1,59.59c-.19,0-.33-.05-.43-.14s-.14-.24-.14-.43v-7.47h-2.63c-.19,0-.33-.05-.43-.14s-.14-.24-.14-.43.05-.33.14-.43.24-.14.43-.14h6.39c.19,0,.33.05.43.14s.14.24.14.43-.05.33-.14.43-.24.14-.43.14h-2.63v7.47c0,.18-.05.32-.15.42-.09.1-.23.15-.42.15h.01Z"/></g></g></svg>',wavIcon:'<?xml version="1.0" encoding="UTF-8"?><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64"><defs><style>.cls-1{fill:none;}.cls-2,.cls-3{fill:#00c650;}.cls-4{fill:#fff;}.cls-3{isolation:isolate;opacity:.15;}</style></defs><g id="Layer_2"><rect class="cls-1" width="64" height="64"/></g><g id="Layer_1"><g id="Document"><path class="cls-3" d="M42.52,13.11c-1.46,0-2.85-.58-3.88-1.61-1.03-1.03-1.61-2.42-1.61-3.88V0H12.5C10.6,0,8.78.75,7.44,2.1c-1.35,1.34-2.1,3.16-2.1,5.06v43.18c0,1.9.76,3.72,2.1,5.06,1.34,1.34,3.16,2.09,5.06,2.09h29.44c.94,0,1.87-.18,2.74-.54.87-.36,1.66-.89,2.32-1.55s1.19-1.45,1.55-2.32.55-1.8.55-2.74V13.1h-6.59.01Z"/><path class="cls-2" d="M49.11,13.11h-6.59c-1.46,0-2.85-.58-3.88-1.61-1.03-1.03-1.61-2.42-1.61-3.88V0s12.08,13.11,12.08,13.11Z"/><path class="cls-2" d="M54.36,45.5H21.04c-2.36,0-4.28,1.92-4.28,4.28v9.94c0,2.36,1.92,4.28,4.28,4.28h33.33c2.36,0,4.28-1.92,4.28-4.28v-9.94c0-2.36-1.92-4.28-4.28-4.28h-.01Z"/></g><g id="File"><path class="cls-2" d="M40.19,37.18h-3.76v-15.14c0-.51-.2-.99-.56-1.35-.36-.36-.84-.56-1.35-.56h-9.58c-.51,0-.99.2-1.35.56-.36.36-.56.84-.56,1.35v15.14h-3.75v-16.42c0-1.16.46-2.28,1.28-3.1.82-.82,1.94-1.28,3.1-1.28h12.11c1.16,0,2.28.46,3.1,1.28s1.28,1.94,1.28,3.1l.03,16.42h.01Z"/><path class="cls-2" d="M35.75,41.62c2.45,0,4.44-1.99,4.44-4.44s-1.99-4.44-4.44-4.44-4.44,1.99-4.44,4.44,1.99,4.44,4.44,4.44h0Z"/><path class="cls-2" d="M18.63,41.62c2.45,0,4.44-1.99,4.44-4.44s-1.99-4.44-4.44-4.44-4.44,1.99-4.44,4.44,1.99,4.44,4.44,4.44Z"/><path class="cls-4" d="M26.57,59.59c-.25,0-.42-.16-.53-.49l-2.5-7.93c-.05-.17-.03-.34.07-.51.11-.17.26-.26.47-.26.11,0,.21.04.31.11s.17.18.22.32l2.21,7.03h-.3l2.1-6.96c.05-.16.13-.28.25-.37.12-.08.25-.12.37-.12.14,0,.27.04.39.12s.21.2.26.37l2.1,6.96h-.3l2.21-7.03c.05-.15.12-.25.21-.32.09-.07.2-.1.3-.1.2,0,.36.08.47.23s.14.33.08.53l-2.5,7.93c-.11.32-.31.49-.6.49h-.03c-.3,0-.5-.16-.6-.49l-2.18-7.05h.3l-2.19,7.05c-.05.16-.11.28-.2.37-.09.08-.22.12-.39.12h0Z"/><path class="cls-4" d="M35.89,59.53c-.36-.14-.47-.39-.32-.74l3.22-7.93c.14-.3.35-.45.64-.45h.03c.29,0,.49.16.6.45l3.28,7.93c.14.36.04.6-.31.74-.36.14-.6.04-.74-.31l-.73-1.77h-4.22l-.7,1.77c-.14.35-.38.46-.73.31h-.02ZM37.75,56.31h3.3l-1.69-4.1-1.62,4.1h0Z"/><path class="cls-4" d="M47.8,59.59c-.23,0-.42-.15-.55-.45l-3.34-7.92c-.07-.16-.09-.3-.05-.42.03-.13.14-.23.31-.31.37-.18.63-.09.79.28l3.16,7.49h-.39l3.08-7.49c.15-.37.41-.46.79-.28.16.08.26.18.29.31.04.12.03.26-.03.42l-3.37,7.92c-.14.3-.34.45-.61.45h-.08Z"/></g></g></svg>',wmaIcon:'<?xml version="1.0" encoding="UTF-8"?><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64"><defs><style>.cls-1{fill:none;}.cls-2,.cls-3{fill:#ff9908;}.cls-4{fill:#fff;}.cls-3{isolation:isolate;opacity:.15;}</style></defs><g id="Layer_2"><rect class="cls-1" width="64" height="64"/></g><g id="Layer_1"><g id="Document"><path class="cls-3" d="M42.52,13.11c-1.46,0-2.85-.58-3.88-1.61-1.03-1.03-1.61-2.42-1.61-3.88V0H12.5C10.6,0,8.78.75,7.44,2.1c-1.35,1.34-2.1,3.16-2.1,5.06v43.18c0,1.9.76,3.72,2.1,5.06,1.34,1.34,3.16,2.09,5.06,2.09h29.44c.94,0,1.87-.18,2.74-.54.87-.36,1.66-.89,2.32-1.55s1.19-1.45,1.55-2.32.55-1.8.55-2.74V13.1h-6.59.01Z"/><path class="cls-2" d="M49.11,13.11h-6.59c-1.46,0-2.85-.58-3.88-1.61-1.03-1.03-1.61-2.42-1.61-3.88V0s12.08,13.11,12.08,13.11Z"/><path class="cls-2" d="M54.36,45.5H21.04c-2.36,0-4.28,1.92-4.28,4.28v9.94c0,2.36,1.92,4.28,4.28,4.28h33.33c2.36,0,4.28-1.92,4.28-4.28v-9.94c0-2.36-1.92-4.28-4.28-4.28h-.01Z"/></g><g id="File"><path class="cls-2" d="M40.19,37.18h-3.76v-15.14c0-.51-.2-.99-.56-1.35-.36-.36-.84-.56-1.35-.56h-9.58c-.51,0-.99.2-1.35.56-.36.36-.56.84-.56,1.35v15.14h-3.75v-16.42c0-1.16.46-2.28,1.28-3.1.82-.82,1.94-1.28,3.1-1.28h12.11c1.16,0,2.28.46,3.1,1.28s1.28,1.94,1.28,3.1l.03,16.42h.01Z"/><path class="cls-2" d="M35.75,41.62c2.45,0,4.44-1.99,4.44-4.44s-1.99-4.44-4.44-4.44-4.44,1.99-4.44,4.44,1.99,4.44,4.44,4.44h0Z"/><path class="cls-2" d="M18.63,41.62c2.45,0,4.44-1.99,4.44-4.44s-1.99-4.44-4.44-4.44-4.44,1.99-4.44,4.44,1.99,4.44,4.44,4.44Z"/><path class="cls-4" d="M24.91,59.59c-.25,0-.42-.16-.53-.49l-2.5-7.93c-.05-.17-.03-.34.07-.51.11-.17.26-.26.47-.26.11,0,.21.04.31.11s.17.18.22.32l2.21,7.03h-.3l2.1-6.96c.05-.16.13-.28.25-.37.12-.08.25-.12.37-.12.14,0,.27.04.39.12s.21.2.26.37l2.1,6.96h-.3l2.21-7.03c.05-.15.12-.25.21-.32.09-.07.2-.1.3-.1.2,0,.36.08.47.23s.14.33.08.53l-2.5,7.93c-.11.32-.31.49-.6.49h-.03c-.3,0-.5-.16-.6-.49l-2.18-7.05h.3l-2.19,7.05c-.05.16-.11.28-.2.37-.09.08-.22.12-.39.12h0Z"/><path class="cls-4" d="M35.64,59.59c-.38,0-.57-.19-.57-.57v-8.04c0-.38.19-.57.57-.57.25,0,.46.12.62.37l3.19,4.81-.24.04,3.22-4.85c.15-.24.38-.37.69-.37s.46.19.46.57v8.04c0,.38-.19.57-.57.57s-.57-.19-.57-.57v-6.9l.35.12-2.84,4.18c-.17.24-.4.37-.69.37-.2,0-.39-.12-.55-.37l-2.84-4.18.34.09v6.69c0,.38-.19.57-.57.57Z"/><path class="cls-4" d="M45.96,59.54c-.36-.14-.47-.39-.32-.74l3.22-7.93c.14-.3.35-.45.64-.45h.03c.29,0,.49.16.6.45l3.28,7.93c.14.36.04.6-.31.74-.36.14-.6.04-.74-.31l-.73-1.77h-4.22l-.7,1.77c-.14.35-.38.46-.73.31h-.02ZM47.84,56.32h3.3l-1.69-4.1-1.62,4.1h0Z"/></g></g></svg>',xlsIcon:'<?xml version="1.0" encoding="UTF-8"?><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64"><defs><style>.cls-1{fill:none;}.cls-2,.cls-3,.cls-4{fill:#00c650;}.cls-3{fill-rule:evenodd;}.cls-5{fill:#fff;}.cls-4{isolation:isolate;opacity:.15;}</style></defs><g id="Layer_2"><rect class="cls-1" width="64" height="64"/></g><g id="Layer_1"><g id="Document"><path class="cls-4" d="M42.52,13.11c-1.46,0-2.85-.58-3.88-1.61-1.03-1.03-1.61-2.42-1.61-3.88V0H12.5C10.6,0,8.78.75,7.44,2.1c-1.35,1.34-2.1,3.16-2.1,5.06v43.18c0,1.9.76,3.72,2.1,5.06,1.34,1.34,3.16,2.09,5.06,2.09h29.44c.94,0,1.87-.18,2.74-.54.87-.36,1.66-.89,2.32-1.55s1.19-1.45,1.55-2.32.55-1.8.55-2.74V13.1h-6.59.01Z"/><path class="cls-2" d="M49.11,13.11h-6.59c-1.46,0-2.85-.58-3.88-1.61-1.03-1.03-1.61-2.42-1.61-3.88V0s12.08,13.11,12.08,13.11Z"/><path class="cls-2" d="M54.36,45.5H21.04c-2.36,0-4.28,1.92-4.28,4.28v9.94c0,2.36,1.92,4.28,4.28,4.28h33.33c2.36,0,4.28-1.92,4.28-4.28v-9.94c0-2.36-1.92-4.28-4.28-4.28h-.01Z"/></g><g id="File"><path class="cls-3" d="M37.08,39.98h-19.78c-1.71,0-3.11-1.7-3.11-3.8v-14.35c0-2.1,1.39-3.8,3.11-3.8h19.79c1.71,0,3.11,1.7,3.11,3.8v14.35c0,2.1-1.4,3.8-3.11,3.8h-.01ZM17.3,19.97c-.84,0-1.52.83-1.52,1.86v2.03c0,.45.36.81.81.81h3.83c.45,0,.81-.36.81-.81v-3.08c0-.45-.36-.81-.81-.81,0,0-3.12,0-3.12,0ZM23.18,20.77c0-.45.36-.81.81-.81h6.4c.45,0,.81.36.81.81v3.08c0,.45-.36.81-.81.81h-6.4c-.45,0-.81-.36-.81-.81v-3.08ZM23.18,27.42c0-.45.36-.81.81-.81h6.4c.45,0,.81.36.81.81v3.11c0,.45-.36.81-.81.81h-6.4c-.45,0-.81-.36-.81-.81v-3.11ZM21.23,27.42c0-.45-.36-.81-.81-.81h-3.83c-.45,0-.81.36-.81.81v3.11c0,.45.36.81.81.81h3.83c.45,0,.81-.36.81-.81v-3.11ZM21.23,34.09c0-.45-.36-.81-.81-.81h-3.83c-.45,0-.81.36-.81.81v2.08c0,1.03.68,1.86,1.52,1.86h3.12c.45,0,.81-.36.81-.81,0,0,0-3.13,0-3.13ZM23.18,37.22c0,.45.36.81.81.81h6.4c.45,0,.81-.36.81-.81v-3.13c0-.45-.36-.81-.81-.81h-6.4c-.45,0-.81.36-.81.81v3.13ZM33.95,26.61c-.45,0-.81.36-.81.81v3.11c0,.45.36.81.81.81h3.85c.45,0,.81-.36.81-.81v-3.11c0-.45-.36-.81-.81-.81,0,0-3.85,0-3.85,0ZM33.95,33.28c-.45,0-.81.36-.81.81v3.13c0,.45.36.81.81.81h3.14c.84,0,1.52-.83,1.52-1.86v-2.08c0-.45-.36-.81-.81-.81,0,0-3.85,0-3.85,0ZM33.95,19.97c-.45,0-.81.36-.81.81v3.08c0,.45.36.81.81.81h3.85c.45,0,.81-.36.81-.81v-2.03c0-1.03-.68-1.86-1.52-1.86,0,0-3.14,0-3.14,0Z"/><path class="cls-5" d="M26.43,59.47c-.3-.21-.35-.47-.14-.8l2.48-3.66-2.61-3.69c-.2-.3-.15-.56.15-.8.31-.21.57-.16.79.15l2.43,3.4,2.44-3.4c.23-.3.5-.34.79-.12.31.23.35.49.14.79l-2.67,3.71,2.56,3.6c.21.31.16.58-.15.81-.31.21-.57.16-.79-.15l-2.36-3.32-2.25,3.33c-.21.29-.47.34-.8.14h-.01Z"/><path class="cls-5" d="M35.72,59.59c-.38,0-.57-.19-.57-.57v-8.05c0-.38.19-.57.57-.57s.57.19.57.57v7.48h3.75c.38,0,.57.19.57.57s-.19.57-.57.57c0,0-4.32,0-4.32,0Z"/><path class="cls-5" d="M44.78,59.59c-.77,0-1.38-.16-1.81-.47s-.7-.79-.81-1.44c-.02-.2.02-.35.12-.45s.24-.15.43-.15.33.05.41.14c.09.09.15.23.18.42.07.31.21.53.43.64.23.11.57.17,1.03.17h1.95c.58,0,.98-.1,1.19-.31s.32-.61.32-1.18-.11-.98-.33-1.19c-.22-.22-.61-.33-1.18-.33h-1.68c-.85,0-1.49-.21-1.9-.62-.41-.42-.62-1.06-.62-1.91s.2-1.48.61-1.89,1.04-.62,1.9-.62h1.61c.72,0,1.28.15,1.69.44.41.29.67.74.78,1.35.03.19,0,.34-.11.45-.1.1-.25.15-.45.15-.18,0-.32-.05-.41-.14s-.15-.23-.18-.41c-.07-.27-.21-.45-.41-.54-.2-.1-.51-.15-.91-.15h-1.61c-.54,0-.91.1-1.09.29-.19.19-.28.55-.28,1.08s.09.9.28,1.1.56.3,1.1.3h1.68c.89,0,1.55.22,1.98.65.44.43.66,1.1.66,2.01s-.22,1.56-.65,1.99c-.43.42-1.1.64-1.99.64h-1.95l.02-.02Z"/></g></g></svg>',xmlIcon:'<?xml version="1.0" encoding="UTF-8"?><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64"><defs><style>.cls-1{fill:none;}.cls-2,.cls-3{fill:#a140ff;}.cls-4{fill:#fff;}.cls-3{isolation:isolate;opacity:.15;}</style></defs><g id="Layer_2"><rect class="cls-1" width="64" height="64"/></g><g id="Layer_1"><g id="Document"><path class="cls-3" d="M42.52,13.11c-1.46,0-2.85-.58-3.88-1.61-1.03-1.03-1.61-2.42-1.61-3.88V0H12.5C10.6,0,8.78.75,7.44,2.1c-1.35,1.34-2.1,3.16-2.1,5.06v43.18c0,1.9.76,3.72,2.1,5.06,1.34,1.34,3.16,2.09,5.06,2.09h29.44c.94,0,1.87-.18,2.74-.54.87-.36,1.66-.89,2.32-1.55s1.19-1.45,1.55-2.32.55-1.8.55-2.74V13.1h-6.59.01Z"/><path class="cls-2" d="M49.11,13.11h-6.59c-1.46,0-2.85-.58-3.88-1.61-1.03-1.03-1.61-2.42-1.61-3.88V0s12.08,13.11,12.08,13.11Z"/><path class="cls-2" d="M54.36,45.5H21.04c-2.36,0-4.28,1.92-4.28,4.28v9.94c0,2.36,1.92,4.28,4.28,4.28h33.33c2.36,0,4.28-1.92,4.28-4.28v-9.94c0-2.36-1.92-4.28-4.28-4.28h-.01Z"/></g><g id="File"><path class="cls-2" d="M14.19,29.48c0-.14.04-.27.12-.39.1-.13.22-.23.35-.32.2-.1.41-.19.62-.27l.62-.26,2.49-1.05c.35-.16.99-.43,1.93-.81l1.18-.48.43-.15.07-.03h.06s.1-.03.15-.03c.1,0,.2,0,.29.04s.18.09.25.15c.06.06.11.13.15.21.03.08.05.16.05.25v.82c0,.15-.05.3-.14.43-.09.14-.22.25-.38.3l-5.08,2.08,5.08,2.08c.15.06.28.17.38.3.09.12.14.27.14.42v.82c0,.09-.02.17-.05.25-.03.08-.08.15-.15.21-.07.07-.16.12-.25.16s-.19.05-.3.04c-.05,0-.1,0-.15-.03l-.14-.05-.43-.15-1.17-.48-1.93-.8-2.49-1.05-.62-.26c-.2-.08-.41-.17-.62-.27-.13-.06-.25-.16-.33-.28s-.13-.26-.14-.41v-1h0Z"/><path class="cls-2" d="M29.39,35.13c-.16,0-.32-.03-.46-.11s-.26-.19-.34-.33c-.07-.1-.12-.21-.16-.32l-.11-.29-2.32-5.13-.17-.38c-.19-.41-.57-1.23-1.12-2.46-.72-1.56-1.08-2.41-1.08-2.56,0-.09.02-.18.06-.26s.1-.15.17-.21c.16-.14.37-.21.58-.2h.75c.16,0,.32.04.45.11.14.08.25.19.34.33l.17.32.11.29.61,1.33,1.72,3.79.23.48,1.06,2.34c.41.84.77,1.7,1.08,2.58,0,.09-.02.18-.06.26s-.1.15-.17.21c-.16.14-.37.21-.58.2h-.76Z"/><path class="cls-2" d="M32.19,34.25c-.1,0-.21,0-.3-.04-.1-.03-.19-.09-.26-.16-.12-.12-.19-.29-.2-.46v-.82c0-.15.04-.29.13-.42.1-.14.23-.24.39-.3l5.1-2.08-5.1-2.08c-.15-.07-.29-.18-.38-.32-.09-.12-.14-.27-.14-.42v-.83c0-.09.02-.17.05-.25s.08-.15.14-.21c.15-.14.35-.21.55-.2.05,0,.09.01.14.03h.08l.07.03s.12.04.41.15l1.2.48c-.06-.03.58.24,1.93.81.74.3,1.58.66,2.53,1.08l.24.09.35.14c.21.07.4.16.59.27.14.06.25.16.33.28s.13.27.14.42v1c0,.14-.05.27-.13.38-.09.13-.21.23-.34.3-.18.09-.4.19-.64.29l-.64.26-5.62,2.35c-.16.08-.26.13-.29.15l-.06.05-.28.02h.01Z"/><path class="cls-4" d="M25.14,59.47c-.3-.21-.35-.47-.14-.8l2.48-3.66-2.61-3.69c-.2-.3-.15-.56.15-.8.31-.21.57-.16.79.15l2.43,3.4,2.44-3.4c.23-.3.5-.34.79-.12.31.23.35.49.14.79l-2.67,3.71,2.56,3.6c.21.31.16.58-.15.81-.31.21-.57.16-.79-.15l-2.36-3.32-2.25,3.33c-.21.29-.47.34-.8.14h-.01Z"/><path class="cls-4" d="M34.43,59.59c-.38,0-.57-.19-.57-.57v-8.05c0-.38.19-.57.57-.57.25,0,.46.12.62.37l3.2,4.81-.24.04,3.22-4.85c.15-.24.38-.37.69-.37s.46.19.46.57v8.05c0,.38-.19.57-.57.57s-.57-.19-.57-.57v-6.91l.35.12-2.85,4.19c-.17.24-.4.37-.69.37-.2,0-.39-.12-.56-.37l-2.85-4.19.34.09v6.69c0,.38-.19.57-.57.57h.02Z"/><path class="cls-4" d="M45.77,59.59c-.38,0-.57-.19-.57-.57v-8.05c0-.38.19-.57.57-.57s.57.19.57.57v7.48h3.75c.38,0,.57.19.57.57s-.19.57-.57.57h-4.32Z"/></g></g></svg>',zipIcon:'<?xml version="1.0" encoding="UTF-8"?><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64"><defs><style>.cls-1{fill:none;}.cls-2{isolation:isolate;opacity:.15;}.cls-2,.cls-3{fill:#ff3e4c;}.cls-4{fill:#fff;}</style></defs><g id="Layer_2"><rect class="cls-1" width="64" height="64"/></g><g id="Layer_1"><g id="Document"><path class="cls-2" d="M42.52,13.11c-1.46,0-2.85-.58-3.88-1.61-1.03-1.03-1.61-2.42-1.61-3.88V0H12.5C10.6,0,8.78.75,7.44,2.1c-1.35,1.34-2.1,3.16-2.1,5.06v43.18c0,1.9.76,3.72,2.1,5.06,1.34,1.34,3.16,2.09,5.06,2.09h29.44c.94,0,1.87-.18,2.74-.54.87-.36,1.66-.89,2.32-1.55s1.19-1.45,1.55-2.32.55-1.8.55-2.74V13.1h-6.59.01Z"/><path class="cls-3" d="M49.11,13.11h-6.59c-1.46,0-2.85-.58-3.88-1.61-1.03-1.03-1.61-2.42-1.61-3.88V0s12.08,13.11,12.08,13.11Z"/><path class="cls-3" d="M54.36,45.5H21.04c-2.36,0-4.28,1.92-4.28,4.28v9.94c0,2.36,1.92,4.28,4.28,4.28h33.33c2.36,0,4.28-1.92,4.28-4.28v-9.94c0-2.36-1.92-4.28-4.28-4.28h-.01Z"/></g><g id="File"><path class="cls-3" d="M27.19,42c-1.12,0-2.19-.45-2.98-1.24s-1.23-1.86-1.24-2.98v-3.55c0-.37.3-.66.66-.66h7.1c.37,0,.66.3.66.66v3.55c0,1.12-.45,2.19-1.24,2.98-.79.79-1.86,1.24-2.98,1.24h.02ZM25.8,35.72c-.37,0-.66.3-.66.66v1.4c0,.55.22,1.07.6,1.46.39.39.91.6,1.46.6s1.07-.22,1.46-.6c.39-.39.6-.91.6-1.46v-1.4c0-.37-.3-.66-.66-.66h-2.8Z"/><path class="cls-3" d="M23.97,32.9h2.23c.55,0,1-.45,1-1v-2.23c0-.55-.45-1-1-1h-2.23c-.55,0-1,.45-1,1v2.23c0,.55.45,1,1,1Z"/><path class="cls-3" d="M28.18,28.68h2.23c.55,0,1-.45,1-1v-2.23c0-.55-.45-1-1-1h-2.23c-.55,0-1,.45-1,1v2.23c0,.55.45,1,1,1Z"/><path class="cls-3" d="M23.97,24.45h2.23c.55,0,1-.45,1-1v-2.23c0-.55-.45-1-1-1h-2.23c-.55,0-1,.45-1,1v2.23c0,.55.45,1,1,1Z"/><path class="cls-3" d="M28.18,20.23h2.23c.55,0,1-.45,1-1v-2.23c0-.55-.45-1-1-1h-2.23c-.55,0-1,.45-1,1v2.23c0,.55.45,1,1,1Z"/><path class="cls-4" d="M27.88,59.6c-.37,0-.56-.19-.56-.57,0-.06.02-.13.05-.21s.09-.17.16-.28l5.45-7.14v.14h-3.62c-.29,0-.52.04-.68.13s-.28.23-.34.43c-.04.17-.1.3-.19.39s-.22.14-.41.14-.34-.05-.45-.16c-.1-.1-.14-.25-.11-.44.11-.52.34-.93.71-1.21.37-.28.85-.42,1.47-.42h4.53c.38,0,.57.19.57.57,0,.07-.02.15-.05.23s-.09.18-.17.28l-5.39,7.03v-.05h4.02c.31,0,.54-.04.71-.12.16-.09.27-.23.33-.43.05-.17.12-.3.2-.39.09-.09.23-.14.41-.14.19,0,.34.05.44.16s.14.25.12.44c-.22,1.09-.95,1.63-2.2,1.63h-5.01.01Z"/><path class="cls-4" d="M37.8,59.6c-.19,0-.34-.05-.43-.14s-.14-.24-.14-.43v-8.05c0-.2.05-.34.14-.43s.24-.14.43-.14.34.05.43.14.14.24.14.43v8.05c0,.19-.05.34-.14.43s-.24.14-.43.14h0Z"/><path class="cls-4" d="M41.76,59.6c-.38,0-.57-.19-.57-.57v-8.06c0-.38.19-.57.57-.57h3.18c.83,0,1.46.22,1.9.66.44.44.66,1.07.66,1.9v.41c0,.83-.22,1.46-.66,1.91s-1.07.66-1.9.66h-2.61v3.09c0,.38-.19.57-.57.57h0ZM42.34,54.8h2.61c.52,0,.88-.11,1.1-.33s.33-.58.33-1.1v-.41c0-.51-.11-.88-.33-1.09-.22-.22-.58-.33-1.1-.33h-2.61v3.26Z"/></g></g></svg>'},lk={};Object.entries({default:"defaultIcon","text/csv":"csvIcon","application/msword":"docIcon","application/vnd.openxmlformats-officedocument.wordprocessingml.document":"docxIcon","application/vnd.ms-excel":"xlsIcon","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":"xlsIcon","application/vnd.ms-powerpoint":"pptIcon","application/vnd.openxmlformats-officedocument.presentationml.presentation":"pptIcon","application/pdf":"pdfIcon","image/jpeg":"jpgIcon","image/png":"pngIcon","image/gif":"gifIcon","image/bmp":"bmpIcon","image/tiff":"tiffIcon","image/vnd.adobe.photoshop":"psdIcon","image/svg+xml":"svgIcon","text/plain":"txtIcon","text/markdown":"mdIcon","text/html":"htmlIcon","application/x-msdos-program":"exeIcon","application/java-archive":"javaIcon","application/xml":"xmlIcon","text/xml":"xmlIcon","application/zip":"zipIcon","application/x-rar-compressed":"rarIcon","application/json":"jsonIcon","audio/mpeg":"mp3Icon","audio/wav":"wavIcon","audio/wave":"wavIcon","audio/x-ms-wma":"wmaIcon","video/x-msvideo":"aviIcon","application/mp4":"mp4Icon","video/mp4":"mp4Icon","video/mpeg":"mpegIcon","video/quicktime":"movIcon","application/vnd.ms-access":"mdbIcon","application/x-msaccess":"mdbIcon","application/vnd.ms-publisher":"pubIcon","application/x-mspublisher":"pubIcon","application/x-dwg":"dwgIcon","image/vnd.dwg":"dwgIcon","application/x-iso9660-image":"isoIcon","audio/midi":"midIcon","video/x-flv":"flvIcon","application/rss+xml":"rssIcon","application/rtf":"docIcon","application/vnd.adobe.illustrator":"aiIcon","application/postscript":"aiIcon","application/vnd.rar":"rarIcon","video/x-ms-wmv":"wmaIcon","application/vnd.oasis.opendocument.text":"docxIcon","application/vnd.oasis.opendocument.spreadsheet":"xlsIcon","application/vnd.oasis.opendocument.presentation":"pptIcon","application/vnd.apple.pages":"pagesIcon","application/vnd.apple.numbers":"numbersIcon","application/vnd.apple.keynote":"keyIcon","application/x-msdownload":"dllIcon","application/vnd.microsoft.portable-executable":"dllIcon"}).forEach(([e,t])=>{lx[t]?lk[e]=lx[t]:!lk[e]&&lx.defaultIcon&&(lk[e]=lx.defaultIcon)}),!lk.default&&lx.defaultIcon&&(lk.default=lx.defaultIcon);let lE=rT({SECONDS:"seconds",MINUTES:"minutes",HOURS:"hours",DAYS:"days",WEEKS:"weeks",MONTHS:"months",YEARS:"years",AUTO:"auto"}),lS=e=>e.toString().padStart(2,"0");function lC(e,t,i=!1){let a=Math.max(0,t);switch(e){case"auto":return e9()((e=>{let t=Math.floor(e);if(t<60)return`${t}s`;if(t<3600){let e=Math.floor(t/60);return`${e}:${lS(t%60)}m`}if(t<86400){let e=Math.floor(t/3600),i=Math.floor(t%3600/60);return`${e}:${lS(i)}:${lS(t%60)}h`}let i=Math.floor(t/86400),a=Math.floor(t%86400/3600),n=Math.floor(t%3600/60);return`${i}:${lS(a)}:${lS(n)}:${lS(t%60)}d`})(a));case"seconds":if(i)return e9()(`${a} sec`);return e9()(1===a?`${a} second`:`${a} seconds`);case"minutes":if(i)return e9()(`${a} min`);return e9()(1===a?`${a} minute`:`${a} minutes`);case"hours":if(i)return e9()(`${a} h`);return e9()(1===a?`${a} hour`:`${a} hours`);case"days":if(i)return e9()(`${a} d`);return e9()(1===a?`${a} day`:`${a} days`);case"weeks":if(i)return e9()(`${a} wk`);return e9()(1===a?`${a} week`:`${a} weeks`);case"months":if(i)return e9()(`${a} mo`);return e9()(1===a?`${a} month`:`${a} months`);case"years":if(i)return e9()(`${a} yr`);return e9()(1===a?`${a} year`:`${a} years`);default:throw Error(`Invalid duration unit provided: ${e}`)}}function lT(e){let t={};return rK(e)&&e.querySelectorAll("input, textarea, select").forEach(e=>{let i=e.getAttribute("name");rY(i)||(!(e instanceof HTMLInputElement&&["checkbox","radio"].includes(e.type))||e.checked)&&(t[i]=e.value)}),t}let lI={LONG:"long",SHORT:"short",NARROW:"narrow"},lD=rT(lI),lA={ALWAYS:"always",AUTO:"auto"},l$=rT(lA),lO={ALWAYS:"always",NONE:"none"},lR=rT(lO);rg({format:lD.optional(),numeric:l$.optional(),direction:lR.optional(),locale:oR().min(1).optional()}).strict();let lM=ry([o5(),n$(oL,{offset:!0}),rG(Date).refine(e=>!Number.isNaN(e.getTime()),"Invalid Date")]),lL={SECOND:"second",MINUTE:"minute",HOUR:"hour",DAY:"day",WEEK:"week",MONTH:"month",YEAR:"year"},lN=rT(lL);rg({unit:lN,unitMs:o5().int().positive(),lowerEdgeMs:o5().int().nonnegative(),upperEdgeMs:o5().int().positive()});let lP={unit:lL.YEAR,unitMs:31536e6,lowerEdgeMs:31536e6,upperEdgeMs:Number.MAX_SAFE_INTEGER},lz=Object.freeze([{unit:lL.SECOND,unitMs:1e3,lowerEdgeMs:0,upperEdgeMs:6e4},{unit:lL.MINUTE,unitMs:6e4,lowerEdgeMs:6e4,upperEdgeMs:36e5},{unit:lL.HOUR,unitMs:36e5,lowerEdgeMs:36e5,upperEdgeMs:864e5},{unit:lL.DAY,unitMs:864e5,lowerEdgeMs:864e5,upperEdgeMs:6048e5},{unit:lL.WEEK,unitMs:6048e5,lowerEdgeMs:6048e5,upperEdgeMs:2592e6},{unit:lL.MONTH,unitMs:2592e6,lowerEdgeMs:2592e6,upperEdgeMs:31536e6},lP]);function lU(e){for(let t of lz)if(e<t.upperEdgeMs)return t;return lP}rg({unit:lN,value:o5().int()});let lF=Object.freeze(["en","es","ar","de","fr","he","it","ja","nl","pl","pt","ru","tr"]),lj=rT(lF);function lB(e){let t=function(e,t){let i=lb.parse(e),a=lv.parse(t),n=Array.isArray(i)?i:[i],o="u">typeof document?document.documentElement.lang:void 0,r="u">typeof navigator?[navigator.language,...navigator.languages??[]]:[];for(let e of[...n,o,...r].filter(e=>"string"==typeof e&&e.trim().length>0).map(e=>e.trim().replace(/_/g,"-"))){if(a.includes(e))return e;let t=e.split("-")[0];if(t&&a.includes(t))return t}return"en"}([e,{...sc}.locale],lF);return lj.parse(t)}function lH(e,t=!1){let i=[],a=0,n="",o=!1,r=!1;for(let s=0;s<e.length;s++){let l=e[s],c=s+1<e.length?e[s+1]:void 0;if(!o&&"="===l&&'"'===c){r=!0,s++;continue}if(r&&'"'===l){r=!1;continue}if("{"===l&&"{"===c){0===a?o=!0:n+="{{",a++,s++;continue}if("}"===l&&"}"===c&&o){0==--a?(o=!1,(!r||t)&&i.push(n),n=""):n+="}}",s++;continue}o&&(n+=l)}return i}function lV(e){if(rY(e))return[];let t=lH(e);if(0===t.length)return e.split(":");let i=0,a=new Map,n=e;return t.forEach(e=>{let t=`{{${e}}}`,o=`%%PLACEHOLDER_${i++}%%`;n=n.replace(t,o),a.set(o,t)}),n.split(":").map(e=>{let t=e;return a.forEach((e,i)=>{t=t.replace(i,e)}),t})}function lq(){return Date.now().toString(36)+Math.random().toString(36).substring(2)}function lZ(e,t=""){let i;if(rY(e)||""===e.trim())return console.warn("getURLParameter: Parameter key is empty or invalid."),null;if(rY(t))if(!("u">typeof window)||!window.location)return console.error("getURLParameter: Cannot determine current URL outside of a browser environment when no URL is provided."),null;else i=window.location.href;else i=t;try{return new URL(i,!rY(window)?window.location.origin:void 0).searchParams.get(e)}catch(e){return console.error(`getURLParameter: Error parsing URL "${i}".`,e),null}}function lW(e,t){return t>0?Math.min(e,t):e}function lG({url:e,title:t,w:i,h:a,onClose:n}){let o;if(!rK(window)||!rK(screen)||!rK(document))return console.error("openWindow function requires a browser environment."),null;n&&"function"==typeof n&&(o=n);let r=window.screenLeft??window.screenX??0,s=window.screenTop??window.screenY??0,l=window.innerWidth||document.documentElement.clientWidth||screen.width,c=window.innerHeight||document.documentElement.clientHeight||screen.height,d=Math.max(100,l-200),u=Math.max(100,c-200),p="number"==typeof i&&i>0?i:d,h="number"==typeof a&&a>0?a:u,g=window.outerWidth>0?window.outerWidth:screen.availWidth,m=g>0?l/g:1,f=(e,t,i)=>(t-e)/2/(m>0?m:1)+i,y=f(p,l,r),b=f(h,c,s),v=lW(p/(m>0?m:1),screen.availWidth),_=lW(h/(m>0?m:1),screen.availHeight),w=window.open(e,t,`scrollbars=yes,width=${v},height=${_},top=${b},left=${y}`);if(w){try{w.focus()}catch{console.warn("Could not focus the newly opened window.")}if(o){let e=!0,t=()=>{if(e)try{!w||w.closed?(e=!1,o()):requestAnimationFrame(t)}catch{console.warn("Cannot access popup window properties. Assuming closed or inaccessible."),e=!1,o()}};requestAnimationFrame(t)}}else console.warn("Window opening was blocked or failed.");return w}function lK(e,t){if(rY(e)||rY(t))return;let i=t.replace(/\[(\d+)\]/g,".$1").split(".").filter(e=>e.length>0);if(0===i.length)return;let a=e=>"object"==typeof e&&null!==e,n=e;for(let e=0;e<i.length;e++){let t=i[e],o=parseInt(t,10);if(isNaN(o))if(!a(n))return;else{if(!Object.prototype.hasOwnProperty.call(n,t))return;n=n[t]}else{if(!Array.isArray(n)||!(o>=0)||!(o<n.length))return;n=n[o]}if(!rK(n)&&e<i.length-1)return}return n}function lY(e,t){return rY(e)?[]:[...e].sort((e,i)=>{let a=lK(e,t),n=lK(i,t),o=!rK(a),r=!rK(n);if(o&&r)return 0;if(o)return 1;if(r)return -1;let s=String(a).toLowerCase(),l=String(n).toLowerCase();return s=s.replace(/[{}]/g,""),l=l.replace(/[{}]/g,""),s.localeCompare(l)})}function lQ(e,t,i,a,n,o){let r=i=>{rZ().parse(e)[t]=i},s=n||(e.tagName?e.tagName.toLowerCase():"lit-component");if(!a.has(t))return;let l=e[t];if(null==l){e[t]!==o&&r(o);return}let c=i.safeParse(l);if(c.success){e[t]!==c.data&&r(c.data);return}let d="Component error: Consult the component's documentation for allowed values.",u="";if(c.error instanceof om&&(u=(c.error.issues||[]).map(e=>{let t=e.path.join(".");return`${t||"value"}: ${e.message}`}).join("; "),i._zod&&i._zod.def)){let e=i._zod.def,t=e=>"object"==typeof e&&null!==e;t(e)&&"ZodEnum"===e.typeName&&Array.isArray(e.values)?d=`Allowed values are: ${e.values.join(", ")}.`:t(e)&&"ZodNativeEnum"===e.typeName&&t(e.values)&&(d=`Allowed values are: ${Object.values(e.values).join(", ")}.`)}console.warn(`[${s}] Invalid value for property '${String(t)}': "${String(l)}". ${d} ${u?`Validation issues: ${u} `:""}Falling back to '${String(o)}'.`),e[t]!==o&&r(o)}let lX=window.wp.i18n,lJ=e=>(t,i)=>{void 0!==i?i.addInitializer(()=>{customElements.define(e,t)}):customElements.define(e,t)},l1={attribute:!0,type:String,converter:sI,reflect:!1,hasChanged:sD};function l0(e){return(t,i)=>{let a;return"object"==typeof i?((e=l1,t,i)=>{let{kind:a,metadata:n}=i,o=globalThis.litPropertyMetadata.get(n);if(void 0===o&&globalThis.litPropertyMetadata.set(n,o=new Map),"setter"===a&&((e=Object.create(e)).wrapped=!0),o.set(i.name,e),"accessor"===a){let{name:a}=i;return{set(i){let n=t.get.call(this);t.set.call(this,i),this.requestUpdate(a,n,e,!0,i)},init(t){return void 0!==t&&this.C(a,void 0,e,t),t}}}if("setter"===a){let{name:a}=i;return function(i){let n=this[a];t.call(this,i),this.requestUpdate(a,n,e,!0,i)}}throw Error("Unsupported decorator location: "+a)})(e,t,i):(a=t.hasOwnProperty(i),t.constructor.createProperty(i,e),a?Object.getOwnPropertyDescriptor(t,i):void 0)}}function l2(e){return l0({...e,state:!0,attribute:!1})}let l3=(e,t,i)=>(i.configurable=!0,i.enumerable=!0,Reflect.decorate&&"object"!=typeof t&&Object.defineProperty(e,t,i),i);function l4(e,t){return(i,a,n)=>{let o=t=>t.renderRoot?.querySelector(e)??null;if(t){let e,{get:t,set:r}="object"==typeof a?i:n??(e=Symbol(),{get(){return this[e]},set(t){this[e]=t}});return l3(i,a,{get(){let e=t.call(this);return void 0===e&&(null!==(e=o(this))||this.hasUpdated)&&r.call(this,e),e}})}return l3(i,a,{get(){return o(this)}})}}function l6(e){return(t,a)=>l3(t,a,{get(){return(this.renderRoot??(i??=document.createDocumentFragment())).querySelectorAll(e)}})}function l5(e){return(t,i)=>{let{slot:a,selector:n}=e??{},o="slot"+(a?`[name=${a}]`:":not([name])");return l3(t,i,{get(){let t=this.renderRoot?.querySelector(o),i=t?.assignedElements(e)??[];return void 0===n?i:i.filter(e=>e.matches(n))}})}}let l8={XS:"xs",XSMALL:"xsmall",SM:"sm",SMALL:"small",MD:"md",REGULAR:"regular",LG:"lg",LARGE:"large",XL:"xl",XLARGE:"xlarge"},l7=rT(l8),l9={TOP:"top",CENTER:"center"},ce=rT(l9),ct={TOP_CENTER:"top center",TOP_RIGHT:"top right",BOTTOM_CENTER:"bottom center",BOTTOM_LEFT:"bottom left",BOTTOM_RIGHT:"bottom right",LEFT_CENTER:"left center",LEFT_TOP:"left top",LEFT_BOTTOM:"left bottom",RIGHT_CENTER:"right center",RIGHT_TOP:"right top",RIGHT_BOTTOM:"right bottom",CENTER_CENTER:"center center"},ci=rT(ct),ca={PROGRAMMATICALLY_CALLED_DIRECTLY:"programmatically-called-directly",CANCEL_GENERIC:"cancel-generic",CANCEL_USER_CLICKED_CANCEL_BUTTON:"cancel-user-clicked-cancel-button",CANCEL_USER_CLICKED_OUTSIDE:"cancel-user-clicked-outside",CANCEL_USER_PRESSED_ESCAPE_KEY:"cancel-user-pressed-escape-key"},cn=rT(ca),co=rg({was_cancelled:re(),context:cn}),cr=e=>(...t)=>({_$litDirective$:e,values:t});class cs{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,t,i){this._$Ct=e,this._$AM=t,this._$Ci=i}_$AS(e,t){return this.update(e,t)}update(e,t){return this.render(...t)}}let cl="important",cc=" !"+cl,cd=cr(class extends cs{constructor(e){if(super(e),1!==e.type||"style"!==e.name||e.strings?.length>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(e){return Object.keys(e).reduce((t,i)=>{let a=e[i];return null==a?t:t+`${i=i.includes("-")?i:i.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${a};`},"")}update(e,[t]){let{style:i}=e.element;if(void 0===this.ft)return this.ft=new Set(Object.keys(t)),this.render(t);for(let e of this.ft)null==t[e]&&(this.ft.delete(e),e.includes("-")?i.removeProperty(e):i[e]=null);for(let e in t){let a=t[e];if(null!=a){this.ft.add(e);let t="string"==typeof a&&a.endsWith(cc);e.includes("-")||t?i.setProperty(e,t?a.slice(0,-11):a,t?cl:""):i[e]=a}}return s2}}),cu={DETERMINATE:"determinate",INDETERMINATE:"indeterminate",UNLIMITED:"unlimited"},cp=rT(cu),ch={SUCCESS:"success",WARNING:"warning",ERROR:"error"};rT(ch);let cg=rg({warning:o5().min(0).max(100),error:o5().min(0).max(100)}).strict().refine(e=>e.warning<e.error,{message:"`warning` threshold must be strictly less than `error` threshold."}),cm={warning:70,error:90},cf=sf`:host{display:block;width:100%}.progress-bar{height:var(--uas--progress-linear--custom-height, var(--uas--progress-linear--height));background-color:var(--uas--progress-linear--custom-background, var(--uas--progress-linear--background));width:100%;overflow:hidden;transition:height var(--uas--progress-linear--custom-transition-height, var(--uas--progress-linear--transition-height));border-radius:var(--uas--progress-linear--custom-wrapper-border-radius, var(--uas--progress-linear--wrapper-border-radius))}@starting-style{.progress-bar{height:0}}.progress-bar-value{width:100%;height:100%;background-color:var(--uas--progress-linear--custom-value-background, var(--uas--progress-linear--value-background));transform-origin:0% 50%;border-radius:var(--uas--progress-linear--custom-bar-border-radius, var(--uas--progress-linear--bar-border-radius));transition:transform 300ms ease-out}.progress-bar[type=determinate] .progress-bar-value{transform:scaleX(var(--uas--progress-linear--value-fraction, 0))}.progress-bar[type=indeterminate] .progress-bar-value{width:30%;transform:translateX(-100%);animation:progressLinearIndeterminate var(--uas--progress-linear--custom-animation-duration, var(--uas--progress-linear--animation-duration)) ease-in-out infinite}.progress-bar[type=unlimited] .progress-bar-value{width:100%;transform:none;background:radial-gradient(circle at 50% 50%, var(--uas--progress-linear--custom-unlimited-dot-color, var(--uas--progress-linear--unlimited-dot-color)) var(--uas--progress-linear--custom-unlimited-dot-radius, var(--uas--progress-linear--unlimited-dot-radius)), transparent calc(var(--uas--progress-linear--custom-unlimited-dot-radius, var(--uas--progress-linear--unlimited-dot-radius)) + 0.5px)),var(--uas--progress-linear--custom-value-background, var(--uas--progress-linear--value-background-success));background-size:var(--uas--progress-linear--custom-unlimited-dot-spacing, var(--uas--progress-linear--unlimited-dot-spacing)) 100%;animation:progressLinearUnlimitedDrift var(--uas--progress-linear--custom-unlimited-drift-duration, var(--uas--progress-linear--unlimited-drift-duration)) linear infinite}.progress-bar[status=success] .progress-bar-value{background-color:var(--uas--progress-linear--custom-value-background, var(--uas--progress-linear--value-background-success))}.progress-bar[status=warning] .progress-bar-value{background-color:var(--uas--progress-linear--custom-value-background, var(--uas--progress-linear--value-background-warning))}.progress-bar[status=error] .progress-bar-value{background-color:var(--uas--progress-linear--custom-value-background, var(--uas--progress-linear--value-background-error))}@keyframes progressLinearUnlimitedDrift{0%{background-position:0 0}100%{background-position:var(--uas--progress-linear--custom-unlimited-drift-distance, var(--uas--progress-linear--unlimited-drift-distance)) 0}}@media(prefers-reduced-motion: reduce){.progress-bar[type=unlimited] .progress-bar-value{animation:none}}@keyframes progressLinearIndeterminate{0%{transform:translateX(-100%)}100%{transform:translateX(333.34%)}}`;var cy=function(e,t,i,a){var n,o=arguments.length,r=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(r=(o<3?n(r):o>3?n(t,i,r):n(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r};class cb extends ld{constructor(){super(...arguments),this.type=cu.DETERMINATE,this.value=0,this.thresholds=cm}get status(){if(this.type!==cu.DETERMINATE||!Number.isFinite(this.value))return;let e=this.thresholds??cm,t=Math.max(0,Math.min(100,this.value));return t>=e.error?ch.ERROR:t>=e.warning?ch.WARNING:ch.SUCCESS}willUpdate(e){e.has("value")&&(this.value=Math.max(0,Math.min(100,this.value))),lQ(this,"type",cp,e,"uas-progress-linear",cu.DETERMINATE),lQ(this,"thresholds",cg,e,"uas-progress-linear",cm)}render(){let e={"--uas--progress-linear--value-fraction":`${this.value/100}`};return s1` <div class="progress-bar" type=${this.type} status=${this.status??s3} > <div class="progress-bar-value" style=${cd(e)}></div> </div> `}}cb.styles=cf,cy([l0({type:String,reflect:!0})],cb.prototype,"type",void 0),cy([l0({type:Number})],cb.prototype,"value",void 0),cy([l0({type:Object,attribute:!1})],cb.prototype,"thresholds",void 0),"u">typeof customElements&&!customElements.get("uas-progress-linear")&&customElements.define("uas-progress-linear",cb);let cv=sf`:host{display:contents}dialog{font-family:var(--uas--typography--body-medium-font-family);font-size:var(--uas--typography--body-medium-font-size);line-height:var(--uas--typography--body-medium-line-height);font-weight:var(--uas--typography--body-medium-font-weight);letter-spacing:var(--uas--typography--body-medium-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;box-sizing:border-box;padding:0;border:0;margin:0;outline:0;background:rgba(0,0,0,0);color:inherit;--uas--dialog--_size: var(--uas--dialog--custom-size-md, var(--uas--dialog--size-md));opacity:0;translate:0 20px;transition:opacity 200ms ease-out,translate 200ms ease-out,display 200ms allow-discrete,overlay 200ms allow-discrete}dialog[size=xsmall],dialog[size=xs]{--uas--dialog--_size: var(--uas--dialog--custom-size-xs, var(--uas--dialog--size-xs))}dialog[size=small],dialog[size=sm]{--uas--dialog--_size: var(--uas--dialog--custom-size-sm, var(--uas--dialog--size-sm))}dialog[size=regular],dialog[size=md]{--uas--dialog--_size: var(--uas--dialog--custom-size-md, var(--uas--dialog--size-md))}dialog[size=large],dialog[size=lg]{--uas--dialog--_size: var(--uas--dialog--custom-size-lg, var(--uas--dialog--size-lg))}dialog[size=xlarge],dialog[size=xl]{--uas--dialog--_size: var(--uas--dialog--custom-size-xl, var(--uas--dialog--size-xl))}dialog[open]{position:fixed;inset:0;width:100%;height:100%;margin:0;max-width:none;max-height:none;display:flex;flex-direction:column;align-items:center;justify-content:safe center;padding:var(--uas--dialog--custom-margin-block, var(--uas--dialog--margin-block)) var(--uas--dialog--custom-margin-inline, var(--uas--dialog--margin-inline));overflow-x:hidden;overflow-y:auto}dialog[open]::-webkit-scrollbar{background-color:rgba(0,0,0,.09)}dialog[open]::-webkit-scrollbar:vertical{width:10px}dialog[open]::-webkit-scrollbar-thumb{background:rgba(0,0,0,.3);border-radius:150px;background-clip:padding-box;border:2px solid rgba(0,0,0,0)}dialog[open]::-webkit-scrollbar-thumb:vertical{min-height:10px}dialog[open]{opacity:1;translate:none}@starting-style{dialog[open]{opacity:0;translate:0 20px}}dialog[open][vertical-align=top]{justify-content:flex-start;padding-top:var(--uas--dialog--custom-align-top-margin-top, var(--uas--dialog--align-top-margin-top))}dialog::backdrop{background:rgba(0,0,0,0);transition:background 200ms ease-out,display 200ms allow-discrete,overlay 200ms allow-discrete}dialog[open]::backdrop{background:rgba(0,0,0,.4)}@starting-style{dialog[open]::backdrop{background:rgba(0,0,0,0)}}.dialog{width:100%;max-width:var(--uas--dialog--_size);flex:0 0 auto;overflow:visible;background:var(--uas--color--surface);box-shadow:var(--uas--base--shadow-xl);border-radius:var(--uas--base--border-radius-md);--uas--dialog--_padding: var(--uas--dialog--custom-padding, var(--uas--dialog--padding));padding:var(--uas--dialog--_padding) 0px;display:flex;flex-direction:column;gap:15px;outline:0}.dialog[has-featured-image]{padding-top:0}.dialog[loading]{position:relative}.dialog-loading{position:absolute;inset-block-start:0;inset-inline:0;block-size:var(--uas--base--border-radius-md);overflow:hidden;border-start-start-radius:var(--uas--base--border-radius-md);border-start-end-radius:var(--uas--base--border-radius-md);pointer-events:none}.dialog[no-padding]{--uas--dialog--_padding: var(--uas--dialog--custom-padding, 0)}.dialog-featured-image{width:100%;height:300px;background:var(--uas--dialog--custom-featured-image-bg, var(--uas--dialog--featured-image-bg));border-top-left-radius:var(--uas--base--border-radius-md);border-top-right-radius:var(--uas--base--border-radius-md);margin-bottom:5px;border-bottom:1px solid var(--uas--color--border)}.dialog-featured-image img{width:100%;height:100%;object-fit:cover;border-top-left-radius:var(--uas--base--border-radius-md);border-top-right-radius:var(--uas--base--border-radius-md)}.dialog-heading{font-family:var(--uas--typography--title-large-font-family);font-size:var(--uas--typography--title-large-font-size);line-height:var(--uas--typography--title-large-line-height);font-weight:var(--uas--typography--title-large-font-weight);letter-spacing:var(--uas--typography--title-large-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;padding:0 var(--uas--dialog--_padding);display:flex;align-items:center;flex-wrap:wrap}.dialog-content{padding:0 var(--uas--dialog--_padding)}.dialog-footer{padding:0 var(--uas--dialog--_padding);display:flex;justify-content:flex-end;gap:10px;margin-top:10px}::slotted(p),::slotted(ul),::slotted(li){font-family:var(--uas--typography--body-medium-font-family);font-size:var(--uas--typography--body-medium-font-size);line-height:var(--uas--typography--body-medium-line-height);font-weight:var(--uas--typography--body-medium-font-weight);letter-spacing:var(--uas--typography--body-medium-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}::slotted(p){margin:.6em 0 !important}::slotted(p:first-child){margin-top:0 !important}::slotted(p:last-child){margin-bottom:0 !important}::slotted(ul){list-style:disc inside}`;var c_=function(e,t,i,a){var n,o=arguments.length,r=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(r=(o<3?n(r):o>3?n(t,i,r):n(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r};class cw extends ld{constructor(){super(...arguments),this.size=l8.MD,this.verticalAlign=l9.CENTER,this.forceManualClose=!1,this.noBackdropClose=!1,this.open=!1,this.noHeader=!1,this.noFooter=!1,this.noPadding=!1,this.loading=!1,this.featuredImagePosition=ct.CENTER_CENTER}render(){return s1` <dialog size="${this.size}" vertical-align="${this.verticalAlign}" @click=${this._handleDialogClick} @cancel=${this._handleNativeCancel} @close=${this._handleNativeClose} > <div class="dialog" ?no-padding=${this.noPadding} ?has-featured-image=${this.hasFeaturedImage} ?loading=${this.loading} > ${this._templateLoading} ${this._templateFeaturedImage} ${this._templateHeading} ${this._templateContent} ${this._templateFooter} </div> </dialog> `}willUpdate(e){lQ(this,"size",l7,e,"uas-dialog"),lQ(this,"verticalAlign",ce,e,"uas-dialog"),lQ(this,"featuredImagePosition",ci,e,"uas-dialog")}updated(e){if(super.updated(e),!e.has("open"))return;let t=e.get("open");if(this.open&&this.$dialog&&!this.$dialog.open){this._captureFocus(),this.$dialog.showModal();return}!this.open&&!0===t&&this.$dialog&&this.$dialog.open&&(this.$dialog.close(),this._restoreFocus())}get _templateLoading(){return this.loading?s1` <div class="dialog-loading" part="dialog-loading"> <uas-progress-linear type="indeterminate"></uas-progress-linear> </div> `:s3}get _templateFeaturedImage(){if(this.hasFeaturedImage)return s1` <div class="dialog-featured-image"> <img src="${this.featuredImage}" style="object-position: ${this.featuredImagePosition}" /> </div> `}get _templateHeading(){if(!this.noHeader)return s1` <div class="dialog-heading"> <uas-markdown .content=${this.heading} allowed-tags="strong,em" ></uas-markdown> </div> `}get _templateContent(){return s1` <div class="dialog-content"> <slot></slot> </div> `}get _templateFooter(){if(!this.noFooter)return s1` <div class="dialog-footer" @click=${this._handleClick}> <slot name="secondary-action"></slot> <slot name="primary-action"></slot> </div> `}_captureFocus(){document.activeElement instanceof HTMLElement&&(this.previouslyFocusedElement=document.activeElement)}_restoreFocus(){this.previouslyFocusedElement&&document.contains(this.previouslyFocusedElement)&&this.previouslyFocusedElement.focus()}async close(e=ca.PROGRAMMATICALLY_CALLED_DIRECTLY){if(!this.open)return;let t={element:this,eventName:"uas.dialog.close",data:{was_cancelled:e!==ca.PROGRAMMATICALLY_CALLED_DIRECTLY,context:e},schema:co,options:{bubbles:!0,composed:!0}};lw(t),lw({...t,eventName:"uap-dialog-close"}),this.open=!1}cancel(e=ca.CANCEL_GENERIC){this.close(e)}_handleDialogClick(e){this.forceManualClose||this.noBackdropClose||e.target===this.$dialog&&this.cancel(ca.CANCEL_USER_CLICKED_OUTSIDE)}_handleNativeCancel(e){e.preventDefault(),this.forceManualClose||this.cancel(ca.CANCEL_USER_PRESSED_ESCAPE_KEY)}_handleNativeClose(){this.open&&(this.open=!1,this._restoreFocus())}_handleClick(e){e.target instanceof HTMLElement&&e.target.closest('[dialog-action="close"]')&&this.cancel(ca.CANCEL_USER_CLICKED_CANCEL_BUTTON)}get hasFeaturedImage(){return!rY(this.featuredImage)}}cw.styles=cv,c_([l0({type:String})],cw.prototype,"heading",void 0),c_([l0({type:String})],cw.prototype,"size",void 0),c_([l0({type:String,attribute:"vertical-align"})],cw.prototype,"verticalAlign",void 0),c_([l0({type:Boolean,attribute:"force-manual-close"})],cw.prototype,"forceManualClose",void 0),c_([l0({type:Boolean,attribute:"no-backdrop-close"})],cw.prototype,"noBackdropClose",void 0),c_([l0({type:Boolean,reflect:!0})],cw.prototype,"open",void 0),c_([l0({type:Boolean,attribute:"no-header"})],cw.prototype,"noHeader",void 0),c_([l0({type:Boolean,attribute:"no-footer"})],cw.prototype,"noFooter",void 0),c_([l0({type:Boolean,attribute:"no-padding"})],cw.prototype,"noPadding",void 0),c_([l0({type:Boolean})],cw.prototype,"loading",void 0),c_([l0({type:String,attribute:"featured-image"})],cw.prototype,"featuredImage",void 0),c_([l0({type:String,attribute:"featured-image-position"})],cw.prototype,"featuredImagePosition",void 0),c_([l4("dialog")],cw.prototype,"$dialog",void 0),"u">typeof customElements&&!customElements.get("uas-dialog")&&customElements.define("uas-dialog",cw),customElements.get("uo-dialog")||customElements.define("uo-dialog",class extends cw{});let cx={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},ck=new class{#e=cx;#t=!1;setTimeoutProvider(e){this.#e=e}setTimeout(e,t){return this.#e.setTimeout(e,t)}clearTimeout(e){this.#e.clearTimeout(e)}setInterval(e,t){return this.#e.setInterval(e,t)}clearInterval(e){this.#e.clearInterval(e)}},cE="u"<typeof window||"Deno"in globalThis;function cS(){}function cC(e){return"number"==typeof e&&e>=0&&1/0!==e}function cT(e,t){return Math.max(e+(t||0)-Date.now(),0)}function cI(e,t){return"function"==typeof e?e(t):e}function cD(e,t){let{type:i="all",exact:a,fetchStatus:n,predicate:o,queryKey:r,stale:s}=e;if(r){if(a){if(t.queryHash!==c$(r,t.options))return!1}else if(!cR(t.queryKey,r))return!1}if("all"!==i){let e=t.isActive();if("active"===i&&!e||"inactive"===i&&e)return!1}return("boolean"!=typeof s||t.isStale()===s)&&(!n||n===t.state.fetchStatus)&&(!o||!!o(t))}function cA(e,t){let{exact:i,status:a,predicate:n,mutationKey:o}=e;if(o){if(!t.options.mutationKey)return!1;if(i){if(cO(t.options.mutationKey)!==cO(o))return!1}else if(!cR(t.options.mutationKey,o))return!1}return(!a||t.state.status===a)&&(!n||!!n(t))}function c$(e,t){return(t?.queryKeyHashFn||cO)(e)}function cO(e){return JSON.stringify(e,(e,t)=>cP(t)?Object.keys(t).sort().reduce((e,i)=>(e[i]=t[i],e),{}):t)}function cR(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(e&&t&&"object"==typeof e&&"object"==typeof t){if(Array.isArray(e)&&Array.isArray(t)){if(t.length>e.length)return!1;for(let i=0;i<t.length;i++)if(!cR(e[i],t[i]))return!1;return!0}for(let i of Object.keys(t))if(!cR(e[i],t[i]))return!1;return!0}return!1}let cM=Object.prototype.hasOwnProperty;function cL(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(let i in e)if(e[i]!==t[i])return!1;return!0}function cN(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function cP(e){if(!cz(e))return!1;let t=Object.getPrototypeOf(e),i=t?.constructor;if(void 0===i)return!0;if("function"!=typeof i)return!1;let a=i.prototype;return!!cz(a)&&!!a.hasOwnProperty("isPrototypeOf")&&t===Object.prototype}function cz(e){return"[object Object]"===Object.prototype.toString.call(e)}function cU(e,t,i){return"function"==typeof i.structuralSharing?i.structuralSharing(e,t):!1!==i.structuralSharing?function e(t,i,a=0){if(t===i)return t;if(a>500)return i;let n=cN(t)&&cN(i);if(!n&&!(cP(t)&&cP(i)))return i;let o=(n?t:Object.keys(t)).length,r=n?i:Object.keys(i),s=r.length,l=n?Array(s):{},c=0;for(let d=0;d<s;d++){let s=n?d:r[d],u=t[s],p=i[s];if(u===p){l[s]=u,(n?d<o:cM.call(t,s))&&c++;continue}if(null===u||null===p||"object"!=typeof u||"object"!=typeof p){l[s]=p;continue}let h=e(u,p,a+1);l[s]=h,h===u&&c++}return o===s&&c===o?t:l}(e,t):t}function cF(e,t,i=0){let a=[...e,t];return i&&a.length>i?a.slice(1):a}function cj(e,t,i=0){let a=[t,...e];return i&&a.length>i?a.slice(0,-1):a}let cB=Symbol();function cH(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:e.queryFn&&e.queryFn!==cB?e.queryFn:()=>Promise.reject(Error(`Missing queryFn: '${e.queryHash}'`))}var cV=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}};let cq=new class extends cV{#i;#a;#n;constructor(){super(),this.#n=e=>{if("u">typeof window&&window.addEventListener){let t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}}onSubscribe(){this.#a||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#a?.(),this.#a=void 0)}setEventListener(e){this.#n=e,this.#a?.(),this.#a=e(e=>{"boolean"==typeof e?this.setFocused(e):this.onFocus()})}setFocused(e){this.#i!==e&&(this.#i=e,this.onFocus())}onFocus(){let e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return"boolean"==typeof this.#i?this.#i:globalThis.document?.visibilityState!=="hidden"}},cZ=(e$=[],eO=0,eR=e=>{e()},eM=e=>{e()},eL=function(e){setTimeout(e,0)},{batch:e=>{let t;eO++;try{t=e()}finally{let e;--eO||(e=e$,e$=[],e.length&&eL(()=>{eM(()=>{e.forEach(e=>{eR(e)})})}))}return t},batchCalls:e=>(...t)=>{eN(()=>{e(...t)})},schedule:eN=e=>{eO?e$.push(e):eL(()=>{eR(e)})},setNotifyFunction:e=>{eR=e},setBatchNotifyFunction:e=>{eM=e},setScheduler:e=>{eL=e}}),cW=new class extends cV{#o=!0;#a;#n;constructor(){super(),this.#n=e=>{if("u">typeof window&&window.addEventListener){let t=()=>e(!0),i=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",i,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",i)}}}}onSubscribe(){this.#a||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#a?.(),this.#a=void 0)}setEventListener(e){this.#n=e,this.#a?.(),this.#a=e(this.setOnline.bind(this))}setOnline(e){this.#o!==e&&(this.#o=e,this.listeners.forEach(t=>{t(e)}))}isOnline(){return this.#o}};function cG(e){return Math.min(1e3*2**e,3e4)}function cK(e){return(e??"online")!=="online"||cW.isOnline()}var cY=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function cQ(e){let t,i,a,n=!1,o=0,r="pending",s=new Promise((e,t)=>{i=e,a=t});s.catch(cS);let l=()=>cq.isFocused()&&("always"===e.networkMode||cW.isOnline())&&e.canRun(),c=()=>cK(e.networkMode)&&e.canRun(),d=e=>{"pending"===r&&(t?.(),r="resolved",i(e))},u=e=>{"pending"===r&&(t?.(),r="rejected",a(e))},p=()=>new Promise(i=>{t=e=>{("pending"!==r||l())&&i(e)},e.onPause?.()}).then(()=>{t=void 0,"pending"===r&&e.onContinue?.()}),h=()=>{let t;if("pending"!==r)return;let i=0===o?e.initialPromise:void 0;try{t=i??e.fn()}catch(e){t=Promise.reject(e)}Promise.resolve(t).then(d).catch(t=>{if("pending"!==r)return;let i=e.retry??3*!cE,a=e.retryDelay??cG,s="function"==typeof a?a(o,t):a,c=!0===i||"number"==typeof i&&o<i||"function"==typeof i&&i(o,t);n||!c?u(t):(o++,e.onFail?.(o,t),new Promise(e=>{ck.setTimeout(e,s)}).then(()=>l()?void 0:p()).then(()=>{n?u(t):h()}))})};return{promise:s,status:()=>r,cancel:t=>{if("pending"===r){let i=new cY(t);u(i),e.onCancel?.(i)}},continue:()=>(t?.(),s),cancelRetry:()=>{n=!0},continueRetry:()=>{n=!1},canStart:c,start:()=>(c()?h():p().then(h),s)}}var cX=class{#r;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),cC(this.gcTime)&&(this.#r=ck.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(cE?1/0:3e5))}clearGcTimeout(){void 0!==this.#r&&(ck.clearTimeout(this.#r),this.#r=void 0)}},cJ=class extends cX{#s;#l;#c;#d;constructor(e){super(),this.#s=e.client,this.mutationId=e.mutationId,this.#c=e.mutationCache,this.#l=[],this.state=e.state||c1(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#l.includes(e)||(this.#l.push(e),this.clearGcTimeout(),this.#c.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#l=this.#l.filter(t=>t!==e),this.scheduleGc(),this.#c.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#l.length||("pending"===this.state.status?this.scheduleGc():this.#c.remove(this))}continue(){return this.#d?.continue()??("pending"===this.state.status?this.execute(this.state.variables):Promise.resolve())}async execute(e){let t=()=>{this.#u({type:"continue"})},i={client:this.#s,meta:this.options.meta,mutationKey:this.options.mutationKey},a=this.#d=cQ({fn:()=>this.options.mutationFn?this.options.mutationFn(e,i):Promise.reject(Error("No mutationFn found")),onFail:(e,t)=>{this.#u({type:"failed",failureCount:e,error:t})},onPause:()=>{this.#u({type:"pause"})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#c.canRun(this)}),n="pending"===this.state.status,o=!a.canStart();try{if(n)t();else{this.#u({type:"pending",variables:e,isPaused:o}),this.#c.config.onMutate&&await this.#c.config.onMutate(e,this,i);let t=await this.options.onMutate?.(e,i);t!==this.state.context&&this.#u({type:"pending",context:t,variables:e,isPaused:o})}let r=await a.start();return await this.#c.config.onSuccess?.(r,e,this.state.context,this,i),await this.options.onSuccess?.(r,e,this.state.context,i),await this.#c.config.onSettled?.(r,null,this.state.variables,this.state.context,this,i),await this.options.onSettled?.(r,null,e,this.state.context,i),this.#u({type:"success",data:r}),r}catch(t){try{await this.#c.config.onError?.(t,e,this.state.context,this,i)}catch(e){Promise.reject(e)}try{await this.options.onError?.(t,e,this.state.context,i)}catch(e){Promise.reject(e)}try{await this.#c.config.onSettled?.(void 0,t,this.state.variables,this.state.context,this,i)}catch(e){Promise.reject(e)}try{await this.options.onSettled?.(void 0,t,e,this.state.context,i)}catch(e){Promise.reject(e)}throw this.#u({type:"error",error:t}),t}finally{this.#d===a&&(this.#d=void 0),this.#c.runNext(this)}}#u(e){this.state=(t=>{switch(e.type){case"failed":return{...t,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...t,isPaused:!0};case"continue":return{...t,isPaused:!1};case"pending":return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}})(this.state),cZ.batch(()=>{this.#l.forEach(t=>{t.onMutationUpdate(e)}),this.#c.notify({mutation:this,type:"updated",action:e})})}};function c1(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var c0=class extends cV{#p;#h;#g;constructor(e={}){super(),this.config=e,this.#p=new Set,this.#h=new Map,this.#g=0}build(e,t,i){let a=new cJ({client:e,mutationCache:this,mutationId:++this.#g,options:e.defaultMutationOptions(t),state:i});return this.add(a),a}add(e){this.#p.add(e);let t=c2(e);if("string"==typeof t){let i=this.#h.get(t);i?i.push(e):this.#h.set(t,[e])}this.notify({type:"added",mutation:e})}remove(e){if(this.#p.delete(e)){let t=c2(e);if("string"==typeof t){let i=this.#h.get(t);if(i)if(i.length>1){let t=i.indexOf(e);-1!==t&&i.splice(t,1)}else i[0]===e&&this.#h.delete(t)}}this.notify({type:"removed",mutation:e})}canRun(e){let t=c2(e);if("string"!=typeof t)return!0;{let i=this.#h.get(t)?.find(e=>"pending"===e.state.status);return!i||i===e}}runNext(e){let t=c2(e);return"string"==typeof t?this.#h.get(t)?.find(t=>t!==e&&t.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){cZ.batch(()=>{this.#p.forEach(e=>{this.notify({type:"removed",mutation:e})}),this.#p.clear(),this.#h.clear()})}getAll(){return Array.from(this.#p)}find(e){let t={exact:!0,...e};return this.getAll().find(e=>cA(t,e))}findAll(e={}){return this.getAll().filter(t=>cA(e,t))}notify(e){cZ.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){let e=this.getAll().filter(e=>e.state.isPaused);return cZ.batch(()=>Promise.all(e.map(e=>e.continue().catch(cS))))}};function c2(e){return e.options.scope?.id}function c3(e,{pages:t,pageParams:i}){let a=t.length-1;return t.length>0?e.getNextPageParam(t[a],t,i[a],i):void 0}function c4(e,{pages:t,pageParams:i}){return t.length>0?e.getPreviousPageParam?.(t[0],t,i[0],i):void 0}var c6=class extends cX{#m;#f;#y;#b;#s;#d;#v;#_;constructor(e){super(),this.#_=!1,this.#v=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#s=e.client,this.#b=this.#s.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#f=c7(this.options),this.state=e.state??this.#f,this.scheduleGc()}get meta(){return this.options.meta}get queryType(){return this.#m}get promise(){return this.#d?.promise}setOptions(e){if(this.options={...this.#v,...e},e?._type&&(this.#m=e._type),this.updateGcTime(this.options.gcTime),this.state&&void 0===this.state.data){let e=c7(this.options);void 0!==e.data&&(this.setState(c8(e.data,e.dataUpdatedAt)),this.#f=e)}}optionalRemove(){this.observers.length||"idle"!==this.state.fetchStatus||this.#b.remove(this)}setData(e,t){let i=cU(this.state.data,e,this.options);return this.#u({data:i,type:"success",dataUpdatedAt:t?.updatedAt,manual:t?.manual}),i}setState(e){this.#u({type:"setState",state:e})}cancel(e){let t=this.#d?.promise;return this.#d?.cancel(e),t?t.then(cS).catch(cS):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return this.#f}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(e=>!1!==cI(e.options.enabled,this))}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===cB||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0&&this.observers.some(e=>"static"===cI(e.options.staleTime,this))}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):void 0===this.state.data||this.state.isInvalidated}isStaleByTime(e=0){return void 0===this.state.data||"static"!==e&&(!!this.state.isInvalidated||!cT(this.state.dataUpdatedAt,e))}onFocus(){this.observers.find(e=>e.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#d?.continue()}onOnline(){this.observers.find(e=>e.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#d?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#b.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){let t=this.observers.indexOf(e);-1!==t&&(this.observers.splice(t,1),this.observers.length||(this.#d&&(this.#_||"paused"===this.state.fetchStatus&&"pending"===this.state.status?this.#d.cancel({revert:!0}):this.#d.cancelRetry()),this.scheduleGc()),this.#b.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#u({type:"invalidate"})}async fetch(e,t){var i;let a;if("idle"!==this.state.fetchStatus&&this.#d?.status()!=="rejected"){if(void 0!==this.state.data&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#d)return this.#d.continueRetry(),this.#d.promise}if(e&&this.setOptions(e),!this.options.queryFn){let e=this.observers.find(e=>e.options.queryFn);e&&this.setOptions(e.options)}let n=new AbortController,o=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(this.#_=!0,n.signal)})},r=()=>{let e,i=cH(this.options,t),a=(o(e={client:this.#s,queryKey:this.queryKey,meta:this.meta}),e);return(this.#_=!1,this.options.persister)?this.options.persister(i,a,this):i(a)},s=(o(a={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#s,state:this.state,fetchFn:r}),a);("infinite"===this.#m?(i=this.options.pages,{onFetch:(e,t)=>{let a=e.options,n=e.fetchOptions?.meta?.fetchMore?.direction,o=e.state.data?.pages||[],r=e.state.data?.pageParams||[],s={pages:[],pageParams:[]},l=0,c=async()=>{let t=!1,c=cH(e.options,e.fetchOptions),d=async(i,a,n)=>{if(t)return Promise.reject(e.signal.reason);if(null==a&&i.pages.length)return Promise.resolve(i);let o=(()=>{var i,o;let r,s,l={client:e.client,queryKey:e.queryKey,pageParam:a,direction:n?"backward":"forward",meta:e.options.meta};return i=()=>e.signal,o=()=>t=!0,s=!1,Object.defineProperty(l,"signal",{enumerable:!0,get:()=>(r??=i(),s||(s=!0,r.aborted?o():r.addEventListener("abort",o,{once:!0})),r)}),l})(),r=await c(o),{maxPages:s}=e.options,l=n?cj:cF;return{pages:l(i.pages,r,s),pageParams:l(i.pageParams,a,s)}};if(n&&o.length){let e="backward"===n,t=e?c4:c3,i={pages:o,pageParams:r};s=await d(i,t(a,i),e)}else{let e=i??o.length;do{let e=0===l?r[0]??a.initialPageParam:c3(a,s);if(l>0&&null==e)break;s=await d(s,e),l++}while(l<e)}return s};e.options.persister?e.fetchFn=()=>e.options.persister?.(c,{client:e.client,queryKey:e.queryKey,meta:e.options.meta,signal:e.signal},t):e.fetchFn=c}}):this.options.behavior)?.onFetch(s,this),this.#y=this.state,("idle"===this.state.fetchStatus||this.state.fetchMeta!==s.fetchOptions?.meta)&&this.#u({type:"fetch",meta:s.fetchOptions?.meta});let l=this.#d=cQ({initialPromise:t?.initialPromise,fn:s.fetchFn,onCancel:e=>{e instanceof cY&&e.revert&&this.setState({...this.#y,fetchStatus:"idle"}),n.abort()},onFail:(e,t)=>{this.#u({type:"failed",failureCount:e,error:t})},onPause:()=>{this.#u({type:"pause"})},onContinue:()=>{this.#u({type:"continue"})},retry:s.options.retry,retryDelay:s.options.retryDelay,networkMode:s.options.networkMode,canRun:()=>!0});try{let e=await l.start();if(void 0===e)throw Error(`${this.queryHash} data is undefined`);return this.setData(e),this.#b.config.onSuccess?.(e,this),this.#b.config.onSettled?.(e,this.state.error,this),e}catch(e){if(e instanceof cY){if(e.silent)return this.#d.promise;else if(e.revert){if(void 0===this.state.data)throw e;return this.state.data}}throw this.#u({type:"error",error:e}),this.#b.config.onError?.(e,this),this.#b.config.onSettled?.(this.state.data,e,this),e}finally{this.#d===l&&(this.#d=void 0),this.scheduleGc()}}#u(e){let t=t=>{switch(e.type){case"failed":return{...t,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...t,fetchStatus:"paused"};case"continue":return{...t,fetchStatus:"fetching"};case"fetch":return{...t,...c5(t.data,this.options),fetchMeta:e.meta??null};case"success":let i={...t,...c8(e.data,e.dataUpdatedAt),dataUpdateCount:t.dataUpdateCount+1,...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#y=e.manual?i:void 0,i;case"error":let a=e.error;return{...t,error:a,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:a,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...t,isInvalidated:!0};case"setState":return{...t,...e.state}}};this.state=t(this.state),cZ.batch(()=>{this.observers.slice().forEach(e=>{e.onQueryUpdate()}),this.#b.notify({query:this,type:"updated",action:e})})}};function c5(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:cK(t.networkMode)?"fetching":"paused",...void 0===e&&{error:null,status:"pending"}}}function c8(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function c7(e){let t="function"==typeof e.initialData?e.initialData():e.initialData,i=void 0!==t,a=i?"function"==typeof e.initialDataUpdatedAt?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:i?a??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:i?"success":"pending",fetchStatus:"idle"}}var c9=class extends cV{#w;constructor(e={}){super(),this.config=e,this.#w=new Map}build(e,t,i){let a=t.queryKey,n=t.queryHash??c$(a,t),o=this.get(n);return o||(o=new c6({client:e,queryKey:a,queryHash:n,options:e.defaultQueryOptions(t),state:i,defaultOptions:e.getQueryDefaults(a)}),this.add(o)),o}add(e){this.#w.has(e.queryHash)||(this.#w.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){this.#w.get(e.queryHash)===e&&(e.destroy(),this.#w.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){cZ.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#w.get(e)}getAll(){return[...this.#w.values()]}find(e){let t={exact:!0,...e};return this.getAll().find(e=>cD(t,e))}findAll(e={}){let t=this.getAll();return Object.keys(e).length>0?t.filter(t=>cD(e,t)):t}notify(e){cZ.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){cZ.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){cZ.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},de=class{#x;#c;#v;#k;#E;#S;#C;#T;constructor(e={}){this.#x=e.queryCache||new c9,this.#c=e.mutationCache||new c0,this.#v=e.defaultOptions||{},this.#k=new Map,this.#E=new Map,this.#S=0}mount(){this.#S++,1===this.#S&&(this.#C=cq.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#x.onFocus())}),this.#T=cW.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#x.onOnline())}))}unmount(){this.#S--,0===this.#S&&(this.#C?.(),this.#C=void 0,this.#T?.(),this.#T=void 0)}isFetching(e){return this.#x.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#c.findAll({...e,status:"pending"}).length}getQueryData(e){let t=this.defaultQueryOptions({queryKey:e});return this.#x.get(t.queryHash)?.state.data}ensureQueryData(e){let t=this.defaultQueryOptions(e),i=this.#x.build(this,t),a=i.state.data;return void 0===a?this.fetchQuery(e):(e.revalidateIfStale&&i.isStaleByTime(cI(t.staleTime,i))&&this.prefetchQuery(t),Promise.resolve(a))}getQueriesData(e){return this.#x.findAll(e).map(({queryKey:e,state:t})=>[e,t.data])}setQueryData(e,t,i){let a=this.defaultQueryOptions({queryKey:e}),n=this.#x.get(a.queryHash)?.state.data,o="function"==typeof t?t(n):t;if(void 0!==o)return this.#x.build(this,a).setData(o,{...i,manual:!0})}setQueriesData(e,t,i){return cZ.batch(()=>this.#x.findAll(e).map(({queryKey:e})=>[e,this.setQueryData(e,t,i)]))}getQueryState(e){let t=this.defaultQueryOptions({queryKey:e});return this.#x.get(t.queryHash)?.state}removeQueries(e){let t=this.#x;cZ.batch(()=>{t.findAll(e).forEach(e=>{t.remove(e)})})}resetQueries(e,t){let i=this.#x;return cZ.batch(()=>{let a=i.findAll(e),n=new Set(a);return a.forEach(e=>{e.reset()}),this.refetchQueries({type:"active",predicate:e=>n.has(e)},t)})}cancelQueries(e,t={}){let i={revert:!0,...t};return Promise.all(cZ.batch(()=>this.#x.findAll(e).map(e=>e.cancel(i)))).then(cS).catch(cS)}invalidateQueries(e,t={}){return cZ.batch(()=>(this.#x.findAll(e).forEach(e=>{e.invalidate()}),e?.refetchType==="none")?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??"active"},t))}refetchQueries(e,t={}){let i={...t,cancelRefetch:t.cancelRefetch??!0};return Promise.all(cZ.batch(()=>this.#x.findAll(e).filter(e=>!e.isDisabled()&&!e.isStatic()).map(e=>{let t=e.fetch(void 0,i);return i.throwOnError||(t=t.catch(cS)),"paused"===e.state.fetchStatus?Promise.resolve():t}))).then(cS)}async query(e){let t=this.defaultQueryOptions(e);void 0===t.retry&&(t.retry=!1);let i=this.#x.build(this,t),a=i.isStaleByTime(cI(t.staleTime,i))?await i.fetch(t):i.state.data,n=t.select;return n?n(a):a}fetchQuery(e){let t=this.defaultQueryOptions(e);void 0===t.retry&&(t.retry=!1);let i=this.#x.build(this,t);return i.isStaleByTime(cI(t.staleTime,i))?i.fetch(t):Promise.resolve(i.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(cS).catch(cS)}infiniteQuery(e){return e._type="infinite",this.query(e)}fetchInfiniteQuery(e){return e._type="infinite",this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(cS).catch(cS)}ensureInfiniteQueryData(e){return e._type="infinite",this.ensureQueryData(e)}resumePausedMutations(){return cW.isOnline()?this.#c.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#x}getMutationCache(){return this.#c}getDefaultOptions(){return this.#v}setDefaultOptions(e){this.#v=e}setQueryDefaults(e,t){this.#k.set(cO(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){let t=[...this.#k.values()],i={};return t.forEach(t=>{cR(e,t.queryKey)&&Object.assign(i,t.defaultOptions)}),i}setMutationDefaults(e,t){this.#E.set(cO(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){let t=[...this.#E.values()],i={};return t.forEach(t=>{cR(e,t.mutationKey)&&Object.assign(i,t.defaultOptions)}),i}defaultQueryOptions(e){if(e._defaulted)return e;let t={...this.#v.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=c$(t.queryKey,t)),void 0===t.refetchOnReconnect&&(t.refetchOnReconnect="always"!==t.networkMode),void 0===t.throwOnError&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===cB&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#v.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#x.clear(),this.#c.clear()}};function dt(e){return e.state.isPaused}function di(e){return"success"===e.state.status}function da(){}let dn=["added","removed","updated"];function dr(e){return dn.includes(e)}async function ds({queryClient:e,persister:t,buster:i="",dehydrateOptions:a}){let n={buster:i,timestamp:Date.now(),clientState:function(e,t={}){let i=t.shouldDehydrateMutation??e.getDefaultOptions().dehydrate?.shouldDehydrateMutation??dt,a=e.getMutationCache().getAll().flatMap(e=>i(e)?[{mutationKey:e.options.mutationKey,state:e.state,...e.options.scope&&{scope:e.options.scope},...e.meta&&{meta:e.meta}}]:[]),n=t.shouldDehydrateQuery??e.getDefaultOptions().dehydrate?.shouldDehydrateQuery??di,o=t.shouldRedactErrors??e.getDefaultOptions().dehydrate?.shouldRedactErrors,r=t.serializeData??e.getDefaultOptions().dehydrate?.serializeData;return{mutations:a,queries:e.getQueryCache().getAll().flatMap(e=>{let t;return n(e)?[{dehydratedAt:Date.now(),state:{...e.state,...void 0!==e.state.data&&{data:r?r(e.state.data):e.state.data}},queryKey:e.queryKey,queryHash:e.queryHash,..."pending"===e.state.status&&{promise:(t=e.promise?.then(r).catch(e=>o?.(e)===!1?Promise.reject(e):Promise.reject(Error("redacted"))),t?.catch(cS),t)},...e.meta&&{meta:e.meta},...e.queryType&&{queryType:e.queryType}}]:[]})}}(e,a)};await t.persistClient(n)}Promise.resolve(!1),Promise.resolve(!0);var dl=Promise.resolve();function dc(e,t){return e||(e=0),new Promise(function(i){return setTimeout(function(){return i(t)},e)})}function dd(){return Math.random().toString(36).substring(2)}var du=0;function dp(){var e=1e3*Date.now();return e<=du&&(e=du+1),du=e,e}class dh{ttl;map=new Map;_to=!1;constructor(e){this.ttl=e}has(e){let t=this.map.get(e);return void 0!==t&&(!(t<dg()-this.ttl)||(this.map.delete(e),!1))}add(e){this.map.delete(e),this.map.set(e,dg()),this._to||(this._to=!0,setTimeout(()=>{this._to=!1,function(e){let t=dg()-e.ttl,i=e.map[Symbol.iterator]();for(;;){let a=i.next().value;if(!a)break;let n=a[0];if(a[1]<t)e.map.delete(n);else break}}(this)},0))}clear(){this.map.clear()}}function dg(){return Date.now()}function dm(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=JSON.parse(JSON.stringify(e));return void 0===t.webWorkerSupport&&(t.webWorkerSupport=!0),t.idb||(t.idb={}),t.idb.ttl||(t.idb.ttl=45e3),t.idb.fallbackInterval||(t.idb.fallbackInterval=150),e.idb&&"function"==typeof e.idb.onclose&&(t.idb.onclose=e.idb.onclose),t.localstorage||(t.localstorage={}),t.localstorage.removeTimeout||(t.localstorage.removeTimeout=6e4),e.methods&&(t.methods=e.methods),t.node||(t.node={}),t.node.ttl||(t.node.ttl=12e4),t.node.maxParallelWrites||(t.node.maxParallelWrites=2048),void 0===t.node.useFastPath&&(t.node.useFastPath=!0),t}var df="messages",dy={durability:"relaxed"};function db(){if("u">typeof indexedDB)return indexedDB;if("u">typeof window){if(void 0!==window.mozIndexedDB)return window.mozIndexedDB;if(void 0!==window.webkitIndexedDB)return window.webkitIndexedDB;if(void 0!==window.msIndexedDB)return window.msIndexedDB}return!1}function dv(e){e.commit&&e.commit()}function d_(e){return e.closed||!e.messagesCallback?dl:(function(e,t){var i=e.transaction(df,"readonly",dy),a=i.objectStore(df),n=[],o=IDBKeyRange.bound(t+1,1/0);if(a.getAll){var r=a.getAll(o);return new Promise(function(e,t){r.onerror=function(e){return t(e)},r.onsuccess=function(t){e(t.target.result)}})}return new Promise(function(e,r){var s=function(){try{return o=IDBKeyRange.bound(t+1,1/0),a.openCursor(o)}catch{return a.openCursor()}}();s.onerror=function(e){return r(e)},s.onsuccess=function(a){var o=a.target.result;o?o.value.id<t+1?o.continue(t+1):(n.push(o.value),o.continue()):(dv(i),e(n))}})})(e.db,e.lastCursorId).then(function(t){return t.filter(function(e){return!!e}).map(function(t){return t.id>e.lastCursorId&&(e.lastCursorId=t.id),t}).filter(function(t){return!(t.uuid===e.uuid||e.eMIs.has(t.id))&&!(t.data.time<e.messagesCallbackTime)}).sort(function(e,t){return e.time-t.time}).forEach(function(t){e.messagesCallback&&(e.eMIs.add(t.id),e.messagesCallback(t.data))}),dl})}function dw(){var e;if("u"<typeof window)return null;try{e=window.localStorage,e=window["ie8-eventlistener/storage"]||window.localStorage}catch{}return e}function dx(e){return"pubkey.broadcastChannel-"+e}function dk(){var e=dw();if(!e)return!1;try{var t="__broadcastchannel_check";e.setItem(t,"works"),e.removeItem(t)}catch{return!1}return!0}var dE=new Set,dS={create:function(e){var t={time:dp(),name:e,messagesCallback:null};return dE.add(t),t},close:function(e){dE.delete(e)},onMessage:function(e,t){e.messagesCallback=t},postMessage:function(e,t){return new Promise(function(i){return setTimeout(function(){Array.from(dE).forEach(function(i){i.name===e.name&&i!==e&&i.messagesCallback&&i.time<t.time&&i.messagesCallback(t)}),i()},5)})},canBeUsed:function(){return!0},type:"simulate",averageResponseTime:function(){return 5},microSeconds:dp},dC=[{create:function(e){var t={time:dp(),messagesCallback:null,bc:new BroadcastChannel(e),subFns:[]};return t.bc.onmessage=function(e){t.messagesCallback&&t.messagesCallback(e.data)},t},close:function(e){e.bc.close(),e.subFns=[]},onMessage:function(e,t){e.messagesCallback=t},postMessage:function(e,t){try{return e.bc.postMessage(t,!1),dl}catch(e){return Promise.reject(e)}},canBeUsed:function(){if("u">typeof globalThis&&globalThis.Deno&&globalThis.Deno.args)return!0;if(!("u">typeof window||"u">typeof self)||"function"!=typeof BroadcastChannel)return!1;if(BroadcastChannel._pubkey)throw Error("BroadcastChannel: Do not overwrite window.BroadcastChannel with this module, this is not a polyfill");return!0},type:"native",averageResponseTime:function(){return 150},microSeconds:dp},{create:function(e,t){var i;return t=dm(t),((i=db().open("pubkey.broadcast-channel-0-"+e)).onupgradeneeded=function(e){e.target.result.createObjectStore(df,{keyPath:"id",autoIncrement:!0})},new Promise(function(e,t){i.onerror=function(e){return t(e)},i.onsuccess=function(){e(i.result)}})).then(function(i){var a={closed:!1,lastCursorId:0,channelName:e,options:t,uuid:dd(),eMIs:new dh(2*t.idb.ttl),writeBlockPromise:dl,messagesCallback:null,readQueuePromises:[],db:i};return i.onclose=function(){a.closed=!0,t.idb.onclose&&t.idb.onclose()},function e(t){t.closed||d_(t).then(function(){return dc(t.options.idb.fallbackInterval)}).then(function(){return e(t)})}(a),a})},close:function(e){e.closed=!0,e.db.close()},onMessage:function(e,t,i){e.messagesCallbackTime=i,e.messagesCallback=t,d_(e)},postMessage:function(e,t){return e.writeBlockPromise=e.writeBlockPromise.then(function(){var i,a,n,o;return i=e.db,a=e.uuid,n={uuid:a,time:Date.now(),data:t},o=i.transaction([df],"readwrite",dy),new Promise(function(e,t){o.oncomplete=function(){return e()},o.onerror=function(e){return t(e)},o.objectStore(df).add(n),dv(o)})}).then(function(){var t,i,a,n,o,r;0===Math.floor(11*Math.random()+0)&&(t=e.db,i=e.options.idb.ttl,a=Date.now()-i,o=(n=t.transaction(df,"readonly",dy)).objectStore(df),r=[],new Promise(function(e){o.openCursor().onsuccess=function(t){var i=t.target.result;if(i){var o=i.value;o.time<a?(r.push(o),i.continue()):(dv(n),e(r))}else e(r)}})).then(function(t){var i=t.map(function(e){return e.id});if(e.closed)return Promise.resolve([]);var a=e.db.transaction(df,"readwrite",dy).objectStore(df);return Promise.all(i.map(function(e){var t=a.delete(e);return new Promise(function(e){t.onsuccess=function(){return e()}})}))})}),e.writeBlockPromise},canBeUsed:function(){return!!db()},type:"idb",averageResponseTime:function(e){return 2*e.idb.fallbackInterval},microSeconds:dp},{create:function(e,t){if(t=dm(t),!dk())throw Error("BroadcastChannel: localstorage cannot be used");var i,a,n,o=dd(),r=new dh(t.localstorage.removeTimeout),s={channelName:e,uuid:o,eMIs:r};return i=function(e){!s.messagesCallback||e.uuid===o||!e.token||r.has(e.token)||e.data.time&&e.data.time<s.messagesCallbackTime||(r.add(e.token),s.messagesCallback(e.data))},a=dx(e),n=function(e){e.key===a&&i(JSON.parse(e.newValue))},window.addEventListener("storage",n),s.listener=n,s},close:function(e){var t;t=e.listener,window.removeEventListener("storage",t)},onMessage:function(e,t,i){e.messagesCallbackTime=i,e.messagesCallback=t},postMessage:function(e,t){return new Promise(function(i){dc().then(function(){var a=dx(e.channelName),n=JSON.stringify({token:dd(),time:Date.now(),data:t,uuid:e.uuid});dw().setItem(a,n);var o=document.createEvent("Event");o.initEvent("storage",!0,!0),o.key=a,o.newValue=n,window.dispatchEvent(o),i()})})},canBeUsed:dk,type:"localstorage",averageResponseTime:function(){var e=navigator.userAgent.toLowerCase();return e.includes("safari")&&!e.includes("chrome")?240:120},microSeconds:dp}],dT=new Set,dI=0,dD=function(e,t){this.id=dI++,dT.add(this),this.name=e,ww&&(t=ww),this.options=dm(t),this.method=function(e){var t=[].concat(e.methods,dC).filter(Boolean);if(e.type){if("simulate"===e.type)return dS;var i=t.find(function(t){return t.type===e.type});if(i)return i;throw Error("method-type "+e.type+" not found")}e.webWorkerSupport||(t=t.filter(function(e){return"idb"!==e.type}));var a=t.find(function(e){return e.canBeUsed()});if(a)return a;throw Error("No usable method found in "+JSON.stringify(dC.map(function(e){return e.type})))}(this.options),this._iL=!1,this._onML=null,this._addEL={message:[],internal:[]},this._uMP=new Set,this._befC=[],this._prepP=null,function(e){var t=e.method.create(e.name,e.options);t&&"function"==typeof t.then?(e._prepP=t,t.then(function(t){e._state=t})):e._state=t}(this)};function dA(e,t,i){var a={time:e.method.microSeconds(),type:t,data:i};return(e._prepP?e._prepP:dl).then(function(){var t=e.method.postMessage(e._state,a);return e._uMP.add(t),t.catch().then(function(){return e._uMP.delete(t)}),t})}function d$(e){return!!(e._addEL.message.length>0)||!!(e._addEL.internal.length>0)}function dO(e,t,i){e._addEL[t].push(i),function(e){if(!e._iL&&d$(e)){var t=function(t){e._addEL[t.type].forEach(function(e){t.time>=e.time&&e.fn(t.data)})},i=e.method.microSeconds();e._prepP?e._prepP.then(function(){e._iL=!0,e.method.onMessage(e._state,t,i)}):(e._iL=!0,e.method.onMessage(e._state,t,i))}}(e)}function dR(e,t,i){e._addEL[t]=e._addEL[t].filter(function(e){return e!==i}),function(e){if(e._iL&&!d$(e)){e._iL=!1;var t=e.method.microSeconds();e.method.onMessage(e._state,null,t)}}(e)}dD._pubkey=!0,dD.prototype={postMessage:function(e){if(this.closed)throw Error("BroadcastChannel.postMessage(): Cannot post message after channel has closed "+JSON.stringify(e));return dA(this,"message",e)},postInternal:function(e){return dA(this,"internal",e)},set onmessage(e){var t={time:this.method.microSeconds(),fn:e};dR(this,"message",this._onML),e&&"function"==typeof e?(this._onML=t,dO(this,"message",t)):this._onML=null},addEventListener:function(e,t){dO(this,e,{time:this.method.microSeconds(),fn:t})},removeEventListener:function(e,t){var i=this._addEL[e].find(function(e){return e.fn===t});dR(this,e,i)},close:function(){var e=this;if(!this.closed){dT.delete(this),this.closed=!0;var t=this._prepP?this._prepP:dl;return this._onML=null,this._addEL.message=[],t.then(function(){return Promise.all(Array.from(e._uMP))}).then(function(){return Promise.all(e._befC.map(function(e){return e()}))}).then(function(){return e.method.close(e._state)})}},get type(){return this.method.type},get isClosed(){return this.closed}};let dM=oR().regex(/^[a-z0-9]+(?:-[a-z0-9]+)*$/),dL=rg({namespace:dM,persistedQueryKeys:rp(rp(rr()).min(1).readonly()).min(1).readonly(),maxAge:rZ(e=>"number"==typeof e&&e>=0,"maxAge must be a non-negative number of milliseconds, or Infinity").optional(),force:re().optional()}),dN=rg({loading:oR().optional(),success:oR().optional(),error:oR().optional()}).strict(),dP={GET:"GET",POST:"POST",PUT:"PUT",DELETE:"DELETE",PATCH:"PATCH",HEAD:"HEAD",OPTIONS:"OPTIONS"},dz=rg({endpoint:oR().optional(),url:oH().optional(),baseUrl:oH().optional(),responseSchema:rG(oA).optional(),method:rT(dP).default(dP.GET),data:rn().optional(),snackbar:dN.optional(),eventName:oR().optional(),headers:rE(oR(),oR()).optional(),fetchOptions:rE(oR(),rn()).optional(),signal:rG(AbortSignal).optional(),useEnvelope:re().default(!0)}).strict().refine(e=>rK(e.endpoint)!==rK(e.url),{message:"Must provide either 'endpoint' or 'url', but not both",path:["endpoint"]}),dU=rg({success:re(),data:rn().optional(),message:oR().optional()}).strict();rT({RETRY:"retry",RETHROW:"rethrow"});let dF={},dj=[dP.PUT,dP.PATCH,dP.DELETE];class dB extends Error{constructor(e,t){super(e),this.name="FetchApiDataContractValidationError",this.issues=t,Object.setPrototypeOf(this,dB.prototype)}}class dH extends Error{constructor(e,t,i){super(`HTTP error! Status: ${e} ${t}`),this.name="FetchApiHttpError",this.status=e,this.statusText=t,this.body=i,Object.setPrototypeOf(this,dH.prototype)}}async function dV(e){let t=dz.parse(e),{snackbar:i={},signal:a}=t,{loading:n,success:o,error:r}=i,s=null,l=()=>{rK(s)&&(s.remove(),s=null)};try{let i=await (async()=>{rY(n)||(s=ly({message:n,iconID:"spinner-third",iconAnimation:"spin"}));try{let i=await async function(e,t){let i,a,n,{endpoint:o,url:r,baseUrl:s,method:l,data:c,eventName:d,headers:u={},fetchOptions:p={},signal:h,useEnvelope:g}=e,m=t.responseSchema,f="u">typeof FormData&&c instanceof FormData||"u">typeof URLSearchParams&&c instanceof URLSearchParams||"u">typeof Blob&&c instanceof Blob;if(r)i=r;else{if(!o)return Promise.reject(Error('API request failed: Must provide either "endpoint" or "url"'));let e,t,a,n=s||dF.baseUrl;if(rY(n))return Promise.reject(Error('API request failed: No base URL configured. Call configureFetchApi({ baseUrl: "..." }) or provide options.url'));e=n.replace(/\/+$/,""),t=o.replace(/^\/+/,""),a=e.includes("?")?t.replace("?","&"):t,i=`${e}/${a}`}let y="function"==typeof dF.headers?dF.headers():dF.headers,b={...f?{}:{"Content-Type":"application/json"},...y,...u};dF.wpNonce&&(b["X-WP-Nonce"]=dF.wpNonce);let v=!0===dF.methodOverride&&dj.includes(l);v&&(b["X-HTTP-Method-Override"]=l);let _={method:l,headers:b,...p,...h?{signal:h}:{},...v?{method:dP.POST}:{}};c&&["POST","PUT","PATCH","DELETE"].includes(l)&&(_.body=f?c:JSON.stringify(c));let w=await fetch(i,_);if(!w.ok){let e;try{e=await w.json()}catch{}throw new dH(w.status,w.statusText,e)}try{a=await w.json()}catch(e){if(e instanceof DOMException&&"AbortError"===e.name)throw e;throw Error("Failed to parse response as JSON")}if(g){let e;try{e=dU.parse(a)}catch(e){if(e instanceof om)throw new dB(`Backend issue: API response wrapper from "${i}" is malformed. The basic structure (success, data?, message?) is invalid.`,e.issues);throw e}if(!e.success)throw Error(e.message||"Backend issue: The API operation failed because `.success` was false.");n=e.data}else n=a;if(!m){if(rK(n))throw Error("API returned data but no responseSchema was provided. Either provide a responseSchema to validate the data, or ensure the API doesn't return data.");return rZ().parse(void 0)}try{let e=m.parse(n);if(!rY(d)&&rK(e)){let t=new CustomEvent(d,{detail:e});document.dispatchEvent(t)}return e}catch(e){if(e instanceof om)throw console.error(`Backend issue: Data validation failed for "${i}":`,e.issues),new dB(`Backend issue: Response data from "${i}" is invalid.`,e.issues);throw e}}(t,e);return l(),i}catch(e){throw l(),e}})();return rY(o)||ly({message:o,iconID:"check",duration:3e3}),i}catch(t){var c;let e;throw e=(c=t)instanceof DOMException&&"AbortError"===c.name,rY(r)||e||ly({message:r,iconID:"xmark",color:"error",duration:3e3}),t}}let dq=null,dZ=new Set([408,429]),dW=new de({defaultOptions:{queries:{staleTime:3e5,gcTime:18e5,retry:function(e,t){return!(e>=3)&&(!(t instanceof dH)||!(t.status>=400)||!(t.status<500)||dZ.has(t.status))},retryDelay:e=>Math.min(1e3*2**e,3e4),refetchOnWindowFocus:!0,refetchOnReconnect:!0,refetchOnMount:!0}}});rg({url:oH(),onEvent:rV(),eventSchemas:rE(oR(),rG(oA)).optional(),eventTypes:rp(oR()).optional(),signal:rG(AbortSignal).optional()}).strict(),rg({cancel:rV(),streaming:re(),completion:rG(Promise)});var dG=class extends cV{#s;#I=void 0;#D;#A;constructor(e,t){super(),this.#s=e,this.setOptions(t),this.bindMethods(),this.#$()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){let t=this.options;this.options=this.#s.defaultMutationOptions(e),cL(this.options,t)||this.#s.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#D,observer:this}),t?.mutationKey&&this.options.mutationKey&&cO(t.mutationKey)!==cO(this.options.mutationKey)?this.reset():this.#D?.state.status==="pending"&&this.#D.setOptions(this.options)}onSubscribe(){1===this.listeners.size&&this.#D&&(this.#D.addObserver(this),this.#$())}onUnsubscribe(){this.hasListeners()||this.#D?.removeObserver(this)}onMutationUpdate(e){this.#$(),this.#O(e)}getCurrentResult(){return this.#I}reset(){this.#D?.removeObserver(this),this.#D=void 0,this.#$(),this.#O()}mutate(e,t){return this.#A=t,this.#D?.removeObserver(this),this.#D=this.#s.getMutationCache().build(this.#s,this.options),this.#D.addObserver(this),this.#D.execute(e)}#$(){let e=this.#D?.state??c1();this.#I={...e,isPending:"pending"===e.status,isSuccess:"success"===e.status,isError:"error"===e.status,isIdle:"idle"===e.status,mutate:this.mutate,reset:this.reset}}#O(e){cZ.batch(()=>{if(this.#A&&this.hasListeners()){let t=this.#I.variables,i=this.#I.context,a={client:this.#s,meta:this.options.meta,mutationKey:this.options.mutationKey};if(e?.type==="success"){try{this.#A.onSuccess?.(e.data,t,i,a)}catch(e){Promise.reject(e)}try{this.#A.onSettled?.(e.data,null,t,i,a)}catch(e){Promise.reject(e)}}else if(e?.type==="error"){try{this.#A.onError?.(e.error,t,i,a)}catch(e){Promise.reject(e)}try{this.#A.onSettled?.(void 0,e.error,t,i,a)}catch(e){Promise.reject(e)}}}this.listeners.forEach(e=>{e(this.#I)})})}};async function dK(e,t,i){let a=new dG(i??dW,e),n=a.subscribe(()=>{});try{return await a.mutate(t)}finally{n()}}let dY={NO_ACCOUNT:"no_account",PRO_INACTIVE:"pro_inactive",CONNECTED:"connected",NEAR_LIMIT:"near_limit",AT_LIMIT:"at_limit",PRO:"pro",EMPTY:"empty"},dQ=rT(dY);rg({NONCE_REFRESH_INTERVAL_H:o5(),DEV:rg({SHOW_CONSOLE_MESSAGES:re(),RETURN_MOCK_DATA:re(),MOCK_DELAY_MS:o5(),MOCK_SCENARIO:dQ})}).strict().readonly();let dX={DASHBOARD:"uncanny-automator-dashboard",LOGS:"uncanny-automator-admin-logs",STATUS:"uncanny-automator-admin-tools",PLANS:"uncanny-automator-pro-upgrade",SETTINGS:"uncanny-automator-config"},dJ=rT(dX),d1={RECIPE:"recipe",TRIGGER:"trigger",ACTION:"action",FAILED_ACTIONS:"failed-actions",APP_EVENTS:"app-events",AI_ACTIVITY:"ai-activity"},d0=rT(d1),d2={MCP:"model-context-protocol"};rT(d2);let d3={GENERAL:"general",TOOLS:"tools"};rT(d3);let d4={NONCE_REFRESH_INTERVAL_H:4,DEV:{SHOW_CONSOLE_MESSAGES:!0,RETURN_MOCK_DATA:!1,MOCK_DELAY_MS:2e3,MOCK_SCENARIO:dY.CONNECTED}};class d6 extends cs{constructor(e){if(super(e),this.it=s3,2!==e.type)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===s3||null==e)return this._t=void 0,this.it=e;if(e===s2)return e;if("string"!=typeof e)throw Error(this.constructor.directiveName+"() called with a non-string value");if(e===this.it)return this._t;this.it=e;let t=[e];return t.raw=t,this._t={_$litType$:this.constructor.resultType,strings:t,values:[]}}}d6.directiveName="unsafeHTML",d6.resultType=1;let d5=cr(d6),d8=rT({SPIN:"spin"}),d7=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64"><path fill="#d97757" d="M12.58,42.56l12.61-7.04.19-.64-.19-.32h-.64l-2.11-.13-7.17-.19-6.27-.32-6.08-.32-1.54-.32L.03,31.36l.13-.96,1.28-.83,1.86.13,4.03.32,6.08.38,4.42.26,6.53.77h1.02l.13-.45-.32-.26-.26-.26-6.34-4.22-6.78-4.48-3.58-2.62-1.92-1.28-.96-1.28-.38-2.69,1.73-1.92,2.37.19.58.13,2.37,1.86,5.12,3.9,6.59,4.99.96.77.38-.26.06-.19-.45-.7-3.52-6.66-3.84-6.66-1.73-2.75-.45-1.66c-.19-.64-.26-1.28-.26-1.92l1.92-2.69,1.15-.32,2.69.38,1.02.9,1.66,3.84,2.62,5.95,4.16,8.06,1.28,2.43.64,2.18.19.64h.45v-.32l.32-4.61.64-5.57.64-7.17.19-2.05,1.02-2.43,1.92-1.28,1.66.7,1.28,1.86-.19,1.15-.7,4.93-1.66,7.74-.96,5.25h.58l.64-.7,2.62-3.46,4.42-5.5,1.92-2.24,2.3-2.37,1.47-1.15h2.75l1.98,3.01-.9,3.14-2.82,3.58-2.37,3.01-3.39,4.54-2.05,3.65.19.26h.45l7.68-1.66,4.1-.7,4.86-.83,2.24,1.02.26,1.02-.9,2.18-5.25,1.28-6.14,1.28-9.15,2.11-.13.06.13.19,4.1.38,1.79.13h4.35l8.06.64,2.11,1.28,1.22,1.73-.19,1.28-3.26,1.66-4.35-1.02-10.24-2.43-3.46-.83h-.51v.26l2.94,2.88,5.31,4.8,6.78,6.21.32,1.54-.83,1.28-.9-.13-5.89-4.48-2.3-1.92-5.12-4.35h-.32v.45l1.15,1.73,6.27,9.41.32,2.88-.45.9-1.66.64-1.73-.38-3.71-5.12-3.84-5.76-3.01-5.25-.32.26-1.86,19.33-.83.96-1.92.77-1.6-1.28-.9-1.92.9-3.97,1.02-5.12.83-4.1.77-5.06.45-1.66v-.13h-.45l-3.84,5.31-5.76,7.87-4.61,4.86-1.09.45-1.92-.96.19-1.79,1.02-1.47,6.4-8.19,3.84-5.06,2.56-2.94-.06-.32h-.19l-16.9,11.01-3.01.38-1.28-1.28.13-1.92.64-.64,5.12-3.52h-.06Z"/></svg> `,d9=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 65 65"><defs><linearGradient id="gemgrad" x1="18.447" y1="43.42" x2="52.153" y2="15.004" gradientUnits="userSpaceOnUse"><stop stop-color="#4893FC"/><stop offset=".27" stop-color="#4893FC"/><stop offset=".777" stop-color="#969DFF"/><stop offset="1" stop-color="#BD99FE"/></linearGradient></defs><path fill="url(#gemgrad)" d="M32.447 0c.68 0 1.273.465 1.439 1.125a38.904 38.904 0 001.999 5.905c2.152 5 5.105 9.376 8.854 13.125 3.751 3.75 8.126 6.703 13.125 8.855a38.98 38.98 0 005.906 1.999c.66.166 1.124.758 1.124 1.438 0 .68-.464 1.273-1.125 1.439a38.902 38.902 0 00-5.905 1.999c-5 2.152-9.375 5.105-13.125 8.854-3.749 3.751-6.702 8.126-8.854 13.125a38.973 38.973 0 00-2 5.906 1.485 1.485 0 01-1.438 1.124c-.68 0-1.272-.464-1.438-1.125a38.913 38.913 0 00-2-5.905c-2.151-5-5.103-9.375-8.854-13.125-3.75-3.749-8.125-6.702-13.125-8.854a38.973 38.973 0 00-5.905-2A1.485 1.485 0 010 32.448c0-.68.465-1.272 1.125-1.438a38.903 38.903 0 005.905-2c5-2.151 9.376-5.104 13.125-8.854 3.75-3.749 6.703-8.125 8.855-13.125a38.972 38.972 0 001.999-5.905A1.485 1.485 0 0132.447 0z"/></svg> `,ue=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64"><path fill="currentColor" d="M24.72,40.72l21.28-15.73c1.04-.77,2.53-.47,3.03.73,2.62,6.32,1.45,13.9-3.76,19.12-5.2,5.21-12.45,6.35-19.06,3.75l-7.23,3.35c10.37,7.1,22.96,5.34,30.83-2.54,6.24-6.25,8.18-14.77,6.37-22.45l.02.02c-2.62-11.29.64-15.8,7.33-25.02.16-.22.32-.44.48-.66l-8.8,8.81v-.03l-30.48,30.66M20.33,44.54c-7.44-7.12-6.16-18.14.19-24.49,4.7-4.7,12.39-6.62,19.11-3.8l7.21-3.34c-1.3-.94-2.97-1.95-4.88-2.66-8.64-3.56-18.98-1.79-26.01,5.24-6.76,6.76-8.88,17.16-5.23,26.04,2.73,6.63-1.74,11.32-6.24,16.06-1.59,1.68-3.19,3.36-4.48,5.13l20.32-18.17"/></svg> `,ut=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64"><path fill="currentColor" d="M59.41,26.19c1.45-4.36.95-9.13-1.37-13.1-3.49-6.08-10.51-9.21-17.37-7.74C37.62,1.93,33.24-.03,28.65,0c-7.01-.02-13.23,4.5-15.38,11.16-4.5.92-8.39,3.74-10.66,7.73-3.52,6.06-2.72,13.71,1.98,18.91-1.45,4.36-.95,9.13,1.37,13.1,3.49,6.08,10.51,9.21,17.37,7.74,3.05,3.44,7.43,5.39,12.03,5.36,7.01.02,13.23-4.5,15.39-11.17,4.5-.92,8.39-3.74,10.66-7.73,3.51-6.06,2.71-13.7-1.99-18.9h0ZM35.35,59.82c-2.81,0-5.52-.98-7.68-2.78.1-.05.27-.15.38-.21l12.74-7.36c.65-.37,1.05-1.06,1.05-1.81v-17.97l5.39,3.11c.06.03.1.08.1.15v14.88c0,6.62-5.37,11.98-11.98,11.99h0ZM9.59,48.81c-1.41-2.43-1.91-5.27-1.43-8.04.09.06.26.16.38.23l12.74,7.36c.65.38,1.45.38,2.09,0l15.56-8.98v6.22c0,.06-.03.13-.08.17l-12.88,7.44c-5.74,3.3-13.07,1.34-16.38-4.39h0ZM6.23,20.99c1.4-2.43,3.61-4.29,6.24-5.26,0,.11,0,.3,0,.44v14.72c0,.75.4,1.44,1.05,1.81l15.56,8.98-5.39,3.11c-.05.04-.12.04-.18.02l-12.88-7.44c-5.73-3.32-7.69-10.64-4.39-16.38h0ZM50.49,31.29l-15.56-8.98,5.39-3.11c.05-.04.12-.04.18-.02l12.88,7.44c5.74,3.31,7.7,10.65,4.39,16.39-1.4,2.43-3.61,4.29-6.24,5.26v-15.16c0-.75-.39-1.44-1.04-1.81h0ZM55.85,23.22c-.09-.06-.26-.16-.38-.23l-12.74-7.36c-.65-.38-1.45-.38-2.09,0l-15.56,8.98v-6.22c0-.06.03-.13.08-.17l12.88-7.43c5.74-3.31,13.07-1.34,16.38,4.4,1.4,2.42,1.9,5.26,1.43,8.02h0ZM22.14,34.31l-5.39-3.11c-.06-.03-.1-.08-.1-.15v-14.88c0-6.62,5.38-11.99,12-11.99,2.8,0,5.51.98,7.67,2.78-.1.05-.27.15-.38.21l-12.74,7.36c-.65.37-1.05,1.06-1.05,1.81v17.96s0,0,0,0ZM25.07,28l6.93-4,6.93,4v8l-6.93,4-6.93-4v-8Z"/></svg> `,ui=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64"><path fill="#0e2dfe" d="M53.5,26.37l-5.05.03c-1.54,0-2.46,1.18-3.19,2.45l-14.54,25.17c-.76,1.32-1.24,2.8-.42,4.19l2.34,3.99c.59,1.01,1.61,1.75,2.81,1.76l4.6.04c1.34.01,2.6-.53,3.29-1.72l8.01-13.8c.81.36,1.48.51,2.28.5l4.38-.06c.83-.01,1.57-.5,2.31-.83,1.56-3.67,4.48-5.51,2.43-9.04l-6.14-10.62c-.62-1.07-1.49-1.8-2.72-2,0-.17-.21-.29-.35-.23-.07.03-.12.08-.07.17Z"/><path fill="#0e2dfe" d="M26.78,40.7l1.18,2,1.42,2.57c.72,1.3.49,2.76-.22,4.01l-1.53,2.69c-1.39,2.45-2.56,2.72-5.24,2.7l-12.1-.1c-2.09-.02-2.93-2.48-3.99-4.01-.97-1.41-1.81-3.16-1.1-4.92l2.58-4.52,1.11-1.18L1.09,26.41c-.59-1.03-.81-2.41-.22-3.42l2.48-4.29c.6-1.03,1.72-1.71,2.91-1.71h4.81c1.46,0,2.49.85,3.19,2.06l12.52,21.65Z"/><path fill="#0e2dfe" d="M37.6,7.43l7.06.03,8.5.07c1.62.01,2.88.96,3.63,2.33l2.06,3.74c.49.89.43,2.08-.02,3.01-.78,1.59-1.64,3.08-2.65,4.53-.61.88-1.65,1.45-2.75,1.45l-16.13.03-2.15.05-12.09-.06c-1.48,0-2.78-.59-3.51-1.9l-2.5-4.48c-.42-.76-.22-2.04.22-2.81l4.41-7.83,2.08-3.53C24.41.98,25.55.04,26.84.03L31.28,0c1.18,0,2.54.39,3.16,1.43l2.69,4.52.47,1.48Z"/><path fill="#0e2dfe" d="M53.5,26.37l.41.06c1.24.19,2.11.93,2.72,2l6.14,10.62c2.04,3.53-.87,5.37-2.43,9.04-.74.34-1.49.82-2.31.83l-4.38.06c-.8.01-1.47-.14-2.28-.5l-8.01,13.8c-.69,1.19-1.95,1.73-3.29,1.72l-4.6-.04c-1.2-.01-2.22-.75-2.81-1.76l-2.34-3.99c-.82-1.4-.34-2.87.42-4.19l14.54-25.17c.73-1.26,1.65-2.44,3.19-2.45l5.05-.03Z"/><path fill="#0e2dfe" d="M53.91,26.43l-.41-.06c-.06-.09,0-.14.07-.17.14-.06.34.06.35.23Z"/></svg> `,ua={AMAZON:"amazon",APPLE:"apple",CLAUDE:"claude",CLOUDFLARE:"cloudflare",CODEX:"codex",CURSOR:"cursor",DOCKER:"docker",FACEBOOK:"facebook",FIREBASE:"firebase",GEMINI:"gemini",GITHUB:"github",GOOGLE:"google",GOOGLE_ANTIGRAVITY:"google-antigravity",GOOGLE_CLOUD:"google-cloud",GROK:"grok",META:"meta",MICROSOFT:"microsoft",NVIDIA:"nvidia",OLLAMA:"ollama",OPENAI:"openai",OPENROUTER:"openrouter",QWEN:"qwen",UNCANNY_AUTOMATOR:"uncanny-automator",UNCANNY_OWL:"uncanny-owl",WORDPRESS:"wordpress",XTWITTER:"x-twitter",YOUTUBE:"youtube"},un=rT(ua),uo={[ua.AMAZON]:'<?xml version="1.0" encoding="UTF-8"?><svg id="a" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64"><rect y="0" width="64" height="64" style="fill:none;"/><path d="M55.42,52.68c-26.42,12.57-42.81,2.05-53.3-4.34-.65-.4-1.75.09-.8,1.19,3.5,4.24,14.95,14.46,29.91,14.46s23.87-8.17,24.98-9.59c1.11-1.41.32-2.19-.79-1.72h0ZM62.84,48.59c-.71-.92-4.31-1.1-6.58-.82-2.27.27-5.68,1.66-5.39,2.49.15.31.46.17,2.02.03,1.56-.16,5.95-.71,6.86.48.92,1.2-1.4,6.93-1.82,7.85-.41.92.16,1.16.92.55.76-.61,2.13-2.21,3.05-4.46.91-2.27,1.47-5.43.93-6.13h0Z" style="fill:#f90;"/><path d="M37.66,27.03c0,3.3.08,6.05-1.58,8.98-1.35,2.38-3.48,3.85-5.86,3.85-3.25,0-5.14-2.48-5.14-6.13,0-7.22,6.47-8.53,12.59-8.53v1.83ZM46.2,47.67c-.56.5-1.37.54-2,.2-2.81-2.33-3.31-3.42-4.86-5.64-4.64,4.74-7.93,6.16-13.96,6.16-7.12,0-12.67-4.39-12.67-13.19,0-6.87,3.73-11.55,9.03-13.84,4.6-2.02,11.02-2.38,15.92-2.94v-1.1c0-2.01.15-4.39-1.02-6.13-1.04-1.56-3.01-2.2-4.75-2.2-3.23,0-6.11,1.66-6.81,5.08-.14.76-.7,1.51-1.46,1.55l-8.22-.88c-.69-.16-1.45-.71-1.26-1.77C16.02,3,25.01,0,33.06,0c4.12,0,9.5,1.1,12.75,4.22,4.12,3.85,3.73,8.98,3.73,14.56v13.19c0,3.97,1.64,5.7,3.19,7.85.55.76.67,1.68-.02,2.25-1.73,1.44-4.8,4.12-6.49,5.62l-.02-.02" style="fill-rule:evenodd;"/><path d="M55.42,52.68c-26.42,12.57-42.81,2.05-53.3-4.34-.65-.4-1.75.09-.8,1.19,3.5,4.24,14.95,14.46,29.91,14.46s23.87-8.17,24.98-9.59c1.11-1.41.32-2.19-.79-1.72h0ZM62.84,48.59c-.71-.92-4.31-1.1-6.58-.82-2.27.27-5.68,1.66-5.39,2.49.15.31.46.17,2.02.03,1.56-.16,5.95-.71,6.86.48.92,1.2-1.4,6.93-1.82,7.85-.41.92.16,1.16.92.55.76-.61,2.13-2.21,3.05-4.46.91-2.27,1.47-5.43.93-6.13h0Z" style="fill:#f90;"/><path d="M37.66,27.03c0,3.3.08,6.05-1.58,8.98-1.35,2.38-3.48,3.85-5.86,3.85-3.25,0-5.14-2.48-5.14-6.13,0-7.22,6.47-8.53,12.59-8.53v1.83ZM46.2,47.67c-.56.5-1.37.54-2,.2-2.81-2.33-3.31-3.42-4.86-5.64-4.64,4.74-7.93,6.16-13.96,6.16-7.12,0-12.67-4.39-12.67-13.19,0-6.87,3.73-11.55,9.03-13.84,4.6-2.02,11.02-2.38,15.92-2.94v-1.1c0-2.01.15-4.39-1.02-6.13-1.04-1.56-3.01-2.2-4.75-2.2-3.23,0-6.11,1.66-6.81,5.08-.14.76-.7,1.51-1.46,1.55l-8.22-.88c-.69-.16-1.45-.71-1.26-1.77C16.02,3,25.01,0,33.06,0c4.12,0,9.5,1.1,12.75,4.22,4.12,3.85,3.73,8.98,3.73,14.56v13.19c0,3.97,1.64,5.7,3.19,7.85.55.76.67,1.68-.02,2.25-1.73,1.44-4.8,4.12-6.49,5.62l-.02-.02" style="fill-rule:evenodd;"/></svg>',[ua.APPLE]:'<?xml version="1.0" encoding="UTF-8"?><svg id="a" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64"><rect y="0" width="64" height="64" style="fill:none;"/><path d="M53.54,56c-2.66,3.97-5.47,7.84-9.76,7.9-4.29.1-5.66-2.53-10.53-2.53s-6.4,2.46-10.46,2.62c-4.19.16-7.36-4.22-10.05-8.1-5.47-7.9-9.66-22.46-4.03-32.25,2.78-4.86,7.78-7.94,13.18-8.03,4.1-.06,8,2.78,10.53,2.78s7.23-3.42,12.19-2.91c2.08.1,7.9.83,11.65,6.34-.29.19-6.94,4.1-6.88,12.19.1,9.66,8.48,12.9,8.58,12.93-.1.22-1.34,4.61-4.42,9.06ZM35.27,4.8c2.34-2.66,6.21-4.67,9.41-4.8.42,3.74-1.09,7.52-3.33,10.21-2.21,2.72-5.86,4.83-9.44,4.54-.48-3.68,1.31-7.52,3.36-9.95Z"/></svg>',[ua.CLAUDE]:d7,[ua.CLOUDFLARE]:'<?xml version="1.0" encoding="UTF-8"?><svg id="a" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64"><path d="M44.08,44.61c.4-1.33.27-2.66-.4-3.45-.66-.8-1.59-1.33-2.79-1.46l-23.1-.27c-.13,0-.27-.13-.4-.13-.13-.13-.13-.27,0-.4.13-.27.27-.4.53-.4l23.24-.27c2.79-.13,5.71-2.39,6.77-5.05l1.33-3.45c0-.13.13-.27,0-.4-1.46-6.77-7.57-11.82-14.74-11.82-6.64,0-12.35,4.25-14.34,10.22-1.33-.93-2.92-1.46-4.78-1.33-3.19.27-5.71,2.92-6.11,6.11-.13.8,0,1.59.13,2.39-5.18.13-9.43,4.38-9.43,9.69,0,.53,0,.93.13,1.46,0,.27.27.4.4.4h42.62c.27,0,.53-.13.53-.4l.4-1.46Z" style="fill:#f4811f;"/><path d="M51.39,29.74h-.66c-.13,0-.27.13-.4.27l-.93,3.19c-.4,1.33-.27,2.66.4,3.45.66.8,1.59,1.33,2.79,1.46l4.91.27c.13,0,.27.13.4.13.13.13.13.27,0,.4-.13.27-.27.4-.53.4l-5.05.27c-2.79.13-5.71,2.39-6.77,5.05l-.27,1.2c-.13.13,0,.4.27.4h17.53c.27,0,.4-.13.4-.4.27-1.06.53-2.26.53-3.45,0-6.9-5.71-12.61-12.61-12.61" style="fill:#faad3f;"/></svg>',[ua.CODEX]:'<?xml version="1.0" encoding="UTF-8"?><svg id="a" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 64 64"><defs><linearGradient id="b" x1="63" y1="67" x2="63" y2="-61" gradientTransform="translate(.5 33.5) scale(.5 -.5)" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#b1a7ff"/><stop offset=".5" stop-color="#7a9dff"/><stop offset="1" stop-color="#3941ff"/></linearGradient></defs><path d="M21.56,1.22C24.13.17,26.93-.21,29.68.11c3.56.41,6.72,1.92,9.5,4.53.04.04.09.06.13.07.05.01.1.01.15,0,3.61-.93,7.44-.59,10.83.98l.17.08.41.2c3.55,1.8,6.31,4.83,7.78,8.53.74,1.81,1.11,3.7,1.12,5.67.05,1.46-.11,2.93-.48,4.35-.04.15,0,.3.11.41,2.11,2.16,3.51,4.73,4.21,7.72,1.03,5.07-.02,9.64-3.15,13.7l-.48.59c-2.07,2.37-4.79,4.09-7.83,4.94-.13.04-.24.14-.29.27-.68,1.96-1.36,3.64-2.63,5.31-3.2,4.22-7.9,6.56-13.19,6.53-4.22-.02-7.96-1.56-11.22-4.63-.1-.09-.24-.13-.37-.09-1.38.44-2.77.51-4.28.49-2.4-.02-4.77-.59-6.92-1.66-2.25-1.12-4.21-2.74-5.72-4.75-.54-.72-1.08-1.39-1.47-2.19-.54-1.1-.98-2.24-1.32-3.42-.71-2.68-.73-5.49-.05-8.17.02-.06.03-.13.02-.2-.01-.07-.05-.13-.1-.17-1.64-1.66-2.9-3.67-3.68-5.87-.52-1.36-.82-2.79-.89-4.24-.13-1.91.04-3.83.5-5.69,1.2-3.95,3.49-7.06,6.87-9.31.75-.5,1.47-.89,2.14-1.17.76-.32,1.53-.58,2.3-.81.11-.03.2-.12.23-.23.58-2.09,1.59-4.05,2.95-5.74,1.72-2.18,3.97-3.88,6.53-4.93ZM33.94,38.79c-1.25.07-2.2,1.14-2.13,2.39.06,1.15.98,2.07,2.13,2.13h12.93c1.25.07,2.32-.89,2.39-2.13s-.89-2.32-2.13-2.39c-.08,0-.17,0-.25,0h-12.93ZM19.42,22.15c-.65-1.07-2.05-1.4-3.12-.75-1.02.62-1.38,1.93-.82,2.99l4.52,7.91-4.5,7.59c-.64,1.08-.28,2.46.79,3.1,1.08.64,2.46.28,3.1-.79l5.17-8.73c.41-.7.42-1.57.02-2.28l-5.17-9.05Z" style="fill:url(#b);"/></svg>',[ua.CURSOR]:'<?xml version="1.0" encoding="UTF-8"?><svg id="a" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64"><path d="M58.97,15.15L33.33.36c-.82-.48-1.84-.48-2.66,0L5.03,15.15c-.69.4-1.12,1.14-1.12,1.94v29.83c0,.8.43,1.54,1.12,1.94l25.64,14.79c.82.47,1.84.47,2.66,0l25.64-14.79c.69-.4,1.12-1.14,1.12-1.94v-29.83c0-.8-.43-1.54-1.12-1.94h0ZM57.36,18.28l-24.75,42.84c-.17.29-.61.17-.61-.16v-28.05c0-.56-.3-1.08-.79-1.36L6.9,17.52c-.29-.17-.17-.61.16-.61h49.5c.7,0,1.14.76.79,1.37h0Z"/></svg>',[ua.DOCKER]:'<?xml version="1.0" encoding="UTF-8"?><svg id="a" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64"><path d="M62.96,27.5c-1.57-1.06-5.69-1.51-8.69-.7-.16-2.99-1.7-5.5-4.52-7.7l-1.04-.7-.69,1.05c-1.37,2.07-1.94,4.84-1.74,7.35.16,1.55.7,3.29,1.74,4.55-3.9,2.26-7.5,1.75-23.42,1.75H0c-.07,3.6.51,10.51,4.9,16.14.49.62,1.02,1.22,1.6,1.8,3.58,3.58,8.98,6.21,17.06,6.21,12.33.01,22.89-6.65,29.31-22.76,2.11.03,7.69.38,10.43-4.9.07-.09.69-1.4.69-1.4l-1.04-.7h0ZM16.05,24.21h-6.91v6.91h6.91v-6.91ZM24.98,24.21h-6.91v6.91h6.91v-6.91ZM33.92,24.21h-6.91v6.91h6.91v-6.91ZM42.85,24.21h-6.91v6.91h6.91v-6.91ZM7.12,24.21H.21v6.91h6.91s0-6.91,0-6.91ZM16.05,15.48h-6.91v6.91h6.91v-6.91ZM24.98,15.48h-6.91v6.91h6.91v-6.91ZM33.92,15.48h-6.91v6.91h6.91v-6.91ZM33.92,6.74h-6.91v6.91h6.91v-6.91Z" style="fill:#1d63ed;"/></svg>',[ua.FACEBOOK]:'<?xml version="1.0" encoding="UTF-8"?><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64"><g id="a"><rect x="0" width="64" height="64" style="fill:none; stroke-width:0px;"/></g><g id="b"><g id="c"><path id="d" d="m64,32C64,14.33,49.67,0,32,0S0,14.33,0,32c0,15.01,10.33,27.6,24.27,31.06v-21.28h-6.6v-9.78h6.6v-4.21c0-10.89,4.93-15.94,15.62-15.94,2.03,0,5.53.4,6.96.8v8.86c-.76-.08-2.07-.12-3.7-.12-5.25,0-7.27,1.99-7.27,7.16v3.46h10.45l-1.8,9.78h-8.66v21.99c15.84-1.91,28.12-15.4,28.12-31.77h.01Z" style="fill:#0866ff; stroke-width:0px;"/><path id="e" d="m44.53,41.78l1.8-9.78h-10.45v-3.46c0-5.17,2.03-7.16,7.27-7.16,1.63,0,2.94.04,3.7.12v-8.86c-1.43-.4-4.93-.8-6.96-.8-10.69,0-15.62,5.05-15.62,15.94v4.21h-6.6v9.78h6.6v21.28c2.48.61,5.06.94,7.73.94,1.31,0,2.61-.08,3.88-.23v-21.99h8.66-.01Z" style="fill:#fff; stroke-width:0px;"/></g></g></svg>',[ua.FIREBASE]:'<?xml version="1.0" encoding="UTF-8"?><svg id="a" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64"><path d="M22.48,62.16c2.68,1.08,5.58,1.72,8.63,1.82,4.13.14,8.05-.71,11.56-2.33-4.21-1.65-8.02-4.07-11.27-7.08-2.11,3.38-5.23,6.04-8.92,7.59Z" style="fill:#ff9100;"/><path d="M31.41,54.58c-7.43-6.87-11.93-16.81-11.55-27.71.01-.35.03-.71.05-1.06-1.33-.34-2.72-.55-4.15-.6-2.05-.07-4.03.18-5.9.71-1.98,3.47-3.18,7.46-3.33,11.72-.38,11.01,6.28,20.64,15.94,24.53,3.7-1.54,6.82-4.21,8.92-7.59Z" style="fill:#ffc400;"/><path d="M31.41,54.58c1.73-2.76,2.77-6,2.9-9.49.32-9.18-5.85-17.08-14.39-19.28-.02.35-.04.71-.05,1.06-.38,10.9,4.12,20.84,11.55,27.71Z" style="fill:#ff9100;"/><path d="M33.35,0c-4.86,3.9-8.71,9.04-11.03,14.96-1.33,3.39-2.17,7.03-2.41,10.85,8.54,2.2,14.71,10.1,14.39,19.28-.12,3.49-1.17,6.73-2.9,9.49,3.25,3.01,7.06,5.42,11.27,7.08,8.45-3.9,14.44-12.31,14.79-22.25.22-6.44-2.25-12.18-5.75-17.02C48.03,17.26,33.35,0,33.35,0Z" style="fill:#dd2c00;"/></svg>',[ua.GEMINI]:d9,[ua.GITHUB]:'<?xml version="1.0" encoding="UTF-8"?><svg id="a" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64"><path d="M31.98.77h.24c5.83,0,11.29,1.59,15.96,4.37l-.14-.08c4.87,2.85,8.81,6.79,11.57,11.5l.08.15c2.71,4.6,4.3,10.13,4.3,16.04,0,14.06-9.06,26.01-21.66,30.32l-.23.07c-.16.05-.35.08-.54.08-.42,0-.81-.14-1.13-.37h0c-.33-.3-.54-.73-.54-1.21v-.04h0c0-.08,0-1.14.02-3.19.01-2.04.02-3.91.02-5.6.02-.2.03-.42.03-.65,0-2.06-.84-3.92-2.2-5.27,1.61-.16,3.06-.42,4.47-.79l-.2.04c1.49-.42,2.79-.97,4-1.67l-.08.04c1.32-.73,2.44-1.65,3.36-2.75l.02-.02c.97-1.24,1.72-2.69,2.19-4.28l.02-.09c.54-1.78.86-3.82.86-5.93,0-.12,0-.24,0-.35v.02c0-.06,0-.12,0-.19,0-3.25-1.25-6.2-3.3-8.4h0c.44-1.14.69-2.46.69-3.84,0-1.69-.38-3.29-1.05-4.72l.03.07c-.3-.06-.64-.09-.99-.09-.87,0-1.69.2-2.42.56h.03c-1.48.53-2.74,1.15-3.93,1.88l.1-.06-1.58,1c-2.4-.69-5.15-1.08-8-1.08s-5.6.4-8.21,1.13l.21-.05c-.44-.31-1.03-.68-1.77-1.13-.97-.56-2.12-1.1-3.31-1.55l-.17-.06c-.76-.4-1.66-.63-2.62-.63-.32,0-.64.03-.95.08h.03c-.65,1.36-1.02,2.96-1.02,4.65,0,1.38.25,2.71.72,3.93l-.03-.08c-2.04,2.2-3.29,5.15-3.29,8.39,0,.07,0,.13,0,.2h0c0,.09,0,.21,0,.33,0,2.1.31,4.14.89,6.05l-.04-.15c.49,1.67,1.24,3.13,2.21,4.4l-.02-.03c.92,1.13,2.03,2.06,3.3,2.76l.06.03c1.12.66,2.43,1.21,3.8,1.6l.12.03c1.21.33,2.66.59,4.15.74h.12c-1.12,1.12-1.87,2.61-2.04,4.27v.03c-.54.26-1.17.48-1.82.61h-.05c-.67.14-1.43.22-2.21.22h-.17,0c-1.02-.02-1.97-.35-2.74-.91h.02c-.97-.66-1.75-1.54-2.29-2.55l-.02-.04c-.52-.87-1.19-1.6-2-2.15l-.02-.02c-.59-.44-1.27-.78-2.02-.99h-.04s-.83-.14-.83-.14c-.06,0-.13,0-.2,0-.36,0-.71.07-1.02.2h.02c-.22.12-.29.28-.21.47.1.22.23.42.38.59h0c.16.18.34.35.53.49h0s.29.21.29.21c.74.38,1.34.92,1.8,1.57v.02c.51.62.94,1.31,1.3,2.06l.03.06.42.96c.35,1.05.99,1.92,1.82,2.55h.01c.78.62,1.72,1.06,2.75,1.25h.04c.86.17,1.86.28,2.88.3h.02c.12,0,.25,0,.39,0,.68,0,1.34-.05,2-.16h-.07s.96-.16.96-.16c0,1.06,0,2.29.02,3.69s.02,2.16.02,2.27v.04c0,.48-.21.91-.54,1.21h0c-.31.23-.7.37-1.12.37-.2,0-.38-.03-.56-.08h.01C9.05,58.74,0,46.79,0,32.73c0-5.9,1.59-11.43,4.37-16.18l-.08.15c2.85-4.87,6.79-8.81,11.5-11.57l.15-.08C20.47,2.36,25.92.77,31.74.77h.25-.01,0ZM12.11,46.73c.08-.19-.01-.36-.29-.5-.28-.08-.46-.06-.54.08-.08.19.01.36.29.5.25.17.43.14.54-.08ZM13.4,48.14c.19-.14.17-.36-.08-.67-.28-.25-.5-.29-.67-.12-.19.14-.17.36.08.67.28.27.5.31.67.12h0ZM14.65,50.02c.25-.19.25-.46,0-.79-.22-.36-.46-.44-.71-.25-.25.14-.25.39,0,.75.25.36.49.46.71.29h0ZM16.4,51.77c.22-.22.17-.49-.17-.79-.33-.33-.61-.37-.83-.12-.25.22-.19.49.17.79.33.33.61.37.83.11h0ZM18.77,52.81c.08-.31-.1-.53-.54-.67-.42-.11-.68-.01-.79.29-.11.31.07.51.54.62.42.17.68.08.79-.25h0ZM21.4,53.02c0-.36-.24-.51-.71-.46-.44,0-.67.15-.67.46,0,.36.24.51.71.46.44,0,.67-.15.67-.46h0ZM23.81,52.6c-.06-.31-.31-.43-.75-.37-.44.08-.64.29-.58.62s.31.44.75.33c.44-.11.64-.31.59-.58h0Z"/></svg>',[ua.GOOGLE]:'<svg id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64"><defs><style>.cls-1{fill:#4285f4;}.cls-2{fill:#34a853;}.cls-3{fill:#fbbc05;}.cls-4{fill:#ea4335;}.cls-5{fill:none;}</style></defs><path class="cls-1" d="M63.32,32.72a36.93,36.93,0,0,0-.51-6H32.68v12H49.93a14.85,14.85,0,0,1-6.4,9.55v8h10.3C59.85,50.67,63.32,42.45,63.32,32.72Z"/><path class="cls-2" d="M32.68,64c8.64,0,15.87-2.88,21.15-7.76l-10.3-8a19.3,19.3,0,0,1-28.8-10.13H4.12v8.24A32,32,0,0,0,32.68,64Z"/><path class="cls-3" d="M14.73,38.11a18.78,18.78,0,0,1-1-6.11,19.33,19.33,0,0,1,1-6.11V17.65H4.12a31.65,31.65,0,0,0,0,28.7Z"/><path class="cls-4" d="M32.68,12.67A17.35,17.35,0,0,1,45,17.47l9.12-9.12A30.58,30.58,0,0,0,32.68,0,32,32,0,0,0,4.12,17.65l10.61,8.24A19.11,19.11,0,0,1,32.68,12.67Z"/><rect class="cls-5" width="64" height="64"/></svg>',[ua.GOOGLE_ANTIGRAVITY]:'<?xml version="1.0" encoding="UTF-8"?><svg id="a" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64"><path d="M58,60.14c3.57,2.68,8.93.89,4.02-4.02C47.28,41.83,50.41,2.52,32.1,2.52S16.91,41.83,2.17,56.12c-5.36,5.36.45,6.7,4.02,4.02,13.85-9.38,12.95-25.91,25.91-25.91s12.06,16.53,25.91,25.91Z" style="fill:#3186ff;"/></svg>',[ua.GOOGLE_CLOUD]:'<svg xmlns="http://www.w3.org/2000/svg" width="64" height="64" viewBox="0 0 64 64"><path d="M40.728 20.488l2.05.035 5.57-5.57.27-2.36C44.2 8.657 38.367 6.26 31.993 6.26c-11.54 0-21.28 7.852-24.163 18.488.608-.424 1.908-.106 1.908-.106l11.13-1.83s.572-.947.862-.9A13.88 13.88 0 0 1 32 17.375c3.3.007 6.34 1.173 8.728 3.102z" fill="#ea4335"/><path d="M56.17 24.77c-1.293-4.77-3.958-8.982-7.555-12.177l-7.887 7.887c3.16 2.55 5.187 6.452 5.187 10.82v1.392c3.837 0 6.954 3.124 6.954 6.954 0 3.837-3.124 6.954-6.954 6.954H32.007L30.615 48v8.346l1.392 1.385h13.908A18.11 18.11 0 0 0 64 39.647c-.007-6.155-3.1-11.6-7.83-14.876z" fill="#4285f4"/><path d="M18.085 57.74h13.9V46.6h-13.9a6.89 6.89 0 0 1-2.862-.622l-2.007.615-5.57 5.57-.488 1.88a18 18 0 0 0 10.926 3.689z" fill="#34a853"/><path d="M18.085 21.57A18.11 18.11 0 0 0 0 39.654c0 5.873 2.813 11.095 7.166 14.403l8.064-8.064a6.96 6.96 0 0 1-4.099-6.339c0-3.837 3.124-6.954 6.954-6.954 2.82 0 5.244 1.7 6.34 4.1l8.064-8.064c-3.307-4.353-8.53-7.166-14.403-7.166z" fill="#fbbc05"/></svg>',[ua.GROK]:ue,[ua.META]:'<?xml version="1.0" encoding="UTF-8"?><svg id="a" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 64 64"><defs><linearGradient id="c" x1="13.87" y1="35.1" x2="57.94" y2="32.88" gradientTransform="translate(0 66) scale(1 -1)" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#0064e1"/><stop offset=".4" stop-color="#0064e1"/><stop offset=".83" stop-color="#0073ee"/><stop offset="1" stop-color="#0082fb"/></linearGradient><linearGradient id="e" x1="9.22" y1="24.32" x2="9.22" y2="40.57" gradientTransform="translate(0 66) scale(1 -1)" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#0082fb"/><stop offset="1" stop-color="#0064e0"/></linearGradient></defs><path id="b" d="M6.91,38.78c0,2.44.54,4.32,1.24,5.46.92,1.49,2.29,2.12,3.69,2.12,1.8,0,3.45-.45,6.63-4.84,2.55-3.52,5.55-8.47,7.56-11.57l3.42-5.25c2.37-3.65,5.12-7.7,8.27-10.45,2.57-2.24,5.35-3.49,8.14-3.49,4.69,0,9.16,2.72,12.57,7.81,3.74,5.58,5.56,12.61,5.56,19.87,0,4.31-.85,7.48-2.3,9.99-1.4,2.42-4.12,4.84-8.7,4.84v-6.9c3.92,0,4.9-3.61,4.9-7.73,0-5.88-1.37-12.41-4.39-17.07-2.14-3.31-4.92-5.33-7.98-5.33-3.31,0-5.96,2.49-8.95,6.94-1.59,2.36-3.22,5.24-5.05,8.49l-2.02,3.57c-4.05,7.18-5.08,8.82-7.1,11.52-3.55,4.73-6.58,6.52-10.57,6.52-4.73,0-7.73-2.05-9.58-5.14C.74,45.6,0,42.3,0,38.53l6.91.25Z" style="fill:#0081fb;"/><path id="d" d="M5.45,19.05c3.17-4.89,7.74-8.3,12.99-8.3,3.04,0,6.06.9,9.21,3.47,3.45,2.82,7.13,7.45,11.71,15.09l1.64,2.74c3.97,6.61,6.23,10.02,7.55,11.62,1.7,2.06,2.89,2.68,4.44,2.68,3.92,0,4.9-3.61,4.9-7.73l6.1-.19c0,4.31-.85,7.48-2.3,9.99-1.4,2.42-4.12,4.84-8.7,4.84-2.85,0-5.37-.62-8.16-3.25-2.15-2.02-4.65-5.61-6.58-8.84l-5.74-9.59c-2.88-4.81-5.52-8.4-7.05-10.02-1.64-1.75-3.76-3.86-7.13-3.86-2.73,0-5.05,1.92-6.99,4.85l-5.89-3.5Z" style="fill:url(#c);"/><path id="f" d="M18.33,17.7c-2.73,0-5.05,1.92-6.99,4.85-2.74,4.14-4.42,10.31-4.42,16.24,0,2.44.54,4.32,1.24,5.46l-5.89,3.88c-1.51-2.52-2.26-5.82-2.26-9.58,0-6.84,1.88-13.98,5.45-19.49,3.17-4.89,7.74-8.3,12.99-8.3l-.11,6.95Z" style="fill:url(#e);"/></svg>',[ua.MICROSOFT]:'<?xml version="1.0" encoding="UTF-8"?><svg id="a" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64"><rect x="34.91" y="34.91" width="29.09" height="29.09" style="fill:#feba08;"/><rect y="34.91" width="29.09" height="29.09" style="fill:#05a6f0;"/><rect x="34.91" width="29.09" height="29.09" style="fill:#80bc06;"/><rect width="29.09" height="29.09" style="fill:#f25325;"/></svg>',[ua.NVIDIA]:'<?xml version="1.0" encoding="UTF-8"?><svg id="a" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64"><path id="b" d="M6.54,29.06s5.79-8.54,17.34-9.42v-3.1C11.08,17.57,0,28.4,0,28.4c0,0,6.28,18.14,23.88,19.81v-3.29c-12.92-1.63-17.34-15.86-17.34-15.86ZM23.88,38.37v3.02c-9.76-1.74-12.47-11.89-12.47-11.89,0,0,4.69-5.19,12.47-6.03v3.31s-.01,0-.01,0c-4.09-.49-7.28,3.33-7.28,3.33,0,0,1.79,6.43,7.29,8.28M23.88,10.83v5.71c.38-.03.75-.05,1.13-.07,14.55-.49,24.03,11.93,24.03,11.93,0,0-10.89,13.24-22.23,13.24-1.04,0-2.01-.1-2.93-.26v3.53c.78.1,1.59.16,2.44.16,10.56,0,18.19-5.39,25.58-11.77,1.23.98,6.24,3.37,7.27,4.41-7.03,5.88-23.41,10.63-32.69,10.63-.9,0-1.75-.05-2.6-.14v4.96h40.12V10.83H23.88ZM23.88,23.46v-3.83c.37-.03.75-.05,1.13-.06,10.46-.33,17.33,8.99,17.33,8.99,0,0-7.41,10.3-15.36,10.3-1.14,0-2.17-.18-3.09-.49v-11.6c4.07.49,4.89,2.29,7.34,6.37l5.45-4.59s-3.98-5.21-10.68-5.21c-.73,0-1.43.05-2.11.12" style="fill:#77b900;"/></svg>',[ua.OLLAMA]:'<?xml version="1.0" encoding="UTF-8"?><svg id="a" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64"><path d="M21.52.26c.55.25,1.05.65,1.51,1.19.76.89,1.39,2.16,1.88,3.67.49,1.52.81,3.2.93,4.89,1.61-1.04,3.4-1.67,5.25-1.85h.13c2.23-.22,4.43.24,6.35,1.37.26.15.51.32.76.49.13-1.66.44-3.3.92-4.78.49-1.51,1.12-2.78,1.88-3.68.42-.52.94-.92,1.51-1.19.66-.29,1.36-.34,2.04-.12,1.03.33,1.91,1.07,2.6,2.14.63.98,1.11,2.24,1.44,3.74.59,2.72.69,6.29.29,10.6l.14.12.07.06c1.94,1.68,3.29,4.06,4,6.84,1.11,4.33.55,9.18-1.37,11.89l-.05.06h0c1.07,2.23,1.72,4.57,1.85,6.99v.09c.17,3.1-.51,6.22-2.08,9.28l-.02.03.03.07c1.21,3.37,1.59,6.75,1.12,10.14l-.02.11c-.07.49-.31.94-.67,1.23-.36.29-.8.41-1.24.33-.22-.04-.42-.12-.61-.25-.19-.13-.35-.3-.48-.5-.13-.2-.22-.43-.27-.67-.05-.24-.06-.49-.03-.74.43-3.01.03-6.02-1.23-9.08-.12-.28-.17-.6-.15-.91.02-.31.1-.62.25-.88v-.02c1.56-2.69,2.2-5.32,2.06-7.91-.12-2.27-.83-4.49-2.05-6.61-.24-.41-.32-.91-.23-1.4s.34-.91.7-1.18l.02-.02c.62-.46,1.2-1.64,1.48-3.26.32-1.91.24-3.88-.24-5.74-.52-2.04-1.48-3.74-2.83-4.9-1.52-1.32-3.54-1.96-6.09-1.77-.33.02-.67-.06-.95-.26-.29-.19-.52-.48-.66-.82-.8-1.93-1.98-3.32-3.44-4.18-1.4-.8-2.97-1.13-4.54-.97-3.19.29-6,2.33-6.84,4.9-.12.36-.33.67-.61.9-.28.22-.61.34-.95.34-2.73,0-4.85.73-6.39,2.05-1.34,1.13-2.25,2.72-2.73,4.62-.44,1.79-.5,3.67-.17,5.49.29,1.62.85,2.97,1.49,3.69l.02.02c.54.6.66,1.54.28,2.28-.92,1.81-1.61,4.51-1.72,7.1-.13,2.96.48,5.53,1.84,7.38l.04.06c.21.27.34.61.38.96.04.36,0,.72-.14,1.04-1.47,3.6-1.93,6.55-1.44,8.88.09.48,0,.99-.23,1.4-.23.42-.6.71-1.03.83-.42.11-.87.03-1.24-.22-.37-.25-.64-.66-.75-1.14-.62-2.96-.2-6.35,1.21-10.18l.04-.1-.02-.03c-.69-1.16-1.21-2.45-1.53-3.81v-.06c-.4-1.69-.55-3.45-.47-5.19.11-2.65.71-5.36,1.59-7.53l.03-.08h0c-.75-1.22-1.31-2.78-1.61-4.5v-.07c-.44-2.4-.35-4.88.23-7.24.67-2.66,1.99-4.95,3.93-6.6.15-.13.31-.26.48-.38-.41-4.34-.3-7.94.29-10.68.33-1.51.8-2.76,1.44-3.74.69-1.07,1.57-1.81,2.6-2.14.68-.22,1.38-.17,2.04.13ZM32.05,26.7c2.4,0,4.61.91,6.26,2.49,1.61,1.53,2.57,3.59,2.57,5.64,0,2.58-1.04,4.6-2.9,5.88-1.59,1.09-3.71,1.62-6.15,1.62-2.58,0-4.79-.75-6.38-2.14-1.58-1.37-2.47-3.29-2.47-5.37s1.02-4.12,2.7-5.66c1.71-1.56,3.97-2.47,6.36-2.47ZM32.05,29.31c-1.78-.02-3.51.65-4.9,1.89-1.18,1.08-1.85,2.43-1.85,3.64s.54,2.41,1.56,3.3c1.16,1.01,2.88,1.59,4.97,1.59s3.77-.43,4.95-1.24c1.19-.81,1.79-2,1.79-3.66,0-1.23-.63-2.59-1.75-3.65-1.24-1.18-2.92-1.87-4.77-1.87ZM33.75,32.83h.01c.31.45.24,1.09-.14,1.44l-.75.67v1.3c0,.29-.1.57-.28.77-.18.2-.42.32-.68.32-.25,0-.5-.11-.68-.32-.18-.2-.28-.48-.28-.77v-1.34l-.69-.63c-.09-.08-.17-.19-.22-.3-.06-.12-.09-.25-.1-.38-.01-.13,0-.27.03-.39s.09-.25.16-.35c.15-.21.37-.34.61-.37.24-.03.47.05.66.22l.55.5.56-.51c.18-.17.42-.24.65-.22.23.03.45.16.6.36ZM20.85,27.25c1.22,0,2.22,1.13,2.22,2.53,0,.67-.23,1.31-.65,1.79-.42.48-.98.74-1.57.74-.59,0-1.15-.27-1.57-.74-.42-.47-.65-1.12-.65-1.79,0-.67.23-1.31.65-1.79.42-.48.98-.74,1.57-.75ZM43.13,27.25c1.23,0,2.22,1.13,2.22,2.53,0,.67-.23,1.31-.65,1.79-.42.48-.98.74-1.57.74-.59,0-1.15-.27-1.57-.74-.42-.47-.65-1.12-.65-1.79,0-.67.23-1.31.65-1.79.42-.48.98-.74,1.57-.75ZM20.33,3.78h0c-.3.15-.55.39-.73.7v.02c-.37.55-.67,1.36-.9,2.42-.44,2.01-.55,4.74-.32,8.09,1.1-.37,2.3-.61,3.59-.69h.03s.05-.1.05-.1c.12-.24.24-.47.38-.7.31-2.24.06-4.92-.65-7.11-.34-1.06-.76-1.89-1.16-2.37-.08-.1-.17-.19-.27-.26h0ZM43.81,3.9h0c-.1.08-.19.17-.27.26-.4.47-.82,1.31-1.16,2.37-.74,2.31-.99,5.17-.59,7.48l.15.28.02.04h.08c1.27,0,2.53.21,3.75.62.22-3.27.1-5.94-.33-7.92-.23-1.06-.54-1.87-.89-2.42v-.02c-.19-.31-.44-.55-.74-.7h-.01Z" style="fill-rule:evenodd;"/></svg>',[ua.OPENAI]:ut,[ua.OPENROUTER]:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64"><path fill="currentColor" d="M49.74,9.39c7.49,0,13.57,6.07,13.57,13.57s-6.07,13.57-13.57,13.57l13.46,13.46c1.71,1.71.5,4.63-1.92,4.63H22.61C10.12,54.61,0,44.49,0,32S10.12,9.39,22.61,9.39h27.13,0ZM22.61,18.43c-7.49,0-13.57,6.07-13.57,13.57s6.07,13.57,13.57,13.57,13.57-6.07,13.57-13.57-6.07-13.57-13.57-13.57h0Z"/></svg>',[ua.QWEN]:ui,[ua.UNCANNY_AUTOMATOR]:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64"><defs><style>.cls-1{fill:none;}.cls-2{fill:#008bf6;}.cls-10,.cls-11,.cls-12,.cls-13,.cls-14,.cls-15,.cls-2,.cls-3,.cls-4,.cls-5,.cls-6,.cls-7,.cls-8,.cls-9{fill-rule:evenodd;}.cls-3{fill:#57b6ff;}.cls-4{fill:#006cbf;}.cls-5{fill:#fff;}.cls-6{fill:#385661;}.cls-7{fill:#598291;}.cls-8{fill:#d3e8ef;}.cls-9{fill:#7eaaba;}.cls-10{fill:#0b87e8;}.cls-11{fill:#3c942c;}.cls-12{fill:#82e371;}.cls-13{fill:#bdd6de;}.cls-14{fill:#1e2432;}.cls-15{fill:#2d3956;}</style></defs><title>Automator Core icon - Uncanny Automator</title><g id="Layer_2" data-name="Layer 2"><rect class="cls-1" width="64" height="64"/></g><g id="Layer_3" data-name="Layer 3"><g id="Circle"><path class="cls-2" d="M31.17,14.58A24.71,24.71,0,1,1,6.46,39.29,24.7,24.7,0,0,1,31.17,14.58Z"/><path class="cls-3" d="M19.88,60.35a3.7,3.7,0,0,1,1.75.2,23.92,23.92,0,0,0,26.46-5.77,2.67,2.67,0,0,1,1.85-.72,23.88,23.88,0,0,1-18.78,9.12A23.59,23.59,0,0,1,19.88,60.35Z"/><path class="cls-4" d="M31.21,14.58c.75,0,1.5.05,2.25.11a4.49,4.49,0,0,1-1.79,0A2.6,2.6,0,0,1,31.21,14.58ZM16.77,59.37A24.65,24.65,0,0,1,7.84,47.45l.51,0a4.09,4.09,0,0,1,.78,0,4,4,0,0,1,1-2.46,3.07,3.07,0,0,1,1.09-.53,4.66,4.66,0,0,1-1.42-2.9c0-.39-.05-.79-.06-1.21L7.21,39a2.13,2.13,0,0,1-.73-.56A24.55,24.55,0,0,1,9.31,27.77l2.21-.19a38.05,38.05,0,0,1,1.84-5.41A24.93,24.93,0,0,1,18.61,18c.61-.11,1.2-.18,1.73-.23a43.66,43.66,0,0,1,7.41.08c.9.07,1.79.18,2.68.28a7.25,7.25,0,0,1,.39-.88c.61-1.17,3.89-.76,5.44-.48A7.19,7.19,0,0,0,35.83,15c.56.1,1.1.23,1.65.36a9.07,9.07,0,0,1,.26,1.71c1.64.4,4.23,1.19,4.36,2.36,0,.3,0,.63,0,1q1.31.34,2.58.75A48.12,48.12,0,0,1,49.77,23a24.72,24.72,0,0,1,4.28,25.64l-1.15.1c-.16.38-.35.76-.51,1.1-.91,1.86-3.24,2.61-5.14,2.95a34.41,34.41,0,0,1-7.92.27,74.41,74.41,0,0,1-9.4-1.24,74.23,74.23,0,0,1-9.19-2.38,39.13,39.13,0,0,1-5.21-2.1c0,1.44,0,2.87,0,4.31a5.07,5.07,0,0,1,1.8,2,7,7,0,0,0,4-1.68c.61-.5,2.34.24,1.63,2.31A7,7,0,0,1,16.77,59.37Z"/><path class="cls-5" d="M31.17,19.78a19.5,19.5,0,1,1-19.51,19.5A19.51,19.51,0,0,1,31.17,19.78Z"/></g><g id="Arm_-_Right" data-name="Arm - Right"><path class="cls-6" d="M22.18,48.65a7.37,7.37,0,0,1-8.48,1.29l-2.78,5.55C14.89,57.68,22,58,24,51,24.69,48.77,22.8,48.09,22.18,48.65Z"/><path class="cls-6" d="M22.72,49.34a8.15,8.15,0,0,1-8.6,1.71l-2,4.05a10.84,10.84,0,0,0,4.51.89,6.68,6.68,0,0,0,6.6-5.21,1.38,1.38,0,0,0-.11-1.25A.52.52,0,0,0,22.72,49.34Z"/><path class="cls-7" d="M20.06,51a8.24,8.24,0,0,1-5.95,0l-.83,1.68A7.07,7.07,0,0,0,20.09,52C20.61,51.58,20.49,51,20.06,51Z"/></g><g id="Arm_-_Left" data-name="Arm - Left"><path class="cls-6" d="M37.09,52a9.85,9.85,0,0,1,3.48,5.68l4.72-1.29c-1.22-3.54-4.75-7-8.19-7.32Z"/><path class="cls-6" d="M38,51.57a10.7,10.7,0,0,1,3.23,5l2.92-.79a11.32,11.32,0,0,0-6-6Z"/><path class="cls-7" d="M42.75,56.15l1.36-.37A12.64,12.64,0,0,0,40.23,51c-.19.16-.1.55.11.78A10,10,0,0,1,42.75,56.15Z"/></g><path class="cls-7" d="M24.09,57.46c0-.4-.07-.81-.1-1.22a1.69,1.69,0,0,1,.76-1.69,13.94,13.94,0,0,1,3.9-1.27l1-.22.16,0,.16,0,1,.22a14,14,0,0,1,3.89,1.27,1.69,1.69,0,0,1,.76,1.69c0,.47-.06.94-.11,1.41,0,.21,0,.43-.06.65a19.71,19.71,0,0,1-4.37.49A19.32,19.32,0,0,1,24.09,57.46Z"/><path class="cls-8" d="M24.91,57.76c-.06-.51-.09-1-.13-1.58a.92.92,0,0,1,.4-1,18.16,18.16,0,0,1,4.69-1.38,18.07,18.07,0,0,1,4.68,1.38.93.93,0,0,1,.39,1c0,.81-.1,1.51-.2,2.28a20,20,0,0,1-3.56.33A19.26,19.26,0,0,1,24.91,57.76Z"/><path class="cls-5" d="M26,54.82a30.12,30.12,0,0,1,3.84-1v4.93a18.87,18.87,0,0,1-3.57-.58C26.18,57.05,26.09,55.93,26,54.82Z"/><path class="cls-7" d="M21.64,56.32c-.19-1-.35-2.09-.46-3.15-.06-.71-.11-1.42-.16-2.13a2.53,2.53,0,0,1,1.15-2.55A21.76,21.76,0,0,1,28,46.59l1.58-.34.25,0,.24,0,1.57.34a22.17,22.17,0,0,1,5.87,1.9A2.52,2.52,0,0,1,38.68,51c0,.71-.09,1.42-.16,2.13a35.74,35.74,0,0,1-.73,4.48,19.48,19.48,0,0,1-16.15-1.33Z"/><path class="cls-7" d="M23,57a35.38,35.38,0,0,1-.78-6,1.4,1.4,0,0,1,.61-1.47c1.36-.86,4.38-1.54,7.06-2.11,2.66.57,5.69,1.25,7.06,2.11a1.39,1.39,0,0,1,.6,1.47,34.86,34.86,0,0,1-1,6.93s0,.1-.07.19A19.6,19.6,0,0,1,23,57Z"/><path class="cls-9" d="M24.65,57.67A43,43,0,0,1,23.93,51a1.6,1.6,0,0,1,.45-1.48c1.05-.85,3.4-1.53,5.48-2.1,2.07.57,4.41,1.25,5.46,2.1A1.58,1.58,0,0,1,35.78,51,45.53,45.53,0,0,1,35,57.87a1.49,1.49,0,0,1-.26.59,20.34,20.34,0,0,1-3.6.33A19.27,19.27,0,0,1,24.65,57.67Z"/><path class="cls-8" d="M22.52,54.45c-.16-1.19-.24-2.24-.32-3.49a1.4,1.4,0,0,1,.61-1.47c1.36-.86,4.38-1.54,7.06-2.11,2.66.57,5.69,1.25,7.06,2.11a1.39,1.39,0,0,1,.6,1.47c-.08,1.25-.16,2.31-.32,3.49a29.27,29.27,0,0,1-3.72.57.29.29,0,0,0-.25.23,2.55,2.55,0,0,1-.93,1.66,3.75,3.75,0,0,1-2.43.72,3.85,3.85,0,0,1-2.46-.72,2.53,2.53,0,0,1-.92-1.66.26.26,0,0,0-.25-.23A28.89,28.89,0,0,1,22.52,54.45Z"/><path class="cls-5" d="M29.86,47.38h0c2.07.57,4.41,1.25,5.46,2.11A1.55,1.55,0,0,1,35.78,51c-.07,1.37-.13,2.49-.28,3.81-.64.1-1.31.19-2,.25a.28.28,0,0,0-.25.23c-.25,1.72-1.73,2.4-3.36,2.4s-3.12-.67-3.39-2.4a.25.25,0,0,0-.25-.23c-.71-.07-1.39-.15-2-.25C24,53.45,24,52.32,23.91,51a1.61,1.61,0,0,1,.46-1.47C25.45,48.63,27.79,48,29.86,47.38Z"/><path class="cls-10" d="M27.55,51.94h1.2a.28.28,0,0,1,.27.28v2.36a1,1,0,0,0,.2.67.89.89,0,0,0,.65.19.85.85,0,0,0,.63-.19,1,1,0,0,0,.19-.67V52.22a.29.29,0,0,1,.28-.28h1.2a.27.27,0,0,1,.27.28v2.5a1.91,1.91,0,0,1-.66,1.57,3,3,0,0,1-1.91.54A2.93,2.93,0,0,1,28,56.29a1.89,1.89,0,0,1-.66-1.57v-2.5A.26.26,0,0,1,27.55,51.94Z"/><path class="cls-3" d="M27.55,52.08a.14.14,0,0,0-.14.14v2.5A1.72,1.72,0,0,0,28,56.17a2.92,2.92,0,0,0,1.84.52v-1.1a1,1,0,0,1-.74-.24,1,1,0,0,1-.23-.76V52.23a.15.15,0,0,0-.14-.14H27.55Z"/><g id="Bow_Tie" data-name="Bow Tie"><path class="cls-11" d="M30.5,47.19l-.61,2.42c.52.87,2.58,2,3.59,2.41a.91.91,0,0,0,1.12-.1c.73-.77,1.34-2.89,1.49-4.73Z"/><path class="cls-11" d="M35.42,47.19c0,.38-.08.75-.13,1.1a7.48,7.48,0,0,1-1.16,3.18.09.09,0,0,1-.07.05,1.4,1.4,0,0,1-.34-.08,11.14,11.14,0,0,1-3.13-1.95l.57-2.3Z"/><path class="cls-12" d="M35,49.41a5.25,5.25,0,0,1-.9,2.06.09.09,0,0,1-.07.05,1.4,1.4,0,0,1-.34-.08,11.55,11.55,0,0,1-3-1.81h.45a5,5,0,0,0,1.64.69,8.16,8.16,0,0,1-.7-.72C33.08,49.55,34.06,49.5,35,49.41Z"/><path class="cls-11" d="M29.14,47.19l.6,2.42c-.51.87-2.58,2-3.59,2.41a.91.91,0,0,1-1.12-.1c-.73-.77-1.33-2.89-1.48-4.73Z"/><path class="cls-11" d="M24.21,47.19c0,.38.08.75.14,1.1a7.61,7.61,0,0,0,1.15,3.18.12.12,0,0,0,.07.05,1.3,1.3,0,0,0,.34-.08,11,11,0,0,0,3.14-1.95l-.58-2.3Z"/><path class="cls-12" d="M24.59,49.41a5.25,5.25,0,0,0,.9,2.06.12.12,0,0,0,.07.05,1.4,1.4,0,0,0,.34-.08,11.59,11.59,0,0,0,3-1.81h-.46a5.08,5.08,0,0,1-1.64.69,6,6,0,0,0,.69-.72C26.54,49.55,25.56,49.5,24.59,49.41Z"/><path class="cls-11" d="M31.88,47.19a14.14,14.14,0,0,1-.46,3.13,2.76,2.76,0,0,1-3.22,0,14.75,14.75,0,0,1-.46-3.13Z"/><path class="cls-11" d="M28.29,47.42a14.63,14.63,0,0,0,.38,2.63,2.35,2.35,0,0,0,2.3,0,14.61,14.61,0,0,0,.37-2.63Z"/><path class="cls-12" d="M28.53,49.41c0,.21.08.42.14.64a2.35,2.35,0,0,0,2.3,0c.05-.22.1-.44.14-.67l-1.65,0Z"/></g><g id="Head"><path class="cls-7" d="M8.17,24.29,14,23.66,12,38.74,6.49,36.06A2,2,0,0,1,5.3,34.64a15.52,15.52,0,0,1,1.32-9.46C6.9,24.66,7.21,24.4,8.17,24.29Z"/><path class="cls-8" d="M11.05,36.9l1.54-11.81c-.51,0-4.59.43-4.77.57,0,0-.06.11-.09.15a14.34,14.34,0,0,0-1.22,8.63A.72.72,0,0,0,7,35Z"/><path class="cls-5" d="M11.05,36.9l.1-.83L7,34.37c-.31-.14-.54-1.28-.68-2.54a11.37,11.37,0,0,0,.22,2.59.74.74,0,0,0,.48.52Zm.64-5,.89-6.83c-.52,0-4.6.43-4.77.57a1,1,0,0,0-.09.15,14.61,14.61,0,0,0-1.27,4.1Z"/><path class="cls-8" d="M6.9,28l1.61,1.39a.91.91,0,0,1,.31.78c-.17,1.67-.37,3.27-.42,5.49A33.94,33.94,0,0,1,8.14,30a.16.16,0,0,0-.05-.16L7,28.84l-.14-.58A2.64,2.64,0,0,1,6.9,28Z"/><path class="cls-9" d="M6.82,28.26l1.39,1.23a.9.9,0,0,1,.31.77,32.41,32.41,0,0,0-.16,4.67c0,.23,0,.47.05.69l-.71-.34c0-.11,0-.24,0-.35a32.31,32.31,0,0,1,.16-4.77A.16.16,0,0,0,7.79,30L6.66,29A5.3,5.3,0,0,1,6.82,28.26Z"/><path class="cls-7" d="M33.77,5c4,3.6,4.25,8.19,2.43,13l-1.43-.55c1.59-4.22,1.49-8.16-2-11.33Z"/><path class="cls-11" d="M32.5.07a4.68,4.68,0,1,1-5.42,3.8A4.68,4.68,0,0,1,32.5.07Z"/><path class="cls-11" d="M32.33,1A3.72,3.72,0,1,1,28,4,3.71,3.71,0,0,1,32.33,1Z"/><path class="cls-12" d="M35,2.91a3.72,3.72,0,1,1-6.82,2.86,3.72,3.72,0,0,0,6.94-1.12A4,4,0,0,0,35,2.91ZM31.43,1.32c1.3-.06,2.19.75,2,1.8a2.81,2.81,0,0,1-2.66,2c-1.29.07-2.18-.74-2-1.79A2.82,2.82,0,0,1,31.43,1.32Z"/><path class="cls-4" d="M34.58,20.64c-1.28-.23-5.52-1.11-5.67-2.78A13,13,0,0,1,30,12c.68-1.39,5-.73,6.19-.52s5.46,1.08,5.63,2.61a12.9,12.9,0,0,1-1,5.91C40.14,21.48,35.85,20.86,34.58,20.64Z"/><path class="cls-4" d="M40.75,14.22c-.44-.78-3.86-1.53-4.74-1.68a22,22,0,0,0-2.8-.32,5.76,5.76,0,0,0-2.24.27,11.75,11.75,0,0,0-1,5.26c.08.38,1.65,1,2,1.11,1.81.62,5.31,1.26,7.2.87a2.05,2.05,0,0,0,.63-.23A11.88,11.88,0,0,0,40.75,14.22Z"/><path class="cls-3" d="M36,12.54a21.61,21.61,0,0,0-2.8-.32,5.81,5.81,0,0,0-2.24.27,12,12,0,0,0-1,5.26c.05.14.4.38.52.46a13.67,13.67,0,0,0,4.25,1.33Z"/><path class="cls-7" d="M58.13,33.1l-5.29-2.58-3.3,14.85,6.13-.62a2,2,0,0,0,1.6-.92,15.45,15.45,0,0,0,2-9.35C59.21,33.89,59,33.53,58.13,33.1Z"/><path class="cls-8" d="M51.13,44l2.58-11.64c.46.22,4.18,2,4.28,2.16a1.16,1.16,0,0,1,0,.18,14.2,14.2,0,0,1-1.8,8.51.71.71,0,0,1-.62.33Z"/><path class="cls-5" d="M51.13,44l.18-.81L55.82,43c.35,0,.94-1,1.51-2.15a10,10,0,0,1-1.1,2.35.71.71,0,0,1-.62.33Zm1.08-4.92,1.49-6.73c.45.22,4.18,2,4.28,2.16s0,.14,0,.17a14.35,14.35,0,0,1-.22,4.28Z"/><path class="cls-8" d="M58.06,37l-2,.77a.84.84,0,0,0-.54.63c-.42,1.63-.78,3.19-1.49,5.3A35.12,35.12,0,0,0,56.2,38.5a.17.17,0,0,1,.1-.13l1.41-.57.32-.5A1.84,1.84,0,0,0,58.06,37Z"/><path class="cls-9" d="M58,37.3,56.33,38a.86.86,0,0,0-.55.63A32,32,0,0,1,54.33,43c-.1.22-.19.42-.28.64l.78-.08c0-.1.1-.22.14-.33a33.55,33.55,0,0,0,1.48-4.54.23.23,0,0,1,.1-.14L58,38C58,37.81,58,37.56,58,37.3Z"/><path class="cls-7" d="M29.59,48.86a72.28,72.28,0,0,1-9.24-2.24,32.78,32.78,0,0,1-7.28-3.19c-1.65-1-3.55-2.61-3.71-4.78-.48-6.33,1.29-16.33,4.06-22,1.07-2.16,4.13-2.8,6.21-3.07a40.09,40.09,0,0,1,7.43-.1,77.18,77.18,0,0,1,8.59,1.05,76.64,76.64,0,0,1,8.45,2,40.56,40.56,0,0,1,6.95,2.64c1.86,1,4.52,2.6,4.77,5,.67,6.32-1.09,16.32-3.71,22.12-.89,2-3.22,2.81-5.12,3.21a32.65,32.65,0,0,1-8,.49A71.55,71.55,0,0,1,29.59,48.86Z"/><path class="cls-13" d="M29.86,47.38c-6.32-1.11-12.5-3-16-5.22-1.81-1.14-3-2.38-3-3.63-.44-5.87,1.2-15.65,3.92-21.25.59-1.19,2.46-1.91,5.08-2.24,4-.5,9.88-.08,15.62.93s11.37,2.61,15,4.47c2.36,1.21,3.87,2.51,4,3.84.65,6.18-1.17,15.95-3.59,21.3-.52,1.15-2,1.92-4.11,2.37C42.62,48.83,36.17,48.5,29.86,47.38Z"/><path class="cls-5" d="M11.13,30.4a46,46,0,0,1,3.56-13.12c.59-1.19,2.46-1.91,5.08-2.24,4-.5,9.88-.08,15.62.93s11.37,2.61,15,4.47c2.36,1.21,3.87,2.51,4,3.84a46,46,0,0,1-1.15,13.55,12.61,12.61,0,0,1-2.69.49c-.37,0-.76.07-1.16.08a36,36,0,0,0,1.86-9.82c0-.62-.4-.81-1-1a69.79,69.79,0,0,0-9.39-2.82.55.55,0,0,0-.59.28A26.31,26.31,0,0,1,38,29.16c-1,1.09-8.93-.3-9.51-1.68a27.17,27.17,0,0,1-.77-4.69.53.53,0,0,0-.46-.45,68.12,68.12,0,0,0-9.78-.58c-.63,0-1.1,0-1.29.63a36.59,36.59,0,0,0-1.6,9.87l-1.05-.48A12.5,12.5,0,0,1,11.13,30.4Zm18.73,17c-6.32-1.11-12.5-3-16-5.22-1.81-1.14-3-2.38-3-3.63,0-.23,0-.46,0-.7a3.2,3.2,0,0,0,.47.89A7.21,7.21,0,0,0,14,41.3c3.56,2.19,9.74,4.05,16.06,5.16s12.76,1.47,16.86.64a7.32,7.32,0,0,0,3.48-1.49,3.54,3.54,0,0,0,.76-.67c-.11.21-.2.43-.29.64-.51,1.15-2,1.92-4.1,2.37C42.62,48.83,36.17,48.5,29.86,47.38Z"/><path class="cls-13" d="M26.18,14.88a17.72,17.72,0,0,0,1.48,2.92,26.24,26.24,0,0,0,7,2.06,26.27,26.27,0,0,0,7.34.48c.75-.6,1.67-1.5,2.4-2.22a8.06,8.06,0,0,1-2.21,3.05,26.65,26.65,0,0,1-7.66-.46,26.05,26.05,0,0,1-7.36-2.19A11.39,11.39,0,0,1,26.18,14.88Z"/><path class="cls-9" d="M26.18,14.88a11.25,11.25,0,0,0,1.19,3.29,27.19,27.19,0,0,0,7.26,2.12,27.44,27.44,0,0,0,7.56.49,11.25,11.25,0,0,0,2.25-2.68l.82.26c-.6,1-1.95,2.89-2.87,3.25a27.6,27.6,0,0,1-7.9-.48,27.75,27.75,0,0,1-7.6-2.25c-.72-.66-1.34-2.94-1.58-4C25.59,14.86,25.88,14.88,26.18,14.88Z"/><path class="cls-14" d="M32.81,30.65c1.94.35,4.68.46,5.2-.33a36.13,36.13,0,0,0,2.26-5.47.51.51,0,0,1,.58-.36,61.87,61.87,0,0,1,10.21,3.29c.6.26,1.06.47,1,1.28a51.6,51.6,0,0,1-3.48,15.58c-.29.65-2.12,1.17-2.69,1.3a27.47,27.47,0,0,1-6.95.49,61.58,61.58,0,0,1-8.77-1,61.79,61.79,0,0,1-8.56-2.1,27.28,27.28,0,0,1-6.37-2.83c-.48-.32-2-1.43-2.07-2.14a52.39,52.39,0,0,1,2.06-15.83c.22-.77.72-.82,1.38-.85a60.07,60.07,0,0,1,10.71.4.49.49,0,0,1,.44.52A34.22,34.22,0,0,0,28,28.56C28.25,29.48,30.86,30.31,32.81,30.65Z"/><path class="cls-15" d="M51.3,28.52A46,46,0,0,1,50,37c-.43,1.62-1.25,1.51-3,1.73-7.28.9-23.71-2-30.24-5.34-1.58-.81-2.41-1.45-2.24-2.65a62.23,62.23,0,0,1,1.68-8.45c0-.19.31-.27.48-.28a62.49,62.49,0,0,1,10.66.4.18.18,0,0,1,.14.18c-.05.6-.05,1.2-.05,1.8a38.49,38.49,0,0,0,.31,4.21c.3,1.33,3.82,2.13,5,2.33s4.8.66,5.53-.48a3,3,0,0,0,.25-.47,35.27,35.27,0,0,0,2-5.08.18.18,0,0,1,.19-.13,61,61,0,0,1,10.15,3.28C51.08,28.15,51.31,28.34,51.3,28.52ZM13.49,37.68c0,.24,0,.47,0,.69,0,.52,1.48,1.6,1.92,1.88,6.4,4.17,22.94,7.1,30.38,5.36.52-.11,2.24-.63,2.46-1.11.09-.2.18-.42.28-.62a9.15,9.15,0,0,1-2.18.77c-7.63,1.74-24.53-1.24-31.11-5.48A7.78,7.78,0,0,1,13.49,37.68Z"/><path class="cls-12" d="M20.46,29.72a14.69,14.69,0,0,0-.83,4.74c0,2.36,4.26,3.14,4.92.87a20.15,20.15,0,0,0,.84-4.75C25.53,28.22,21.25,27.48,20.46,29.72ZM44.73,34a15,15,0,0,1-.84,4.74c-.79,2.24-5.07,1.5-4.92-.87a20.76,20.76,0,0,1,.83-4.74C40.47,30.85,44.75,31.62,44.73,34Z"/><path class="cls-12" d="M34.69,40.07c-.89,4-7,2.89-6.46-1.13A13.05,13.05,0,0,0,34.69,40.07Z"/></g><g id="Hand_-_Right" data-name="Hand - Right"><path class="cls-7" d="M12.92,47.66a5.4,5.4,0,1,1-5.39,5.39A5.4,5.4,0,0,1,12.92,47.66Z"/><path class="cls-8" d="M12.92,48.56a4.49,4.49,0,1,1-4.49,4.49A4.49,4.49,0,0,1,12.92,48.56Z"/><path class="cls-5" d="M12.92,48.56a4.49,4.49,0,0,1,4.49,4.49,4.69,4.69,0,0,1-.25,1.51,7.63,7.63,0,0,1-2.71.47c-2.76,0-5.09-1.37-5.84-3.24A4.5,4.5,0,0,1,12.92,48.56Z"/><path class="cls-7" d="M9,44a4.3,4.3,0,0,1,1.12-2.61,4.15,4.15,0,0,1,2.4-.74c1.32,0,3.25.51,3.28,2.13.07,3.47,0,7,0,10.42A3.21,3.21,0,0,1,15.37,55c-1.6,2.45-6.53,2.58-8.89,1.33a1.89,1.89,0,0,1-1-.91,23.4,23.4,0,0,1-.76-8.14c.1-1,.34-2.65,1.51-3A8.53,8.53,0,0,1,8.2,44Z"/><path class="cls-7" d="M9.64,49.42c-.71-1.83-.75-6.7.66-7.81s5.19-.82,5.25,1.17c.07,3.48,0,6.95,0,10.43.08,3.81-6.2,4.36-9,2.9a1.63,1.63,0,0,1-.83-.75Z"/><path class="cls-8" d="M10.6,49.51c-.94-1.56-.74-6.5.22-7.25,1.13-.88,3.87-.57,3.9.55.06,2.93,0,6.78,0,10.42.07,3.1-6.12,3.5-8.22,1.9Z"/><path class="cls-5" d="M10,45.62c.06-1.48.34-2.84.81-3.22a3.63,3.63,0,0,1,3.2-.25,21.84,21.84,0,0,1-.05,3.26C13.79,46.32,11.16,46.17,10,45.62Z"/><path class="cls-7" d="M6.32,44.58a7.38,7.38,0,0,1,1.88-.29c1.29-.06,4.74.2,5,1.89a22.26,22.26,0,0,1,0,7.33c-.32,2-5.07,2-5.82,1.12l-.86.51-.79.24a19.45,19.45,0,0,1-.71-3.8,22.15,22.15,0,0,1,0-4.23C5.08,46.45,5.29,44.88,6.32,44.58Z"/><path class="cls-8" d="M6.54,45.37c2.37-.68,5.72.06,5.88,1a21.39,21.39,0,0,1,0,7c-.17,1.08-4.22,2.18-5.88,1.76C5.52,51.76,5.46,45.69,6.54,45.37Z"/><path class="cls-5" d="M6.54,45.37a8.72,8.72,0,0,1,4.87.17,22.21,22.21,0,0,1-.07,6.81c-.14,1-3.13,1.94-5,1.92C5.52,50.83,5.55,45.67,6.54,45.37Z"/><path class="cls-7" d="M5.36,49.89a15.09,15.09,0,0,1,7.92,0l-.19.74a14.32,14.32,0,0,0-7.52,0Z"/></g><g id="Hand_-_Left" data-name="Hand - Left"><path class="cls-7" d="M42.44,53.93a4.25,4.25,0,1,1-4.26,4.25A4.25,4.25,0,0,1,42.44,53.93Z"/><path class="cls-8" d="M42.44,54.64a3.55,3.55,0,1,1-3.54,3.54A3.55,3.55,0,0,1,42.44,54.64Z"/><path class="cls-5" d="M42.44,54.64A3.55,3.55,0,0,1,46,58.18a3.38,3.38,0,0,1-.07.72,3.47,3.47,0,0,1-1.84.52,3.55,3.55,0,0,1-3.54-3.55,3.38,3.38,0,0,1,.07-.72A3.51,3.51,0,0,1,42.44,54.64Z"/><path class="cls-7" d="M36.29,59.91c-.66-.1-1.3-.37-1.43-1a16.51,16.51,0,0,1-.18-3.78c0-.85,1-1.19,1.81-1.36A4.71,4.71,0,0,1,39,52.22a11.09,11.09,0,0,1,4.48.77c1.41.5,1.37,3.18,1.32,4.39,0,1-.22,3.34-1.06,4-1.51,1.28-6.84,1.39-7.21-.46A9.93,9.93,0,0,1,36.29,59.91Z"/><path class="cls-7" d="M39.22,54.55a12.18,12.18,0,0,1,0,4.3c-.21.77-1.38.84-2,.84s-1.91,0-2-.87a15.41,15.41,0,0,1-.19-3.71c.06-.82,1.34-1.08,2-1.18S39,53.66,39.22,54.55Z"/><path class="cls-8" d="M38.58,54.71c-.14-.52-2.95-.05-3,.42a15.7,15.7,0,0,0,.18,3.57c.08.44,2.67.47,2.81,0A11.62,11.62,0,0,0,38.58,54.71Z"/><path class="cls-7" d="M43.33,53.26c1.25.42,1.19,3.09,1.14,4.12s-.2,3.21-1,3.84a5.46,5.46,0,0,1-3,.85c-.9,0-3.48,0-3.72-1.17a22.59,22.59,0,0,1-.37-6.36c.07-.91,1.81-1.92,2.62-2.07A11,11,0,0,1,43.33,53.26Z"/><path class="cls-8" d="M43.09,53.86a10.19,10.19,0,0,0-4-.73A3.42,3.42,0,0,0,37,54.61a22,22,0,0,0,.36,6.18c.16.75,4.47,1,5.71-.06C43.89,60.06,44.28,54.19,43.09,53.86Z"/><path class="cls-5" d="M43.09,53.86a10.92,10.92,0,0,0-3.88-.75v7.15a9.13,9.13,0,0,0,4.29-.44C44,58,44,54.13,43.09,53.86Zm-5.77.31a1.07,1.07,0,0,0-.29.42,22,22,0,0,0,.36,6.19c.16.75,4.47,1,5.71-.06a.86.86,0,0,0,.2-.27c-1.33,1-5.51.75-5.66,0a22.28,22.28,0,0,1-.35-6.17A.21.21,0,0,1,37.32,54.17Z"/><path class="cls-7" d="M36.6,57.26a8.58,8.58,0,0,1,2.93-.62c.21,0,.18.7,0,.7a8.1,8.1,0,0,0-2.75.58Z"/><path class="cls-9" d="M43.5,59.82c-.34-.14-.69-.3-1.07-.48a.24.24,0,0,1-.12-.22,17.92,17.92,0,0,0,0-4,.21.21,0,0,1,.13-.22c.38-.18.75-.34,1.11-.47a.49.49,0,0,1,.12.41c-.34.12-.66.26-1,.39a17.78,17.78,0,0,1,0,3.79l.9.4A.54.54,0,0,1,43.5,59.82Z"/></g></g></svg>',[ua.UNCANNY_OWL]:'<?xml version="1.0" encoding="UTF-8"?><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64"><path d="M29.87,52.51c9.46,0,17.12-7.66,17.12-17.1s-7.67-17.1-17.12-17.1-17.12,7.66-17.12,17.1,7.67,17.1,17.12,17.1Z" style="fill:#e6b43d;"/><path d="M33.26,28.42c0-.87.25-1.69.66-2.39-1.23-.53-2.6-.83-4.03-.83-5.63,0-10.21,4.56-10.21,10.19s4.56,10.19,10.21,10.19,10.2-4.56,10.2-10.19c0-.91-.13-1.79-.36-2.64-.55.22-1.14.35-1.78.35-2.59,0-4.69-2.1-4.69-4.69Z"/><path d="M62.54,0l-28.69,5.77s-6.81,1.13-7.97,1.3c-.46.06-.9.16-1.31.23C11.3,9.79,1.24,21.44,1.24,35.4c0,15.77,12.85,28.6,28.63,28.6s28.63-12.83,28.63-28.6c0-8.3-3.56-15.78-9.23-21l4.25-.86c6.23-1.26,10.27-7.31,9.01-13.55h.01ZM29.87,52.51c-9.44,0-17.12-7.68-17.12-17.1s7.68-17.1,17.12-17.1,17.12,7.68,17.12,17.1-7.68,17.1-17.12,17.1Z"/></svg>',[ua.WORDPRESS]:'<svg viewBox="0 0 122.52 122.523" xmlns="http://www.w3.org/2000/svg"><title>WordPress icon - Uncanny Automator</title><g fill="#21759b"><path d="m8.708 61.26c0 20.802 12.089 38.779 29.619 47.298l-25.069-68.686c-2.916 6.536-4.55 13.769-4.55 21.388z"/><path d="m96.74 58.608c0-6.495-2.333-10.993-4.334-14.494-2.664-4.329-5.161-7.995-5.161-12.324 0-4.831 3.664-9.328 8.825-9.328.233 0 .454.029.681.042-9.35-8.566-21.807-13.796-35.489-13.796-18.36 0-34.513 9.42-43.91 23.688 1.233.037 2.395.063 3.382.063 5.497 0 14.006-.667 14.006-.667 2.833-.167 3.167 3.994.337 4.329 0 0-2.847.335-6.015.501l19.138 56.925 11.501-34.493-8.188-22.434c-2.83-.166-5.511-.501-5.511-.501-2.832-.166-2.5-4.496.332-4.329 0 0 8.679.667 13.843.667 5.496 0 14.006-.667 14.006-.667 2.835-.167 3.168 3.994.337 4.329 0 0-2.853.335-6.015.501l18.992 56.494 5.242-17.517c2.272-7.269 4.001-12.49 4.001-16.989z"/><path d="m62.184 65.857-15.768 45.819c4.708 1.384 9.687 2.141 14.846 2.141 6.12 0 11.989-1.058 17.452-2.979-.141-.225-.269-.464-.374-.724z"/><path d="m107.376 36.046c.226 1.674.354 3.471.354 5.404 0 5.333-.996 11.328-3.996 18.824l-16.053 46.413c15.624-9.111 26.133-26.038 26.133-45.426.001-9.137-2.333-17.729-6.438-25.215z"/><path d="m61.262 0c-33.779 0-61.262 27.481-61.262 61.26 0 33.783 27.483 61.263 61.262 61.263 33.778 0 61.265-27.48 61.265-61.263-.001-33.779-27.487-61.26-61.265-61.26zm0 119.715c-32.23 0-58.453-26.223-58.453-58.455 0-32.23 26.222-58.451 58.453-58.451 32.229 0 58.45 26.221 58.45 58.451 0 32.232-26.221 58.455-58.45 58.455z"/></g></svg>',[ua.XTWITTER]:'<?xml version="1.0" encoding="UTF-8"?><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64"><g id="a"><rect width="64" height="64" style="fill:none; stroke-width:0px;"/></g><g id="b"><path d="m37.96,27.1L61.27,0h-5.52l-20.24,23.53L19.34,0H.69l24.45,35.58L.69,64h5.52l21.38-24.85,17.07,24.85h18.65l-25.36-36.9h0Zm-7.57,8.8l-2.48-3.54L8.21,4.16h8.49l15.91,22.75,2.48,3.54,20.68,29.58h-8.49l-16.87-24.13h-.02Z" style="stroke-width:0px;"/></g></svg>',[ua.YOUTUBE]:'<?xml version="1.0" encoding="UTF-8"?><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64"><g id="a"><rect width="64" height="64" style="fill:none; stroke-width:0px;"/></g><g id="b"><path d="m62.66,16.6c-.74-2.75-2.9-4.92-5.66-5.66-4.99-1.34-25-1.34-25-1.34,0,0-20.01,0-25,1.34-2.75.74-4.92,2.9-5.66,5.66C0,21.59,0,32,0,32,0,32,0,42.41,1.34,47.4c.74,2.75,2.9,4.92,5.66,5.66,4.99,1.34,25,1.34,25,1.34,0,0,20.01,0,25-1.34,2.75-.74,4.92-2.9,5.66-5.66,1.34-4.99,1.34-15.4,1.34-15.4,0,0,0-10.41-1.34-15.4Z" style="fill:red; stroke-width:0px;"/><polygon points="25.6 41.6 42.23 32 25.6 22.4 25.6 41.6" style="fill:#fff; stroke-width:0px;"/></g></svg>'},ur=rT(["address-book","address-card","alarm-clock","alt","angle-down","angle-left","angle-right","angle-up","arrow-down","arrow-down-long","arrow-left","arrow-left-long","arrow-pointer","arrow-right","arrow-right-arrow-left","arrow-right-long","arrow-turn-down","arrow-turn-down-left","arrow-turn-down-right","arrow-turn-up","arrow-up","arrow-up-long","arrow-up-right-from-square","arrows-up-down-left-right","asterisk","at","atom-simple","badge-check","ban","banana","barcode-read","bars","bars-filter","bars-sort","bell","bell-exclamation","bell-on","bell-slash","binary","bolt","bolt-auto","bolt-slash","bomb","book","book-bookmark","book-sparkles","bookmark","bookmark-slash","box-archive","box-open","brackets-curly","broom","browser","bug","bug-slash","bullhorn","bullseye","bullseye-arrow","calculator","calculator-simple","calendar","calendar-circle-minus","calendar-circle-plus","calendar-clock","camera","camera-viewfinder","carrot","cart-shopping","cat","charging-station","chart-area","chart-diagram","chart-gantt","chart-mixed","chart-user","check","check-double","circle","circle-arrow-down","circle-arrow-left","circle-arrow-right","circle-arrow-up","circle-bolt","circle-bookmark","circle-check","circle-dashed","circle-dollar","circle-exclamation","circle-info","circle-minus","circle-question","circle-radiation","circle-star","circle-user","circle-xmark","citrus","city","clipboard","clipboard-check","clock","clock-rotate-left","clone","cloud","cloud-arrow-up","cloud-check","cloud-exclamation","cloud-word","coconut","code","code-branch","code-merge","coffee-pot","coin","command","comment","compass","compass-slash","cookie","cookie-bite","copy","croissant","crystal-ball","cube","cupcake","database","diagram-cells","diagram-nested","diagram-next","diagram-predecessor","diagram-previous","diagram-project","diagram-sankey","diagram-subtask","diagram-successor","diamond-turn-right","dinosaur","display","display-slash","dollar-sign","download","dragon","droplet","droplet-slash","dumbbell","earth-americas","ellipsis","ellipsis-vertical","engine-warning","envelope","envelope-dot","envelope-open","envelope-open-text","envelopes","expand","eye","eye-low-vision","eye-slash","face-awesome","face-beam-hand-over-mouth","face-dotted","face-exhaling","face-fearful","face-grimace","face-grin","face-grin-stars","face-grin-tears","face-grin-tongue","face-grin-wink","face-hand-over-mouth","face-kiss-wink-heart","face-laugh","face-laugh-beam","face-lying","face-melting","face-saluting","face-scream","face-smile","face-smile-plus","face-smile-upside-down","face-smile-wink","face-sunglasses","face-surprise","face-thinking","file","file-check","file-csv","file-doc","file-excel","file-export","file-import","file-pdf","file-signature","files","film","filter","filter-circle-xmark","filter-list","filters","fingerprint","fire","flag","flask","flask-gear","floppy-disk","florin-sign","folder","folder-bookmark","folder-closed","folder-minus","folder-open","folder-plus","folder-tree","folders","font","font-case","forward","forward-step","function","futbol","gallery-thumbnails","gas-pump","gas-pump-slash","gauge-max","gear","gears","gem","ghost","gif","gift","gift-card","globe","greater-than","greater-than-equal","grid-round-2","grid-round-2-plus","grip-dots-vertical","hand","hand-horns","hand-peace","hand-point-down","hand-point-left","hand-point-right","hand-point-up","handshake","handshake-angle","hashtag","hashtag-lock","hat-chef","hat-wizard","headphones","heart","heart-circle-check","heart-circle-xmark","high-definition","highlighter-line","hippo","horse-head","hourglass-half","house","house-blank","hyphen","i-cursor","id-card","id-card-clip","image","images","inbox","inbox-full","inbox-in","inbox-out","infinity","keyboard","lambda","landmark","language","layer-group","layer-minus","layer-plus","life-ring","lightbulb","line-columns","line-height","link","link-simple-slash","link-slash","list","list-check","list-radio","list-timeline","list-tree","list-ul","location-dot","location-dot-slash","lock","magnifying-glass","mailbox","mailbox-flag-up","map-pin","medal","merge","message-question","messages-question","microchip","microchip-ai","microphone","microphone-slash","minus","mobile-screen-button","money-bill","nfc-symbol","note","notes","option","pancakes","paper-plane","paperclip","pause","paw","pen-to-square","pencil","percent","person-through-window","person-to-door","person-to-portal","phone","picture-in-picture","piggy-bank","pinata","pizza","play","plug","plug-circle-bolt","plug-circle-minus","plug-circle-xmark","plus","poo","power-off","puzzle-piece","qrcode","question","quote-left","quote-right","quotes","rabbit","ram","rectangle-ad","rectangle-list","rectangle-pro","recycle","repeat","repeat-1","reply","reply-all","right-from-bracket","right-to-bracket","rotate","scissors","screwdriver-wrench","seal-question","sensor-triangle-exclamation","server","share","share-all","share-nodes","sheep","shield-check","shield-exclamation","shop","shop-slash","shuffle","sidebar","sidebar-flip","sigma","sign-hanging","signal-bars","signal-bars-slash","signs-post","sitemap","skull","slash-forward","snooze","sparkles","spell-check","spinner-third","split","square-terminal","star","star-half","stop","stopwatch","suitcase","table","table-list","tag","tags","tally","tally-1","tally-2","tally-3","tally-4","terminal","text","text-height","text-size","text-slash","text-width","thumbs-down","thumbs-up","ticket","trademark","trash","trash-can","trash-can-slash","trash-slash","triangle-exclamation","trophy","turn-down","turn-down-left","turn-down-right","turn-up","ufo","ufo-beam","underline","unlock","upload","user","user-astronaut","user-check","user-group","user-group-simple","user-slash","user-xmark","users","utensils","vault","video","wand-magic-sparkles","webhook","window","window-flip","window-maximize","window-minimize","window-restore","wrench","xmark"]),us=oR().min(1),ul=rT({CLASSIC:"classic",DUOTONE:"duotone"}),uc=rT({FONT_SIZE:"font-size",MULTIPLIED_0_9:"0.9x",XS:"xs",SM:"sm",LG:"lg",XL:"xl",SIZE_16:"16",SIZE_24:"24",SIZE_32:"32",SIZE_40:"40",SIZE_64:"64"}),ud=rT({SOLID:"solid",REGULAR:"regular"}),uu=sf`@font-face{font-family:"UAS Icons";font-style:normal;font-weight:900;font-display:swap;src:url("fonts/fa-solid-900.woff2") format("woff2")}@font-face{font-family:"UAS Icons";font-style:normal;font-weight:400;font-display:swap;src:url("fonts/fa-regular-400.woff2") format("woff2")}@font-face{font-family:"UAS Icons Duotone";font-style:normal;font-weight:400;font-display:swap;src:url("fonts/fa-duotone-regular-400.woff2") format("woff2")}@font-face{font-family:"UAS Icons Duotone";font-style:normal;font-weight:900;font-display:swap;src:url("fonts/fa-duotone-900.woff2") format("woff2")}.icon-glyph-solid{--fa-style: 900}.icon-glyph-regular{--fa-style: 400}.icon-glyph-light{--fa-style: 300}.icon-glyph-thin{--fa-style: 100}.icon-glyph-classic{--fa-family: 'UAS Icons'}.icon-glyph-duotone{--fa-family: 'UAS Icons Duotone';position:relative;letter-spacing:normal}.icon-glyph-solid,.icon-glyph-regular,.icon-glyph-light,.icon-glyph-thin,.icon-glyph-classic,.icon-glyph-duotone{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;display:inline-block;font-family:var(--fa-family, "UAS Icons");font-style:normal;font-variant:normal;font-weight:var(--fa-style, 900);line-height:1;text-rendering:auto}.icon-glyph-solid::before,.icon-glyph-regular::before,.icon-glyph-light::before,.icon-glyph-thin::before,.icon-glyph-classic::before,.icon-glyph-duotone::before{content:var(--fa)}.icon-glyph-duotone::before{position:absolute;color:var(--fa-primary-color, currentColor);opacity:var(--fa-primary-opacity, 1)}.icon-glyph-duotone::after{content:var(--fa);color:var(--fa-secondary-color, currentColor);opacity:var(--fa-secondary-opacity, 0.4);font-feature-settings:"ss01"}.icon-glyph-address-book{--fa: "\\f2b9"}.icon-glyph-address-card{--fa: "\\f2bb"}.icon-glyph-alarm-clock{--fa: "\\f34e"}.icon-glyph-alt{--fa: "\\e08a"}.icon-glyph-angle-down{--fa: "\\f107"}.icon-glyph-angle-left{--fa: "\\f104"}.icon-glyph-angle-right{--fa: "\\f105"}.icon-glyph-angle-up{--fa: "\\f106"}.icon-glyph-arrow-down{--fa: "\\f063"}.icon-glyph-arrow-down-long{--fa: "\\f175"}.icon-glyph-arrow-left{--fa: "\\f060"}.icon-glyph-arrow-left-long{--fa: "\\f177"}.icon-glyph-arrow-pointer{--fa: "\\f245"}.icon-glyph-arrow-right{--fa: "\\f061"}.icon-glyph-arrow-right-arrow-left{--fa: "\\f0ec"}.icon-glyph-arrow-right-long{--fa: "\\f178"}.icon-glyph-arrow-turn-down{--fa: "\\f149"}.icon-glyph-arrow-turn-down-left{--fa: "\\e2e1"}.icon-glyph-arrow-turn-down-right{--fa: "\\e3d6"}.icon-glyph-arrow-turn-up{--fa: "\\f148"}.icon-glyph-arrow-up{--fa: "\\f062"}.icon-glyph-arrow-up-long{--fa: "\\f176"}.icon-glyph-arrow-up-right-from-square{--fa: "\\f08e"}.icon-glyph-arrows-up-down-left-right{--fa: "\\f047"}.icon-glyph-asterisk{--fa: "\\2a"}.icon-glyph-at{--fa: "\\40"}.icon-glyph-atom-simple{--fa: "\\f5d3"}.icon-glyph-badge-check{--fa: "\\f336"}.icon-glyph-ban{--fa: "\\f05e"}.icon-glyph-banana{--fa: "\\e2e5"}.icon-glyph-barcode-read{--fa: "\\f464"}.icon-glyph-bars{--fa: "\\f0c9"}.icon-glyph-bars-filter{--fa: "\\e0ad"}.icon-glyph-bars-sort{--fa: "\\e0ae"}.icon-glyph-bell{--fa: "\\f0f3"}.icon-glyph-bell-exclamation{--fa: "\\f848"}.icon-glyph-bell-on{--fa: "\\f8fa"}.icon-glyph-bell-slash{--fa: "\\f1f6"}.icon-glyph-binary{--fa: "\\e33b"}.icon-glyph-bolt{--fa: "\\f0e7"}.icon-glyph-bolt-auto{--fa: "\\e0b6"}.icon-glyph-bolt-slash{--fa: "\\e0b8"}.icon-glyph-bomb{--fa: "\\f1e2"}.icon-glyph-book{--fa: "\\f02d"}.icon-glyph-book-bookmark{--fa: "\\e0bb"}.icon-glyph-book-sparkles{--fa: "\\f6b8"}.icon-glyph-bookmark{--fa: "\\f02e"}.icon-glyph-bookmark-slash{--fa: "\\e0c2"}.icon-glyph-box-archive{--fa: "\\f187"}.icon-glyph-box-open{--fa: "\\f49e"}.icon-glyph-brackets-curly{--fa: "\\f7ea"}.icon-glyph-broom{--fa: "\\f51a"}.icon-glyph-browser{--fa: "\\f37e"}.icon-glyph-bug{--fa: "\\f188"}.icon-glyph-bug-slash{--fa: "\\e490"}.icon-glyph-bullhorn{--fa: "\\f0a1"}.icon-glyph-bullseye{--fa: "\\f140"}.icon-glyph-bullseye-arrow{--fa: "\\f648"}.icon-glyph-calculator{--fa: "\\f1ec"}.icon-glyph-calculator-simple{--fa: "\\f64c"}.icon-glyph-calendar{--fa: "\\f133"}.icon-glyph-calendar-circle-minus{--fa: "\\e46f"}.icon-glyph-calendar-circle-plus{--fa: "\\e470"}.icon-glyph-calendar-clock{--fa: "\\e0d2"}.icon-glyph-camera{--fa: "\\f030"}.icon-glyph-camera-viewfinder{--fa: "\\e0da"}.icon-glyph-carrot{--fa: "\\f787"}.icon-glyph-cart-shopping{--fa: "\\f07a"}.icon-glyph-cat{--fa: "\\f6be"}.icon-glyph-charging-station{--fa: "\\f5e7"}.icon-glyph-chart-area{--fa: "\\f1fe"}.icon-glyph-chart-diagram{--fa: "\\e695"}.icon-glyph-chart-gantt{--fa: "\\e0e4"}.icon-glyph-chart-mixed{--fa: "\\f643"}.icon-glyph-chart-user{--fa: "\\f6a3"}.icon-glyph-check{--fa: "\\f00c"}.icon-glyph-check-double{--fa: "\\f560"}.icon-glyph-circle{--fa: "\\f111"}.icon-glyph-circle-arrow-down{--fa: "\\f0ab"}.icon-glyph-circle-arrow-left{--fa: "\\f0a8"}.icon-glyph-circle-arrow-right{--fa: "\\f0a9"}.icon-glyph-circle-arrow-up{--fa: "\\f0aa"}.icon-glyph-circle-bolt{--fa: "\\e0fe"}.icon-glyph-circle-bookmark{--fa: "\\e100"}.icon-glyph-circle-check{--fa: "\\f058"}.icon-glyph-circle-dashed{--fa: "\\e105"}.icon-glyph-circle-dollar{--fa: "\\f2e8"}.icon-glyph-circle-exclamation{--fa: "\\f06a"}.icon-glyph-circle-info{--fa: "\\f05a"}.icon-glyph-circle-minus{--fa: "\\f056"}.icon-glyph-circle-question{--fa: "\\f059"}.icon-glyph-circle-radiation{--fa: "\\f7ba"}.icon-glyph-circle-star{--fa: "\\e123"}.icon-glyph-circle-user{--fa: "\\f2bd"}.icon-glyph-circle-xmark{--fa: "\\f057"}.icon-glyph-citrus{--fa: "\\e2f4"}.icon-glyph-city{--fa: "\\f64f"}.icon-glyph-clipboard{--fa: "\\f328"}.icon-glyph-clipboard-check{--fa: "\\f46c"}.icon-glyph-clock{--fa: "\\f017"}.icon-glyph-clock-rotate-left{--fa: "\\f1da"}.icon-glyph-clone{--fa: "\\f24d"}.icon-glyph-cloud{--fa: "\\f0c2"}.icon-glyph-cloud-arrow-up{--fa: "\\f0ee"}.icon-glyph-cloud-check{--fa: "\\e35c"}.icon-glyph-cloud-exclamation{--fa: "\\e491"}.icon-glyph-cloud-word{--fa: "\\e138"}.icon-glyph-coconut{--fa: "\\e2f6"}.icon-glyph-code{--fa: "\\f121"}.icon-glyph-code-branch{--fa: "\\f126"}.icon-glyph-code-merge{--fa: "\\f387"}.icon-glyph-coffee-pot{--fa: "\\e002"}.icon-glyph-coin{--fa: "\\f85c"}.icon-glyph-command{--fa: "\\e142"}.icon-glyph-comment{--fa: "\\f075"}.icon-glyph-compass{--fa: "\\f14e"}.icon-glyph-compass-slash{--fa: "\\f5e9"}.icon-glyph-cookie{--fa: "\\f563"}.icon-glyph-cookie-bite{--fa: "\\f564"}.icon-glyph-copy{--fa: "\\f0c5"}.icon-glyph-croissant{--fa: "\\f7f6"}.icon-glyph-crystal-ball{--fa: "\\e362"}.icon-glyph-cube{--fa: "\\f1b2"}.icon-glyph-cupcake{--fa: "\\e402"}.icon-glyph-database{--fa: "\\f1c0"}.icon-glyph-diagram-cells{--fa: "\\e475"}.icon-glyph-diagram-nested{--fa: "\\e157"}.icon-glyph-diagram-next{--fa: "\\e476"}.icon-glyph-diagram-predecessor{--fa: "\\e477"}.icon-glyph-diagram-previous{--fa: "\\e478"}.icon-glyph-diagram-project{--fa: "\\f542"}.icon-glyph-diagram-sankey{--fa: "\\e158"}.icon-glyph-diagram-subtask{--fa: "\\e479"}.icon-glyph-diagram-successor{--fa: "\\e47a"}.icon-glyph-diamond-turn-right{--fa: "\\f5eb"}.icon-glyph-dinosaur{--fa: "\\e5fe"}.icon-glyph-display{--fa: "\\e163"}.icon-glyph-display-slash{--fa: "\\e2fa"}.icon-glyph-dollar-sign{--fa: "\\24"}.icon-glyph-download{--fa: "\\f019"}.icon-glyph-dragon{--fa: "\\f6d5"}.icon-glyph-droplet{--fa: "\\f043"}.icon-glyph-droplet-slash{--fa: "\\f5c7"}.icon-glyph-dumbbell{--fa: "\\f44b"}.icon-glyph-earth-americas{--fa: "\\f57d"}.icon-glyph-ellipsis{--fa: "\\f141"}.icon-glyph-ellipsis-vertical{--fa: "\\f142"}.icon-glyph-engine-warning{--fa: "\\f5f2"}.icon-glyph-envelope{--fa: "\\f0e0"}.icon-glyph-envelope-dot{--fa: "\\e16f"}.icon-glyph-envelope-open{--fa: "\\f2b6"}.icon-glyph-envelope-open-text{--fa: "\\f658"}.icon-glyph-envelopes{--fa: "\\e170"}.icon-glyph-expand{--fa: "\\f065"}.icon-glyph-eye{--fa: "\\f06e"}.icon-glyph-eye-low-vision{--fa: "\\f2a8"}.icon-glyph-eye-slash{--fa: "\\f070"}.icon-glyph-face-awesome{--fa: "\\e409"}.icon-glyph-face-beam-hand-over-mouth{--fa: "\\e47c"}.icon-glyph-face-dotted{--fa: "\\e47f"}.icon-glyph-face-exhaling{--fa: "\\e480"}.icon-glyph-face-fearful{--fa: "\\e375"}.icon-glyph-face-grimace{--fa: "\\f57f"}.icon-glyph-face-grin{--fa: "\\f580"}.icon-glyph-face-grin-stars{--fa: "\\f587"}.icon-glyph-face-grin-tears{--fa: "\\f588"}.icon-glyph-face-grin-tongue{--fa: "\\f589"}.icon-glyph-face-grin-wink{--fa: "\\f58c"}.icon-glyph-face-hand-over-mouth{--fa: "\\e378"}.icon-glyph-face-kiss-wink-heart{--fa: "\\f598"}.icon-glyph-face-laugh{--fa: "\\f599"}.icon-glyph-face-laugh-beam{--fa: "\\f59a"}.icon-glyph-face-lying{--fa: "\\e37e"}.icon-glyph-face-melting{--fa: "\\e483"}.icon-glyph-face-saluting{--fa: "\\e484"}.icon-glyph-face-scream{--fa: "\\e38b"}.icon-glyph-face-smile{--fa: "\\f118"}.icon-glyph-face-smile-plus{--fa: "\\f5b9"}.icon-glyph-face-smile-upside-down{--fa: "\\e395"}.icon-glyph-face-smile-wink{--fa: "\\f4da"}.icon-glyph-face-sunglasses{--fa: "\\e398"}.icon-glyph-face-surprise{--fa: "\\f5c2"}.icon-glyph-face-thinking{--fa: "\\e39b"}.icon-glyph-file{--fa: "\\f15b"}.icon-glyph-file-check{--fa: "\\f316"}.icon-glyph-file-csv{--fa: "\\f6dd"}.icon-glyph-file-doc{--fa: "\\e5ed"}.icon-glyph-file-excel{--fa: "\\f1c3"}.icon-glyph-file-export{--fa: "\\f56e"}.icon-glyph-file-import{--fa: "\\f56f"}.icon-glyph-file-pdf{--fa: "\\f1c1"}.icon-glyph-file-signature{--fa: "\\f573"}.icon-glyph-files{--fa: "\\e178"}.icon-glyph-film{--fa: "\\f008"}.icon-glyph-filter{--fa: "\\f0b0"}.icon-glyph-filter-circle-xmark{--fa: "\\e17b"}.icon-glyph-filter-list{--fa: "\\e17c"}.icon-glyph-filters{--fa: "\\e17e"}.icon-glyph-fingerprint{--fa: "\\f577"}.icon-glyph-fire{--fa: "\\f06d"}.icon-glyph-flag{--fa: "\\f024"}.icon-glyph-flask{--fa: "\\f0c3"}.icon-glyph-flask-gear{--fa: "\\e5f1"}.icon-glyph-floppy-disk{--fa: "\\f0c7"}.icon-glyph-florin-sign{--fa: "\\e184"}.icon-glyph-folder{--fa: "\\f07b"}.icon-glyph-folder-bookmark{--fa: "\\e186"}.icon-glyph-folder-closed{--fa: "\\e185"}.icon-glyph-folder-minus{--fa: "\\f65d"}.icon-glyph-folder-open{--fa: "\\f07c"}.icon-glyph-folder-plus{--fa: "\\f65e"}.icon-glyph-folder-tree{--fa: "\\f802"}.icon-glyph-folders{--fa: "\\f660"}.icon-glyph-font{--fa: "\\f031"}.icon-glyph-font-case{--fa: "\\f866"}.icon-glyph-forward{--fa: "\\f04e"}.icon-glyph-forward-step{--fa: "\\f051"}.icon-glyph-function{--fa: "\\f661"}.icon-glyph-futbol{--fa: "\\f1e3"}.icon-glyph-gallery-thumbnails{--fa: "\\e3aa"}.icon-glyph-gas-pump{--fa: "\\f52f"}.icon-glyph-gas-pump-slash{--fa: "\\f5f4"}.icon-glyph-gauge-max{--fa: "\\f626"}.icon-glyph-gear{--fa: "\\f013"}.icon-glyph-gears{--fa: "\\f085"}.icon-glyph-gem{--fa: "\\f3a5"}.icon-glyph-ghost{--fa: "\\f6e2"}.icon-glyph-gif{--fa: "\\e190"}.icon-glyph-gift{--fa: "\\f06b"}.icon-glyph-gift-card{--fa: "\\f663"}.icon-glyph-globe{--fa: "\\f0ac"}.icon-glyph-greater-than{--fa: "\\3e"}.icon-glyph-greater-than-equal{--fa: "\\f532"}.icon-glyph-grid-round-2{--fa: "\\e5db"}.icon-glyph-grid-round-2-plus{--fa: "\\e5dc"}.icon-glyph-grip-dots-vertical{--fa: "\\e411"}.icon-glyph-hand{--fa: "\\f256"}.icon-glyph-hand-horns{--fa: "\\e1a9"}.icon-glyph-hand-peace{--fa: "\\f25b"}.icon-glyph-hand-point-down{--fa: "\\f0a7"}.icon-glyph-hand-point-left{--fa: "\\f0a5"}.icon-glyph-hand-point-right{--fa: "\\f0a4"}.icon-glyph-hand-point-up{--fa: "\\f0a6"}.icon-glyph-handshake{--fa: "\\f2b5"}.icon-glyph-handshake-angle{--fa: "\\f4c4"}.icon-glyph-hashtag{--fa: "\\23"}.icon-glyph-hashtag-lock{--fa: "\\e415"}.icon-glyph-hat-chef{--fa: "\\f86b"}.icon-glyph-hat-wizard{--fa: "\\f6e8"}.icon-glyph-headphones{--fa: "\\f025"}.icon-glyph-heart{--fa: "\\f004"}.icon-glyph-heart-circle-check{--fa: "\\e4fd"}.icon-glyph-heart-circle-xmark{--fa: "\\e501"}.icon-glyph-high-definition{--fa: "\\e1ae"}.icon-glyph-highlighter-line{--fa: "\\e1af"}.icon-glyph-hippo{--fa: "\\f6ed"}.icon-glyph-horse-head{--fa: "\\f7ab"}.icon-glyph-hourglass-half{--fa: "\\f252"}.icon-glyph-house{--fa: "\\f015"}.icon-glyph-house-blank{--fa: "\\e487"}.icon-glyph-hyphen{--fa: "\\2d"}.icon-glyph-i-cursor{--fa: "\\f246"}.icon-glyph-id-card{--fa: "\\f2c2"}.icon-glyph-id-card-clip{--fa: "\\f47f"}.icon-glyph-image{--fa: "\\f03e"}.icon-glyph-images{--fa: "\\f302"}.icon-glyph-inbox{--fa: "\\f01c"}.icon-glyph-inbox-full{--fa: "\\e1ba"}.icon-glyph-inbox-in{--fa: "\\f310"}.icon-glyph-inbox-out{--fa: "\\f311"}.icon-glyph-infinity{--fa: "\\f534"}.icon-glyph-keyboard{--fa: "\\f11c"}.icon-glyph-lambda{--fa: "\\f66e"}.icon-glyph-landmark{--fa: "\\f66f"}.icon-glyph-language{--fa: "\\f1ab"}.icon-glyph-layer-group{--fa: "\\f5fd"}.icon-glyph-layer-minus{--fa: "\\f5fe"}.icon-glyph-layer-plus{--fa: "\\f5ff"}.icon-glyph-life-ring{--fa: "\\f1cd"}.icon-glyph-lightbulb{--fa: "\\f0eb"}.icon-glyph-line-columns{--fa: "\\f870"}.icon-glyph-line-height{--fa: "\\f871"}.icon-glyph-link{--fa: "\\f0c1"}.icon-glyph-link-simple-slash{--fa: "\\e1ce"}.icon-glyph-link-slash{--fa: "\\f127"}.icon-glyph-list{--fa: "\\f03a"}.icon-glyph-list-check{--fa: "\\f0ae"}.icon-glyph-list-radio{--fa: "\\e1d0"}.icon-glyph-list-timeline{--fa: "\\e1d1"}.icon-glyph-list-tree{--fa: "\\e1d2"}.icon-glyph-list-ul{--fa: "\\f0ca"}.icon-glyph-location-dot{--fa: "\\f3c5"}.icon-glyph-location-dot-slash{--fa: "\\f605"}.icon-glyph-lock{--fa: "\\f023"}.icon-glyph-magnifying-glass{--fa: "\\f002"}.icon-glyph-mailbox{--fa: "\\f813"}.icon-glyph-mailbox-flag-up{--fa: "\\e5bb"}.icon-glyph-map-pin{--fa: "\\f276"}.icon-glyph-medal{--fa: "\\f5a2"}.icon-glyph-merge{--fa: "\\e526"}.icon-glyph-message-question{--fa: "\\e1e3"}.icon-glyph-messages-question{--fa: "\\e1e7"}.icon-glyph-microchip{--fa: "\\f2db"}.icon-glyph-microchip-ai{--fa: "\\e1ec"}.icon-glyph-microphone{--fa: "\\f130"}.icon-glyph-microphone-slash{--fa: "\\f131"}.icon-glyph-minus{--fa: "\\f068"}.icon-glyph-mobile-screen-button{--fa: "\\f3cd"}.icon-glyph-money-bill{--fa: "\\f0d6"}.icon-glyph-nfc-symbol{--fa: "\\e531"}.icon-glyph-note{--fa: "\\e1ff"}.icon-glyph-notes{--fa: "\\e202"}.icon-glyph-option{--fa: "\\e318"}.icon-glyph-pancakes{--fa: "\\e42d"}.icon-glyph-paper-plane{--fa: "\\f1d8"}.icon-glyph-paperclip{--fa: "\\f0c6"}.icon-glyph-pause{--fa: "\\f04c"}.icon-glyph-paw{--fa: "\\f1b0"}.icon-glyph-pen-to-square{--fa: "\\f044"}.icon-glyph-pencil{--fa: "\\f303"}.icon-glyph-percent{--fa: "\\25"}.icon-glyph-person-through-window{--fa: "\\e5a9"}.icon-glyph-person-to-door{--fa: "\\e433"}.icon-glyph-person-to-portal{--fa: "\\e022"}.icon-glyph-phone{--fa: "\\f095"}.icon-glyph-picture-in-picture{--fa: "\\e80b"}.icon-glyph-piggy-bank{--fa: "\\f4d3"}.icon-glyph-pinata{--fa: "\\e3c3"}.icon-glyph-pizza{--fa: "\\f817"}.icon-glyph-play{--fa: "\\f04b"}.icon-glyph-plug{--fa: "\\f1e6"}.icon-glyph-plug-circle-bolt{--fa: "\\e55b"}.icon-glyph-plug-circle-minus{--fa: "\\e55e"}.icon-glyph-plug-circle-xmark{--fa: "\\e560"}.icon-glyph-plus{--fa: "\\2b"}.icon-glyph-poo{--fa: "\\f2fe"}.icon-glyph-power-off{--fa: "\\f011"}.icon-glyph-puzzle-piece{--fa: "\\f12e"}.icon-glyph-qrcode{--fa: "\\f029"}.icon-glyph-question{--fa: "\\3f"}.icon-glyph-quote-left{--fa: "\\f10d"}.icon-glyph-quote-right{--fa: "\\f10e"}.icon-glyph-quotes{--fa: "\\e234"}.icon-glyph-rabbit{--fa: "\\f708"}.icon-glyph-ram{--fa: "\\f70a"}.icon-glyph-rectangle-ad{--fa: "\\f641"}.icon-glyph-rectangle-list{--fa: "\\f022"}.icon-glyph-rectangle-pro{--fa: "\\e235"}.icon-glyph-recycle{--fa: "\\f1b8"}.icon-glyph-repeat{--fa: "\\f363"}.icon-glyph-repeat-1{--fa: "\\f365"}.icon-glyph-reply{--fa: "\\f3e5"}.icon-glyph-reply-all{--fa: "\\f122"}.icon-glyph-right-from-bracket{--fa: "\\f2f5"}.icon-glyph-right-to-bracket{--fa: "\\f2f6"}.icon-glyph-rotate{--fa: "\\f2f1"}.icon-glyph-scissors{--fa: "\\f0c4"}.icon-glyph-screwdriver-wrench{--fa: "\\f7d9"}.icon-glyph-seal-question{--fa: "\\e243"}.icon-glyph-sensor-triangle-exclamation{--fa: "\\e029"}.icon-glyph-server{--fa: "\\f233"}.icon-glyph-share{--fa: "\\f064"}.icon-glyph-share-all{--fa: "\\f367"}.icon-glyph-share-nodes{--fa: "\\f1e0"}.icon-glyph-sheep{--fa: "\\f711"}.icon-glyph-shield-check{--fa: "\\f2f7"}.icon-glyph-shield-exclamation{--fa: "\\e247"}.icon-glyph-shop{--fa: "\\f54f"}.icon-glyph-shop-slash{--fa: "\\e070"}.icon-glyph-shuffle{--fa: "\\f074"}.icon-glyph-sidebar{--fa: "\\e24e"}.icon-glyph-sidebar-flip{--fa: "\\e24f"}.icon-glyph-sigma{--fa: "\\f68b"}.icon-glyph-sign-hanging{--fa: "\\f4d9"}.icon-glyph-signal-bars{--fa: "\\f690"}.icon-glyph-signal-bars-slash{--fa: "\\f694"}.icon-glyph-signs-post{--fa: "\\f277"}.icon-glyph-sitemap{--fa: "\\f0e8"}.icon-glyph-skull{--fa: "\\f54c"}.icon-glyph-slash-forward{--fa: "\\2f"}.icon-glyph-snooze{--fa: "\\f880"}.icon-glyph-sparkles{--fa: "\\f890"}.icon-glyph-spell-check{--fa: "\\f891"}.icon-glyph-spinner-third{--fa: "\\f3f4"}.icon-glyph-split{--fa: "\\e254"}.icon-glyph-square-terminal{--fa: "\\e32a"}.icon-glyph-star{--fa: "\\f005"}.icon-glyph-star-half{--fa: "\\f089"}.icon-glyph-stop{--fa: "\\f04d"}.icon-glyph-stopwatch{--fa: "\\f2f2"}.icon-glyph-suitcase{--fa: "\\f0f2"}.icon-glyph-table{--fa: "\\f0ce"}.icon-glyph-table-list{--fa: "\\f00b"}.icon-glyph-tag{--fa: "\\f02b"}.icon-glyph-tags{--fa: "\\f02c"}.icon-glyph-tally{--fa: "\\f69c"}.icon-glyph-tally-1{--fa: "\\e294"}.icon-glyph-tally-2{--fa: "\\e295"}.icon-glyph-tally-3{--fa: "\\e296"}.icon-glyph-tally-4{--fa: "\\e297"}.icon-glyph-terminal{--fa: "\\f120"}.icon-glyph-text{--fa: "\\f893"}.icon-glyph-text-height{--fa: "\\f034"}.icon-glyph-text-size{--fa: "\\f894"}.icon-glyph-text-slash{--fa: "\\f87d"}.icon-glyph-text-width{--fa: "\\f035"}.icon-glyph-thumbs-down{--fa: "\\f165"}.icon-glyph-thumbs-up{--fa: "\\f164"}.icon-glyph-ticket{--fa: "\\f145"}.icon-glyph-trademark{--fa: "\\f25c"}.icon-glyph-trash{--fa: "\\f1f8"}.icon-glyph-trash-can{--fa: "\\f2ed"}.icon-glyph-trash-can-slash{--fa: "\\e2ad"}.icon-glyph-trash-slash{--fa: "\\e2b3"}.icon-glyph-triangle-exclamation{--fa: "\\f071"}.icon-glyph-trophy{--fa: "\\f091"}.icon-glyph-turn-down{--fa: "\\f3be"}.icon-glyph-turn-down-left{--fa: "\\e331"}.icon-glyph-turn-down-right{--fa: "\\e455"}.icon-glyph-turn-up{--fa: "\\f3bf"}.icon-glyph-ufo{--fa: "\\e047"}.icon-glyph-ufo-beam{--fa: "\\e048"}.icon-glyph-underline{--fa: "\\f0cd"}.icon-glyph-unlock{--fa: "\\f09c"}.icon-glyph-upload{--fa: "\\f093"}.icon-glyph-user{--fa: "\\f007"}.icon-glyph-user-astronaut{--fa: "\\f4fb"}.icon-glyph-user-check{--fa: "\\f4fc"}.icon-glyph-user-group{--fa: "\\f500"}.icon-glyph-user-group-simple{--fa: "\\e603"}.icon-glyph-user-slash{--fa: "\\f506"}.icon-glyph-user-xmark{--fa: "\\f235"}.icon-glyph-users{--fa: "\\f0c0"}.icon-glyph-utensils{--fa: "\\f2e7"}.icon-glyph-vault{--fa: "\\e2c5"}.icon-glyph-video{--fa: "\\f03d"}.icon-glyph-wand-magic-sparkles{--fa: "\\e2ca"}.icon-glyph-webhook{--fa: "\\e5d5"}.icon-glyph-window{--fa: "\\f40e"}.icon-glyph-window-flip{--fa: "\\f40f"}.icon-glyph-window-maximize{--fa: "\\f2d0"}.icon-glyph-window-minimize{--fa: "\\f2d1"}.icon-glyph-window-restore{--fa: "\\f2d2"}.icon-glyph-wrench{--fa: "\\f0ad"}.icon-glyph-xmark{--fa: "\\f00d"}:host{display:inline-flex;line-height:1;vertical-align:var(--uas--icon--custom-vertical-align, baseline);flex-shrink:0;color:inherit;font-size:var(--uas--icon--size, 1em)}:host([size=xs]){--uas--icon--size: 0.75em }:host([size=sm]){--uas--icon--size: 0.875em }:host([size=lg]){--uas--icon--size: 1.25em }:host([size=xl]){--uas--icon--size: 1.5em }:host([size="0.9x"]){--uas--icon--size: 0.9em }:host([size="16"]){--uas--icon--size: 16px }:host([size="24"]){--uas--icon--size: 24px }:host([size="32"]){--uas--icon--size: 32px }:host([size="40"]){--uas--icon--size: 40px }:host([size="64"]){--uas--icon--size: 64px }:host([animation=spin]){animation:iconSpin 2s linear infinite}.icon{display:flex;align-items:center;justify-content:center;width:1em;height:1em}.icon-brand,.icon-file{display:block;width:100%;height:100%}.icon-brand>svg,.icon-file>svg{display:block;width:100%;height:100%}@keyframes iconSpin{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}`,up=cr(class extends cs{constructor(e){if(super(e),1!==e.type||"class"!==e.name||e.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(e){return" "+Object.keys(e).filter(t=>e[t]).join(" ")+" "}update(e,[t]){if(void 0===this.st){for(let i in this.st=new Set,void 0!==e.strings&&(this.nt=new Set(e.strings.join(" ").split(/\s/).filter(e=>""!==e))),t)t[i]&&!this.nt?.has(i)&&this.st.add(i);return this.render(t)}let i=e.element.classList;for(let e of this.st)e in t||(i.remove(e),this.st.delete(e));for(let e in t){let a=!!t[e];a===this.st.has(e)||this.nt?.has(e)||(a?(i.add(e),this.st.add(e)):(i.remove(e),this.st.delete(e)))}return s2}}),uh={GRADIENT:"gradient",OUTLINE:"outline"},ug=rT(uh),um=sf`:host{display:inline-block;color:inherit}.icon-ai svg{width:1em;aspect-ratio:1/1;display:block}.icon-ai #main{transform-origin:190.55px 254.55px;transition:transform var(--uas--icon-ai--duration-ms) cubic-bezier(0.68, -0.55, 0.265, 1.55);transform:rotate(0deg)}.icon-ai #top-right{transform-origin:416px 96px}.icon-ai #bottom-right{transform-origin:416px 416px}.icon-ai #top-right,.icon-ai #bottom-right{opacity:.5;transition:opacity var(--uas--icon-ai--duration-ms) ease-out,transform var(--uas--icon-ai--duration-ms) cubic-bezier(0.68, -0.55, 0.265, 1.55);transform:rotate(0deg)}.icon-ai--animation-end-state #main{transform:rotate(360deg)}.icon-ai--animation-end-state #top-right,.icon-ai--animation-end-state #bottom-right{opacity:1;transform:rotate(90deg)}.icon-ai[type=outline] #top-right,.icon-ai[type=outline] #bottom-right{opacity:1}`;var uf=function(e,t,i,a){var n,o=arguments.length,r=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(r=(o<3?n(r):o>3?n(t,i,r):n(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r};let uy="#79d469",ub="#0790e8",uv="M205.1,73.3c-2.6-5.7-8.3-9.3-14.5-9.3s-11.9,3.6-14.5,9.3l-52.8,114L9.3,240c-5.7,2.6-9.3,8.3-9.3,14.6s3.6,11.9,9.3,14.5l114.1,52.7,52.6,114c2.6,5.7,8.3,9.3,14.5,9.3s11.9-3.6,14.5-9.3l52.7-114.1,114.1-52.7c5.7-2.6,9.3-8.3,9.3-14.5s-3.6-11.9-9.3-14.5l-114-52.6-52.7-114.1Z",u_="M327.5,85.2c-4.5,1.7-7.5,6-7.5,10.8s3,9.1,7.5,10.8l56.5,21.2,21.2,56.5c1.7,4.5,6,7.5,10.8,7.5s9.1-3,10.8-7.5l21.2-56.5,56.5-21.2c4.5-1.7,7.5-6,7.5-10.8s-3-9.1-7.5-10.8l-56.5-21.2-21.2-56.5c-1.7-4.5-6-7.5-10.8-7.5s-9.1,3-10.8,7.5l-21.2,56.5-56.5,21.2Z",uw="M384,384l-56.5,21.2c-4.5,1.7-7.5,6-7.5,10.8s3,9.1,7.5,10.8l56.5,21.2,21.2,56.5c1.7,4.5,6,7.5,10.8,7.5s9.1-3,10.8-7.5l21.2-56.5,56.5-21.2c4.5-1.7,7.5-6,7.5-10.8s-3-9.1-7.5-10.8l-56.5-21.2-21.2-56.5c-1.7-4.5-6-7.5-10.8-7.5s-9.1,3-10.8,7.5l-21.2,56.5Z";class ux extends ld{constructor(){super(...arguments),this.loading=!1,this.type=uh.GRADIENT,this.animationDuration=3e3,this._animationEndState=!1}willUpdate(e){lQ(this,"type",ug,e,"uas-icon-ai",uh.GRADIENT),e.has("loading")&&(this.loading?this._startLoop():this._stopLoop())}_startLoop(){this._stopLoop(),setTimeout(()=>{this._animationEndState=!this._animationEndState},1),this._interval=window.setInterval(()=>{this._animationEndState=!this._animationEndState},this.animationDuration)}_stopLoop(){clearInterval(this._interval),this._interval=void 0}render(){let e={"icon-ai":!0,"icon-ai--animation-end-state":this._animationEndState};return s1` <style> .icon-ai { --uas--icon-ai--duration-ms: var(--uas--icon-ai--custom-duration-ms, ${this.animationDuration}ms); --uas--icon-ai--start-color: var(--uas--icon-ai--custom-start-color, ${uy}); --uas--icon-ai--end-color: var(--uas--icon-ai--custom-end-color, ${ub}); } </style> <div class=${up(e)} type=${this.type??s3}> ${this.type===uh.OUTLINE?this._templateOutline:this._templateGradient} </div> `}get _templateGradient(){return s1` <svg id="sparkles" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 ${512} ${512}"> <defs> <style> #main { fill: url(#linear-gradient); } #bottom-right { fill: ${uy}; } #top-right { fill: ${ub}; } </style> <linearGradient id="linear-gradient" x1="190.55" y1="445.1" x2="190.55" y2="64" gradientUnits="userSpaceOnUse"> <stop offset="0" stop-color="${uy}"/> <stop offset="1" stop-color="${ub}"/> </linearGradient> </defs> <path id="main" d="${uv}"/> <path id="top-right" d="${u_}"/> <path id="bottom-right" d="${uw}"/> </svg> `}get _templateOutline(){let e=24,t=`${-e} ${-e} ${560} ${560}`;return s1` <svg id="sparkles" xmlns="http://www.w3.org/2000/svg" viewBox=${t} fill="currentColor" stroke="none" shape-rendering="geometricPrecision" > <path id="main" d="${uv}" fill="none" stroke="currentColor" stroke-width=${48} stroke-linejoin="round" stroke-linecap="round" /> <path id="top-right" d="${u_}"/> <path id="bottom-right" d="${uw}"/> </svg> `}}ux.styles=um,uf([l0({type:Boolean})],ux.prototype,"loading",void 0),uf([l0({type:String})],ux.prototype,"type",void 0),uf([l0({type:Number,attribute:"animation-duration"})],ux.prototype,"animationDuration",void 0),uf([l2()],ux.prototype,"_animationEndState",void 0),"u">typeof customElements&&!customElements.get("uas-icon-ai")&&customElements.define("uas-icon-ai",ux);let uk={OUTLINE:"outline",GRADIENT:"gradient"},uE=rT(uk),uS=sf`:host{display:inline-block;color:inherit}.icon-ai-agent{position:relative;display:inline-block;width:1em;height:1em;perspective:6em;perspective-origin:83% 17%}.icon-ai-agent .face{position:absolute;inset:0;width:100%;height:100%;display:block}.icon-ai-agent .spin{position:absolute;inset:0;transform-style:preserve-3d;transform-origin:83% 17%}.icon-ai-agent .spin .layer{position:absolute;inset:0;width:100%;height:100%;display:block;overflow:visible}.icon-ai-agent--loading .spin{animation:uas-icon-ai-agent-spin 3s linear infinite}@media(prefers-reduced-motion: reduce){.icon-ai-agent--loading .spin{animation:none}}@keyframes uas-icon-ai-agent-spin{from{transform:rotateY(0deg)}to{transform:rotateY(360deg)}}`;var uC=function(e,t,i,a){var n,o=arguments.length,r=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(r=(o<3?n(r):o>3?n(t,i,r):n(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r};let uT={startColor:"#79d469",endColor:"#0790e8",thickness:.04,layers:16},uI="M42.63,39.42c-.27,2.32-.27,4.67,0,6.99.4,3.44,6.7,3.44,7.27,0,.37-2.31.37-4.65,0-6.96-.56-3.44-6.9-3.44-7.27-.03ZM14.04,39.46c-.37,2.31-.37,4.65,0,6.96.57,3.44,6.88,3.44,7.28,0,.27-2.32.27-4.67,0-6.99-.37-3.42-6.67-3.42-7.28.03ZM37.07,50.66c-3.13.82-6.41.82-9.54,0,.29,5.9,9.25,5.9,9.54,0ZM63.5,30.09c-.34-3.07-2.25-4.75-5.15-5.4-8.67-1.82-17.51-2.69-26.38-2.58-8.84-.08-17.66.78-26.32,2.58-2.96.65-4.86,2.33-5.2,5.4C.06,34.09-.08,38.1.05,42.11c.09,4.27.61,8.52,1.56,12.69.65,2.73,3.6,4.49,6.05,5.52,11.5,4.91,37.1,4.91,48.65,0,2.45-1.04,5.36-2.79,6.05-5.52.96-4.16,1.5-8.42,1.6-12.69.13-4.01-.02-8.03-.46-12.02ZM58.08,53.73c-.25.99-2.75,2.24-3.52,2.53-10.4,4.48-34.86,4.48-45.25,0-.78-.32-3.24-1.51-3.52-2.53-1.46-6.05-1.84-15.43-1.01-23.2.12-1.19.82-1.36,1.73-1.56,5.08-1.18,10.25-1.89,15.46-2.16.18-.01.36.06.5.18.13.12.21.29.24.47.37,2.86.99,5.67,1.84,8.43.62,1.23,4.58,1.76,7.42,1.76s6.84-.53,7.36-1.76c.85-2.75,1.48-5.57,1.85-8.43.02-.18.11-.35.25-.47.13-.11.31-.18.49-.18,5.2.24,10.35.96,15.42,2.16.94.2,1.64.37,1.76,1.56.82,7.74.45,17.11-1.02,23.2Z";class uD extends ld{constructor(){super(...arguments),this.loading=!1,this.type=uk.OUTLINE}willUpdate(e){lQ(this,"type",uE,e,"uas-icon-ai-agent",uk.OUTLINE)}_darken(e){let t=parseInt(e.slice(1),16),i=Math.round((t>>16&255)*.55),a=Math.round((t>>8&255)*.55),n=Math.round((255&t)*.55);return`rgb(${i}, ${a}, ${n})`}get _faceTemplate(){return this.type===uk.OUTLINE?s1` <svg class="face" viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg"> <path fill="currentColor" d="${uI}"/> </svg> `:s1` <svg class="face" viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg"> <defs> <linearGradient id="face-grad" x1="0" y1="60" x2="64" y2="6" gradientUnits="userSpaceOnUse"> <stop offset="0" stop-color="${uT.startColor}"/> <stop offset="1" stop-color="${uT.endColor}"/> </linearGradient> </defs> <path fill="url(#face-grad)" d="${uI}"/> </svg> `}get _sparkleLayers(){let{layers:e,thickness:t,startColor:i,endColor:a}=uT,n=this.type===uk.OUTLINE,o=n?"M62.58,8.56l-4.89-2.25-2.26-4.89c-.4-.86-1.26-1.42-2.22-1.42s-1.82.55-2.21,1.41l-2.27,4.89-4.89,2.26c-.86.4-1.42,1.27-1.42,2.22s.56,1.82,1.42,2.22l4.9,2.26,2.25,4.89c.4.86,1.26,1.42,2.22,1.42s1.82-.56,2.21-1.42l2.26-4.89,4.9-2.26c.86-.4,1.42-1.27,1.42-2.22s-.56-1.82-1.42-2.22ZM59.38,10.78l-3.66,1.69c-.37.17-.65.46-.82.82l-1.69,3.67-1.69-3.67c-.17-.36-.45-.64-.82-.81l-3.67-1.7,3.67-1.69c.36-.17.65-.46.82-.82l1.69-3.67,1.69,3.68c.17.36.46.64.82.81l3.66,1.69Z":"M57.69,15.26l-2.29,4.95c-.49,1.06-1.71,1.58-2.83,1.29-.74-.19-1.29-.71-1.61-1.39l-2.22-4.83-4.7-2.18c-.96-.35-1.6-1.26-1.62-2.26-.03-1.04.63-1.91,1.57-2.34l4.74-2.18.74-1.59,1.44-3.16c.49-1.07,1.57-1.75,2.74-1.53.87.16,1.49.74,1.86,1.53l2.18,4.74,2.36,1.09,2.27,1.05c1.1.4,1.81,1.47,1.66,2.64-.11.92-.73,1.62-1.56,2l-3.01,1.38-1.72.78Z",r=[];for(let s=0;s<e;s++){let l=(((1===e?.5:s/(e-1))-.5)*t).toFixed(4);if(n){r.push(s1` <svg class="layer" viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg" style="transform: translateZ(${l}em)"> <path fill="currentColor" d="${o}"/> </svg> `);continue}let c=0===s||s===e-1,d=c?i:this._darken(i),u=c?a:this._darken(a);r.push(s1` <svg class="layer" viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg" style="transform: translateZ(${l}em)"> <defs> <linearGradient id="sparkle-grad-${s}" x1="42" y1="22" x2="64" y2="0" gradientUnits="userSpaceOnUse"> <stop offset="0" stop-color="${d}"/> <stop offset="1" stop-color="${u}"/> </linearGradient> </defs> <path fill="url(#sparkle-grad-${s})" d="${o}"/> </svg> `)}return r}render(){let e={"icon-ai-agent":!0,"icon-ai-agent--loading":this.loading};return s1` <div class=${up(e)} type=${this.type??s3}> ${this._faceTemplate} <div class="spin">${this._sparkleLayers}</div> </div> `}}uD.styles=uS,uC([l0({type:Boolean})],uD.prototype,"loading",void 0),uC([l0({type:String})],uD.prototype,"type",void 0),"u">typeof customElements&&!customElements.get("uas-icon-ai-agent")&&customElements.define("uas-icon-ai-agent",uD);var uA=function(e,t,i,a){var n,o=arguments.length,r=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(r=(o<3?n(r):o>3?n(t,i,r):n(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r};class u$ extends ld{constructor(){super(...arguments),this.size="font-size",this.iconStyle="regular",this.iconPack="classic"}willUpdate(e){lQ(this,"animation",d8,e,"uas-icon"),lQ(this,"brand",un,e,"uas-icon"),lQ(this,"code",ur,e,"uas-icon"),lQ(this,"iconPack",ul,e,"uas-icon"),lQ(this,"iconStyle",ud,e,"uas-icon"),lQ(this,"mime",us,e,"uas-icon"),lQ(this,"size",uc,e,"uas-icon")}render(){return s1` <div class="icon"> ${this.templateIcon} </div> `}get templateIcon(){return rK(this.mime)?this.templateMimeIcon:rK(this.brand)?this.templateBrandIcon:this.templateGlyph}get templateGlyph(){if(rY(this.code))return;let e=[];return e.push(`icon-glyph-${this.iconStyle}`),e.push(`icon-glyph-${this.iconPack}`),e.push(`icon-glyph-${this.code}`),s1` <i class="${e.join(" ")}"></i> `}get templateBrandIcon(){if(!rY(this.brand))return s1`<span class="icon-brand">${d5(uo[this.brand])}</span>`}get templateMimeIcon(){if(!rY(this.mime))return s1`<span class="icon-file">${d5(lk[this.mime||"default"]||lk.default||"")}</span>`}}u$.styles=uu,uA([l0({type:String})],u$.prototype,"code",void 0),uA([l0({type:String})],u$.prototype,"brand",void 0),uA([l0({type:String})],u$.prototype,"mime",void 0),uA([l0({type:String,reflect:!0})],u$.prototype,"size",void 0),uA([l0({type:String,reflect:!0})],u$.prototype,"animation",void 0),uA([l0({type:String,attribute:"icon-style"})],u$.prototype,"iconStyle",void 0),uA([l0({type:String,attribute:"icon-pack"})],u$.prototype,"iconPack",void 0),"u">typeof customElements&&!customElements.get("uas-icon")&&customElements.define("uas-icon",u$),"u">typeof customElements&&!customElements.get("uo-icon")&&customElements.define("uo-icon",class extends u${});let uO={INSTALL:"install",ACTIVATE:"activate",UPDATE:"update",DOWNLOAD:"download"},uR=rT(uO),uM=rg({name:oR().min(1),url:oH()}).strict(),uL=rg({label:oR().min(1),value:oR()}).strict(),uN={SECONDARY:"secondary"},uP=rT(uN),uz=rg({label:oR().min(1),type:uP.optional(),url:oH().optional(),action:uR.optional(),icon:ur.optional(),disabled:re().optional()}).strict(),uU=rg({id:oR().min(1),icon:ur,name:oR().min(1),description:oR(),is_installed:re(),is_official:re(),developer:uM,details:rp(uL),cta:rp(uz).optional()}).strict(),uF={PLUS:"plus",ELITE:"elite"},uj=rT(uF),uB=rg({listCode:uj}).strict(),uH={ERROR:"error",WARNING:"warning",INFO:"info",LOCKED:"locked"},uV=rT(uH),uq=rg({label:oR().min(1),icon:ur.optional(),url:oH()}).strict(),uZ=rg({message:oR().min(1),type:uV,cta:uq.optional()}).strict(),uW=rg({scenario_id:oR().min(1),has_access:re(),page_notice:uZ.optional(),addons:rp(uU)}).strict(),uG={id:"restrict-content",icon:"lock",name:"Restrict Content",description:"Restrict access to posts, pages, blocks and shortcodes.",is_installed:!0,is_official:!0,developer:{name:"Uncanny Owl",url:"https://uncannyowl.com"},details:[{label:"Version",value:"1.4.2"},{label:"Requires",value:"Pro Plus"}],cta:[{label:"Activate",type:"secondary",action:uO.ACTIVATE,icon:"play"}]},uK={id:"user-lists",icon:"users",name:"User Lists",description:"Manage mailing lists and email campaigns with subscriber management.",is_installed:!1,is_official:!0,developer:{name:"Uncanny Owl",url:"https://uncannyowl.com"},details:[{label:"Version",value:"2.0.1"},{label:"Requires",value:"Pro Plus"}],cta:[{label:"Install",type:"secondary",action:uO.INSTALL,icon:"download"}]},uY={all:()=>["addons-list"],detail:e=>[...uY.all(),e]};async function uQ(e){let[,t]=e.queryKey,i=uB.parse({listCode:t});return d4.DEV.RETURN_MOCK_DATA?(await new Promise(e=>setTimeout(e,d4.DEV.MOCK_DELAY_MS)),uW.parse({scenario_id:"has-access",has_access:!0,addons:[uG,uK]})):dV({endpoint:`addons/get-list/${encodeURIComponent(i.listCode)}`,responseSchema:uW,method:"GET",useEnvelope:!0})}function uX(e){return{queryKey:uY.detail(e),queryFn:uQ,staleTime:1/0}}let uJ=rg({addonID:oR().min(1,{error:"run-addon-action `addonID` cannot be empty."}),action:uR}).strict(),u1=rg({url:oH(),label:oR().min(1),icon:ur.optional()}).strict(),u0=rg({message:oR().min(1),cta:u1}).strict(),u2=rg({success:re(),direct_download:oH().optional(),user_intervention:u0.optional(),data:rg({addon:uU}).strict().optional()}).strict();async function u3(e){let t=uJ.parse(e);return d4.DEV.RETURN_MOCK_DATA?(await new Promise(e=>setTimeout(e,d4.DEV.MOCK_DELAY_MS)),u2.parse({success:!0,data:{addon:uG}})):dV({endpoint:`addons/plugin-manager/${encodeURIComponent(t.action)}/${encodeURIComponent(t.addonID)}`,responseSchema:u2,method:"POST",useEnvelope:!1})}let u4=un.nullable().catch(null),u6={CLAUDE:"claude",CHATGPT:"chatgpt",GEMINI:"gemini",OTHER:"other"},u5=rT(u6),u8=oH({protocol:/^(https?|claude|claude-cli|codex)$/}),u7=rg({id:oR().min(1),brand:u4,name:oR().min(1),connected_by:rg({id:o5().int().positive(),name:oR().min(1)}).strict(),last_used_at:n$(oL,{offset:!0}).nullable(),vendor:u5,open_url:u8.nullable(),prompt_param:oR().min(1).nullable(),prompt_prefix:oR().min(1).nullable(),app_url:u8.nullable(),app_prompt_param:oR().min(1).nullable(),is_mine:re()}).strict(),u9={TOOL_USE:"tool_use",CONNECTION:"connection"},pe=rT(u9),pt={DONE:"done",NOT_ALLOWED:"not_allowed",FAILED:"failed",APPROVED:"approved",REFUSED:"refused",DISCONNECTED:"disconnected"},pi=rT(pt),pa=rg({id:oR().min(1),brand:u4,name:oR().min(1)}).strict(),pn=rg({id:oR().min(1),client:pa,type:pe,summary:oR().min(1),result:pi,occurred_at:n$(oL,{offset:!0}),occurred_at_display:oR().min(1)}).strict(),po={unlimited:re(),used:o5().int().min(0),limit:o5().int().min(1).nullable()};function pr(e,t){e.unlimited&&null!==e.limit&&t.addIssue({code:"custom",path:["limit"],message:"An unlimited meter cannot have a limit."}),e.unlimited||null!==e.limit||t.addIssue({code:"custom",path:["limit"],message:"A limited meter must have a limit."})}let ps=rg(po).strict().superRefine(pr),pl=rg({...po,resets_at:n$(oL,{offset:!0}),license_ended:re()}).strict().superRefine(pr),pc={SM:"sm",MD:"md",LG:"lg"},pd=rT(pc);var pu=a(3508),pp=a.n(pu),ph=function(e,t,i,a){var n,o=arguments.length,r=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(r=(o<3?n(r):o>3?n(t,i,r):n(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r};let pg=class extends ld{constructor(){super(...arguments),this.brand=null,this.size=pc.MD,this.label=""}static{this.styles=sf`${sm(pp())}`}willUpdate(e){lQ(this,"brand",u4,e,"uap-d-ai-app-logo",null),lQ(this,"size",pd,e,"uap-d-ai-app-logo",pc.MD)}render(){return s1`<span class="logo logo--${this.size}">${this.templateGlyph()}</span>`}templateGlyph(){let e=""!==this.label,t=e?"img":void 0,i=e?this.label:void 0,a=e?void 0:"true";return this.brand?s1`<uas-icon class="logo__brand" brand=${this.brand} role=${t??s3} aria-label=${i??s3} aria-hidden=${a??s3} ></uas-icon>`:s1`<uas-icon class="logo__plug" code="plug" role=${t??s3} aria-label=${i??s3} aria-hidden=${a??s3} ></uas-icon>`}};ph([l0({type:String})],pg.prototype,"brand",void 0),ph([l0({type:String})],pg.prototype,"size",void 0),ph([l0({type:String})],pg.prototype,"label",void 0),pg=ph([lJ("uap-d-ai-app-logo")],pg);let pm={PRIMARY:"primary",SECONDARY:"secondary",DANGER:"danger",SUCCESS:"success",TRANSPARENT:"transparent"},pf=rT(pm),py={XS:"xs",EXTRA_SMALL:"extra-small",SM:"sm",SMALL:"small",MD:"md",LG:"lg"},pb=rT(py),pv={SELF:"_self",BLANK:"_blank",PARENT:"_parent",TOP:"_top"},p_=rT(pv),pw=rT({SUBMIT:"submit"}),px=sf`:host{width:auto;display:inline-flex}:host([disabled]){pointer-events:none}button{width:100%;padding:var(--uas--button--size-custom-padding-top, var(--uas--button--size-padding-top)) var(--uas--button--size-custom-padding-right, var(--uas--button--size-padding-right)) var(--uas--button--size-custom-padding-bottom, var(--uas--button--size-padding-bottom)) var(--uas--button--size-custom-padding-left, var(--uas--button--size-padding-left));height:var(--uas--button--size-custom-height, var(--uas--button--size-height));min-width:var(--uas--button--custom-min-width, var(--uas--button--min-width));border:var(--uas--button--custom-border-width, var(--uas--button--border-width)) solid rgba(0,0,0,0);border-radius:var(--uas--button--custom-border-radius, var(--uas--button--border-radius));font-family:var(--uas--button--custom-font-family, var(--uas--button--font-family));font-weight:var(--uas--button--custom-font-weight, var(--uas--button--font-weight));font-size:var(--uas--button--size-custom-font-size, var(--uas--button--size-font-size));line-height:var(--uas--button--size-custom-line-height, var(--uas--button--size-line-height));white-space:var(--uas--button--custom-white-space, nowrap);text-align:center;box-shadow:var(--uas--button--custom-box-shadow, var(--uas--button--box-shadow));transition:var(--uas--button--custom-transition, var(--uas--button--transition));transition-property:background,color,box-shadow,border-color;cursor:pointer;position:relative;display:inline-flex;align-items:center;justify-content:var(--uas--button--custom-justify-content, center);gap:var(--uas--button--size-custom-gap, var(--uas--button--size-gap));background:var(--uas--button--custom-background, var(--uas--button--background));color:var(--uas--button--custom-color, var(--uas--button--color));border-color:var(--uas--button--custom-border, var(--uas--button--border))}button[loading],button:hover,button:focus{background:var(--uas--button--custom-hover-background, var(--uas--button--hover-background));color:var(--uas--button--custom-hover-color, var(--uas--button--hover-color));border-color:var(--uas--button--custom-hover-border, var(--uas--button--hover-border))}button:focus{box-shadow:0 0 0 .2rem var(--uas--button--custom-focus-shadow, var(--uas--button--focus-shadow))}button[filled]{background:var(--uas--button--custom-filled-background, var(--uas--button--filled-background));color:var(--uas--button--custom-filled-color, var(--uas--button--filled-color));border-color:var(--uas--button--custom-filled-border, var(--uas--button--filled-border))}button[filled]:hover,button[filled]:focus{background:var(--uas--button--custom-filled-hover-background, var(--uas--button--filled-hover-background));color:var(--uas--button--custom-filled-hover-color, var(--uas--button--filled-hover-color));border-color:var(--uas--button--custom-filled-hover-border, var(--uas--button--filled-hover-border))}button[disabled]{opacity:var(--uas--button--custom-disabled-opacity, var(--uas--button--disabled-opacity));cursor:not-allowed;pointer-events:none}button[loading]{color:rgba(0,0,0,0) !important}button[loading]::before{font-size:1em;font-family:"UAS Icons" !important;speak:none;font-style:normal;font-weight:normal;font-variant:normal;text-transform:none;line-height:1;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;content:var(--uas--icon--spinner-third);color:var(--uas--button--custom-loading-spinner-color, var(--uas--button--loading-spinner-color));position:absolute;top:50%;left:50%;animation:uu7xtfe-rotate 2s linear infinite}@keyframes uu7xtfe-rotate{from{transform:translate(-50%, -50%) rotate(0deg)}to{transform:translate(-50%, -50%) rotate(360deg)}}button[color=secondary]{--uas--button--background: var(--uas--button--secondary-background);--uas--button--color: var(--uas--button--secondary-color);--uas--button--border: var(--uas--button--secondary-border);--uas--button--box-shadow: var(--uas--button--secondary-box-shadow);--uas--button--hover-background: var(--uas--button--secondary-hover-background);--uas--button--hover-color: var(--uas--button--secondary-hover-color);--uas--button--hover-border: var(--uas--button--secondary-hover-border);--uas--button--focus-shadow: var(--uas--button--secondary-focus-shadow);--uas--button--filled-background: var(--uas--button--secondary-filled-background);--uas--button--filled-color: var(--uas--button--secondary-filled-color);--uas--button--filled-border: var(--uas--button--secondary-filled-border);--uas--button--filled-hover-background: var(--uas--button--secondary-filled-hover-background);--uas--button--filled-hover-color: var(--uas--button--secondary-filled-hover-color);--uas--button--filled-hover-border: var(--uas--button--secondary-filled-hover-border)}button[color=danger]{--uas--button--background: var(--uas--button--danger-background);--uas--button--color: var(--uas--button--danger-color);--uas--button--border: var(--uas--button--danger-border);--uas--button--box-shadow: var(--uas--button--danger-box-shadow);--uas--button--hover-background: var(--uas--button--danger-hover-background);--uas--button--hover-color: var(--uas--button--danger-hover-color);--uas--button--hover-border: var(--uas--button--danger-hover-border);--uas--button--focus-shadow: var(--uas--button--danger-focus-shadow);--uas--button--filled-background: var(--uas--button--danger-filled-background);--uas--button--filled-color: var(--uas--button--danger-filled-color);--uas--button--filled-border: var(--uas--button--danger-filled-border);--uas--button--filled-hover-background: var(--uas--button--danger-filled-hover-background);--uas--button--filled-hover-color: var(--uas--button--danger-filled-hover-color);--uas--button--filled-hover-border: var(--uas--button--danger-filled-hover-border)}button[color=success]{--uas--button--background: var(--uas--button--success-background);--uas--button--color: var(--uas--button--success-color);--uas--button--border: var(--uas--button--success-border);--uas--button--box-shadow: var(--uas--button--success-box-shadow);--uas--button--hover-background: var(--uas--button--success-hover-background);--uas--button--hover-color: var(--uas--button--success-hover-color);--uas--button--hover-border: var(--uas--button--success-hover-border);--uas--button--focus-shadow: var(--uas--button--success-focus-shadow);--uas--button--filled-background: var(--uas--button--success-filled-background);--uas--button--filled-color: var(--uas--button--success-filled-color);--uas--button--filled-border: var(--uas--button--success-filled-border);--uas--button--filled-hover-background: var(--uas--button--success-filled-hover-background);--uas--button--filled-hover-color: var(--uas--button--success-filled-hover-color);--uas--button--filled-hover-border: var(--uas--button--success-filled-hover-border)}button[color=transparent]{--uas--button--background: var(--uas--button--transparent-background);--uas--button--color: var(--uas--button--transparent-color);--uas--button--border: var(--uas--button--transparent-border);--uas--button--box-shadow: var(--uas--button--transparent-box-shadow);--uas--button--hover-background: var(--uas--button--transparent-hover-background);--uas--button--hover-color: var(--uas--button--transparent-hover-color);--uas--button--hover-border: var(--uas--button--transparent-hover-border);--uas--button--focus-shadow: var(--uas--button--transparent-focus-shadow);--uas--button--filled-background: var(--uas--button--transparent-filled-background);--uas--button--filled-color: var(--uas--button--transparent-filled-color);--uas--button--filled-border: var(--uas--button--transparent-filled-border);--uas--button--filled-hover-background: var(--uas--button--transparent-filled-hover-background);--uas--button--filled-hover-color: var(--uas--button--transparent-filled-hover-color);--uas--button--filled-hover-border: var(--uas--button--transparent-filled-hover-border)}button[size=lg]{--uas--button--size-padding-left: var(--uas--button--size-lg-padding-left);--uas--button--size-padding-right: var(--uas--button--size-lg-padding-right);--uas--button--size-padding-top: var(--uas--button--size-lg-padding-top);--uas--button--size-padding-bottom: var(--uas--button--size-lg-padding-bottom);--uas--button--size-height: var(--uas--button--size-lg-height);--uas--button--size-font-size: var(--uas--button--size-lg-font-size);--uas--button--size-line-height: var(--uas--button--size-lg-line-height);--uas--button--size-gap: var(--uas--button--size-lg-gap)}button[size=sm],button[size=small]{--uas--button--size-padding-left: var(--uas--button--size-sm-padding-left);--uas--button--size-padding-right: var(--uas--button--size-sm-padding-right);--uas--button--size-padding-top: var(--uas--button--size-sm-padding-top);--uas--button--size-padding-bottom: var(--uas--button--size-sm-padding-bottom);--uas--button--size-height: var(--uas--button--size-sm-height);--uas--button--size-font-size: var(--uas--button--size-sm-font-size);--uas--button--size-line-height: var(--uas--button--size-sm-line-height);--uas--button--size-gap: var(--uas--button--size-sm-gap)}button[size=xs],button[size=extra-small]{--uas--button--size-padding-left: var(--uas--button--size-xs-padding-left);--uas--button--size-padding-right: var(--uas--button--size-xs-padding-right);--uas--button--size-padding-top: var(--uas--button--size-xs-padding-top);--uas--button--size-padding-bottom: var(--uas--button--size-xs-padding-bottom);--uas--button--size-height: var(--uas--button--size-xs-height);--uas--button--size-font-size: var(--uas--button--size-xs-font-size);--uas--button--size-line-height: var(--uas--button--size-xs-line-height);--uas--button--size-gap: var(--uas--button--size-xs-gap)}button uas-icon[code=arrow-up-right-from-square]{font-size:.85em;display:var(--uas--button--custom-suffix-icon-display, inline-block)}`;var pk=function(e,t,i,a){var n,o=arguments.length,r=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(r=(o<3?n(r):o>3?n(t,i,r):n(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r};class pE extends ld{constructor(){super(...arguments),this.color=pm.PRIMARY,this.filled=!1,this.size=py.MD,this.target=pv.SELF,this.disabled=!1,this.loading=!1,this.isPlaceholder=!1,this.unsafeForceTarget=!1,this.needsConfirmation=!1}render(){return s1` <button size=${this.size??s3} color=${this.color??s3} type=${this.type??s3} ?disabled=${this.disabled||this.loading||this.isPlaceholder} ?loading=${this.loading} ?filled=${this.filled} ?is-placeholder=${this.isPlaceholder} tabindex="0" @click=${this._handleClick} > ${this.isPlaceholder?s1`<uo-placeholder width="6em"></uo-placeholder>`:s1`<slot></slot> ${this._renderSuffixIcon()}`} </button> `}willUpdate(e){lQ(this,"color",pf,e,"uas-button"),lQ(this,"size",pb,e,"uas-button"),lQ(this,"target",p_,e,"uas-button"),lQ(this,"type",pw,e,"uas-button")}_renderSuffixIcon(){if("_blank"===this._calculateTarget())return s1`<uas-icon code="arrow-up-right-from-square" icon-style="solid"></uas-icon>`}async _handleClick(e){if(this.disabled||this.loading){e.preventDefault(),e.stopPropagation();return}let t=e.composedPath();if(this.needsConfirmation)try{await lp({heading:this.confirmationHeading,content:this.confirmationContent,confirmButtonLabel:this.confirmationButtonLabel})}catch{e.preventDefault(),e.stopPropagation();return}let i=1===e.button||e.metaKey||e.ctrlKey;rY(this.href)?"submit"===this.type&&this._handleFormSubmit(t):this._handleNavigation(i)}_handleNavigation(e){if(rY(this.href))return;let t=this._calculateTarget(e),i=document.createElement("a");i.href=this.href,i.target=t,"_blank"===t&&(i.rel="noopener noreferrer"),i.click()}_calculateTarget(e=!1){return rY(this.href)?"_self":e?"_blank":this.unsafeForceTarget||!function(e){if("u"<typeof window||!window.location||"string"!=typeof window.location.origin)return console.warn("isExternalUrl: window.location.origin is not available. Assuming URL is not external."),!1;let t=window.location.origin;if(!e||"string"!=typeof e)return console.warn(`isExternalUrl: Invalid or empty URL input provided: "${e}". Treating as external.`),!0;try{return new URL(e,t).origin!==t}catch(t){return console.error(`isExternalUrl: Failed to parse URL "${e}". Treating as external.`,t),!0}}(this.href)?this.target||"_self":this.target&&"_self"!==this.target?this.target:"_blank"}_handleFormSubmit(e){let t=e.find(e=>e instanceof HTMLFormElement);if(rY(t))return void console.warn('uas-button type="submit" was clicked, but no parent form was found.',this);let i=document.createElement("button");i.type="submit",rY(this.name)||(i.name=this.name),rY(this.value)||(i.value=this.value),t.appendChild(i),i.click(),t.removeChild(i)}}pE.styles=px,pE.shadowRootOptions={...ld.shadowRootOptions,delegatesFocus:!0},pk([l0({type:String})],pE.prototype,"color",void 0),pk([l0({type:Boolean,reflect:!0})],pE.prototype,"filled",void 0),pk([l0({type:String})],pE.prototype,"size",void 0),pk([l0({type:String})],pE.prototype,"href",void 0),pk([l0({type:String})],pE.prototype,"target",void 0),pk([l0({type:String})],pE.prototype,"type",void 0),pk([l0({type:String})],pE.prototype,"name",void 0),pk([l0({type:String})],pE.prototype,"value",void 0),pk([l0({type:Boolean,reflect:!0})],pE.prototype,"disabled",void 0),pk([l0({type:Boolean,reflect:!0})],pE.prototype,"loading",void 0),pk([l0({type:Boolean,attribute:"is-placeholder"})],pE.prototype,"isPlaceholder",void 0),pk([l0({type:Boolean,attribute:"unsafe-force-target"})],pE.prototype,"unsafeForceTarget",void 0),pk([l0({type:Boolean,attribute:"needs-confirmation"})],pE.prototype,"needsConfirmation",void 0),pk([l0({type:String,attribute:"confirmation-heading"})],pE.prototype,"confirmationHeading",void 0),pk([l0({type:String,attribute:"confirmation-content"})],pE.prototype,"confirmationContent",void 0),pk([l0({type:String,attribute:"confirmation-button-label"})],pE.prototype,"confirmationButtonLabel",void 0),"u">typeof customElements&&!customElements.get("uas-button")&&customElements.define("uas-button",pE),"u">typeof customElements&&!customElements.get("uo-button")&&customElements.define("uo-button",class extends pE{});let pS={PRO_NOT_INSTALLED:"pro-not-installed",PRO_INSTALLED_BUT_DEACTIVATED:"pro-installed-but-deactivated",PRO_INSTALLED_AND_ACTIVATED_AND_BASIC:"pro-installed-license-active-pro-basic",PRO_INSTALLED_AND_ACTIVATED_AND_PLUS:"pro-installed-license-active-pro-plus",PRO_INSTALLED_AND_ACTIVATED_AND_ELITE:"pro-installed-license-active-pro-elite",PRO_INSTALLED_AND_ACTIVATED_AND_INACTIVE:"pro-installed-license-inactive",PRO_INSTALLED_AND_ACTIVATED_AND_EXPIRED:"pro-installed-license-expired",PRO_INSTALLED_AND_ACTIVATED_AND_DISABLED:"pro-installed-license-disabled",PRO_INSTALLED_AND_ACTIVATED_AND_SITE_INACTIVE:"pro-installed-license-site-inactive",PRO_INSTALLED_AND_ACTIVATED_AND_INVALID:"pro-installed-license-invalid"},pC=rT(pS),pT={MISSING:"missing",MISSING_URL:"missing_url",LICENSE_NOT_ACTIVABLE:"license_not_activable",DISABLED:"disabled",NO_ACTIVATIONS_LEFT:"no_activations_left",EXPIRED:"expired",KEY_MISMATCH:"key_mismatch",INVALID_ITEM_ID:"invalid_item_id",ITEM_NAME_MISMATCH:"item_name_mismatch",SITE_INACTIVE:"site_inactive",INVALID:"invalid",VALID:"valid"},pI=rT(pT),pD={LITE:"lite",PRO_BASIC:"pro-basic",PRO_PLUS:"pro-plus",PRO_ELITE:"pro-elite"},pA=rT(pD),p$={[pD.LITE]:{label:"Lite",isPro:!1},[pD.PRO_BASIC]:{label:"Basic",isPro:!0},[pD.PRO_PLUS]:{label:"Plus",isPro:!0},[pD.PRO_ELITE]:{label:"Elite",isPro:!0}};pD.PRO_BASIC,pD.PRO_PLUS,pD.PRO_ELITE;let pO={NEUTRAL:"neutral",INFO:"info",WARNING:"warning",ERROR:"error",SUCCESS:"success"},pR=rT(pO),pM={RED:"red",PINK:"pink",PURPLE:"purple",DEEP_PURPLE:"deep-purple",INDIGO:"indigo",BLUE:"blue",LIGHT_BLUE:"light-blue",CYAN:"cyan",TEAL:"teal",GREEN:"green",LIGHT_GREEN:"light-green",LIME:"lime",YELLOW:"yellow",AMBER:"amber",ORANGE:"orange",DEEP_ORANGE:"deep-orange"},pL=rT(pM),pN=rg({label:oR().min(1),icon:ur.optional(),color:pR.optional(),helper:oR().optional()});function pP(e){return e===pS.PRO_NOT_INSTALLED||e===pS.PRO_INSTALLED_BUT_DEACTIVATED}function pz(e){switch(e){case pS.PRO_INSTALLED_AND_ACTIVATED_AND_INACTIVE:case pS.PRO_INSTALLED_AND_ACTIVATED_AND_EXPIRED:case pS.PRO_INSTALLED_AND_ACTIVATED_AND_DISABLED:case pS.PRO_INSTALLED_AND_ACTIVATED_AND_SITE_INACTIVE:case pS.PRO_INSTALLED_AND_ACTIVATED_AND_INVALID:return!0;default:return!1}}function pU(e,t){return e.owner?e.owner.is_viewer?e.plan===pD.LITE?(0,lX.__)("You hold this site’s Free license. You can connect your own AI app. Its tool use on this site counts toward the daily limit shared across your license’s sites.","uncanny-automator"):(0,lX.__)("You hold this site’s Pro license. You can connect your own AI app alongside the apps other administrators connected.","uncanny-automator"):e.plan!==pD.LITE?(0,lX.sprintf)((0,lX.__)("This site uses a Pro license held by %s. A free Uncanny Automator account is enough to connect your own AI app.","uncanny-automator"),e.owner.name):"number"!=typeof t?(0,lX.sprintf)((0,lX.__)("This site uses a Free license held by %s. You can connect your own AI app with a free Uncanny Automator account. Tool uses are shared across sites on this license.","uncanny-automator"),e.owner.name):(0,lX.sprintf)((0,lX.__)("This site uses a Free license held by %1$s. You can connect your own AI app with a free Uncanny Automator account. The license’s %2$d daily tool uses are shared across its sites.","uncanny-automator"),e.owner.name,t):null}let pF=rg({available:o5().min(0,{error:"License summary addons `available` must be greater than 0."}),total:o5().min(0,{error:"License summary addons `total` must be greater than 0."})}).refine(e=>e.available<=e.total,{error:"License summary addons `available` must be less than or equal to `total`."}),pj=rg({label:oR({error:e=>void 0===e.input?"License summary CTA `label` is required.":"License summary CTA `label` must be a string."}).min(1,{error:"License summary CTA `label` cannot be empty."}),url:oH({error:"License summary CTA `url` must be a valid URL."}),type:pf.optional(),icon:ur.optional()});function pB(e){if(e)throw e}function pH(e){if("object"!=typeof e||null===e)return!1;let t=Object.getPrototypeOf(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function pV(e){return e&&"object"==typeof e?"position"in e||"type"in e?pZ(e.position):"start"in e||"end"in e?pZ(e):"line"in e||"column"in e?pq(e):"":""}function pq(e){return pW(e&&e.line)+":"+pW(e&&e.column)}function pZ(e){return pq(e&&e.start)+"-"+pq(e&&e.end)}function pW(e){return e&&"number"==typeof e?e:1}te();class pG extends Error{constructor(e,t,i){super(),"string"==typeof t&&(i=t,t=void 0);let a="",n={},o=!1;if(t&&(n="line"in t&&"column"in t||"start"in t&&"end"in t?{place:t}:"type"in t?{ancestors:[t],place:t.position}:{...t}),"string"==typeof e?a=e:!n.cause&&e&&(o=!0,a=e.message,n.cause=e),!n.ruleId&&!n.source&&"string"==typeof i){let e=i.indexOf(":");-1===e?n.ruleId=i:(n.source=i.slice(0,e),n.ruleId=i.slice(e+1))}if(!n.place&&n.ancestors&&n.ancestors){let e=n.ancestors[n.ancestors.length-1];e&&(n.place=e.position)}let r=n.place&&"start"in n.place?n.place.start:n.place;this.ancestors=n.ancestors||void 0,this.cause=n.cause||void 0,this.column=r?r.column:void 0,this.fatal=void 0,this.file="",this.message=a,this.line=r?r.line:void 0,this.name=pV(n.place)||"1:1",this.place=n.place||void 0,this.reason=this.message,this.ruleId=n.ruleId||void 0,this.source=n.source||void 0,this.stack=o&&n.cause&&"string"==typeof n.cause.stack?n.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}pG.prototype.file="",pG.prototype.name="",pG.prototype.reason="",pG.prototype.message="",pG.prototype.stack="",pG.prototype.column=void 0,pG.prototype.line=void 0,pG.prototype.ancestors=void 0,pG.prototype.cause=void 0,pG.prototype.fatal=void 0,pG.prototype.place=void 0,pG.prototype.ruleId=void 0,pG.prototype.source=void 0;let pK=function(e,t){let i;if(void 0!==t&&"string"!=typeof t)throw TypeError('"ext" argument must be a string');pJ(e);let a=0,n=-1,o=e.length;if(void 0===t||0===t.length||t.length>e.length){for(;o--;)if(47===e.codePointAt(o)){if(i){a=o+1;break}}else n<0&&(i=!0,n=o+1);return n<0?"":e.slice(a,n)}if(t===e)return"";let r=-1,s=t.length-1;for(;o--;)if(47===e.codePointAt(o)){if(i){a=o+1;break}}else r<0&&(i=!0,r=o+1),s>-1&&(e.codePointAt(o)===t.codePointAt(s--)?s<0&&(n=o):(s=-1,n=r));return a===n?n=r:n<0&&(n=e.length),e.slice(a,n)},pY=function(e){let t;if(pJ(e),0===e.length)return".";let i=-1,a=e.length;for(;--a;)if(47===e.codePointAt(a)){if(t){i=a;break}}else t||(t=!0);return i<0?47===e.codePointAt(0)?"/":".":1===i&&47===e.codePointAt(0)?"//":e.slice(0,i)},pQ=function(e){let t;pJ(e);let i=e.length,a=-1,n=0,o=-1,r=0;for(;i--;){let s=e.codePointAt(i);if(47===s){if(t){n=i+1;break}continue}a<0&&(t=!0,a=i+1),46===s?o<0?o=i:1!==r&&(r=1):o>-1&&(r=-1)}return o<0||a<0||0===r||1===r&&o===a-1&&o===n+1?"":e.slice(o,a)},pX=function(...e){var t;let i,a,n,o=-1;for(;++o<e.length;)pJ(e[o]),e[o]&&(n=void 0===n?e[o]:n+"/"+e[o]);return void 0===n?".":(pJ(t=n),i=47===t.codePointAt(0),0!==(a=function(e,t){let i,a,n="",o=0,r=-1,s=0,l=-1;for(;++l<=e.length;){if(l<e.length)i=e.codePointAt(l);else if(47===i)break;else i=47;if(47===i){if(r===l-1||1===s);else if(r!==l-1&&2===s){if(n.length<2||2!==o||46!==n.codePointAt(n.length-1)||46!==n.codePointAt(n.length-2)){if(n.length>2){if((a=n.lastIndexOf("/"))!==n.length-1){a<0?(n="",o=0):o=(n=n.slice(0,a)).length-1-n.lastIndexOf("/"),r=l,s=0;continue}}else if(n.length>0){n="",o=0,r=l,s=0;continue}}t&&(n=n.length>0?n+"/..":"..",o=2)}else n.length>0?n+="/"+e.slice(r+1,l):n=e.slice(r+1,l),o=l-r-1;r=l,s=0}else 46===i&&s>-1?s++:s=-1}return n}(t,!i)).length||i||(a="."),a.length>0&&47===t.codePointAt(t.length-1)&&(a+="/"),i?"/"+a:a)};function pJ(e){if("string"!=typeof e)throw TypeError("Path must be a string. Received "+JSON.stringify(e))}function p1(e){return!!(null!==e&&"object"==typeof e&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&void 0===e.auth)}let p0=["history","path","basename","stem","extname","dirname"];class p2{constructor(e){var t;let i,a;i=e?p1(e)?{path:e}:"string"==typeof e||(t=e)&&"object"==typeof t&&"byteLength"in t&&"byteOffset"in t?{value:e}:e:{},this.cwd="cwd"in i?"":"/",this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let n=-1;for(;++n<p0.length;){let e=p0[n];e in i&&void 0!==i[e]&&null!==i[e]&&(this[e]="history"===e?[...i[e]]:i[e])}for(a in i)p0.includes(a)||(this[a]=i[a])}get basename(){return"string"==typeof this.path?pK(this.path):void 0}set basename(e){p4(e,"basename"),p3(e,"basename"),this.path=pX(this.dirname||"",e)}get dirname(){return"string"==typeof this.path?pY(this.path):void 0}set dirname(e){p6(this.basename,"dirname"),this.path=pX(e||"",this.basename)}get extname(){return"string"==typeof this.path?pQ(this.path):void 0}set extname(e){if(p3(e,"extname"),p6(this.dirname,"extname"),e){if(46!==e.codePointAt(0))throw Error("`extname` must start with `.`");if(e.includes(".",1))throw Error("`extname` cannot contain multiple dots")}this.path=pX(this.dirname,this.stem+(e||""))}get path(){return this.history[this.history.length-1]}set path(e){p1(e)&&(e=function(e){if("string"==typeof e)e=new URL(e);else if(!p1(e)){let t=TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if("file:"!==e.protocol){let e=TypeError("The URL must be of scheme file");throw e.code="ERR_INVALID_URL_SCHEME",e}return function(e){if(""!==e.hostname){let e=TypeError('File URL host must be "localhost" or empty on darwin');throw e.code="ERR_INVALID_FILE_URL_HOST",e}let t=e.pathname,i=-1;for(;++i<t.length;)if(37===t.codePointAt(i)&&50===t.codePointAt(i+1)){let e=t.codePointAt(i+2);if(70===e||102===e){let e=TypeError("File URL path must not include encoded / characters");throw e.code="ERR_INVALID_FILE_URL_PATH",e}}return decodeURIComponent(t)}(e)}(e)),p4(e,"path"),this.path!==e&&this.history.push(e)}get stem(){return"string"==typeof this.path?pK(this.path,this.extname):void 0}set stem(e){p4(e,"stem"),p3(e,"stem"),this.path=pX(this.dirname||"",e+(this.extname||""))}fail(e,t,i){let a=this.message(e,t,i);throw a.fatal=!0,a}info(e,t,i){let a=this.message(e,t,i);return a.fatal=void 0,a}message(e,t,i){let a=new pG(e,t,i);return this.path&&(a.name=this.path+":"+a.name,a.file=this.path),a.fatal=!1,this.messages.push(a),a}toString(e){return void 0===this.value?"":"string"==typeof this.value?this.value:new TextDecoder(e||void 0).decode(this.value)}}function p3(e,t){if(e&&e.includes("/"))throw Error("`"+t+"` cannot be a path: did not expect `/`")}function p4(e,t){if(!e)throw Error("`"+t+"` cannot be empty")}function p6(e,t){if(!e)throw Error("Setting `"+t+"` requires `path` to be set too")}let p5=function(e){let t=this.constructor.prototype,i=t[e],a=function(){return i.apply(a,arguments)};return Object.setPrototypeOf(a,t),a},p8={}.hasOwnProperty,p7=new class e extends p5{constructor(){let e,t;super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=(e=[],t={run:function(...t){let i=-1,a=t.pop();if("function"!=typeof a)throw TypeError("Expected function as last argument, not "+a);!function n(o,...r){let s=e[++i],l=-1;if(o)return void a(o);for(;++l<t.length;)(null===r[l]||void 0===r[l])&&(r[l]=t[l]);t=r,s?(function(e,t){let i;return function(...t){let o,r=e.length>t.length;r&&t.push(a);try{o=e.apply(this,t)}catch(e){if(r&&i)throw e;return a(e)}r||(o&&o.then&&"function"==typeof o.then?o.then(n,a):o instanceof Error?a(o):n(o))};function a(e,...n){i||(i=!0,t(e,...n))}function n(e){a(null,e)}})(s,n)(...r):a(null,...r)}(null,...t)},use:function(i){if("function"!=typeof i)throw TypeError("Expected `middelware` to be a function, not "+i);return e.push(i),t}})}copy(){let t=new e,i=-1;for(;++i<this.attachers.length;){let e=this.attachers[i];t.use(...e)}return t.data(te()(!0,{},this.namespace)),t}data(e,t){return"string"==typeof e?2==arguments.length?(ht("data",this.frozen),this.namespace[e]=t,this):p8.call(this.namespace,e)&&this.namespace[e]||void 0:e?(ht("data",this.frozen),this.namespace=e,this):this.namespace}freeze(){if(this.frozen)return this;for(;++this.freezeIndex<this.attachers.length;){let[e,...t]=this.attachers[this.freezeIndex];if(!1===t[0])continue;!0===t[0]&&(t[0]=void 0);let i=e.call(this,...t);"function"==typeof i&&this.transformers.use(i)}return this.frozen=!0,this.freezeIndex=1/0,this}parse(e){this.freeze();let t=hn(e),i=this.parser||this.Parser;return p9("parse",i),i(String(t),t)}process(e,t){let i=this;return this.freeze(),p9("process",this.parser||this.Parser),he("process",this.compiler||this.Compiler),t?a(void 0,t):new Promise(a);function a(a,n){let o=hn(e),r=i.parse(o);function s(e,i){e||!i?n(e):a?a(i):t(void 0,i)}i.run(r,o,function(e,t,a){var n,o;if(e||!t||!a)return s(e);let r=i.stringify(t,a);"string"==typeof(n=r)||(o=n)&&"object"==typeof o&&"byteLength"in o&&"byteOffset"in o?a.value=r:a.result=r,s(e,a)})}}processSync(e){let t,i=!1;return this.freeze(),p9("processSync",this.parser||this.Parser),he("processSync",this.compiler||this.Compiler),this.process(e,function(e,a){i=!0,pB(e),t=a}),ha("processSync","process",i),t}run(e,t,i){hi(e),this.freeze();let a=this.transformers;return i||"function"!=typeof t||(i=t,t=void 0),i?n(void 0,i):new Promise(n);function n(n,o){let r=hn(t);a.run(e,r,function(t,a,r){let s=a||e;t?o(t):n?n(s):i(void 0,s,r)})}}runSync(e,t){let i,a=!1;return this.run(e,t,function(e,t){pB(e),i=t,a=!0}),ha("runSync","run",a),i}stringify(e,t){this.freeze();let i=hn(t),a=this.compiler||this.Compiler;return he("stringify",a),hi(e),a(e,i)}use(e,...t){let i=this.attachers,a=this.namespace;if(ht("use",this.frozen),null==e);else if("function"==typeof e)r(e,t);else if("object"==typeof e)Array.isArray(e)?o(e):n(e);else throw TypeError("Expected usable value, not `"+e+"`");return this;function n(e){if(!("plugins"in e)&&!("settings"in e))throw Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");o(e.plugins),e.settings&&(a.settings=te()(!0,a.settings,e.settings))}function o(e){let t=-1;if(null==e);else if(Array.isArray(e))for(;++t<e.length;)!function(e){if("function"==typeof e)r(e,[]);else if("object"==typeof e)if(Array.isArray(e)){let[t,...i]=e;r(t,i)}else n(e);else throw TypeError("Expected usable value, not `"+e+"`")}(e[t]);else throw TypeError("Expected a list of plugins, not `"+e+"`")}function r(e,t){let a=-1,n=-1;for(;++a<i.length;)if(i[a][0]===e){n=a;break}if(-1===n)i.push([e,...t]);else if(t.length>0){let[a,...o]=t,r=i[n][1];pH(r)&&pH(a)&&(a=te()(!0,r,a)),i[n]=[e,a,...o]}}}}().freeze();function p9(e,t){if("function"!=typeof t)throw TypeError("Cannot `"+e+"` without `parser`")}function he(e,t){if("function"!=typeof t)throw TypeError("Cannot `"+e+"` without `compiler`")}function ht(e,t){if(t)throw Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function hi(e){if(!pH(e)||"string"!=typeof e.type)throw TypeError("Expected node, got `"+e+"`")}function ha(e,t,i){if(!i)throw Error("`"+e+"` finished async. Use `"+t+"` instead")}function hn(e){var t;return(t=e)&&"object"==typeof t&&"message"in t&&"messages"in t?e:new p2(e)}let ho={};function hr(e,t){let i=t||ho;return hs(e,"boolean"!=typeof i.includeImageAlt||i.includeImageAlt,"boolean"!=typeof i.includeHtml||i.includeHtml)}function hs(e,t,i){var a;if((a=e)&&"object"==typeof a){if("value"in e)return"html"!==e.type||i?e.value:"";if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return hl(e.children,t,i)}return Array.isArray(e)?hl(e,t,i):""}function hl(e,t,i){let a=[],n=-1;for(;++n<e.length;)a[n]=hs(e[n],t,i);return a.join("")}function hc(e,t,i,a){let n,o=e.length,r=0;if(t=t<0?-t>o?0:o+t:t>o?o:t,i=i>0?i:0,a.length<1e4)(n=Array.from(a)).unshift(t,i),e.splice(...n);else for(i&&e.splice(t,i);r<a.length;)(n=a.slice(r,r+1e4)).unshift(t,0),e.splice(...n),r+=1e4,t+=1e4}function hd(e,t){return e.length>0?(hc(e,e.length,0,t),e):t}class hu{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 i=null==t?1/0:t;return i<this.left.length?this.left.slice(e,i):e>this.left.length?this.right.slice(this.right.length-i+this.left.length,this.right.length-e+this.left.length).reverse():this.left.slice(e).concat(this.right.slice(this.right.length-i+this.left.length).reverse())}splice(e,t,i){this.setCursor(Math.trunc(e));let a=this.right.splice(this.right.length-(t||0),1/0);return i&&hp(this.left,i),a.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),hp(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),hp(this.right,e.reverse())}setCursor(e){if(e!==this.left.length&&(!(e>this.left.length)||0!==this.right.length)&&(!(e<0)||0!==this.left.length))if(e<this.left.length){let t=this.left.splice(e,1/0);hp(this.right,t.reverse())}else{let t=this.right.splice(this.left.length+this.right.length-e,1/0);hp(this.left,t.reverse())}}}function hp(e,t){let i=0;if(t.length<1e4)e.push(...t);else for(;i<t.length;)e.push(...t.slice(i,i+1e4)),i+=1e4}function hh(e){let t,i,a,n,o,r,s,l={},c=-1,d=new hu(e);for(;++c<d.length;){for(;c in l;)c=l[c];if(t=d.get(c),c&&"chunkFlow"===t[1].type&&"listItemPrefix"===d.get(c-1)[1].type&&((a=0)<(r=t[1]._tokenizer.events).length&&"lineEndingBlank"===r[a][1].type&&(a+=2),a<r.length&&"content"===r[a][1].type))for(;++a<r.length&&"content"!==r[a][1].type;)"chunkText"===r[a][1].type&&(r[a][1]._isInFirstContentOfListItem=!0,a++);if("enter"===t[0])t[1].contentType&&(Object.assign(l,function(e,t){let i,a,n=e.get(t)[1],o=e.get(t)[2],r=t-1,s=[],l=n._tokenizer;!l&&(l=o.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(l._contentTypeTextTrailing=!0));let c=l.events,d=[],u={},p=-1,h=n,g=0,m=0,f=[0];for(;h;){for(;e.get(++r)[1]!==h;);s.push(r),!h._tokenizer&&(i=o.sliceStream(h),h.next||i.push(null),a&&l.defineSkip(h.start),h._isInFirstContentOfListItem&&(l._gfmTasklistFirstContentOfListItem=!0),l.write(i),h._isInFirstContentOfListItem&&(l._gfmTasklistFirstContentOfListItem=void 0)),a=h,h=h.next}for(h=n;++p<c.length;)"exit"===c[p][0]&&"enter"===c[p-1][0]&&c[p][1].type===c[p-1][1].type&&c[p][1].start.line!==c[p][1].end.line&&(m=p+1,f.push(m),h._tokenizer=void 0,h.previous=void 0,h=h.next);for(l.events=[],h?(h._tokenizer=void 0,h.previous=void 0):f.pop(),p=f.length;p--;){let t=c.slice(f[p],f[p+1]),i=s.pop();d.push([i,i+t.length-1]),e.splice(i,2,t)}for(d.reverse(),p=-1;++p<d.length;)u[g+d[p][0]]=g+d[p][1],g+=d[p][1]-d[p][0]-1;return u}(d,c)),c=l[c],s=!0);else if(t[1]._container){for(a=c,i=void 0;a--;)if("lineEnding"===(n=d.get(a))[1].type||"lineEndingBlank"===n[1].type)"enter"===n[0]&&(i&&(d.get(i)[1].type="lineEndingBlank"),n[1].type="lineEnding",i=a);else if("linePrefix"===n[1].type||"listItemIndent"===n[1].type);else break;i&&(t[1].end={...d.get(i)[1].start},(o=d.slice(i,c)).unshift(t),d.splice(i,c-i+1,o))}}return hc(e,0,1/0,d.slice(0)),!s}let hg={}.hasOwnProperty;function hm(e){let t={},i=-1;for(;++i<e.length;)!function(e,t){let i;for(i in t){let a,n=(hg.call(e,i)?e[i]:void 0)||(e[i]={}),o=t[i];if(o)for(a in o){hg.call(n,a)||(n[a]=[]);let e=o[a];!function(e,t){let i=-1,a=[];for(;++i<t.length;)("after"===t[i].add?e:a).push(t[i]);hc(e,0,0,a)}(n[a],Array.isArray(e)?e:e?[e]:[])}}}(t,e[i]);return t}let hf=hI(/[A-Za-z]/),hy=hI(/[\dA-Za-z]/),hb=hI(/[#-'*+\--9=?A-Z^-~]/);function hv(e){return null!==e&&(e<32||127===e)}let h_=hI(/\d/),hw=hI(/[\dA-Fa-f]/),hx=hI(/[!-/:-@[-`{-~]/);function hk(e){return null!==e&&e<-2}function hE(e){return null!==e&&(e<0||32===e)}function hS(e){return -2===e||-1===e||32===e}let hC=hI(/\p{P}|\p{S}/u),hT=hI(/\s/);function hI(e){return function(t){return null!==t&&t>-1&&e.test(String.fromCharCode(t))}}function hD(e,t,i,a){let n=a?a-1:1/0,o=0;return function(a){return hS(a)?(e.enter(i),function a(r){return hS(r)&&o++<n?(e.consume(r),a):(e.exit(i),t(r))}(a)):t(a)}}function hA(e,t,i,a,n,o){let r=0;return function(t){return o>0&&hS(t)?(e.enter(a),function t(i){return hS(i)&&r<o?(e.consume(i),r++,t):(e.exit(a),s(i))}(t)):s(t)};function s(e){return r>=n?t(e):i(e)}}let h$={tokenize:function(e){let t,i=e.attempt(this.parser.constructs.contentInitial,function(t){return null===t?void e.consume(t):(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),hD(e,i,"linePrefix"))},function(i){return e.enter("paragraph"),function i(a){let n=e.enter("chunkText",{contentType:"text",previous:t});return t&&(t.next=n),t=n,function t(a){if(null===a){e.exit("chunkText"),e.exit("paragraph"),e.consume(a);return}return hk(a)?(e.consume(a),e.exit("chunkText"),i):(e.consume(a),t)}(a)}(i)});return i}};class hO{constructor(){this.index=new Map,this.map=[]}add(e,t,i){hR(this,e,t,i,!1)}addBefore(e,t,i){hR(this,e,t,i,!0)}consume(e){if(this.map.sort(function(e,t){return e[0]-t[0]}),0===this.map.length)return;let t=this.map.length,i=[];for(;t>0;)t-=1,i.push(e.slice(this.map[t][0]+this.map[t][1]),this.map[t][2]),e.length=this.map[t][0];i.push(e.slice()),e.length=0;let a=i.pop();for(;a;){for(let t of a)e.push(t);a=i.pop()}this.map.length=0,this.index.clear()}}function hR(e,t,i,a,n){if(0===i&&0===a.length)return;let o=e.index.get(t);if(o){o[1]+=i,n?(a.push(...o[2]),o[2]=a):o[2].push(...a);return}let r=[t,i,a];e.map.push(r),e.index.set(t,r)}let hM={tokenize:function(e){let t,i,a,n=this,o=[],r=0;return s;function s(t){if(r<o.length){let i=o[r];return n.containerState=i[1],e.attempt(i[0].continuation,l,c)(t)}return c(t)}function l(e){if(r++,n.containerState._closeFlow){let i;n.containerState._closeFlow=void 0,t&&y();let a=n.events.length,o=a;for(;o--;)if("exit"===n.events[o][0]&&"chunkFlow"===n.events[o][1].type){i=n.events[o][1].end;break}f(r);let s=a;for(;s<n.events.length;)n.events[s][1].end={...i},s++;let l=new hO;return l.add(o+1,0,n.events.slice(a)),l.add(a,s-a,[]),l.consume(n.events),c(e)}return s(e)}function c(i){if(r===o.length){if(!t)return p(i);if(t.currentConstruct&&t.currentConstruct.concrete)return g(i);n.interrupt=!!(t.currentConstruct&&!t._gfmTableDynamicInterruptHack)}return n.containerState={},e.check(hL,d,u)(i)}function d(e){return t&&y(),f(r),p(e)}function u(e){return n.parser.lazy[n.now().line]=r!==o.length,a=n.now().offset,g(e)}function p(t){return n.containerState={},e.attempt(hL,h,g)(t)}function h(e){return r++,o.push([n.currentConstruct,n.containerState]),p(e)}function g(a){if(null===a){t&&y(),f(0),e.consume(a);return}return t=t||n.parser.flow(n.now()),e.enter("chunkFlow",{_tokenizer:t,contentType:"flow",previous:i}),function t(i){if(null===i){m(e.exit("chunkFlow"),!0),f(0),e.consume(i);return}return hk(i)?(e.consume(i),m(e.exit("chunkFlow")),r=0,n.interrupt=void 0,s):(e.consume(i),t)}(a)}function m(e,o){let s=n.sliceStream(e);if(o&&s.push(null),e.previous=i,i&&(i.next=e),i=e,t.defineSkip(e.start),t.write(s),n.parser.lazy[e.start.line]){let e,i,o=t.events.length;for(;o--;)if(t.events[o][1].start.offset<a&&(!t.events[o][1].end||t.events[o][1].end.offset>a))return;let s=n.events.length,l=s;for(;l--;)if("exit"===n.events[l][0]&&"chunkFlow"===n.events[l][1].type){if(e){i=n.events[l][1].end;break}e=!0}for(f(r),o=s;o<n.events.length;)n.events[o][1].end={...i},o++;let c=new hO;c.add(l+1,0,n.events.slice(s)),c.add(s,o-s,[]),c.consume(n.events)}}function f(t){let i=o.length;for(;i-- >t;){let t=o[i];n.containerState=t[1],t[0].exit.call(n,e)}o.length=t}function y(){t.write([null]),i=void 0,t=void 0,n.containerState._closeFlow=void 0}}},hL={tokenize:function(e,t,i){return hD(e,e.attempt(this.parser.constructs.document,t,i),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}},hN={partial:!0,tokenize:function(e,t,i){return function(t){return hS(t)?hD(e,a,"linePrefix")(t):a(t)};function a(e){return null===e||hk(e)?t(e):i(e)}}},hP={resolve:function(e){return hh(e),e},tokenize:function(e,t){let i;return function(t){return e.enter("content"),i=e.enter("chunkContent",{contentType:"content"}),a(t)};function a(t){return null===t?n(t):hk(t)?e.check(hz,o,n)(t):(e.consume(t),a)}function n(i){return e.exit("chunkContent"),e.exit("content"),t(i)}function o(t){return e.consume(t),e.exit("chunkContent"),i.next=e.enter("chunkContent",{contentType:"content",previous:i}),i=i.next,a}}},hz={partial:!0,tokenize:function(e,t,i){let a=this;return function(t){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),hD(e,n,"linePrefix")};function n(n){if(null===n||hk(n))return i(n);let o=a.events[a.events.length-1];return!a.parser.constructs.disable.null.includes("codeIndented")&&o&&"linePrefix"===o[1].type&&o[2].sliceSerialize(o[1],!0).length>=4?t(n):e.interrupt(a.parser.constructs.flow,i,t)(n)}}},hU={tokenize:function(e){let t=this,i=e.attempt(hN,function(a){return null===a?void e.consume(a):(e.enter("lineEndingBlank"),e.consume(a),e.exit("lineEndingBlank"),t.currentConstruct=void 0,i)},e.attempt(this.parser.constructs.flowInitial,a,hD(e,e.attempt(this.parser.constructs.flow,a,e.attempt(hP,a)),"linePrefix")));return i;function a(a){return null===a?void e.consume(a):(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),t.currentConstruct=void 0,i)}}},hF={resolveAll:hV()},hj=hH("string"),hB=hH("text");function hH(e){return{resolveAll:hV("text"===e?hq:void 0),tokenize:function(t){let i=this,a=this.parser.constructs[e],n=t.attempt(a,o,r);return o;function o(e){return l(e)?n(e):r(e)}function r(e){return null===e?void t.consume(e):(t.enter("data"),t.consume(e),s)}function s(e){return l(e)?(t.exit("data"),n(e)):(t.consume(e),s)}function l(e){if(null===e)return!0;let t=a[e],n=-1;if(t)for(;++n<t.length;){let e=t[n];if(!e.previous||e.previous.call(i,i.previous))return!0}return!1}}}}function hV(e){return function(t,i){let a,n=-1;for(;++n<=t.length;)void 0===a?t[n]&&"data"===t[n][1].type&&(a=n,n++):t[n]&&"data"===t[n][1].type||(n!==a+2&&(t[a][1].end=t[n-1][1].end,t.splice(a+2,n-a-2),n=a+2),a=void 0);return e?e(t,i):t}}function hq(e,t){let i=new hO,a=0;for(;++a<=e.length;)if((a===e.length||"lineEnding"===e[a][1].type)&&"data"===e[a-1][1].type){let n,o=e[a-1][1],r=t.sliceStream(o),s=r.length,l=-1,c=0;for(;s--;){let e=r[s];if("string"==typeof e){for(l=e.length;32===e.charCodeAt(l-1);)c++,l--;if(l)break;l=-1}else if(-2===e)n=!0,c++;else if(-1===e);else{s++;break}}if(t._contentTypeTextTrailing&&a===e.length&&(c=0),c){let r={type:a===e.length||n||c<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:s?l:o.start._bufferIndex+l,_index:o.start._index+s,line:o.end.line,column:o.end.column-c,offset:o.end.offset-c},end:{...o.end}};o.end={...r.start},o.start.offset===o.end.offset?Object.assign(o,r):i.add(a,0,[["enter",r,t],["exit",r,t]])}a++}return i.consume(e),e}let hZ={name:"thematicBreak",tokenize:function(e,t,i){let a,n=0;return function(o){var r;return e.enter("thematicBreak"),a=r=o,function o(r){return r===a?(e.enter("thematicBreakSequence"),function t(i){return i===a?(e.consume(i),n++,t):(e.exit("thematicBreakSequence"),hS(i)?hD(e,o,"whitespace")(i):o(i))}(r)):n>=3&&(null===r||hk(r))?(e.exit("thematicBreak"),t(r)):i(r)}(r)}}},hW={continuation:{tokenize:function(e,t,i){let a=this;return a.containerState._closeFlow=void 0,e.check(hN,function(i){return a.containerState.furtherBlankLines=a.containerState.furtherBlankLines||a.containerState.initialBlankLine,hD(e,t,"listItemIndent",a.containerState.size+1)(i)},function(i){return a.containerState.furtherBlankLines||!hS(i)?(a.containerState.furtherBlankLines=void 0,a.containerState.initialBlankLine=void 0,n(i)):(a.containerState.furtherBlankLines=void 0,a.containerState.initialBlankLine=void 0,e.attempt(hK,t,n)(i))});function n(n){return a.containerState._closeFlow=!0,a.interrupt=void 0,hD(e,e.attempt(hW,t,i),"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(n)}}},exit:function(e){e.exit(this.containerState.type)},name:"list",tokenize:function(e,t,i){let a=this,n=a.events[a.events.length-1],o=n&&"linePrefix"===n[1].type?n[2].sliceSerialize(n[1],!0).length:0,r=0;return function(t){let n=a.containerState.type||(42===t||43===t||45===t?"listUnordered":"listOrdered");if("listUnordered"===n?!a.containerState.marker||t===a.containerState.marker:h_(t)){if(a.containerState.type||(a.containerState.type=n,e.enter(n,{_container:!0})),"listUnordered"===n)return e.enter("listItemPrefix"),42===t||45===t?e.check(hZ,i,s)(t):s(t);if(!a.interrupt||49===t)return e.enter("listItemPrefix"),e.enter("listItemValue"),function t(n){return h_(n)&&++r<10?(e.consume(n),t):(!a.interrupt||r<2)&&(a.containerState.marker?n===a.containerState.marker:41===n||46===n)?(e.exit("listItemValue"),s(n)):i(n)}(t)}return i(t)};function s(t){return e.enter("listItemMarker"),e.consume(t),e.exit("listItemMarker"),a.containerState.marker=a.containerState.marker||t,e.check(hN,a.interrupt?i:l,e.attempt(hG,d,c))}function l(e){return a.containerState.initialBlankLine=!0,o++,d(e)}function c(t){return hS(t)?(e.enter("listItemPrefixWhitespace"),e.consume(t),e.exit("listItemPrefixWhitespace"),d):i(t)}function d(i){return a.containerState.size=o+a.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(i)}}},hG={partial:!0,tokenize:function(e,t,i){let a=this;return hD(e,function(e){let n=a.events[a.events.length-1];return!hS(e)&&n&&"listItemPrefixWhitespace"===n[1].type?t(e):i(e)},"listItemPrefixWhitespace",a.parser.constructs.disable.null.includes("codeIndented")?void 0:5)}},hK={partial:!0,tokenize:function(e,t,i){let a=this;return hD(e,function(e){let n=a.events[a.events.length-1];return n&&"listItemIndent"===n[1].type&&n[2].sliceSerialize(n[1],!0).length===a.containerState.size?t(e):i(e)},"listItemIndent",a.containerState.size+1)}},hY={continuation:{tokenize:function(e,t,i){let a=this;return function(t){return hS(t)?hD(e,n,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):n(t)};function n(a){return e.attempt(hY,t,i)(a)}}},exit:function(e){e.exit("blockQuote")},name:"blockQuote",tokenize:function(e,t,i){let a=this;return function(t){if(62===t){let i=a.containerState;return i.open||(e.enter("blockQuote",{_container:!0}),i.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(t),e.exit("blockQuoteMarker"),n}return i(t)};function n(i){return hS(i)?(e.enter("blockQuotePrefixWhitespace"),e.consume(i),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(i))}}};function hQ(e,t,i,a,n,o,r,s,l){let c=l||1/0,d=0;return function(t){return 60===t?(e.enter(a),e.enter(n),e.enter(o),e.consume(t),e.exit(o),u):null===t||32===t||41===t||hv(t)?i(t):(e.enter(a),e.enter(r),e.enter(s),e.enter("chunkString",{contentType:"string"}),g(t))};function u(i){return 62===i?(e.enter(o),e.consume(i),e.exit(o),e.exit(n),e.exit(a),t):(e.enter(s),e.enter("chunkString",{contentType:"string"}),p(i))}function p(t){return 62===t?(e.exit("chunkString"),e.exit(s),u(t)):null===t||60===t||hk(t)?i(t):(e.consume(t),92===t?h:p)}function h(t){return 60===t||62===t||92===t?(e.consume(t),p):p(t)}function g(n){return!d&&(null===n||41===n||hE(n))?(e.exit("chunkString"),e.exit(s),e.exit(r),e.exit(a),t(n)):d<c&&40===n?(e.consume(n),d++,g):41===n?(e.consume(n),d--,g):null===n||32===n||40===n||hv(n)?i(n):(e.consume(n),92===n?m:g)}function m(t){return 40===t||41===t||92===t?(e.consume(t),g):g(t)}}function hX(e,t,i,a,n,o){let r,s=this,l=0;return function(t){return e.enter(a),e.enter(n),e.consume(t),e.exit(n),e.enter(o),c};function c(u){return l>999||null===u||91===u||93===u&&!r||94===u&&!l&&"_hiddenFootnoteSupport"in s.parser.constructs?i(u):93===u?(e.exit(o),e.enter(n),e.consume(u),e.exit(n),e.exit(a),t):hk(u)?(e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),d(u))}function d(t){return null===t||91===t||93===t||hk(t)||l++>999?(e.exit("chunkString"),c(t)):(e.consume(t),r||(r=!hS(t)),92===t?u:d)}function u(t){return 91===t||92===t||93===t?(e.consume(t),l++,d):d(t)}}function hJ(e,t,i,a,n,o){let r;return function(t){return 34===t||39===t||40===t?(e.enter(a),e.enter(n),e.consume(t),e.exit(n),r=40===t?41:t,s):i(t)};function s(i){return i===r?(e.enter(n),e.consume(i),e.exit(n),e.exit(a),t):(e.enter(o),l(i))}function l(t){return t===r?(e.exit(o),s(r)):null===t?i(t):hk(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),hD(e,l,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(t))}function c(t){return t===r||null===t||hk(t)?(e.exit("chunkString"),l(t)):(e.consume(t),92===t?d:c)}function d(t){return t===r||92===t?(e.consume(t),c):c(t)}}function h1(e,t){let i;return function a(n){return hk(n)?(e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),i=!0,a):hS(n)?hD(e,a,i?"linePrefix":"lineSuffix")(n):t(n)}}function h0(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}let h2={partial:!0,tokenize:function(e,t,i){return function(t){return hE(t)?h1(e,a)(t):i(t)};function a(t){return hJ(e,n,i,"definitionTitle","definitionTitleMarker","definitionTitleString")(t)}function n(t){return hS(t)?hD(e,o,"whitespace")(t):o(t)}function o(e){return null===e||hk(e)?t(e):i(e)}}},h3={name:"codeIndented",tokenize:function(e,t,i){return function(t){return e.enter("codeIndented"),hA(e,function t(i){return null===i?a(i):hk(i)?e.attempt(h4,t,a)(i):(e.enter("codeFlowValue"),function i(a){return null===a||hk(a)?(e.exit("codeFlowValue"),t(a)):(e.consume(a),i)}(i))},i,"linePrefix",4,4)(t)};function a(i){return e.exit("codeIndented"),t(i)}}},h4={partial:!0,tokenize:function(e,t,i){let a=this;return n;function n(r){return a.parser.lazy[a.now().line]?i(r):hk(r)?(e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),n):hA(e,t,o,"linePrefix",4,4)(r)}function o(e){return hk(e)?n(e):i(e)}}},h6={name:"setextUnderline",resolveTo:function(e,t){let i,a,n,o=new hO,r=e.length;for(;r--;)if("enter"===e[r][0]){if("content"===e[r][1].type){i=r;break}"paragraph"===e[r][1].type&&(a=r)}else"content"===e[r][1].type&&o.add(r,1,[]),n||"definition"!==e[r][1].type||(n=r);let s={type:"setextHeading",start:{...e[i][1].start},end:{...e[e.length-1][1].end}};return e[a][1].type="setextHeadingText",n?(o.add(a,0,[["enter",s,t]]),o.add(n+1,0,[["exit",e[i][1],t]]),e[i][1].end={...e[n][1].end}):e[i][1]=s,o.add(e.length,0,[["exit",s,t]]),o.consume(e),e},tokenize:function(e,t,i){let a,n=this;return function(t){var r;let s,l=n.events.length;for(;l--;)if("lineEnding"!==n.events[l][1].type&&"linePrefix"!==n.events[l][1].type&&"content"!==n.events[l][1].type){s="paragraph"===n.events[l][1].type;break}return!n.parser.lazy[n.now().line]&&(n.interrupt||s)?(e.enter("setextHeadingLine"),a=t,r=t,e.enter("setextHeadingLineSequence"),function t(i){return i===a?(e.consume(i),t):(e.exit("setextHeadingLineSequence"),hS(i)?hD(e,o,"lineSuffix")(i):o(i))}(r)):i(t)};function o(a){return null===a||hk(a)?(e.exit("setextHeadingLine"),t(a)):i(a)}}},h5=["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"],h8=["pre","script","style","textarea"],h7={partial:!0,tokenize:function(e,t,i){let a=this;return function(t){return null===t?i(t):(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),n)};function n(e){return a.parser.lazy[a.now().line]?i(e):t(e)}}},h9={partial:!0,tokenize:function(e,t,i){return function(a){return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),e.attempt(hN,t,i)}}},ge={concrete:!0,name:"codeFenced",tokenize:function(e,t,i){let a,n=this,o={partial:!0,tokenize:function(e,t,i){let o=0;return function(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),r};function r(t){return e.enter("codeFencedFence"),hS(t)?hD(e,l,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):l(t)}function l(t){return t===a?(e.enter("codeFencedFenceSequence"),function t(n){return n===a?(o++,e.consume(n),t):o>=s?(e.exit("codeFencedFenceSequence"),hS(n)?hD(e,c,"whitespace")(n):c(n)):i(n)}(t)):i(t)}function c(a){return null===a||hk(a)?(e.exit("codeFencedFence"),t(a)):i(a)}}},r=0,s=0;return function(t){var o;let c;return o=t,r=(c=n.events[n.events.length-1])&&"linePrefix"===c[1].type?c[2].sliceSerialize(c[1],!0).length:0,a=o,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),function t(n){return n===a?(s++,e.consume(n),t):s<3?i(n):(e.exit("codeFencedFenceSequence"),hS(n)?hD(e,l,"whitespace")(n):l(n))}(o)};function l(o){return null===o||hk(o)?(e.exit("codeFencedFence"),n.interrupt?t(o):e.check(h7,d,g)(o)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),function t(n){return null===n||hk(n)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),l(n)):hS(n)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),hD(e,c,"whitespace")(n)):96===n&&n===a?i(n):(e.consume(n),t)}(o))}function c(t){return null===t||hk(t)?l(t):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),function t(n){return null===n||hk(n)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),l(n)):96===n&&n===a?i(n):(e.consume(n),t)}(t))}function d(t){return e.attempt(o,g,u)(t)}function u(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),p}function p(t){return r>0&&hS(t)?hD(e,h,"linePrefix",r+1)(t):h(t)}function h(t){return null===t||hk(t)?e.check(h7,d,g)(t):(e.enter("codeFlowValue"),function t(i){return null===i||hk(i)?(e.exit("codeFlowValue"),h(i)):(e.consume(i),t)}(t))}function g(i){return e.exit("codeFenced"),t(i)}}},gt=document.createElement("i");function gi(e){let t="&"+e+";";gt.innerHTML=t;let i=gt.textContent;return(59!==i.charCodeAt(i.length-1)||"semi"===e)&&i!==t&&i}let ga={name:"characterReference",tokenize:function(e,t,i){let a,n,o=this,r=0;return function(t){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(t),e.exit("characterReferenceMarker"),s};function s(t){return 35===t?(e.enter("characterReferenceMarkerNumeric"),e.consume(t),e.exit("characterReferenceMarkerNumeric"),l):(e.enter("characterReferenceValue"),a=31,n=hy,c(t))}function l(t){return 88===t||120===t?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(t),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),a=6,n=hw,c):(e.enter("characterReferenceValue"),a=7,n=h_,c(t))}function c(s){if(59===s&&r){let a=e.exit("characterReferenceValue");return n!==hy||gi(o.sliceSerialize(a))?(e.enter("characterReferenceMarker"),e.consume(s),e.exit("characterReferenceMarker"),e.exit("characterReference"),t):i(s)}return n(s)&&r++<a?(e.consume(s),c):i(s)}}},gn={name:"characterEscape",tokenize:function(e,t,i){return function(t){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(t),e.exit("escapeMarker"),a};function a(a){return hx(a)?(e.enter("characterEscapeValue"),e.consume(a),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):i(a)}}},go={name:"lineEnding",tokenize:function(e,t){return function(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),hD(e,t,"linePrefix")}}};function gr(e,t,i){let a=[],n=-1;for(;++n<e.length;){let o=e[n].resolveAll;o&&!a.includes(o)&&(t=o(t,i),a.push(o))}return t}let gs={name:"labelEnd",resolveAll:function(e){let t=-1,i=[];for(;++t<e.length;){let a=e[t][1];if(i.push(e[t]),"labelImage"===a.type||"labelLink"===a.type||"labelEnd"===a.type){let e="labelImage"===a.type?4:2;a.type="data",t+=e}}return e.length!==i.length&&hc(e,0,e.length,i),e},resolveTo:function(e,t){let i,a,n,o=e.length,r=0;for(;o--;){let t=e[o][1];if(i){if("link"===t.type||"labelLink"===t.type&&t._inactive)break;"enter"===e[o][0]&&"labelLink"===t.type&&(t._inactive=!0)}else if(a){if("enter"===e[o][0]&&("labelImage"===t.type||"labelLink"===t.type)&&!t._balanced&&(i=o,"labelLink"!==t.type)){r=2;break}}else"labelEnd"===t.type&&(a=o)}let s={type:"labelLink"===e[i][1].type?"link":"image",start:{...e[i][1].start},end:{...e[e.length-1][1].end}},l={type:"label",start:{...e[i][1].start},end:{...e[a][1].end}},c={type:"labelText",start:{...e[i+r+2][1].end},end:{...e[a-2][1].start}};return n=hd(n=[["enter",s,t],["enter",l,t]],e.slice(i+1,i+r+3)),n=hd(n,[["enter",c,t]]),n=hd(n,gr(t.parser.constructs.insideSpan.null,e.slice(i+r+4,a-3),t)),n=hd(n,[["exit",c,t],e[a-2],e[a-1],["exit",l,t]]),n=hd(n,e.slice(a+1)),n=hd(n,[["exit",s,t]]),hc(e,i,e.length,n),e},tokenize:function(e,t,i){let a,n,o=this,r=o._labelStarts;if(r){for(;r.length>0&&r[r.length-1]._balanced;)r.pop();a=r[r.length-1]}return function(t){return a?a._inactive?d(t):(n=o.parser.defined.includes(h0(o.sliceSerialize({start:a.end,end:o.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelEnd"),s):i(t)};function s(t){return 40===t?e.attempt(gl,c,n?c:d)(t):91===t?e.attempt(gc,c,n?l:d)(t):n?c(t):d(t)}function l(t){return e.attempt(gd,c,d)(t)}function c(e){return r.pop(),t(e)}function d(e){return a._balanced=!0,i(e)}}},gl={tokenize:function(e,t,i){return function(t){return e.enter("resource"),e.enter("resourceMarker"),e.consume(t),e.exit("resourceMarker"),a};function a(t){return hE(t)?h1(e,n)(t):n(t)}function n(t){return 41===t?c(t):hQ(e,o,r,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(t)}function o(t){return hE(t)?h1(e,s)(t):c(t)}function r(e){return i(e)}function s(t){return 34===t||39===t||40===t?hJ(e,l,i,"resourceTitle","resourceTitleMarker","resourceTitleString")(t):c(t)}function l(t){return hE(t)?h1(e,c)(t):c(t)}function c(a){return 41===a?(e.enter("resourceMarker"),e.consume(a),e.exit("resourceMarker"),e.exit("resource"),t):i(a)}}},gc={tokenize:function(e,t,i){let a=this;return function(t){return hX.call(a,e,n,o,"reference","referenceMarker","referenceString")(t)};function n(e){return a.parser.defined.includes(h0(a.sliceSerialize(a.events[a.events.length-1][1]).slice(1,-1)))?t(e):i(e)}function o(e){return i(e)}}},gd={tokenize:function(e,t,i){return function(t){return e.enter("reference"),e.enter("referenceMarker"),e.consume(t),e.exit("referenceMarker"),a};function a(a){return 93===a?(e.enter("referenceMarker"),e.consume(a),e.exit("referenceMarker"),e.exit("reference"),t):i(a)}}},gu={name:"labelStartImage",resolveAll:gs.resolveAll,tokenize:function(e,t,i){let a,n=this;return function(t){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(t),e.exit("labelImageMarker"),o};function o(t){return 91===t?(e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),a=e.exit("labelImage"),r):i(t)}function r(e){return 94===e&&"_hiddenFootnoteSupport"in n.parser.constructs?i(e):(n._labelStarts=n._labelStarts||[],n._labelStarts.push(a),t(e))}}};function gp(e){return null===e||hE(e)||hT(e)?1:hC(e)?2:void 0}let gh={name:"attention",resolveAll:function(e,t){let i,a=-1;for(;++a<e.length;)if("enter"===e[a][0]&&"attentionSequence"===e[a][1].type&&e[a][1]._close){let n=a;for(;n--;)if("exit"===e[n][0]&&"attentionSequence"===e[n][1].type&&e[n][1]._open&&t.sliceSerialize(e[n][1]).charCodeAt(0)===t.sliceSerialize(e[a][1]).charCodeAt(0)){if((e[n][1]._close||e[a][1]._open)&&(e[a][1].end.offset-e[a][1].start.offset)%3&&!((e[n][1].end.offset-e[n][1].start.offset+e[a][1].end.offset-e[a][1].start.offset)%3))continue;let o=e[n][1].end.offset-e[n][1].start.offset>1&&e[a][1].end.offset-e[a][1].start.offset>1?2:1,r={...e[n][1].end},s={...e[a][1].start};gg(r,-o),gg(s,o);let l={type:o>1?"strongSequence":"emphasisSequence",start:r,end:{...e[n][1].end}},c={type:o>1?"strongSequence":"emphasisSequence",start:{...e[a][1].start},end:s},d={type:o>1?"strongText":"emphasisText",start:{...e[n][1].end},end:{...e[a][1].start}},u={type:o>1?"strong":"emphasis",start:{...l.start},end:{...c.end}};e[n][1].end={...l.start},e[a][1].start={...c.end},i=[],e[n][1].end.offset-e[n][1].start.offset&&(i=hd(i,[["enter",e[n][1],t],["exit",e[n][1],t]])),i=hd(i,[["enter",u,t],["enter",l,t],["exit",l,t],["enter",d,t]]),i=hd(i,gr(t.parser.constructs.insideSpan.null,e.slice(n+1,a),t)),i=hd(i,[["exit",d,t],["enter",c,t],["exit",c,t],["exit",u,t]]);let p=0;e[a][1].end.offset-e[a][1].start.offset&&(p=2,i=hd(i,[["enter",e[a][1],t],["exit",e[a][1],t]])),hc(e,n-1,a-n+3,i),a=n+i.length-p-2;break}}for(a=-1;++a<e.length;)"attentionSequence"===e[a][1].type&&(e[a][1].type="data");return e},tokenize:function(e,t){let i,a=this.parser.constructs.attentionMarkers.null,n=this.previous,o=gp(n);return function(r){return i=r,e.enter("attentionSequence"),function r(s){if(s===i)return e.consume(s),r;let l=e.exit("attentionSequence"),c=gp(s),d=!c||2===c&&o||a.includes(s)&&42!==s&&95!==s,u=!o||2===o&&c||a.includes(n)&&42!==n&&95!==n;return l._open=!!(42===i?d:d&&(o||!u)),l._close=!!(42===i?u:u&&(c||!d)),t(s)}(r)}}};function gg(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}let gm={name:"labelStartLink",resolveAll:gs.resolveAll,tokenize:function(e,t,i){let a,n=this;return function(t){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),a=e.exit("labelLink"),o};function o(e){return 94===e&&"_hiddenFootnoteSupport"in n.parser.constructs?i(e):(n._labelStarts=n._labelStarts||[],n._labelStarts.push(a),t(e))}}},gf={42:hW,43:hW,45:hW,48:hW,49:hW,50:hW,51:hW,52:hW,53:hW,54:hW,55:hW,56:hW,57:hW,62:hY},gy={91:{name:"definition",tokenize:function(e,t,i){let a,n=this;return function(t){var a;return e.enter("definition"),a=t,hX.call(n,e,o,i,"definitionLabel","definitionLabelMarker","definitionLabelString")(a)};function o(t){return(a=h0(n.sliceSerialize(n.events[n.events.length-1][1]).slice(1,-1)),58===t)?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),r):i(t)}function r(t){return hE(t)?h1(e,s)(t):s(t)}function s(t){return hQ(e,l,i,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(t)}function l(t){return e.attempt(h2,c,c)(t)}function c(t){return hS(t)?hD(e,d,"whitespace")(t):d(t)}function d(o){return null===o||hk(o)?(e.exit("definition"),n.parser.defined.push(a),t(o)):i(o)}}}},gb={[-2]:h3,[-1]:h3,32:h3},gv={35:{name:"headingAtx",resolve:function(e,t){let i=e.length-2,a=3;if("whitespace"===e[3][1].type&&(a+=2),i-2>a&&"whitespace"===e[i][1].type&&(i-=2),"atxHeadingSequence"===e[i][1].type&&(a===i-1||i-4>a&&"whitespace"===e[i-2][1].type)&&(i-=a+1===i?2:4),i>a){let n={type:"atxHeadingText",start:e[a][1].start,end:e[i][1].end},o={type:"chunkText",start:e[a][1].start,end:e[i][1].end,contentType:"text"};hc(e,a,i-a+1,[["enter",n,t],["enter",o,t],["exit",o,t],["exit",n,t]])}return e},tokenize:function(e,t,i){let a=0;return function(n){var o;return e.enter("atxHeading"),o=n,e.enter("atxHeadingSequence"),function n(o){return 35===o&&a++<6?(e.consume(o),n):null===o||hE(o)?(e.exit("atxHeadingSequence"),function i(a){return 35===a?(e.enter("atxHeadingSequence"),function t(a){return 35===a?(e.consume(a),t):(e.exit("atxHeadingSequence"),i(a))}(a)):null===a||hk(a)?(e.exit("atxHeading"),t(a)):hS(a)?hD(e,i,"whitespace")(a):(e.enter("atxHeadingText"),function t(a){return null===a||35===a||hE(a)?(e.exit("atxHeadingText"),i(a)):(e.consume(a),t)}(a))}(o)):i(o)}(o)}}},42:hZ,45:[h6,hZ],60:{concrete:!0,name:"htmlFlow",resolveTo:function(e){let t=e.length;for(;t--&&("enter"!==e[t][0]||"htmlFlow"!==e[t][1].type););return t>1&&"linePrefix"===e[t-2][1].type&&(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},tokenize:function(e,t,i){let a,n,o,r,s,l=this;return function(t){var i;return i=t,e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(i),c};function c(r){return 33===r?(e.consume(r),d):47===r?(e.consume(r),n=!0,h):63===r?(e.consume(r),a=3,l.interrupt?t:R):hf(r)?(e.consume(r),o=String.fromCharCode(r),g):i(r)}function d(n){return 45===n?(e.consume(n),a=2,u):91===n?(e.consume(n),a=5,r=0,p):hf(n)?(e.consume(n),a=4,l.interrupt?t:R):i(n)}function u(a){return 45===a?(e.consume(a),l.interrupt?t:R):i(a)}function p(a){let n="CDATA[";return a===n.charCodeAt(r++)?(e.consume(a),r===n.length)?l.interrupt?t:E:p:i(a)}function h(t){return hf(t)?(e.consume(t),o=String.fromCharCode(t),g):i(t)}function g(r){if(null===r||47===r||62===r||hE(r)){let s=47===r,c=o.toLowerCase();return!s&&!n&&h8.includes(c)?(a=1,l.interrupt?t(r):E(r)):h5.includes(o.toLowerCase())?(a=6,s)?(e.consume(r),m):l.interrupt?t(r):E(r):(a=7,l.interrupt&&!l.parser.lazy[l.now().line]?i(r):n?function t(i){return hS(i)?(e.consume(i),t):x(i)}(r):f(r))}return 45===r||hy(r)?(e.consume(r),o+=String.fromCharCode(r),g):i(r)}function m(a){return 62===a?(e.consume(a),l.interrupt?t:E):i(a)}function f(t){return 47===t?(e.consume(t),x):58===t||95===t||hf(t)?(e.consume(t),y):hS(t)?(e.consume(t),f):x(t)}function y(t){return 45===t||46===t||58===t||95===t||hy(t)?(e.consume(t),y):b(t)}function b(t){return 61===t?(e.consume(t),v):hS(t)?(e.consume(t),b):f(t)}function v(t){return null===t||60===t||61===t||62===t||96===t?i(t):34===t||39===t?(e.consume(t),s=t,_):hS(t)?(e.consume(t),v):function t(i){return null===i||34===i||39===i||47===i||60===i||61===i||62===i||96===i||hE(i)?b(i):(e.consume(i),t)}(t)}function _(t){return t===s?(e.consume(t),s=null,w):null===t||hk(t)?i(t):(e.consume(t),_)}function w(e){return 47===e||62===e||hS(e)?f(e):i(e)}function x(t){return 62===t?(e.consume(t),k):i(t)}function k(t){return null===t||hk(t)?E(t):hS(t)?(e.consume(t),k):i(t)}function E(t){return 45===t&&2===a?(e.consume(t),I):60===t&&1===a?(e.consume(t),D):62===t&&4===a?(e.consume(t),M):63===t&&3===a?(e.consume(t),R):93===t&&5===a?(e.consume(t),O):hk(t)&&(6===a||7===a)?(e.exit("htmlFlowData"),e.check(h9,L,S)(t)):null===t||hk(t)?(e.exit("htmlFlowData"),S(t)):(e.consume(t),E)}function S(t){return e.check(h7,C,L)(t)}function C(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),T}function T(t){return null===t||hk(t)?S(t):(e.enter("htmlFlowData"),E(t))}function I(t){return 45===t?(e.consume(t),R):E(t)}function D(t){return 47===t?(e.consume(t),o="",A):E(t)}function A(t){if(62===t){let i=o.toLowerCase();return h8.includes(i)?(e.consume(t),M):E(t)}return hf(t)&&o.length<8?(e.consume(t),o+=String.fromCharCode(t),A):E(t)}function O(t){return 93===t?(e.consume(t),R):E(t)}function R(t){return 62===t?(e.consume(t),M):45===t&&2===a?(e.consume(t),R):E(t)}function M(t){return null===t||hk(t)?(e.exit("htmlFlowData"),L(t)):(e.consume(t),M)}function L(i){return e.exit("htmlFlow"),t(i)}}},61:h6,95:hZ,96:ge,126:ge},g_={38:ga,92:gn},gw={[-5]:go,[-4]:go,[-3]:go,33:gu,38:ga,42:gh,60:[{name:"autolink",tokenize:function(e,t,i){let a=0;return function(t){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(t),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),n};function n(t){return hf(t)?(e.consume(t),o):64===t?i(t):s(t)}function o(t){return 43===t||45===t||46===t||hy(t)?(a=1,function t(i){return 58===i?(e.consume(i),a=0,r):(43===i||45===i||46===i||hy(i))&&a++<32?(e.consume(i),t):(a=0,s(i))}(t)):s(t)}function r(a){return 62===a?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(a),e.exit("autolinkMarker"),e.exit("autolink"),t):null===a||32===a||60===a||hv(a)?i(a):(e.consume(a),r)}function s(t){return 64===t?(e.consume(t),l):hb(t)?(e.consume(t),s):i(t)}function l(n){return hy(n)?function n(o){return 46===o?(e.consume(o),a=0,l):62===o?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(o),e.exit("autolinkMarker"),e.exit("autolink"),t):function t(o){if((45===o||hy(o))&&a++<63){let i=45===o?t:n;return e.consume(o),i}return i(o)}(o)}(n):i(n)}}},{name:"htmlText",tokenize:function(e,t,i){let a,n,o,r=this;return function(t){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(t),s};function s(t){return 33===t?(e.consume(t),l):47===t?(e.consume(t),_):63===t?(e.consume(t),b):hf(t)?(e.consume(t),x):i(t)}function l(t){return 45===t?(e.consume(t),c):91===t?(e.consume(t),n=0,h):hf(t)?(e.consume(t),y):i(t)}function c(t){return 45===t?(e.consume(t),p):i(t)}function d(t){return null===t?i(t):45===t?(e.consume(t),u):hk(t)?(o=d,A(t)):(e.consume(t),d)}function u(t){return 45===t?(e.consume(t),p):d(t)}function p(e){return 62===e?D(e):45===e?u(e):d(e)}function h(t){let a="CDATA[";return t===a.charCodeAt(n++)?(e.consume(t),n===a.length?g:h):i(t)}function g(t){return null===t?i(t):93===t?(e.consume(t),m):hk(t)?(o=g,A(t)):(e.consume(t),g)}function m(t){return 93===t?(e.consume(t),f):g(t)}function f(t){return 62===t?D(t):93===t?(e.consume(t),f):g(t)}function y(t){return null===t||62===t?D(t):hk(t)?(o=y,A(t)):(e.consume(t),y)}function b(t){return null===t?i(t):63===t?(e.consume(t),v):hk(t)?(o=b,A(t)):(e.consume(t),b)}function v(e){return 62===e?D(e):b(e)}function _(t){return hf(t)?(e.consume(t),w):i(t)}function w(t){return 45===t||hy(t)?(e.consume(t),w):function t(i){return hk(i)?(o=t,A(i)):hS(i)?(e.consume(i),t):D(i)}(t)}function x(t){return 45===t||hy(t)?(e.consume(t),x):47===t||62===t||hE(t)?k(t):i(t)}function k(t){return 47===t?(e.consume(t),D):58===t||95===t||hf(t)?(e.consume(t),E):hk(t)?(o=k,A(t)):hS(t)?(e.consume(t),k):D(t)}function E(t){return 45===t||46===t||58===t||95===t||hy(t)?(e.consume(t),E):function t(i){return 61===i?(e.consume(i),S):hk(i)?(o=t,A(i)):hS(i)?(e.consume(i),t):k(i)}(t)}function S(t){return null===t||60===t||61===t||62===t||96===t?i(t):34===t||39===t?(e.consume(t),a=t,C):hk(t)?(o=S,A(t)):hS(t)?(e.consume(t),S):(e.consume(t),T)}function C(t){return t===a?(e.consume(t),a=void 0,I):null===t?i(t):hk(t)?(o=C,A(t)):(e.consume(t),C)}function T(t){return null===t||34===t||39===t||60===t||61===t||96===t?i(t):47===t||62===t||hE(t)?k(t):(e.consume(t),T)}function I(e){return 47===e||62===e||hE(e)?k(e):i(e)}function D(a){return 62===a?(e.consume(a),e.exit("htmlTextData"),e.exit("htmlText"),t):i(a)}function A(t){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),O}function O(t){return hS(t)?hD(e,R,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):R(t)}function R(t){return e.enter("htmlTextData"),o(t)}}}],91:gm,92:[{name:"hardBreakEscape",tokenize:function(e,t,i){return function(t){return e.enter("hardBreakEscape"),e.consume(t),a};function a(a){return hk(a)?(e.exit("hardBreakEscape"),t(a)):i(a)}}},gn],93:gs,95:gh,96:{name:"codeText",previous:function(e){return 96!==e||"characterEscape"===this.events[this.events.length-1][1].type},resolve:function(e){let t,i,a=e.length-4,n=3;if(("lineEnding"===e[3][1].type||"space"===e[n][1].type)&&("lineEnding"===e[a][1].type||"space"===e[a][1].type)){for(t=n;++t<a;)if("codeTextData"===e[t][1].type){e[n][1].type="codeTextPadding",e[a][1].type="codeTextPadding",n+=2,a-=2;break}}for(t=n-1,a++;++t<=a;)void 0===i?t!==a&&"lineEnding"!==e[t][1].type&&(i=t):(t===a||"lineEnding"===e[t][1].type)&&(e[i][1].type="codeTextData",t!==i+2&&(e[i][1].end=e[t-1][1].end,e.splice(i+2,t-i-2),a-=t-i-2,t=i+2),i=void 0);return e},tokenize:function(e,t,i){let a,n,o=0;return function(t){return e.enter("codeText"),e.enter("codeTextSequence"),function t(i){return 96===i?(e.consume(i),o++,t):(e.exit("codeTextSequence"),r(i))}(t)};function r(l){return null===l?i(l):32===l?(e.enter("space"),e.consume(l),e.exit("space"),r):96===l?(n=e.enter("codeTextSequence"),a=0,function i(r){return 96===r?(e.consume(r),a++,i):a===o?(e.exit("codeTextSequence"),e.exit("codeText"),t(r)):(n.type="codeTextData",s(r))}(l)):hk(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),r):(e.enter("codeTextData"),s(l))}function s(t){return null===t||32===t||96===t||hk(t)?(e.exit("codeTextData"),r(t)):(e.consume(t),s)}}}},gx={null:[gh,hF]},gk={null:[42,95]},gE={null:[]},gS=/[\0\t\n\r]/g;function gC(e,t){let i=Number.parseInt(e,t);return i<9||11===i||i>13&&i<32||i>126&&i<160||i>55295&&i<57344||i>64975&&i<65008||(65535&i)==65535||(65535&i)==65534||i>1114111?"�":String.fromCodePoint(i)}let gT=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function gI(e,t,i){if(t)return t;if(35===i.charCodeAt(0)){let e=i.charCodeAt(1),t=120===e||88===e;return gC(i.slice(t?2:1),t?16:10)}return gi(i)||e}let gD={}.hasOwnProperty;function gA(e){return{line:e.line,column:e.column,offset:e.offset}}function g$(e,t){if(e)throw Error("Cannot close `"+e.type+"` ("+pV({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+pV({start:t.start,end:t.end})+") is open");throw Error("Cannot close document, a token (`"+t.type+"`, "+pV({start:t.start,end:t.end})+") is still open")}function gO(e){let t=this;t.parser=function(i){var a,n;let o,r,s,l;return"object"==typeof(a={...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})&&(n=a,a=void 0),(function(e){let t={afterExit:[],beforeEnter:[],transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:n(b),autolinkProtocol:d,autolinkEmail:d,atxHeading:n(m),blockQuote:n(function(){return{type:"blockquote",children:[],position:void 0}}),characterEscape:d,characterReference:d,codeFenced:n(g),codeFencedFenceInfo:o,codeFencedFenceMeta:o,codeIndented:n(g,o),codeText:n(function(){return{type:"inlineCode",value:"",position:void 0}},o),codeTextData:d,data:d,codeFlowValue:d,definition:n(function(){return{type:"definition",identifier:"",label:null,title:null,url:"",position:void 0}}),definitionDestinationString:o,definitionLabelString:o,definitionTitleString:o,emphasis:n(function(){return{type:"emphasis",children:[],position:void 0}}),hardBreakEscape:n(f),hardBreakTrailing:n(f),htmlFlow:n(y,o),htmlFlowData:d,htmlText:n(y,o),htmlTextData:d,image:n(function(){return{type:"image",title:null,url:"",alt:null,position:void 0}}),label:o,link:n(b),listItem:n(function(e){return{type:"listItem",spread:e._spread,checked:null,children:[],position:void 0}}),listItemValue:function(e){this.data.expectingFirstListItemValue&&(this.stack[this.stack.length-2].start=Number.parseInt(this.sliceSerialize(e),10),this.data.expectingFirstListItemValue=void 0)},listOrdered:n(v,function(){this.data.expectingFirstListItemValue=!0}),listUnordered:n(v),paragraph:n(function(){return{type:"paragraph",children:[],position:void 0}}),reference:function(){this.data.referenceType="collapsed"},referenceString:o,resourceDestinationString:o,resourceTitleString:o,setextHeading:n(m),strong:n(function(){return{type:"strong",children:[],position:void 0}}),thematicBreak:n(function(){return{type:"thematicBreak",position:void 0}})},exit:{atxHeading:s(),atxHeadingSequence:function(e){let t=this.stack[this.stack.length-1];t.depth||(t.depth=this.sliceSerialize(e).length)},autolink:s(),autolinkEmail:function(e){u.call(this,e),this.stack[this.stack.length-1].url="mailto:"+this.sliceSerialize(e)},autolinkProtocol:function(e){u.call(this,e),this.stack[this.stack.length-1].url=this.sliceSerialize(e)},blockQuote:s(),characterEscapeValue:u,characterReferenceMarkerHexadecimal:h,characterReferenceMarkerNumeric:h,characterReferenceValue:function(e){let t,i=this.sliceSerialize(e),a=this.data.characterReferenceType;a?(t=gC(i,"characterReferenceMarkerNumeric"===a?10:16),this.data.characterReferenceType=void 0):t=gi(i);let n=this.stack[this.stack.length-1];n.value+=t},characterReference:function(e){this.stack.pop().position.end=gA(e.end)},codeFenced:s(function(){let e=this.resume();this.stack[this.stack.length-1].value=e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}),codeFencedFence:function(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)},codeFencedFenceInfo:function(){let e=this.resume();this.stack[this.stack.length-1].lang=e},codeFencedFenceMeta:function(){let e=this.resume();this.stack[this.stack.length-1].meta=e},codeFlowValue:u,codeIndented:s(function(){let e=this.resume();this.stack[this.stack.length-1].value=e.replace(/(\r?\n|\r)$/g,"")}),codeText:s(function(){let e=this.resume();this.stack[this.stack.length-1].value=e}),codeTextData:u,data:u,definition:s(),definitionDestinationString:function(){let e=this.resume();this.stack[this.stack.length-1].url=e},definitionLabelString:function(e){let t=this.resume(),i=this.stack[this.stack.length-1];i.label=t,i.identifier=h0(this.sliceSerialize(e)).toLowerCase()},definitionTitleString:function(){let e=this.resume();this.stack[this.stack.length-1].title=e},emphasis:s(),hardBreakEscape:s(p),hardBreakTrailing:s(p),htmlFlow:s(function(){let e=this.resume();this.stack[this.stack.length-1].value=e}),htmlFlowData:u,htmlText:s(function(){let e=this.resume();this.stack[this.stack.length-1].value=e}),htmlTextData:u,image:s(function(){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}),label:function(){let e=this.stack[this.stack.length-1],t=this.resume(),i=this.stack[this.stack.length-1];this.data.inReference=!0,"link"===i.type?i.children=e.children:i.alt=t},labelText:function(e){let t=this.sliceSerialize(e),i=this.stack[this.stack.length-2];i.label=t.replace(gT,gI),i.identifier=h0(t).toLowerCase()},lineEnding:function(e){let i=this.stack[this.stack.length-1];if(this.data.atHardBreak){i.children[i.children.length-1].position.end=gA(e.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(i.type)&&(d.call(this,e),u.call(this,e))},link:s(function(){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}),listItem:s(),listOrdered:s(),listUnordered:s(),paragraph:s(),referenceString:function(e){let t=this.resume(),i=this.stack[this.stack.length-1];i.label=t,i.identifier=h0(this.sliceSerialize(e)).toLowerCase(),this.data.referenceType="full"},resourceDestinationString:function(){let e=this.resume();this.stack[this.stack.length-1].url=e},resourceTitleString:function(){let e=this.resume();this.stack[this.stack.length-1].title=e},resource:function(){this.data.inReference=void 0},setextHeading:s(function(){this.data.setextHeadingSlurpLineEnding=void 0}),setextHeadingLineSequence:function(e){this.stack[this.stack.length-1].depth=61===this.sliceSerialize(e).codePointAt(0)?1:2},setextHeadingText:function(){this.data.setextHeadingSlurpLineEnding=!0},strong:s(),thematicBreak:s()}};!function e(t,i){let a=-1;for(;++a<i.length;){let n=i[a];Array.isArray(n)?e(t,n):function(e,t){let i;for(i in t)if(gD.call(t,i))switch(i){case"canContainEols":{let a=t[i];a&&e[i].push(...a);break}case"transforms":{let a=t[i];a&&e[i].push(...a);break}case"afterExit":case"beforeEnter":{let a=t[i];a&&e[i].push(a);break}case"enter":case"exit":{let a=t[i];a&&Object.assign(e[i],a)}}}(t,n)}}(t,(e||{}).mdastExtensions||[]);let i={};return function(e){let n={type:"root",children:[],position:void 0},s={stack:[n],tokenStack:[],config:t,enter:r,exit:l,buffer:o,resume:c,data:i},d=[],u=[],p=-1;for(;++p<e.length;)u.push(e[p]),("listOrdered"===e[p][1].type||"listUnordered"===e[p][1].type)&&("enter"===e[p][0]?d.push(u.length-1):function(e,t){let i,a,n,o,r=e.length-1,s=t-1,l=-1,c=!1,d=[];for(;++s<=r;){let t=e[s];switch(t[1].type){case"listUnordered":case"listOrdered":case"blockQuote":"enter"===t[0]?l++:l--,o=void 0;break;case"lineEndingBlank":"enter"===t[0]&&(!i||o||l||n||(n=s),o=void 0);break;case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:o=void 0}if(!l&&"enter"===t[0]&&"listItemPrefix"===t[1].type||-1===l&&"exit"===t[0]&&("listUnordered"===t[1].type||"listOrdered"===t[1].type)){if(i){let o=s;for(a=void 0;o--;){let t=e[o];if("lineEnding"===t[1].type||"lineEndingBlank"===t[1].type){if("exit"===t[0])continue;a&&(e[a][1].type="lineEndingBlank",c=!0),t[1].type="lineEnding",a=o}else if("linePrefix"===t[1].type||"blockQuotePrefix"===t[1].type||"blockQuotePrefixWhitespace"===t[1].type||"blockQuoteMarker"===t[1].type||"listItemIndent"===t[1].type);else break}n&&(!a||n<a)&&(i._spread=!0),i.end=Object.assign({},a?e[a][1].start:t[1].end),d.push({at:a||s,event:["exit",i,t[2]]})}if("listItemPrefix"===t[1].type){let e={type:"listItem",_spread:!1,start:Object.assign({},t[1].start),end:void 0};i=e,d.push({at:s,event:["enter",e,t[2]]}),n=void 0,o=!0}}}let u=e.splice(t),p=0;for(s=-1;++s<u.length;){for(;p<d.length&&d[p].at===t+s;)e.push(d[p++].event);e.push(u[s])}e[t][1]._spread=c}(u,d.pop()));for(e=u,p=-1;++p<e.length;){let i=t[e[p][0]];"enter"===e[p][0]&&t.beforeEnter.length>0&&a(t.beforeEnter,{...s,sliceSerialize:e[p][2].sliceSerialize},e[p][1]),gD.call(i,e[p][1].type)&&i[e[p][1].type].call({...s,sliceSerialize:e[p][2].sliceSerialize},e[p][1]),"exit"===e[p][0]&&t.afterExit.length>0&&a(t.afterExit,{...s,sliceSerialize:e[p][2].sliceSerialize},e[p][1])}if(s.tokenStack.length>0){let e=s.tokenStack[s.tokenStack.length-1];(e[1]||g$).call(s,void 0,e[0])}for(n.position={start:gA(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:gA(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},p=-1;++p<t.transforms.length;)n=t.transforms[p](n)||n;return n};function a(e,t,i){let a=-1;for(;++a<e.length;)e[a].call(t,i)}function n(e,t){return function(i){r.call(this,e(i),i),t&&t.call(this,i)}}function o(){this.stack.push({type:"fragment",children:[]})}function r(e,t,i){this.stack[this.stack.length-1].children.push(e),this.stack.push(e),this.tokenStack.push([t,i||void 0]),e.position={start:gA(t.start),end:void 0}}function s(e){return function(t){e&&e.call(this,t),l.call(this,t)}}function l(e,t){let i=this.stack.pop(),a=this.tokenStack.pop();if(!a)throw Error("Cannot close `"+e.type+"` ("+pV({start:e.start,end:e.end})+"): it’s not open");a[0].type!==e.type&&(t?t.call(this,e,a[0]):(a[1]||g$).call(this,e,a[0])),i.position.end=gA(e.end)}function c(){return hr(this.stack.pop())}function d(e){let t=this.stack[this.stack.length-1].children,i=t[t.length-1];i&&"text"===i.type||((i={type:"text",value:"",position:void 0}).position={start:gA(e.start),end:void 0},t.push(i)),this.stack.push(i)}function u(e){let t=this.stack.pop();t.value+=this.sliceSerialize(e),t.position.end=gA(e.end)}function p(){this.data.atHardBreak=!0}function h(e){this.data.characterReferenceType=e.type}function g(){return{type:"code",lang:null,meta:null,value:"",position:void 0}}function m(){return{type:"heading",depth:0,children:[],position:void 0}}function f(){return{type:"break",position:void 0}}function y(){return{type:"html",value:"",position:void 0}}function b(){return{type:"link",title:null,url:"",children:[],position:void 0}}function v(e){return{type:"list",ordered:"listOrdered"===e.type,start:null,spread:e._spread,children:[],position:void 0}}})(n)(function(e){for(;!hh(e););return e}((function(e){let t={constructs:hm([ti,...(e||{}).extensions||[]]),content:i(h$),defined:[],document:i(hM),flow:i(hU),lazy:{},string:i(hj),text:i(hB)};return t;function i(e){return function(i){return function(e,t,i){let a={_bufferIndex:-1,_index:0,line:i&&i.line||1,column:i&&i.column||1,offset:i&&i.offset||0},n={},o=[],r=[],s=[],l={attempt:g(function(e,t){m(e,t.from)}),check:g(h),consume:function(e){hk(e)?(a.line++,a.column=1,a.offset+=-3===e?2:1,f()):-1!==e&&(a.column++,a.offset++),a._bufferIndex<0?a._index++:(a._bufferIndex++,a._bufferIndex===r[a._index].length&&(a._bufferIndex=-1,a._index++)),c.previous=e},enter:function(e,t){let i=t||{};return i.type=e,i.start=p(),c.events.push(["enter",i,c]),s.push(i),i},exit:function(e){let t=s.pop();return t.end=p(),c.events.push(["exit",t,c]),t},interrupt:g(h,{interrupt:!0})},c={code:null,containerState:{},defineSkip:function(e){n[e.line]=e.column,f()},events:[],now:p,parser:e,previous:null,sliceSerialize:function(e,t){return function(e,t){let i,a=-1,n=[];for(;++a<e.length;){let o,r=e[a];if("string"==typeof r)o=r;else switch(r){case -5:o=`\r`;break;case -4:o=` `;break;case -3:o=`\r `;break;case -2:o=t?" ":" ";break;case -1:if(!t&&i)continue;o=" ";break;default:o=String.fromCharCode(r)}i=-2===r,n.push(o)}return n.join("")}(u(e),t)},sliceStream:u,write:function(e){return(r=hd(r,e),function(){for(;a._index<r.length;){let t=r[a._index];if("string"==typeof t){let i=a._index;for(a._bufferIndex<0&&(a._bufferIndex=0);a._index===i&&a._bufferIndex<t.length;){var e;e=t.charCodeAt(a._bufferIndex),d=d(e)}}else d=d(t)}}(),null!==r[r.length-1])?[]:(m(t,0),c.events=gr(o,c.events,c),c.events)}},d=t.tokenize.call(c,l);return t.resolveAll&&o.push(t),c;function u(e){return function(e,t){let i,a=t.start._index,n=t.start._bufferIndex,o=t.end._index,r=t.end._bufferIndex;if(a===o)i=[e[a].slice(n,r)];else{if(i=e.slice(a,o),n>-1){let e=i[0];"string"==typeof e?i[0]=e.slice(n):i.shift()}r>0&&i.push(e[o].slice(0,r))}return i}(r,e)}function p(){let{_bufferIndex:e,_index:t,line:i,column:n,offset:o}=a;return{_bufferIndex:e,_index:t,line:i,column:n,offset:o}}function h(e,t){t.restore()}function g(e,t){return function(i,n,o){var r;let d,u,h,g;return Array.isArray(i)?m(i):"tokenize"in i?m([i]):(r=i,function(e){let t=null!==e&&r[e],i=null!==e&&r.null;return m([...Array.isArray(t)?t:t?[t]:[],...Array.isArray(i)?i:i?[i]:[]])(e)});function m(e){return(d=e,u=0,0===e.length)?o:y(e[u])}function y(e){return function(i){let n,o,r,d,u;return(n=p(),o=c.previous,r=c.currentConstruct,d=c.events.length,u=Array.from(s),g={from:d,restore:function(){a=n,c.previous=o,c.currentConstruct=r,c.events.length=d,s=u,f()}},h=e,e.partial||(c.currentConstruct=e),e.name&&c.parser.constructs.disable.null.includes(e.name))?v(i):e.tokenize.call(t?Object.assign(Object.create(c),t):c,l,b,v)(i)}}function b(t){return e(h,g),n}function v(e){return(g.restore(),++u<d.length)?y(d[u]):o}}}function m(e,t){e.resolveAll&&!o.includes(e)&&o.push(e),e.resolve&&hc(c.events,t,c.events.length-t,e.resolve(c.events.slice(t),c)),e.resolveTo&&(c.events=e.resolveTo(c.events,c))}function f(){a.line in n&&a.column<2&&(a.column=n[a.line],a.offset+=n[a.line]-1)}}(t,e,i)}}})(n).document().write((r=1,s="",l=!0,function(e,t,i){e=s+("string"==typeof e?e.toString():new TextDecoder(t||void 0).decode(e));let a=[],n=0;for(s="",l&&(65279===e.charCodeAt(0)&&n++,l=void 0);n<e.length;){gS.lastIndex=n;let t=gS.exec(e),i=t&&void 0!==t.index?t.index:e.length,l=e.charCodeAt(i);if(!t){s=e.slice(n);break}if(10===l&&n===i&&o)a.push(-3),o=void 0;else switch(o&&(a.push(-5),o=void 0),n<i&&(a.push(e.slice(n,i)),r+=i-n),l){case 0:a.push(65533),r++;break;case 9:{let e=4*Math.ceil(r/4);for(a.push(-2);r++<e;)a.push(-1);break}case 10:a.push(-4),r=1;break;default:o=!0,r=1}n=i+1}return i&&(o&&a.push(-5),s&&a.push(s),a.push(null)),a})(i,a,!0))))}}function gR(e,t){let i=String(e);if("string"!=typeof t)throw TypeError("Expected character");let a=0,n=i.indexOf(t);for(;-1!==n;)a++,n=i.indexOf(t,n+t.length);return a}let gM=function(e){var t,i;if(null==e)return gN;if("function"==typeof e)return gL(e);if("object"==typeof e){return Array.isArray(e)?function(e){let t=[],i=-1;for(;++i<e.length;)t[i]=gM(e[i]);return gL(function(...e){let i=-1;for(;++i<t.length;)if(t[i].apply(this,e))return!0;return!1})}(e):(t=e,gL(function(e){let i;for(i in t)if(e[i]!==t[i])return!1;return!0}))}if("string"==typeof e){return i=e,gL(function(e){return e&&e.type===i})}throw Error("Expected function, string, or object as test")};function gL(e){return function(t,i,a){return!!(function(e){return null!==e&&"object"==typeof e&&"type"in e}(t)&&e.call(this,t,"number"==typeof i?i:void 0,a||void 0))}}function gN(){return!0}let gP=[];function gz(e,t,i,a){let n;"function"==typeof t&&"function"!=typeof i?(a=i,i=t):n=t;let o=gM(n),r=a?-1:1;(function e(n,s,l){let c=n&&"object"==typeof n?n:{};if("string"==typeof c.type){let e="string"==typeof c.tagName?c.tagName:"string"==typeof c.name?c.name:void 0;Object.defineProperty(d,"name",{value:"node ("+n.type+(e?"<"+e+">":"")+")"})}return d;function d(){var c;let d,u,p,h=gP;if((!t||o(n,s,l[l.length-1]||void 0))&&!1===(h=Array.isArray(c=i(n,l))?c:"number"==typeof c?[!0,c]:null==c?gP:[c])[0])return h;if("children"in n&&n.children&&n.children&&"skip"!==h[0])for(u=(a?n.children.length:-1)+r,p=l.concat(n);u>-1&&u<n.children.length;){if(!1===(d=e(n.children[u],u,p)())[0])return d;u="number"==typeof d[1]?d[1]:u+r}return h}})(e,void 0,[])()}function gU(e,t,i){let a=gM((i||{}).ignore||[]),n=function(e){if(!Array.isArray(e))throw TypeError("Expected find and replace tuple or list of tuples");let t=[],i=!e[0]||Array.isArray(e[0])?e:[e],a=-1;for(;++a<i.length;){var n;let e=i[a];t.push(["string"==typeof(n=e[0])?RegExp(function(e){if("string"!=typeof e)throw TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}(n),"g"):n,function(e){return"function"==typeof e?e:function(){return e}}(e[1])])}return t}(t),o=-1;for(;++o<n.length;)gz(e,"text",r);function r(e,t){let i,r=-1;for(;++r<t.length;){let e=t[r],n=i?i.children:void 0;if(a(e,n?n.indexOf(e):void 0,i))return;i=e}if(i)return function(e,t){let i=t[t.length-1],a=n[o][0],r=n[o][1],s=0,l=i.children.indexOf(e),c=!1,d=[];a.lastIndex=0;let u=a.exec(e.value);for(;u;){let i=u.index,n={index:u.index,input:u.input,stack:[...t,e]},o=r(...u,n);if("string"==typeof o&&(o=o.length>0?{type:"text",value:o}:void 0),!1===o)a.lastIndex=i+1;else{if(s!==i&&p({type:"text",value:e.value.slice(s,i)}),Array.isArray(o))for(let e of o)p(e);else o&&p(o);s=i+u[0].length,c=!0}if(!a.global)break;u=a.exec(e.value)}return c?(s<e.value.length&&p({type:"text",value:e.value.slice(s)}),i.children.splice(l,1,...d)):d=[e],l+d.length;function p(e){let t=d[d.length-1];t&&"text"===t.type&&"text"===e.type?t.value+=e.value:d.push(e)}}(e,t)}}let gF="phrasing",gj=["autolink","link","image","label"];function gB(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function gH(e){this.config.enter.autolinkProtocol.call(this,e)}function gV(e){this.config.exit.autolinkProtocol.call(this,e)}function gq(e){this.config.exit.data.call(this,e);let t=this.stack[this.stack.length-1];t.type,t.url="http://"+this.sliceSerialize(e)}function gZ(e){this.config.exit.autolinkEmail.call(this,e)}function gW(e){this.exit(e)}function gG(e){gU(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,gK],[/(?<=^|\s|\p{P}|\p{S})([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/gu,gY]],{ignore:["link","linkReference"]})}function gK(e,t,i,a,n){let o,r="";if(!gQ(n))return!1;if(/^w/i.test(t)&&(i=t+i,t="",r="http://"),(o=i.split(".")).length<2||o[o.length-1]&&(/_/.test(o[o.length-1])||!/[a-zA-Z\d]/.test(o[o.length-1]))||o[o.length-2]&&(/_/.test(o[o.length-2])||!/[a-zA-Z\d]/.test(o[o.length-2])))return!1;let s=function(e){let t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let i=t[0],a=i.indexOf(")"),n=gR(e,"("),o=gR(e,")");for(;-1!==a&&n>o;)e+=i.slice(0,a+1),a=(i=i.slice(a+1)).indexOf(")"),o++;return[e,i]}(i+a);if(!s[0])return!1;let l={type:"link",title:null,url:r+t+s[0],children:[{type:"text",value:t+s[0]}]};return s[1]?[l,{type:"text",value:s[1]}]:l}function gY(e,t,i,a){return!(!gQ(a,!0)||/[-\d_]$/.test(i))&&{type:"link",title:null,url:"mailto:"+t+"@"+i,children:[{type:"text",value:t+"@"+i}]}}function gQ(e,t){let i=e.input.charCodeAt(e.index-1);return(0===e.index||hT(i)||hC(i))&&(!t||47!==i)}function gX(){this.buffer()}function gJ(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function g1(){this.buffer()}function g0(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function g2(e){let t=this.resume(),i=this.stack[this.stack.length-1];i.type,i.identifier=h0(this.sliceSerialize(e)).toLowerCase(),i.label=t}function g3(e){this.exit(e)}function g4(e){let t=this.resume(),i=this.stack[this.stack.length-1];i.type,i.identifier=h0(this.sliceSerialize(e)).toLowerCase(),i.label=t}function g6(e){this.exit(e)}function g5(e,t,i,a){let n=i.createTracker(a),o=n.move("[^"),r=i.enter("footnoteReference"),s=i.enter("reference");return o+=n.move(i.safe(i.associationId(e),{after:"]",before:o})),s(),r(),o+=n.move("]")}function g8(e,t,i){return 0===t?e:g7(e,t,i)}function g7(e,t,i){return(i?"":" ")+e}g5.peek=function(){return"["};let g9=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];function me(e){this.enter({type:"delete",children:[],position:void 0},e)}function mt(e){this.exit(e)}function mi(e,t,i,a){let n=i.createTracker(a),o=i.stack.includes("strikethrough")?"~":"~~",r=i.enter("strikethrough"),s=n.move(o);return s+=i.containerPhrasing(e,{...n.current(),before:s,after:"~"}),s+=n.move(o),r(),s}function ma(e){return e.length}function mn(e){let t="string"==typeof e?e.codePointAt(0):0;return 67===t||99===t?99:76===t||108===t?108:114*(82===t||114===t)}mi.attention=function(){return{construct:"strikethrough",markers:["~"],sizes:[2,1]}},mi.peek=function(){return"~"};function mo(e,t,i,a){let n=i.enter("phrasing"),o=i.containerPhrasing({type:"root",children:[e]},a);return n(),o}function mr(e,t,i,a){let n,o,r;"function"==typeof t&&"function"!=typeof i?(o=void 0,r=t,n=i):(o=t,r=i,n=a),gz(e,o,function(e,t){let i=t[t.length-1],a=i?i.children.indexOf(e):void 0;return r(e,a,i)},n)}mo.attention=function(e,t){return{construct:"emphasis",markers:"*"===function(e){let t=e.options.emphasis||"*";if("*"!==t&&"_"!==t)throw Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}(t)?["*","_"]:["_","*"],sizes:[1]}},mo.peek=function(e,t,i){return i.options.emphasis||"*"};function ms(e,t,i){let a=e.value||"",n="`",o=-1;for(;RegExp("(^|[^`])"+n+"([^`]|$)").test(a);)n+="`";for(/[^\n\r ]/.test(a)&&(/^[\n\r ]/.test(a)&&/[\n\r ]$/.test(a)||/^`|`$/.test(a))&&(a=" "+a+" ");++o<i.unsafe.length;){let e,t=i.unsafe[o],n=i.compilePattern(t);if(t.atBreak)for(;e=n.exec(a);){let t=e.index;10===a.charCodeAt(t)&&13===a.charCodeAt(t-1)&&t--,a=a.slice(0,t)+" "+a.slice(e.index+1)}}return n+a+n}ms.peek=function(){return"`"};function ml(e,t,i,a){let n=i.enter("phrasing"),o=i.containerPhrasing({type:"root",children:[e]},a);return n(),o}gM(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]),ml.attention=function(e,t){return{construct:"strong",markers:"*"===function(e){let t=e.options.strong||"*";if("*"!==t&&"_"!==t)throw Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}(t)?["*","_"]:["_","*"],sizes:[2]}},ml.peek=function(e,t,i){return i.options.strong||"*"};let mc=function(e,t,i,a){let n=function(e){let t=e.options.listItemIndent||"one";if("tab"!==t&&"one"!==t&&"mixed"!==t)throw Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}(i),o=i.bulletCurrent||function(e){let t=e.options.bullet||"*";if("*"!==t&&"+"!==t&&"-"!==t)throw Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}(i);t&&"list"===t.type&&t.ordered&&(o=("number"==typeof t.start&&t.start>-1?t.start:1)+(!1===i.options.incrementListMarker?0:t.children.indexOf(e))+o);let r=o.length+1;("tab"===n||"mixed"===n&&(t&&"list"===t.type&&t.spread||e.spread))&&(r=4*Math.ceil(r/4));let s=i.createTracker(a);s.move(o+" ".repeat(r-o.length)),s.shift(r);let l=i.enter("listItem"),c=i.indentLines(i.containerFlow(e,s.current()),function(e,t,i){return t?(i?"":" ".repeat(r))+e:(i?o:o+" ".repeat(r-o.length))+e});return l(),c};function md(e){let t=e._align;this.enter({type:"table",align:t.map(function(e){return"none"===e?null:e}),children:[]},e),this.data.inTable=!0}function mu(e){this.exit(e),this.data.inTable=void 0}function mp(e){this.enter({type:"tableRow",children:[]},e)}function mh(e){this.exit(e)}function mg(e){this.enter({type:"tableCell",children:[]},e)}function mm(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,mf));let i=this.stack[this.stack.length-1];i.type,i.value=t,this.exit(e)}function mf(e,t){return"|"===t?t:e}function my(e){let t=this.stack[this.stack.length-2];t.type,t.checked="taskListCheckValueChecked"===e.type}function mb(e){let t=this.stack[this.stack.length-2];if(t&&"listItem"===t.type&&"boolean"==typeof t.checked){let e=this.stack[this.stack.length-1];e.type;let i=e.children[0];if(i&&"text"===i.type){let a,n=t.children,o=-1;for(;++o<n.length;){let e=n[o];if("paragraph"===e.type){a=e;break}}a===e&&(i.value=i.value.slice(1),0===i.value.length?e.children.shift():e.position&&i.position&&"number"==typeof i.position.start.offset&&(i.position.start.column++,i.position.start.offset++,e.position.start=Object.assign({},i.position.start)))}}this.exit(e)}function mv(e,t,i,a){let n=e.children[0],o="boolean"==typeof e.checked&&n&&"paragraph"===n.type,r="["+(e.checked?"x":" ")+"] ",s=i.createTracker(a);o&&s.move(r);let l=mc(e,t,i,{...a,...s.current()});return o&&(l=l.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,function(e){return e+r})),l}let m_={tokenize:function(e,t,i){let a=0;return function t(o){return(87===o||119===o)&&a<3?(a++,e.consume(o),t):46===o&&3===a?(e.consume(o),n):i(o)};function n(e){return null===e?i(e):t(e)}},partial:!0},mw={tokenize:function(e,t,i){let a,n,o;return r;function r(t){return 46===t||95===t?e.check(mk,l,s)(t):null===t||hE(t)||hT(t)||45!==t&&hC(t)?l(t):(o=!0,e.consume(t),r)}function s(t){return 95===t?a=!0:(n=a,a=void 0),e.consume(t),r}function l(e){return n||a||!o?i(e):t(e)}},partial:!0},mx={tokenize:function(e,t){let i=0,a=0;return n;function n(r){return 40===r?(i++,e.consume(r),n):41===r&&a<i?o(r):33===r||34===r||38===r||39===r||41===r||42===r||44===r||46===r||58===r||59===r||60===r||63===r||93===r||95===r||126===r?e.check(mk,t,o)(r):null===r||hE(r)||hT(r)?t(r):(e.consume(r),n)}function o(t){return 41===t&&a++,e.consume(t),n}},partial:!0},mk={tokenize:function(e,t,i){return a;function a(r){return 33===r||34===r||39===r||41===r||42===r||44===r||46===r||58===r||59===r||63===r||95===r||126===r?(e.consume(r),a):38===r?(e.consume(r),o):93===r?(e.consume(r),n):60===r||null===r||hE(r)||hT(r)?t(r):i(r)}function n(e){return null===e||40===e||91===e||hE(e)||hT(e)?t(e):a(e)}function o(t){return hf(t)?function t(n){return 59===n?(e.consume(n),a):hf(n)?(e.consume(n),t):i(n)}(t):i(t)}},partial:!0},mE={tokenize:function(e,t,i){return function(t){return e.consume(t),a};function a(e){return hy(e)?i(e):t(e)}},partial:!0},mS={name:"wwwAutolink",tokenize:function(e,t,i){let a=this;return function(t){return 87!==t&&119!==t||!mA.call(a,a.previous)||mM(a.events)?i(t):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(m_,e.attempt(mw,e.attempt(mx,n),i),i)(t))};function n(i){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(i)}},previous:mA},mC={name:"protocolAutolink",tokenize:function(e,t,i){let a=this,n="",o=!1;return function(t){return(72===t||104===t)&&m$.call(a,a.previous)&&!mM(a.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),n+=String.fromCodePoint(t),e.consume(t),r):i(t)};function r(t){if(hf(t)&&n.length<5)return n+=String.fromCodePoint(t),e.consume(t),r;if(58===t){let i=n.toLowerCase();if("http"===i||"https"===i)return e.consume(t),s}return i(t)}function s(t){return 47===t?(e.consume(t),o)?l:(o=!0,s):i(t)}function l(t){return null===t||hv(t)||hE(t)||hT(t)||hC(t)?i(t):e.attempt(mw,e.attempt(mx,c),i)(t)}function c(i){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(i)}},previous:m$},mT={name:"emailAutolink",tokenize:function(e,t,i){let a,n,o=this;return function(t){return!mR(t)||!mO.call(o,o.previous)||mM(o.events)?i(t):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),function t(a){return mR(a)?(e.consume(a),t):64===a?(e.consume(a),r):i(a)}(t))};function r(t){return 46===t?e.check(mE,l,s)(t):45===t||95===t||hy(t)?(n=!0,e.consume(t),r):l(t)}function s(t){return e.consume(t),a=!0,r}function l(r){return n&&a&&hf(o.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(r)):i(r)}},previous:mO},mI={},mD=48;for(;mD<123;)mI[mD]=mT,58==++mD?mD=65:91===mD&&(mD=97);function mA(e){return null===e||40===e||42===e||95===e||91===e||93===e||126===e||hE(e)}function m$(e){return!hf(e)}function mO(e){return!(47===e||mR(e))}function mR(e){return 43===e||45===e||46===e||95===e||hy(e)}function mM(e){let t=e.length,i=!1;for(;t--;){let a=e[t][1];if(("labelLink"===a.type||"labelImage"===a.type)&&!a._balanced){i=!0;break}if(a._gfmAutolinkLiteralWalkedInto){i=!1;break}}return e.length>0&&!i&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),i}mI[43]=mT,mI[45]=mT,mI[46]=mT,mI[95]=mT,mI[72]=[mT,mC],mI[104]=[mT,mC],mI[87]=[mT,mS],mI[119]=[mT,mS];let mL={tokenize:function(e,t,i){let a=this;return hD(e,function(e){let n=a.events[a.events.length-1];return n&&"gfmFootnoteDefinitionIndent"===n[1].type&&4===n[2].sliceSerialize(n[1],!0).length?t(e):i(e)},"gfmFootnoteDefinitionIndent",5)},partial:!0};function mN(e,t,i){let a,n=this,o=n.events.length,r=n.parser.gfmFootnotes||(n.parser.gfmFootnotes=[]);for(;o--;){let e=n.events[o][1];if("labelImage"===e.type){a=e;break}if("gfmFootnoteCall"===e.type||"labelLink"===e.type||"label"===e.type||"image"===e.type||"link"===e.type)break}return function(o){if(!a||!a._balanced)return i(o);let s=h0(n.sliceSerialize({start:a.end,end:n.now()}));return 94===s.codePointAt(0)&&r.includes(s.slice(1))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(o),e.exit("gfmFootnoteCallLabelMarker"),t(o)):i(o)}}function mP(e,t){let i=e.length;for(;i--;)if("labelImage"===e[i][1].type&&"enter"===e[i][0]){e[i][1];break}e[i+1][1].type="data",e[i+3][1].type="gfmFootnoteCallLabelMarker";let a={type:"gfmFootnoteCall",start:Object.assign({},e[i+3][1].start),end:Object.assign({},e[e.length-1][1].end)},n={type:"gfmFootnoteCallMarker",start:Object.assign({},e[i+3][1].end),end:Object.assign({},e[i+3][1].end)};n.end.column++,n.end.offset++,n.end._bufferIndex++;let o={type:"gfmFootnoteCallString",start:Object.assign({},n.end),end:Object.assign({},e[e.length-1][1].start)},r={type:"chunkString",contentType:"string",start:Object.assign({},o.start),end:Object.assign({},o.end)},s=[e[i+1],e[i+2],["enter",a,t],e[i+3],e[i+4],["enter",n,t],["exit",n,t],["enter",o,t],["enter",r,t],["exit",r,t],["exit",o,t],e[e.length-2],e[e.length-1],["exit",a,t]];return e.splice(i,e.length-i+1,...s),e}function mz(e,t,i){let a,n=this,o=n.parser.gfmFootnotes||(n.parser.gfmFootnotes=[]),r=0;return function(t){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(t),e.exit("gfmFootnoteCallLabelMarker"),s};function s(t){return 94!==t?i(t):(e.enter("gfmFootnoteCallMarker"),e.consume(t),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",l)}function l(s){if(r>999||93===s&&!a||null===s||91===s||hE(s))return i(s);if(93===s){e.exit("chunkString");let a=e.exit("gfmFootnoteCallString");return o.includes(h0(n.sliceSerialize(a)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(s),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):i(s)}return hE(s)||(a=!0),r++,e.consume(s),92===s?c:l}function c(t){return 91===t||92===t||93===t?(e.consume(t),r++,l):l(t)}}function mU(e,t,i){let a,n,o=this,r=o.parser.gfmFootnotes||(o.parser.gfmFootnotes=[]),s=0;return function(t){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),l};function l(t){return 94===t?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",c):i(t)}function c(t){if(s>999||93===t&&!n||null===t||91===t||hE(t))return i(t);if(93===t){e.exit("chunkString");let i=e.exit("gfmFootnoteDefinitionLabelString");return a=h0(o.sliceSerialize(i)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),u}return hE(t)||(n=!0),s++,e.consume(t),92===t?d:c}function d(t){return 91===t||92===t||93===t?(e.consume(t),s++,c):c(t)}function u(t){return 58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),r.includes(a)||r.push(a),hD(e,p,"gfmFootnoteDefinitionWhitespace")):i(t)}function p(e){return t(e)}}function mF(e,t,i){return e.check(hN,t,e.attempt(mL,t,i))}function mj(e){e.exit("gfmFootnoteDefinition")}class mB{constructor(){this.map=[],this.index=new Map}add(e,t,i){!function(e,t,i,a){if(0===i&&0===a.length)return;let n=e.index.get(t);if(n){n[1]+=i,n[2].push(...a);return}let o=[t,i,a];e.map.push(o),e.index.set(t,o)}(this,e,t,i)}consume(e){if(this.map.sort(function(e,t){return e[0]-t[0]}),0===this.map.length)return;let t=this.map.length,i=[];for(;t>0;)t-=1,i.push(e.slice(this.map[t][0]+this.map[t][1]),this.map[t][2]),e.length=this.map[t][0];i.push(e.slice()),e.length=0;let a=i.pop();for(;a;){for(let t of a)e.push(t);a=i.pop()}this.map.length=0,this.index.clear()}}function mH(e,t,i){let a,n=this,o=0,r=0;return function(e){let t=n.events.length-1;for(;t>-1;){let{type:e}=n.events[t][1];if("lineEnding"===e||"linePrefix"===e)t--;else break}let a=t>-1?n.events[t][1].type:null,o="tableHead"===a||"tableRow"===a?b:s;return o===b&&n.parser.lazy[n.now().line]?i(e):o(e)};function s(t){var i;return e.enter("tableHead"),e.enter("tableRow"),124===(i=t)||(a=!0,r+=1),l(i)}function l(t){return null===t?i(t):hk(t)?r>1?(r=0,n.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),u):i(t):hS(t)?hD(e,l,"whitespace")(t):(r+=1,a&&(a=!1,o+=1),124===t)?(e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),a=!0,l):(e.enter("data"),c(t))}function c(t){return null===t||124===t||hE(t)?(e.exit("data"),l(t)):(e.consume(t),92===t?d:c)}function d(t){return 92===t||124===t?(e.consume(t),c):c(t)}function u(t){return(n.interrupt=!1,n.parser.lazy[n.now().line])?i(t):(e.enter("tableDelimiterRow"),a=!1,hS(t))?hD(e,p,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):p(t)}function p(t){return 45===t||58===t?g(t):124===t?(a=!0,e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),h):i(t)}function h(t){return hS(t)?hD(e,g,"whitespace")(t):g(t)}function g(t){return 58===t?(r+=1,a=!0,e.enter("tableDelimiterMarker"),e.consume(t),e.exit("tableDelimiterMarker"),m):45===t?(r+=1,m(t)):null===t||hk(t)?y(t):i(t)}function m(t){return 45===t?(e.enter("tableDelimiterFiller"),function t(i){return 45===i?(e.consume(i),t):58===i?(a=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(i),e.exit("tableDelimiterMarker"),f):(e.exit("tableDelimiterFiller"),f(i))}(t)):i(t)}function f(t){return hS(t)?hD(e,y,"whitespace")(t):y(t)}function y(n){if(124===n)return p(n);if(null===n||hk(n))return a&&o===r?(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(n)):i(n);return i(n)}function b(t){return e.enter("tableRow"),v(t)}function v(i){return 124===i?(e.enter("tableCellDivider"),e.consume(i),e.exit("tableCellDivider"),v):null===i||hk(i)?(e.exit("tableRow"),t(i)):hS(i)?hD(e,v,"whitespace")(i):(e.enter("data"),_(i))}function _(t){return null===t||124===t||hE(t)?(e.exit("data"),v(t)):(e.consume(t),92===t?w:_)}function w(t){return 92===t||124===t?(e.consume(t),_):_(t)}}function mV(e,t){let i,a,n,o=-1,r=!0,s=0,l=[0,0,0,0],c=[0,0,0,0],d=!1,u=0,p=new mB;for(;++o<e.length;){let h=e[o],g=h[1];"enter"===h[0]?"tableHead"===g.type?(d=!1,0!==u&&(mZ(p,t,u,i,a),a=void 0,u=0),i={type:"table",start:Object.assign({},g.start),end:Object.assign({},g.end)},p.add(o,0,[["enter",i,t]])):"tableRow"===g.type||"tableDelimiterRow"===g.type?(r=!0,n=void 0,l=[0,0,0,0],c=[0,o+1,0,0],d&&(d=!1,a={type:"tableBody",start:Object.assign({},g.start),end:Object.assign({},g.end)},p.add(o,0,[["enter",a,t]])),s="tableDelimiterRow"===g.type?2:a?3:1):s&&("data"===g.type||"tableDelimiterMarker"===g.type||"tableDelimiterFiller"===g.type)?(r=!1,0===c[2]&&(0!==l[1]&&(c[0]=c[1],n=mq(p,t,l,s,void 0,n),l=[0,0,0,0]),c[2]=o)):"tableCellDivider"===g.type&&(r?r=!1:(0!==l[1]&&(c[0]=c[1],n=mq(p,t,l,s,void 0,n)),c=[(l=c)[1],o,0,0])):"tableHead"===g.type?(d=!0,u=o):"tableRow"===g.type||"tableDelimiterRow"===g.type?(u=o,0!==l[1]?(c[0]=c[1],n=mq(p,t,l,s,o,n)):0!==c[1]&&(n=mq(p,t,c,s,o,n)),s=0):s&&("data"===g.type||"tableDelimiterMarker"===g.type||"tableDelimiterFiller"===g.type)&&(c[3]=o)}for(0!==u&&mZ(p,t,u,i,a),p.consume(t.events),o=-1;++o<t.events.length;){let e=t.events[o];"enter"===e[0]&&"table"===e[1].type&&(e[1]._align=function(e,t){let i=!1,a=[];for(;t<e.length;){let n=e[t];if(i){if("enter"===n[0])"tableContent"===n[1].type&&a.push("tableDelimiterMarker"===e[t+1][1].type?"left":"none");else if("tableContent"===n[1].type){if("tableDelimiterMarker"===e[t-1][1].type){let e=a.length-1;a[e]="left"===a[e]?"center":"right"}}else if("tableDelimiterRow"===n[1].type)break}else"enter"===n[0]&&"tableDelimiterRow"===n[1].type&&(i=!0);t+=1}return a}(t.events,o))}return e}function mq(e,t,i,a,n,o){0!==i[0]&&(o.end=Object.assign({},mW(t.events,i[0])),e.add(i[0],0,[["exit",o,t]]));let r=mW(t.events,i[1]);if(o={type:1===a?"tableHeader":2===a?"tableDelimiter":"tableData",start:Object.assign({},r),end:Object.assign({},r)},e.add(i[1],0,[["enter",o,t]]),0!==i[2]){let n=mW(t.events,i[2]),o=mW(t.events,i[3]),r={type:"tableContent",start:Object.assign({},n),end:Object.assign({},o)};if(e.add(i[2],0,[["enter",r,t]]),2!==a){let a=t.events[i[2]],n=t.events[i[3]];if(a[1].end=Object.assign({},n[1].end),a[1].type="chunkText",a[1].contentType="text",i[3]>i[2]+1){let t=i[2]+1,a=i[3]-i[2]-1;e.add(t,a,[])}}e.add(i[3]+1,0,[["exit",r,t]])}return void 0!==n&&(o.end=Object.assign({},mW(t.events,n)),e.add(n,0,[["exit",o,t]]),o=void 0),o}function mZ(e,t,i,a,n){let o=[],r=mW(t.events,i);n&&(n.end=Object.assign({},r),o.push(["exit",n,t])),a.end=Object.assign({},r),o.push(["exit",a,t]),e.add(i+1,0,o)}function mW(e,t){let i=e[t],a="enter"===i[0]?"start":"end";return i[1][a]}let mG={name:"tasklistCheck",tokenize:function(e,t,i){let a=this;return function(t){return null===a.previous&&a._gfmTasklistFirstContentOfListItem?(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),n):i(t)};function n(t){return hE(t)?(e.enter("taskListCheckValueUnchecked"),e.consume(t),e.exit("taskListCheckValueUnchecked"),o):88===t||120===t?(e.enter("taskListCheckValueChecked"),e.consume(t),e.exit("taskListCheckValueChecked"),o):i(t)}function o(t){return 93===t?(e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),r):i(t)}function r(a){return hk(a)?t(a):hS(a)?e.check({tokenize:mK},t,i)(a):i(a)}}};function mK(e,t,i){return hD(e,function(e){return null===e?i(e):t(e)},"whitespace")}let mY={};function mQ(e){let t,i,a,n=e||mY,o=this.data(),r=o.micromarkExtensions||(o.micromarkExtensions=[]),s=o.fromMarkdownExtensions||(o.fromMarkdownExtensions=[]),l=o.toMarkdownExtensions||(o.toMarkdownExtensions=[]);r.push(hm([{text:mI},{document:{91:{name:"gfmFootnoteDefinition",tokenize:mU,continuation:{tokenize:mF},exit:mj}},text:{91:{name:"gfmFootnoteCall",tokenize:mz},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:mN,resolveTo:mP}}},(t=(n||{}).singleTilde,i={name:"strikethrough",tokenize:function(e,i,a){let n=this.previous,o=this.events,r=0;return function(s){return 126===n&&"characterEscape"!==o[o.length-1][1].type?a(s):(e.enter("strikethroughSequenceTemporary"),function o(s){let l=gp(n);if(126===s)return r>1?a(s):(e.consume(s),r++,o);if(r<2&&!t)return a(s);let c=e.exit("strikethroughSequenceTemporary"),d=gp(s);return c._open=!d||2===d&&!!l,c._close=!l||2===l&&!!d,i(s)}(s))}},resolveAll:function(e,t){let i=-1;for(;++i<e.length;)if("enter"===e[i][0]&&"strikethroughSequenceTemporary"===e[i][1].type&&e[i][1]._close){let a=i;for(;a--;)if("exit"===e[a][0]&&"strikethroughSequenceTemporary"===e[a][1].type&&e[a][1]._open&&e[i][1].end.offset-e[i][1].start.offset==e[a][1].end.offset-e[a][1].start.offset){e[i][1].type="strikethroughSequence",e[a][1].type="strikethroughSequence";let n={type:"strikethrough",start:Object.assign({},e[a][1].start),end:Object.assign({},e[i][1].end)},o={type:"strikethroughText",start:Object.assign({},e[a][1].end),end:Object.assign({},e[i][1].start)},r=[["enter",n,t],["enter",e[a][1],t],["exit",e[a][1],t],["enter",o,t]],s=t.parser.constructs.insideSpan.null;s&&hc(r,r.length,0,gr(s,e.slice(a+1,i),t)),hc(r,r.length,0,[["exit",o,t],["enter",e[i][1],t],["exit",e[i][1],t],["exit",n,t]]),hc(e,a-1,i-a+3,r),i=a+r.length-2;break}}for(i=-1;++i<e.length;)"strikethroughSequenceTemporary"===e[i][1].type&&(e[i][1].type="data");return e}},null==t&&(t=!0),{text:{126:i},insideSpan:{null:[i]},attentionMarkers:{null:[126]}}),{flow:{null:{name:"table",tokenize:mH,resolveAll:mV}}},{text:{91:mG}}])),s.push([{transforms:[gG],enter:{literalAutolink:gB,literalAutolinkEmail:gH,literalAutolinkHttp:gH,literalAutolinkWww:gH},exit:{literalAutolink:gW,literalAutolinkEmail:gZ,literalAutolinkHttp:gV,literalAutolinkWww:gq}},{enter:{gfmFootnoteCallString:gX,gfmFootnoteCall:gJ,gfmFootnoteDefinitionLabelString:g1,gfmFootnoteDefinition:g0},exit:{gfmFootnoteCallString:g2,gfmFootnoteCall:g3,gfmFootnoteDefinitionLabelString:g4,gfmFootnoteDefinition:g6}},{canContainEols:["delete"],enter:{strikethrough:me},exit:{strikethrough:mt}},{enter:{table:md,tableData:mg,tableHeader:mg,tableRow:mp},exit:{codeText:mm,table:mu,tableData:mh,tableHeader:mh,tableRow:mh}},{exit:{taskListCheckValueChecked:my,taskListCheckValueUnchecked:my,paragraph:mb}}]),l.push({extensions:[{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:gF,notInConstruct:gj},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:gF,notInConstruct:gj},{character:":",before:"[ps]",after:"\\/",inConstruct:gF,notInConstruct:gj}]},(a=!1,n&&n.firstLineBlank&&(a=!0),{handlers:{footnoteDefinition:function(e,t,i,n){let o=i.createTracker(n),r=o.move("[^"),s=i.enter("footnoteDefinition"),l=i.enter("label");return r+=o.move(i.safe(i.associationId(e),{before:r,after:"]"})),l(),r+=o.move("]:"),e.children&&e.children.length>0&&(o.shift(4),r+=o.move((a?` `:" ")+i.indentLines(i.containerFlow(e,o.current()),a?g7:g8))),s(),r},footnoteReference:g5},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]}),{handlers:{delete:mi},unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:g9}]},function(e){let t=e||{},i=t.tableCellPadding,a=t.tablePipeAlign,n=t.stringLength,o=i?" ":"|";return{unsafe:[{character:`\r`,inConstruct:"tableCell"},{character:` `,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:function(e,t,i){let a=ms(e,t,i);return i.stack.includes("tableCell")&&(a=a.replace(/\|/g,"\\$&")),a},table:function(e,t,i,a){return s(function(e,t,i){let a=e.children,n=-1,o=[],r=t.enter("table");for(;++n<a.length;)o[n]=l(a[n],t,i);return r(),o}(e,i,a),e.align)},tableCell:r,tableRow:function(e,t,i,a){let n=s([l(e,i,a)]);return n.slice(0,n.indexOf(` `))}}};function r(e,t,i,a){let n=i.enter("tableCell"),r=i.enter("phrasing"),s=i.containerPhrasing(e,{...a,before:o,after:o});return r(),n(),s}function s(e,t){return function(e,t){let i=t||{},a=(i.align||[]).concat(),n=i.stringLength||ma,o=[],r=[],s=[],l=[],c=0,d=-1;for(;++d<e.length;){let t=[],a=[],o=-1;for(e[d].length>c&&(c=e[d].length);++o<e[d].length;){var u;let r=null==(u=e[d][o])?"":String(u);if(!1!==i.alignDelimiters){let e=n(r);a[o]=e,(void 0===l[o]||e>l[o])&&(l[o]=e)}t.push(r)}r[d]=t,s[d]=a}let p=-1;if("object"==typeof a&&"length"in a)for(;++p<c;)o[p]=mn(a[p]);else{let e=mn(a);for(;++p<c;)o[p]=e}p=-1;let h=[],g=[];for(;++p<c;){let e=o[p],t="",a="";99===e?(t=":",a=":"):108===e?t=":":114===e&&(a=":");let n=!1===i.alignDelimiters?1:Math.max(1,l[p]-t.length-a.length),r=t+"-".repeat(n)+a;!1!==i.alignDelimiters&&((n=t.length+n+a.length)>l[p]&&(l[p]=n),g[p]=n),h[p]=r}r.splice(1,0,h),s.splice(1,0,g),d=-1;let m=[];for(;++d<r.length;){let e=r[d],t=s[d];p=-1;let a=[];for(;++p<c;){let n=e[p]||"",r="",s="";if(!1!==i.alignDelimiters){let e=l[p]-(t[p]||0),i=o[p];114===i?r=" ".repeat(e):99===i?e%2?(r=" ".repeat(e/2+.5),s=" ".repeat(e/2-.5)):s=r=" ".repeat(e/2):s=" ".repeat(e)}!1===i.delimiterStart||p||a.push("|"),!1!==i.padding&&(!1!==i.alignDelimiters||""!==n)&&(!1!==i.delimiterStart||p)&&a.push(" "),!1!==i.alignDelimiters&&a.push(r),a.push(n),!1!==i.alignDelimiters&&a.push(s),!1!==i.padding&&a.push(" "),(!1!==i.delimiterEnd||p!==c-1)&&a.push("|")}m.push(!1===i.delimiterEnd?a.join("").replace(/ +$/,""):a.join(""))}return m.join(` `)}(e,{align:t,alignDelimiters:a,padding:i,stringLength:n})}function l(e,t,i){let a=e.children,n=-1,o=[],s=t.enter("tableRow");for(;++n<a.length;)o[n]=r(a[n],e,t,i);return s(),o}}(n),{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:mv}}]})}function mX(){return{type:"break"}}function mJ(){return function(e){gU(e,[/\r?\n|\r/g,mX])}}let{defineProperty:m1}=Object,m0="object"==typeof self?self:globalThis,m2=(e,t)=>{switch(e){case"Function":case"SharedWorker":case"Worker":case"eval":case"setInterval":case"setTimeout":throw TypeError("unable to deserialize "+e)}return new m0[e](t)},m3=e=>{var t;let i,a;return(t=new Map,i=(e,i)=>(t.set(i,e),e),a=n=>{if(t.has(n))return t.get(n);let[o,r]=e[n];switch(o){case 0:case -1:return i(r,n);case 1:{let e=i([],n);for(let t of r)e.push(a(t));return e}case 2:{let e=i({},n);for(let[t,i]of r){let n=a(t),o=a(i);"__proto__"===n?m1(e,n,{value:o,configurable:!0,enumerable:!0,writable:!0}):e[n]=o}return e}case 3:return i(new Date(r),n);case 4:{let{source:e,flags:t}=r;return i(new RegExp(e,t),n)}case 5:{let e=i(new Map,n);for(let[t,i]of r)e.set(a(t),a(i));return e}case 6:{let e=i(new Set,n);for(let t of r)e.add(a(t));return e}case 7:{let{name:e,message:t}=r;return i("function"==typeof m0[e]?m2(e,t):Error(t),n)}case 8:return i(BigInt(r),n);case"BigInt":return i(Object(BigInt(r)),n);case"ArrayBuffer":return i(new Uint8Array(r).buffer,r);case"DataView":{let{buffer:e}=new Uint8Array(r);return i(new DataView(e),r)}case"-0":return -0}return i(m2(o,r),n)})(0)},{toString:m4}={},{keys:m6,is:m5}=Object,m8=e=>{let t=typeof e;if("object"!==t||!e)return[0,t];let i=m4.call(e).slice(8,-1);switch(i){case"Array":return[1,""];case"Object":return[2,""];case"Date":return[3,""];case"RegExp":return[4,""];case"Map":return[5,""];case"Set":return[6,""];case"DataView":return[1,i]}return i.includes("Array")?[1,i]:e instanceof Error?[7,e.name||"Error"]:[2,i]},m7=([e,t])=>0===e&&("function"===t||"symbol"===t),m9=(e,{json:t,lossy:i}={})=>{var a,n,o;let r,s,l=[];return(a=!(t||i),n=!!t,o=new Map,r=(e,t)=>{let i=l.push(e)-1;return o.set(t,i),i},s=e=>{if(o.has(e))return o.get(e);let[t,i]=m8(e);switch(t){case 0:{let n=e;switch(i){case"bigint":t=8,n=e.toString();break;case"number":if(!e&&m5(e,-0))return l.push(["-0"])-1;break;case"function":case"symbol":if(a)throw TypeError("unable to serialize "+i);n=null;break;case"undefined":return r([-1],e)}return r([t,n],e)}case 1:{if(i){let t=e;return"DataView"===i?t=new Uint8Array(e.buffer):"ArrayBuffer"===i&&(t=new Uint8Array(e)),r([i,[...t]],e)}let a=[],n=r([t,a],e);for(let t of e)a.push(s(t));return n}case 2:{if(i)switch(i){case"BigInt":return r([i,e.toString()],e);case"Boolean":case"Number":case"String":return r([i,e.valueOf()],e)}if(n&&"toJSON"in e)return s(e.toJSON());let o=[],l=r([t,o],e);for(let t of m6(e))(a||!m7(m8(e[t])))&&o.push([s(t),s(e[t])]);return l}case 3:return r([t,isNaN(e.getTime())?"":e.toISOString()],e);case 4:{let{source:i,flags:a}=e;return r([t,{source:i,flags:a}],e)}case 5:{let i=[],n=r([t,i],e);for(let[t,n]of e)(a||!(m7(m8(t))||m7(m8(n))))&&i.push([s(t),s(n)]);return n}case 6:{let i=[],n=r([t,i],e);for(let t of e)(a||!m7(m8(t)))&&i.push(s(t));return n}}let{message:c}=e;return r([t,{name:i,message:c}],e)})(e),l},fe="function"==typeof structuredClone?(e,t)=>t&&("json"in t||"lossy"in t)?m3(m9(e,t)):structuredClone(e):(e,t)=>m3(m9(e,t));function ft(e){let t=[],i=-1,a=0,n=0;for(;++i<e.length;){let o=e.charCodeAt(i),r="";if(37===o&&hy(e.charCodeAt(i+1))&&hy(e.charCodeAt(i+2)))n=2;else if(o<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(o))||(r=String.fromCharCode(o));else if(o>55295&&o<57344){let t=e.charCodeAt(i+1);o<56320&&t>56319&&t<57344?(r=String.fromCharCode(o,t),n=1):r="�"}else r=String.fromCharCode(o);r&&(t.push(e.slice(a,i),encodeURIComponent(r)),a=i+n+1,r=""),n&&(i+=n,n=0)}return t.join("")+e.slice(a)}function fi(e,t){let i=[{type:"text",value:"↩"}];return t>1&&i.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),i}function fa(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}let fn=fr("end"),fo=fr("start");function fr(e){return function(t){let i=t&&t.position&&t.position[e]||{};if("number"==typeof i.line&&i.line>0&&"number"==typeof i.column&&i.column>0)return{line:i.line,column:i.column,offset:"number"==typeof i.offset&&i.offset>-1?i.offset:void 0}}}function fs(e){let t=fo(e),i=fn(e);if(t&&i)return{start:t,end:i}}function fl(e,t){let i=t.referenceType,a="]";if("collapsed"===i?a+="[]":"full"===i&&(a+="["+(t.label||t.identifier)+"]"),"imageReference"===t.type)return[{type:"text",value:"!["+t.alt+a}];let n=e.all(t),o=n[0];o&&"text"===o.type?o.value="["+o.value:n.unshift({type:"text",value:"["});let r=n[n.length-1];return r&&"text"===r.type?r.value+=a:n.push({type:"text",value:a}),n}function fc(e){let t=e.spread;return null==t?e.children.length>1:t}function fd(e,t,i){let a=0,n=e.length;if(t){let t=e.codePointAt(a);for(;9===t||32===t;)a++,t=e.codePointAt(a)}if(i){let t=e.codePointAt(n-1);for(;9===t||32===t;)n--,t=e.codePointAt(n-1)}return n>a?e.slice(a,n):""}let fu={blockquote:function(e,t){let i={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,i),e.applyData(t,i)},break:function(e,t){let i={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,i),[e.applyData(t,i),{type:"text",value:` `}]},code:function(e,t){let i=t.value?t.value+` `:"",a={},n=t.lang?t.lang.split(/\s+/):[];n.length>0&&(a.className=["language-"+n[0]]);let o={type:"element",tagName:"code",properties:a,children:[{type:"text",value:i}]};return t.meta&&(o.data={meta:t.meta}),e.patch(t,o),o={type:"element",tagName:"pre",properties:{},children:[o=e.applyData(t,o)]},e.patch(t,o),o},delete:function(e,t){let i={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,i),e.applyData(t,i)},emphasis:function(e,t){let i={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,i),e.applyData(t,i)},footnoteReference:function(e,t){let i,a="string"==typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",n=String(t.identifier).toUpperCase(),o=ft(n.toLowerCase()),r=e.footnoteOrder.indexOf(n),s=e.footnoteCounts.get(n);void 0===s?(s=0,e.footnoteOrder.push(n),i=e.footnoteOrder.length):i=r+1,s+=1,e.footnoteCounts.set(n,s);let l={type:"element",tagName:"a",properties:{href:"#"+a+"fn-"+o,id:a+"fnref-"+o+(s>1?"-"+s:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(i)}]};e.patch(t,l);let c={type:"element",tagName:"sup",properties:{},children:[l]};return e.patch(t,c),e.applyData(t,c)},heading:function(e,t){let i={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,i),e.applyData(t,i)},html:function(e,t){if(e.options.allowDangerousHtml){let i={type:"raw",value:t.value};return e.patch(t,i),e.applyData(t,i)}},imageReference:function(e,t){let i=String(t.identifier).toUpperCase(),a=e.definitionById.get(i);if(!a)return fl(e,t);let n={src:ft(a.url||""),alt:t.alt};null!==a.title&&void 0!==a.title&&(n.title=a.title);let o={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,o),e.applyData(t,o)},image:function(e,t){let i={src:ft(t.url)};null!==t.alt&&void 0!==t.alt&&(i.alt=t.alt),null!==t.title&&void 0!==t.title&&(i.title=t.title);let a={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,a),e.applyData(t,a)},inlineCode:function(e,t){let i={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,i);let a={type:"element",tagName:"code",properties:{},children:[i]};return e.patch(t,a),e.applyData(t,a)},linkReference:function(e,t){let i=String(t.identifier).toUpperCase(),a=e.definitionById.get(i);if(!a)return fl(e,t);let n={href:ft(a.url||"")};null!==a.title&&void 0!==a.title&&(n.title=a.title);let o={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,o),e.applyData(t,o)},link:function(e,t){let i={href:ft(t.url)};null!==t.title&&void 0!==t.title&&(i.title=t.title);let a={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,a),e.applyData(t,a)},listItem:function(e,t,i){let a=e.all(t),n=i?function(e){let t=!1;if("list"===e.type){t=e.spread||!1;let i=e.children,a=-1;for(;!t&&++a<i.length;)t=fc(i[a])}return t}(i):fc(t),o={},r=[];if("boolean"==typeof t.checked){let e,i=a[0];i&&"element"===i.type&&"p"===i.tagName?e=i:(e={type:"element",tagName:"p",properties:{},children:[]},a.unshift(e)),e.children.length>0&&e.children.unshift({type:"text",value:" "}),e.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),o.className=["task-list-item"]}let s=-1;for(;++s<a.length;){let e=a[s];(n||0!==s||"element"!==e.type||"p"!==e.tagName)&&r.push({type:"text",value:` `}),"element"!==e.type||"p"!==e.tagName||n?r.push(e):r.push(...e.children)}let l=a[a.length-1];l&&(n||"element"!==l.type||"p"!==l.tagName)&&r.push({type:"text",value:` `});let c={type:"element",tagName:"li",properties:o,children:r};return e.patch(t,c),e.applyData(t,c)},list:function(e,t){let i={},a=e.all(t),n=-1;for("number"==typeof t.start&&1!==t.start&&(i.start=t.start);++n<a.length;){let e=a[n];if("element"===e.type&&"li"===e.tagName&&e.properties&&Array.isArray(e.properties.className)&&e.properties.className.includes("task-list-item")){i.className=["contains-task-list"];break}}let o={type:"element",tagName:t.ordered?"ol":"ul",properties:i,children:e.wrap(a,!0)};return e.patch(t,o),e.applyData(t,o)},paragraph:function(e,t){let i={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,i),e.applyData(t,i)},root:function(e,t){let i={type:"root",children:e.wrap(e.all(t))};return e.patch(t,i),e.applyData(t,i)},strong:function(e,t){let i={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,i),e.applyData(t,i)},table:function(e,t){let i=e.all(t),a=i.shift(),n=[];if(a){let i={type:"element",tagName:"thead",properties:{},children:e.wrap([a],!0)};e.patch(t.children[0],i),n.push(i)}if(i.length>0){let a={type:"element",tagName:"tbody",properties:{},children:e.wrap(i,!0)},o=fo(t.children[1]),r=fn(t.children[t.children.length-1]);o&&r&&(a.position={start:o,end:r}),n.push(a)}let o={type:"element",tagName:"table",properties:{},children:e.wrap(n,!0)};return e.patch(t,o),e.applyData(t,o)},tableCell:function(e,t){let i={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,i),e.applyData(t,i)},tableRow:function(e,t,i){let a=i?i.children:void 0,n=0===(a?a.indexOf(t):1)?"th":"td",o=i&&"table"===i.type?i.align:void 0,r=o?o.length:t.children.length,s=-1,l=[];for(;++s<r;){let i=t.children[s],a={},r=o?o[s]:void 0;r&&(a.align=r);let c={type:"element",tagName:n,properties:a,children:[]};i&&(c.children=e.all(i),e.patch(i,c),c=e.applyData(i,c)),l.push(c)}let c={type:"element",tagName:"tr",properties:{},children:e.wrap(l,!0)};return e.patch(t,c),e.applyData(t,c)},text:function(e,t){let i={type:"text",value:function(e){let t=String(e),i=/\r?\n|\r/g,a=i.exec(t),n=0,o=[];for(;a;)o.push(fd(t.slice(n,a.index),n>0,!0),a[0]),n=a.index+a[0].length,a=i.exec(t);return o.push(fd(t.slice(n),n>0,!1)),o.join("")}(String(t.value))};return e.patch(t,i),e.applyData(t,i)},thematicBreak:function(e,t){let i={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,i),e.applyData(t,i)},toml:fp,yaml:fp,definition:fp,footnoteDefinition:fp};function fp(){}let fh={}.hasOwnProperty,fg={};function fm(e,t){e.position&&(t.position=fs(e))}function ff(e,t){let i=t;if(e&&e.data){let t=e.data.hName,a=e.data.hChildren,n=e.data.hProperties;"string"==typeof t&&("element"===i.type?i.tagName=t:i={type:"element",tagName:t,properties:{},children:"children"in i?i.children:[i]}),"element"===i.type&&n&&Object.assign(i.properties,fe(n)),"children"in i&&i.children&&null!=a&&(i.children=a)}return i}function fy(e,t){let i=[],a=-1;for(t&&i.push({type:"text",value:` `});++a<e.length;)a&&i.push({type:"text",value:` `}),i.push(e[a]);return t&&e.length>0&&i.push({type:"text",value:` `}),i}function fb(e){let t=0,i=e.charCodeAt(t);for(;9===i||32===i;)t++,i=e.charCodeAt(t);return e.slice(t)}function fv(e,t){let i,a,n,o,r=(i=t||fg,a=new Map,n=new Map,o={all:function(e){let t=[];if("children"in e){let i=e.children,a=-1;for(;++a<i.length;){let n=o.one(i[a],e);if(n){if(a&&"break"===i[a-1].type&&(Array.isArray(n)||"text"!==n.type||(n.value=fb(n.value)),!Array.isArray(n)&&"element"===n.type)){let e=n.children[0];e&&"text"===e.type&&(e.value=fb(e.value))}Array.isArray(n)?t.push(...n):t.push(n)}}}return t},applyData:ff,definitionById:a,footnoteById:n,footnoteCounts:new Map,footnoteOrder:[],handlers:{...fu,...i.handlers},one:function(e,t){let i=e.type,a=o.handlers[i];if(fh.call(o.handlers,i)&&a)return a(o,e,t);if(o.options.passThrough&&o.options.passThrough.includes(i)){if("children"in e){let{children:t,...i}=e,a=fe(i);return a.children=o.all(e),a}return fe(e)}return(o.options.unknownHandler||function(e,t){let i=t.data||{},a="value"in t&&!(fh.call(i,"hProperties")||fh.call(i,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,a),e.applyData(t,a)})(o,e,t)},options:i,patch:fm,wrap:fy},mr(e,function(e){if("definition"===e.type||"footnoteDefinition"===e.type){let t="definition"===e.type?a:n,i=String(e.identifier).toUpperCase();t.has(i)||t.set(i,e)}}),o),s=r.one(e,void 0),l=function(e){let t="string"==typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",i=e.options.footnoteBackContent||fi,a=e.options.footnoteBackLabel||fa,n=e.options.footnoteLabel||"Footnotes",o=e.options.footnoteLabelTagName||"h2",r=e.options.footnoteLabelProperties||{className:["sr-only"]},s=[],l=-1;for(;++l<e.footnoteOrder.length;){let n=e.footnoteById.get(e.footnoteOrder[l]);if(!n)continue;let o=e.all(n),r=String(n.identifier).toUpperCase(),c=ft(r.toLowerCase()),d=0,u=[],p=e.footnoteCounts.get(r);for(;void 0!==p&&++d<=p;){u.length>0&&u.push({type:"text",value:" "});let e="string"==typeof i?i:i(l,d);"string"==typeof e&&(e={type:"text",value:e}),u.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+c+(d>1?"-"+d:""),dataFootnoteBackref:"",ariaLabel:"string"==typeof a?a:a(l,d),className:["data-footnote-backref"]},children:Array.isArray(e)?e:[e]})}let h=o[o.length-1];if(h&&"element"===h.type&&"p"===h.tagName){let e=h.children[h.children.length-1];e&&"text"===e.type?e.value+=" ":h.children.push({type:"text",value:" "}),h.children.push(...u)}else o.push(...u);let g={type:"element",tagName:"li",properties:{id:t+"fn-"+c},children:e.wrap(o,!0)};e.patch(n,g),s.push(g)}if(0!==s.length)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:o,properties:{...fe(r),id:"footnote-label"},children:[{type:"text",value:n}]},{type:"text",value:` `},{type:"element",tagName:"ol",properties:{},children:e.wrap(s,!0)},{type:"text",value:` `}]}}(r),c=Array.isArray(s)?{type:"root",children:s}:s||{type:"root",children:[]};return l&&c.children.push({type:"text",value:` `},l),c}function f_(e,t){return e&&"run"in e?async function(i,a){let n=fv(i,{file:a,...t});await e.run(n,a)}:function(i,a){return fv(i,{file:a,...e||t})}}let fw=["ariaDescribedBy","ariaLabel","ariaLabelledBy"],fx={ancestors:{tbody:["table"],td:["table"],th:["table"],thead:["table"],tfoot:["table"],tr:["table"]},attributes:{a:[...fw,"dataFootnoteBackref","dataFootnoteRef",["className","data-footnote-backref"],"href"],blockquote:["cite"],code:[["className",/^language-./]],del:["cite"],div:["itemScope","itemType"],dl:[...fw],h2:[["className","sr-only"]],img:[...fw,"longDesc","src"],input:[["disabled",!0],["type","checkbox"]],ins:["cite"],li:[["className","task-list-item"]],ol:[...fw,["className","contains-task-list"]],q:["cite"],section:["dataFootnotes",["className","footnotes"]],source:["srcSet"],summary:[...fw],table:[...fw],ul:[...fw,["className","contains-task-list"]],"*":["abbr","accept","acceptCharset","accessKey","action","align","alt","axis","border","cellPadding","cellSpacing","char","charOff","charSet","checked","clear","colSpan","color","cols","compact","coords","dateTime","dir","encType","frame","hSpace","headers","height","hrefLang","htmlFor","id","isMap","itemProp","label","lang","maxLength","media","method","multiple","name","noHref","noShade","noWrap","open","prompt","readOnly","rev","rowSpan","rows","rules","scope","selected","shape","size","span","start","summary","tabIndex","title","useMap","vAlign","value","width"]},clobber:["ariaDescribedBy","ariaLabelledBy","id","name"],clobberPrefix:"user-content-",protocols:{cite:["http","https"],href:["http","https","irc","ircs","mailto","xmpp"],longDesc:["http","https"],src:["http","https"]},required:{input:{disabled:!0,type:"checkbox"}},strip:["script"],tagNames:["a","b","blockquote","br","code","dd","del","details","div","dl","dt","em","h1","h2","h3","h4","h5","h6","hr","i","img","input","ins","kbd","li","ol","p","picture","pre","q","rp","rt","ruby","s","samp","section","source","span","strike","strong","sub","summary","sup","table","tbody","td","tfoot","th","thead","tr","tt","ul","var"]},fk={}.hasOwnProperty;function fE(e,t){if(t&&"object"==typeof t)switch("string"==typeof t.type?t.type:""){case"comment":var i,a,n=e,o=t;if(n.schema.allowComments){let e="string"==typeof o.value?o.value:"",t=e.indexOf("--\x3e"),i={type:"comment",value:t<0?e:e.slice(0,t)};return fI(i,o),i}return;case"doctype":var r=e,s=t;if(r.schema.allowDoctypes){let e={type:"doctype"};return fI(e,s),e}return;case"element":return function(e,t){let i="string"==typeof t.tagName?t.tagName:"";e.stack.push(i);let a=fS(e,t.children),n=function(e,t){let i,a=e.stack[e.stack.length-1],n=e.schema.attributes,o=e.schema.required,r=n&&fk.call(n,a)?n[a]:void 0,s=n&&fk.call(n,"*")?n["*"]:void 0,l=t&&"object"==typeof t?t:{},c={};for(i in l)if(fk.call(l,i)){let t=l[i],a=fC(e,fD(r,i),i,t);null==a&&(a=fC(e,fD(s,i),i,t)),null!=a&&(c[i]=a)}if(o&&fk.call(o,a)){let e=o[a];for(i in e)fk.call(e,i)&&!fk.call(c,i)&&(c[i]=e[i])}return c}(e,t.properties);e.stack.pop();let o=!1;if(i&&"*"!==i&&(!e.schema.tagNames||e.schema.tagNames.includes(i))&&(o=!0,e.schema.ancestors&&fk.call(e.schema.ancestors,i))){let t=e.schema.ancestors[i],a=-1;for(o=!1;++a<t.length;)e.stack.includes(t[a])&&(o=!0)}if(!o)return e.schema.strip&&!e.schema.strip.includes(i)?a:void 0;let r={type:"element",tagName:i,properties:n,children:a};return fI(r,t),r}(e,t);case"root":let l;return fI(l={type:"root",children:fS(e,(i=t).children)},i),l;case"text":let c;return fI(c={type:"text",value:"string"==typeof(a=t).value?a.value:""},a),c}}function fS(e,t){let i=[];if(Array.isArray(t)){let a=-1;for(;++a<t.length;){let n=fE(e,t[a]);n&&(Array.isArray(n)?i.push(...n):i.push(n))}}return i}function fC(e,t,i,a){return t?Array.isArray(a)?function(e,t,i,a){let n=-1,o=[];for(;++n<a.length;){let r=fT(e,t,i,a[n]);("number"==typeof r||"string"==typeof r)&&o.push(r)}return o}(e,t,i,a):fT(e,t,i,a):void 0}function fT(e,t,i,a){if(("boolean"==typeof a||"number"==typeof a||"string"==typeof a)&&function(e,t,i){let a=e.schema.protocols&&fk.call(e.schema.protocols,t)?e.schema.protocols[t]:void 0;if(!a||0===a.length)return!0;let n=String(i),o=n.indexOf(":"),r=n.indexOf("?"),s=n.indexOf("#"),l=n.indexOf("/");if(o<0||l>-1&&o>l||r>-1&&o>r||s>-1&&o>s)return!0;let c=-1;for(;++c<a.length;){let e=a[c];if(o===e.length&&n.slice(0,e.length)===e)return!0}return!1}(e,i,a)){if("object"==typeof t&&t.length>1){let e=!1,i=0;for(;++i<t.length;){let n=t[i];if(n&&"object"==typeof n&&"flags"in n){if(n.test(String(a))){e=!0;break}}else if(n===a){e=!0;break}}if(!e)return}return e.schema.clobber&&e.schema.clobberPrefix&&e.schema.clobber.includes(i)?e.schema.clobberPrefix+a:a}}function fI(e,t){let i=fs(t);t.data&&(e.data=fe(t.data)),i&&(e.position=i)}function fD(e,t){let i,a=-1;if(e)for(;++a<e.length;){let n=e[a],o="string"==typeof n?n:n[0];if(o===t)return n;"data*"===o&&(i=n)}if(t.length>4&&"data"===t.slice(0,4).toLowerCase())return i}function fA(e){return function(t){let i,a;return i={type:"root",children:[]},(a=fE({schema:e?{...fx,...e}:fx,stack:[]},t))&&(Array.isArray(a)?1===a.length?i=a[0]:i.children=a:i=a),i}}let f$=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"];class fO{constructor(e,t,i){this.normal=t,this.property=e,i&&(this.space=i)}}function fR(e,t){let i={},a={};for(let t of e)Object.assign(i,t.property),Object.assign(a,t.normal);return new fO(i,a,t)}function fM(e){return e.toLowerCase()}fO.prototype.normal={},fO.prototype.property={},fO.prototype.space=void 0;class fL{constructor(e,t){this.attribute=t,this.property=e}}fL.prototype.attribute="",fL.prototype.booleanish=!1,fL.prototype.boolean=!1,fL.prototype.commaOrSpaceSeparated=!1,fL.prototype.commaSeparated=!1,fL.prototype.defined=!1,fL.prototype.mustUseProperty=!1,fL.prototype.number=!1,fL.prototype.overloadedBoolean=!1,fL.prototype.property="",fL.prototype.spaceSeparated=!1,fL.prototype.space=void 0;let fN=0,fP=fV(),fz=fV(),fU=fV(),fF=fV(),fj=fV(),fB=fV(),fH=fV();function fV(){return 2**++fN}let fq=Object.keys(ta);class fZ extends fL{constructor(e,t,i,a){var n,o,r,s,l;let c=-1;if(super(e,t),n=this,(o=a)&&(n.space=o),"number"==typeof i)for(;++c<fq.length;){let e=fq[c];r=this,s=fq[c],(l=(i&ta[e])===ta[e])&&(r[s]=l)}}}function fW(e){let t={},i={};for(let[a,n]of Object.entries(e.properties)){let o=new fZ(a,e.transform(e.attributes||{},a),n,e.space);e.mustUseProperty&&e.mustUseProperty.includes(a)&&(o.mustUseProperty=!0),t[a]=o,i[fM(a)]=a,i[fM(o.attribute)]=a}return new fO(t,i,e.space)}fZ.prototype.defined=!0;let fG=fW({properties:{ariaActiveDescendant:null,ariaAtomic:fz,ariaAutoComplete:null,ariaBusy:fz,ariaChecked:fz,ariaColCount:fF,ariaColIndex:fF,ariaColSpan:fF,ariaControls:fj,ariaCurrent:null,ariaDescribedBy:fj,ariaDetails:null,ariaDisabled:fz,ariaDropEffect:fj,ariaErrorMessage:null,ariaExpanded:fz,ariaFlowTo:fj,ariaGrabbed:fz,ariaHasPopup:null,ariaHidden:fz,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:fj,ariaLevel:fF,ariaLive:null,ariaModal:fz,ariaMultiLine:fz,ariaMultiSelectable:fz,ariaOrientation:null,ariaOwns:fj,ariaPlaceholder:null,ariaPosInSet:fF,ariaPressed:fz,ariaReadOnly:fz,ariaRelevant:null,ariaRequired:fz,ariaRoleDescription:fj,ariaRowCount:fF,ariaRowIndex:fF,ariaRowSpan:fF,ariaSelected:fz,ariaSetSize:fF,ariaSort:null,ariaValueMax:fF,ariaValueMin:fF,ariaValueNow:fF,ariaValueText:null,role:null},transform:(e,t)=>"role"===t?t:"aria-"+t.slice(4).toLowerCase()});function fK(e,t){return t in e?e[t]:t}function fY(e,t){return fK(e,t.toLowerCase())}let fQ=fW({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:fB,acceptCharset:fj,accessKey:fj,action:null,allow:null,allowFullScreen:fP,allowPaymentRequest:fP,allowUserMedia:fP,alpha:fP,alt:null,as:null,async:fP,autoCapitalize:null,autoComplete:fj,autoFocus:fP,autoPlay:fP,blocking:fj,capture:null,charSet:null,checked:fP,cite:null,className:fj,closedBy:null,colorSpace:null,cols:fF,colSpan:fF,command:null,commandFor:null,content:null,contentEditable:fz,controls:fP,controlsList:fj,coords:fF|fB,crossOrigin:null,data:null,dateTime:null,decoding:null,default:fP,defer:fP,dir:null,dirName:null,disabled:fP,download:fU,draggable:fz,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:fP,formTarget:null,headers:fj,height:fF,hidden:fU,high:fF,href:null,hrefLang:null,htmlFor:fj,httpEquiv:fj,id:null,imageSizes:null,imageSrcSet:null,inert:fP,inputMode:null,integrity:null,is:null,isMap:fP,itemId:null,itemProp:fj,itemRef:fj,itemScope:fP,itemType:fj,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:fP,low:fF,manifest:null,max:null,maxLength:fF,media:null,method:null,min:null,minLength:fF,multiple:fP,muted:fP,name:null,nonce:null,noModule:fP,noValidate:fP,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:fP,optimum:fF,pattern:null,ping:fj,placeholder:null,playsInline:fP,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:fP,referrerPolicy:null,rel:fj,required:fP,reversed:fP,rows:fF,rowSpan:fF,sandbox:fj,scope:null,scoped:fP,seamless:fP,selected:fP,shadowRootClonable:fP,shadowRootCustomElementRegistry:fP,shadowRootDelegatesFocus:fP,shadowRootMode:null,shadowRootSerializable:fP,shape:null,size:fF,sizes:null,slot:null,span:fF,spellCheck:fz,src:null,srcDoc:null,srcLang:null,srcSet:null,start:fF,step:null,style:null,tabIndex:fF,target:null,title:null,translate:null,type:null,typeMustMatch:fP,useMap:null,value:fz,width:fF,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:fj,axis:null,background:null,bgColor:null,border:fF,borderColor:null,bottomMargin:fF,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:fP,declare:fP,event:null,face:null,frame:null,frameBorder:null,hSpace:fF,leftMargin:fF,link:null,longDesc:null,lowSrc:null,marginHeight:fF,marginWidth:fF,noResize:fP,noHref:fP,noShade:fP,noWrap:fP,object:null,profile:null,prompt:null,rev:null,rightMargin:fF,rules:null,scheme:null,scrolling:fz,standby:null,summary:null,text:null,topMargin:fF,valueType:null,version:null,vAlign:null,vLink:null,vSpace:fF,allowTransparency:null,autoCorrect:null,autoSave:null,credentialless:fP,disablePictureInPicture:fP,disableRemotePlayback:fP,exportParts:fB,part:fj,prefix:null,property:null,results:fF,security:null,unselectable:null},space:"html",transform:fY}),fX=fW({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:fH,accentHeight:fF,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:fF,amplitude:fF,arabicForm:null,ascent:fF,attributeName:null,attributeType:null,azimuth:fF,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:fF,by:null,calcMode:null,capHeight:fF,className:fj,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:fF,diffuseConstant:fF,direction:null,display:null,dur:null,divisor:fF,dominantBaseline:null,download:fP,dx:null,dy:null,edgeMode:null,editable:null,elevation:fF,enableBackground:null,end:null,event:null,exponent:fF,externalResourcesRequired:null,fill:null,fillOpacity:fF,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:fB,g2:fB,glyphName:fB,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:fF,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:fF,horizOriginX:fF,horizOriginY:fF,id:null,ideographic:fF,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:fF,k:fF,k1:fF,k2:fF,k3:fF,k4:fF,kernelMatrix:fH,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:fF,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:fF,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:fF,overlineThickness:fF,paintOrder:null,panose1:null,path:null,pathLength:fF,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:fj,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:fF,pointsAtY:fF,pointsAtZ:fF,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:fH,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:fH,rev:fH,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:fH,requiredFeatures:fH,requiredFonts:fH,requiredFormats:fH,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:fF,specularExponent:fF,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:fF,strikethroughThickness:fF,string:null,stroke:null,strokeDashArray:fH,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:fF,strokeOpacity:fF,strokeWidth:null,style:null,surfaceScale:fF,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:fH,tabIndex:fF,tableValues:null,target:null,targetX:fF,targetY:fF,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:fH,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:fF,underlineThickness:fF,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:fF,values:null,vAlphabetic:fF,vMathematical:fF,vectorEffect:null,vHanging:fF,vIdeographic:fF,version:null,vertAdvY:fF,vertOriginX:fF,vertOriginY:fF,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:fF,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:fK}),fJ=fW({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform:(e,t)=>"xlink:"+t.slice(5).toLowerCase()}),f1=fW({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:fY}),f0=fW({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform:(e,t)=>"xml:"+t.slice(3).toLowerCase()}),f2=fR([fG,fQ,fJ,f1,f0],"html"),f3=fR([fG,fX,fJ,f1,f0],"svg"),f4={}.hasOwnProperty,f6=/["&'<>`]/g,f5=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,f8=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,f7=/[|\\{}()[\]^$+*?.]/g,f9=new WeakMap,ye=/[\dA-Fa-f]/,yt=/\d/,yi=["AElig","AMP","Aacute","Acirc","Agrave","Aring","Atilde","Auml","COPY","Ccedil","ETH","Eacute","Ecirc","Egrave","Euml","GT","Iacute","Icirc","Igrave","Iuml","LT","Ntilde","Oacute","Ocirc","Ograve","Oslash","Otilde","Ouml","QUOT","REG","THORN","Uacute","Ucirc","Ugrave","Uuml","Yacute","aacute","acirc","acute","aelig","agrave","amp","aring","atilde","auml","brvbar","ccedil","cedil","cent","copy","curren","deg","divide","eacute","ecirc","egrave","eth","euml","frac12","frac14","frac34","gt","iacute","icirc","iexcl","igrave","iquest","iuml","laquo","lt","macr","micro","middot","nbsp","not","ntilde","oacute","ocirc","ograve","ordf","ordm","oslash","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"],ya={nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",fnof:"ƒ",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",bull:"•",hellip:"…",prime:"′",Prime:"″",oline:"‾",frasl:"⁄",weierp:"℘",image:"ℑ",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦",quot:'"',amp:"&",lt:"<",gt:">",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",circ:"ˆ",tilde:"˜",ensp:" ",emsp:" ",thinsp:" ",zwnj:"",zwj:"",lrm:"",rlm:"",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",permil:"‰",lsaquo:"‹",rsaquo:"›",euro:"€"},yn=["cent","copy","divide","gt","lt","not","para","times"],yo={}.hasOwnProperty,yr={};for(n in ya)yo.call(ya,n)&&(yr[ya[n]]=n);let ys=/[^\dA-Za-z]/;function yl(e,t,i){var a,n;let o,r,s=(a=i.omitOptionalSemicolons,o="&#x"+e.toString(16).toUpperCase(),a&&t&&!ye.test(String.fromCharCode(t))?o:o+";");if((i.useNamedReferences||i.useShortestReferences)&&(r=function(e,t,i,a){let n=String.fromCharCode(e);if(yo.call(yr,n)){let e=yr[n],o="&"+e;return i&&yi.includes(e)&&!yn.includes(e)&&(!a||t&&61!==t&&ys.test(String.fromCharCode(t)))?o:o+";"}return""}(e,t,i.omitOptionalSemicolons,i.attribute)),(i.useShortestReferences||!r)&&i.useShortestReferences){let a,o=(n=i.omitOptionalSemicolons,a="&#"+String(e),n&&t&&!yt.test(String.fromCharCode(t))?a:a+";");o.length<s.length&&(s=o)}return r&&(!i.useShortestReferences||r.length<s.length)?r:s}function yc(e,t){let i;var a,n=e,o=Object.assign({format:yl},t);if(n=n.replace(o.subset?(a=o.subset,(i=f9.get(a))||(i=function(e){let t=[],i=-1;for(;++i<e.length;)t.push(e[i].replace(f7,"\\$&"));return RegExp("(?:"+t.join("|")+")","g")}(a),f9.set(a,i)),i):f6,r),o.subset||o.escapeOnly)return n;return n.replace(f5,function(e,t,i){return o.format((e.charCodeAt(0)-55296)*1024+e.charCodeAt(1)-56320+65536,i.charCodeAt(t+2),o)}).replace(f8,r);function r(e,t,i){return o.format(e.charCodeAt(0),i.charCodeAt(t+1),o)}}let yd=/^>|^->|<\x21--|--\x3e|--!>|<!-$/g,yu=[">"],yp=["<",">"],yh=/[A-Z]/g,yg=/-[a-z]/g,ym=/^data[-\w.:]+$/i;function yf(e){return"-"+e.toLowerCase()}function yy(e){return e.charAt(1).toUpperCase()}let yb=/[ \t\n\f\r]/g;function yv(e){return"object"==typeof e?"text"===e.type&&y_(e.value):y_(e)}function y_(e){return""===e.replace(yb,"")}let yw=yE(1),yx=yE(-1),yk=[];function yE(e){return function(t,i,a){let n=t?t.children:yk,o=(i||0)+e,r=n[o];if(!a)for(;r&&yv(r);)o+=e,r=n[o];return r}}let yS={}.hasOwnProperty;function yC(e){return function(t,i,a){return yS.call(e,t.tagName)&&e[t.tagName](t,i,a)}}let yT=yC({body:function(e,t,i){let a=yw(i,t);return!a||"comment"!==a.type},caption:yI,colgroup:yI,dd:function(e,t,i){let a=yw(i,t);return!a||"element"===a.type&&("dt"===a.tagName||"dd"===a.tagName)},dt:function(e,t,i){let a=yw(i,t);return!!(a&&"element"===a.type&&("dt"===a.tagName||"dd"===a.tagName))},head:yI,html:function(e,t,i){let a=yw(i,t);return!a||"comment"!==a.type},li:function(e,t,i){let a=yw(i,t);return!a||"element"===a.type&&"li"===a.tagName},optgroup:function(e,t,i){let a=yw(i,t);return!a||"element"===a.type&&"optgroup"===a.tagName},option:function(e,t,i){let a=yw(i,t);return!a||"element"===a.type&&("option"===a.tagName||"optgroup"===a.tagName)},p:function(e,t,i){let a=yw(i,t);return a?"element"===a.type&&("address"===a.tagName||"article"===a.tagName||"aside"===a.tagName||"blockquote"===a.tagName||"details"===a.tagName||"div"===a.tagName||"dl"===a.tagName||"fieldset"===a.tagName||"figcaption"===a.tagName||"figure"===a.tagName||"footer"===a.tagName||"form"===a.tagName||"h1"===a.tagName||"h2"===a.tagName||"h3"===a.tagName||"h4"===a.tagName||"h5"===a.tagName||"h6"===a.tagName||"header"===a.tagName||"hgroup"===a.tagName||"hr"===a.tagName||"main"===a.tagName||"menu"===a.tagName||"nav"===a.tagName||"ol"===a.tagName||"p"===a.tagName||"pre"===a.tagName||"section"===a.tagName||"table"===a.tagName||"ul"===a.tagName):!i||"element"!==i.type||"a"!==i.tagName&&"audio"!==i.tagName&&"del"!==i.tagName&&"ins"!==i.tagName&&"map"!==i.tagName&&"noscript"!==i.tagName&&"video"!==i.tagName},rp:yD,rt:yD,tbody:function(e,t,i){let a=yw(i,t);return!a||"element"===a.type&&("tbody"===a.tagName||"tfoot"===a.tagName)},td:yA,tfoot:function(e,t,i){return!yw(i,t)},th:yA,thead:function(e,t,i){let a=yw(i,t);return!!(a&&"element"===a.type&&("tbody"===a.tagName||"tfoot"===a.tagName))},tr:function(e,t,i){let a=yw(i,t);return!a||"element"===a.type&&"tr"===a.tagName}});function yI(e,t,i){let a=yw(i,t,!0);return!a||"comment"!==a.type&&!("text"===a.type&&yv(a.value.charAt(0)))}function yD(e,t,i){let a=yw(i,t);return!a||"element"===a.type&&("rp"===a.tagName||"rt"===a.tagName)}function yA(e,t,i){let a=yw(i,t);return!a||"element"===a.type&&("td"===a.tagName||"th"===a.tagName)}let y$=yC({body:function(e){let t=yw(e,-1,!0);return!t||"comment"!==t.type&&!("text"===t.type&&yv(t.value.charAt(0)))&&("element"!==t.type||"meta"!==t.tagName&&"link"!==t.tagName&&"script"!==t.tagName&&"style"!==t.tagName&&"template"!==t.tagName)},colgroup:function(e,t,i){let a=yx(i,t),n=yw(e,-1,!0);return!(i&&a&&"element"===a.type&&"colgroup"===a.tagName&&yT(a,i.children.indexOf(a),i))&&!!(n&&"element"===n.type&&"col"===n.tagName)},head:function(e){let t=new Set;for(let i of e.children)if("element"===i.type&&("base"===i.tagName||"title"===i.tagName)){if(t.has(i.tagName))return!1;t.add(i.tagName)}let i=e.children[0];return!i||"element"===i.type},html:function(e){let t=yw(e,-1);return!t||"comment"!==t.type},tbody:function(e,t,i){let a=yx(i,t),n=yw(e,-1);return!(i&&a&&"element"===a.type&&("thead"===a.tagName||"tbody"===a.tagName)&&yT(a,i.children.indexOf(a),i))&&!!(n&&"element"===n.type&&"tr"===n.tagName)}}),yO={name:[[` \f\r &/=>`.split(""),` \f\r "&'/=>\``.split("")],[`\0 \f\r "&'/<=>`.split(""),`\0 \f\r "&'/<=>\``.split("")]],unquoted:[[` \f\r &>`.split(""),`\0 \f\r "&'<=>\``.split("")],[`\0 \f\r "&'<=>\``.split(""),`\0 \f\r "&'<=>\``.split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]},yR=["<","&"];function yM(e,t,i,a){return i&&"element"===i.type&&("script"===i.tagName||"style"===i.tagName)?e.value:yc(e.value,Object.assign({},a.settings.characterReferences,{subset:yR}))}let yL=function(e,t){let i=t||{};function a(t,...i){let n=a.invalid,o=a.handlers;if(t&&f4.call(t,e)){let i=String(t[e]);n=f4.call(o,i)?o[i]:a.unknown}if(n)return n.call(this,t,...i)}return a.handlers=i.handlers||{},a.invalid=i.invalid,a.unknown=i.unknown,a}("type",{invalid:function(e){throw Error("Expected node, not `"+e+"`")},unknown:function(e){throw Error("Cannot compile unknown node `"+e.type+"`")},handlers:{comment:function(e,t,i,a){return a.settings.bogusComments?"<?"+yc(e.value,Object.assign({},a.settings.characterReferences,{subset:yu}))+">":"\x3c!--"+e.value.replace(yd,function(e){return yc(e,Object.assign({},a.settings.characterReferences,{subset:yp}))})+"--\x3e"},doctype:function(e,t,i,a){return"<!"+(a.settings.upperDoctype?"DOCTYPE":"doctype")+(a.settings.tightDoctype?"":" ")+"html>"},element:function(e,t,i,a){let n,o=a.schema,r="svg"!==o.space&&a.settings.omitOptionalTags,s="svg"===o.space?a.settings.closeEmptyElements:a.settings.voids.includes(e.tagName.toLowerCase()),l=[];"html"===o.space&&"svg"===e.tagName&&(a.schema=f3);let c=function(e,t){let i,a=[],n=-1;if(t){for(i in t)if(null!==t[i]&&void 0!==t[i]){let n=function(e,t,i){let a,n=function(e,t){let i=fM(t),a=t,n=fL;if(i in e.normal)return e.property[e.normal[i]];if(i.length>4&&"data"===i.slice(0,4)&&ym.test(t)){if("-"===t.charAt(4)){let e=t.slice(5).replace(yg,yy);a="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{let e=t.slice(4);if(!yg.test(e)){let i=e.replace(yh,yf);"-"!==i.charAt(0)&&(i="-"+i),t="data"+i}}n=fZ}return new n(a,t)}(e.schema,t),o=e.settings.allowParseErrors&&"html"===e.schema.space?0:1,r=+!e.settings.allowDangerousCharacters,s=e.quote;if(n.overloadedBoolean&&(i===n.attribute||""===i)?i=!0:(n.boolean||n.overloadedBoolean)&&("string"!=typeof i||i===n.attribute||""===i)&&(i=!!i),null==i||!1===i||"number"==typeof i&&Number.isNaN(i))return"";let l=yc(n.attribute,Object.assign({},e.settings.characterReferences,{subset:yO.name[o][r]}));return!0===i||(i=Array.isArray(i)?(n.commaSeparated?function(e,t){let i=t||{};return(""===e[e.length-1]?[...e,""]:e).join((i.padRight?" ":"")+","+(!1===i.padLeft?"":" ")).trim()}:function(e){return e.join(" ").trim()})(i,{padLeft:!e.settings.tightCommaSeparatedLists}):String(i),e.settings.collapseEmptyAttributes&&!i)?l:(e.settings.preferUnquoted&&(a=yc(i,Object.assign({},e.settings.characterReferences,{attribute:!0,subset:yO.unquoted[o][r]}))),a!==i&&(e.settings.quoteSmart&&gR(i,s)>gR(i,e.alternative)&&(s=e.alternative),a=s+yc(i,Object.assign({},e.settings.characterReferences,{subset:("'"===s?yO.single:yO.double)[o][r],attribute:!0}))+s),l+(a?"="+a:a))}(e,i,t[i]);n&&a.push(n)}}for(;++n<a.length;){let t=e.settings.tightAttributes?a[n].charAt(a[n].length-1):void 0;n!==a.length-1&&'"'!==t&&"'"!==t&&(a[n]+=" ")}return a.join("")}(a,e.properties),d=a.all("html"===o.space&&"template"===e.tagName?e.content:e);return a.schema=o,d&&(s=!1),!c&&r&&y$(e,t,i)||(l.push("<",e.tagName,c?" "+c:""),s&&("svg"===o.space||a.settings.closeSelfClosing)&&(n=c.charAt(c.length-1),(!a.settings.tightSelfClosing||"/"===n||n&&'"'!==n&&"'"!==n)&&l.push(" "),l.push("/")),l.push(">")),l.push(d),s||r&&yT(e,t,i)||l.push("</"+e.tagName+">"),l.join("")},raw:function(e,t,i,a){return a.settings.allowDangerousHtml?e.value:yM(e,t,i,a)},root:function(e,t,i,a){return a.all(e)},text:yM}}),yN={},yP={},yz=[];function yU(e,t,i){return yL(e,t,i,this)}function yF(e){let t=[],i=e&&e.children||yz,a=-1;for(;++a<i.length;)t[a]=this.one(i[a],a,e);return t.join("")}function yj(e){let t={...this.data("settings"),...e};this.compiler=function(e){let i=t||yN,a=i.quote||'"';if('"'!==a&&"'"!==a)throw Error("Invalid quote `"+a+"`, expected `'` or `\"`");return({one:yU,all:yF,settings:{omitOptionalTags:i.omitOptionalTags||!1,allowParseErrors:i.allowParseErrors||!1,allowDangerousCharacters:i.allowDangerousCharacters||!1,quoteSmart:i.quoteSmart||!1,preferUnquoted:i.preferUnquoted||!1,tightAttributes:i.tightAttributes||!1,upperDoctype:i.upperDoctype||!1,tightDoctype:i.tightDoctype||!1,bogusComments:i.bogusComments||!1,tightCommaSeparatedLists:i.tightCommaSeparatedLists||!1,tightSelfClosing:i.tightSelfClosing||!1,collapseEmptyAttributes:i.collapseEmptyAttributes||!1,allowDangerousHtml:i.allowDangerousHtml||!1,voids:i.voids||f$,characterReferences:i.characterReferences||yP,closeSelfClosing:i.closeSelfClosing||!1,closeEmptyElements:i.closeEmptyElements||!1},schema:"svg"===i.space?f3:f2,quote:a,alternative:'"'===a?"'":'"'}).one(Array.isArray(e)?{type:"root",children:e}:e,void 0,void 0)}}function yB(){return e=>{mr(e,"element",e=>{"a"===e.tagName&&(String(e.properties?.href??"").startsWith("#")||(e.properties=e.properties||{},e.properties.target="_blank",e.properties.rel=["noopener","noreferrer"]))})}}function yH(){return e=>{mr(e,"element",(e,t,i)=>{let a;if("pre"!==e.tagName||!i||void 0===t)return;let n=e.children.find(e=>"element"===e.type&&"code"===e.tagName);if(!n)return;let o=function e(t){return"text"===t.type?t.value:"element"===t.type||"root"===t.type?t.children.map(e).join(""):""}(n),r=n.properties?.className;if(Array.isArray(r)){let e=r.find(e=>"string"==typeof e&&e.startsWith("language-"));"string"==typeof e&&(a=e.replace("language-",""))}let s={type:"element",tagName:"uas-code-viewer",properties:{code:o,...a&&{language:a}},children:[]};return i.children[t]=s,"skip"})}}let yV="uas-markdown-table-wrapper";function yq(){return e=>{mr(e,"element",(e,t,i)=>{if("table"===e.tagName&&void 0!==i&&void 0!==t){if("element"===i.type&&"div"===i.tagName){let e=i.properties?.className;if((Array.isArray(e)?e.map(e=>String(e)):e?[String(e)]:[]).includes(yV))return}return i.children[t]={type:"element",tagName:"div",properties:{className:[yV]},children:[e]},"skip"}})}}function yZ(e,t){return e.children.filter(e=>"element"===e.type&&e.tagName===t)}function yW(){return e=>{mr(e,"element",e=>{if("table"!==e.tagName)return;let t=yZ(e,"thead").flatMap(e=>yZ(e,"tr")).flatMap(e=>yZ(e,"th")).map(e=>(function e(t){return"text"===t.type?t.value:"element"===t.type?t.children.map(e).join(""):""})(e).trim());if(0!==t.length)for(let i of yZ(e,"tbody").flatMap(e=>yZ(e,"tr")))yZ(i,"td").forEach((e,i)=>{let a=t[i];a&&(e.properties={...e.properties,dataLabel:a})})})}}let yG=sf`:host{display:inline;font-family:inherit}.wrapper{display:contents}h1{font-size:var(--uas--markdown--custom-h1-font-size, var(--uas--markdown--h1-font-size));line-height:var(--uas--markdown--custom-h1-line-height, var(--uas--markdown--h1-line-height));font-weight:var(--uas--markdown--custom-h1-font-weight, var(--uas--markdown--h1-font-weight))}h2{font-size:var(--uas--markdown--custom-h2-font-size, var(--uas--markdown--h2-font-size));line-height:var(--uas--markdown--custom-h2-line-height, var(--uas--markdown--h2-line-height));font-weight:var(--uas--markdown--custom-h2-font-weight, var(--uas--markdown--h2-font-weight))}h3{font-size:var(--uas--markdown--custom-h3-font-size, var(--uas--markdown--h3-font-size));line-height:var(--uas--markdown--custom-h3-line-height, var(--uas--markdown--h3-line-height));font-weight:var(--uas--markdown--custom-h3-font-weight, var(--uas--markdown--h3-font-weight))}h4{font-size:var(--uas--markdown--custom-h4-font-size, var(--uas--markdown--h4-font-size));line-height:var(--uas--markdown--custom-h4-line-height, var(--uas--markdown--h4-line-height));font-weight:var(--uas--markdown--custom-h4-font-weight, var(--uas--markdown--h4-font-weight))}h5{font-size:var(--uas--markdown--custom-h5-font-size, var(--uas--markdown--h5-font-size));line-height:var(--uas--markdown--custom-h5-line-height, var(--uas--markdown--h5-line-height));font-weight:var(--uas--markdown--custom-h5-font-weight, var(--uas--markdown--h5-font-weight))}h6{font-size:var(--uas--markdown--custom-h6-font-size, var(--uas--markdown--h6-font-size));line-height:var(--uas--markdown--custom-h6-line-height, var(--uas--markdown--h6-line-height));font-weight:var(--uas--markdown--custom-h6-font-weight, var(--uas--markdown--h6-font-weight))}strong{font-weight:var(--uas--markdown--custom-string-font-weight, var(--uas--markdown--string-font-weight))}ul,ol{padding-left:15px}ul li,ol li{margin-left:0;margin-top:calc(var(--uas--markdown--custom-paragraph-margin, var(--uas--markdown--paragraph-margin))/2);margin-bottom:calc(var(--uas--markdown--custom-paragraph-margin, var(--uas--markdown--paragraph-margin))/2)}a{color:var(--uas--typography--color-link);font-weight:600;text-decoration:none}a[target=_blank]:after{font-size:1em;font-family:"UAS Icons" !important;speak:none;font-style:normal;font-weight:normal;font-variant:normal;text-transform:none;line-height:1;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;content:var(--uas--icon--arrow-up-right-from-square);font-size:.9em;font-weight:700;margin-left:5px}p{padding:0}code{font-size:var(--uas--markdown--custom-code-font-size, var(--uas--markdown--code-font-size))}code:not(pre code){color:var(--uas--markdown--custom-inline-code-color, var(--uas--markdown--inline-code-color));background:var(--uas--markdown--custom-inline-code-background, var(--uas--markdown--inline-code-background));border:1px solid var(--uas--markdown--custom-inline-code-border-color, var(--uas--markdown--inline-code-border-color));border-radius:5px;padding:2px 4px;margin:0 2px;word-break:break-all}p,ul,ol{margin:0}ul:not(:first-child),ol:not(:first-child),p:not(:first-child),.uas-markdown-table-wrapper:not(:first-child){margin-top:var(--uas--markdown--custom-paragraph-margin, var(--uas--markdown--paragraph-margin))}ul:not(:last-child),ol:not(:last-child),p:not(:last-child),.uas-markdown-table-wrapper:not(:last-child){margin-bottom:var(--uas--markdown--custom-paragraph-margin, var(--uas--markdown--paragraph-margin))}.uas-markdown-table-wrapper{overflow-x:auto;container-type:inline-size;border-radius:var(--uas--markdown--custom-table-border-radius, var(--uas--markdown--table-border-radius));border:1px solid var(--uas--markdown--custom-table-border-color, var(--uas--markdown--table-border-color))}table{width:100%;border-collapse:collapse;text-align:left}table th,table td{padding:var(--uas--markdown--custom-table-cell-padding, var(--uas--markdown--table-cell-padding));border-inline-end:1px solid var(--uas--markdown--custom-table-border-color, var(--uas--markdown--table-border-color));border-bottom:1px solid var(--uas--markdown--custom-table-border-color, var(--uas--markdown--table-border-color))}table th:last-child,table td:last-child{border-inline-end:0}table tbody tr:last-child td{border-bottom:0}table th{font-family:var(--uas--typography--label-medium-font-family);font-size:var(--uas--typography--label-medium-font-size);line-height:var(--uas--typography--label-medium-line-height);font-weight:var(--uas--typography--label-medium-font-weight);letter-spacing:var(--uas--typography--label-medium-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;background:var(--uas--markdown--custom-table-header-background, var(--uas--markdown--table-header-background))}table tbody td{background:var(--uas--markdown--custom-table-background, var(--uas--markdown--table-background))}table tbody tr:hover td{background:var(--uas--markdown--custom-table-row-hover-background, var(--uas--markdown--table-row-hover-background))}@container (max-width: 560px){table,tbody,tr,td{display:block}thead{display:none}tr:not(:first-child){border-top:1px solid var(--uas--markdown--custom-table-border-color, var(--uas--markdown--table-border-color))}table td{border:0}td[data-label]::before{content:attr(data-label);display:block;margin-bottom:calc(var(--uas--markdown--custom-paragraph-margin, var(--uas--markdown--paragraph-margin))/4);font-size:.8em;font-weight:600;color:var(--uas--markdown--custom-table-mobile-label-color, var(--uas--markdown--table-mobile-label-color))}td:first-child{font-size:1.05em;font-weight:600;padding-bottom:0}td:first-child::before{content:none}}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;border:0}section.footnotes{margin-top:var(--uas--markdown--custom-paragraph-margin, var(--uas--markdown--paragraph-margin));padding-top:var(--uas--markdown--custom-paragraph-margin, var(--uas--markdown--paragraph-margin));border-top:1px solid var(--uas--markdown--custom-inline-code-border-color, var(--uas--markdown--inline-code-border-color));font-size:.85em}sup a{text-decoration:none;font-weight:600}a[data-footnote-backref]{text-decoration:none}`;var yK=function(e,t,i,a){var n,o=arguments.length,r=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(r=(o<3?n(r):o>3?n(t,i,r):n(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r};class yY extends ld{constructor(){super(...arguments),this.content="",this.allowedTags="strong,em",this._compiledHTML="",this._lastAllowedTags="",this._onFragmentClick=e=>{let{target:t}=e;if(!(t instanceof Element))return;let i=t.closest("a");if(!i)return;let a=i.getAttribute("href");if(!a||!a.startsWith("#"))return;e.preventDefault();let n=this.renderRoot.querySelector(`#${CSS.escape(a.slice(1))}`);n&&n.scrollIntoView({behavior:"smooth",block:"nearest"})}}willUpdate(e){let t=e.has("allowedTags"),i=e.has("content");t&&this.allowedTags!==this._lastAllowedTags&&(this._processor=this.buildProcessor(),this._lastAllowedTags=this.allowedTags),(i||t)&&(this._compiledHTML=this.renderMarkdown(this.content))}render(){return this._compiledHTML?s1` <div class="wrapper" @click=${this._onFragmentClick} > ${d5(this._compiledHTML)} </div> `:s1``}buildProcessor(){let e,t;return(e=new Set(this.parseAllowedTags())).add("uas-code-viewer"),e.has("table")&&(e.add("thead"),e.add("tbody"),e.add("tfoot"),e.add("tr")),t={...fx,clobberPrefix:"",tagNames:Array.from(e),attributes:{...fx.attributes,a:[...fx.attributes?.a??[],"href","title","target","rel"],code:["className"],"uas-code-viewer":["language","code","max-lines"]},protocols:{...fx.protocols,href:["http","https","mailto"]}},p7().use(gO).use(mQ).use(mJ).use(f_).use(yB).use(yH).use(fA,t).use(yq).use(yW).use(yj)}renderMarkdown(e){if(!e||!e.trim())return"";this._processor||(this._processor=this.buildProcessor());try{let t=this._processor.processSync(e);return String(t)}catch(e){return console.error("Markdown parsing error:",e),""}}parseAllowedTags(){return this.allowedTags&&this.allowedTags.trim()?this.allowedTags.split(",").map(e=>e.trim().toLowerCase()).filter(e=>e.length>0):["strong","em"]}}yY.styles=yG,yK([l0({type:String})],yY.prototype,"content",void 0),yK([l0({type:String,attribute:"allowed-tags"})],yY.prototype,"allowedTags",void 0),yK([l2()],yY.prototype,"_compiledHTML",void 0),"u">typeof customElements&&!customElements.get("uas-markdown")&&customElements.define("uas-markdown",yY);let yQ={...pO,TRANSPARENT:"transparent"},yX=rT(yQ),yJ={XS:"xs",SM:"sm",MD:"md"},y1=rT(yJ),y0=sf`:host{display:block}.alert{font-family:var(--uas--typography--body-medium-font-family);font-size:var(--uas--typography--body-medium-font-size);line-height:var(--uas--typography--body-medium-line-height);font-weight:var(--uas--typography--body-medium-font-weight);letter-spacing:var(--uas--typography--body-medium-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;color:#000;border-radius:var(--uas--base--border-radius-md);padding:var(--uas--alert--custom-spacing-md, var(--uas--alert--spacing-md));display:flex;gap:var(--uas--alert--custom-icon-gap, var(--uas--alert--icon-gap));background:var(--uas--alert--custom-background, var(--uas--alert--background))}.alert-body{flex:1 1 auto}.alert-heading{font-family:var(--uas--typography--label-large-font-family);font-size:var(--uas--typography--label-large-font-size);line-height:var(--uas--typography--label-large-line-height);font-weight:var(--uas--typography--label-large-font-weight);letter-spacing:var(--uas--typography--label-large-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;display:flex;justify-content:space-between}.alert-heading strong{color:var(--uas--alert--style-heading-custom-color);font-weight:inherit}.alert-title+.alert-content{margin-top:5px}.alert[size=sm]{font-family:var(--uas--typography--body-small-font-family);font-size:var(--uas--typography--body-small-font-size);line-height:var(--uas--typography--body-small-line-height);font-weight:var(--uas--typography--body-small-font-weight);letter-spacing:var(--uas--typography--body-small-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;padding:var(--uas--alert--custom-spacing-sm, var(--uas--alert--spacing-sm));gap:calc(var(--uas--alert--custom-icon-gap, var(--uas--alert--icon-gap))*.8)}.alert[size=sm] .alert-heading,.alert[size=sm] .alert-icon{font-family:var(--uas--typography--label-medium-font-family);font-size:var(--uas--typography--label-medium-font-size);line-height:var(--uas--typography--label-medium-line-height);font-weight:var(--uas--typography--label-medium-font-weight);letter-spacing:var(--uas--typography--label-medium-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.alert[size=sm] .alert-content{font-family:var(--uas--typography--body-small-font-family);font-size:var(--uas--typography--body-small-font-size);line-height:var(--uas--typography--body-small-line-height);font-weight:var(--uas--typography--body-small-font-weight);letter-spacing:var(--uas--typography--body-small-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.alert[size=xs]{font-family:var(--uas--typography--body-small-font-family);font-size:var(--uas--typography--body-small-font-size);line-height:var(--uas--typography--body-small-line-height);font-weight:var(--uas--typography--body-small-font-weight);letter-spacing:var(--uas--typography--body-small-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;padding:var(--uas--alert--custom-spacing-xs, var(--uas--alert--spacing-xs));gap:calc(var(--uas--alert--custom-icon-gap, var(--uas--alert--icon-gap))*.6)}.alert[size=xs] .alert-heading,.alert[size=xs] .alert-icon{font-family:var(--uas--typography--label-medium-font-family);font-size:var(--uas--typography--label-medium-font-size);line-height:var(--uas--typography--label-medium-line-height);font-weight:var(--uas--typography--label-medium-font-weight);letter-spacing:var(--uas--typography--label-medium-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.alert[size=xs] .alert-content{font-family:var(--uas--typography--label-small-font-family);font-size:var(--uas--typography--label-small-font-size);line-height:var(--uas--typography--label-small-line-height);font-weight:var(--uas--typography--label-small-font-weight);letter-spacing:var(--uas--typography--label-small-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-weight:400}.alert[no-radius]{border-radius:0}::slotted(p),::slotted(ul),::slotted(ol),::slotted(table),::slotted(uas-markdown){margin:3px 0 .5em 0 !important;padding:0 !important}.alert-content:only-child>::slotted(p:first-child){margin-top:0 !important}::slotted(p:last-child){margin-bottom:0 !important}`;var y2=function(e,t,i,a){var n,o=arguments.length,r=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(r=(o<3?n(r):o>3?n(t,i,r):n(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r};class y3 extends ld{constructor(){super(...arguments),this.noRadius=!1,this.customIcon=!1,this.size=yJ.MD,this.type=yQ.NEUTRAL}render(){let e={"--uas--alert--background":`var( --uas--color--status-${this.type}-container )`};return s1` <div class="alert" type=${this.type??s3} size=${this.size??s3} ?no-radius=${this.noRadius} style=${cd(e)} > <div class="alert-icon"> ${this._templateIcon} </div> <div class="alert-body"> ${this._templateHeading} <div class="alert-content"> <slot></slot> </div> </div> </div> `}willUpdate(e){lQ(this,"type",yX,e,"uas-alert"),lQ(this,"size",y1,e,"uas-alert")}get _templateHeading(){if(!rY(this.heading))return s1` <div class="alert-heading"> <div class="alert-heading-text"> <uas-markdown .content=${this.heading} allowed-tags="strong,em,a" ></uas-markdown> </div> <div class="alert-heading-icon"> <slot name="top-right-icon"></slot> </div> </div> `}get _templateIcon(){if(this.customIcon)return s1` <slot name="icon"></slot> `;switch(this.type){case yQ.WARNING:case yQ.ERROR:return s1` <uas-icon code="circle-exclamation"></uas-icon> `;case yQ.SUCCESS:return s1` <uas-icon code="circle-check"></uas-icon> `;default:return s1` <uas-icon code="circle-info"></uas-icon> `}}}y3.styles=y0,y2([l0({type:Boolean,attribute:"no-radius"})],y3.prototype,"noRadius",void 0),y2([l0({type:Boolean,attribute:"custom-icon"})],y3.prototype,"customIcon",void 0),y2([l0({type:String})],y3.prototype,"size",void 0),y2([l0({type:String})],y3.prototype,"heading",void 0),y2([l0({type:String})],y3.prototype,"type",void 0),"u">typeof customElements&&!customElements.get("uas-alert")&&customElements.define("uas-alert",y3),"u">typeof customElements&&!customElements.get("uo-alert")&&customElements.define("uo-alert",class extends y3{});let y4=rg({heading:oR().min(1),type:yX,content:oR().min(1).optional()}),y6=rg({name:oR().min(1),email:nD(oU,void 0)}),y5=rg({scenario_id:pC,license_owner:y6,current_plan:pA,addons:pF,status:pI,notice:y4,cta:rp(pj)}).strict().superRefine((e,t)=>{switch(e.scenario_id){case pS.PRO_NOT_INSTALLED:case pS.PRO_INSTALLED_BUT_DEACTIVATED:e.current_plan!==pD.LITE&&t.addIssue({code:"custom",path:["current_plan"],message:`If Pro is not installed (${pS.PRO_NOT_INSTALLED}) or is deactivated (${pS.PRO_INSTALLED_BUT_DEACTIVATED}), the current plan must be LITE (${pD.LITE}).`});break;case pS.PRO_INSTALLED_AND_ACTIVATED_AND_BASIC:e.current_plan!==pD.PRO_BASIC&&t.addIssue({code:"custom",path:["current_plan"],message:`If the license scenario ID indicates that the user has Pro Basic (${pS.PRO_INSTALLED_AND_ACTIVATED_AND_BASIC}), the current plan must be BASIC (${pD.PRO_BASIC}).`});break;case pS.PRO_INSTALLED_AND_ACTIVATED_AND_PLUS:e.current_plan!==pD.PRO_PLUS&&t.addIssue({code:"custom",path:["current_plan"],message:`If the license scenario ID indicates that the user has Pro Plus (${pS.PRO_INSTALLED_AND_ACTIVATED_AND_PLUS}), the current plan must be PLUS (${pD.PRO_PLUS}).`});break;case pS.PRO_INSTALLED_AND_ACTIVATED_AND_ELITE:e.current_plan!==pD.PRO_ELITE&&t.addIssue({code:"custom",path:["current_plan"],message:`If the license scenario ID indicates that the user has Pro Elite (${pS.PRO_INSTALLED_AND_ACTIVATED_AND_ELITE}), the current plan must be ELITE (${pD.PRO_ELITE}).`});break;case pS.PRO_INSTALLED_AND_ACTIVATED_AND_INACTIVE:case pS.PRO_INSTALLED_AND_ACTIVATED_AND_EXPIRED:case pS.PRO_INSTALLED_AND_ACTIVATED_AND_DISABLED:case pS.PRO_INSTALLED_AND_ACTIVATED_AND_SITE_INACTIVE:case pS.PRO_INSTALLED_AND_ACTIVATED_AND_INVALID:e.current_plan!==pD.LITE&&t.addIssue({code:"custom",path:["current_plan"],message:`If Pro is installed but the license is inactive, expired, disabled or invalid, the current plan must be downgraded to LITE (${pD.LITE}).`})}}),y8={LICENSE:"license"},y7=rT(y8).readonly(),y9={PRO_BASIC:"license-pro-basic",PRO_PLUS:"license-pro-plus",PRO_ELITE:"license-pro-elite"},be=rT(y9).readonly(),bt=pN.extend({type:y7,scenario_id:be}).strict(),bi=oH({protocol:/^https?$/}),ba=rg({nonce:oR(),timestamp:o5(),expires_in_seconds:o5(),expires_at_timestamp:o5()}).strict().readonly(),bn={AUTOMATOR:"automator",AUTOMATOR_PRO:"automator_pro"},bo=rg({id:rT(bn),name:oR().min(1),version:oR().min(1),update:rg({version:oR().min(1),url:bi}).strict().nullable()}).strict(),br={UPGRADE_TO_PRO:"upgrade-to-pro",LEARN_MORE:"learn-more",DOCUMENTATION:"documentation",CONNECT_INTEGRATION:"connect-integration",SUPPORT:"support"};rT(br);let bs=rg({linked:re(),license_scenario:pC,owner:rg({name:oR().min(1),avatar_url:oH(),is_viewer:re()}).strict().nullable(),plan:pA,links:rg({link_account:bi,activate_license:bi,my_account:bi,manage_sites:bi,disconnect_account:bi,connect_ai:bi}).strict()}).strict().superRefine((e,t)=>{e.linked&&null===e.owner&&t.addIssue({code:"custom",path:["owner"],message:"A linked account must have an owner."}),e.linked||null===e.owner||t.addIssue({code:"custom",path:["owner"],message:"An account that is not linked cannot have an owner."})});var bl=a(8927),bc=a.n(bl),bd=function(e,t,i,a){var n,o=arguments.length,r=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(r=(o<3?n(r):o>3?n(t,i,r):n(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r};let bu=class extends ld{static{this.styles=sf`${sm(bc())}`}willUpdate(e){lQ(this,"account",bs,e,"uap-d-ai-link-account-steps")}render(){return this.account?s1` <ol class="steps"> ${this.templateFirstStep(this.account)} ${this.templateStep(2,(0,lX.__)("Connect an AI","uncanny-automator"),s1`<uas-button disabled>${(0,lX.__)("Connect an AI","uncanny-automator")}</uas-button>`,!0)} </ol> `:s3}templateFirstStep(e){return pz(e.license_scenario)?this.templateStep(1,(0,lX.__)("Activate your Pro license","uncanny-automator"),s1`<uas-button filled href=${e.links.activate_license}>${(0,lX.__)("Activate license","uncanny-automator")}</uas-button>`):this.templateStep(1,(0,lX.__)("Link your free Automator account","uncanny-automator"),s1`<uas-button filled href=${e.links.link_account}>${(0,lX.__)("Link account","uncanny-automator")}</uas-button>`)}templateStep(e,t,i,a=!1){return s1` <li class="steps__step ${a?"steps__step--locked":""}"> <span class="steps__number">${e}</span> <span class="steps__label">${t}</span> ${i} </li> `}};bd([l0({type:Object})],bu.prototype,"account",void 0),bu=bd([lJ("uap-d-ai-link-account-steps")],bu);let bp={id:"client-claude",brand:ua.CLAUDE,name:"Claude",connected_by:{id:1,name:"Leonardo Da Vinci"},last_used_at:new Date(Date.now()-72e5).toISOString(),vendor:u6.CLAUDE,open_url:"https://claude.ai/new",prompt_param:"q",prompt_prefix:null,app_url:"claude://claude.ai/new",app_prompt_param:"q",is_mine:!0};ua.CLAUDE,new Date(Date.now()-36e5).toISOString(),u6.CLAUDE;let bh={id:"client-chatgpt",brand:ua.OPENAI,name:"ChatGPT",connected_by:{id:1,name:"Leonardo Da Vinci"},last_used_at:new Date(Date.now()-936e5).toISOString(),vendor:u6.CHATGPT,open_url:"https://chatgpt.com/",prompt_param:"q",prompt_prefix:"@Uncanny Automator",app_url:"codex://new",app_prompt_param:"prompt",is_mine:!0};ua.GEMINI,u6.GEMINI,ua.CLAUDE,new Date(Date.now()-18e6).toISOString(),u6.CLAUDE,ua.CLAUDE,u6.CLAUDE,ua.CODEX,u6.OTHER,u6.OTHER;let bg={id:bp.id,brand:bp.brand,name:bp.name},bm={id:bh.id,brand:bh.brand,name:bh.name},bf={id:"client-gemini",brand:ua.GEMINI,name:"Gemini"},by=[{id:"activity-7",client:bg,type:u9.TOOL_USE,summary:'Published the post "Spring sale"',result:pt.DONE,occurred_at:new Date(Date.now()-72e5).toISOString(),occurred_at_display:"October 20, 2026 5:45 pm"},{id:"activity-6",client:bm,type:u9.TOOL_USE,summary:"Tried to delete a user",result:pt.NOT_ALLOWED,occurred_at:new Date(Date.now()-936e5).toISOString(),occurred_at_display:"October 19, 2026 5:45 pm"},{id:"activity-5",client:bg,type:u9.TOOL_USE,summary:'Created the recipe "New order to Slack"',result:pt.DONE,occurred_at:new Date(Date.now()-18e7).toISOString(),occurred_at_display:"October 18, 2026 5:45 pm"},{id:"activity-4",client:bg,type:u9.TOOL_USE,summary:'Searched drafts for "WooCommerce"',result:pt.DONE,occurred_at:new Date(Date.now()-2664e5).toISOString(),occurred_at_display:"October 17, 2026 5:45 pm"},{id:"activity-3",client:bg,type:u9.CONNECTION,summary:"Connected to this site",result:pt.APPROVED,occurred_at:new Date(Date.now()-6948e5).toISOString(),occurred_at_display:"October 12, 2026 6:45 pm"},{id:"activity-2",client:bf,type:u9.CONNECTION,summary:"Asked to connect to this site",result:pt.REFUSED,occurred_at:new Date(Date.now()-6984e5).toISOString(),occurred_at_display:"October 12, 2026 5:45 pm"},{id:"activity-1",client:bm,type:u9.CONNECTION,summary:"Connected to this site",result:pt.APPROVED,occurred_at:new Date(Date.now()-702e6).toISOString(),occurred_at_display:"October 12, 2026 4:45 pm"}],bb=new Date(Date.now()+216e5).toISOString(),bv={SUMMARY:"summary",CLIENT:"client",RESULT:"result",OCCURRED_AT:"occurred_at"},b_=rT(bv),bw={ASC:"asc",DESC:"desc"},bx=rT(bw),bk=rg({page:o5().int().min(1),per_page:o5().int().min(1).max(100),client_id:oR().min(1).optional(),type:pe.optional(),result:pi.optional(),date_from:nO(oN,void 0).optional(),date_to:nO(oN,void 0).optional(),search:oR().min(1).optional(),orderby:b_.optional(),order:bx.optional()}).strict(),bE=rg({entries:rp(pn),total:o5().int().min(0)}).strict(),bS=rg({app_credits:ps.nullable(),ai_tool_uses:pl.nullable()}).strict();rE(dQ,rg({connections:rp(u7),activity:rp(pn),usage:bS}).strict());let bC={app_credits:{unlimited:!1,used:64,limit:250},ai_tool_uses:{unlimited:!1,used:37,limit:150,resets_at:bb,license_ended:!1}},bT=[bp,bh],bI={[dY.NO_ACCOUNT]:{connections:[],activity:[],usage:bC},[dY.PRO_INACTIVE]:{connections:[],activity:[],usage:bC},[dY.CONNECTED]:{connections:bT,activity:by,usage:bC},[dY.NEAR_LIMIT]:{connections:bT,activity:by,usage:{...bC,ai_tool_uses:{unlimited:!1,used:124,limit:150,resets_at:bb,license_ended:!1}}},[dY.AT_LIMIT]:{connections:bT,activity:by,usage:{...bC,ai_tool_uses:{unlimited:!1,used:150,limit:150,resets_at:bb,license_ended:!1}}},[dY.PRO]:{connections:bT,activity:by,usage:{app_credits:{unlimited:!0,used:10336,limit:null},ai_tool_uses:{unlimited:!0,used:212,limit:null,resets_at:bb,license_ended:!1}}},[dY.EMPTY]:{connections:[],activity:[],usage:bC}},bD=rg({connections:rp(u7)}).strict(),bA={all:()=>["ai","connections"],fresh:()=>[...bA.all(),"fresh"]};async function b$(e){if(d4.DEV.RETURN_MOCK_DATA){await new Promise(e=>setTimeout(e,d4.DEV.MOCK_DELAY_MS));let e={connections:bI[d4.DEV.MOCK_SCENARIO].connections};return bD.parse(e).connections}return(await dV({endpoint:e,method:"GET",responseSchema:bD,useEnvelope:!0})).connections}let bO={queryKey:bA.all(),queryFn:async function(){return b$("ai/connections")},staleTime:0},bR={queryKey:bA.fresh(),queryFn:async function(){return b$("ai/connections?fresh=1")},staleTime:0},bM={all:()=>["ai","activity"],list:e=>[...bM.all(),e]};async function bL(e){let[,,t]=e.queryKey,i=bk.parse(t);if(d4.DEV.RETURN_MOCK_DATA){var a;let e,t,n,o;return await new Promise(e=>setTimeout(e,d4.DEV.MOCK_DELAY_MS)),bE.parse((a=d4.DEV.MOCK_SCENARIO,e=i.orderby??bv.OCCURRED_AT,t=bw.ASC===i.order?1:-1,n=bI[a].activity.filter(e=>{let t,a;return t=e.occurred_at.slice(0,10),a=i.search?.toLowerCase(),(void 0===i.client_id||e.client.id===i.client_id)&&(void 0===i.type||e.type===i.type)&&(void 0===i.result||e.result===i.result)&&(void 0===i.date_from||t>=i.date_from)&&(void 0===i.date_to||t<=i.date_to)&&(void 0===a||e.summary.toLowerCase().includes(a))}).sort((i,a)=>t*function(e,t,i){switch(i){case bv.SUMMARY:return e.summary.localeCompare(t.summary);case bv.CLIENT:return e.client.name.localeCompare(t.client.name);case bv.RESULT:return e.result.localeCompare(t.result);case bv.OCCURRED_AT:return Date.parse(e.occurred_at)-Date.parse(t.occurred_at)}}(i,a,e)),o=(i.page-1)*i.per_page,{entries:n.slice(o,o+i.per_page),total:n.length}))}let n=new URLSearchParams;for(let e of bk.keyof().options){let t=i[e];void 0!==t&&n.set(e,String(t))}return dV({endpoint:`ai/activity?${n.toString()}`,method:"GET",responseSchema:bE,useEnvelope:!0})}function bN(e){return{queryKey:bM.list(e),queryFn:bL,staleTime:0,placeholderData:e=>e}}let bP={queryKey:["usage","summary"],queryFn:async function(){return d4.DEV.RETURN_MOCK_DATA?(await new Promise(e=>setTimeout(e,d4.DEV.MOCK_DELAY_MS)),bS.parse(bI[d4.DEV.MOCK_SCENARIO].usage)):dV({endpoint:"usage/get-summary",method:"GET",responseSchema:bS,useEnvelope:!0})},staleTime:0},bz=[pt.NOT_ALLOWED,pt.FAILED,pt.REFUSED];function bU(e){return bz.some(t=>t===e)}function bF(e){switch(e){case pt.DONE:return(0,lX.__)("Done","uncanny-automator");case pt.NOT_ALLOWED:return(0,lX.__)("Not allowed","uncanny-automator");case pt.FAILED:return(0,lX.__)("Failed","uncanny-automator");case pt.APPROVED:return(0,lX.__)("Approved","uncanny-automator");case pt.REFUSED:return(0,lX.__)("Refused","uncanny-automator");case pt.DISCONNECTED:return(0,lX.__)("Disconnected","uncanny-automator")}}rg({id:oR().min(1),label:oR().min(1)}).strict();let bj=rp(u7);function bB(e){let t=bj.parse(e),i=new Set;return t.map(e=>{let t=(0,lX.sprintf)((0,lX.__)("%1$s (%2$s)","uncanny-automator"),e.name,e.connected_by.name),a=i.has(e.name)?t:e.name,n=i.size+2;for(let e=2;i.has(a)&&e<=n;e++)a=(0,lX.sprintf)((0,lX.__)("%1$s %2$d","uncanny-automator"),t,e);for(let e=2;i.has(a);e++)a=`${t} ${e}`;return i.add(a),{id:e.id,label:a}})}let bH={DOCKED:"docked",WINDOW:"window"},bV=rT(bH),bq={DOCKED:"docked",AUTO:"auto"},bZ=rT(bq),bW={OPEN:"open",CLOSE:"close",CHANGE:"change"};function bG(e){return"function"==typeof e}rT(bW),rg({placement:bV.optional(),focus:re().optional()}).strict(),rg({text:oR().optional(),open:re().optional(),focus:re().optional(),placement:bZ.optional(),newConversation:re().optional()}).strict();let bK=rg({send:rZ(bG).optional(),on:rZ(bG).optional(),ready:rG(Promise),open:rZ(bG)});function bY(){let e=Reflect.get(window,"UncannyAgent");return bK.safeParse(e).success?e:null}function bQ(e,t){return new Promise(i=>{let a=bY();if(a)return void i(a);let n=Date.now()+e,o=setInterval(()=>{let e=bY();if(e){clearInterval(o),i(e);return}Date.now()>n&&(clearInterval(o),i(null))},t)})}let bX=rp(u7),bJ=oR();function b1(e,t){let i=u7.parse(e),a=bJ.parse(t);if(null===i.open_url)return null;if(null===i.prompt_param)return i.open_url;let n=new URL(i.open_url);return n.searchParams.set(i.prompt_param,a),n.search=n.search.replaceAll("+","%20"),n.toString()}function b0(e){let{protocol:t}=new URL(u8.parse(e));return"https:"!==t&&"http:"!==t}let b2=rT(["dashboard_connect","dashboard_connect_different","recipe_welcome_connect","recipe_welcome_connect_another"]);function b3(e,t){let i=bi.parse(e),a=b2.parse(t);if(new URL(i).searchParams.has("automator_ref")){let e=new URL(i);return e.searchParams.set("automator_ref",a),e.toString()}let n=i.indexOf("#"),o=-1===n?i:i.slice(0,n),r=-1===n?"":i.slice(n),s=o.includes("?")?"&":"?";return`${o}${s}automator_ref=${a}${r}`}let b4=window.wp.escapeHtml,b6={XS:"xs",SM:"sm",MD:"md",LG:"lg"},b5=rT(b6),b8=sf`:host{display:inline-block}.chip{font-family:var(--uas--typography--label-medium-font-family);font-size:var(--uas--typography--label-medium-font-size);line-height:var(--uas--typography--label-medium-line-height);font-weight:var(--uas--typography--label-medium-font-weight);letter-spacing:var(--uas--typography--label-medium-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;padding:var(--uas--chip--size-custom-padding-top, var(--uas--chip--size-padding-top)) var(--uas--chip--size-custom-padding-right, var(--uas--chip--size-padding-right)) var(--uas--chip--size-custom-padding-bottom, var(--uas--chip--size-padding-bottom)) var(--uas--chip--size-custom-padding-left, var(--uas--chip--size-padding-left));display:var(--uas--chip--custom-display, var(--uas--chip--display));align-items:var(--uas--chip--custom-align-items, var(--uas--chip--align-items));gap:var(--uas--chip--size-custom-gap, var(--uas--chip--size-gap));border-radius:var(--uas--chip--custom-border-radius, var(--uas--chip--border-radius));border:var(--uas--chip--custom-border-width, var(--uas--chip--border-width)) solid;white-space:var(--uas--chip--custom-white-space, var(--uas--chip--white-space))}.chip uas-icon{font-size:var(--uas--chip--custom-icon-font-size, var(--uas--chip--icon-font-size))}.chip[size=xs]{font-family:var(--uas--typography--label-small-font-family);font-size:var(--uas--typography--label-small-font-size);line-height:var(--uas--typography--label-small-line-height);font-weight:var(--uas--typography--label-small-font-weight);letter-spacing:var(--uas--typography--label-small-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;--uas--chip--size-padding-top: var(--uas--chip--size-xs-padding-top);--uas--chip--size-padding-right: var(--uas--chip--size-xs-padding-right);--uas--chip--size-padding-bottom: var(--uas--chip--size-xs-padding-bottom);--uas--chip--size-padding-left: var(--uas--chip--size-xs-padding-left);--uas--chip--size-gap: var(--uas--chip--size-xs-gap)}.chip[size=sm]{font-family:var(--uas--typography--label-small-font-family);font-size:var(--uas--typography--label-small-font-size);line-height:var(--uas--typography--label-small-line-height);font-weight:var(--uas--typography--label-small-font-weight);letter-spacing:var(--uas--typography--label-small-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;--uas--chip--size-padding-top: var(--uas--chip--size-sm-padding-top);--uas--chip--size-padding-right: var(--uas--chip--size-sm-padding-right);--uas--chip--size-padding-bottom: var(--uas--chip--size-sm-padding-bottom);--uas--chip--size-padding-left: var(--uas--chip--size-sm-padding-left);--uas--chip--size-gap: var(--uas--chip--size-sm-gap)}.chip[size=lg]{font-family:var(--uas--typography--label-large-font-family);font-size:var(--uas--typography--label-large-font-size);line-height:var(--uas--typography--label-large-line-height);font-weight:var(--uas--typography--label-large-font-weight);letter-spacing:var(--uas--typography--label-large-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;--uas--chip--size-padding-top: var(--uas--chip--size-lg-padding-top);--uas--chip--size-padding-right: var(--uas--chip--size-lg-padding-right);--uas--chip--size-padding-bottom: var(--uas--chip--size-lg-padding-bottom);--uas--chip--size-padding-left: var(--uas--chip--size-lg-padding-left);--uas--chip--size-gap: var(--uas--chip--size-lg-gap)}.chip{border-color:var(--uas--chip--custom-border-color, var(--uas--chip--color-container));color:var(--uas--chip--custom-color, var(--uas--chip--color-on-container))}.chip[filled]{border-color:var(--uas--chip--custom-filled-border-color, var(--uas--chip--color-container));background-color:var(--uas--chip--custom-filled-background, var(--uas--chip--color-container));color:var(--uas--chip--custom-filled-color, var(--uas--chip--color-on-container))}`;var b7=function(e,t,i,a){var n,o=arguments.length,r=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(r=(o<3?n(r):o>3?n(t,i,r):n(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r};class b9 extends ld{constructor(){super(...arguments),this.filled=!1,this.size=b6.MD,this.color=pO.NEUTRAL,this.label=""}willUpdate(e){lQ(this,"icon",ur,e,"uas-chip"),lQ(this,"size",b5,e,"uas-chip"),lQ(this,"color",pR,e,"uas-chip")}render(){let e={"--uas--chip--color-container":`var( --uas--color--status-${this.color}-container )`,"--uas--chip--color-on-container":`var( --uas--color--status-on-${this.color}-container )`};return s1` <div class="chip" ?filled=${this.filled} size=${this.size??s3} style=${cd(e)} > ${this.icon?s1`<uas-icon code=${this.icon}></uas-icon>`:""} ${this.label?s1`<span class="chip--label">${this.label}</span>`:""} </div> `}}b9.styles=b8,b7([l0({type:Boolean,reflect:!0})],b9.prototype,"filled",void 0),b7([l0({type:String})],b9.prototype,"size",void 0),b7([l0({type:String})],b9.prototype,"color",void 0),b7([l0({type:String})],b9.prototype,"icon",void 0),b7([l0({type:String})],b9.prototype,"label",void 0),"u">typeof customElements&&!customElements.get("uas-chip")&&customElements.define("uas-chip",b9),"u">typeof customElements&&!customElements.get("uo-chip")&&customElements.define("uo-chip",class extends b9{});let ve={TEXT:"text",CIRCLE:"circle",RECTANGLE:"rectangle"},vt=rT(ve),vi=rp(ry([o5().nonnegative().finite(),oR().min(1)])),va={SINGLE:"single",MULTI:"multi",TEXT_SIZED:"text-sized"};rT(va);let vn=sf`:host{display:inline-block;vertical-align:middle;line-height:1}:host(:not([width]):not([variant=circle]):not([variant=rectangle]):not(:has(.text-sized))){display:block}.bar{display:block;width:100%;height:var(--uas--skeleton--custom-text-bar-height, var(--uas--skeleton--text-bar-height));background:var(--uas--skeleton--custom-background, var(--uas--skeleton--background));border-radius:var(--uas--skeleton--custom-text-border-radius, var(--uas--skeleton--text-border-radius));animation:uasSkeletonShimmer var(--uas--skeleton--custom-shimmer-duration, var(--uas--skeleton--shimmer-duration)) steps(10) var(--uas--skeleton--custom-shimmer-duration, var(--uas--skeleton--shimmer-duration)) infinite alternate}.bar[variant=rectangle]{height:100%;border-radius:var(--uas--skeleton--custom-rectangle-border-radius, var(--uas--skeleton--rectangle-border-radius))}.bar[variant=circle]{height:100%;border-radius:50%;aspect-ratio:1/1}.segments{display:block}.segments .segment{display:inline-block;margin-right:var(--uas--skeleton--custom-segment-gap, var(--uas--skeleton--segment-gap));vertical-align:middle}.segments .segment:last-child{margin-right:0}.text-sized{display:inline}.text-sized-word{position:relative;display:inline-block;white-space:nowrap}.text-sized-content{color:rgba(0,0,0,0);user-select:none;visibility:hidden}.text-sized-word .bar{position:absolute;left:0;right:0;top:50%;transform:translateY(-50%);width:auto}.text-sized-space{white-space:pre-wrap}@keyframes uasSkeletonShimmer{0%{opacity:1}100%{opacity:var(--uas--skeleton--custom-shimmer-min-opacity, var(--uas--skeleton--shimmer-min-opacity))}}@media(prefers-reduced-motion: reduce){.bar{animation:none}}`;var vo=function(e,t,i,a){var n,o=arguments.length,r=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(r=(o<3?n(r):o>3?n(t,i,r):n(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r};class vr extends ld{constructor(){super(...arguments),this.variant=ve.TEXT}get mode(){return void 0!==this.widths&&this.widths.length>0?va.MULTI:null!=this.text&&""!==this.text?va.TEXT_SIZED:va.SINGLE}willUpdate(e){lQ(this,"variant",vt,e,"uas-skeleton",ve.TEXT),e.has("widths")&&lQ(this,"widths",vi,e,"uas-skeleton")}render(){switch(this.mode){case va.MULTI:return this._templateSegments(this.widths??[]);case va.TEXT_SIZED:return this._templateTextSized(this.text??"");default:return this._templateSingle()}}_templateSingle(){let e={};return void 0!==this.width&&(e.width=this.width),void 0!==this.height&&(e.height=this.height),this.variant===ve.CIRCLE&&void 0===this.width&&void 0===this.height&&(e.width="1em"),s1` <span class="bar" variant=${this.variant??s3} style=${cd(e)} ></span> `}_templateSegments(e){return s1` <span class="segments"> ${e.map(e=>s1` <span class="segment"> <span class="bar" style=${cd({width:this._toCssLength(e)})} ></span> </span> `)} </span> `}_templateTextSized(e){let t=e.split(/(\s+)/).filter(e=>e.length>0);return s1` <span class="text-sized"> ${t.map(e=>/^\s+$/.test(e)?s1`<span class="text-sized-space" aria-hidden="true">${e}</span>`:s1` <span class="text-sized-word"> <span class="text-sized-content" aria-hidden="true">${e}</span> <span class="bar"></span> </span> `)} </span> `}_toCssLength(e){return"number"==typeof e?`${e}em`:e}}vr.styles=vn,vo([l0({type:String,reflect:!0})],vr.prototype,"variant",void 0),vo([l0({type:String,reflect:!0})],vr.prototype,"width",void 0),vo([l0({type:String})],vr.prototype,"height",void 0),vo([l0({attribute:!1})],vr.prototype,"widths",void 0),vo([l0({type:String})],vr.prototype,"text",void 0),"u">typeof customElements&&!customElements.get("uas-skeleton")&&customElements.define("uas-skeleton",vr);let vs=o5().int().min(1).max(20);var vl=a(7595),vc=a.n(vl),vd=function(e,t,i,a){var n,o=arguments.length,r=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(r=(o<3?n(r):o>3?n(t,i,r):n(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r};let vu=class extends ld{constructor(){super(...arguments),this.count=2}static{this.styles=sf`${sm(vc())}`}willUpdate(e){lQ(this,"count",vs,e,"uap-d-fields-skeleton",2)}render(){let e=Array.from({length:this.count},(e,t)=>t);return s1` <div class="fields-skeleton"> ${e.map(e=>s1` <div class="fields-skeleton__field" data-index=${e}> <uas-skeleton class="fields-skeleton__label" width="6em"></uas-skeleton> <uas-skeleton class="fields-skeleton__input" variant="rectangle" height="36px"></uas-skeleton> </div> `)} </div> `}};vd([l0({type:Number})],vu.prototype,"count",void 0),vu=vd([lJ("uap-d-fields-skeleton")],vu),rg({width:o5(),height:o5(),previous:rg({width:o5(),height:o5()})}),rg({selector:oR().optional(),onChange:rZ().optional()});class vp{constructor(e,t={}){this.observer=null,this.currentTarget=null,this._width=0,this._height=0,this.host=e,this.options=t,e.addController(this)}get width(){return this._width}get height(){return this._height}hostConnected(){this.attachObserver()}hostUpdated(){this.attachObserver()}hostDisconnected(){this.detachObserver()}attachObserver(){let e=this.resolveTarget();e===this.currentTarget||(this.detachObserver(),e&&(this.currentTarget=e,this.observer=new ResizeObserver(e=>this.handleResize(e)),this.observer.observe(e)))}detachObserver(){this.observer&&(this.observer.disconnect(),this.observer=null),this.currentTarget=null}resolveTarget(){return this.options.selector?this.host.shadowRoot?.querySelector(this.options.selector)??null:this.host}handleResize(e){for(let t of e){if(!(t.target instanceof HTMLElement))continue;let e=t.target.offsetWidth,i=t.target.offsetHeight;if(e===this._width&&i===this._height)continue;let a={width:e,height:i,previous:{width:this._width,height:this._height}};this._width=e,this._height=i,this.options.onChange?.(a),this.host.requestUpdate()}}}let vh=rT({COPY:"copy",MOVE:"move",LINK:"link",NONE:"none"});rg({canAccept:rZ().optional(),onDrop:rZ(),dropEffect:vh.optional()});class vg{constructor(e,t){this.host=e,this.shortcuts=t,this.boundHandler=this.handleKeyDown.bind(this),e.addController(this)}hostConnected(){document.addEventListener("keydown",this.boundHandler)}hostDisconnected(){document.removeEventListener("keydown",this.boundHandler)}handleKeyDown(e){for(let t of this.shortcuts)if(this.matchesShortcut(e,t.shortcut)){e.preventDefault(),t.handler();return}}matchesShortcut(e,t){return t.split(",").map(e=>e.trim()).some(t=>this.matchesShortcutString(e,t))}matchesShortcutString(e,t){let i=t.toLowerCase().split("+"),a=i[i.length-1],n=i.slice(0,-1);if(e.key.toLowerCase()!==a)return!1;let o=n.includes("ctrl")||n.includes("cmd"),r=n.includes("shift"),s=n.includes("alt");if(o&&!(e.metaKey||e.ctrlKey)||r&&!e.shiftKey||s&&!e.altKey)return!1;let l=[];return(e.metaKey||e.ctrlKey)&&l.push("ctrl"),e.shiftKey&&l.push("shift"),e.altKey&&l.push("alt"),l.length===n.length}}class vm{get options(){return this._options}constructor(e,t,i){this.host=e,this.host=e,this.queryClient=i??dW,this._options=t,this.observer=new dG(this.queryClient,this._options),this._result=this.observer.getCurrentResult(),this.host.addController(this)}get result(){return this._result}hostConnected(){this.unsubscribe?.(),this.unsubscribe=this.observer.subscribe(e=>{this._result=e,e.error&&!this._options.silentConsoleErrors&&this.logMutationError(e.error),this.host.requestUpdate()})}hostDisconnected(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=void 0)}mutate(e,t){this.observer.mutate(e,t).catch(()=>{})}mutateAsync(e,t){return this.observer.mutate(e,t)}setOptions(e){this._options={...this._options,...e},this.observer.setOptions(this._options)}reset(){this.observer.reset()}getMutationKey(){return this._options.mutationKey}logMutationError(e){console.error("[MutationController] Mutation failed:",e)}}let vf=rZ(),vy={SUCCESS:"success",ERROR:"error"};rT(vy),rg({filter:vf.optional()});class vb{constructor(e,t={},i){this.host=e,this._pendingCount=0,this.host=e,this.queryClient=i??dW,this.options=t,this._pendingCount=this.countPending(),this.host.addController(this)}get pendingCount(){return this._pendingCount}get lastSettled(){return this._lastSettled}hostConnected(){this.unsubscribe?.(),this.unsubscribe=this.queryClient.getMutationCache().subscribe(e=>this.onCacheEvent(e)),this.notifyIfChanged()}hostDisconnected(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=void 0)}matches(e){return!this.options.filter||this.options.filter(e)}countPending(){return this.queryClient.getMutationCache().getAll().filter(e=>"pending"===e.state.status&&this.matches(e)).length}onCacheEvent(e){if("updated"===e.type&&this.matches(e.mutation)){let{type:t}=e.action;(t===vy.SUCCESS||t===vy.ERROR)&&(this._lastSettled=t)}this.notifyIfChanged()}notifyIfChanged(){let e=this.countPending(),t=e!==this._pendingCount||this._lastSettled!==this.notifiedSettled;this._pendingCount=e,this.notifiedSettled=this._lastSettled,t&&this.host.requestUpdate()}}var vv=class extends cV{#s;#R=void 0;#M=void 0;#I=void 0;#L;#N;#P;#z;#U;#F;#j;#B;#H;#V=new Set;constructor(e,t){super(),this.options=t,this.#s=e,this.#P=null,this.bindMethods(),this.setOptions(t)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){1===this.listeners.size&&(this.#R.addObserver(this),v_(this.#R,this.options)?this.#q():this.updateResult(),this.#Z())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return vw(this.#R,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return vw(this.#R,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#W(),this.#G(),this.#R.removeObserver(this)}setOptions(e){let t=this.options,i=this.#R;if(this.options=this.#s.defaultQueryOptions(e),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled&&"function"!=typeof this.options.enabled&&"boolean"!=typeof cI(this.options.enabled,this.#R))throw Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#K(),this.#R.setOptions(this.options),t._defaulted&&!cL(this.options,t)&&this.#s.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#R,observer:this});let a=this.hasListeners();a&&vx(this.#R,i,this.options,t)&&this.#q(),this.updateResult(),a&&(this.#R!==i||cI(this.options.enabled,this.#R)!==cI(t.enabled,this.#R)||cI(this.options.staleTime,this.#R)!==cI(t.staleTime,this.#R))&&this.#Y();let n=this.#Q();a&&(this.#R!==i||cI(this.options.enabled,this.#R)!==cI(t.enabled,this.#R)||n!==this.#H)&&this.#X(n)}getOptimisticResult(e){let t=this.#s.getQueryCache().build(this.#s,e),i=this.createResult(t,e);return cL(this.getCurrentResult(),i)||(this.#I=i,this.#N=this.options,this.#L=this.#R.state),i}getCurrentResult(){return this.#I}trackResult(e,t){return new Proxy(e,{get:(e,i)=>(this.trackProp(i),t?.(i),Reflect.get(e,i))})}trackProp(e){this.#V.add(e)}getCurrentQuery(){return this.#R}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){let t,i=this.#s.defaultQueryOptions(e),a=this.#s.getQueryCache().build(this.#s,i),n=()=>{},o=new Promise(e=>{t=e,n=this.#s.getQueryCache().subscribe(t=>{"updated"===t.type&&t.query.queryHash===a.queryHash&&void 0!==a.state.data&&(n(),e(this.createResult(a,i)))})});return Promise.race([a.fetch().then(()=>{let e=this.createResult(a,i);return t?.(e),e}).finally(()=>{n()}),o])}fetch(e){return this.#q({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#I))}#q(e){this.#K();let t=this.#R.fetch(this.options,e);return e?.throwOnError||(t=t.catch(cS)),t}#J(e){return!cE&&!1!==cI(this.options.enabled,this.#R)&&cC(e)}#Y(){this.#W();let e=cI(this.options.staleTime,this.#R);if(this.#I.isStale||!this.#J(e))return;let t=cT(this.#I.dataUpdatedAt,e)+1;this.#j=ck.setTimeout(()=>{this.#I.isStale||this.updateResult()},t)}#Q(){return cI(this.options.refetchInterval,this.#R)??!1}#X(e){this.#G(),this.#H=e,0!==this.#H&&this.#J(this.#H)&&(this.#B=ck.setInterval(()=>{(this.options.refetchIntervalInBackground||cq.isFocused())&&this.#q()},this.#H))}#Z(){this.#Y(),this.#X(this.#Q())}#W(){void 0!==this.#j&&(ck.clearTimeout(this.#j),this.#j=void 0)}#G(){void 0!==this.#B&&(ck.clearInterval(this.#B),this.#B=void 0)}createResult(e,t){let i,a=this.#R,n=this.options,o=this.#I,r=this.#L,s=this.#N,l=e!==a?e.state:this.#M,{state:c}=e,d={...c},u=!1;if(t._optimisticResults){let i=this.hasListeners(),o=!i&&v_(e,t),r=i&&vx(e,a,t,n);(o||r)&&(d={...d,...c5(c.data,e.options)}),"isRestoring"===t._optimisticResults&&(d.fetchStatus="idle")}let{error:p,errorUpdatedAt:h,status:g}=d;i=d.data;let m=!1;if(void 0!==t.placeholderData&&void 0===i&&"pending"===g){let e;o?.isPlaceholderData&&t.placeholderData===s?.placeholderData?(e=o.data,m=!0):e="function"==typeof t.placeholderData?t.placeholderData(this.#F?.state.data,this.#F):t.placeholderData,void 0!==e&&(g="success",i=cU(o?.data,e,t),u=!0)}if(t.select&&void 0!==i&&!m)if(o&&i===r?.data&&t.select===this.#z)i=this.#U;else try{this.#z=t.select,i=t.select(i),i=cU(o?.data,i,t),this.#U=i,this.#P=null}catch(e){this.#P=e}else void 0===i&&(this.#P=null);this.#P&&(p=this.#P,i=this.#U,h=Date.now(),g="error",u=!1);let f="fetching"===d.fetchStatus,y="pending"===g,b="error"===g,v=y&&f,_=void 0!==i;return{status:g,fetchStatus:d.fetchStatus,isPending:y,isSuccess:"success"===g,isError:b,isInitialLoading:v,isLoading:v,data:i,dataUpdatedAt:d.dataUpdatedAt,error:p,errorUpdatedAt:h,failureCount:d.fetchFailureCount,failureReason:d.fetchFailureReason,errorUpdateCount:d.errorUpdateCount,isFetched:e.isFetched(),isFetchedAfterMount:d.dataUpdateCount>l.dataUpdateCount||d.errorUpdateCount>l.errorUpdateCount,isFetching:f,isRefetching:f&&!y,isLoadingError:b&&!_,isPaused:"paused"===d.fetchStatus,isPlaceholderData:u,isRefetchError:b&&_,isStale:vk(e,t),refetch:this.refetch,isEnabled:!1!==cI(t.enabled,e)}}updateResult(){let e=this.#I,t=this.createResult(this.#R,this.options);if(this.#L=this.#R.state,this.#N=this.options,void 0!==this.#L.data&&(this.#F=this.#R),cL(t,e))return;this.#I=t;let i=(()=>{if(!e)return!0;let{notifyOnChangeProps:t}=this.options,i="function"==typeof t?t():t;if("all"===i||!i&&!this.#V.size)return!0;let a=new Set(i??this.#V);return this.options.throwOnError&&a.add("error"),Object.keys(this.#I).some(t=>this.#I[t]!==e[t]&&a.has(t))})();cZ.batch(()=>{i&&this.listeners.forEach(e=>{e(this.#I)}),this.#s.getQueryCache().notify({query:this.#R,type:"observerResultsUpdated"})})}#K(){let e=this.#s.getQueryCache().build(this.#s,this.options);if(e===this.#R)return;let t=this.#R;this.#R=e,this.#M=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#Z()}};function v_(e,t){return!1!==cI(t.enabled,e)&&void 0===e.state.data&&("error"!==e.state.status||!1!==cI(t.retryOnMount,e))||void 0!==e.state.data&&vw(e,t,t.refetchOnMount)}function vw(e,t,i){if(!1!==cI(t.enabled,e)&&"static"!==cI(t.staleTime,e)){let a=cI(i,e);return"always"===a||!1!==a&&vk(e,t)}return!1}function vx(e,t,i,a){return(e!==t||!1===cI(a.enabled,e))&&(!i.suspense||"error"!==e.state.status)&&vk(e,i)}function vk(e,t){return!1!==cI(t.enabled,e)&&e.isStaleByTime(cI(t.staleTime,e))}class vE{constructor(e,t){this.host=e,this.host=e,this.queryClient=dW,"function"==typeof t?(this.optionsGetter=t,this.options=t()):this.options=t,this.observer=new vv(this.queryClient,this.options),this._result=this.observer.getCurrentResult(),this.host.addController(this)}get result(){return this._result}hostConnected(){this.unsubscribe?.(),this.unsubscribe=this.observer.subscribe(e=>{this._result=e,e.error&&!this.options.silentConsoleErrors&&this.logQueryError(e.error),this.resultUpdated?.(e),this.host.requestUpdate()})}hostDisconnected(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=void 0)}hostUpdated(){let e;if(this.optionsGetter){try{e=this.optionsGetter()}catch{return}this.optionsChanged(e)&&(this.options=e,this.observer.setOptions(this.options))}}optionsChanged(e){let t=this.options;return t.enabled!==e.enabled||(t.queryKey?cO(t.queryKey):void 0)!==(e.queryKey?cO(e.queryKey):void 0)}setOptions(e){this.options={...this.options,...e},this.observer.setOptions(this.options)}refetch(e){return this.observer.refetch(e)}removeQueryFromCache(){this.queryClient.removeQueries({queryKey:this.options.queryKey})}logQueryError(e){console.error("[QueryController] Query failed:",this.options.queryKey,e)}}class vS extends vE{constructor(e,t){let{schema:i,persistenceReady:a,...n}=t;super(e,{...n,enabled:!a&&(n.enabled??!0)}),this.discarded=!1,this.schema=i,a&&a.then(()=>{this.setOptions({enabled:!0})},e=>{console.warn("[PersistedQueryController] Persistence did not restore; enabling the query without it:",this.options.queryKey,e),this.setOptions({enabled:!0})}),this.discardInvalidData(this.result)}get data(){return this.result.data}resultUpdated(e){this.discardInvalidData(e)}discardInvalidData(e){if(!this.schema||this.discarded||"success"!==e.status)return;let t=this.schema.safeParse(e.data);t.success||(this.discarded=!0,console.warn("[PersistedQueryController] Stored data failed validation, resetting the query:",this.options.queryKey,t.error),dW.resetQueries({queryKey:this.options.queryKey,exact:!0}))}update(e){let t,i=this.result.data;if(!i)return void console.warn("Cannot update: no data available yet");if(t="function"==typeof e?e(i):Object.assign({},i,e),this.schema)try{t=this.schema.parse(t)}catch(e){throw console.error("Validation failed:",e),e}dW.setQueryData(this.options.queryKey,t)}}let vC="--uas--resize_controller--width",vT="--uas--resize_controller--height",vI={LEFT:"left",RIGHT:"right",TOP:"top",BOTTOM:"bottom"},vD=rT(vI),vA=rg({width:o5(),height:o5(),deltaX:o5(),deltaY:o5()});rg({handleSelector:oR().optional(),side:vD.optional(),initialWidth:o5().or(rV({input:[],output:o5()})).optional(),initialHeight:o5().or(rV({input:[],output:o5()})).optional(),defaultWidth:o5().optional(),defaultHeight:o5().optional(),minWidth:o5().or(rV({input:[],output:o5()})).optional(),maxWidth:o5().or(rV({input:[],output:o5()})).optional(),minHeight:o5().or(rV({input:[],output:o5()})).optional(),maxHeight:o5().or(rV({input:[],output:o5()})).optional(),snapToGrid:o5().optional(),onResizeStart:rV({input:[vA],output:rc()}).optional(),onResize:rV({input:[vA],output:rc()}).optional(),onResizeEnd:rV({input:[vA],output:rc()}).optional()});let v$={HORIZONTAL:"horizontal",VERTICAL:"vertical"};rT(v$);class vO{constructor(e,t={}){this.isResizing=!1,this.startX=0,this.startY=0,this.startWidth=0,this.startHeight=0,this.currentHandle=null,this.dragOverlay=null,this.handleWindowResize=()=>{if(this.isResizing)return;let e=this.getResolvedConstraints(),t=this.host.getBoundingClientRect(),i=t.width,a=t.height;if(this.cachedAxis===v$.HORIZONTAL){let t=this.applyConstraints(i,e.minWidth,e.maxWidth);t!==i&&this.host.style.setProperty(vC,`${t}px`)}else{let t=this.applyConstraints(a,e.minHeight,e.maxHeight);t!==a&&this.host.style.setProperty(vT,`${t}px`)}},this.handleStart=e=>{if(!(e instanceof MouseEvent))return;e.preventDefault(),this.isResizing=!0,this.startX=e.clientX,this.startY=e.clientY;let t=this.host.getBoundingClientRect();this.startWidth=t.width,this.startHeight=t.height,document.addEventListener("mousemove",this.handleMove),document.addEventListener("mouseup",this.handleEnd),document.body.style.userSelect="none",document.body.style.cursor=this.getCursorStyle(),this.dragOverlay=document.createElement("div"),this.dragOverlay.style.position="fixed",this.dragOverlay.style.inset="0",this.dragOverlay.style.zIndex="999999",this.dragOverlay.style.cursor=this.getCursorStyle(),document.body.appendChild(this.dragOverlay),this.options.onResizeStart&&this.options.onResizeStart({width:this.startWidth,height:this.startHeight,deltaX:0,deltaY:0})},this.handleMove=e=>{if(!this.isResizing)return;let t=this.startX-e.clientX,i=this.startY-e.clientY,a=this.startWidth,n=this.startHeight;switch(this.options.side){case vI.LEFT:a=this.startWidth+t;break;case vI.RIGHT:a=this.startWidth-t;break;case vI.TOP:n=this.startHeight+i;break;case vI.BOTTOM:n=this.startHeight-i}let o=this.getResolvedConstraints();a=this.applyConstraints(a,o.minWidth,o.maxWidth),n=this.applyConstraints(n,o.minHeight,o.maxHeight),this.options.snapToGrid>0&&(a=Math.round(a/this.options.snapToGrid)*this.options.snapToGrid,n=Math.round(n/this.options.snapToGrid)*this.options.snapToGrid),this.axis===v$.HORIZONTAL?this.host.style.setProperty(vC,`${a}px`):this.host.style.setProperty(vT,`${n}px`),this.options.onResize&&this.options.onResize({width:a,height:n,deltaX:this.axis===v$.HORIZONTAL?a-this.startWidth:0,deltaY:this.axis===v$.VERTICAL?n-this.startHeight:0})},this.handleEnd=()=>{if(!this.isResizing)return;this.isResizing=!1,document.removeEventListener("mousemove",this.handleMove),document.removeEventListener("mouseup",this.handleEnd),document.body.style.userSelect="",document.body.style.cursor="",this.dragOverlay?.remove(),this.dragOverlay=null;let e=this.host.getBoundingClientRect(),t=e.width,i=e.height;this.options.onResizeEnd&&this.options.onResizeEnd({width:t,height:i,deltaX:this.axis===v$.HORIZONTAL?t-this.startWidth:0,deltaY:this.axis===v$.VERTICAL?i-this.startHeight:0})},this.host=e,this.options={handleSelector:t.handleSelector??".resize-handle",side:t.side??vI.LEFT,defaultWidth:t.defaultWidth??400,defaultHeight:t.defaultHeight??300,minWidth:t.minWidth??0,maxWidth:t.maxWidth??1/0,minHeight:t.minHeight??0,maxHeight:t.maxHeight??1/0,snapToGrid:t.snapToGrid??0,initialWidth:t.initialWidth,initialHeight:t.initialHeight,onResizeStart:t.onResizeStart,onResize:t.onResize,onResizeEnd:t.onResizeEnd},this.cachedAxis=this.computeAxis(this.options.side),e.addController(this)}computeAxis(e){return e===vI.LEFT||e===vI.RIGHT?v$.HORIZONTAL:v$.VERTICAL}resolveConstraint(e,t){return void 0===e?t:"function"==typeof e?e():e}getResolvedConstraints(){return{minWidth:this.resolveConstraint(this.options.minWidth,0),maxWidth:this.resolveConstraint(this.options.maxWidth,1/0),minHeight:this.resolveConstraint(this.options.minHeight,0),maxHeight:this.resolveConstraint(this.options.maxHeight,1/0)}}applyConstraints(e,t,i){return e<t?t:i>=t&&e>i?i:e}resolveInitialValue(e,t){return void 0===e?t:"function"==typeof e?e()??t:e}hostConnected(){this.host.style.flex="0 0 auto";let e=this.getResolvedConstraints();if(this.cachedAxis===v$.HORIZONTAL){let t=this.resolveInitialValue(this.options.initialWidth,this.options.defaultWidth),i=this.applyConstraints(t,e.minWidth,e.maxWidth);this.host.style.setProperty(vC,`${i}px`),this.host.style.width=`var(${vC})`}else{let t=this.resolveInitialValue(this.options.initialHeight,this.options.defaultHeight),i=this.applyConstraints(t,e.minHeight,e.maxHeight);this.host.style.setProperty(vT,`${i}px`),this.host.style.height=`var(${vT})`}window.addEventListener("resize",this.handleWindowResize),requestAnimationFrame(()=>{this.attachHandleListener()})}hostDisconnected(){window.removeEventListener("resize",this.handleWindowResize),this.cleanup()}hostUpdated(){this.attachHandleListener()}attachHandleListener(){let e=this.host.shadowRoot;if(!e)return;let t=e.querySelector(this.options.handleSelector);t!==this.currentHandle&&(this.currentHandle&&this.currentHandle.removeEventListener("mousedown",this.handleStart),t&&t.addEventListener("mousedown",this.handleStart),this.currentHandle=t)}updateOptions(e){this.options={...this.options,...e},void 0!==e.side&&(this.cachedAxis=this.computeAxis(e.side))}get axis(){return this.cachedAxis}cleanup(){this.currentHandle&&(this.currentHandle.removeEventListener("mousedown",this.handleStart),this.currentHandle=null),document.removeEventListener("mousemove",this.handleMove),document.removeEventListener("mouseup",this.handleEnd)}getCursorStyle(){switch(this.options.side){case vI.LEFT:case vI.RIGHT:return"ew-resize";case vI.TOP:case vI.BOTTOM:return"ns-resize"}}}function vR(){return(vR=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var a in i)({}).hasOwnProperty.call(i,a)&&(e[a]=i[a])}return e}).apply(null,arguments)}(wy=wx||(wx={})).Pop="POP",wy.Push="PUSH",wy.Replace="REPLACE";let vM="popstate";function vL(e,t){if(!1===e||null==e)throw Error(t)}function vN(e,t){if(!e){"u">typeof console&&console.warn(t);try{throw Error(t)}catch{}}}function vP(e,t){return{usr:e.state,key:e.key,idx:t}}function vz(e,t,i,a){return void 0===i&&(i=null),vR({pathname:"string"==typeof e?e:e.pathname,search:"",hash:""},"string"==typeof t?vF(t):t,{state:i,key:t&&t.key||a||Math.random().toString(36).substr(2,8)})}function vU(e){let{pathname:t="/",search:i="",hash:a=""}=e;return i&&"?"!==i&&(t+="?"===i.charAt(0)?i:"?"+i),a&&"#"!==a&&(t+="#"===a.charAt(0)?a:"#"+a),t}function vF(e){let t={};if(e){let i=e.indexOf("#");i>=0&&(t.hash=e.substr(i),e=e.substr(0,i));let a=e.indexOf("?");a>=0&&(t.search=e.substr(a),e=e.substr(0,a)),e&&(t.pathname=e)}return t}(wb=wk||(wk={})).data="data",wb.deferred="deferred",wb.redirect="redirect",wb.error="error";let vj=new Set(["lazy","caseSensitive","path","id","index","children"]);function vB(e,t,i,a){return void 0===i&&(i=[]),void 0===a&&(a={}),e.map((e,n)=>{let o=[...i,String(n)],r="string"==typeof e.id?e.id:o.join("-");if(vL(!0!==e.index||!e.children,"Cannot specify children on an index route"),vL(!a[r],'Found a route id collision on id "'+r+"\". Route id's must be globally unique within Data Router usages"),!0===e.index){let i=vR({},e,t(e),{id:r});return a[r]=i,i}{let i=vR({},e,t(e),{id:r,children:void 0});return a[r]=i,e.children&&(i.children=vB(e.children,t,o,a)),i}})}function vH(e,t,i){return void 0===i&&(i="/"),vV(e,t,i,!1)}function vV(e,t,i,a){let n=vG(("string"==typeof t?vF(t):t).pathname||"/",i);if(null==n)return null;let o=function e(t,i,a,n){void 0===i&&(i=[]),void 0===a&&(a=[]),void 0===n&&(n="");let o=(t,o,r)=>{var s,l;let c,d,u={relativePath:void 0===r?t.path||"":r,caseSensitive:!0===t.caseSensitive,childrenIndex:o,route:t};u.relativePath.startsWith("/")&&(vL(u.relativePath.startsWith(n),'Absolute route path "'+u.relativePath+'" nested under path "'+n+'" is not valid. An absolute child route path must start with the combined path of all its parent routes.'),u.relativePath=u.relativePath.slice(n.length));let p=vX([n,u.relativePath]),h=a.concat(u);t.children&&t.children.length>0&&(vL(!0!==t.index,'Index routes must not have child routes. Please remove all child routes from route path "'+p+'".'),e(t.children,i,h,p)),(null!=t.path||t.index)&&i.push({path:p,score:(s=p,l=t.index,d=(c=s.split("/")).length,c.some(vZ)&&(d+=-2),l&&(d+=2),c.filter(e=>!vZ(e)).reduce((e,t)=>e+(vq.test(t)?3:""===t?1:10),d)),routesMeta:h})};return t.forEach((e,t)=>{var i;if(""!==e.path&&null!=(i=e.path)&&i.includes("?"))for(let i of function e(t){let i=t.split("/");if(0===i.length)return[];let[a,...n]=i,o=a.endsWith("?"),r=a.replace(/\?$/,"");if(0===n.length)return o?[r,""]:[r];let s=e(n.join("/")),l=[];return l.push(...s.map(e=>""===e?r:[r,e].join("/"))),o&&l.push(...s),l.map(e=>t.startsWith("/")&&""===e?"/":e)}(e.path))o(e,t,i);else o(e,t)}),i}(e);o.sort((e,t)=>{var i,a;return e.score!==t.score?t.score-e.score:(i=e.routesMeta.map(e=>e.childrenIndex),a=t.routesMeta.map(e=>e.childrenIndex),i.length===a.length&&i.slice(0,-1).every((e,t)=>e===a[t])?i[i.length-1]-a[a.length-1]:0)});let r=null,s=function(e){try{return e.split("/").map(e=>decodeURIComponent(e).replace(/\//g,"%2F")).join("/")}catch(t){return vN(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent encoding ('+t+")."),e}}(n);for(let e=0;null==r&&e<o.length;++e)r=function(e,t,i){void 0===i&&(i=!1);let{routesMeta:a}=e,n={},o="/",r=[];for(let e=0;e<a.length;++e){let s=a[e],l=e===a.length-1,c="/"===o?t:t.slice(o.length)||"/",d=vW({path:s.relativePath,caseSensitive:s.caseSensitive,end:l},c),u=s.route;if(!d&&l&&i&&!a[a.length-1].route.index&&(d=vW({path:s.relativePath,caseSensitive:s.caseSensitive,end:!1},c)),!d)return null;Object.assign(n,d.params),r.push({params:n,pathname:vX([o,d.pathname]),pathnameBase:vJ(vX([o,d.pathnameBase])),route:u}),"/"!==d.pathnameBase&&(o=vX([o,d.pathnameBase]))}return r}(o[e],s,a);return r}let vq=/^:[\w-]+$/,vZ=e=>"*"===e;function vW(e,t){var i,a,n;let o,r;"string"==typeof e&&(e={path:e,caseSensitive:!1,end:!0});let[s,l]=(i=e.path,a=e.caseSensitive,n=e.end,void 0===a&&(a=!1),void 0===n&&(n=!0),vN("*"===i||!i.endsWith("*")||i.endsWith("/*"),'Route path "'+i+'" will be treated as if it were "'+i.replace(/\*$/,"/*")+'" because the `*` character must always follow a `/` in the pattern. To get rid of this warning, please change the route path to "'+i.replace(/\*$/,"/*")+'".'),o=[],r="^"+i.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(e,t,i)=>(o.push({paramName:t,isOptional:null!=i}),i?"/?([^\\/]+)?":"/([^\\/]+)")),i.endsWith("*")?(o.push({paramName:"*"}),r+="*"===i||"/*"===i?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?r+="\\/*$":""!==i&&"/"!==i&&(r+="(?:(?=\\/|$))"),[new RegExp(r,a?void 0:"i"),o]),c=t.match(s);if(!c)return null;let d=c[0],u=d.replace(/(.)\/+$/,"$1"),p=c.slice(1);return{params:l.reduce((e,t,i)=>{let{paramName:a,isOptional:n}=t;if("*"===a){let e=p[i]||"";u=d.slice(0,d.length-e.length).replace(/(.)\/+$/,"$1")}let o=p[i];return n&&!o?e[a]=void 0:e[a]=(o||"").replace(/%2F/g,"/"),e},{}),pathname:d,pathnameBase:u,pattern:e}}function vG(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let i=t.endsWith("/")?t.length-1:t.length,a=e.charAt(i);return a&&"/"!==a?null:e.slice(i)||"/"}function vK(e,t){let i=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(e=>{".."===e?i.length>1&&i.pop():"."!==e&&i.push(e)}),i.length>1?i.join("/"):"/"}function vY(e,t,i,a){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field [")+JSON.stringify(a)+"]. Please separate it out to the `to."+i+'` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.'}function vQ(e){return e.filter((e,t)=>0===t||e.route.path&&e.route.path.length>0)}let vX=e=>e.join("/").replace(/\/\/+/g,"/"),vJ=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/");class v1{constructor(e,t,i,a){void 0===a&&(a=!1),this.status=e,this.statusText=t||"",this.internal=a,i instanceof Error?(this.data=i.toString(),this.error=i):this.data=i}}function v0(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"boolean"==typeof e.internal&&"data"in e}let v2=["post","put","patch","delete"],v3=new Set(v2),v4=new Set(["get",...v2]),v6=new Set([301,302,303,307,308]),v5=new Set([307,308]),v8={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},v7={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},v9={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},_e=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,_t=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),_i="remix-router-transitions";function _a(e,t,i,a,n,o,r,s){let l,c,d;if(r){for(let e of(l=[],t))if(l.push(e),e.route.id===r){c=e;break}}else l=t,c=t[t.length-1];let u=function(e,t,i,a){let n,o;void 0===a&&(a=!1),"string"==typeof e?n=vF(e):(vL(!(n=vR({},e)).pathname||!n.pathname.includes("?"),vY("?","pathname","search",n)),vL(!n.pathname||!n.pathname.includes("#"),vY("#","pathname","hash",n)),vL(!n.search||!n.search.includes("#"),vY("#","search","hash",n)));let r=""===e||""===n.pathname,s=r?"/":n.pathname;if(null==s)o=i;else{let e=t.length-1;if(!a&&s.startsWith("..")){let t=s.split("/");for(;".."===t[0];)t.shift(),e-=1;n.pathname=t.join("/")}o=e>=0?t[e]:"/"}let l=function(e,t){let i,a;void 0===t&&(t="/");let{pathname:n,search:o="",hash:r=""}="string"==typeof e?vF(e):e;return{pathname:n?(n=n.replace(/\/\/+/g,"/")).startsWith("/")?vK(n.substring(1),"/"):vK(n,t):t,search:(i=o)&&"?"!==i?i.startsWith("?")?i:"?"+i:"",hash:(a=r)&&"#"!==a?a.startsWith("#")?a:"#"+a:""}}(n,o),c=s&&"/"!==s&&s.endsWith("/"),d=(r||"."===s)&&i.endsWith("/");return!l.pathname.endsWith("/")&&(c||d)&&(l.pathname+="/"),l}(n||".",(d=vQ(l),o?d.map((e,t)=>t===d.length-1?e.pathname:e.pathnameBase):d.map(e=>e.pathnameBase)),vG(e.pathname,i)||e.pathname,"path"===s);if(null==n&&(u.search=e.search,u.hash=e.hash),(null==n||""===n||"."===n)&&c){let e=_$(u.search);if(c.route.index&&!e)u.search=u.search?u.search.replace(/^\?/,"?index&"):"?index";else if(!c.route.index&&e){let e=new URLSearchParams(u.search),t=e.getAll("index");e.delete("index"),t.filter(e=>e).forEach(t=>e.append("index",t));let i=e.toString();u.search=i?"?"+i:""}}return a&&"/"!==i&&(u.pathname="/"===u.pathname?i:vX([i,u.pathname])),vU(u)}function _n(e,t,i,a){var n;let o,r;if(!a||!(null!=a&&("formData"in a&&null!=a.formData||"body"in a&&void 0!==a.body)))return{path:i};if(a.formMethod&&(n=a.formMethod,!v4.has(n.toLowerCase())))return{path:i,error:_w(405,{method:a.formMethod})};let s=()=>({path:i,error:_w(400,{type:"invalid-body"})}),l=a.formMethod||"get",c=e?l.toUpperCase():l.toLowerCase(),d=_k(i);if(void 0!==a.body){if("text/plain"===a.formEncType){if(!_D(c))return s();let e="string"==typeof a.body?a.body:a.body instanceof FormData||a.body instanceof URLSearchParams?Array.from(a.body.entries()).reduce((e,t)=>{let[i,a]=t;return""+e+i+"="+a+` `},""):String(a.body);return{path:i,submission:{formMethod:c,formAction:d,formEncType:a.formEncType,formData:void 0,json:void 0,text:e}}}else if("application/json"===a.formEncType){if(!_D(c))return s();try{let e="string"==typeof a.body?JSON.parse(a.body):a.body;return{path:i,submission:{formMethod:c,formAction:d,formEncType:a.formEncType,formData:void 0,json:e,text:void 0}}}catch{return s()}}}if(vL("function"==typeof FormData,"FormData is not available in this environment"),a.formData)o=_g(a.formData),r=a.formData;else if(a.body instanceof FormData)o=_g(a.body),r=a.body;else if(a.body instanceof URLSearchParams)r=_m(o=a.body);else if(null==a.body)o=new URLSearchParams,r=new FormData;else try{o=new URLSearchParams(a.body),r=_m(o)}catch{return s()}let u={formMethod:c,formAction:d,formEncType:a&&a.formEncType||"application/x-www-form-urlencoded",formData:r,json:void 0,text:void 0};if(_D(u.formMethod))return{path:i,submission:u};let p=vF(i);return t&&p.search&&_$(p.search)&&o.append("index",""),p.search="?"+o,{path:vU(p),submission:u}}function _o(e,t,i){void 0===i&&(i=!1);let a=e.findIndex(e=>e.route.id===t);return a>=0?e.slice(0,i?a+1:a):e}function _r(e,t,i,a,n,o,r,s,l,c,d,u,p,h,g,m){let f=m?_S(m[1])?m[1].error:m[1].data:void 0,y=e.createURL(t.location),b=e.createURL(n),v=i;o&&t.errors?v=_o(i,Object.keys(t.errors)[0],!0):m&&_S(m[1])&&(v=_o(i,m[0]));let _=m?m[1].statusCode:void 0,w=r&&_&&_>=400,x=v.filter((e,i)=>{var n,r,c;let d,u,{route:p}=e;if(p.lazy)return!0;if(null==p.loader)return!1;if(o)return _s(p,t.loaderData,t.errors);if(n=t.loaderData,r=t.matches[i],c=e,d=!r||c.route.id!==r.route.id,u=void 0===n[c.route.id],d||u||l.some(t=>t===e.route.id))return!0;let h=t.matches[i];return _c(e,vR({currentUrl:y,currentParams:h.params,nextUrl:b,nextParams:e.params},a,{actionResult:f,actionStatus:_,defaultShouldRevalidate:!w&&(s||y.pathname+y.search===b.pathname+b.search||y.search!==b.search||_l(h,e))}))}),k=[];return u.forEach((e,n)=>{if(o||!i.some(t=>t.route.id===e.routeId)||d.has(n))return;let r=vH(h,e.path,g);if(!r)return void k.push({key:n,routeId:e.routeId,path:e.path,matches:null,match:null,controller:null});let l=t.fetchers.get(n),u=_O(r,e.path),m=!1;p.has(n)?m=!1:c.has(n)?(c.delete(n),m=!0):m=l&&"idle"!==l.state&&void 0===l.data?s:_c(u,vR({currentUrl:y,currentParams:t.matches[t.matches.length-1].params,nextUrl:b,nextParams:i[i.length-1].params},a,{actionResult:f,actionStatus:_,defaultShouldRevalidate:!w&&s})),m&&k.push({key:n,routeId:e.routeId,path:e.path,matches:r,match:u,controller:new AbortController})}),[x,k]}function _s(e,t,i){if(e.lazy)return!0;if(!e.loader)return!1;let a=null!=t&&void 0!==t[e.id],n=null!=i&&void 0!==i[e.id];return(!!a||!n)&&("function"==typeof e.loader&&!0===e.loader.hydrate||!a&&!n)}function _l(e,t){let i=e.route.path;return e.pathname!==t.pathname||null!=i&&i.endsWith("*")&&e.params["*"]!==t.params["*"]}function _c(e,t){if(e.route.shouldRevalidate){let i=e.route.shouldRevalidate(t);if("boolean"==typeof i)return i}return t.defaultShouldRevalidate}function _d(e,t,i,a,n){var o;let r;if(e){let t=a[e];vL(t,"No route found to patch children into: routeId = "+e),t.children||(t.children=[]),r=t.children}else r=i;let s=vB(t.filter(e=>!r.some(t=>(function e(t,i){return"id"in t&&"id"in i&&t.id===i.id||t.index===i.index&&t.path===i.path&&t.caseSensitive===i.caseSensitive&&((!t.children||0===t.children.length)&&(!i.children||0===i.children.length)||t.children.every((t,a)=>{var n;return null==(n=i.children)?void 0:n.some(i=>e(t,i))}))})(e,t))),n,[e||"_","patch",String((null==(o=r)?void 0:o.length)||"0")],a);r.push(...s)}async function _u(e){let{matches:t}=e,i=t.filter(e=>e.shouldLoad);return(await Promise.all(i.map(e=>e.resolve()))).reduce((e,t,a)=>Object.assign(e,{[i[a].route.id]:t}),{})}function _p(e,t,i,a){let n=["about:","blob:","chrome:","chrome-untrusted:","content:","data:","devtools:","file:","filesystem:","javascript:"];if(_e.test(e)){let a=new URL(e.startsWith("//")?t.protocol+e:e);if(n.includes(a.protocol))throw Error("Invalid redirect location");let o=null!=vG(a.pathname,i);if(a.origin===t.origin&&o)return a.pathname.replace(/\/\/+/g,"/")+a.search+a.hash}try{let t=a.createURL(e);if(n.includes(t.protocol))throw Error("Invalid redirect location")}catch{}return e}function _h(e,t,i,a){let n=e.createURL(_k(t)).toString(),o={signal:i};if(a&&_D(a.formMethod)){let{formMethod:e,formEncType:t}=a;o.method=e.toUpperCase(),"application/json"===t?(o.headers=new Headers({"Content-Type":t}),o.body=JSON.stringify(a.json)):"text/plain"===t?o.body=a.text:"application/x-www-form-urlencoded"===t&&a.formData?o.body=_g(a.formData):o.body=a.formData}return new Request(n,o)}function _g(e){let t=new URLSearchParams;for(let[i,a]of e.entries())t.append(i,"string"==typeof a?a:a.name);return t}function _m(e){let t=new FormData;for(let[i,a]of e.entries())t.append(i,a);return t}function _f(e,t,i,a,n,o,r){let s,l,c,d,u,p,{loaderData:h,errors:g}=(l={},c=null,d=!1,u={},p=a&&_S(a[1])?a[1].error:void 0,t.forEach(e=>{if(!(e.route.id in i))return;let a=e.route.id,n=i[a];if(vL(!_C(n),"Cannot handle redirect results in processLoaderData"),_S(n)){let e=n.error;void 0!==p&&(e=p,p=void 0),c=c||{},1;{let i=_v(t,a);null==c[i.route.id]&&(c[i.route.id]=e)}l[a]=void 0,d||(d=!0,s=v0(n.error)?n.error.status:500),n.headers&&(u[a]=n.headers)}else _E(n)?(r.set(a,n.deferredData),l[a]=n.deferredData.data,null==n.statusCode||200===n.statusCode||d||(s=n.statusCode)):(l[a]=n.data,n.statusCode&&200!==n.statusCode&&!d&&(s=n.statusCode)),n.headers&&(u[a]=n.headers)}),void 0!==p&&a&&(c={[a[0]]:p},l[a[0]]=void 0),{loaderData:l,errors:c,statusCode:s||200,loaderHeaders:u});return n.forEach(t=>{let{key:i,match:a,controller:n}=t,r=o[i];if(vL(r,"Did not find corresponding fetcher result"),!n||!n.signal.aborted)if(_S(r)){let t=_v(e.matches,null==a?void 0:a.route.id);g&&g[t.route.id]||(g=vR({},g,{[t.route.id]:r.error})),e.fetchers.delete(i)}else if(_C(r))vL(!1,"Unhandled fetcher revalidation redirect");else if(_E(r))vL(!1,"Unhandled fetcher deferred data");else{let t=_N(r.data);e.fetchers.set(i,t)}}),{loaderData:h,errors:g}}function _y(e,t,i,a){let n=vR({},t);for(let o of i){let i=o.route.id;if(t.hasOwnProperty(i)?void 0!==t[i]&&(n[i]=t[i]):void 0!==e[i]&&o.route.loader&&(n[i]=e[i]),a&&a.hasOwnProperty(i))break}return n}function _b(e){return e?_S(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function _v(e,t){return(t?e.slice(0,e.findIndex(e=>e.route.id===t)+1):[...e]).reverse().find(e=>!0===e.route.hasErrorBoundary)||e[0]}function __(e){let t=1===e.length?e[0]:e.find(e=>e.index||!e.path||"/"===e.path)||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function _w(e,t){let{pathname:i,routeId:a,method:n,type:o,message:r}=void 0===t?{}:t,s="Unknown Server Error",l="Unknown @remix-run/router error";return 400===e?(s="Bad Request",n&&i&&a?l="You made a "+n+' request to "'+i+'" but did not provide a `loader` for route "'+a+'", so there is no way to handle the request.':"defer-action"===o?l="defer() is not supported in actions":"invalid-body"===o&&(l="Unable to encode submission body")):403===e?(s="Forbidden",l='Route "'+a+'" does not match URL "'+i+'"'):404===e?(s="Not Found",l='No route matches URL "'+i+'"'):405===e&&(s="Method Not Allowed",n&&i&&a?l="You made a "+n.toUpperCase()+' request to "'+i+'" but did not provide an `action` for route "'+a+'", so there is no way to handle the request.':n&&(l='Invalid request method "'+n.toUpperCase()+'"')),new v1(e||500,s,Error(l),!0)}function _x(e){let t=Object.entries(e);for(let e=t.length-1;e>=0;e--){let[i,a]=t[e];if(_C(a))return{key:i,result:a}}}function _k(e){let t="string"==typeof e?vF(e):e;return vU(vR({},t,{hash:""}))}function _E(e){return e.type===wk.deferred}function _S(e){return e.type===wk.error}function _C(e){return(e&&e.type)===wk.redirect}function _T(e){return"object"==typeof e&&null!=e&&"type"in e&&"data"in e&&"init"in e&&"DataWithResponseInit"===e.type}function _I(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"object"==typeof e.headers&&void 0!==e.body}function _D(e){return v3.has(e.toLowerCase())}async function _A(e,t,i){if(void 0===i&&(i=!1),!await e.deferredData.resolveData(t)){if(i)try{return{type:wk.data,data:e.deferredData.unwrappedData}}catch(e){return{type:wk.error,error:e}}return{type:wk.data,data:e.deferredData.data}}}function _$(e){return new URLSearchParams(e).getAll("index").some(e=>""===e)}function _O(e,t){let i="string"==typeof t?vF(t).search:t.search;if(e[e.length-1].route.index&&_$(i||""))return e[e.length-1];let a=vQ(e);return a[a.length-1]}function _R(e){let{formMethod:t,formAction:i,formEncType:a,text:n,formData:o,json:r}=e;if(t&&i&&a){if(null!=n)return{formMethod:t,formAction:i,formEncType:a,formData:void 0,json:void 0,text:n};else if(null!=o)return{formMethod:t,formAction:i,formEncType:a,formData:o,json:void 0,text:void 0};else if(void 0!==r)return{formMethod:t,formAction:i,formEncType:a,formData:void 0,json:r,text:void 0}}}function _M(e,t){return t?{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function _L(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function _N(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}Symbol("deferred");class _P{constructor(e,t,i={}){this.host=e,this.options=i,this.routeInfoMap=new Map,this.outlet=null,this.params={},this.loc=null,this.currentRouteId=null,this.skipNextHostUpdate=!1,this.lastFiredParamsState=null,this.idToPathMap=new Map,this.routes=t,e.addController(this)}hostConnected(){var e;this.history=(void 0===e&&(e={}),function(e,t,i,a){void 0===a&&(a={});let{window:n=document.defaultView,v5Compat:o=!1}=a,r=n.history,s=wx.Pop,l=null,c=d();function d(){return(r.state||{idx:null}).idx}function u(){s=wx.Pop;let e=d(),t=null==e?null:e-c;c=e,l&&l({action:s,location:h.location,delta:t})}function p(e){let t="null"!==n.location.origin?n.location.origin:n.location.href,i="string"==typeof e?e:vU(e);return vL(t,"No window.location.(origin|href) available to create URL for href: "+(i=i.replace(/ $/,"%20"))),new URL(i,t)}null==c&&(c=0,r.replaceState(vR({},r.state,{idx:c}),""));let h={get action(){return s},get location(){return e(n,r)},listen(e){if(l)throw Error("A history only accepts one active listener");return n.addEventListener(vM,u),l=e,()=>{n.removeEventListener(vM,u),l=null}},createHref:e=>t(n,e),createURL:p,encodeLocation(e){let t=p(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(e,t){s=wx.Push;let a=vz(h.location,e,t);i&&i(a,e);let u=vP(a,c=d()+1),p=h.createHref(a);try{r.pushState(u,"",p)}catch(e){if(e instanceof DOMException&&"DataCloneError"===e.name)throw e;n.location.assign(p)}o&&l&&l({action:s,location:h.location,delta:1})},replace:function(e,t){s=wx.Replace;let a=vz(h.location,e,t);i&&i(a,e);let n=vP(a,c=d()),u=h.createHref(a);r.replaceState(n,"",u),o&&l&&l({action:s,location:h.location,delta:0})},go:e=>r.go(e)};return h}(function(e,t){let{pathname:i="/",search:a="",hash:n=""}=vF(e.location.hash.substr(1));return i.startsWith("/")||i.startsWith(".")||(i="/"+i),vz("",{pathname:i,search:a,hash:n},t.state&&t.state.usr||null,t.state&&t.state.key||"default")},function(e,t){let i=e.document.querySelector("base"),a="";if(i&&i.getAttribute("href")){let t=e.location.href,i=t.indexOf("#");a=-1===i?t:t.slice(0,i)}return a+"#"+("string"==typeof t?t:vU(t))},function(e,t){vN("/"===e.pathname.charAt(0),"relative pathnames are not supported in hash history.push("+JSON.stringify(t)+")")},e));let t=this.toRemixRoutes(this.routes);this.router=(function(e){let t,i,a,n,o,r,s=e.window?e.window:"u">typeof window?window:void 0,l=void 0!==s&&void 0!==s.document&&void 0!==s.document.createElement,c=!l;if(vL(e.routes.length>0,"You must provide a non-empty routes array to createRouter"),e.mapRouteProperties)t=e.mapRouteProperties;else if(e.detectErrorBoundary){let i=e.detectErrorBoundary;t=e=>({hasErrorBoundary:i(e)})}else t=_t;let d={},u=vB(e.routes,t,void 0,d),p=e.basename||"/",h=e.dataStrategy||_u,g=e.patchRoutesOnNavigation,m=vR({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1,v7_skipActionErrorRevalidation:!1},e.future),f=null,y=new Set,b=null,v=null,_=null,w=null!=e.hydrationData,x=vH(u,e.history.location,p),k=!1,E=null;if(null==x&&!g){let t=_w(404,{pathname:e.history.location.pathname}),{matches:i,route:a}=__(u);x=i,E={[a.id]:t}}if(x&&!e.hydrationData&&em(x,u,e.history.location.pathname).active&&(x=null),x)if(x.some(e=>e.route.lazy))a=!1;else if(x.some(e=>e.route.loader))if(m.v7_partialHydration){let t=e.hydrationData?e.hydrationData.loaderData:null,i=e.hydrationData?e.hydrationData.errors:null;if(i){let e=x.findIndex(e=>void 0!==i[e.route.id]);a=x.slice(0,e+1).every(e=>!_s(e.route,t,i))}else a=x.every(e=>!_s(e.route,t,i))}else a=null!=e.hydrationData;else a=!0;else if(a=!1,x=[],m.v7_partialHydration){let t=em(null,u,e.history.location.pathname);t.active&&t.matches&&(k=!0,x=t.matches)}let S={historyAction:e.history.action,location:e.history.location,matches:x,initialized:a,navigation:v8,restoreScrollPosition:null==e.hydrationData&&null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||E,fetchers:new Map,blockers:new Map},C=wx.Pop,T=!1,I=!1,D=new Map,A=null,O=!1,R=!1,M=[],L=new Set,N=new Map,P=0,z=-1,U=new Map,F=new Set,j=new Map,B=new Map,H=new Set,V=new Map,q=new Map;function Z(e,t){void 0===t&&(t={}),S=vR({},S,e);let i=[],a=[];m.v7_fetcherPersist&&S.fetchers.forEach((e,t)=>{"idle"===e.state&&(H.has(t)?a.push(t):i.push(t))}),H.forEach(e=>{S.fetchers.has(e)||N.has(e)||a.push(e)}),[...y].forEach(e=>e(S,{deletedFetchers:a,viewTransitionOpts:t.viewTransitionOpts,flushSync:!0===t.flushSync})),m.v7_fetcherPersist?(i.forEach(e=>S.fetchers.delete(e)),a.forEach(e=>ea(e))):a.forEach(e=>H.delete(e))}function W(t,a,n){var o,r;let s,l,{flushSync:c}=void 0===n?{}:n,d=null!=S.actionData&&null!=S.navigation.formMethod&&_D(S.navigation.formMethod)&&"loading"===S.navigation.state&&(null==(o=t.state)?void 0:o._isRedirect)!==!0;s=a.actionData?Object.keys(a.actionData).length>0?a.actionData:null:d?S.actionData:null;let p=a.loaderData?_y(S.loaderData,a.loaderData,a.matches||[],a.errors):S.loaderData,h=S.blockers;h.size>0&&(h=new Map(h)).forEach((e,t)=>h.set(t,v9));let g=!0===T||null!=S.navigation.formMethod&&_D(S.navigation.formMethod)&&(null==(r=t.state)?void 0:r._isRedirect)!==!0;if(i&&(u=i,i=void 0),O||C===wx.Pop||(C===wx.Push?e.history.push(t,t.state):C===wx.Replace&&e.history.replace(t,t.state)),C===wx.Pop){let e=D.get(S.location.pathname);e&&e.has(t.pathname)?l={currentLocation:S.location,nextLocation:t}:D.has(t.pathname)&&(l={currentLocation:t,nextLocation:S.location})}else if(I){let e=D.get(S.location.pathname);e?e.add(t.pathname):(e=new Set([t.pathname]),D.set(S.location.pathname,e)),l={currentLocation:S.location,nextLocation:t}}Z(vR({},a,{actionData:s,loaderData:p,historyAction:C,location:t,initialized:!0,navigation:v8,revalidation:"idle",restoreScrollPosition:eg(t,a.matches||S.matches),preventScrollReset:g,blockers:h}),{viewTransitionOpts:l,flushSync:!0===c}),C=wx.Pop,T=!1,I=!1,O=!1,R=!1,M=[]}async function G(t,a,n){var r,s,l,c;let d;o&&o.abort(),o=null,C=t,O=!0===(n&&n.startUninterruptedRevalidation),r=S.location,s=S.matches,b&&_&&(b[eh(r,s)]=_()),T=!0===(n&&n.preventScrollReset),I=!0===(n&&n.enableViewTransition);let h=i||u,g=n&&n.overrideNavigation,f=null!=n&&n.initialHydration&&S.matches&&S.matches.length>0&&!k?S.matches:vH(h,a,p),y=!0===(n&&n.flushSync);if(f&&S.initialized&&!R&&(l=S.location,c=a,l.pathname===c.pathname&&l.search===c.search&&(""===l.hash?""!==c.hash:l.hash===c.hash||""!==c.hash||!1))&&!(n&&n.submission&&_D(n.submission.formMethod)))return void W(a,{matches:f},{flushSync:y});let v=em(f,h,a.pathname);if(v.active&&v.matches&&(f=v.matches),!f){let{error:e,notFoundMatches:t,route:i}=eu(a.pathname);W(a,{matches:t,loaderData:{},errors:{[i.id]:e}},{flushSync:y});return}o=new AbortController;let w=_h(e.history,a,o.signal,n&&n.submission);if(n&&n.pendingError)d=[_v(f).route.id,{type:wk.error,error:n.pendingError}];else if(n&&n.submission&&_D(n.submission.formMethod)){let t=await async function(t,i,a,n,o,r){var s;let l;if(void 0===r&&(r={}),J(),Z({navigation:{state:"submitting",location:i,formMethod:(s=a).formMethod,formAction:s.formAction,formEncType:s.formEncType,formData:s.formData,json:s.json,text:s.text}},{flushSync:!0===r.flushSync}),o){let e=await ef(n,i.pathname,t.signal);if("aborted"===e.type)return{shortCircuited:!0};if("error"===e.type){let t=_v(e.partialMatches).route.id;return{matches:e.partialMatches,pendingActionResult:[t,{type:wk.error,error:e.error}]}}if(e.matches)n=e.matches;else{let{notFoundMatches:e,error:t,route:a}=eu(i.pathname);return{matches:e,pendingActionResult:[a.id,{type:wk.error,error:t}]}}}let c=_O(n,i);if(c.route.action||c.route.lazy){if(l=(await Q("action",S,t,[c],n,null))[c.route.id],t.signal.aborted)return{shortCircuited:!0}}else l={type:wk.error,error:_w(405,{method:t.method,pathname:i.pathname,routeId:c.route.id})};if(_C(l)){let i;return i=r&&null!=r.replace?r.replace:_p(l.response.headers.get("Location"),new URL(t.url),p,e.history)===S.location.pathname+S.location.search,await Y(t,l,!0,{submission:a,replace:i}),{shortCircuited:!0}}if(_E(l))throw _w(400,{type:"defer-action"});if(_S(l)){let e=_v(n,c.route.id);return!0!==(r&&r.replace)&&(C=wx.Push),{matches:n,pendingActionResult:[e.route.id,l]}}return{matches:n,pendingActionResult:[c.route.id,l]}}(w,a,n.submission,f,v.active,{replace:n.replace,flushSync:y});if(t.shortCircuited)return;if(t.pendingActionResult){let[e,i]=t.pendingActionResult;if(_S(i)&&v0(i.error)&&404===i.error.status){o=null,W(a,{matches:t.matches,loaderData:{},errors:{[e]:i.error}});return}}f=t.matches||f,d=t.pendingActionResult,g=_M(a,n.submission),y=!1,v.active=!1,w=_h(e.history,w.url,w.signal)}let{shortCircuited:x,matches:E,loaderData:D,errors:A}=await async function(t,a,n,r,s,l,c,d,h,g,f){let y=s||_M(a,l),b=l||c||_R(y),v=!O&&(!m.v7_partialHydration||!h);if(r){if(v){let e=K(f);Z(vR({navigation:y},void 0!==e?{actionData:e}:{}),{flushSync:g})}let e=await ef(n,a.pathname,t.signal);if("aborted"===e.type)return{shortCircuited:!0};if("error"===e.type){let t=_v(e.partialMatches).route.id;return{matches:e.partialMatches,loaderData:{},errors:{[t]:e.error}}}if(e.matches)n=e.matches;else{let{error:e,notFoundMatches:t,route:i}=eu(a.pathname);return{matches:t,loaderData:{},errors:{[i.id]:e}}}}let _=i||u,[w,x]=_r(e.history,S,n,b,a,m.v7_partialHydration&&!0===h,m.v7_skipActionErrorRevalidation,R,M,L,H,j,F,_,p,f);if(ep(e=>!(n&&n.some(t=>t.route.id===e))||w&&w.some(t=>t.route.id===e)),z=++P,0===w.length&&0===x.length){let e=er();return W(a,vR({matches:n,loaderData:{},errors:f&&_S(f[1])?{[f[0]]:f[1].error}:null},_b(f),e?{fetchers:new Map(S.fetchers)}:{}),{flushSync:g}),{shortCircuited:!0}}if(v){let e={};if(!r){e.navigation=y;let t=K(f);void 0!==t&&(e.actionData=t)}x.length>0&&(x.forEach(e=>{let t=S.fetchers.get(e.key),i=_L(void 0,t?t.data:void 0);S.fetchers.set(e.key,i)}),e.fetchers=new Map(S.fetchers)),Z(e,{flushSync:g})}x.forEach(e=>{en(e.key),e.controller&&N.set(e.key,e.controller)});let k=()=>x.forEach(e=>en(e.key));o&&o.signal.addEventListener("abort",k);let{loaderResults:E,fetcherResults:C}=await X(S,n,w,x,t);if(t.signal.aborted)return{shortCircuited:!0};o&&o.signal.removeEventListener("abort",k),x.forEach(e=>N.delete(e.key));let T=_x(E);if(T)return await Y(t,T.result,!0,{replace:d}),{shortCircuited:!0};if(T=_x(C))return F.add(T.key),await Y(t,T.result,!0,{replace:d}),{shortCircuited:!0};let{loaderData:I,errors:D}=_f(S,n,E,f,x,C,V);V.forEach((e,t)=>{e.subscribe(i=>{(i||e.done)&&V.delete(t)})}),m.v7_partialHydration&&h&&S.errors&&(D=vR({},S.errors,D));let A=er(),U=es(z),B=A||U||x.length>0;return vR({matches:n,loaderData:I,errors:D},B?{fetchers:new Map(S.fetchers)}:{})}(w,a,f,v.active,g,n&&n.submission,n&&n.fetcherSubmission,n&&n.replace,n&&!0===n.initialHydration,y,d);x||(o=null,W(a,vR({matches:E||f},_b(d),{loaderData:D,errors:A})))}function K(e){if(e&&!_S(e[1]))return{[e[0]]:e[1].data};if(S.actionData)if(0===Object.keys(S.actionData).length)return null;else return S.actionData}async function Y(t,i,a,n){let{submission:r,fetcherSubmission:c,preventScrollReset:d,replace:u}=void 0===n?{}:n;i.response.headers.has("X-Remix-Revalidate")&&(R=!0);let h=i.response.headers.get("Location");vL(h,"Expected a Location header on the redirect Response"),h=_p(h,new URL(t.url),p,e.history);let g=vz(S.location,h,{_isRedirect:!0});if(l){let t=!1;if(i.response.headers.has("X-Remix-Reload-Document"))t=!0;else if(_e.test(h)){let i=e.history.createURL(h);t=i.origin!==s.location.origin||null==vG(i.pathname,p)}if(t)return void(u?s.location.replace(h):s.location.assign(h))}o=null;let m=!0===u||i.response.headers.has("X-Remix-Replace")?wx.Replace:wx.Push,{formMethod:f,formAction:y,formEncType:b}=S.navigation;!r&&!c&&f&&y&&b&&(r=_R(S.navigation));let v=r||c;if(v5.has(i.response.status)&&v&&_D(v.formMethod))await G(m,g,{submission:vR({},v,{formAction:h}),preventScrollReset:d||T,enableViewTransition:a?I:void 0});else{let e=_M(g,r);await G(m,g,{overrideNavigation:e,fetcherSubmission:c,preventScrollReset:d||T,enableViewTransition:a?I:void 0})}}async function Q(e,i,a,n,o,r){let s,l={};try{s=await async function(e,t,i,a,n,o,r,s){let l=n.map(e=>e.route.lazy?async function(e,t,i){if(!e.lazy)return;let a=await e.lazy();if(!e.lazy)return;let n=i[e.id];vL(n,"No route found in manifest");let o={};for(let e in a){let t=void 0!==n[e]&&"hasErrorBoundary"!==e;vN(!t,'Route "'+n.id+'" has a static property "'+e+'" defined but its lazy function is also returning a value for this property. The lazy route property "'+e+'" will be ignored.'),t||vj.has(e)||(o[e]=a[e])}Object.assign(n,o),Object.assign(n,vR({},t(n),{lazy:void 0}))}(e.route,s,r):void 0),c=n.map((e,n)=>{let o=l[n],r=a.some(t=>t.route.id===e.route.id);return vR({},e,{shouldLoad:r,resolve:async a=>(a&&"GET"===i.method&&(e.route.lazy||e.route.loader)&&(r=!0),r?async function(e,t,i,a,n,o){let r,s,l=a=>{let r,l=new Promise((e,t)=>r=t);s=()=>r(),t.signal.addEventListener("abort",s);let c=n=>"function"!=typeof a?Promise.reject(Error("You cannot call the handler for a route which defines a boolean "+('"'+e+'" [routeId: ')+i.route.id+"]")):a({request:t,params:i.params,context:o},...void 0!==n?[n]:[]);return Promise.race([(async()=>{try{let e=await (n?n(e=>c(e)):c());return{type:"data",result:e}}catch(e){return{type:"error",result:e}}})(),l])};try{let n=i.route[e];if(a)if(n){let e,[t]=await Promise.all([l(n).catch(t=>{e=t}),a]);if(void 0!==e)throw e;r=t}else if(await a,n=i.route[e])r=await l(n);else{if("action"!==e)return{type:wk.data,result:void 0};let a=new URL(t.url),n=a.pathname+a.search;throw _w(405,{method:t.method,pathname:n,routeId:i.route.id})}else if(n)r=await l(n);else{let e=new URL(t.url),i=e.pathname+e.search;throw _w(404,{pathname:i})}vL(void 0!==r.result,"You defined "+("action"===e?"an action":"a loader")+" for route "+('"'+i.route.id+"\" but didn't return anything from your `")+e+"` function. Please return a value or `null`.")}catch(e){return{type:wk.error,result:e}}finally{s&&t.signal.removeEventListener("abort",s)}return r}(t,i,e,o,a,void 0):Promise.resolve({type:wk.data,result:void 0}))})}),d=await e({matches:c,request:i,params:n[0].params,fetcherKey:o,context:void 0});try{await Promise.all(l)}catch{}return d}(h,e,a,n,o,r,d,t)}catch(e){return n.forEach(t=>{l[t.route.id]={type:wk.error,error:e}}),l}for(let[e,t]of Object.entries(s)){var c;if(_I((c=t).result)&&v6.has(c.result.status)){let i=t.result;l[e]={type:wk.redirect,response:function(e,t,i,a,n,o){let r=e.headers.get("Location");if(vL(r,"Redirects returned/thrown from loaders/actions must have a Location header"),!_e.test(r)){let s=a.slice(0,a.findIndex(e=>e.route.id===i)+1);r=_a(new URL(t.url),s,n,!0,r,o),e.headers.set("Location",r)}return e}(i,a,e,o,p,m.v7_relativeSplatPath)}}else l[e]=await async function(e){var t,i,a,n,o,r,s,l,c;let{result:d,type:u}=e;if(_I(d)){let e;try{let t=d.headers.get("Content-Type");e=t&&/\bapplication\/json\b/.test(t)?null==d.body?null:await d.json():await d.text()}catch(e){return{type:wk.error,error:e}}return u===wk.error?{type:wk.error,error:new v1(d.status,d.statusText,e),statusCode:d.status,headers:d.headers}:{type:wk.data,data:e,statusCode:d.status,headers:d.headers}}if(u===wk.error)return _T(d)?d.data instanceof Error?{type:wk.error,error:d.data,statusCode:null==(a=d.init)?void 0:a.status,headers:null!=(n=d.init)&&n.headers?new Headers(d.init.headers):void 0}:{type:wk.error,error:new v1((null==(t=d.init)?void 0:t.status)||500,void 0,d.data),statusCode:v0(d)?d.status:void 0,headers:null!=(i=d.init)&&i.headers?new Headers(d.init.headers):void 0}:{type:wk.error,error:d,statusCode:v0(d)?d.status:void 0};return(c=d)&&"object"==typeof c&&"object"==typeof c.data&&"function"==typeof c.subscribe&&"function"==typeof c.cancel&&"function"==typeof c.resolveData?{type:wk.deferred,deferredData:d,statusCode:null==(o=d.init)?void 0:o.status,headers:(null==(r=d.init)?void 0:r.headers)&&new Headers(d.init.headers)}:_T(d)?{type:wk.data,data:d.data,statusCode:null==(s=d.init)?void 0:s.status,headers:null!=(l=d.init)&&l.headers?new Headers(d.init.headers):void 0}:{type:wk.data,data:d}}(t)}return l}async function X(t,i,a,n,o){let r=t.matches,s=Q("loader",t,o,a,i,null),l=Promise.all(n.map(async i=>{if(!i.matches||!i.match||!i.controller)return Promise.resolve({[i.key]:{type:wk.error,error:_w(404,{pathname:i.path})}});{let a=(await Q("loader",t,_h(e.history,i.path,i.controller.signal),[i.match],i.matches,i.key))[i.match.route.id];return{[i.key]:a}}})),c=await s,d=(await l).reduce((e,t)=>Object.assign(e,t),{});return await Promise.all([async function(e,t,i,a,n){let o=Object.entries(t);for(let r=0;r<o.length;r++){let[s,l]=o[r],c=e.find(e=>(null==e?void 0:e.route.id)===s);if(!c)continue;let d=a.find(e=>e.route.id===c.route.id),u=null!=d&&!_l(d,c)&&(n&&n[c.route.id])!==void 0;_E(l)&&u&&await _A(l,i,!1).then(e=>{e&&(t[s]=e)})}}(i,c,o.signal,r,t.loaderData),async function(e,t,i){for(let a=0;a<i.length;a++){let{key:n,routeId:o,controller:r}=i[a],s=t[n];e.find(e=>(null==e?void 0:e.route.id)===o)&&_E(s)&&(vL(r,"Expected an AbortController for revalidating fetcher deferred result"),await _A(s,r.signal,!0).then(e=>{e&&(t[n]=e)}))}}(i,d,n)]),{loaderResults:c,fetcherResults:d}}function J(){R=!0,M.push(...ep()),j.forEach((e,t)=>{N.has(t)&&L.add(t),en(t)})}function ee(e,t,i){void 0===i&&(i={}),S.fetchers.set(e,t),Z({fetchers:new Map(S.fetchers)},{flushSync:!0===(i&&i.flushSync)})}function et(e,t,i,a){void 0===a&&(a={});let n=_v(S.matches,t);ea(e),Z({errors:{[n.route.id]:i},fetchers:new Map(S.fetchers)},{flushSync:!0===(a&&a.flushSync)})}function ei(e){return B.set(e,(B.get(e)||0)+1),H.has(e)&&H.delete(e),S.fetchers.get(e)||v7}function ea(e){let t=S.fetchers.get(e);N.has(e)&&!(t&&"loading"===t.state&&U.has(e))&&en(e),j.delete(e),U.delete(e),F.delete(e),m.v7_fetcherPersist&&H.delete(e),L.delete(e),S.fetchers.delete(e)}function en(e){let t=N.get(e);t&&(t.abort(),N.delete(e))}function eo(e){for(let t of e){let e=_N(ei(t).data);S.fetchers.set(t,e)}}function er(){let e=[],t=!1;for(let i of F){let a=S.fetchers.get(i);vL(a,"Expected fetcher: "+i),"loading"===a.state&&(F.delete(i),e.push(i),t=!0)}return eo(e),t}function es(e){let t=[];for(let[i,a]of U)if(a<e){let e=S.fetchers.get(i);vL(e,"Expected fetcher: "+i),"loading"===e.state&&(en(i),U.delete(i),t.push(i))}return eo(t),t.length>0}function el(e){S.blockers.delete(e),q.delete(e)}function ec(e,t){let i=S.blockers.get(e)||v9;vL("unblocked"===i.state&&"blocked"===t.state||"blocked"===i.state&&"blocked"===t.state||"blocked"===i.state&&"proceeding"===t.state||"blocked"===i.state&&"unblocked"===t.state||"proceeding"===i.state&&"unblocked"===t.state,"Invalid blocker state transition: "+i.state+" -> "+t.state);let a=new Map(S.blockers);a.set(e,t),Z({blockers:a})}function ed(e){let{currentLocation:t,nextLocation:i,historyAction:a}=e;if(0===q.size)return;q.size>1&&vN(!1,"A router only supports one blocker at a time");let n=Array.from(q.entries()),[o,r]=n[n.length-1],s=S.blockers.get(o);if((!s||"proceeding"!==s.state)&&r({currentLocation:t,nextLocation:i,historyAction:a}))return o}function eu(e){let t=_w(404,{pathname:e}),{matches:a,route:n}=__(i||u);return ep(),{notFoundMatches:a,route:n,error:t}}function ep(e){let t=[];return V.forEach((i,a)=>{(!e||e(a))&&(i.cancel(),t.push(a),V.delete(a))}),t}function eh(e,t){return v&&v(e,t.map(e=>(function(e,t){let{route:i,pathname:a,params:n}=e;return{id:i.id,pathname:a,params:n,data:t[i.id],handle:i.handle}})(e,S.loaderData)))||e.key}function eg(e,t){if(b){let i=b[eh(e,t)];if("number"==typeof i)return i}return null}function em(e,t,i){if(g){if(!e)return{active:!0,matches:vV(t,i,p,!0)||[]};else if(Object.keys(e[0].params).length>0)return{active:!0,matches:vV(t,i,p,!0)}}return{active:!1,matches:null}}async function ef(e,a,n,o){if(!g)return{type:"success",matches:e};let r=e;for(;;){let e=null==i,s=i||u,l=d;try{await g({signal:n,path:a,matches:r,fetcherKey:o,patch:(e,i)=>{n.aborted||_d(e,i,s,l,t)}})}catch(e){return{type:"error",error:e,partialMatches:r}}finally{e&&!n.aborted&&(u=[...u])}if(n.aborted)return{type:"aborted"};let c=vH(s,a,p);if(c)return{type:"success",matches:c};let h=vV(s,a,p,!0);if(!h||r.length===h.length&&r.every((e,t)=>e.route.id===h[t].route.id))return{type:"success",matches:null};r=h}}return n={get basename(){return p},get future(){return m},get state(){return S},get routes(){return u},get window(){return s},initialize:function(){if(f=e.history.listen(t=>{let{action:i,location:a,delta:n}=t;if(r){r(),r=void 0;return}vN(0===q.size||null!=n,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let o=ed({currentLocation:S.location,nextLocation:a,historyAction:i});if(o&&null!=n){let t=new Promise(e=>{r=e});e.history.go(-1*n),ec(o,{state:"blocked",location:a,proceed(){ec(o,{state:"proceeding",proceed:void 0,reset:void 0,location:a}),t.then(()=>e.history.go(n))},reset(){let e=new Map(S.blockers);e.set(o,v9),Z({blockers:e})}});return}return G(i,a)}),l){var t=s,i=D;try{let e=t.sessionStorage.getItem(_i);if(e){let t=JSON.parse(e);for(let[e,a]of Object.entries(t||{}))a&&Array.isArray(a)&&i.set(e,new Set(a||[]))}}catch{}let e=()=>(function(e,t){if(t.size>0){let i={};for(let[e,a]of t)i[e]=[...a];try{e.sessionStorage.setItem(_i,JSON.stringify(i))}catch(e){vN(!1,"Failed to save applied view transitions in sessionStorage ("+e+").")}}})(s,D);s.addEventListener("pagehide",e),A=()=>s.removeEventListener("pagehide",e)}return S.initialized||G(wx.Pop,S.location,{initialHydration:!0}),n},subscribe:function(e){return y.add(e),()=>y.delete(e)},enableScrollRestoration:function(e,t,i){if(b=e,_=t,v=i||null,!w&&S.navigation===v8){w=!0;let e=eg(S.location,S.matches);null!=e&&Z({restoreScrollPosition:e})}return()=>{b=null,_=null,v=null}},navigate:async function t(i,a){if("number"==typeof i)return void e.history.go(i);let n=_a(S.location,S.matches,p,m.v7_prependBasename,i,m.v7_relativeSplatPath,null==a?void 0:a.fromRouteId,null==a?void 0:a.relative),{path:o,submission:r,error:s}=_n(m.v7_normalizeFormMethod,!1,n,a),l=S.location,c=vz(S.location,o,a&&a.state);c=vR({},c,e.history.encodeLocation(c));let d=a&&null!=a.replace?a.replace:void 0,u=wx.Push;!0===d?u=wx.Replace:!1===d||null!=r&&_D(r.formMethod)&&r.formAction===S.location.pathname+S.location.search&&(u=wx.Replace);let h=a&&"preventScrollReset"in a?!0===a.preventScrollReset:void 0,g=!0===(a&&a.flushSync),f=ed({currentLocation:l,nextLocation:c,historyAction:u});return f?void ec(f,{state:"blocked",location:c,proceed(){ec(f,{state:"proceeding",proceed:void 0,reset:void 0,location:c}),t(i,a)},reset(){let e=new Map(S.blockers);e.set(f,v9),Z({blockers:e})}}):await G(u,c,{submission:r,pendingError:s,preventScrollReset:h,replace:a&&a.replace,enableViewTransition:a&&a.viewTransition,flushSync:g})},fetch:function(t,a,n,r){if(c)throw Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");en(t);let s=!0===(r&&r.flushSync),l=i||u,d=_a(S.location,S.matches,p,m.v7_prependBasename,n,m.v7_relativeSplatPath,a,null==r?void 0:r.relative),h=vH(l,d,p),g=em(h,l,d);if(g.active&&g.matches&&(h=g.matches),!h)return void et(t,a,_w(404,{pathname:d}),{flushSync:s});let{path:f,submission:y,error:b}=_n(m.v7_normalizeFormMethod,!0,d,r);if(b)return void et(t,a,b,{flushSync:s});let v=_O(h,f),_=!0===(r&&r.preventScrollReset);y&&_D(y.formMethod)?async function(t,a,n,r,s,l,c,d,h){var g,f;function y(e){if(!e.route.action&&!e.route.lazy){let e=_w(405,{method:h.formMethod,pathname:n,routeId:a});return et(t,a,e,{flushSync:c}),!0}return!1}if(J(),j.delete(t),!l&&y(r))return;let b=S.fetchers.get(t);ee(t,(g=h,f=b,{state:"submitting",formMethod:g.formMethod,formAction:g.formAction,formEncType:g.formEncType,formData:g.formData,json:g.json,text:g.text,data:f?f.data:void 0}),{flushSync:c});let v=new AbortController,_=_h(e.history,n,v.signal,h);if(l){let e=await ef(s,new URL(_.url).pathname,_.signal,t);if("aborted"===e.type)return;if("error"===e.type)return void et(t,a,e.error,{flushSync:c});if(!e.matches)return void et(t,a,_w(404,{pathname:n}),{flushSync:c});if(y(r=_O(s=e.matches,n)))return}N.set(t,v);let w=P,x=(await Q("action",S,_,[r],s,t))[r.route.id];if(_.signal.aborted){N.get(t)===v&&N.delete(t);return}if(m.v7_fetcherPersist&&H.has(t)){if(_C(x)||_S(x))return void ee(t,_N(void 0))}else{if(_C(x))return(N.delete(t),z>w)?void ee(t,_N(void 0)):(F.add(t),ee(t,_L(h)),Y(_,x,!1,{fetcherSubmission:h,preventScrollReset:d}));if(_S(x))return void et(t,a,x.error)}if(_E(x))throw _w(400,{type:"defer-action"});let k=S.navigation.location||S.location,E=_h(e.history,k,v.signal),T=i||u,I="idle"!==S.navigation.state?vH(T,S.navigation.location,p):S.matches;vL(I,"Didn't find any matches after fetcher action");let D=++P;U.set(t,D);let A=_L(h,x.data);S.fetchers.set(t,A);let[O,B]=_r(e.history,S,I,h,k,!1,m.v7_skipActionErrorRevalidation,R,M,L,H,j,F,T,p,[r.route.id,x]);B.filter(e=>e.key!==t).forEach(e=>{let t=e.key,i=S.fetchers.get(t),a=_L(void 0,i?i.data:void 0);S.fetchers.set(t,a),en(t),e.controller&&N.set(t,e.controller)}),Z({fetchers:new Map(S.fetchers)});let q=()=>B.forEach(e=>en(e.key));v.signal.addEventListener("abort",q);let{loaderResults:G,fetcherResults:K}=await X(S,I,O,B,E);if(v.signal.aborted)return;v.signal.removeEventListener("abort",q),U.delete(t),N.delete(t),B.forEach(e=>N.delete(e.key));let ei=_x(G);if(ei)return Y(E,ei.result,!1,{preventScrollReset:d});if(ei=_x(K))return F.add(ei.key),Y(E,ei.result,!1,{preventScrollReset:d});let{loaderData:ea,errors:eo}=_f(S,I,G,void 0,B,K,V);if(S.fetchers.has(t)){let e=_N(x.data);S.fetchers.set(t,e)}es(D),"loading"===S.navigation.state&&D>z?(vL(C,"Expected pending action"),o&&o.abort(),W(S.navigation.location,{matches:I,loaderData:ea,errors:eo,fetchers:new Map(S.fetchers)})):(Z({errors:eo,loaderData:_y(S.loaderData,ea,I,eo),fetchers:new Map(S.fetchers)}),R=!1)}(t,a,f,v,h,g.active,s,_,y):(j.set(t,{routeId:a,path:f}),async function(t,i,a,n,o,r,s,l,c){let d=S.fetchers.get(t);ee(t,_L(c,d?d.data:void 0),{flushSync:s});let u=new AbortController,p=_h(e.history,a,u.signal);if(r){let e=await ef(o,new URL(p.url).pathname,p.signal,t);if("aborted"===e.type)return;if("error"===e.type)return void et(t,i,e.error,{flushSync:s});if(!e.matches)return void et(t,i,_w(404,{pathname:a}),{flushSync:s});n=_O(o=e.matches,a)}N.set(t,u);let h=P,g=(await Q("loader",S,p,[n],o,t))[n.route.id];if(_E(g)&&(g=await _A(g,p.signal,!0)||g),N.get(t)===u&&N.delete(t),!p.signal.aborted){if(H.has(t))return void ee(t,_N(void 0));if(_C(g))if(z>h)return void ee(t,_N(void 0));else{F.add(t),await Y(p,g,!1,{preventScrollReset:l});return}if(_S(g))return void et(t,i,g.error);vL(!_E(g),"Unhandled fetcher deferred data"),ee(t,_N(g.data))}}(t,a,f,v,h,g.active,s,_,y))},revalidate:function(){if(J(),Z({revalidation:"loading"}),"submitting"!==S.navigation.state){if("idle"===S.navigation.state)return void G(S.historyAction,S.location,{startUninterruptedRevalidation:!0});G(C||S.historyAction,S.navigation.location,{overrideNavigation:S.navigation,enableViewTransition:!0===I})}},createHref:t=>e.history.createHref(t),encodeLocation:t=>e.history.encodeLocation(t),getFetcher:ei,deleteFetcher:function(e){let t=(B.get(e)||0)-1;t<=0?(B.delete(e),H.add(e),m.v7_fetcherPersist||ea(e)):B.set(e,t),Z({fetchers:new Map(S.fetchers)})},dispose:function(){f&&f(),A&&A(),y.clear(),o&&o.abort(),S.fetchers.forEach((e,t)=>ea(t)),S.blockers.forEach((e,t)=>el(t))},getBlocker:function(e,t){let i=S.blockers.get(e)||v9;return q.get(e)!==t&&q.set(e,t),i},deleteBlocker:el,patchRoutes:function(e,a){let n=null==i;_d(e,a,i||u,d,t),n&&(u=[...u],Z({}))},_internalFetchControllers:N,_internalActiveDeferreds:V,_internalSetRoutes:function(e){i=vB(e,t,void 0,d={})}}})({history:this.history,routes:t}).initialize(),this.unsubscribe=this.router.subscribe(e=>this.onState(e)),this.onState(this.router.state)}hostDisconnected(){this.unsubscribe?.(),this.router=this.history=void 0,this.lastFiredParamsState=null}renderOutlet(){return this.outlet}navigate(e,t){this.router?.navigate(e,t)}toPathParams(e){return Object.fromEntries(Object.entries(e).map(([e,t])=>[e,String(t)]))}navigateById(e,t={},i){var a;let n,o,r,s=this.idToPathMap.get(e);if(!s)return void console.error(`[RouterController] Navigation failed: No route found with ID "${e}".`);let l=(a={...this.getCurrentParams(),...this.toPathParams(t)},(n=s).endsWith("*")&&"*"!==n&&!n.endsWith("/*")&&(vN(!1,'Route path "'+n+'" will be treated as if it were "'+n.replace(/\*$/,"/*")+'" because the `*` character must always follow a `/` in the pattern. To get rid of this warning, please change the route path to "'+n.replace(/\*$/,"/*")+'".'),n=n.replace(/\*$/,"/*")),o=n.startsWith("/")?"/":"",r=e=>null==e?"":"string"==typeof e?e:String(e),o+n.split(/\/+/).map((e,t,i)=>{if(t===i.length-1&&"*"===e)return r(a["*"]);let n=e.match(/^:([\w-]+)(\??)$/);if(n){let[,e,t]=n,i=a[e];return vL("?"===t||null!=i,'Missing ":'+e+'" param'),r(i)}return e.replace(/\?$/g,"")}).filter(e=>!!e).join("/"));this.navigate(l,i)}goBack(){this.history?.go(-1)}hostUpdate(){if(this.skipNextHostUpdate){this.skipNextHostUpdate=!1;return}if(this.currentRouteId){let e=this.routeInfoMap.get(this.currentRouteId),t=e?.component;t&&e?.reactive!==!1&&(this.outlet=t(this.params,this.loc))}}validateParams(e){let t=e.safeParse(this.params);return t.success?t.data:(console.error("[RouterController] Manual parameter validation failed:",t.error.issues),null)}getCurrentLocation(){return this.loc?{...this.loc}:null}getCurrentParams(){return{...this.params}}getCurrentPath(){return this.loc?.pathname??window.location.pathname}getCurrentRouteId(){return this.currentRouteId}toRemixRoutes(e,t="",i=""){return e.map((e,a)=>{let n=e.id??`${t}${e.name??`route${a}`}-${e.path??"index"}`.replace(/[^a-z0-9]/gi,"");this.routeInfoMap.set(n,{component:e.component,schema:e.schema,reactive:e.reactive});let o=[i,e.path].filter(Boolean).join("/");return(e.path&&this.idToPathMap.set(n,o),e.index)?{id:n,index:!0,caseSensitive:e.caseSensitive}:{id:n,path:e.path,caseSensitive:e.caseSensitive,children:e.children?this.toRemixRoutes(e.children,`${n}-`):void 0}})}onState(e){this.loc=e.location;let t=e.matches[e.matches.length-1];if(!t){this.maybeFireParamsChange({},""),this.outlet=null,this.params={},this.currentRouteId=null,this.skipNextHostUpdate=!0,this.host.requestUpdate();return}let i=t.params,a=t.route.id;this.maybeFireParamsChange(i,a),this.currentRouteId=a;let n=this.routeInfoMap.get(a),o=i;if(n?.schema){let e=n.schema.safeParse(o);if(!e.success)return void console.error(`[RouterController] Automatic parameter validation failed for route "${a}":`,e.error.issues);o=e.data}this.params=o;let r=n?.component;this.outlet=r?r(this.params,this.loc):null,this.skipNextHostUpdate=!0,this.host.requestUpdate()}maybeFireParamsChange(e,t){let i=this.options.onParamsChange;if(!i)return;let a=""===t;if((!a||this.lastFiredParamsState)&&!(!a&&this.lastFiredParamsState&&this.lastFiredParamsState.routeId===t&&this.paramsAreEqual(this.lastFiredParamsState.params,e))){this.lastFiredParamsState=a?null:{routeId:t,params:{...e}};try{i({...e},t)}catch(e){console.error("[RouterController] onParamsChange callback threw:",e)}}}paramsAreEqual(e,t){for(let i of new Set([...Object.keys(e),...Object.keys(t)]))if(e[i]!==t[i])return!1;return!0}}function _z(){return(_z=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var a in i)({}).hasOwnProperty.call(i,a)&&(e[a]=i[a])}return e}).apply(null,arguments)}function _U(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),i.push.apply(i,a)}return i}function _F(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?_U(Object(i),!0).forEach(function(t){var a,n;a=t,n=i[t],(a=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var a=i.call(e,t||"default");if("object"!=typeof a)return a;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(a))in e?Object.defineProperty(e,a,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[a]=n}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):_U(Object(i)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))})}return e}function _j(e){return(_j="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _B(e){if("u">typeof window&&window.navigator)return!!navigator.userAgent.match(e)}rg({onRefresh:rZ(),intervalMs:ry([o5(),rZ()]).optional(),autoStart:re().optional(),onSuccess:rZ().optional(),onError:rZ().optional()}),rg({active:re(),refreshing:re(),lastRefresh:new rd({type:"date",...tC(void 0)}).nullable(),error:rG(Error).nullable(),failureCount:o5()});var _H=_B(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),_V=_B(/Edge/i),_q=_B(/firefox/i),_Z=_B(/safari/i)&&!_B(/chrome/i)&&!_B(/android/i),_W=_B(/iP(ad|od|hone)/i),_G=_B(/chrome/i)&&_B(/android/i),_K={capture:!1,passive:!1};function _Y(e,t,i){e.addEventListener(t,i,!_H&&_K)}function _Q(e,t,i){e.removeEventListener(t,i,!_H&&_K)}function _X(e,t){if(t){if(">"===t[0]&&(t=t.substring(1)),e)try{if(e.matches)return e.matches(t);if(e.msMatchesSelector)return e.msMatchesSelector(t);if(e.webkitMatchesSelector)return e.webkitMatchesSelector(t)}catch{}return!1}}function _J(e){return e.host&&e!==document&&e.host.nodeType&&e.host!==e?e.host:e.parentNode}function _1(e,t,i,a){if(e){i=i||document;do{if(null!=t&&(">"===t[0]?e.parentNode===i&&_X(e,t):_X(e,t))||a&&e===i)return e;if(e===i)break}while(e=_J(e))}return null}var _0=/\s+/g;function _2(e,t,i){if(e&&t)if(e.classList)e.classList[i?"add":"remove"](t);else{var a=(" "+e.className+" ").replace(_0," ").replace(" "+t+" "," ");e.className=(a+(i?" "+t:"")).replace(_0," ")}}function _3(e,t,i){var a=e&&e.style;if(a)if(void 0===i)return document.defaultView&&document.defaultView.getComputedStyle?i=document.defaultView.getComputedStyle(e,""):e.currentStyle&&(i=e.currentStyle),void 0===t?i:i[t];else t in a||-1!==t.indexOf("webkit")||(t="-webkit-"+t),a[t]=i+("string"==typeof i?"":"px")}function _4(e,t){var i="";if("string"==typeof e)i=e;else do{var a=_3(e,"transform");a&&"none"!==a&&(i=a+" "+i)}while(!t&&(e=e.parentNode))var n=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return n&&new n(i)}function _6(e,t,i){if(e){var a=e.getElementsByTagName(t),n=0,o=a.length;if(i)for(;n<o;n++)i(a[n],n);return a}return[]}function _5(){var e=document.scrollingElement;return e||document.documentElement}function _8(e,t,i,a,n){if(e.getBoundingClientRect||e===window){if(e!==window&&e.parentNode&&e!==_5()?(r=(o=e.getBoundingClientRect()).top,s=o.left,l=o.bottom,c=o.right,d=o.height,u=o.width):(r=0,s=0,l=window.innerHeight,c=window.innerWidth,d=window.innerHeight,u=window.innerWidth),(t||i)&&e!==window&&(n=n||e.parentNode,!_H))do if(n&&n.getBoundingClientRect&&("none"!==_3(n,"transform")||i&&"static"!==_3(n,"position"))){var o,r,s,l,c,d,u,p=n.getBoundingClientRect();r-=p.top+parseInt(_3(n,"border-top-width")),s-=p.left+parseInt(_3(n,"border-left-width")),l=r+o.height,c=s+o.width;break}while(n=n.parentNode)if(a&&e!==window){var h=_4(n||e),g=h&&h.a,m=h&&h.d;h&&(r/=m,s/=g,u/=g,d/=m,l=r+d,c=s+u)}return{top:r,left:s,bottom:l,right:c,width:u,height:d}}}function _7(e,t,i){for(var a=wa(e,!0),n=_8(e)[t];a;){var o=_8(a)[i];if(!("top"===i||"left"===i?n>=o:n<=o))return a;if(a===_5())break;a=wa(a,!1)}return!1}function _9(e,t,i,a){for(var n=0,o=0,r=e.children;o<r.length;){if("none"!==r[o].style.display&&r[o]!==xr.ghost&&(a||r[o]!==xr.dragged)&&_1(r[o],i.draggable,e,!1)){if(n===t)return r[o];n++}o++}return null}function we(e,t){for(var i=e.lastElementChild;i&&(i===xr.ghost||"none"===_3(i,"display")||t&&!_X(i,t));)i=i.previousElementSibling;return i||null}function wt(e,t){var i=0;if(!e||!e.parentNode)return -1;for(;e=e.previousElementSibling;)"TEMPLATE"!==e.nodeName.toUpperCase()&&e!==xr.clone&&(!t||_X(e,t))&&i++;return i}function wi(e){var t=0,i=0,a=_5();if(e)do{var n=_4(e),o=n.a,r=n.d;t+=e.scrollLeft*o,i+=e.scrollTop*r}while(e!==a&&(e=e.parentNode))return[t,i]}function wa(e,t){if(!e||!e.getBoundingClientRect)return _5();var i=e,a=!1;do if(i.clientWidth<i.scrollWidth||i.clientHeight<i.scrollHeight){var n=_3(i);if(i.clientWidth<i.scrollWidth&&("auto"==n.overflowX||"scroll"==n.overflowX)||i.clientHeight<i.scrollHeight&&("auto"==n.overflowY||"scroll"==n.overflowY)){if(!i.getBoundingClientRect||i===document.body)return _5();if(a||t)return i;a=!0}}while(i=i.parentNode)return _5()}function wn(e,t){return Math.round(e.top)===Math.round(t.top)&&Math.round(e.left)===Math.round(t.left)&&Math.round(e.height)===Math.round(t.height)&&Math.round(e.width)===Math.round(t.width)}function wo(e,t){return function(){if(!wE){var i=arguments;1===i.length?e.call(this,i[0]):e.apply(this,i),wE=setTimeout(function(){wE=void 0},t)}}}function wr(e,t,i){e.scrollLeft+=t,e.scrollTop+=i}function ws(e){var t=window.Polymer,i=window.jQuery||window.Zepto;return t&&t.dom?t.dom(e).cloneNode(!0):i?i(e).clone(!0)[0]:e.cloneNode(!0)}function wl(e,t,i){var a={};return Array.from(e.children).forEach(function(n){if(_1(n,t.draggable,e,!1)&&!n.animated&&n!==i){var o,r,s,l,c=_8(n);a.left=Math.min(null!=(o=a.left)?o:1/0,c.left),a.top=Math.min(null!=(r=a.top)?r:1/0,c.top),a.right=Math.max(null!=(s=a.right)?s:-1/0,c.right),a.bottom=Math.max(null!=(l=a.bottom)?l:-1/0,c.bottom)}}),a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}var wc="Sortable"+new Date().getTime(),wd=[],wu={initializeByDefault:!0},wh={mount:function(e){for(var t in wu)!wu.hasOwnProperty(t)||t in e||(e[t]=wu[t]);wd.forEach(function(t){if(t.pluginName===e.pluginName)throw"Sortable: Cannot mount plugin ".concat(e.pluginName," more than once")}),wd.push(e)},pluginEvent:function(e,t,i){var a=this;this.eventCanceled=!1,i.cancel=function(){a.eventCanceled=!0};var n=e+"Global";wd.forEach(function(a){t[a.pluginName]&&(t[a.pluginName][n]&&t[a.pluginName][n](_F({sortable:t},i)),t.options[a.pluginName]&&t[a.pluginName][e]&&t[a.pluginName][e](_F({sortable:t},i)))})},initializePlugins:function(e,t,i,a){for(var n in wd.forEach(function(a){var n=a.pluginName;if(e.options[n]||a.initializeByDefault){var o=new a(e,t,e.options);o.sortable=e,o.options=e.options,e[n]=o,_z(i,o.defaults)}}),e.options)if(e.options.hasOwnProperty(n)){var o=this.modifyOption(e,n,e.options[n]);void 0!==o&&(e.options[n]=o)}},getEventProperties:function(e,t){var i={};return wd.forEach(function(a){"function"==typeof a.eventProperties&&_z(i,a.eventProperties.call(t[a.pluginName],e))}),i},modifyOption:function(e,t,i){var a;return wd.forEach(function(n){e[n.pluginName]&&n.optionListeners&&"function"==typeof n.optionListeners[t]&&(a=n.optionListeners[t].call(e[n.pluginName],i))}),a}},wg=["evt"],wm=function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=i.evt,n=function(e,t){if(null==e)return{};var i,a,n=function(e,t){if(null==e)return{};var i={};for(var a in e)if(({}).hasOwnProperty.call(e,a)){if(-1!==t.indexOf(a))continue;i[a]=e[a]}return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)i=o[a],-1===t.indexOf(i)&&({}).propertyIsEnumerable.call(e,i)&&(n[i]=e[i])}return n}(i,wg);wh.pluginEvent.bind(xr)(e,t,_F({dragEl:wS,parentEl:wC,ghostEl:wT,rootEl:wI,nextEl:wD,lastDownEl:wA,cloneEl:w$,cloneHidden:wO,dragStarted:wq,putSortable:wz,activeSortable:xr.active,originalEvent:a,oldIndex:wR,oldDraggableIndex:wL,newIndex:wM,newDraggableIndex:wN,hideGhostForTarget:xi,unhideGhostForTarget:xa,cloneNowHidden:function(){wO=!0},cloneNowShown:function(){wO=!1},dispatchSortableEvent:function(e){wf({sortable:t,name:e,originalEvent:a})}},n))};function wf(e){!function(e){var t=e.sortable,i=e.rootEl,a=e.name,n=e.targetEl,o=e.cloneEl,r=e.toEl,s=e.fromEl,l=e.oldIndex,c=e.newIndex,d=e.oldDraggableIndex,u=e.newDraggableIndex,p=e.originalEvent,h=e.putSortable,g=e.extraEventProperties;if(t=t||i&&i[wc]){var m,f=t.options,y="on"+a.charAt(0).toUpperCase()+a.substr(1);!window.CustomEvent||_H||_V?(m=document.createEvent("Event")).initEvent(a,!0,!0):m=new CustomEvent(a,{bubbles:!0,cancelable:!0}),m.to=r||i,m.from=s||i,m.item=n||i,m.clone=o,m.oldIndex=l,m.newIndex=c,m.oldDraggableIndex=d,m.newDraggableIndex=u,m.originalEvent=p,m.pullMode=h?h.lastPutMode:void 0;var b=_F(_F({},g),wh.getEventProperties(a,t));for(var v in b)m[v]=b[v];i&&i.dispatchEvent(m),f[y]&&f[y].call(t,m)}}(_F({putSortable:wz,cloneEl:w$,targetEl:wS,rootEl:wI,oldIndex:wR,oldDraggableIndex:wL,newIndex:wM,newDraggableIndex:wN},e))}var wy,wb,wv,w_,ww,wx,wk,wE,wS,wC,wT,wI,wD,wA,w$,wO,wR,wM,wL,wN,wP,wz,wU,wF,wj,wB,wH,wV,wq,wZ,wW,wG,wK,wY=!1,wQ=!1,wX=[],wJ=!1,w1=!1,w0=[],w2=!1,w3=[],w4="u">typeof document,w6=_V||_H?"cssFloat":"float",w5=w4&&!_G&&!_W&&"draggable"in document.createElement("div"),w8=function(){if(w4){if(_H)return!1;var e=document.createElement("x");return e.style.cssText="pointer-events:auto","auto"===e.style.pointerEvents}}(),w7=function(e,t){var i=_3(e),a=parseInt(i.width)-parseInt(i.paddingLeft)-parseInt(i.paddingRight)-parseInt(i.borderLeftWidth)-parseInt(i.borderRightWidth),n=_9(e,0,t),o=_9(e,1,t),r=n&&_3(n),s=o&&_3(o),l=r&&parseInt(r.marginLeft)+parseInt(r.marginRight)+_8(n).width,c=s&&parseInt(s.marginLeft)+parseInt(s.marginRight)+_8(o).width;if("flex"===i.display)return"column"===i.flexDirection||"column-reverse"===i.flexDirection?"vertical":"horizontal";if("grid"===i.display)return i.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(n&&r.float&&"none"!==r.float){var d="left"===r.float?"left":"right";return o&&("both"===s.clear||s.clear===d)?"vertical":"horizontal"}return n&&("block"===r.display||"flex"===r.display||"table"===r.display||"grid"===r.display||l>=a&&"none"===i[w6]||o&&"none"===i[w6]&&l+c>a)?"vertical":"horizontal"},w9=function(e,t,i){var a=i?e.left:e.top,n=i?e.right:e.bottom,o=i?e.width:e.height,r=i?t.left:t.top,s=i?t.right:t.bottom,l=i?t.width:t.height;return a===r||n===s||a+o/2===r+l/2},xe=function(e,t){var i;return wX.some(function(a){var n=a[wc].options.emptyInsertThreshold;if(!(!n||we(a))){var o=_8(a),r=e>=o.left-n&&e<=o.right+n,s=t>=o.top-n&&t<=o.bottom+n;if(r&&s)return i=a}}),i},xt=function(e){function t(e,i){return function(a,n,o,r){var s=a.options.group.name&&n.options.group.name&&a.options.group.name===n.options.group.name;if(null==e&&(i||s))return!0;if(null==e||!1===e)return!1;if(i&&"clone"===e)return e;if("function"==typeof e)return t(e(a,n,o,r),i)(a,n,o,r);var l=(i?a:n).options.group.name;return!0===e||"string"==typeof e&&e===l||e.join&&e.indexOf(l)>-1}}var i={},a=e.group;a&&"object"==_j(a)||(a={name:a}),i.name=a.name,i.checkPull=t(a.pull,!0),i.checkPut=t(a.put),i.revertClone=a.revertClone,e.group=i},xi=function(){!w8&&wT&&_3(wT,"display","none")},xa=function(){!w8&&wT&&_3(wT,"display","")};w4&&!_G&&document.addEventListener("click",function(e){if(wQ)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),wQ=!1,!1},!0);var xn=function(e){if(wS){var t=xe((e=e.touches?e.touches[0]:e).clientX,e.clientY);if(t){var i={};for(var a in e)e.hasOwnProperty(a)&&(i[a]=e[a]);i.target=i.rootEl=t,i.preventDefault=void 0,i.stopPropagation=void 0,t[wc]._onDragOver(i)}}},xo=function(e){wS&&wS.parentNode[wc]._isOutsideThisEl(e.target)};function xr(e,t){if(!(e&&e.nodeType&&1===e.nodeType))throw"Sortable: `el` must be an HTMLElement, not ".concat(({}).toString.call(e));this.el=e,this.options=t=_z({},t),e[wc]=this;var i,a,n={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(e.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return w7(e,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(e,t){e.setData("Text",t.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:!1!==xr.supportPointer&&"PointerEvent"in window&&(!_Z||_W),emptyInsertThreshold:5};for(var o in wh.initializePlugins(this,e,n),n)o in t||(t[o]=n[o]);for(var r in xt(t),this)"_"===r.charAt(0)&&"function"==typeof this[r]&&(this[r]=this[r].bind(this));this.nativeDraggable=!t.forceFallback&&w5,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?_Y(e,"pointerdown",this._onTapStart):(_Y(e,"mousedown",this._onTapStart),_Y(e,"touchstart",this._onTapStart)),this.nativeDraggable&&(_Y(e,"dragover",this),_Y(e,"dragenter",this)),wX.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),_z(this,(a=[],{captureAnimationState:function(){a=[],this.options.animation&&[].slice.call(this.el.children).forEach(function(e){if("none"!==_3(e,"display")&&e!==xr.ghost){a.push({target:e,rect:_8(e)});var t=_F({},a[a.length-1].rect);if(e.thisAnimationDuration){var i=_4(e,!0);i&&(t.top-=i.f,t.left-=i.e)}e.fromRect=t}})},addAnimationState:function(e){a.push(e)},removeAnimationState:function(e){a.splice(function(e,t){for(var i in e)if(e.hasOwnProperty(i)){for(var a in t)if(t.hasOwnProperty(a)&&t[a]===e[i][a])return Number(i)}return -1}(a,{target:e}),1)},animateAll:function(e){var t=this;if(!this.options.animation){clearTimeout(i),"function"==typeof e&&e();return}var n=!1,o=0;a.forEach(function(e){var i,a,r,s,l=0,c=e.target,d=c.fromRect,u=_8(c),p=c.prevFromRect,h=c.prevToRect,g=e.rect,m=_4(c,!0);m&&(u.top-=m.f,u.left-=m.e),c.toRect=u,c.thisAnimationDuration&&wn(p,u)&&!wn(d,u)&&(g.top-u.top)/(g.left-u.left)==(d.top-u.top)/(d.left-u.left)&&(i=g,a=p,r=h,s=t.options,l=Math.sqrt(Math.pow(a.top-i.top,2)+Math.pow(a.left-i.left,2))/Math.sqrt(Math.pow(a.top-r.top,2)+Math.pow(a.left-r.left,2))*s.animation),wn(u,d)||(c.prevFromRect=d,c.prevToRect=u,l||(l=t.options.animation),t.animate(c,g,u,l)),l&&(n=!0,o=Math.max(o,l),clearTimeout(c.animationResetTimer),c.animationResetTimer=setTimeout(function(){c.animationTime=0,c.prevFromRect=null,c.fromRect=null,c.prevToRect=null,c.thisAnimationDuration=null},l),c.thisAnimationDuration=l)}),clearTimeout(i),n?i=setTimeout(function(){"function"==typeof e&&e()},o):"function"==typeof e&&e(),a=[]},animate:function(e,t,i,a){if(a){_3(e,"transition",""),_3(e,"transform","");var n=_4(this.el),o=n&&n.a,r=n&&n.d,s=(t.left-i.left)/(o||1),l=(t.top-i.top)/(r||1);e.animatingX=!!s,e.animatingY=!!l,_3(e,"transform","translate3d("+s+"px,"+l+"px,0)"),this.forRepaintDummy=e.offsetWidth,_3(e,"transition","transform "+a+"ms"+(this.options.easing?" "+this.options.easing:"")),_3(e,"transform","translate3d(0,0,0)"),"number"==typeof e.animated&&clearTimeout(e.animated),e.animated=setTimeout(function(){_3(e,"transition",""),_3(e,"transform",""),e.animated=!1,e.animatingX=!1,e.animatingY=!1},a)}}}))}function xs(e,t,i,a,n,o,r,s){var l,c,d=e[wc],u=d.options.onMove;return!window.CustomEvent||_H||_V?(l=document.createEvent("Event")).initEvent("move",!0,!0):l=new CustomEvent("move",{bubbles:!0,cancelable:!0}),l.to=t,l.from=e,l.dragged=i,l.draggedRect=a,l.related=n||t,l.relatedRect=o||_8(t),l.willInsertAfter=s,l.originalEvent=r,e.dispatchEvent(l),u&&(c=u.call(d,l,r)),c}function xl(e){e.draggable=!1}function xc(){w2=!1}function xd(e){return setTimeout(e,0)}function xu(e){return clearTimeout(e)}xr.prototype={constructor:xr,_isOutsideThisEl:function(e){this.el.contains(e)||e===this.el||(wZ=null)},_getDirection:function(e,t){return"function"==typeof this.options.direction?this.options.direction.call(this,e,t,wS):this.options.direction},_onTapStart:function(e){if(e.cancelable){var t=this,i=this.el,a=this.options,n=a.preventOnFilter,o=e.type,r=e.touches&&e.touches[0]||e.pointerType&&"touch"===e.pointerType&&e,s=(r||e).target,l=e.target.shadowRoot&&(e.path&&e.path[0]||e.composedPath&&e.composedPath()[0])||s,c=a.filter;if(function(e){w3.length=0;for(var t=e.getElementsByTagName("input"),i=t.length;i--;){var a=t[i];a.checked&&w3.push(a)}}(i),!(wS||/mousedown|pointerdown/.test(o)&&0!==e.button||a.disabled||l.isContentEditable||!this.nativeDraggable&&_Z&&s&&"SELECT"===s.tagName.toUpperCase()||(s=_1(s,a.draggable,i,!1))&&s.animated)&&wA!==s){if(wR=wt(s),wL=wt(s,a.draggable),"function"==typeof c){if(c.call(this,e,s,this)){wf({sortable:t,rootEl:l,name:"filter",targetEl:s,toEl:i,fromEl:i}),wm("filter",t,{evt:e}),n&&e.preventDefault();return}}else if(c&&(c=c.split(",").some(function(a){if(a=_1(l,a.trim(),i,!1))return wf({sortable:t,rootEl:a,name:"filter",targetEl:s,fromEl:i,toEl:i}),wm("filter",t,{evt:e}),!0}))){n&&e.preventDefault();return}(!a.handle||_1(l,a.handle,i,!1))&&this._prepareDragStart(e,r,s)}}},_prepareDragStart:function(e,t,i){var a,n=this,o=n.el,r=n.options,s=o.ownerDocument;if(i&&!wS&&i.parentNode===o){var l=_8(i);if(wI=o,wC=(wS=i).parentNode,wD=wS.nextSibling,wA=i,wP=r.group,xr.dragged=wS,wH=(wU={target:wS,clientX:(t||e).clientX,clientY:(t||e).clientY}).clientX-l.left,wV=wU.clientY-l.top,this._lastX=(t||e).clientX,this._lastY=(t||e).clientY,wS.style["will-change"]="all",a=function(){(wm("delayEnded",n,{evt:e}),xr.eventCanceled)?n._onDrop():(n._disableDelayedDragEvents(),!_q&&n.nativeDraggable&&(wS.draggable=!0),n._triggerDragStart(e,t),wf({sortable:n,name:"choose",originalEvent:e}),_2(wS,r.chosenClass,!0))},r.ignore.split(",").forEach(function(e){_6(wS,e.trim(),xl)}),_Y(s,"dragover",xn),_Y(s,"mousemove",xn),_Y(s,"touchmove",xn),r.supportPointer?(_Y(s,"pointerup",n._onDrop),this.nativeDraggable||_Y(s,"pointercancel",n._onDrop)):(_Y(s,"mouseup",n._onDrop),_Y(s,"touchend",n._onDrop),_Y(s,"touchcancel",n._onDrop)),_q&&this.nativeDraggable&&(this.options.touchStartThreshold=4,wS.draggable=!0),wm("delayStart",this,{evt:e}),!r.delay||r.delayOnTouchOnly&&!t||this.nativeDraggable&&(_V||_H))a();else{if(xr.eventCanceled)return void this._onDrop();r.supportPointer?(_Y(s,"pointerup",n._disableDelayedDrag),_Y(s,"pointercancel",n._disableDelayedDrag)):(_Y(s,"mouseup",n._disableDelayedDrag),_Y(s,"touchend",n._disableDelayedDrag),_Y(s,"touchcancel",n._disableDelayedDrag)),_Y(s,"mousemove",n._delayedDragTouchMoveHandler),_Y(s,"touchmove",n._delayedDragTouchMoveHandler),r.supportPointer&&_Y(s,"pointermove",n._delayedDragTouchMoveHandler),n._dragStartTimer=setTimeout(a,r.delay)}}},_delayedDragTouchMoveHandler:function(e){var t=e.touches?e.touches[0]:e;Math.max(Math.abs(t.clientX-this._lastX),Math.abs(t.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){wS&&xl(wS),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var e=this.el.ownerDocument;_Q(e,"mouseup",this._disableDelayedDrag),_Q(e,"touchend",this._disableDelayedDrag),_Q(e,"touchcancel",this._disableDelayedDrag),_Q(e,"pointerup",this._disableDelayedDrag),_Q(e,"pointercancel",this._disableDelayedDrag),_Q(e,"mousemove",this._delayedDragTouchMoveHandler),_Q(e,"touchmove",this._delayedDragTouchMoveHandler),_Q(e,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(e,t){t=t||"touch"==e.pointerType&&e,!this.nativeDraggable||t?this.options.supportPointer?_Y(document,"pointermove",this._onTouchMove):t?_Y(document,"touchmove",this._onTouchMove):_Y(document,"mousemove",this._onTouchMove):(_Y(wS,"dragend",this),_Y(wI,"dragstart",this._onDragStart));try{document.selection?xd(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(e,t){if(wY=!1,wI&&wS){wm("dragStarted",this,{evt:t}),this.nativeDraggable&&_Y(document,"dragover",xo);var i=this.options;e||_2(wS,i.dragClass,!1),_2(wS,i.ghostClass,!0),xr.active=this,e&&this._appendGhost(),wf({sortable:this,name:"start",originalEvent:t})}else this._nulling()},_emulateDragOver:function(){if(wF){this._lastX=wF.clientX,this._lastY=wF.clientY,xi();for(var e=document.elementFromPoint(wF.clientX,wF.clientY),t=e;e&&e.shadowRoot&&(e=e.shadowRoot.elementFromPoint(wF.clientX,wF.clientY))!==t;)t=e;if(wS.parentNode[wc]._isOutsideThisEl(e),t)do{if(t[wc]&&t[wc]._onDragOver({clientX:wF.clientX,clientY:wF.clientY,target:e,rootEl:t})&&!this.options.dragoverBubble)break;e=t}while(t=_J(t))xa()}},_onTouchMove:function(e){if(wU){var t=this.options,i=t.fallbackTolerance,a=t.fallbackOffset,n=e.touches?e.touches[0]:e,o=wT&&_4(wT,!0),r=wT&&o&&o.a,s=wT&&o&&o.d,l=_W&&wK&&wi(wK),c=(n.clientX-wU.clientX+a.x)/(r||1)+(l?l[0]-w0[0]:0)/(r||1),d=(n.clientY-wU.clientY+a.y)/(s||1)+(l?l[1]-w0[1]:0)/(s||1);if(!xr.active&&!wY){if(i&&Math.max(Math.abs(n.clientX-this._lastX),Math.abs(n.clientY-this._lastY))<i)return;this._onDragStart(e,!0)}if(wT){o?(o.e+=c-(wj||0),o.f+=d-(wB||0)):o={a:1,b:0,c:0,d:1,e:c,f:d};var u="matrix(".concat(o.a,",").concat(o.b,",").concat(o.c,",").concat(o.d,",").concat(o.e,",").concat(o.f,")");_3(wT,"webkitTransform",u),_3(wT,"mozTransform",u),_3(wT,"msTransform",u),_3(wT,"transform",u),wj=c,wB=d,wF=n}e.cancelable&&e.preventDefault()}},_appendGhost:function(){if(!wT){var e=this.options.fallbackOnBody?document.body:wI,t=_8(wS,!0,_W,!0,e),i=this.options;if(_W){for(wK=e;"static"===_3(wK,"position")&&"none"===_3(wK,"transform")&&wK!==document;)wK=wK.parentNode;wK!==document.body&&wK!==document.documentElement?(wK===document&&(wK=_5()),t.top+=wK.scrollTop,t.left+=wK.scrollLeft):wK=_5(),w0=wi(wK)}_2(wT=wS.cloneNode(!0),i.ghostClass,!1),_2(wT,i.fallbackClass,!0),_2(wT,i.dragClass,!0),_3(wT,"transition",""),_3(wT,"transform",""),_3(wT,"box-sizing","border-box"),_3(wT,"margin",0),_3(wT,"top",t.top),_3(wT,"left",t.left),_3(wT,"width",t.width),_3(wT,"height",t.height),_3(wT,"opacity","0.8"),_3(wT,"position",_W?"absolute":"fixed"),_3(wT,"zIndex","100000"),_3(wT,"pointerEvents","none"),xr.ghost=wT,e.appendChild(wT),_3(wT,"transform-origin",wH/parseInt(wT.style.width)*100+"% "+wV/parseInt(wT.style.height)*100+"%")}},_onDragStart:function(e,t){var i=this,a=e.dataTransfer,n=i.options;(wm("dragStart",this,{evt:e}),xr.eventCanceled)?this._onDrop():(wm("setupClone",this),xr.eventCanceled||((w$=ws(wS)).removeAttribute("id"),w$.draggable=!1,w$.style["will-change"]="",this._hideClone(),_2(w$,this.options.chosenClass,!1),xr.clone=w$),i.cloneId=xd(function(){wm("clone",i),xr.eventCanceled||(i.options.removeCloneOnHide||wI.insertBefore(w$,wS),i._hideClone(),wf({sortable:i,name:"clone"}))}),t||_2(wS,n.dragClass,!0),t?(wQ=!0,i._loopId=setInterval(i._emulateDragOver,50)):(_Q(document,"mouseup",i._onDrop),_Q(document,"touchend",i._onDrop),_Q(document,"touchcancel",i._onDrop),a&&(a.effectAllowed="move",n.setData&&n.setData.call(i,a,wS)),_Y(document,"drop",i),_3(wS,"transform","translateZ(0)")),wY=!0,i._dragStartId=xd(i._dragStarted.bind(i,t,e)),_Y(document,"selectstart",i),wq=!0,window.getSelection().removeAllRanges(),_Z&&_3(document.body,"user-select","none"))},_onDragOver:function(e){var t,i,a,n,o=this.el,r=e.target,s=this.options,l=s.group,c=xr.active,d=wP===l,u=s.sort,p=wz||c,h=this,g=!1;if(!w2){if(void 0!==e.preventDefault&&e.cancelable&&e.preventDefault(),r=_1(r,s.draggable,o,!0),F("dragOver"),xr.eventCanceled)return g;if(wS.contains(e.target)||r.animated&&r.animatingX&&r.animatingY||h._ignoreWhileAnimating===r)return B(!1);if(wQ=!1,c&&!s.disabled&&(d?u||(a=wC!==wI):wz===this||(this.lastPutMode=wP.checkPull(this,c,wS,e))&&l.checkPut(this,c,wS,e))){if(n="vertical"===this._getDirection(e,r),t=_8(wS),F("dragOverValid"),xr.eventCanceled)return g;if(a)return wC=wI,j(),this._hideClone(),F("revert"),xr.eventCanceled||(wD?wI.insertBefore(wS,wD):wI.appendChild(wS)),B(!0);var m=we(o,s.draggable);if(!m||(y=e,b=n,v=this,_=_8(we(v.el,v.options.draggable)),w=wl(v.el,v.options,wT),(b?y.clientX>w.right+10||y.clientY>_.bottom&&y.clientX>_.left:y.clientY>w.bottom+10||y.clientX>_.right&&y.clientY>_.top)&&!m.animated)){if(m===wS)return B(!1);if(m&&o===e.target&&(r=m),r&&(i=_8(r)),!1!==xs(wI,o,wS,t,r,i,e,!!r))return j(),m&&m.nextSibling?o.insertBefore(wS,m.nextSibling):o.appendChild(wS),wC=o,H(),B(!0)}else if(m&&(x=e,k=n,E=this,S=_8(_9(E.el,0,E.options,!0)),C=wl(E.el,E.options,wT),k?x.clientX<C.left-10||x.clientY<S.top&&x.clientX<S.right:x.clientY<C.top-10||x.clientY<S.bottom&&x.clientX<S.left)){var f=_9(o,0,s,!0);if(f===wS)return B(!1);if(i=_8(r=f),!1!==xs(wI,o,wS,t,r,i,e,!1))return j(),o.insertBefore(wS,f),wC=o,H(),B(!0)}else if(r.parentNode===o){i=_8(r);var y,b,v,_,w,x,k,E,S,C,T,I,D=0,A=wS.parentNode!==o,O=!w9(wS.animated&&wS.toRect||t,r.animated&&r.toRect||i,n),R=n?"top":"left",M=_7(r,"top","top")||_7(wS,"top","top"),L=M?M.scrollTop:void 0;if(wZ!==r&&(I=i[R],wJ=!1,w1=!O&&s.invertSwap||A),0!==(D=function(e,t,i,a,n,o,r,s){var l,c=a?e.clientY:e.clientX,d=a?i.height:i.width,u=a?i.top:i.left,p=a?i.bottom:i.right,h=!1;if(!r){if(s&&wG<d*n){if(!wJ&&(1===wW?c>u+d*o/2:c<p-d*o/2)&&(wJ=!0),wJ)h=!0;else if(1===wW?c<u+wG:c>p-wG)return-wW}else if(c>u+d*(1-n)/2&&c<p-d*(1-n)/2){return l=t,wt(wS)<wt(l)?1:-1}}return(h=h||r)&&(c<u+d*o/2||c>p-d*o/2)?c>u+d/2?1:-1:0}(e,r,i,n,O?1:s.swapThreshold,null==s.invertedSwapThreshold?s.swapThreshold:s.invertedSwapThreshold,w1,wZ===r))){var N=wt(wS);do N-=D,T=wC.children[N];while(T&&("none"===_3(T,"display")||T===wT))}if(0===D||T===r)return B(!1);wZ=r,wW=D;var P=r.nextElementSibling,z=!1,U=xs(wI,o,wS,t,r,i,e,z=1===D);if(!1!==U)return(1===U||-1===U)&&(z=1===U),w2=!0,setTimeout(xc,30),j(),z&&!P?o.appendChild(wS):r.parentNode.insertBefore(wS,z?P:r),M&&wr(M,0,L-M.scrollTop),wC=wS.parentNode,void 0===I||w1||(wG=Math.abs(I-_8(r)[R])),H(),B(!0)}if(o.contains(wS))return B(!1)}return!1}function F(s,l){wm(s,h,_F({evt:e,isOwner:d,axis:n?"vertical":"horizontal",revert:a,dragRect:t,targetRect:i,canSort:u,fromSortable:p,target:r,completed:B,onMove:function(i,a){return xs(wI,o,wS,t,i,_8(i),e,a)},changed:H},l))}function j(){F("dragOverAnimationCapture"),h.captureAnimationState(),h!==p&&p.captureAnimationState()}function B(t){return F("dragOverCompleted",{insertion:t}),t&&(d?c._hideClone():c._showClone(h),h!==p&&(_2(wS,wz?wz.options.ghostClass:c.options.ghostClass,!1),_2(wS,s.ghostClass,!0)),wz!==h&&h!==xr.active?wz=h:h===xr.active&&wz&&(wz=null),p===h&&(h._ignoreWhileAnimating=r),h.animateAll(function(){F("dragOverAnimationComplete"),h._ignoreWhileAnimating=null}),h!==p&&(p.animateAll(),p._ignoreWhileAnimating=null)),(r!==wS||wS.animated)&&(r!==o||r.animated)||(wZ=null),s.dragoverBubble||e.rootEl||r===document||(wS.parentNode[wc]._isOutsideThisEl(e.target),t||xn(e)),!s.dragoverBubble&&e.stopPropagation&&e.stopPropagation(),g=!0}function H(){wM=wt(wS),wN=wt(wS,s.draggable),wf({sortable:h,name:"change",toEl:o,newIndex:wM,newDraggableIndex:wN,originalEvent:e})}},_ignoreWhileAnimating:null,_offMoveEvents:function(){_Q(document,"mousemove",this._onTouchMove),_Q(document,"touchmove",this._onTouchMove),_Q(document,"pointermove",this._onTouchMove),_Q(document,"dragover",xn),_Q(document,"mousemove",xn),_Q(document,"touchmove",xn)},_offUpEvents:function(){var e=this.el.ownerDocument;_Q(e,"mouseup",this._onDrop),_Q(e,"touchend",this._onDrop),_Q(e,"pointerup",this._onDrop),_Q(e,"pointercancel",this._onDrop),_Q(e,"touchcancel",this._onDrop),_Q(document,"selectstart",this)},_onDrop:function(e){var t=this.el,i=this.options;wM=wt(wS),wN=wt(wS,i.draggable),wm("drop",this,{evt:e}),wC=wS&&wS.parentNode,wM=wt(wS),wN=wt(wS,i.draggable),xr.eventCanceled||(wY=!1,w1=!1,wJ=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),xu(this.cloneId),xu(this._dragStartId),this.nativeDraggable&&(_Q(document,"drop",this),_Q(t,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),_Z&&_3(document.body,"user-select",""),_3(wS,"transform",""),e&&(wq&&(e.cancelable&&e.preventDefault(),i.dropBubble||e.stopPropagation()),wT&&wT.parentNode&&wT.parentNode.removeChild(wT),(wI===wC||wz&&"clone"!==wz.lastPutMode)&&w$&&w$.parentNode&&w$.parentNode.removeChild(w$),wS&&(this.nativeDraggable&&_Q(wS,"dragend",this),xl(wS),wS.style["will-change"]="",wq&&!wY&&_2(wS,wz?wz.options.ghostClass:this.options.ghostClass,!1),_2(wS,this.options.chosenClass,!1),wf({sortable:this,name:"unchoose",toEl:wC,newIndex:null,newDraggableIndex:null,originalEvent:e}),wI!==wC?(wM>=0&&(wf({rootEl:wC,name:"add",toEl:wC,fromEl:wI,originalEvent:e}),wf({sortable:this,name:"remove",toEl:wC,originalEvent:e}),wf({rootEl:wC,name:"sort",toEl:wC,fromEl:wI,originalEvent:e}),wf({sortable:this,name:"sort",toEl:wC,originalEvent:e})),wz&&wz.save()):wM!==wR&&wM>=0&&(wf({sortable:this,name:"update",toEl:wC,originalEvent:e}),wf({sortable:this,name:"sort",toEl:wC,originalEvent:e})),xr.active&&((null==wM||-1===wM)&&(wM=wR,wN=wL),wf({sortable:this,name:"end",toEl:wC,originalEvent:e}),this.save())))),this._nulling()},_nulling:function(){wm("nulling",this),wI=wS=wC=wT=wD=w$=wA=wO=wU=wF=wq=wM=wN=wR=wL=wZ=wW=wz=wP=xr.dragged=xr.ghost=xr.clone=xr.active=null;var e=this.el;w3.forEach(function(t){e.contains(t)&&(t.checked=!0)}),w3.length=wj=wB=0},handleEvent:function(e){switch(e.type){case"drop":case"dragend":this._onDrop(e);break;case"dragenter":case"dragover":var t;wS&&(this._onDragOver(e),(t=e).dataTransfer&&(t.dataTransfer.dropEffect="move"),t.cancelable&&t.preventDefault());break;case"selectstart":e.preventDefault()}},toArray:function(){for(var e,t=[],i=this.el.children,a=0,n=i.length,o=this.options;a<n;a++)_1(e=i[a],o.draggable,this.el,!1)&&t.push(e.getAttribute(o.dataIdAttr)||function(e){for(var t=e.tagName+e.className+e.src+e.href+e.textContent,i=t.length,a=0;i--;)a+=t.charCodeAt(i);return a.toString(36)}(e));return t},sort:function(e,t){var i={},a=this.el;this.toArray().forEach(function(e,t){var n=a.children[t];_1(n,this.options.draggable,a,!1)&&(i[e]=n)},this),t&&this.captureAnimationState(),e.forEach(function(e){i[e]&&(a.removeChild(i[e]),a.appendChild(i[e]))}),t&&this.animateAll()},save:function(){var e=this.options.store;e&&e.set&&e.set(this)},closest:function(e,t){return _1(e,t||this.options.draggable,this.el,!1)},option:function(e,t){var i=this.options;if(void 0===t)return i[e];var a=wh.modifyOption(this,e,t);void 0!==a?i[e]=a:i[e]=t,"group"===e&&xt(i)},destroy:function(){wm("destroy",this);var e=this.el;e[wc]=null,_Q(e,"mousedown",this._onTapStart),_Q(e,"touchstart",this._onTapStart),_Q(e,"pointerdown",this._onTapStart),this.nativeDraggable&&(_Q(e,"dragover",this),_Q(e,"dragenter",this)),Array.prototype.forEach.call(e.querySelectorAll("[draggable]"),function(e){e.removeAttribute("draggable")}),this._onDrop(),this._disableDelayedDragEvents(),wX.splice(wX.indexOf(this.el),1),this.el=null},_hideClone:function(){!wO&&(wm("hideClone",this),xr.eventCanceled||(_3(w$,"display","none"),this.options.removeCloneOnHide&&w$.parentNode&&w$.parentNode.removeChild(w$),wO=!0))},_showClone:function(e){if("clone"!==e.lastPutMode)return void this._hideClone();if(wO){if(wm("showClone",this),xr.eventCanceled)return;wS.parentNode!=wI||this.options.group.revertClone?wD?wI.insertBefore(w$,wD):wI.appendChild(w$):wI.insertBefore(w$,wS),this.options.group.revertClone&&this.animate(wS,w$),_3(w$,"display",""),wO=!1}}},w4&&_Y(document,"touchmove",function(e){(xr.active||wY)&&e.cancelable&&e.preventDefault()}),xr.utils={on:_Y,off:_Q,css:_3,find:_6,is:function(e,t){return!!_1(e,t,e,!1)},extend:function(e,t){if(e&&t)for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i]);return e},throttle:wo,closest:_1,toggleClass:_2,clone:ws,index:wt,nextTick:xd,cancelNextTick:xu,detectDirection:w7,getChild:_9,expando:wc},xr.get=function(e){return e[wc]},xr.mount=function(){for(var e=arguments.length,t=Array(e),i=0;i<e;i++)t[i]=arguments[i];t[0].constructor===Array&&(t=t[0]),t.forEach(function(e){if(!e.prototype||!e.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat(({}).toString.call(e));e.utils&&(xr.utils=_F(_F({},xr.utils),e.utils)),wh.mount(e)})},xr.create=function(e,t){return new xr(e,t)},xr.version="1.15.7";var xp,xh,xg,xm,xf,xy,xb=[],xv=!1;function x_(){xb.forEach(function(e){clearInterval(e.pid)}),xb=[]}function xw(){clearInterval(xy)}var xx=wo(function(e,t,i,a){if(t.scroll){var n,o=(e.touches?e.touches[0]:e).clientX,r=(e.touches?e.touches[0]:e).clientY,s=t.scrollSensitivity,l=t.scrollSpeed,c=_5(),d=!1;xh!==i&&(xh=i,x_(),xp=t.scroll,n=t.scrollFn,!0===xp&&(xp=wa(i,!0)));var u=0,p=xp;do{var h=p,g=_8(h),m=g.top,f=g.bottom,y=g.left,b=g.right,v=g.width,_=g.height,w=void 0,x=void 0,k=h.scrollWidth,E=h.scrollHeight,S=_3(h),C=h.scrollLeft,T=h.scrollTop;h===c?(w=v<k&&("auto"===S.overflowX||"scroll"===S.overflowX||"visible"===S.overflowX),x=_<E&&("auto"===S.overflowY||"scroll"===S.overflowY||"visible"===S.overflowY)):(w=v<k&&("auto"===S.overflowX||"scroll"===S.overflowX),x=_<E&&("auto"===S.overflowY||"scroll"===S.overflowY));var I=w&&(Math.abs(b-o)<=s&&C+v<k)-(Math.abs(y-o)<=s&&!!C),D=x&&(Math.abs(f-r)<=s&&T+_<E)-(Math.abs(m-r)<=s&&!!T);if(!xb[u])for(var A=0;A<=u;A++)xb[A]||(xb[A]={});(xb[u].vx!=I||xb[u].vy!=D||xb[u].el!==h)&&(xb[u].el=h,xb[u].vx=I,xb[u].vy=D,clearInterval(xb[u].pid),(0!=I||0!=D)&&(d=!0,xb[u].pid=setInterval((function(){a&&0===this.layer&&xr.active._onTouchMove(xf);var t=xb[this.layer].vy?xb[this.layer].vy*l:0,i=xb[this.layer].vx?xb[this.layer].vx*l:0;("function"!=typeof n||"continue"===n.call(xr.dragged.parentNode[wc],i,t,e,xf,xb[this.layer].el))&&wr(xb[this.layer].el,i,t)}).bind({layer:u}),24))),u++}while(t.bubbleScroll&&p!==c&&(p=wa(p,!1)))xv=d}},30),xk=function(e){var t=e.originalEvent,i=e.putSortable,a=e.dragEl,n=e.activeSortable,o=e.dispatchSortableEvent,r=e.hideGhostForTarget,s=e.unhideGhostForTarget;if(t){var l=i||n;r();var c=t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:t,d=document.elementFromPoint(c.clientX,c.clientY);s(),l&&!l.el.contains(d)&&(o("spill"),this.onSpill({dragEl:a,putSortable:i}))}};function xE(){}function xS(){}function xC(e){let t=e.getAttribute("data-container-id")??"",i=e.getAttribute("data-slot")??void 0;return void 0!==i?{containerId:t,slot:i}:{containerId:t}}function xT(e){return{entityId:e.getAttribute("data-entity-id")??"",entityType:e.getAttribute("data-entity-type")??"",entityCode:e.getAttribute("data-entity-code")??"",element:e}}function*xI(e){for(let t of Array.from(e.children)){if(!(t instanceof HTMLElement))continue;let e=t.getAttribute("data-entity-id");null!==e&&""!==e&&(yield{element:t,id:e})}}function xD(e){let t=[];for(let{id:i}of xI(e))t.push(i);return t}xE.prototype={startIndex:null,dragStart:function(e){var t=e.oldDraggableIndex;this.startIndex=t},onSpill:function(e){var t=e.dragEl,i=e.putSortable;this.sortable.captureAnimationState(),i&&i.captureAnimationState();var a=_9(this.sortable.el,this.startIndex,this.options);a?this.sortable.el.insertBefore(t,a):this.sortable.el.appendChild(t),this.sortable.animateAll(),i&&i.animateAll()},drop:xk},_z(xE,{pluginName:"revertOnSpill"}),xS.prototype={onSpill:function(e){var t=e.dragEl,i=e.putSortable||this.sortable;i.captureAnimationState(),t.parentNode&&t.parentNode.removeChild(t),i.animateAll()},drop:xk},_z(xS,{pluginName:"removeOnSpill"}),xr.mount(new function(){function e(){for(var e in this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0},this)"_"===e.charAt(0)&&"function"==typeof this[e]&&(this[e]=this[e].bind(this))}return e.prototype={dragStarted:function(e){var t=e.originalEvent;this.sortable.nativeDraggable?_Y(document,"dragover",this._handleAutoScroll):this.options.supportPointer?_Y(document,"pointermove",this._handleFallbackAutoScroll):t.touches?_Y(document,"touchmove",this._handleFallbackAutoScroll):_Y(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(e){var t=e.originalEvent;this.options.dragOverBubble||t.rootEl||this._handleAutoScroll(t)},drop:function(){this.sortable.nativeDraggable?_Q(document,"dragover",this._handleAutoScroll):(_Q(document,"pointermove",this._handleFallbackAutoScroll),_Q(document,"touchmove",this._handleFallbackAutoScroll),_Q(document,"mousemove",this._handleFallbackAutoScroll)),xw(),x_(),clearTimeout(wE),wE=void 0},nulling:function(){xf=xh=xp=xv=xy=xg=xm=null,xb.length=0},_handleFallbackAutoScroll:function(e){this._handleAutoScroll(e,!0)},_handleAutoScroll:function(e,t){var i=this,a=(e.touches?e.touches[0]:e).clientX,n=(e.touches?e.touches[0]:e).clientY,o=document.elementFromPoint(a,n);if(xf=e,t||this.options.forceAutoScrollFallback||_V||_H||_Z){xx(e,this.options,o,t);var r=wa(o,!0);xv&&(!xy||a!==xg||n!==xm)&&(xy&&xw(),xy=setInterval(function(){var o=wa(document.elementFromPoint(a,n),!0);o!==r&&(r=o,x_()),xx(e,i.options,o,t)},10),xg=a,xm=n)}else{if(!this.options.bubbleScroll||wa(o,!0)===_5())return void x_();xx(e,this.options,wa(o,!1),!1)}}},_z(e,{pluginName:"scroll",initializeByDefault:!0})}),xr.mount(xS,xE),rg({container:rZ(),sink:rZ(),sortableOptions:rZ().optional(),renderClone:rZ().optional()}).readonly(),rg({instance:rZ(),cancel:rZ()}),rg({parent:rZ(),nextSibling:rZ().nullable()});class xA{constructor(e){this.sortable=null,this.pendingDestroy=null,this.dragStartAnchor=null,this._container=e.container,this.sink=e.sink,this.sortableOptions={...e.sortableOptions??{}},this.renderClone=e.renderClone}get container(){return this._container}install(){null!==this.pendingDestroy?this.pendingDestroy.cancel():null===this.sortable&&(this.sortable=this.createSortable())}uninstall(){if(null!==this.sortable){if(null!==xr.active&&void 0!==xr.active){this.scheduleDeferredDestroy(this.sortable),this.sortable=null;return}this.sortable.destroy(),this.sortable=null}}setContainer(e){if(e!==this._container){if(this._container=e,null!==this.pendingDestroy){let e=this.pendingDestroy.instance;this.pendingDestroy.cancel(),e.destroy(),this.sortable=this.createSortable();return}null!==this.sortable&&(this.sortable.destroy(),this.sortable=this.createSortable())}}enable(){this.sortableOptions={...this.sortableOptions,disabled:!1},this.sortable?.option("disabled",!1)}disable(){this.sortableOptions={...this.sortableOptions,disabled:!0},this.sortable?.option("disabled",!0)}setOption(e,t){this.sortableOptions={...this.sortableOptions,[e]:t},this.sortable?.option(e,t)}setRenderClone(e){this.renderClone=e,null!==this.sortable&&(this.sortable.destroy(),this.sortable=this.createSortable())}handleStart(e){let t=xT(e.item),i=e.item.parentNode;this.dragStartAnchor=null!==i?{parent:i,nextSibling:e.item.nextSibling}:null;let a={dragged:t,item:e.item,from:e.from};this.sink.onDragStart(a)}handleMove(e){let t={dragged:xT(e.dragged),from:e.from,to:e.to,related:e.related,willInsertAfter:!0===e.willInsertAfter,toIndex:function(e){let{from:t,to:i,dragged:a,related:n,willInsertAfter:o}=e,r=function(e){let t=[];for(let{element:i}of xI(e))t.push(i);return t}(i),s=r.indexOf(n);if(-1===s)return r.length;let l=!0===o?s+1:s;if(t===i){let e=r.indexOf(a);-1!==e&&e<l&&(l-=1)}return l}(e),nativeEvent:e};return this.sink.onMove(t)}handleEnd(e){try{let t=xC(e.from),i=xC(e.to),a=String(t.containerId)===String(i.containerId)&&t.slot===i.slot,n=e.oldDraggableIndex??0,o=e.newDraggableIndex??0;if(a&&n===o)return;let r=xT(e.item),s=xD(e.to),l=xD(e.from);e.from!==e.to&&this.revertCrossContainerMutation(e);let c={dragged:r,item:e.item,from:e.from,to:e.to,fromIndex:n,toIndex:o,orderedIdsInTarget:s,orderedIdsInSource:l,nativeEvent:e};this.sink.onCommit(c)}finally{this.dragStartAnchor=null,this.sink.onDragEnd()}}handleClone(e){let t=this.renderClone;if(void 0===t)return;let i=e.clone;if(null==i)return;let a=t(e.item);i.replaceChildren(a)}revertCrossContainerMutation(e){let t=this.dragStartAnchor;if(null!==t)return void t.parent.insertBefore(e.item,t.nextSibling);let i=e.oldIndex??e.oldDraggableIndex??0,a=e.from.children[i]??null;e.from.insertBefore(e.item,a)}createSortable(){let e=void 0!==this.renderClone?e=>this.handleClone(e):void 0;return xr.create(this._container,{...this.sortableOptions,onStart:e=>this.handleStart(e),onMove:e=>this.handleMove(e),onEnd:e=>this.handleEnd(e),...void 0!==e?{onClone:e}:{}})}scheduleDeferredDestroy(e){let t=()=>{document.removeEventListener("drop",i),document.removeEventListener("dragend",i),document.removeEventListener("pointerup",i)},i=()=>{t(),this.pendingDestroy=null,queueMicrotask(()=>e.destroy())},a=()=>{t(),this.pendingDestroy=null,this.sortable=e};this.pendingDestroy={instance:e,cancel:a},document.addEventListener("drop",i),document.addEventListener("dragend",i),document.addEventListener("pointerup",i)}}let x$={MOUSE:"mouse",PEN:"pen",TOUCH:"touch"},xO=rT(x$);rg({container:rZ(),sink:rZ(),renderPreview:rZ(),renderInsertionLine:rZ().optional(),previewTarget:rZ().optional(),group:rZ().optional(),handle:oR().min(1).optional(),surface:oR().min(1).optional(),ignore:oR().min(1).optional(),dragThreshold:o5().positive().optional(),autoScroll:ry([re(),rZ()]).optional(),touchLongPressMs:o5().nonnegative().optional(),touchDragThreshold:o5().positive().optional(),touchPreviewOffset:o5().optional(),animateCommit:re().optional(),awaitRendered:rZ().optional(),animateDurationMs:o5().positive().optional(),animateEasing:oR().optional()}).readonly(),rg({dragThreshold:o5().positive(),disabled:re(),touchLongPressMs:o5().nonnegative(),touchDragThreshold:o5().positive(),touchPreviewOffset:o5(),animateCommit:re(),awaitRendered:rZ(),animateDurationMs:o5().positive(),animateEasing:oR()});let xR={IDLE:"idle",ARMING:"arming",DRAGGING:"dragging"};rT(xR);let xM=rg({kind:rT([xR.IDLE])}).readonly(),xL=rg({kind:rT([xR.ARMING]),item:rZ(),startX:o5(),startY:o5(),pointerType:xO,longPressTimer:o5().nullable(),longPressFired:re()}),xN=rg({container:rZ(),previousValue:oR(),previousPriority:oR()}),xP=rg({scale:oR(),transformOrigin:oR()});rv("kind",[xM,xL,rg({kind:rT([xR.DRAGGING]),item:rZ(),previewEl:rZ(),insertionLine:rZ().nullable(),currentTarget:rZ().nullable(),lastMoveAccepted:re(),lastMoveCtx:rZ().nullable(),pointerType:xO,insertionContainerPatch:xN.nullable(),previewScale:o5(),previewStylePatch:xP.nullable()})]),rT({UP:"up",DOWN:"down",LEFT:"left",RIGHT:"right"}),rg({top:o5(),left:o5(),bottom:o5(),right:o5()}).readonly(),rg({x:o5(),y:o5()}).readonly();let xz={TAPER:"taper",FLAT:"flat"},xU=rT(xz);rg({edgeZone:o5().positive().optional(),maxSpeed:o5().positive().optional(),disabled:re().optional(),pan:rZ().optional(),panBounds:rZ().optional(),panCurve:xU.optional()});let xF=xz.TAPER;class xj{constructor(e={}){this.rafHandle=null,this.lastX=0,this.lastY=0,this.lastTarget=null,this.edgeZone=e.edgeZone??60,this.maxSpeed=e.maxSpeed??20,this.disabled=e.disabled??!1,this.pan=e.pan,this.panBounds=e.panBounds,this.panCurve=e.panCurve??xF}start(e,t,i){this.lastX=e,this.lastY=t,this.lastTarget=i,null!==this.rafHandle&&(cancelAnimationFrame(this.rafHandle),this.rafHandle=null),this.scheduleNext()}tick(e,t,i){null===i&&!this.hasPanSink()||(this.lastX=e,this.lastY=t,null!==i&&(this.lastTarget=i),this.runOnce()&&null===this.rafHandle&&this.scheduleNext())}stop(){null!==this.rafHandle&&(cancelAnimationFrame(this.rafHandle),this.rafHandle=null),this.lastTarget=null}isRunning(){return null!==this.rafHandle}scheduleNext(){null===this.rafHandle&&(this.rafHandle=requestAnimationFrame(()=>{this.rafHandle=null,this.runOnce()&&null!==this.lastTarget&&this.scheduleNext()}))}runOnce(){if(this.disabled)return!1;let e=this.panBounds;if(void 0!==this.pan&&void 0!==e){let t=e();return null!==t&&!(t.right<=t.left)&&!(t.bottom<=t.top)&&this.applyPan(t,this.lastX,this.lastY)}if(null===this.lastTarget)return!1;let t=this.findScrollableAncestor(this.lastTarget);return null!==t&&this.applyScroll(t,this.lastX,this.lastY)}findScrollableAncestor(e){let t=e;for(;null!==t;){if(this.isScrollable(t))return t;t=t.parentElement}let i=document.scrollingElement??document.documentElement;return i instanceof HTMLElement&&(i.scrollHeight>i.clientHeight||i.scrollWidth>i.clientWidth)?i:null}isScrollable(e){let t=getComputedStyle(e),i=t.overflowY,a=t.overflowX,n=("auto"===i||"scroll"===i||"overlay"===i)&&e.scrollHeight>e.clientHeight,o=("auto"===a||"scroll"===a||"overlay"===a)&&e.scrollWidth>e.clientWidth;return n||o}getViewportRect(e){if(e===document.scrollingElement||e===document.documentElement)return{top:0,left:0,bottom:window.innerHeight,right:window.innerWidth};let t=e.getBoundingClientRect();return{top:t.top,left:t.left,bottom:t.bottom,right:t.right}}applyScroll(e,t,i){let a=this.getViewportRect(e),n=!1,o=i-a.top,r=a.bottom-i;if(o>=0&&o<this.edgeZone&&e.scrollTop>0){let t=this.maxSpeed*(1-o/this.edgeZone);e.scrollTop=Math.max(0,e.scrollTop-t),n=!0}else if(r>=0&&r<this.edgeZone&&e.scrollTop<e.scrollHeight-e.clientHeight){let t=this.maxSpeed*(1-r/this.edgeZone);e.scrollTop=Math.min(e.scrollHeight-e.clientHeight,e.scrollTop+t),n=!0}let s=t-a.left,l=a.right-t;if(s>=0&&s<this.edgeZone&&e.scrollLeft>0){let t=this.maxSpeed*(1-s/this.edgeZone);e.scrollLeft=Math.max(0,e.scrollLeft-t),n=!0}else if(l>=0&&l<this.edgeZone&&e.scrollLeft<e.scrollWidth-e.clientWidth){let t=this.maxSpeed*(1-l/this.edgeZone);e.scrollLeft=Math.min(e.scrollWidth-e.clientWidth,e.scrollLeft+t),n=!0}return n}hasPanSink(){return void 0!==this.pan&&void 0!==this.panBounds}applyPan(e,t,i){let a=this.axisPanSpeed(i-e.top,e.bottom-i),n=this.axisPanSpeed(t-e.left,e.right-t);return(0!==n||0!==a)&&(this.pan?.({x:n,y:a}),!0)}axisPanSpeed(e,t){return e<this.edgeZone&&e<=t?this.panSpeedAt(e):t<this.edgeZone?-this.panSpeedAt(t):0}panSpeedAt(e){return this.panCurve===xz.FLAT?this.maxSpeed:this.maxSpeed*(1-Math.max(0,e)/this.edgeZone)}}rg({durationMs:o5().positive().optional(),easing:oR().optional(),scale:o5().positive().optional()}),rg({element:rZ(),rect:rZ()});class xB{constructor(){this.snapshots=new Map,this.active=new Set}snapshot(e){for(let t of e)this.snapshots.set(t,{element:t,rect:t.getBoundingClientRect()})}async play(e,t={}){let i=t.durationMs??200,a=t.easing??"cubic-bezier(0.2, 0, 0, 1)",n=t.scale??1,o=[];for(let t of e){let e=this.snapshots.get(t);if(void 0===e||!t.isConnected||"function"!=typeof t.animate)continue;let r=t.getBoundingClientRect(),s=(e.rect.left-r.left)/n,l=(e.rect.top-r.top)/n;if(0===s&&0===l)continue;let c=t.animate([{transform:`translate(${s}px, ${l}px)`},{transform:"translate(0, 0)"}],{duration:i,easing:a,fill:"none"});this.active.add(c),o.push(c.finished.catch(()=>void 0).finally(()=>{this.active.delete(c)}))}this.snapshots.clear(),await Promise.all(o)}cancelAll(){for(let e of this.active)e.cancel();this.active.clear(),this.snapshots.clear()}}let xH="data-uas-sortable-bound",xV="--uas-sortable-preview-scale";function xq(e,t,i){for(let a of e){if(a===i)break;if(a instanceof Element&&a.matches(t))return!0}return!1}function xZ(e){let t=[];for(let i of Array.from(e.children)){if(!(i instanceof HTMLElement)||i.classList.contains("uas-sortable-insertion-line"))continue;let e=i.getAttribute("data-entity-id");null!==e&&""!==e&&t.push(i)}return t}function xW(e){return xZ(e).map(e=>e.getAttribute("data-entity-id")??"")}function xG(){let e=document.createElement("div");return e.className="uas-sortable-insertion-line",e.style.position="absolute",e.style.height="2px",e.style.background="var(--uas--color--primary, #007cba)",e.style.borderRadius="999px",e.style.pointerEvents="none",e.style.zIndex="1",e}function xK(){return new Promise(e=>{requestAnimationFrame(()=>{e()})})}class xY{constructor(e){var t;this.clickSuppressionTimer=null,this.autoScrollEngine=null,this.flipAnimator=null,this.installed=!1,this.state={kind:xR.IDLE},this.onPointerDown=e=>this.handlePointerDown(e),this.onPointerMove=e=>this.handlePointerMove(e),this.onPointerUp=e=>this.handlePointerUp(e),this.onLostCapture=e=>{this.state.kind===xR.DRAGGING&&"function"==typeof this.state.item.hasPointerCapture&&this.state.item.hasPointerCapture(e.pointerId)||this.cancelDrag()},this.onPointerCancel=()=>this.cancelDrag(),this.onClickAfterDrag=e=>{e.preventDefault(),e.stopImmediatePropagation(),this.releaseClickSuppression()},this.onDragGestureRelease=()=>{window.removeEventListener("pointerup",this.onDragGestureRelease,!0),window.removeEventListener("pointercancel",this.onDragGestureRelease,!0),this.clickSuppressionTimer=window.setTimeout(()=>this.releaseClickSuppression(),0)},this.onDragGestureAbandoned=()=>this.releaseClickSuppression(),this.onKeyDown=e=>{"Escape"===e.key&&this.cancelDrag()},this._container=e.container,this.sink=e.sink,this.renderPreview=e.renderPreview,this.renderInsertionLine=e.renderInsertionLine??xG,this.previewTarget=e.previewTarget??document.body,this.group=e.group??null,this.handle=e.handle??null,this.surface=e.surface??null,this.ignore=e.ignore??null,this.options={dragThreshold:e.dragThreshold??4,disabled:!1,touchLongPressMs:e.touchLongPressMs??250,touchDragThreshold:e.touchDragThreshold??10,touchPreviewOffset:e.touchPreviewOffset??60,animateCommit:e.animateCommit??!1,awaitRendered:e.awaitRendered??xK,animateDurationMs:e.animateDurationMs??200,animateEasing:e.animateEasing??"cubic-bezier(0.2, 0, 0, 1)"},this.autoScroll=!1!==(t=e.autoScroll)&&(!0===t||void 0===t?{}:t)}get container(){return this._container}install(){this.installed||(this.installed=!0,this._container.addEventListener("pointerdown",this.onPointerDown),this._container.setAttribute(xH,""))}uninstall(){this.installed&&(this.installed=!1,this._container.removeEventListener("pointerdown",this.onPointerDown),this._container.removeAttribute(xH),this.state.kind!==xR.IDLE&&(this.teardownDocumentListeners(),this.cleanupDragArtifacts(),this.state={kind:xR.IDLE}),null!==this.flipAnimator&&this.flipAnimator.cancelAll())}setContainer(e){if(e===this._container)return;let t=this.installed;this.uninstall(),this._container=e,t&&this.install()}enable(){this.options={...this.options,disabled:!1}}disable(){this.options={...this.options,disabled:!0},this.state.kind!==xR.IDLE&&this.cancelDrag()}setOption(e,t){if("dragThreshold"===e){if("number"==typeof t){this.options={...this.options,dragThreshold:t};return}console.warn(`[PreviewDriver] setOption('dragThreshold', ...) expected number, got ${typeof t}`);return}if("disabled"===e)return"boolean"==typeof t?void(t?this.disable():this.enable()):(console.warn(`[PreviewDriver] setOption('disabled', ...) expected boolean, got ${typeof t}`),void 0);console.warn(`[PreviewDriver] setOption('${e}', ...) is not supported in preview mode; set it at construction instead.`)}handlePointerDown(e){var t;if(this.options.disabled||0!==e.button||this.state.kind!==xR.IDLE)return;let i=e.composedPath();if(!function(e,t){for(let i of e)if(i instanceof Element&&i.hasAttribute(xH))return i===t;return!1}(i,this._container))return;let a=(t=e.pointerType)===x$.TOUCH?x$.TOUCH:t===x$.PEN?x$.PEN:x$.MOUSE;if(!this.pressStartsGesture(i,a))return;let n=this.findDraggableChild(e.target);if(null===n)return;let o=a===x$.TOUCH&&this.options.touchLongPressMs>0,r=o?window.setTimeout(()=>this.markLongPressFired(),this.options.touchLongPressMs):null;this.state={kind:xR.ARMING,item:n,startX:e.clientX,startY:e.clientY,pointerType:a,longPressTimer:r,longPressFired:!o},(null!==this.handle||null!==this.surface)&&a!==x$.TOUCH&&e.preventDefault(),this.installDocumentListeners()}pressStartsGesture(e,t){return!(null!==this.ignore&&xq(e,this.ignore,this._container))&&(!!(null===this.handle&&null===this.surface||null!==this.handle&&function(e,t){for(let i of e)if(i instanceof Element&&i.matches(t))return!0;return!1}(e,this.handle))||null!==this.surface&&t!==x$.TOUCH&&xq(e,this.surface,this._container))}markLongPressFired(){this.state.kind===xR.ARMING&&(this.state.longPressFired=!0,this.state.longPressTimer=null)}handlePointerMove(e){if(this.state.kind!==xR.IDLE){if(this.state.kind===xR.ARMING){let t=this.state,i=Math.hypot(e.clientX-t.startX,e.clientY-t.startY),a=t.pointerType===x$.TOUCH,n=a?this.options.touchDragThreshold:this.options.dragThreshold;return a&&!t.longPressFired&&i>this.options.touchDragThreshold?void this.cancelArmingState():void(!t.longPressFired||i<n||this.beginDrag(t.item,e,t))}this.updateDrag(e)}}handlePointerUp(e){if(this.state.kind!==xR.IDLE){if(this.state.kind===xR.ARMING)return void this.cancelArmingState();this.endDrag(e)}}cancelArmingState(){this.state.kind===xR.ARMING&&(null!==this.state.longPressTimer&&clearTimeout(this.state.longPressTimer),this.teardownDocumentListeners(),this.state={kind:xR.IDLE})}beginDrag(e,t,i){null!==i.longPressTimer&&void 0!==i.longPressTimer&&clearTimeout(i.longPressTimer);let a=xT(e),n=i.pointerType,o=this.renderPreview(a);o.style.position="fixed",o.style.pointerEvents="none",o.style.zIndex="9999";let r=this.resolveContainerScale(this._container),s=this.applyPreviewScale(o,r);this.positionPreview(o,t.clientX,t.clientY,n,r),this.previewTarget.appendChild(o),e.dataset.uasDraggingSource="true",e.addEventListener("lostpointercapture",this.onLostCapture);try{e.setPointerCapture(t.pointerId)}catch{}this.armClickSuppression(),this.state={kind:xR.DRAGGING,item:e,previewEl:o,insertionLine:null,currentTarget:null,lastMoveAccepted:!0,lastMoveCtx:null,pointerType:n,insertionContainerPatch:null,previewScale:r,previewStylePatch:s};let l={dragged:a,item:e,from:this._container};this.sink.onDragStart(l),!1!==this.autoScroll&&(this.autoScrollEngine=new xj(this.autoScroll),this.autoScrollEngine.start(t.clientX,t.clientY,e)),this.updateDrag(t)}updateDrag(e){if(this.state.kind!==xR.DRAGGING)return;let t=this.state;if(this.positionPreview(t.previewEl,e.clientX,e.clientY,t.pointerType,t.previewScale),null!==this.autoScrollEngine){let i="function"==typeof document.elementFromPoint?document.elementFromPoint(e.clientX,e.clientY):t.item;this.autoScrollEngine.tick(e.clientX,e.clientY,i instanceof HTMLElement?i:null)}let i=this.findHitTarget(e.clientX,e.clientY);if(null===i){null!==t.insertionLine&&(t.insertionLine.style.display="none"),t.currentTarget=null;return}let a=xT(t.item),{related:n,willInsertAfter:o,toIndex:r}=this.computeHoverPosition(i,e.clientY,t.item),s={dragged:a,from:this._container,to:i,related:n,willInsertAfter:o,toIndex:r,nativeEvent:e},l=this.sink.onMove(s);t.lastMoveAccepted=l,t.lastMoveCtx=s,t.currentTarget!==i&&(null!==t.insertionLine&&t.insertionLine.remove(),this.releaseInsertionContainer(t.insertionContainerPatch),t.insertionContainerPatch=this.anchorInsertionContainer(i),t.insertionLine=this.renderInsertionLine(),t.insertionLine.style.position="absolute",t.insertionLine.style.pointerEvents="none",i.appendChild(t.insertionLine),t.currentTarget=i),null!==t.insertionLine&&(this.positionInsertionLine(t.insertionLine,i,n,o),t.insertionLine.style.display=l?"":"none")}endDrag(e){var t,i;let a,n;if(this.state.kind!==xR.DRAGGING)return;let o=this.state;if(!o.lastMoveAccepted||null===o.lastMoveCtx||null===o.currentTarget)return void this.cancelDrag();let r=xT(o.item),s=xZ(this._container).indexOf(o.item),l=o.currentTarget,c=o.lastMoveCtx.toIndex,d=String(r.entityId),u=(t=xW(l),a=t.filter(e=>e!==d),n=Math.max(0,c),a.splice(n,0,d),a),p=l===this._container?u:(i=xW(this._container),i.filter(e=>e!==d)),h={dragged:r,item:o.item,from:this._container,to:l,fromIndex:s,toIndex:c,orderedIdsInTarget:u,orderedIdsInSource:p,nativeEvent:e},g=this.options.animateCommit?this.collectFlipElements(l):null;null!==g&&(null===this.flipAnimator&&(this.flipAnimator=new xB),this.flipAnimator.snapshot(g)),this.cleanupDragArtifacts(),this.teardownDocumentListeners(),this.state={kind:xR.IDLE},this.sink.onCommit(h),this.sink.onDragEnd(),null!==g&&null!==this.flipAnimator&&this.playCommitFlip(g,l)}collectFlipElements(e){let t=[],i=new Set,a=e=>{for(let a of xZ(e))i.has(a)||(i.add(a),t.push(a))};return a(this._container),e!==this._container&&a(e),t}async playCommitFlip(e,t){try{await this.options.awaitRendered(),null!==this.flipAnimator&&await this.flipAnimator.play(e,{durationMs:this.options.animateDurationMs,easing:this.options.animateEasing,scale:this.resolveContainerScale(t)})}catch(e){console.error("[PreviewDriver] FLIP commit animation failed",e)}}cancelDrag(){if(this.state.kind===xR.IDLE)return;let e=this.state.kind===xR.DRAGGING;this.cleanupDragArtifacts(),this.teardownDocumentListeners(),this.state={kind:xR.IDLE},e&&(this.sink.onCancel?.(),this.sink.onDragEnd())}positionPreview(e,t,i,a,n){let o=a===x$.TOUCH?this.options.touchPreviewOffset*Math.max(1,n):0;e.style.left=`${t}px`,e.style.top=`${i-o}px`}applyPreviewScale(e,t){if(1===t)return null;let i={scale:e.style.getPropertyValue("scale"),transformOrigin:e.style.getPropertyValue("transform-origin")};return e.style.setProperty(xV,String(t)),e.style.setProperty("transform-origin","0 0"),e.style.setProperty("scale",String(t)),i}releasePreviewScale(e,t){null!==t&&(e.style.removeProperty(xV),this.restoreInlineProperty(e,"scale",t.scale),this.restoreInlineProperty(e,"transform-origin",t.transformOrigin))}restoreInlineProperty(e,t,i){""===i?e.style.removeProperty(t):e.style.setProperty(t,i)}installDocumentListeners(){document.addEventListener("pointermove",this.onPointerMove),document.addEventListener("pointerup",this.onPointerUp),document.addEventListener("pointercancel",this.onPointerCancel),document.addEventListener("keydown",this.onKeyDown)}teardownDocumentListeners(){document.removeEventListener("pointermove",this.onPointerMove),document.removeEventListener("pointerup",this.onPointerUp),document.removeEventListener("pointercancel",this.onPointerCancel),document.removeEventListener("keydown",this.onKeyDown)}armClickSuppression(){this.releaseClickSuppression(),window.addEventListener("click",this.onClickAfterDrag,!0),window.addEventListener("pointerup",this.onDragGestureRelease,!0),window.addEventListener("pointercancel",this.onDragGestureRelease,!0),window.addEventListener("pointerdown",this.onDragGestureAbandoned,!0),window.addEventListener("blur",this.onDragGestureAbandoned)}releaseClickSuppression(){window.removeEventListener("click",this.onClickAfterDrag,!0),window.removeEventListener("pointerup",this.onDragGestureRelease,!0),window.removeEventListener("pointercancel",this.onDragGestureRelease,!0),window.removeEventListener("pointerdown",this.onDragGestureAbandoned,!0),window.removeEventListener("blur",this.onDragGestureAbandoned),null!==this.clickSuppressionTimer&&(clearTimeout(this.clickSuppressionTimer),this.clickSuppressionTimer=null)}cleanupDragArtifacts(){if(null!==this.autoScrollEngine&&(this.autoScrollEngine.stop(),this.autoScrollEngine=null),this.state.kind===xR.ARMING){null!==this.state.longPressTimer&&clearTimeout(this.state.longPressTimer);return}if(this.state.kind!==xR.DRAGGING)return;let e=this.state;this.releasePreviewScale(e.previewEl,e.previewStylePatch),e.previewStylePatch=null,e.previewEl.remove(),null!==e.insertionLine&&e.insertionLine.remove(),this.releaseInsertionContainer(e.insertionContainerPatch),e.insertionContainerPatch=null,delete e.item.dataset.uasDraggingSource,e.item.removeEventListener("lostpointercapture",this.onLostCapture)}findDraggableChild(e){if(!(e instanceof Element))return null;let t=e;for(;null!==t&&t!==this._container;){if(t instanceof HTMLElement&&t.parentElement===this._container&&null!==t.getAttribute("data-entity-id"))return t;t=t.parentElement}return null}findHitTarget(e,t){let i=new Set(this.collectCandidateContainers());if(0===i.size)return null;let a=function(e,t){if("function"!=typeof document.elementFromPoint)return null;let i=document.elementFromPoint(e,t);for(;null!==i&&null!==i.shadowRoot;){let a=i.shadowRoot.elementFromPoint(e,t);if(null===a||a===i)break;i=a}return i}(e,t);if(null!==a){let e=a;for(;null!==e;){if(e instanceof HTMLElement&&i.has(e))return e;let t=e.parentNode;e=t instanceof ShadowRoot?t.host:t}return null}let n=null,o=1/0;for(let a of i){let i=a.getBoundingClientRect();if(e<i.left||e>i.right||t<i.top||t>i.bottom)continue;let r=i.width*i.height;r<o&&(n=a,o=r)}return n}collectCandidateContainers(){let e=[this._container];if(null!==this.group)for(let t of this.group.getParticipants())t.container===this._container||e.includes(t.container)||e.push(t.container);return e}computeHoverPosition(e,t,i){let a=xZ(e).filter(e=>e!==i);if(0===a.length)return{related:e,willInsertAfter:!1,toIndex:0};for(let e=0;e<a.length;e++){let i=a[e],n=i.getBoundingClientRect();if(t<n.top+n.height/2)return{related:i,willInsertAfter:!1,toIndex:e}}return{related:a[a.length-1],willInsertAfter:!0,toIndex:a.length}}resolveContainerScale(e){let t=e.offsetHeight;if(t<=0)return 1;let i=e.getBoundingClientRect().height/t;return!Number.isFinite(i)||i<=0||Math.abs(i-1)<=.5/t+Number.EPSILON?1:i}positionInsertionLine(e,t,i,a){let n=t.getBoundingClientRect();if(i===t){e.style.top="0px",e.style.left="0px",e.style.right="0px";return}let o=i.getBoundingClientRect(),r=e.offsetHeight||3,s=this.resolveContainerScale(t),l=((a?o.bottom:o.top)-n.top)/s-r/2;e.style.top=`${l}px`,e.style.left="0px",e.style.right="0px"}anchorInsertionContainer(e){if("static"!==getComputedStyle(e).position)return null;let t=e.style.getPropertyValue("position"),i=e.style.getPropertyPriority("position");return e.style.setProperty("position","relative"),{container:e,previousValue:t,previousPriority:i}}releaseInsertionContainer(e){if(null!==e){if(""===e.previousValue)return void e.container.style.removeProperty("position");e.container.style.setProperty("position",e.previousValue,e.previousPriority)}}}rg({dragged:rZ(),item:rZ(),from:rZ()}).readonly(),rg({dragged:rZ(),from:rZ(),to:rZ(),related:rZ(),willInsertAfter:re(),toIndex:o5(),nativeEvent:rr().optional()}).readonly(),rg({dragged:rZ(),item:rZ(),from:rZ(),to:rZ(),fromIndex:o5(),toIndex:o5(),orderedIdsInTarget:rp(oR()).readonly(),orderedIdsInSource:rp(oR()).readonly(),nativeEvent:rr().optional()}).readonly();let xQ={NATIVE:"native",PREVIEW:"preview"},xX=rT(xQ);rg({dragThreshold:o5().positive().optional(),disabled:re().optional()}).readonly();let xJ=rg({containerId:ry([oR(),o5()]),slot:oR().optional()}),x1=rg({entityId:ry([oR(),o5()]),entityType:oR(),entityCode:oR(),element:rZ()});rg({dragged:x1,from:xJ,to:xJ,toIndex:o5(),related:rZ(),willInsertAfter:re(),raw:rr()}).readonly(),rg({dragged:x1,from:xJ,to:xJ,toIndex:o5(),fromIndex:o5(),orderedIdsInTarget:rp(oR()).readonly(),orderedIdsInSource:rp(oR()).readonly().optional(),raw:rr()}).readonly();let x0={canDrop:rZ().optional(),onCommit:rZ(),onDragStart:rZ().optional(),onDragEnd:rZ().optional(),renderClone:rZ().optional(),evaluateDropAllowed:rZ().optional()};rg(x0).readonly(),rg({isDragging:re(),draggedEntity:x1.nullable(),dragOrigin:xJ.nullable(),dragTarget:xJ.nullable()}).readonly(),rg({container:rZ(),identity:xJ,...x0,sortableOptions:rZ().optional(),group:rZ().optional(),dragMode:xX.optional(),renderPreview:rZ().optional(),renderInsertionLine:rZ().optional(),previewTarget:rZ().optional(),autoScroll:ry([re(),rZ()]).optional(),handle:oR().min(1).optional(),surface:oR().min(1).optional(),ignore:oR().min(1).optional(),dragThreshold:o5().positive().optional(),touchLongPressMs:o5().nonnegative().optional(),touchDragThreshold:o5().positive().optional(),touchPreviewOffset:o5().optional(),animateCommit:re().optional(),awaitRendered:rZ().optional(),animateDurationMs:o5().positive().optional(),animateEasing:oR().optional()}),rg({id:oR().optional(),autoScroll:ry([re(),rZ()]).optional()});class x2{constructor(e={}){this.participants=new Set,this.options=e}get size(){return this.participants.size}get autoScroll(){return this.options.autoScroll}register(e){this.participants.add(e)}unregister(e){this.participants.delete(e)}getParticipants(){return Array.from(this.participants)}broadcastDragStart(e){for(let t of this.participants)try{t.applyDropAllowed(e)}catch(e){console.error("[SortableGroup] participant.applyDropAllowed threw",e)}}broadcastDragEnd(){for(let e of this.participants)try{e.clearDropAllowed()}catch(e){console.error("[SortableGroup] participant.clearDropAllowed threw",e)}}toString(){let e=this.options.id??"<anonymous>";return`SortableGroup(${e})`}}class x3{constructor(e,t){this.driver=null,this._state={isDragging:!1,draggedEntity:null,dragOrigin:null,dragTarget:null},this.identityCache=new WeakMap,this.host=e,this.options=t,this.callbacks={canDrop:t.canDrop,onCommit:t.onCommit,onDragStart:t.onDragStart,onDragEnd:t.onDragEnd},e.addController(this)}get isDragging(){return this._state.isDragging}get draggedEntity(){return this._state.draggedEntity}get dragOrigin(){return this._state.dragOrigin}get dragTarget(){return this._state.dragTarget}get state(){return this._state}get identity(){return this.options.identity}get container(){return this.options.container}hostConnected(){null===this.driver&&(this.driver=this.createDriver()),this.driver.install(),this.options.group?.register(this)}hostDisconnected(){null!==this.driver&&(this.options.group?.unregister(this),this.driver.uninstall())}enable(){this.options={...this.options,sortableOptions:{...this.options.sortableOptions,disabled:!1}},this.driver?.enable()}disable(){this.options={...this.options,sortableOptions:{...this.options.sortableOptions,disabled:!0}},this.driver?.disable()}updateCallbacks(e){let t={};void 0!==e.canDrop&&Object.assign(t,{canDrop:e.canDrop}),void 0!==e.onCommit&&Object.assign(t,{onCommit:e.onCommit}),void 0!==e.onDragStart&&Object.assign(t,{onDragStart:e.onDragStart}),void 0!==e.onDragEnd&&Object.assign(t,{onDragEnd:e.onDragEnd}),this.callbacks={...this.callbacks,...t},void 0!==e.renderClone&&(this.options={...this.options,renderClone:e.renderClone},null!==this.driver&&"function"==typeof Reflect.get(this.driver,"setRenderClone")&&this.driver.setRenderClone(e.renderClone))}setSortableOption(e,t){this.options={...this.options,sortableOptions:{...this.options.sortableOptions,[e]:t}},this.driver?.setOption(e,t)}setContainer(e){e!==this.options.container&&(this.options={...this.options,container:e},null!==this.driver&&(this.endDragImplicitly(),this.driver.setContainer(e)))}applyDropAllowed(e){let t=this.options.evaluateDropAllowed;if(void 0===t)return;let i=t(e);this.options.container.dataset.uasDropAllowed=i?"true":"false"}clearDropAllowed(){delete this.options.container.dataset.uasDropAllowed}onDragStart(e){let t=this.resolveIdentity(e.from);this.setState({isDragging:!0,draggedEntity:e.dragged,dragOrigin:t,dragTarget:t}),this.callbacks.onDragStart?.(e.dragged),this.options.group?.broadcastDragStart(e.dragged)}onMove(e){let t=this._state.draggedEntity??e.dragged,i=this.resolveIdentity(e.from),a=this.resolveIdentity(e.to);if(this.setState({isDragging:!0,draggedEntity:t,dragOrigin:this._state.dragOrigin??i,dragTarget:a}),void 0===this.callbacks.canDrop)return!0;let n={dragged:t,from:i,to:a,toIndex:e.toIndex,related:e.related,willInsertAfter:e.willInsertAfter,raw:e.nativeEvent};return this.callbacks.canDrop(n)}onCommit(e){let t=this.resolveIdentity(e.from),i=this.resolveIdentity(e.to),a=String(t.containerId)===String(i.containerId)&&t.slot===i.slot,n={dragged:e.dragged,from:t,to:i,fromIndex:e.fromIndex,toIndex:e.toIndex,orderedIdsInTarget:e.orderedIdsInTarget,orderedIdsInSource:a?void 0:e.orderedIdsInSource,raw:e.nativeEvent};this.callbacks.onCommit(n)}onDragEnd(){this.resetDragState(),this.callbacks.onDragEnd?.(),this.options.group?.broadcastDragEnd()}resetDragState(){this.setState({isDragging:!1,draggedEntity:null,dragOrigin:null,dragTarget:null})}endDragImplicitly(){let e=this._state.isDragging;this.resetDragState(),e&&(this.callbacks.onDragEnd?.(),this.options.group?.broadcastDragEnd())}setState(e){let t=this._state;(t.isDragging!==e.isDragging||t.draggedEntity!==e.draggedEntity||t.dragOrigin!==e.dragOrigin||t.dragTarget!==e.dragTarget)&&(this._state=e,this.host.requestUpdate())}resolveIdentity(e){let t=this.identityCache.get(e);if(void 0!==t)return t;let i=xC(e);return this.identityCache.set(e,i),i}createDriver(){if((this.options.dragMode??xQ.NATIVE)===xQ.PREVIEW){if(void 0===this.options.renderPreview)throw Error(`[SortableController] dragMode: "${xQ.PREVIEW}" requires options.renderPreview`);let e=this.options.autoScroll??this.options.group?.autoScroll;return new xY({container:this.options.container,sink:this,renderPreview:this.options.renderPreview,...void 0!==this.options.renderInsertionLine?{renderInsertionLine:this.options.renderInsertionLine}:{},...void 0!==this.options.previewTarget?{previewTarget:this.options.previewTarget}:{},...void 0!==this.options.group?{group:this.options.group}:{},...void 0!==this.options.handle?{handle:this.options.handle}:{},...void 0!==this.options.surface?{surface:this.options.surface}:{},...void 0!==this.options.ignore?{ignore:this.options.ignore}:{},...void 0!==this.options.dragThreshold?{dragThreshold:this.options.dragThreshold}:{},...void 0!==e?{autoScroll:e}:{},...void 0!==this.options.touchLongPressMs?{touchLongPressMs:this.options.touchLongPressMs}:{},...void 0!==this.options.touchDragThreshold?{touchDragThreshold:this.options.touchDragThreshold}:{},...void 0!==this.options.touchPreviewOffset?{touchPreviewOffset:this.options.touchPreviewOffset}:{},...void 0!==this.options.animateCommit?{animateCommit:this.options.animateCommit}:{},...void 0!==this.options.awaitRendered?{awaitRendered:this.options.awaitRendered}:{},...void 0!==this.options.animateDurationMs?{animateDurationMs:this.options.animateDurationMs}:{},...void 0!==this.options.animateEasing?{animateEasing:this.options.animateEasing}:{}})}return new xA({container:this.options.container,sink:this,sortableOptions:this.options.sortableOptions,renderClone:this.options.renderClone})}}rg({url:ry([oH(),rV()]),onEvent:rV(),eventSchemas:ry([rE(oR(),rG(oA)),rV()]).optional(),eventTypes:ry([rp(oR()),rV()]).optional(),signal:rG(AbortSignal).optional(),autoConnect:re().optional()}).strict(),rg({streaming:re(),connected:re(),error:rG(Error).nullable()});let x4=rg({x:o5(),y:o5()}).readonly(),x6=rg({width:o5(),height:o5()}).readonly();rg({top:o5(),left:o5(),bottom:o5(),right:o5()}).readonly();let x5=rg({x:o5(),y:o5(),zoom:o5().positive()}).readonly(),x8=rg({min:o5().positive(),max:o5().positive()}).readonly().refine(e=>e.max>=e.min,{message:"zoomLimits.max must be greater than or equal to zoomLimits.min"}),x7={CENTER:"center",START:"start"},x9=rT(x7);rg({deltaX:o5(),deltaY:o5(),deltaMode:o5(),ctrlKey:re(),metaKey:re()}).readonly();let ke={x:0,y:0,zoom:1},kt={min:.25,max:2},ki=x7.CENTER,ka=rg({getPanel:rZ(e=>"function"==typeof e,{message:"getPanel must be a function"}),getContent:rZ(e=>"function"==typeof e,{message:"getContent must be a function"}),initialViewport:x5.optional(),zoomLimits:x8.optional(),zoomStep:o5().gt(1).optional(),panPadding:o5().nonnegative().optional(),contentAnchor:x9.optional(),fitTopInset:o5().optional()}).strict().readonly();function kn(e,t){let i=t??kt,a=Number.isFinite(e)&&e>0?e:1;return Math.min(i.max,Math.max(i.min,a))}function ko(e,t){return{x:e.x+t.x,y:e.y+t.y,zoom:e.zoom}}rg({padding:o5().optional(),topInset:o5().optional(),limits:x8.optional()}).readonly(),rg({lineHeight:o5().optional(),zoomDivisor:o5().positive().optional(),zoomMaxDelta:o5().positive().optional()}).readonly();function kr(e,t,i,a){return Number.isFinite(e)?1===t?e*a:2===t?e*Math.max(0,i):e:0}function ks(e,t,i,a,n){let o=i+n-e,r=a-n-t;return o<=0&&r>=0||o>0&&r<0?0:o>0?o:r}class kl{constructor(e,t){this.frame=null,this.missedUpdate=!1,this.easedMotion=!1;let i=ka.parse(t);this.host=e,this.getPanel=i.getPanel,this.getContent=i.getContent,this.zoomLimitsValue=i.zoomLimits??kt,this.zoomStepFactor=i.zoomStep??1.15,this.panPaddingValue=i.panPadding??40,this.contentAnchor=i.contentAnchor??ki,this.fitTopInset=i.fitTopInset??24;let a=i.initialViewport??ke;this.current={x:a.x,y:a.y,zoom:kn(a.zoom,this.zoomLimits)},e.addController(this)}hostConnected(){this.missedUpdate&&(this.missedUpdate=!1,this.scheduleUpdate())}hostDisconnected(){this.missedUpdate=null!==this.frame,this.cancelScheduledUpdate()}get viewport(){return this.current}get zoom(){return this.current.zoom}set zoom(e){this.zoomAbout(kn(e,this.zoomLimits)/this.current.zoom,this.panelCentre(),!1)}get eased(){return this.easedMotion}get zoomLimits(){return this.zoomLimitsValue}get panPadding(){return this.panPaddingValue}get transform(){return`translate(${this.current.x}px, ${this.current.y}px) scale(${this.current.zoom})`}panBy(e){this.easedMotion=!1,this.commit(ko(this.current,e))}easePanBy(e){this.easedMotion=!0,this.commit(ko(this.current,e))}zoomAt(e,t){this.zoomAbout(e,t,!1)}zoomStep(e){let t=1===e?this.zoomStepFactor:1/this.zoomStepFactor;this.zoomAbout(t,this.panelCentre(),!0)}zoomTo(e){this.zoomAbout(kn(e,this.zoomLimits)/this.current.zoom,this.panelCentre(),!0)}fit(){this.easedMotion=!0,this.commit(function(e,t,i={}){if(e.width<=0||e.height<=0||t.width<=0||t.height<=0)return{...ke,zoom:kn(ke.zoom,i.limits)};let a=i.padding??40,n=i.topInset??24,o=Number.isFinite(a)?Math.max(0,a):0,r=kn(Math.min(1,t.width/(e.width+2*o)),i.limits),s=e.width*r,l=e.height*r;return{x:(t.width-s)/2,y:l<=t.height?(t.height-l)/2:n,zoom:r}}(this.getContent(),this.getPanel(),{padding:this.panPadding,topInset:this.fitTopInset,limits:this.zoomLimits}))}reclamp(){this.commit(this.current)}panelCentre(){let e=this.getPanel();return{x:e.width/2,y:e.height/2}}zoomAbout(e,t,i){this.easedMotion=i,this.commit(function(e,t,i,a){let n=kn(e.zoom*t,a);if(n===e.zoom)return e;let o=n/e.zoom;return{x:i.x-(i.x-e.x)*o,y:i.y-(i.y-e.y)*o,zoom:n}}(this.current,e,t,this.zoomLimits))}commit(e){this.current=this.constrain(e),this.scheduleUpdate()}constrain(e){var t,i;let a,n,o,r=this.getPanel(),s=this.getContent();return r.width<=0||r.height<=0||s.width<=0||s.height<=0?e:(t=this.panPadding,i=this.contentAnchor,a=t??40,n=i??ki,{x:(o=(e,t,i)=>{let o=i-t;if(n===x7.START){let t=Math.min(0,o)-a;return Math.min(Math.max(0,o)+a,Math.max(t,e))}let r=o-a;return r>a?o/2:Math.min(a,Math.max(r,e))})(e.x,s.width*e.zoom,r.width),y:o(e.y,s.height*e.zoom,r.height),zoom:e.zoom})}scheduleUpdate(){null===this.frame&&(this.frame=requestAnimationFrame(()=>{this.frame=null,this.host.requestUpdate()}))}cancelScheduledUpdate(){null!==this.frame&&(cancelAnimationFrame(this.frame),this.frame=null)}}let kc={PLUGIN:"plugin",APP:"app",BUILT_IN:"built-in"},kd=rT(kc).readonly(),ku=rg({categories:rp(oR()),collections:rp(oR()),tags:rp(oR().min(1)).max(5,{error:"An integration can have a maximum of 5 tags."})}).readonly(),kp=rg({icon:oH(),description:oR().min(1).nullable(),short_description:oR().min(1).nullable(),primary_color:oR().regex(/^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/,{error:"Integration `primary_color` must be a valid hex color string (e.g., #RRGGBB or #RGB)."}),taxonomies:ku,external_url:oH()}),kh={LINK_OPEN_AND_WAIT:"link-open-and-wait",LINK_EXTERNAL:"link-external",FETCH:"fetch"};rT(kh).readonly();let kg=rg({icon:ur.optional(),label:oR().min(1)}),km=kg.extend({type:rT([kh.LINK_OPEN_AND_WAIT]),url:oH()}),kf=kg.extend({type:rT([kh.LINK_EXTERNAL]),url:oH()}),ky=rg({type:rT([kh.FETCH]),icon:ur.optional(),label:oR().min(1),addon_id:oR().min(1),addon_action:uR}),kb=rv("type",[km,kf,ky],{error:e=>{if("invalid_union"===e.code){let t="unknown";return e.input&&"object"==typeof e.input&&e.input&&"type"in e.input&&(t=String(e.input.type)),`The CTA object data does not match the required structure for the type '${t}'. Please check its properties.`}}}).readonly(),kv={LICENSE:"license",INSTALLABLE:"installable",ACCOUNT:"account"};rT(kv).readonly();let k_={APP:"account-app"},kw=rT(k_).readonly(),kx={WP_ORG:"installable-wp-org",OPEN_SOURCE:"installable-open-source",COMMERCIAL:"installable-commercial"},kk=rT(kx).readonly(),kE={APP_LITE_NO_API_ACCOUNT:"license-app-lite-no-api-account",APP_LITE_NO_CREDITS:"license-app-lite-no-credits",REQUIRES_PRO_BASIC_NOT_INSTALLED:"license-requires-pro-basic-not-installed",REQUIRES_PRO_PLUS_NOT_INSTALLED:"license-requires-pro-plus-not-installed",REQUIRES_PRO_ELITE_NOT_INSTALLED:"license-requires-pro-elite-not-installed",REQUIRES_PRO_INSTALLED_BUT_DEACTIVATED:"license-requires-pro-installed-but-deactivated",REQUIRES_PRO_INSTALLED_LICENSE_INACTIVE:"license-requires-pro-installed-license-inactive",REQUIRES_PRO_INSTALLED_LICENSE_EXPIRED:"license-requires-pro-installed-license-expired",REQUIRES_PRO_INSTALLED_LICENSE_DISABLED:"license-requires-pro-installed-license-disabled",REQUIRES_PRO_INSTALLED_LICENSE_SITE_INACTIVE:"license-requires-pro-installed-license-site-inactive",REQUIRES_PRO_INSTALLED_LICENSE_INVALID:"license-requires-pro-installed-license-invalid",REQUIRES_PRO_INSTALLED_LICENSE_ACTIVE_PRO_BASIC_REQUIRES_PLUS:"license-requires-pro-installed-license-active-pro-basic-requires-plus",REQUIRES_PRO_INSTALLED_LICENSE_ACTIVE_PRO_BASIC_REQUIRES_ELITE:"license-requires-pro-installed-license-active-pro-basic-requires-elite",REQUIRES_PRO_INSTALLED_LICENSE_ACTIVE_PRO_PLUS_REQUIRES_ELITE:"license-requires-pro-installed-license-active-pro-plus-requires-elite"};kE.REQUIRES_PRO_BASIC_NOT_INSTALLED,kE.REQUIRES_PRO_PLUS_NOT_INSTALLED,kE.REQUIRES_PRO_ELITE_NOT_INSTALLED,kE.REQUIRES_PRO_INSTALLED_BUT_DEACTIVATED,kE.REQUIRES_PRO_INSTALLED_LICENSE_INACTIVE,kE.REQUIRES_PRO_INSTALLED_LICENSE_EXPIRED,kE.REQUIRES_PRO_INSTALLED_LICENSE_DISABLED,kE.REQUIRES_PRO_INSTALLED_LICENSE_SITE_INACTIVE,kE.REQUIRES_PRO_INSTALLED_LICENSE_INVALID,kE.REQUIRES_PRO_INSTALLED_LICENSE_ACTIVE_PRO_BASIC_REQUIRES_PLUS,kE.REQUIRES_PRO_INSTALLED_LICENSE_ACTIVE_PRO_BASIC_REQUIRES_ELITE,kE.REQUIRES_PRO_INSTALLED_LICENSE_ACTIVE_PRO_PLUS_REQUIRES_ELITE;let kS=rT(kE).readonly(),kC={INSTALLABLE:"installable",INSTALLABLE_COMMERCIAL:"installable-commercial",INSTALLABLE_OPEN_SOURCE:"installable-open-source",INSTALLABLE_WP_ORG:"installable-wp-org",ACCOUNT:"account",LICENSE:"license"},kT=rT(kC).readonly(),kI=rp(pN.extend({scenario_id:kT})).readonly(),kD=rg({id:oR().min(1),name:oR().min(1),description:oR().min(1),is_met:re(),is_disabled:re(),dependencies:rp(oR().min(1)),cta:kb,tags:kI}),kA=kD.extend({type:rT([kv.ACCOUNT]),scenario_id:kw,icon:oH()}),k$=kD.extend({type:rT([kv.INSTALLABLE]),scenario_id:kk,icon:oH(),developer:rg({name:oR().min(1),site:oH()})}),kO=rv("type",[kD.extend({type:rT([kv.LICENSE]),scenario_id:kS}),k$,kA],{error:"The dependency object data does not match any of the required dependency structures. Please verify the type property and its associated fields."}).readonly(),kR=rg({all_met:re(),items:rp(kO)}).readonly(),kM={TRIGGER:"trigger",ACTION:"action"},kL=oR().min(1),kN={[kM.TRIGGER]:(0,lX._x)("Trigger","Item type","uncanny-automator"),[kM.ACTION]:(0,lX._x)("Action","Item type","uncanny-automator")};oR().min(1);let kP={ITEM:"item",BLOCK:"block",BLOCK_MODIFIER:"block_modifier"},kz=rT(kP),kU={TEXT:"text",TEXTAREA:"textarea",SELECT:"select",URL:"url",EMAIL:"email",INT:"int",FLOAT:"float",CHECKBOX:"checkbox",RADIO:"radio",DATE:"date",TIME:"time",REPEATER:"repeater",FILE:"file"},kF=rT(kU),kj=rT({VISIBLE:"visible",HIDDEN:"hidden"}),kB=rT({SHOW:"show",HIDE:"hide"}),kH=rT({AND:"AND"}),kV=rT({EQ:"==",EQ_LOOSE:"=",NE:"!=",GT:">",LT:"<",GTE:">=",LTE:"<=",LIKE:"LIKE"}),kq=rg({option_code:oR().min(1),compare:kV,value:ry([oR(),o5(),re()])}),kZ=rg({operator:kH,rule_conditions:rp(kq).min(1),resulting_visibility:kB}),kW=rg({default_state:kj,visibility_rules:rp(kZ)}),kG=rm({option_code:oR().min(1),input_type:kF,label:oR().min(1),required:re().optional(),description:oR().optional(),default_value:rr().optional(),placeholder:oR().optional(),token_name:oR().optional(),show_label_in_sentence:re().optional(),supports_tokens:re().optional(),exclude_default_token:re().optional(),unsupported_tokens:rp(oR()).optional(),only_loopable_tokens:re().optional(),relevant_tokens:rp(rr()).optional(),supports_tinymce:re().optional(),supports_fullpage_editing:re().optional(),supports_markdown:re().optional(),allowed_html_tags:rp(oR()).optional(),supports_media:re().optional(),supports_custom_value:re().optional(),custom_value_description:oR().optional(),supports_multiple_values:re().optional(),options:rp(rm({value:oR(),text:oR()})).optional(),options_show_id:re().optional(),min_number:o5().optional(),max_number:o5().optional(),is_toggle:re().optional(),dynamic_visibility:kW.optional(),fields:rp(rr()).optional(),add_row_button:oR().optional(),remove_row_button:oR().optional(),layout:oR().optional(),hide_header:re().optional(),hide_actions:re().optional()}),kK=rp(kG).readonly(),kY=rg({label:oR(),show_label_in_sentence:re().optional(),attributes:rg({code_language:oR().optional(),supports_html:re().optional()}).optional(),supports_custom_value:re().optional(),supports_multiple_values:re().optional(),supports_tinymce:re().optional(),supports_fullpage_editing:re().optional(),supports_markdown:re().optional(),supports_media:re().optional(),allowed_html_tags:rp(oR()).optional()}),kQ=rp(rg({id:ry([o5(),oR()]).optional(),filename:oR(),url:oR(),alt:oR().optional(),mime:oR().optional(),filesizeHumanReadable:oR().optional()}).loose()),kX=rp(rE(oR(),oR())),kJ=ry([oR(),o5()]),k1=ry([oR(),o5(),re(),ri(),rp(kJ)]),k0=rp(rE(oR(),k1)),k2=oR(),k3=rg({type:kF,value:k2,custom:oR().optional(),readable:oR().optional(),miscellaneous:kY}).superRefine((e,t)=>{if(e.type!==kU.SELECT&&e.type!==kU.RADIO)return;let i=e.value.trim();""===i||"[]"===i||e.readable||t.addIssue({code:"custom",message:"Field `readable` is required for a selected select or radio field."})}),k4=rE(oR(),k3),k6=rg({entity_type:rT([kP.BLOCK]),entity_code:oR().min(1),when:rp(rg({field:oR().min(1),equals:k2})).min(1).optional(),reason:oR().min(1).optional()}).strict(),k5={TOKEN_HINT:"token-hint",TESTS:"tests"};rT(k5).readonly();let k8={FIELD_VALUE:"field-value",MAY_BE_EMPTY:"may-be-empty"},k7=rT(k8).readonly(),k9={PASSED:"tests-passed",FAILED:"tests-failed",SKIPPED:"tests-skipped"},Ee=rT(k9).readonly(),Et=pN.extend({type:rT([k5.TOKEN_HINT]),scenario_id:k7}).strict(),Ei=pN.extend({type:rT([k5.TESTS]),scenario_id:Ee}).strict(),Ea="availability",En="dependency",Eo="third-party",Er={LOCKED:"availability-locked",UNSUPPORTED:"availability-unsupported"},Es=rT(Er).readonly(),El={NOT_CONNECTED:"dependency-not-connected",NOT_INSTALLED:"dependency-not-installed",NOT_ACTIVE:"dependency-not-active"},Ec=rT(El).readonly(),Ed=rT({THIRD_PARTY:"third-party"}).readonly(),Eu={LICENSE:y8.LICENSE,AVAILABILITY:Ea,DEPENDENCY:En,THIRD_PARTY:Eo,TOKEN_HINT:k5.TOKEN_HINT,TESTS:k5.TESTS},Ep=rT(Eu).readonly(),Eh=pN.extend({type:rT([Ea]),scenario_id:Es}).strict(),Eg=pN.extend({type:rT([En]),scenario_id:Ec}).strict(),Em=pN.extend({type:rT([Eo]),scenario_id:Ed}).strict(),Ef=ry([be,Es,Ec,Ed,k7,Ee]),Ey=rp(rv("type",[bt,Eh,Eg,Em,Et,Ei],{error:"The tag object data does not match any of the required tag structures. Please verify the type property and its associated fields."}).readonly()).readonly(),Eb=rg({code:oR().min(1),type:kL,required_tier:pA,is_deprecated:re(),has_tests:re(),has_status_toggle:re(),sentence:rg({short:oR().min(1).refine(e=>!e.includes(":"),{error:'Short sentence should not contain colons (":"). If using {{tokens}}, they must be simple replacement keys (e.g., {{token_name}}) without format specifiers.'}),dynamic:oR().min(1)}),description:oR().min(1).nullable(),requires_user_data:re(),url_support:oH().nullable(),required_block_ancestors:rp(k6).readonly().optional(),unsupported_block_ancestors:rp(k6).readonly().optional()}).strict(),Ev=Eb.extend({dependencies:kR,tags:Ey}),E_=rE(kL,rE(oR(),Eb)).superRefine((e,t)=>{for(let[i,a]of Object.entries(e))for(let[e,n]of Object.entries(a))e!==n.code&&t.addIssue({code:"custom",message:`The record key '${e}' must match the 'code' property ('${n.code}') of the item. Mismatch found.`,path:[i,e,"code"]})}).readonly(),Ew=rE(kL,rE(oR(),Ev,{error:"Scoped item map must be an object mapping codes to item data."})).refine(e=>Object.keys(e).length<=1,{message:"Scoped items map must contain at most one item type bucket."}).superRefine((e,t)=>{for(let[i,a]of Object.entries(e))for(let[e,n]of Object.entries(a??{}))e!==n.code&&t.addIssue({code:"custom",message:`The record key '${e}' must match the 'code' property ('${n.code}') of the item. Mismatch found.`,path:[i,e,"code"]})}).readonly(),Ex="filter_condition",Ek="loop_filter",EE=oR().min(1),ES=rg({code:oR().min(1),type:EE,required_tier:pA,is_deprecated:re(),has_tests:re(),sentence:rg({short:oR().min(1).refine(e=>!e.includes(":"),{error:'Short sentence should not contain colons (":"). If using {{tokens}}, they must be simple replacement keys (e.g., {{token_name}}) without format specifiers.'}),dynamic:oR().min(1)}),description:oR().min(1).nullable(),requires_user_data:re(),url_support:oH().nullable(),required_block_ancestors:rp(k6).readonly().optional(),unsupported_block_ancestors:rp(k6).readonly().optional()}).strict(),EC=ES.extend({dependencies:kR,tags:Ey}),ET=(e,t)=>{for(let[i,a]of Object.entries(e))for(let[e,n]of Object.entries(a))e!==n.code&&t.addIssue({code:"custom",message:`The record key '${e}' must match the 'code' property ('${n.code}') of the modifier. Mismatch found.`,path:[i,e,"code"]})},EI=rE(EE,rE(oR(),ES)).superRefine(ET).readonly(),ED=rE(EE,rE(oR(),EC)).refine(e=>Object.keys(e).length<=1,{message:"Scoped block_modifiers map must contain at most one modifier-type bucket."}).superRefine(ET).readonly(),EA={TEXT:"text",EMAIL:"email",URL:"url",INTEGER:"integer",FLOAT:"float",DATE:"date",TIME:"time",DATETIME:"datetime",BOOLEAN:"boolean",ARRAY:"array"},E$=rT(EA).readonly(),EO=[EA.INTEGER,EA.FLOAT],ER=rg({fields:kK,id_template:oR().min(1),name_template:oR().min(1)}).strict().readonly(),EM=[],EL=rg({code:oR().min(1),name:oR().min(1),data_type:E$,requires_user_data:re(),tags:Ey.optional(),config:ER.optional()}).strict().transform(e=>({code:e.code,name:e.name,data_type:e.data_type,requires_user_data:e.requires_user_data,tags:e.tags??EM,...void 0!==e.config?{config:e.config}:{}})),EN=rE(oR(),EL,{error:"Integration tokens must be an object mapping token codes to token data."}).superRefine((e,t)=>{for(let[i,a]of Object.entries(e))i!==a.code&&t.addIssue({code:"custom",message:`The record key '${i}' must match the 'code' property ('${a.code}') of the token. Mismatch found.`,path:[i,"code"]})}).readonly(),EP=rg({type:kd,code:oR().min(1),required_tier:pA,name:oR().min(1),details:kp,items:E_,block_modifiers:EI,tokens:EN}),Ez=rg({count:o5().int().min(0),last_used:o5().int().min(0)}).strict(),EU=rg({tags:Ey,usage:Ez,dependencies:kR,items:Ew,block_modifiers:ED}),EF=EP.extend({type:rT([kc.APP])}).strict(),Ej=EF.extend(EU.shape).extend({connected:re()}).strict().readonly(),EB=EP.extend({type:rT([kc.BUILT_IN])}).strict(),EH=EB.extend(EU.shape).strict().readonly(),EV=EP.extend({type:rT([kc.PLUGIN])}).strict(),Eq=EV.extend(EU.shape).strict().readonly(),EZ=rv("type",[EF,EV,EB],{error:"Integration data does not match any of the required integration structures. Please verify the type property and its associated fields."}).readonly(),EW=rv("type",[Ej,Eq,EH],{error:"Scoped integration data does not match any of the required integration structures. Please verify the type property and its associated fields."}).superRefine((e,t)=>{let i=e=>e.id,a=new Set;if(e.dependencies.items.forEach(e=>{a.add(i(e))}),a.size>0&&Object.values(kM).forEach(n=>{var o=e.items[n];if(o)for(let[e,r]of Object.entries(o))r.dependencies.items.forEach((o,r)=>{let s=i(o);a.has(s)&&t.addIssue({code:"custom",message:`Redundant dependency requirement: Item '${e}' (in '${n}') repeats the id '${s}' of an integration-level dependency. An item must not repeat an integration row's id; item-level dependencies are only for requirements *additional* to the integration's own.`,path:["items",n,e,"dependencies","items",r]})})}),e.dependencies?.all_met===!1)for(let[,i]of Object.entries(e.items))for(let[a,n]of Object.entries(i))n.dependencies?.all_met===!0&&t.addIssue({code:"custom",path:["items",a,"dependencies","all_met"],message:`Because the integration '${e.code}' has unmet dependencies, the dependencies for item '${a}' cannot be satisfied, regardless of their individual status. Change the item dependency \`all_met\` to \`false\`.`});let n=0===e.dependencies.items.length||e.dependencies.items.every(e=>!0===e.is_met);e.dependencies.all_met!==n&&t.addIssue({code:"custom",path:["dependencies","all_met"],message:`The 'all_met' flag is ${e.dependencies.all_met}, but based on the individual dependency items, it should be ${n}. Please ensure consistency.`})}).readonly(),EG=rE(oR(),EZ).superRefine((e,t)=>{for(let[i,a]of Object.entries(e))i!==a.code&&t.addIssue({code:"custom",path:[i,"code"],message:`The record key '${i}' must match the 'code' property ('${a.code}') of the integration object. Mismatch found.`})}).readonly(),EK=rE(oR(),EW).superRefine((e,t)=>{for(let[i,a]of Object.entries(e))i!==a.code&&t.addIssue({code:"custom",path:[i,"code"],message:`The record key '${i}' must match the 'code' property ('${a.code}') of the integration object. Mismatch found.`})}).readonly(),EY={id:"woocommerce",type:kv.INSTALLABLE,scenario_id:kx.WP_ORG,name:"Woo",description:"Everything you need to launch an online store in days.",icon:"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0nMS4wJyBlbmNvZGluZz0nVVRGLTgnPz48c3ZnIHhtbG5zPSdodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2Zycgdmlld0JveD0nMCAwIDY0IDY0Jz48ZGVmcz48c3R5bGU+LmNscy0xe2ZpbGw6bm9uZTt9LmNscy0ye2ZpbGw6Izg3M2VmZjtmaWxsLXJ1bGU6ZXZlbm9kZDt9PC9zdHlsZT48L2RlZnM+PHRpdGxlPldvbyBpY29uIC0gVW5jYW5ueSBBdXRvbWF0b3I8L3RpdGxlPjxnIGlkPSdMYXllcl8yJz48cmVjdCBjbGFzcz0nY2xzLTEnIHdpZHRoPSc2NCcgaGVpZ2h0PSc2NCcvPjwvZz48ZyBpZD0nTGF5ZXJfMSc+PHBhdGggY2xhc3M9J2Nscy0yJyBkPSdNMjYuOTgsMjMuNzJjLTEuNSwwLTIuNDcuNDktMy4zNSwyLjEzbC0zLjk3LDcuNDl2LTYuNjZjMC0xLjk5LS45NC0yLjk2LTIuNjgtMi45NnMtMi40Ny41OS0zLjM1LDIuMjdsLTMuNzYsNy4zNnYtNi41OWMwLTIuMTMtLjg3LTMuMDMtMy0zLjAzSDIuNTRjLTEuNjQsMC0yLjU0Ljc3LTIuNTQsMi4xNnMuODcsMi4yMywyLjQ3LDIuMjNoMS43OHY4LjRjMCwyLjM3LDEuNiwzLjc2LDMuOSwzLjc2czMuMzUtLjkxLDQuNS0zLjAzbDIuNTEtNC43MXYzLjk3YzAsMi4zNCwxLjUzLDMuNzYsMy44NywzLjc2czMuMjEtLjgsNC41My0zLjAzbDUuNzktOS43NmMxLjI1LTIuMTMuMzgtMy43Ni0yLjQxLTMuNzZoLjAzWicvPjxwYXRoIGNsYXNzPSdjbHMtMicgZD0nTTM3Ljg2LDIzLjcyYy00Ljc0LDAtOC4zMywzLjUyLTguMzMsOC4zczMuNjMsOC4yNiw4LjMzLDguMjYsOC4zLTMuNTIsOC4zMy04LjI2YzAtNC43OC0zLjYzLTguMy04LjMzLTguM1pNMzcuODYsMzUuMTljLTEuNzgsMC0zLTEuMzItMy0zLjE3czEuMjItMy4yMSwzLTMuMjEsMywxLjM2LDMsMy4yMS0xLjE5LDMuMTctMywzLjE3WicvPjxwYXRoIGNsYXNzPSdjbHMtMicgZD0nTTU1LjY3LDIzLjcyYy00LjcxLDAtOC4zMywzLjUyLTguMzMsOC4zczMuNjMsOC4yNiw4LjMzLDguMjYsOC4zMy0zLjUyLDguMzMtOC4yNi0zLjYzLTguMy04LjMzLTguM1pNNTUuNjcsMzUuMTljLTEuODEsMC0yLjk2LTEuMzItMi45Ni0zLjE3czEuMTktMy4yMSwyLjk2LTMuMjEsMywxLjM2LDMsMy4yMS0xLjE5LDMuMTctMywzLjE3WicvPjwvZz48L3N2Zz4=",is_met:!1,is_disabled:!1,dependencies:[],tags:[{scenario_id:kC.INSTALLABLE,label:"Plugin",icon:"puzzle-piece"}],developer:{name:"Automattic",site:"https://automattic.com/"},cta:{type:kh.FETCH,label:"Get Woo",addon_id:"woocommerce",addon_action:"install"}};kv.ACCOUNT,k_.APP,kC.ACCOUNT,kh.LINK_OPEN_AND_WAIT,kE.REQUIRES_PRO_BASIC_NOT_INSTALLED,kv.LICENSE,kE.REQUIRES_PRO_BASIC_NOT_INSTALLED,kC.LICENSE,kh.LINK_EXTERNAL,kv.INSTALLABLE,kx.COMMERCIAL,EY.id,kC.INSTALLABLE,kh.LINK_EXTERNAL;let EQ="delay_schedule",EX="filter",EJ="loop",E1=oR().min(1),E0=`data:image/svg+xml;utf8,${encodeURIComponent('<?xml version="1.0" encoding="UTF-8"?><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64"><defs><style>.cls-1{fill:none;}.cls-2{fill:#873eff;fill-rule:evenodd;}</style></defs><title>Woo icon - Uncanny Automator</title><g id="Layer_2"><rect class="cls-1" width="64" height="64"/></g><g id="Layer_1"><path class="cls-2" d="M26.98,23.72c-1.5,0-2.47.49-3.35,2.13l-3.97,7.49v-6.66c0-1.99-.94-2.96-2.68-2.96s-2.47.59-3.35,2.27l-3.76,7.36v-6.59c0-2.13-.87-3.03-3-3.03H2.54c-1.64,0-2.54.77-2.54,2.16s.87,2.23,2.47,2.23h1.78v8.4c0,2.37,1.6,3.76,3.9,3.76s3.35-.91,4.5-3.03l2.51-4.71v3.97c0,2.34,1.53,3.76,3.87,3.76s3.21-.8,4.53-3.03l5.79-9.76c1.25-2.13.38-3.76-2.41-3.76h.03Z"/><path class="cls-2" d="M37.86,23.72c-4.74,0-8.33,3.52-8.33,8.3s3.63,8.26,8.33,8.26,8.3-3.52,8.33-8.26c0-4.78-3.63-8.3-8.33-8.3ZM37.86,35.19c-1.78,0-3-1.32-3-3.17s1.22-3.21,3-3.21,3,1.36,3,3.21-1.19,3.17-3,3.17Z"/><path class="cls-2" d="M55.67,23.72c-4.71,0-8.33,3.52-8.33,8.3s3.63,8.26,8.33,8.26,8.33-3.52,8.33-8.26-3.63-8.3-8.33-8.3ZM55.67,35.19c-1.81,0-2.96-1.32-2.96-3.17s1.19-3.21,2.96-3.21,3,1.36,3,3.21-1.19,3.17-3,3.17Z"/></g></svg>')}`,E2=`data:image/svg+xml;utf8,${encodeURIComponent('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64"><defs><style>.cls-1{fill:none;}.cls-2{fill:#fff;}.cls-3{fill:#4285f4;}.cls-4{fill:#34a853;}.cls-5{fill:#188038;}.cls-6{fill:#fbbc04;}.cls-7{fill:#1967d2;}.cls-8{fill:#ea4335;}</style></defs><title>Google Calendar icon - Uncanny Automator</title><g id="Layer_2" data-name="Layer 2"><rect class="cls-1" width="64" height="64"/></g><g id="Layer_1" data-name="Layer 1"><path class="cls-2" d="M48.84,15.16H15.16V48.84H48.84Z"/><path class="cls-3" d="M22.07,41.29a6.52,6.52,0,0,1-2.61-3.74l2.92-1.2a4.49,4.49,0,0,0,1.39,2.35,3.62,3.62,0,0,0,2.39.83,3.71,3.71,0,0,0,2.47-.87,2.81,2.81,0,0,0,1-2.22,2.74,2.74,0,0,0-1.09-2.25,4.2,4.2,0,0,0-2.72-.87H24.16V30.43h1.52A3.73,3.73,0,0,0,28,29.67a2.51,2.51,0,0,0,1-2.08,2.27,2.27,0,0,0-.86-1.87A3.29,3.29,0,0,0,26,25a2.94,2.94,0,0,0-2,.69,4,4,0,0,0-1.1,1.69l-2.9-1.2A6.48,6.48,0,0,1,22,23.31,6.1,6.1,0,0,1,26,22.06a7.18,7.18,0,0,1,3.19.69,5.38,5.38,0,0,1,2.22,1.9,4.84,4.84,0,0,1,.8,2.74A4.49,4.49,0,0,1,31.46,30a5.13,5.13,0,0,1-1.83,1.65v.17A5.61,5.61,0,0,1,32,33.65a4.78,4.78,0,0,1,.92,3A5.54,5.54,0,0,1,32,39.67a6.12,6.12,0,0,1-2.4,2.12,7.67,7.67,0,0,1-3.45.77,7.17,7.17,0,0,1-4.1-1.27Zm18-14.5-3.21,2.32L35.2,26.67,41,22.52h2.21V42.11H40Z"/><path class="cls-4" d="M48.84,48.84H15.16V64H48.84Z"/><path class="cls-3" d="M48.84,0H5.05A5,5,0,0,0,0,5.05V48.84H15.16V15.16H48.84Z"/><path class="cls-5" d="M0,48.84V59a5,5,0,0,0,5.05,5H15.16V48.84Z"/><path class="cls-6" d="M64,15.16H48.84V48.84H64Z"/><path class="cls-7" d="M64,15.16V5.05a5,5,0,0,0-5-5H48.84V15.16Z"/><path class="cls-8" d="M48.84,64,64,48.84H48.84Z"/></g></svg>')}`,E3=`data:image/svg+xml;utf8,${encodeURIComponent('<?xml version="1.0" encoding="UTF-8"?><svg id="Layer_1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><defs><style>.cls-1{fill:none;}.cls-2{isolation:isolate;opacity:.4;}.cls-2,.cls-3{fill:#0790e8;}</style></defs><rect class="cls-1" width="512" height="512"/><path class="cls-2" d="M99.57,369.74c0,7.85,6.37,14.22,14.22,14.22s14.22-6.37,14.22-14.22-6.37-14.22-14.22-14.22-14.22,6.37-14.22,14.22ZM241.79,142.2c0,7.85,6.37,14.22,14.22,14.22s14.22-6.37,14.22-14.22-6.37-14.22-14.22-14.22-14.22,6.37-14.22,14.22ZM384.01,369.74c0,7.85,6.37,14.22,14.22,14.22s14.22-6.37,14.22-14.22-6.37-14.22-14.22-14.22-14.22,6.37-14.22,14.22Z"/><path class="cls-3" d="M272.01,72.95c36.53,8.44,60,43.73,54.31,80.17-1.87,11.64,6.13,22.58,17.78,24.35,11.64,1.78,22.58-6.13,24.35-17.78,9.16-58.4-28.35-114.84-86.84-128.35-61.24-14.13-122.31,24-136.44,85.24-9.51,41.15,4.62,82.31,33.51,109.06l-63.38,101.42h-1.51c-23.55,0-42.66,19.11-42.66,42.66s19.11,42.66,42.66,42.66,42.66-19.11,42.66-42.66c0-7.2-1.78-14.04-4.98-20l73.6-117.77c3.02-4.8,4-10.58,2.67-16.09s-4.71-10.31-9.51-13.33c-25.07-15.64-38.58-45.95-31.55-76.35,8.89-38.22,47.02-62.13,85.33-53.24ZM256.01,127.97c7.85,0,14.22,6.37,14.22,14.22s-6.37,14.22-14.22,14.22-14.22-6.37-14.22-14.22,6.37-14.22,14.22-14.22ZM293.7,162.2c3.2-5.96,4.98-12.8,4.98-20,0-23.55-19.11-42.66-42.66-42.66s-42.66,19.11-42.66,42.66,19.11,42.66,42.66,42.66h1.51l73.6,117.77c3.02,4.8,7.82,8.18,13.33,9.51s11.29.27,16.09-2.67c27.47-17.15,64.09-13.78,88,10.04,27.73,27.73,27.73,72.8,0,100.53-23.82,23.82-60.53,27.2-88,10.04-9.96-6.22-23.11-3.2-29.42,6.76s-3.2,23.11,6.76,29.42c43.91,27.55,102.57,22.22,140.79-16,44.44-44.44,44.44-116.44,0-160.88-32.89-32.89-80.89-41.42-121.6-25.69l-63.38-101.51ZM99.57,369.74c0-7.85,6.37-14.22,14.22-14.22s14.22,6.37,14.22,14.22-6.37,14.22-14.22,14.22-14.22-6.37-14.22-14.22ZM384.01,369.74c0-7.85,6.37-14.22,14.22-14.22s14.22,6.37,14.22,14.22-6.37,14.22-14.22,14.22-14.22-6.37-14.22-14.22ZM440.89,369.74c0-23.55-19.11-42.66-42.66-42.66-15.82,0-29.6,8.62-36.98,21.33h-155.02c-5.69,0-11.11,2.22-15.11,6.22s-6.22,9.42-6.22,15.11c0,32.35-22.22,61.69-55.11,69.24-38.31,8.8-76.44-15.02-85.24-53.33-7.91-34.31,10.4-68.53,41.87-81.6,10.84-4.53,16-16.98,11.47-27.91-4.53-10.93-16.98-16-27.91-11.47C19.66,285.66-9.76,340.41,2.95,395.34c14.13,61.24,75.2,99.37,136.44,85.24,45.33-10.49,77.95-46.66,86.22-89.51h135.73c7.38,12.71,21.15,21.33,36.98,21.33,23.55,0,42.66-19.11,42.66-42.66h-.09Z"/></svg>')}`,E4=`data:image/svg+xml;utf8,${encodeURIComponent('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64"><defs><style>.a{fill:none;}.b{fill:#34d367;fill-rule:evenodd;}</style></defs><title>WhatsApp icon - Uncanny Automator</title><rect class="a" width="64" height="64"/><path class="b" d="M54.57,9.3A31.73,31.73,0,0,0,4.65,47.57L.15,64,17,59.59a31.59,31.59,0,0,0,15.15,3.86h0A31.73,31.73,0,0,0,54.57,9.3ZM32.13,58.09h0a26.27,26.27,0,0,1-13.41-3.67l-1-.57-10,2.62,2.66-9.73-.63-1a26.36,26.36,0,0,1,41-32.65,26.37,26.37,0,0,1-18.65,45ZM46.59,38.35C45.8,38,41.9,36,41.18,35.77s-1.26-.39-1.79.4-2,2.58-2.5,3.11-.93.59-1.72.2a21.75,21.75,0,0,1-6.37-3.94,23.55,23.55,0,0,1-4.41-5.49c-.46-.79-.05-1.22.35-1.61s.79-.93,1.18-1.39a5.61,5.61,0,0,0,.8-1.32,1.47,1.47,0,0,0-.07-1.39c-.2-.4-1.78-4.3-2.44-5.89s-1.3-1.33-1.79-1.36-1,0-1.51,0a2.9,2.9,0,0,0-2.12,1A8.9,8.9,0,0,0,16,24.67c0,3.9,2.84,7.67,3.23,8.2s5.59,8.53,13.54,12a45.94,45.94,0,0,0,4.52,1.67,10.81,10.81,0,0,0,5,.31c1.52-.22,4.69-1.91,5.35-3.76a6.61,6.61,0,0,0,.46-3.77C47.91,39,47.38,38.75,46.59,38.35Z"/></svg>')}`,E6=`data:image/svg+xml;utf8,${encodeURIComponent('<?xml version="1.0" encoding="UTF-8"?><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64"><title>Salesforce icon - Uncanny Automator</title><g id="a"><path d="m26.63,14.49c2.06-2.15,4.94-3.48,8.12-3.48,4.22,0,7.91,2.36,9.87,5.85,1.76-.78,3.66-1.19,5.58-1.19,7.62,0,13.8,6.23,13.8,13.92s-6.18,13.92-13.8,13.92c-.93,0-1.84-.09-2.72-.27-1.73,3.08-5.02,5.16-8.8,5.16-1.58,0-3.08-.36-4.41-1.02-1.75,4.12-5.84,7.01-10.59,7.01s-9.18-3.14-10.8-7.53c-.72.15-1.46.23-2.2.23C4.78,47.1,0,42.26,0,36.3c0-3.84,2.02-7.4,5.34-9.35-.68-1.56-1.02-3.24-1.02-4.94,0-6.86,5.57-12.41,12.43-12.41,3.88,0,7.53,1.8,9.88,4.89" style="fill:#00a1e0; fill-rule:evenodd; stroke-width:0px;"/><path d="m9.27,32.83l.26-.72c.04-.12.13-.08.17-.06.07.04.12.08.22.14.76.48,1.47.49,1.69.49.57,0,.93-.3.93-.71v-.02c0-.44-.55-.61-1.18-.8l-.14-.04c-.87-.25-1.79-.6-1.79-1.7v-.02c0-1.04.84-1.77,2.04-1.77h.13c.71,0,1.39.2,1.88.5.04.03.09.08.06.15l-.27.72c-.05.12-.17.04-.17.04-.52-.27-1.09-.41-1.67-.43-.51,0-.84.27-.84.64v.02c0,.43.56.61,1.21.82l.11.03c.86.27,1.78.65,1.78,1.69v.02c0,1.12-.82,1.82-2.13,1.82-.64,0-1.26-.1-1.91-.45-.12-.07-.24-.13-.37-.22-.01-.02-.07-.04-.03-.14h0Zm19.22,0l.26-.72c.04-.12.15-.07.17-.06.07.04.12.08.22.14.76.48,1.47.49,1.69.49.57,0,.92-.3.92-.71v-.02c0-.44-.55-.61-1.18-.8l-.14-.04c-.87-.25-1.79-.6-1.79-1.7v-.02c0-1.04.84-1.77,2.04-1.77h.13c.71,0,1.39.2,1.88.5.04.03.09.08.06.15-.02.06-.24.65-.27.72-.05.12-.17.04-.17.04-.52-.27-1.09-.42-1.67-.43-.51,0-.84.27-.84.64v.02c0,.43.56.61,1.21.82l.11.03c.86.27,1.78.65,1.78,1.69v.02c0,1.12-.82,1.82-2.13,1.82-.65,0-1.26-.1-1.91-.45-.12-.07-.24-.13-.37-.22-.01-.02-.07-.04-.03-.14Zm14.22-3.38c.11.36.16.76.16,1.18s-.05.82-.16,1.18c-.1.35-.27.67-.5.95-.23.27-.52.49-.84.63-.34.15-.73.23-1.17.23s-.84-.08-1.17-.23c-.33-.15-.61-.36-.84-.63-.23-.28-.4-.6-.5-.95-.11-.38-.16-.78-.16-1.18,0-.42.05-.82.16-1.18.11-.36.28-.68.5-.95.23-.27.52-.49.84-.64.34-.16.73-.24,1.17-.24s.84.08,1.17.24c.33.16.62.37.84.64.22.27.39.59.5.95Zm-1.09,1.18c0-.63-.12-1.13-.35-1.48-.23-.35-.58-.52-1.07-.52s-.83.17-1.06.52c-.23.35-.35.85-.35,1.48s.12,1.14.35,1.49c.23.35.57.52,1.06.52s.84-.17,1.07-.52c.23-.35.35-.86.35-1.49Zm10.09,1.84l.27.74c.03.09-.04.13-.04.13-.42.16-.99.28-1.55.28-.95,0-1.68-.27-2.16-.81-.48-.54-.73-1.27-.73-2.18,0-.42.06-.82.18-1.18.12-.36.3-.68.53-.95.24-.27.55-.49.88-.64.35-.16.76-.23,1.22-.23.31,0,.59.02.82.05.25.04.59.13.73.19.03,0,.1.04.07.13-.1.29-.17.48-.27.75-.04.11-.13.08-.13.08-.36-.11-.71-.17-1.16-.17-.54,0-.95.18-1.22.53-.27.36-.42.82-.42,1.44,0,.68.17,1.19.47,1.5.3.31.72.47,1.25.47.21,0,.42-.01.6-.04.18-.03.35-.08.51-.15,0,0,.1-.04.14.07Zm5.61-3.22c.24.84.11,1.56.11,1.6,0,.1-.11.1-.11.1h-3.71c.02.56.16.96.43,1.23.27.27.69.44,1.27.44.88,0,1.26-.17,1.52-.27,0,0,.1-.04.14.06l.24.68c.05.11,0,.15-.03.18-.23.13-.8.37-1.87.37-.52,0-.97-.07-1.35-.22-.35-.13-.67-.34-.93-.62-.25-.27-.43-.59-.54-.94-.11-.38-.17-.78-.17-1.18,0-.42.05-.82.16-1.18.11-.37.28-.69.5-.96.23-.28.52-.5.85-.65.34-.16.76-.24,1.22-.24.4,0,.76.09,1.06.22.23.1.47.28.71.54.15.16.38.52.47.87h0Zm-3.69.77h2.65c-.03-.34-.09-.65-.25-.87-.23-.35-.55-.54-1.04-.54s-.83.19-1.06.54c-.15.23-.25.52-.3.87h0Zm-26.02-.77c.24.84.12,1.56.11,1.6,0,.1-.11.1-.11.1h-3.71c.02.56.16.96.43,1.23.27.27.69.44,1.27.44.88,0,1.26-.17,1.52-.27,0,0,.1-.04.14.06l.24.68c.05.11,0,.15-.03.18-.23.13-.8.37-1.87.37-.52,0-.97-.07-1.35-.22-.35-.13-.67-.34-.93-.62-.25-.27-.43-.59-.54-.94-.12-.38-.17-.78-.17-1.18,0-.42.05-.82.16-1.18.1-.35.27-.68.5-.96.23-.28.52-.5.85-.65.34-.16.76-.24,1.22-.24.37,0,.73.07,1.06.22.23.1.47.28.7.54.15.16.38.52.47.87Zm-3.69.77h2.65c-.03-.34-.09-.65-.25-.87-.23-.35-.55-.54-1.04-.54s-.83.19-1.06.54c-.15.23-.25.52-.3.87h0Zm-6.54-.18s.29.03.61.07v-.16c0-.49-.1-.73-.31-.88-.21-.16-.52-.24-.92-.24,0,0-.9-.01-1.62.38-.03.02-.06.03-.06.03,0,0-.09.03-.12-.06l-.26-.71c-.04-.1.03-.15.03-.15.33-.26,1.14-.42,1.14-.42.33-.06.66-.09.99-.09.74,0,1.31.17,1.7.51.39.34.59.89.59,1.64v3.39s0,.1-.08.12c0,0-.14.04-.26.07-.12.03-.57.12-.94.18-.37.06-.75.09-1.13.09-.36,0-.69-.03-.98-.1-.27-.06-.53-.17-.76-.33-.21-.15-.37-.35-.48-.58-.11-.23-.17-.52-.17-.85s.07-.61.2-.86c.13-.24.31-.45.54-.61.23-.16.5-.29.77-.36.29-.08.6-.12.91-.12.23,0,.43,0,.58.02h0Zm-1.48,2.61s.33.26,1.09.22c.53-.03,1-.13,1-.13v-1.69s-.47-.08-1.01-.09c-.76,0-1.08.27-1.08.27-.22.16-.33.39-.33.72,0,.21.04.37.11.48.05.07.07.1.21.22Zm31.4-4.52c-.03.1-.21.61-.28.78-.02.06-.06.11-.14.1,0,0-.21-.05-.41-.05-.13,0-.32.02-.5.07-.17.05-.33.15-.46.28-.14.13-.25.31-.33.55-.08.23-.12.6-.12.97v2.76c0,.06-.05.11-.11.11,0,0,0,0,0,0h-.97c-.06,0-.11-.05-.11-.11h0v-5.53c0-.06.05-.11.11-.11h.95c.06,0,.11.05.11.11v.45c.14-.19.4-.36.63-.46.23-.1.49-.18.96-.15.24.01.56.08.62.11.05.02.08.08.06.13,0,0,0,0,0,0Zm-9.15-2.56s.1.04.07.13l-.28.78c-.02.06-.04.09-.16.06-.16-.05-.33-.08-.49-.08-.15,0-.28.02-.4.06-.12.04-.22.1-.31.19-.12.11-.2.25-.26.4-.14.39-.19.81-.2.84h1.19c.1,0,.13.05.12.12l-.14.77c-.02.11-.12.11-.12.11h-1.22l-.84,4.73c-.07.42-.18.84-.33,1.25-.13.34-.27.59-.48.83-.19.21-.42.38-.69.48-.26.09-.57.14-.91.14-.16,0-.34,0-.54-.05-.12-.03-.23-.06-.34-.1-.05-.02-.08-.07-.06-.15.03-.07.24-.67.27-.75.04-.1.13-.06.13-.06.07.03.11.05.2.06.09.02.21.03.3.03.16,0,.31-.02.44-.06.15-.05.24-.14.34-.26.1-.13.18-.3.26-.53.08-.23.16-.54.22-.91l.83-4.64h-.82c-.1,0-.13-.05-.12-.12l.14-.77c.02-.11.13-.11.13-.11h.84l.05-.25c.13-.74.38-1.31.75-1.68.37-.37.9-.56,1.57-.56.19,0,.36.01.5.04.14.03.25.05.37.09Zm-16.57,8.02c0,.06-.04.11-.11.11h-.98c-.06,0-.11-.05-.11-.11v-7.92c0-.06.04-.11.1-.11h.98c.06,0,.11.05.11.11,0,0,0,7.92,0,7.92Z" style="fill:#fff; fill-rule:evenodd; stroke-width:0px;"/></g><g id="b"><rect width="64" height="64" style="fill:none; stroke-width:0px;"/></g></svg>')}`,E5=`data:image/svg+xml;utf8,${encodeURIComponent('<svg viewBox="0 0 122.52 122.523" xmlns="http://www.w3.org/2000/svg"><title>WordPress icon - Uncanny Automator</title><g fill="#21759b"><path d="m8.708 61.26c0 20.802 12.089 38.779 29.619 47.298l-25.069-68.686c-2.916 6.536-4.55 13.769-4.55 21.388z"/><path d="m96.74 58.608c0-6.495-2.333-10.993-4.334-14.494-2.664-4.329-5.161-7.995-5.161-12.324 0-4.831 3.664-9.328 8.825-9.328.233 0 .454.029.681.042-9.35-8.566-21.807-13.796-35.489-13.796-18.36 0-34.513 9.42-43.91 23.688 1.233.037 2.395.063 3.382.063 5.497 0 14.006-.667 14.006-.667 2.833-.167 3.167 3.994.337 4.329 0 0-2.847.335-6.015.501l19.138 56.925 11.501-34.493-8.188-22.434c-2.83-.166-5.511-.501-5.511-.501-2.832-.166-2.5-4.496.332-4.329 0 0 8.679.667 13.843.667 5.496 0 14.006-.667 14.006-.667 2.835-.167 3.168 3.994.337 4.329 0 0-2.853.335-6.015.501l18.992 56.494 5.242-17.517c2.272-7.269 4.001-12.49 4.001-16.989z"/><path d="m62.184 65.857-15.768 45.819c4.708 1.384 9.687 2.141 14.846 2.141 6.12 0 11.989-1.058 17.452-2.979-.141-.225-.269-.464-.374-.724z"/><path d="m107.376 36.046c.226 1.674.354 3.471.354 5.404 0 5.333-.996 11.328-3.996 18.824l-16.053 46.413c15.624-9.111 26.133-26.038 26.133-45.426.001-9.137-2.333-17.729-6.438-25.215z"/><path d="m61.262 0c-33.779 0-61.262 27.481-61.262 61.26 0 33.783 27.483 61.263 61.262 61.263 33.778 0 61.265-27.48 61.265-61.263-.001-33.779-27.487-61.26-61.265-61.26zm0 119.715c-32.23 0-58.453-26.223-58.453-58.455 0-32.23 26.222-58.451 58.453-58.451 32.229 0 58.45 26.221 58.45 58.451 0 32.232-26.221 58.455-58.45 58.455z"/></g></svg>')}`,E8=`data:image/svg+xml;utf8,${encodeURIComponent('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 58.13 64"><title>Gravity Forms icon - Uncanny Automator</title><defs><style>.gf-a{fill:#f15a2b;}.gf-a,.gf-b{fill-rule:evenodd;}.gf-b{fill:#fff;}</style></defs><path class="gf-a" d="M61.06,43.46a10.21,10.21,0,0,1-4.6,8L36.6,62.9a10.17,10.17,0,0,1-9.21,0L7.54,51.44a10.21,10.21,0,0,1-4.6-8V20.53a10.21,10.21,0,0,1,4.6-8L27.39,1.1a10.17,10.17,0,0,1,9.21,0L56.46,12.56a10.21,10.21,0,0,1,4.6,8V43.46Z" transform="translate(-2.94)"/><path class="gf-b" d="M26.36,26.69H52.67v-7.4H26.43a12.18,12.18,0,0,0-9.25,3.82c-5.73,6.1-5.89,21.46-5.89,21.46H52.47V30.67h-7.4v6.5H19.19c.16-2.42,1.27-6.75,3.38-9a4.83,4.83,0,0,1,3.79-1.49Z" transform="translate(-2.94)"/></svg>')}`,E7=`data:image/svg+xml;utf8,${encodeURIComponent('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64"><defs><style>.cls-1{fill:none;}.cls-2{fill:#0790e8;}.cls-3{fill:#fff;}</style></defs><title>Common icon - Uncanny Automator</title><g id="Transparent_layer" data-name="Transparent layer"><rect class="cls-1" width="64" height="64"/></g><g id="Background"><g id="Layer_2" data-name="Layer 2"><rect class="cls-2" width="64" height="64" rx="8"/></g></g><g id="General"><path class="cls-3" d="M36,29.37h9.15a2.47,2.47,0,0,1,2.38,1.7A2.5,2.5,0,0,1,46.87,34l-21,18.37a2.62,2.62,0,0,1-4.14-3L28,34.62H18.81a2.61,2.61,0,0,1-2.38-1.69A2.65,2.65,0,0,1,17.16,30l21-18.37a2.62,2.62,0,0,1,4.14,3Z"/></g></svg>')}`,E9={user_email:{code:"user_email",name:"User email",data_type:EA.EMAIL,requires_user_data:!0,tags:[]},"TOKEN_EXTENDED:DATA_TOKEN_PURCHASED_PRODUCT:UNIVERSAL:WC:PURCHASED_PRODUCT":{code:"TOKEN_EXTENDED:DATA_TOKEN_PURCHASED_PRODUCT:UNIVERSAL:WC:PURCHASED_PRODUCT",name:"User's purchased products",data_type:EA.ARRAY,requires_user_data:!0,tags:[]},"TOKEN_EXTENDED:DATA_TOKEN_USER_ORDERS_TWENTY_FOUR_HOURS:UNIVERSAL:WC:USER_ORDERS_TWENTY_FOUR_HOURS":{code:"TOKEN_EXTENDED:DATA_TOKEN_USER_ORDERS_TWENTY_FOUR_HOURS:UNIVERSAL:WC:USER_ORDERS_TWENTY_FOUR_HOURS",name:"User's orders in the past 24 hours",data_type:EA.ARRAY,requires_user_data:!0,tags:[]},"TOKEN_EXTENDED:DATA_TOKEN_USER_ORDERS_WEEKLY:UNIVERSAL:WC:USER_ORDERS_WEEKLY":{code:"TOKEN_EXTENDED:DATA_TOKEN_USER_ORDERS_WEEKLY:UNIVERSAL:WC:USER_ORDERS_WEEKLY",name:"User's orders in the past week",data_type:EA.ARRAY,requires_user_data:!0,tags:[]},"TOKEN_EXTENDED:DATA_TOKEN_USER_ORDERS_MONTHLY:UNIVERSAL:WC:USER_ORDERS_MONTHLY":{code:"TOKEN_EXTENDED:DATA_TOKEN_USER_ORDERS_MONTHLY:UNIVERSAL:WC:USER_ORDERS_MONTHLY",name:"User's orders in the past 30 days",data_type:EA.ARRAY,requires_user_data:!0,tags:[]},"TOKEN_EXTENDED:DATA_TOKEN_USER_TOTAL_SPEND:UNIVERSAL:WC:USER_TOTAL_SPEND":{code:"TOKEN_EXTENDED:DATA_TOKEN_USER_TOTAL_SPEND:UNIVERSAL:WC:USER_TOTAL_SPEND",name:"User's total spend",data_type:EA.FLOAT,requires_user_data:!0,tags:[]}},Se={user_email:{code:"user_email",name:"User email",data_type:EA.EMAIL,requires_user_data:!0,tags:[]}},St={USER_EMAIL:{code:"USER_EMAIL",name:"User email",data_type:EA.EMAIL,requires_user_data:!0,tags:[]},USER_ROLE:{code:"USER_ROLE",name:"User role",data_type:EA.TEXT,requires_user_data:!0,tags:[]},USER_ID:{code:"USER_ID",name:"User ID",data_type:EA.INTEGER,requires_user_data:!0,tags:[]},USER_DISPLAYNAME:{code:"USER_DISPLAYNAME",name:"User display name",data_type:EA.TEXT,requires_user_data:!0,tags:[]}},Si={type:"built-in",code:"COMMON",name:"Common",required_tier:pD.LITE,details:{icon:E7,description:"Common is a collection of common tokens and actions that are used in many integrations.",short_description:"Common tokens and actions that are used in many integrations.",primary_color:"#23282d",taxonomies:{categories:[],collections:[],tags:["common","tokens","actions"]},external_url:"https://automatorplugin.com/integration/common/"},tokens:Se,items:{action:{},trigger:{}},block_modifiers:{}},Sa={WC:{type:"plugin",code:"WC",name:"WooCommerce",required_tier:pD.LITE,details:{icon:E0,description:"Woo is the most popular ecommerce platform on the internet and is a free addon for WordPress. With it, you can sell both physical and digital products globally and leverage hundreds of both free and paid WooCommerce extensions to add membership, subscription, recurring payment and other capabilities to your WordPress site.",short_description:"Sell physical and digital products globally and leverage free and paid extensions to add features.",primary_color:"#873eff",taxonomies:{categories:["e-commerce"],collections:["featured"],tags:["e-commerce","store","shop","sales","marketing"]},external_url:"https://automatorplugin.com/integration/woocommerce/"},items:{action:{WCCREATEORDER:{type:"action",code:"WCCREATEORDER",is_deprecated:!1,has_tests:!1,has_status_toggle:!0,sentence:{short:"Create an order with {{a product}}",dynamic:"Create an order with {{a product:CREATEORDER}}"},required_tier:pD.PRO_BASIC,requires_user_data:!1,description:"Select a product to instantly create a new WooCommerce order-then set quantity, customer, payment method and status to automate order creation from any trigger.",url_support:"https://automatorplugin.com/integration/woocommerce/"},WC_NOTE_TO_ORDER:{type:"action",code:"WC_NOTE_TO_ORDER",is_deprecated:!1,has_tests:!1,has_status_toggle:!0,sentence:{short:"Add a note to {{an order}}",dynamic:"Add a note to {{an order:WC_ORDER}}"},description:null,required_tier:pD.LITE,requires_user_data:!1,url_support:"https://automatorplugin.com/integration/woocommerce/"},WC_ADD_PRODUCT_TO_CART:{type:"action",code:"WC_ADD_PRODUCT_TO_CART",is_deprecated:!1,has_tests:!1,has_status_toggle:!0,sentence:{short:"Add {{a product}} to the cart",dynamic:"Add {{a product:WC_PRODUCT}} to the cart"},description:null,required_tier:pD.LITE,requires_user_data:!1,url_support:"https://automatorplugin.com/integration/woocommerce/"},WC_ORDER_DETAILS:{type:"action",code:"WC_ORDER_DETAILS",is_deprecated:!1,has_tests:!1,has_status_toggle:!0,sentence:{short:"Get order details",dynamic:"Get order details by {{an order ID:WC_ORDER_ID}}"},description:"Fetch the details of a specific order using its ID and create tokens for subsequent recipe steps.",required_tier:pD.LITE,requires_user_data:!1,url_support:"https://automatorplugin.com/integration/woocommerce/"}},trigger:{WC_PURCHASESPRODUCT:{type:"trigger",code:"WC_PURCHASESPRODUCT",is_deprecated:!1,has_tests:!1,has_status_toggle:!0,sentence:{short:"A user purchases {{a product}}",dynamic:"A user purchases {{a product:WOOPRODUCT}}"},description:"Triggers when a user purchases a specific WooCommerce product.",required_tier:pD.LITE,requires_user_data:!0,url_support:"https://automatorplugin.com/integration/woocommerce/"}}},tokens:E9,block_modifiers:{}},GF:{type:"plugin",code:"GF",name:"Gravity Forms",required_tier:pD.PRO_BASIC,details:{icon:E8,description:"Gravity Forms is a premium WordPress form-builder plugin. Recipes can react to user submissions, route field values into actions, and run anonymous flows when the visitor is not logged in.",short_description:"Build advanced WordPress forms and run automations on every submission.",primary_color:"#f15a2b",taxonomies:{categories:["forms"],collections:[],tags:["forms","gravity","submission","anonymous"]},external_url:"https://automatorplugin.com/integration/gravity-forms/"},items:{action:{},trigger:{ANONSUBFIELD:{type:"trigger",code:"ANONSUBFIELD",is_deprecated:!1,has_tests:!1,has_status_toggle:!0,sentence:{short:"{{A form}} is submitted with {{a specific value}} in {{a specific field}}",dynamic:"{{A form:ANONGFFORMS}} is submitted with {{a specific value:SUBVALUE}} in {{a specific field:ANONSUBFIELD}}"},description:"Triggers when a visitor submits the chosen form and a chosen field carries a specific value. Fires for logged-out users.",required_tier:pD.PRO_BASIC,requires_user_data:!0,url_support:"https://automatorplugin.com/integration/gravity-forms/"}}},tokens:{},block_modifiers:{}},GOOGLE_CALENDAR:{type:"app",code:"GOOGLE_CALENDAR",name:"Google Calendar",required_tier:pD.LITE,details:{icon:E2,description:"Google Calendar is a time management and scheduling calendar service offered by Google. With it, users can schedule meetings and events, and get reminders about upcoming activities.",short_description:"A time management and scheduling calendar service.",primary_color:"#1a67d2",taxonomies:{categories:[],collections:["app-integrations"],tags:["google","calendar","time-management","scheduling"]},external_url:"https://automatorplugin.com/integration/google-calendar/"},tokens:{},items:{trigger:{},action:{GCALENDAR_ADDATTENDEE_CODE:{type:"action",code:"GCALENDAR_ADDATTENDEE_CODE",is_deprecated:!1,has_tests:!1,has_status_toggle:!0,required_tier:pD.LITE,sentence:{short:"Add {{an attendee}} to {{an event}} in {{a Google Calendar}}",dynamic:"Add {{an attendee:GCALENDAR_ADDATTENDEE_META}} to {{an event:GCALENDAR_ADDATTENDEE_event_id}} in {{a Google Calendar:GCALENDAR_ADDATTENDEE_calendar_id}}"},description:null,requires_user_data:!1,url_support:"https://automatorplugin.com/integration/google-calendar/"}}},block_modifiers:{}},WEBHOOKS:{type:"built-in",code:"WEBHOOKS",name:"Webhooks",required_tier:pD.LITE,details:{icon:E3,description:"Uncanny Automator includes the most powerful and versatile webhook functionality available for your WordPress site. Send data to any service or app that supports webhooks using any request method (GET, PUT, POST, HEAD, DELETE) or data format (x-www-form-urlencoded, form-data, JSON, Text, HTML, XML, GraphQL, Raw). Build complex objects using nesting. Trigger a webhook whenever users complete any combination of supported triggers on your site. And that's all available in the free version. Upgrade to Uncanny Automator Pro to receive webhooks from other apps and services and automatically run actions on your WordPress site.",short_description:"The most powerful incoming and outgoing webhook functionality available for WordPress.",primary_color:"#0790e8",taxonomies:{categories:[],collections:[""],tags:["webhook","api","automation"]},external_url:"https://automatorplugin.com/integration/webhooks/"},tokens:{},items:{action:{WPSENDWEBHOOK:{type:"action",code:"WPSENDWEBHOOK",required_tier:pD.LITE,is_deprecated:!1,has_tests:!0,has_status_toggle:!0,requires_user_data:!1,sentence:{short:"Send {{a webhook}}",dynamic:"Send {{a webhook:WPWEBHOOK}}"},description:null,url_support:"https://automatorplugin.com/integration/webhooks/"}},trigger:{}},block_modifiers:{}},WHATSAPP:{type:"app",code:"WHATSAPP",name:"WhatsApp",required_tier:pD.LITE,details:{icon:E4,description:"WhatsApp is a free, cross-platform messaging platform with over 2 billion users. As the world's most popular messaging application, it has become the primary means of internet communications for many regions of the world.",short_description:"A cross-platform messaging app",primary_color:"#25d366",taxonomies:{categories:[],collections:["app-integrations"],tags:["whatsapp","messaging","chat","communication"]},external_url:"https://automatorplugin.com/integration/whatsapp/"},tokens:{},items:{trigger:{},action:{WHATSAPP_SEND_MESSAGE:{type:"action",code:"WHATSAPP_SEND_MESSAGE",is_deprecated:!1,has_tests:!1,has_status_toggle:!0,sentence:{short:"Send a WhatsApp message to {{a number}}",dynamic:"Send a WhatsApp message to {{a number:WHATSAPP_META}}"},description:null,required_tier:pD.PRO_BASIC,requires_user_data:!1,url_support:"https://automatorplugin.com/integration/whatsapp/"}}},block_modifiers:{}},SALESFORCE:{type:"app",code:"SALESFORCE",name:"Salesforce",required_tier:pD.LITE,details:{icon:E6,description:"Salesforce is a market-leading CRM platform that helps businesses manage customer relationships, streamline workflows, and provide data-driven insights. It offers a suite of sales, marketing, service, and other tools to help businesses grow and collaborate",short_description:"Elite CRM platformm",primary_color:"#009ee0",taxonomies:{categories:[],collections:["app-integrations"],tags:["crm","sales","marketing","service"]},external_url:"https://automatorplugin.com/integration/salesforce/"},tokens:{},items:{action:{SALESFORCE_CREATE_CONTACT:{type:"action",code:"SALESFORCE_CREATE_CONTACT",is_deprecated:!1,has_tests:!1,has_status_toggle:!0,required_tier:pD.PRO_ELITE,sentence:{short:"Add {{a contact}} to a {{campaign}}",dynamic:"Add {{a contact:SALESFORCE_META}} to a {{campaign:SALESFORCE_META}}"},description:null,requires_user_data:!1,url_support:"https://automatorplugin.com/integration/salesforce/"}},trigger:{}},block_modifiers:{}},WP:{type:"built-in",code:"WP",name:"WordPress Core",required_tier:pD.LITE,details:{icon:E5,description:"WordPress is a free open-course content management system (CMS) that powers more than 60 million websites. WordPress uses a plugin architecture to extend the features and functionality of a website. Uncanny Automator requires WordPress. WordPress Core triggers let you run custom actions when posts or created or updated, and actions even let you create or update posts automatically.",short_description:"Many core triggers and actions that let you automate your WordPress site.",primary_color:"#23282d",taxonomies:{categories:[],collections:[],tags:["wordpress","cms","automation"]},external_url:"https://automatorplugin.com/integration/wordpress-core/"},tokens:St,items:{action:{REDIRECT:{type:"action",code:"REDIRECT",is_deprecated:!1,has_tests:!1,has_status_toggle:!0,sentence:{short:"Redirect to a URL",dynamic:"Redirect to {{a link:REDIRECTURL}} when recipe is completed"},description:"Sends the user to a URL when the recipe finishes.",required_tier:pD.LITE,requires_user_data:!1,url_support:"https://automatorplugin.com/integration/wordpress-core/"}},trigger:{WP_USER_POST_PUBLISHED:{type:"trigger",code:"WP_USER_POST_PUBLISHED",is_deprecated:!1,has_tests:!1,has_status_toggle:!0,sentence:{short:"A user publishes a post",dynamic:"A user publishes a {{type of post:WPPOSTTYPES}}"},description:null,required_tier:pD.LITE,requires_user_data:!0,url_support:"https://automatorplugin.com/integration/wordpress-core/"},WP_ANON_POST_VIEWED:{type:"trigger",code:"WP_ANON_POST_VIEWED",is_deprecated:!1,has_tests:!1,has_status_toggle:!0,sentence:{short:"A post is viewed",dynamic:"{{A post:WPPOST}} is viewed"},description:null,required_tier:pD.LITE,requires_user_data:!1,url_support:"https://automatorplugin.com/integration/wordpress-core/"},WP_USER_LOGIN:{type:"trigger",code:"WP_USER_LOGIN",is_deprecated:!1,has_tests:!1,has_status_toggle:!0,sentence:{short:"A user logs in",dynamic:"A user with {{a role:USER_ROLE}} logs in to the site"},description:null,required_tier:pD.LITE,requires_user_data:!0,url_support:"https://automatorplugin.com/integration/wordpress-core/"},VIEWPAGE:{type:"trigger",code:"VIEWPAGE",is_deprecated:!1,has_tests:!1,has_status_toggle:!0,sentence:{short:"A user views a page",dynamic:"A user views {{a page:WPPAGE}} {{a number of:NUMTIMES}} time(s)"},description:null,required_tier:pD.LITE,requires_user_data:!0,url_support:"https://automatorplugin.com/integration/wordpress-core/"}}},block_modifiers:{loop_filter:{WP_USER_HAS_ROLE:{type:"loop_filter",code:"WP_USER_HAS_ROLE",is_deprecated:!1,has_tests:!1,sentence:{short:"A user has a role",dynamic:"User {{has:CRITERIA}} {{a specific role:WP_USER_HAS_ROLE}}"},description:null,required_tier:pD.LITE,requires_user_data:!0,url_support:"https://automatorplugin.com/integration/wordpress-core/",required_block_ancestors:[{entity_type:kP.BLOCK,entity_code:EJ,when:[{field:"LOOP_TYPE",equals:"users"}],reason:"This filter only applies when the loop iterates users."}]},WP_USER_HAS_META:{type:"loop_filter",code:"WP_USER_HAS_META",is_deprecated:!1,has_tests:!1,sentence:{short:"A user has user meta",dynamic:"User has {{user meta:META_KEY}} {{matching:CRITERIA}} {{a value:META_VALUE}}"},description:null,required_tier:pD.LITE,requires_user_data:!0,url_support:"https://automatorplugin.com/integration/wordpress-core/",required_block_ancestors:[{entity_type:kP.BLOCK,entity_code:EJ,when:[{field:"LOOP_TYPE",equals:"users"}],reason:"This filter only applies when the loop iterates users."}]}}}},COMMON:Si,GEN:{type:"built-in",code:"GEN",name:"General",required_tier:pD.LITE,details:{icon:E7,description:"General-purpose tokens, conditions and helpers used across recipes.",short_description:"General-purpose conditions and helpers.",primary_color:"#23282d",taxonomies:{categories:[],collections:[],tags:["general","conditions"]},external_url:"https://automatorplugin.com/integration/general/"},tokens:{},items:{action:{},trigger:{}},block_modifiers:{filter_condition:{TOKEN_MEETS_CONDITION:{type:"filter_condition",code:"TOKEN_MEETS_CONDITION",is_deprecated:!1,has_tests:!1,sentence:{short:"A token meets a condition",dynamic:"{{A token:TOKEN}} {{matches:CRITERIA}} {{a value:VALUE}}"},description:null,required_tier:pD.PRO_BASIC,requires_user_data:!1,url_support:"https://automatorplugin.com/integration/general/"}}}},EMAILS:{type:"built-in",code:"EMAILS",name:"Emails",required_tier:pD.LITE,details:{icon:E7,description:"Send transactional emails as part of your recipes.",short_description:"Send emails from your recipes.",primary_color:"#0790e8",taxonomies:{categories:[],collections:[],tags:["email","notifications"]},external_url:"https://automatorplugin.com/integration/emails/"},tokens:{},items:{action:{SENDEMAIL:{type:"action",code:"SENDEMAIL",is_deprecated:!1,has_tests:!0,has_status_toggle:!0,sentence:{short:"Send an email",dynamic:"Send an email to {{a recipient:EMAILTO}}"},description:"Sends an HTML or plain-text email to one or more recipients.",required_tier:pD.LITE,requires_user_data:!1,url_support:"https://automatorplugin.com/integration/emails/"}},trigger:{}},block_modifiers:{filter_condition:{EMAIL_DOMAIN_EXISTS:{type:"filter_condition",code:"EMAIL_DOMAIN_EXISTS",is_deprecated:!1,has_tests:!1,sentence:{short:"An email address ends with a domain",dynamic:"{{An email address:EMAIL_ADDRESS}} ends with {{a domain:DOMAIN_NAME}}"},description:null,required_tier:pD.LITE,requires_user_data:!1,url_support:"https://automatorplugin.com/integration/emails/"}}}},SLACK:{type:"app",code:"SLACK",name:"Slack",required_tier:pD.PRO_BASIC,details:{icon:E7,description:"Send messages and manage channels in Slack workspaces.",short_description:"Slack messaging automation.",primary_color:"#4a154b",taxonomies:{categories:[],collections:["app-integrations"],tags:["slack","messaging"]},external_url:"https://automatorplugin.com/integration/slack/"},tokens:{},items:{action:{SLACKSENDDIRECTMESSAGE:{type:"action",code:"SLACKSENDDIRECTMESSAGE",is_deprecated:!1,has_tests:!1,has_status_toggle:!0,sentence:{short:"Send a direct message to a Slack user",dynamic:"Send a direct message to {{a Slack user:SLACKUSER}}"},description:"Sends a direct message to a Slack user.",required_tier:pD.PRO_BASIC,requires_user_data:!1,url_support:"https://automatorplugin.com/integration/slack/"}},trigger:{}},block_modifiers:{}},MAGIC_BUTTON:{type:"built-in",code:"MAGIC_BUTTON",name:"Magic Button",required_tier:pD.LITE,details:{icon:E7,description:"Trigger recipes with a button shortcode embedded in posts or pages.",short_description:"Shortcode-based recipe trigger.",primary_color:"#fbbc04",taxonomies:{categories:[],collections:[],tags:["button","shortcode"]},external_url:"https://automatorplugin.com/integration/magic-button/"},tokens:{},items:{action:{},trigger:{WPMAGICBUTTON:{type:"trigger",code:"WPMAGICBUTTON",is_deprecated:!1,has_tests:!1,has_status_toggle:!0,sentence:{short:"A user clicks a magic button",dynamic:'A user clicks [automator_button id="{{id:WPMAGICBUTTON}}" label="Click here"]'},description:null,required_tier:pD.LITE,requires_user_data:!1,url_support:"https://automatorplugin.com/integration/magic-button/"}}},block_modifiers:{}},DATETIME:{type:"built-in",code:"DATETIME",name:"Date and time",required_tier:pD.LITE,details:{icon:E7,description:"Date and time helpers - generate, parse and format dates inside recipes.",short_description:"Date and time helpers.",primary_color:"#0790e8",taxonomies:{categories:[],collections:[],tags:["date","time"]},external_url:"https://automatorplugin.com/integration/date-and-time/"},tokens:{},items:{action:{GENERATE_NEW_DATE:{type:"action",code:"GENERATE_NEW_DATE",is_deprecated:!1,has_tests:!1,has_status_toggle:!0,sentence:{short:"Generate a date",dynamic:"Generate a {{date:DATE_MODIFIER}} formatted as {{a format:TO_FORMAT}}"},description:null,required_tier:pD.LITE,requires_user_data:!1,url_support:"https://automatorplugin.com/integration/date-and-time/"}},trigger:{}},block_modifiers:{}},TRELLO:{type:"app",code:"TRELLO",name:"Trello",required_tier:pD.PRO_BASIC,details:{icon:E7,description:"Manage Trello boards, lists, cards and labels from recipes.",short_description:"Trello board automation.",primary_color:"#0079bf",taxonomies:{categories:[],collections:["app-integrations"],tags:["trello","project-management"]},external_url:"https://automatorplugin.com/integration/trello/"},tokens:{},items:{action:{ADD_CARD_LABEL:{type:"action",code:"ADD_CARD_LABEL",is_deprecated:!1,has_tests:!1,has_status_toggle:!0,sentence:{short:"Add a label to a card",dynamic:"Add {{a label:LABEL}} to {{a card:CARD}}"},description:null,required_tier:pD.PRO_BASIC,requires_user_data:!1,url_support:"https://automatorplugin.com/integration/trello/"}},trigger:{}},block_modifiers:{}},CLICKUP:{type:"app",code:"CLICKUP",name:"ClickUp",required_tier:pD.PRO_BASIC,details:{icon:E7,description:"Manage ClickUp workspaces, tasks and tags from recipes.",short_description:"ClickUp task automation.",primary_color:"#7b68ee",taxonomies:{categories:[],collections:["app-integrations"],tags:["clickup","project-management"]},external_url:"https://automatorplugin.com/integration/clickup/"},tokens:{},items:{action:{CLICKUP_SPACE_LIST_TASK_TAG_ADD:{type:"action",code:"CLICKUP_SPACE_LIST_TASK_TAG_ADD",is_deprecated:!1,has_tests:!1,has_status_toggle:!0,sentence:{short:"Add a tag to a task",dynamic:"Add {{a tag:CLICKUP_SPACE_LIST_TASK_TAG_ADD_META}} to {{a task:TASK}}"},description:null,required_tier:pD.PRO_BASIC,requires_user_data:!1,url_support:"https://automatorplugin.com/integration/clickup/"}},trigger:{}},block_modifiers:{}},ADVANCED:{type:"built-in",code:"ADVANCED",name:"Advanced",required_tier:pD.PRO_BASIC,details:{icon:E7,description:"Advanced universal tokens - recipe metadata, post / user meta, calculations.",short_description:"Advanced universal tokens.",primary_color:"#23282d",taxonomies:{categories:[],collections:[],tags:["advanced","tokens"]},external_url:"https://automatorplugin.com/integration/advanced/"},tokens:{"UT:ADVANCED:RECIPE_RUN_TOTAL":{code:"UT:ADVANCED:RECIPE_RUN_TOTAL",name:"Recipe run # (total)",data_type:EA.INTEGER,requires_user_data:!1,tags:[]},"UT:ADVANCED:POSTMETA":{code:"UT:ADVANCED:POSTMETA",name:"Post meta",data_type:EA.TEXT,requires_user_data:!1,tags:[],config:{fields:[{option_code:"POSTID",input_type:kU.TEXT,label:"Post ID",required:!0,description:"The ID of the post that contains the meta data.",supports_tokens:!0,unsupported_tokens:["UT:ADVANCED:USERMETA","UT:ADVANCED:POSTMETA","UT:ADVANCED:CALCULATION"]},{option_code:"KEY",input_type:kU.TEXT,label:"Meta key",required:!0,description:"The meta key associated with the data you want to retrieve. Only one meta key can be entered per token.",supports_tokens:!0,unsupported_tokens:["UT:ADVANCED:USERMETA","UT:ADVANCED:POSTMETA","UT:ADVANCED:CALCULATION"]}],id_template:"UT:ADVANCED:POSTMETA:{{POSTID}}:{{KEY}}",name_template:"Post: {{Post ID:POSTID}} meta: {{Meta key:KEY}}"}}},items:{action:{},trigger:{}},block_modifiers:{}}};pD.PRO_BASIC,pD.PRO_BASIC,EA.ARRAY;let Sn=`data:image/svg+xml;utf8,${encodeURIComponent('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64"><title>Mailchimp icon - Uncanny Automator</title><rect width="64" height="64" rx="8" fill="#ffe01b"/><path d="M14 44V20h7l11 13 11-13h7v24h-7V31L32 44 21 31v13z" fill="#241c15"/></svg>')}`,So=`data:image/svg+xml;utf8,${encodeURIComponent('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64"><title>Google Sheets icon - Uncanny Automator</title><rect x="10" width="44" height="64" rx="5" fill="#0f9d58"/><path d="M20 26h24v24H20zm3 3v5h7v-5zm11 0v5h7v-5zm-11 9v5h7v-5zm11 0v5h7v-5z" fill="#fff"/></svg>')}`,Sr=`data:image/svg+xml;utf8,${encodeURIComponent('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64"><title>Dropbox icon - Uncanny Automator</title><rect width="64" height="64" rx="12" fill="#0061fe"/><path d="M22 14 10 22l12 8 10-8zm20 0-10 8 10 8 12-8zM10 38l12 8 10-8-10-8zm32-8-10 8 10 8 12-8zM22 48l10 8 10-8-10-6z" fill="#fff"/></svg>')}`,Ss=`data:image/svg+xml;utf8,${encodeURIComponent('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64"><title>Loop icon - Uncanny Automator</title><rect width="64" height="64" rx="12" fill="#bbdefb"/><path d="M20 26h20l-6-6 4-4 13 13-13 13-4-4 6-6H20a6 6 0 0 0-6 6v2H8v-2a12 12 0 0 1 12-12z" fill="#0790e8"/></svg>')}`;({...Sa,LOOP:{type:"plugin",code:"LOOP",name:"Loop",required_tier:pD.PRO_BASIC,details:{icon:Ss,description:"Repeat a slice of a recipe for each item of a collection.",short_description:"Repeat actions per iteration.",primary_color:"#0790e8",taxonomies:{categories:[],collections:[],tags:["loop"]},external_url:"https://automatorplugin.com/"},tokens:{},items:{},block_modifiers:{}},MAILCHIMP:{type:"app",code:"MAILCHIMP",name:"Mailchimp",required_tier:pD.PRO_BASIC,details:{icon:Sn,description:"Manage audiences and subscribers in Mailchimp.",short_description:"Mailchimp audience automation.",primary_color:"#ffe01b",taxonomies:{categories:[],collections:["app-integrations"],tags:["mailchimp"]},external_url:"https://automatorplugin.com/integration/mailchimp/"},tokens:{},items:{},block_modifiers:{}},DROPBOX:{type:"app",code:"DROPBOX",name:"Dropbox",required_tier:pD.LITE,details:{icon:Sr,description:"Add, move and share files and folders in Dropbox.",short_description:"Dropbox file automation.",primary_color:"#0061fe",taxonomies:{categories:[],collections:["app-integrations"],tags:["dropbox"]},external_url:"https://automatorplugin.com/integration/dropbox/"},tokens:{},items:{},block_modifiers:{}},GOOGLESHEET:{type:"app",code:"GOOGLESHEET",name:"Google Sheets",required_tier:pD.PRO_BASIC,details:{icon:So,description:"Add and update rows in Google Sheets.",short_description:"Google Sheets row automation.",primary_color:"#0f9d58",taxonomies:{categories:[],collections:["app-integrations"],tags:["google-sheets"]},external_url:"https://automatorplugin.com/integration/google-sheets/"},tokens:{},items:{},block_modifiers:{}}});let Sl=`data:image/svg+xml;utf8,${encodeURIComponent('<?xml version="1.0" encoding="UTF-8"?><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64"><defs><style>.cls-1{fill:none;}.cls-2{fill:#873eff;fill-rule:evenodd;}</style></defs><title>Woo icon - Uncanny Automator</title><g id="Layer_2"><rect class="cls-1" width="64" height="64"/></g><g id="Layer_1"><path class="cls-2" d="M26.98,23.72c-1.5,0-2.47.49-3.35,2.13l-3.97,7.49v-6.66c0-1.99-.94-2.96-2.68-2.96s-2.47.59-3.35,2.27l-3.76,7.36v-6.59c0-2.13-.87-3.03-3-3.03H2.54c-1.64,0-2.54.77-2.54,2.16s.87,2.23,2.47,2.23h1.78v8.4c0,2.37,1.6,3.76,3.9,3.76s3.35-.91,4.5-3.03l2.51-4.71v3.97c0,2.34,1.53,3.76,3.87,3.76s3.21-.8,4.53-3.03l5.79-9.76c1.25-2.13.38-3.76-2.41-3.76h.03Z"/><path class="cls-2" d="M37.86,23.72c-4.74,0-8.33,3.52-8.33,8.3s3.63,8.26,8.33,8.26,8.3-3.52,8.33-8.26c0-4.78-3.63-8.3-8.33-8.3ZM37.86,35.19c-1.78,0-3-1.32-3-3.17s1.22-3.21,3-3.21,3,1.36,3,3.21-1.19,3.17-3,3.17Z"/><path class="cls-2" d="M55.67,23.72c-4.71,0-8.33,3.52-8.33,8.3s3.63,8.26,8.33,8.26,8.33-3.52,8.33-8.26-3.63-8.3-8.33-8.3ZM55.67,35.19c-1.81,0-2.96-1.32-2.96-3.17s1.19-3.21,2.96-3.21,3,1.36,3,3.21-1.19,3.17-3,3.17Z"/></g></svg>')}`,Sc=`data:image/svg+xml;utf8,${encodeURIComponent('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64"><defs><style>.cls-1{fill:none;}.cls-2{fill:#fff;}.cls-3{fill:#4285f4;}.cls-4{fill:#34a853;}.cls-5{fill:#188038;}.cls-6{fill:#fbbc04;}.cls-7{fill:#1967d2;}.cls-8{fill:#ea4335;}</style></defs><title>Google Calendar icon - Uncanny Automator</title><g id="Layer_2" data-name="Layer 2"><rect class="cls-1" width="64" height="64"/></g><g id="Layer_1" data-name="Layer 1"><path class="cls-2" d="M48.84,15.16H15.16V48.84H48.84Z"/><path class="cls-3" d="M22.07,41.29a6.52,6.52,0,0,1-2.61-3.74l2.92-1.2a4.49,4.49,0,0,0,1.39,2.35,3.62,3.62,0,0,0,2.39.83,3.71,3.71,0,0,0,2.47-.87,2.81,2.81,0,0,0,1-2.22,2.74,2.74,0,0,0-1.09-2.25,4.2,4.2,0,0,0-2.72-.87H24.16V30.43h1.52A3.73,3.73,0,0,0,28,29.67a2.51,2.51,0,0,0,1-2.08,2.27,2.27,0,0,0-.86-1.87A3.29,3.29,0,0,0,26,25a2.94,2.94,0,0,0-2,.69,4,4,0,0,0-1.1,1.69l-2.9-1.2A6.48,6.48,0,0,1,22,23.31,6.1,6.1,0,0,1,26,22.06a7.18,7.18,0,0,1,3.19.69,5.38,5.38,0,0,1,2.22,1.9,4.84,4.84,0,0,1,.8,2.74A4.49,4.49,0,0,1,31.46,30a5.13,5.13,0,0,1-1.83,1.65v.17A5.61,5.61,0,0,1,32,33.65a4.78,4.78,0,0,1,.92,3A5.54,5.54,0,0,1,32,39.67a6.12,6.12,0,0,1-2.4,2.12,7.67,7.67,0,0,1-3.45.77,7.17,7.17,0,0,1-4.1-1.27Zm18-14.5-3.21,2.32L35.2,26.67,41,22.52h2.21V42.11H40Z"/><path class="cls-4" d="M48.84,48.84H15.16V64H48.84Z"/><path class="cls-3" d="M48.84,0H5.05A5,5,0,0,0,0,5.05V48.84H15.16V15.16H48.84Z"/><path class="cls-5" d="M0,48.84V59a5,5,0,0,0,5.05,5H15.16V48.84Z"/><path class="cls-6" d="M64,15.16H48.84V48.84H64Z"/><path class="cls-7" d="M64,15.16V5.05a5,5,0,0,0-5-5H48.84V15.16Z"/><path class="cls-8" d="M48.84,64,64,48.84H48.84Z"/></g></svg>')}`,Sd=`data:image/svg+xml;utf8,${encodeURIComponent('<svg id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64"><defs><style>.cls-1{fill:#4285f4;}.cls-2{fill:#34a853;}.cls-3{fill:#fbbc05;}.cls-4{fill:#ea4335;}.cls-5{fill:none;}</style></defs><path class="cls-1" d="M63.32,32.72a36.93,36.93,0,0,0-.51-6H32.68v12H49.93a14.85,14.85,0,0,1-6.4,9.55v8h10.3C59.85,50.67,63.32,42.45,63.32,32.72Z"/><path class="cls-2" d="M32.68,64c8.64,0,15.87-2.88,21.15-7.76l-10.3-8a19.3,19.3,0,0,1-28.8-10.13H4.12v8.24A32,32,0,0,0,32.68,64Z"/><path class="cls-3" d="M14.73,38.11a18.78,18.78,0,0,1-1-6.11,19.33,19.33,0,0,1,1-6.11V17.65H4.12a31.65,31.65,0,0,0,0,28.7Z"/><path class="cls-4" d="M32.68,12.67A17.35,17.35,0,0,1,45,17.47l9.12-9.12A30.58,30.58,0,0,0,32.68,0,32,32,0,0,0,4.12,17.65l10.61,8.24A19.11,19.11,0,0,1,32.68,12.67Z"/><rect class="cls-5" width="64" height="64"/></svg>')}`,Su=`data:image/svg+xml;utf8,${encodeURIComponent('<?xml version="1.0" encoding="UTF-8"?><svg id="Layer_1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><defs><style>.cls-1{fill:none;}.cls-2{isolation:isolate;opacity:.4;}.cls-2,.cls-3{fill:#0790e8;}</style></defs><rect class="cls-1" width="512" height="512"/><path class="cls-2" d="M99.57,369.74c0,7.85,6.37,14.22,14.22,14.22s14.22-6.37,14.22-14.22-6.37-14.22-14.22-14.22-14.22,6.37-14.22,14.22ZM241.79,142.2c0,7.85,6.37,14.22,14.22,14.22s14.22-6.37,14.22-14.22-6.37-14.22-14.22-14.22-14.22,6.37-14.22,14.22ZM384.01,369.74c0,7.85,6.37,14.22,14.22,14.22s14.22-6.37,14.22-14.22-6.37-14.22-14.22-14.22-14.22,6.37-14.22,14.22Z"/><path class="cls-3" d="M272.01,72.95c36.53,8.44,60,43.73,54.31,80.17-1.87,11.64,6.13,22.58,17.78,24.35,11.64,1.78,22.58-6.13,24.35-17.78,9.16-58.4-28.35-114.84-86.84-128.35-61.24-14.13-122.31,24-136.44,85.24-9.51,41.15,4.62,82.31,33.51,109.06l-63.38,101.42h-1.51c-23.55,0-42.66,19.11-42.66,42.66s19.11,42.66,42.66,42.66,42.66-19.11,42.66-42.66c0-7.2-1.78-14.04-4.98-20l73.6-117.77c3.02-4.8,4-10.58,2.67-16.09s-4.71-10.31-9.51-13.33c-25.07-15.64-38.58-45.95-31.55-76.35,8.89-38.22,47.02-62.13,85.33-53.24ZM256.01,127.97c7.85,0,14.22,6.37,14.22,14.22s-6.37,14.22-14.22,14.22-14.22-6.37-14.22-14.22,6.37-14.22,14.22-14.22ZM293.7,162.2c3.2-5.96,4.98-12.8,4.98-20,0-23.55-19.11-42.66-42.66-42.66s-42.66,19.11-42.66,42.66,19.11,42.66,42.66,42.66h1.51l73.6,117.77c3.02,4.8,7.82,8.18,13.33,9.51s11.29.27,16.09-2.67c27.47-17.15,64.09-13.78,88,10.04,27.73,27.73,27.73,72.8,0,100.53-23.82,23.82-60.53,27.2-88,10.04-9.96-6.22-23.11-3.2-29.42,6.76s-3.2,23.11,6.76,29.42c43.91,27.55,102.57,22.22,140.79-16,44.44-44.44,44.44-116.44,0-160.88-32.89-32.89-80.89-41.42-121.6-25.69l-63.38-101.51ZM99.57,369.74c0-7.85,6.37-14.22,14.22-14.22s14.22,6.37,14.22,14.22-6.37,14.22-14.22,14.22-14.22-6.37-14.22-14.22ZM384.01,369.74c0-7.85,6.37-14.22,14.22-14.22s14.22,6.37,14.22,14.22-6.37,14.22-14.22,14.22-14.22-6.37-14.22-14.22ZM440.89,369.74c0-23.55-19.11-42.66-42.66-42.66-15.82,0-29.6,8.62-36.98,21.33h-155.02c-5.69,0-11.11,2.22-15.11,6.22s-6.22,9.42-6.22,15.11c0,32.35-22.22,61.69-55.11,69.24-38.31,8.8-76.44-15.02-85.24-53.33-7.91-34.31,10.4-68.53,41.87-81.6,10.84-4.53,16-16.98,11.47-27.91-4.53-10.93-16.98-16-27.91-11.47C19.66,285.66-9.76,340.41,2.95,395.34c14.13,61.24,75.2,99.37,136.44,85.24,45.33-10.49,77.95-46.66,86.22-89.51h135.73c7.38,12.71,21.15,21.33,36.98,21.33,23.55,0,42.66-19.11,42.66-42.66h-.09Z"/></svg>')}`,Sp=`data:image/svg+xml;utf8,${encodeURIComponent('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64"><defs><style>.a{fill:none;}.b{fill:#34d367;fill-rule:evenodd;}</style></defs><title>WhatsApp icon - Uncanny Automator</title><rect class="a" width="64" height="64"/><path class="b" d="M54.57,9.3A31.73,31.73,0,0,0,4.65,47.57L.15,64,17,59.59a31.59,31.59,0,0,0,15.15,3.86h0A31.73,31.73,0,0,0,54.57,9.3ZM32.13,58.09h0a26.27,26.27,0,0,1-13.41-3.67l-1-.57-10,2.62,2.66-9.73-.63-1a26.36,26.36,0,0,1,41-32.65,26.37,26.37,0,0,1-18.65,45ZM46.59,38.35C45.8,38,41.9,36,41.18,35.77s-1.26-.39-1.79.4-2,2.58-2.5,3.11-.93.59-1.72.2a21.75,21.75,0,0,1-6.37-3.94,23.55,23.55,0,0,1-4.41-5.49c-.46-.79-.05-1.22.35-1.61s.79-.93,1.18-1.39a5.61,5.61,0,0,0,.8-1.32,1.47,1.47,0,0,0-.07-1.39c-.2-.4-1.78-4.3-2.44-5.89s-1.3-1.33-1.79-1.36-1,0-1.51,0a2.9,2.9,0,0,0-2.12,1A8.9,8.9,0,0,0,16,24.67c0,3.9,2.84,7.67,3.23,8.2s5.59,8.53,13.54,12a45.94,45.94,0,0,0,4.52,1.67,10.81,10.81,0,0,0,5,.31c1.52-.22,4.69-1.91,5.35-3.76a6.61,6.61,0,0,0,.46-3.77C47.91,39,47.38,38.75,46.59,38.35Z"/></svg>')}`,Sh=`data:image/svg+xml;utf8,${encodeURIComponent('<?xml version="1.0" encoding="UTF-8"?><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64"><title>Salesforce icon - Uncanny Automator</title><g id="a"><path d="m26.63,14.49c2.06-2.15,4.94-3.48,8.12-3.48,4.22,0,7.91,2.36,9.87,5.85,1.76-.78,3.66-1.19,5.58-1.19,7.62,0,13.8,6.23,13.8,13.92s-6.18,13.92-13.8,13.92c-.93,0-1.84-.09-2.72-.27-1.73,3.08-5.02,5.16-8.8,5.16-1.58,0-3.08-.36-4.41-1.02-1.75,4.12-5.84,7.01-10.59,7.01s-9.18-3.14-10.8-7.53c-.72.15-1.46.23-2.2.23C4.78,47.1,0,42.26,0,36.3c0-3.84,2.02-7.4,5.34-9.35-.68-1.56-1.02-3.24-1.02-4.94,0-6.86,5.57-12.41,12.43-12.41,3.88,0,7.53,1.8,9.88,4.89" style="fill:#00a1e0; fill-rule:evenodd; stroke-width:0px;"/><path d="m9.27,32.83l.26-.72c.04-.12.13-.08.17-.06.07.04.12.08.22.14.76.48,1.47.49,1.69.49.57,0,.93-.3.93-.71v-.02c0-.44-.55-.61-1.18-.8l-.14-.04c-.87-.25-1.79-.6-1.79-1.7v-.02c0-1.04.84-1.77,2.04-1.77h.13c.71,0,1.39.2,1.88.5.04.03.09.08.06.15l-.27.72c-.05.12-.17.04-.17.04-.52-.27-1.09-.41-1.67-.43-.51,0-.84.27-.84.64v.02c0,.43.56.61,1.21.82l.11.03c.86.27,1.78.65,1.78,1.69v.02c0,1.12-.82,1.82-2.13,1.82-.64,0-1.26-.1-1.91-.45-.12-.07-.24-.13-.37-.22-.01-.02-.07-.04-.03-.14h0Zm19.22,0l.26-.72c.04-.12.15-.07.17-.06.07.04.12.08.22.14.76.48,1.47.49,1.69.49.57,0,.92-.3.92-.71v-.02c0-.44-.55-.61-1.18-.8l-.14-.04c-.87-.25-1.79-.6-1.79-1.7v-.02c0-1.04.84-1.77,2.04-1.77h.13c.71,0,1.39.2,1.88.5.04.03.09.08.06.15-.02.06-.24.65-.27.72-.05.12-.17.04-.17.04-.52-.27-1.09-.42-1.67-.43-.51,0-.84.27-.84.64v.02c0,.43.56.61,1.21.82l.11.03c.86.27,1.78.65,1.78,1.69v.02c0,1.12-.82,1.82-2.13,1.82-.65,0-1.26-.1-1.91-.45-.12-.07-.24-.13-.37-.22-.01-.02-.07-.04-.03-.14Zm14.22-3.38c.11.36.16.76.16,1.18s-.05.82-.16,1.18c-.1.35-.27.67-.5.95-.23.27-.52.49-.84.63-.34.15-.73.23-1.17.23s-.84-.08-1.17-.23c-.33-.15-.61-.36-.84-.63-.23-.28-.4-.6-.5-.95-.11-.38-.16-.78-.16-1.18,0-.42.05-.82.16-1.18.11-.36.28-.68.5-.95.23-.27.52-.49.84-.64.34-.16.73-.24,1.17-.24s.84.08,1.17.24c.33.16.62.37.84.64.22.27.39.59.5.95Zm-1.09,1.18c0-.63-.12-1.13-.35-1.48-.23-.35-.58-.52-1.07-.52s-.83.17-1.06.52c-.23.35-.35.85-.35,1.48s.12,1.14.35,1.49c.23.35.57.52,1.06.52s.84-.17,1.07-.52c.23-.35.35-.86.35-1.49Zm10.09,1.84l.27.74c.03.09-.04.13-.04.13-.42.16-.99.28-1.55.28-.95,0-1.68-.27-2.16-.81-.48-.54-.73-1.27-.73-2.18,0-.42.06-.82.18-1.18.12-.36.3-.68.53-.95.24-.27.55-.49.88-.64.35-.16.76-.23,1.22-.23.31,0,.59.02.82.05.25.04.59.13.73.19.03,0,.1.04.07.13-.1.29-.17.48-.27.75-.04.11-.13.08-.13.08-.36-.11-.71-.17-1.16-.17-.54,0-.95.18-1.22.53-.27.36-.42.82-.42,1.44,0,.68.17,1.19.47,1.5.3.31.72.47,1.25.47.21,0,.42-.01.6-.04.18-.03.35-.08.51-.15,0,0,.1-.04.14.07Zm5.61-3.22c.24.84.11,1.56.11,1.6,0,.1-.11.1-.11.1h-3.71c.02.56.16.96.43,1.23.27.27.69.44,1.27.44.88,0,1.26-.17,1.52-.27,0,0,.1-.04.14.06l.24.68c.05.11,0,.15-.03.18-.23.13-.8.37-1.87.37-.52,0-.97-.07-1.35-.22-.35-.13-.67-.34-.93-.62-.25-.27-.43-.59-.54-.94-.11-.38-.17-.78-.17-1.18,0-.42.05-.82.16-1.18.11-.37.28-.69.5-.96.23-.28.52-.5.85-.65.34-.16.76-.24,1.22-.24.4,0,.76.09,1.06.22.23.1.47.28.71.54.15.16.38.52.47.87h0Zm-3.69.77h2.65c-.03-.34-.09-.65-.25-.87-.23-.35-.55-.54-1.04-.54s-.83.19-1.06.54c-.15.23-.25.52-.3.87h0Zm-26.02-.77c.24.84.12,1.56.11,1.6,0,.1-.11.1-.11.1h-3.71c.02.56.16.96.43,1.23.27.27.69.44,1.27.44.88,0,1.26-.17,1.52-.27,0,0,.1-.04.14.06l.24.68c.05.11,0,.15-.03.18-.23.13-.8.37-1.87.37-.52,0-.97-.07-1.35-.22-.35-.13-.67-.34-.93-.62-.25-.27-.43-.59-.54-.94-.12-.38-.17-.78-.17-1.18,0-.42.05-.82.16-1.18.1-.35.27-.68.5-.96.23-.28.52-.5.85-.65.34-.16.76-.24,1.22-.24.37,0,.73.07,1.06.22.23.1.47.28.7.54.15.16.38.52.47.87Zm-3.69.77h2.65c-.03-.34-.09-.65-.25-.87-.23-.35-.55-.54-1.04-.54s-.83.19-1.06.54c-.15.23-.25.52-.3.87h0Zm-6.54-.18s.29.03.61.07v-.16c0-.49-.1-.73-.31-.88-.21-.16-.52-.24-.92-.24,0,0-.9-.01-1.62.38-.03.02-.06.03-.06.03,0,0-.09.03-.12-.06l-.26-.71c-.04-.1.03-.15.03-.15.33-.26,1.14-.42,1.14-.42.33-.06.66-.09.99-.09.74,0,1.31.17,1.7.51.39.34.59.89.59,1.64v3.39s0,.1-.08.12c0,0-.14.04-.26.07-.12.03-.57.12-.94.18-.37.06-.75.09-1.13.09-.36,0-.69-.03-.98-.1-.27-.06-.53-.17-.76-.33-.21-.15-.37-.35-.48-.58-.11-.23-.17-.52-.17-.85s.07-.61.2-.86c.13-.24.31-.45.54-.61.23-.16.5-.29.77-.36.29-.08.6-.12.91-.12.23,0,.43,0,.58.02h0Zm-1.48,2.61s.33.26,1.09.22c.53-.03,1-.13,1-.13v-1.69s-.47-.08-1.01-.09c-.76,0-1.08.27-1.08.27-.22.16-.33.39-.33.72,0,.21.04.37.11.48.05.07.07.1.21.22Zm31.4-4.52c-.03.1-.21.61-.28.78-.02.06-.06.11-.14.1,0,0-.21-.05-.41-.05-.13,0-.32.02-.5.07-.17.05-.33.15-.46.28-.14.13-.25.31-.33.55-.08.23-.12.6-.12.97v2.76c0,.06-.05.11-.11.11,0,0,0,0,0,0h-.97c-.06,0-.11-.05-.11-.11h0v-5.53c0-.06.05-.11.11-.11h.95c.06,0,.11.05.11.11v.45c.14-.19.4-.36.63-.46.23-.1.49-.18.96-.15.24.01.56.08.62.11.05.02.08.08.06.13,0,0,0,0,0,0Zm-9.15-2.56s.1.04.07.13l-.28.78c-.02.06-.04.09-.16.06-.16-.05-.33-.08-.49-.08-.15,0-.28.02-.4.06-.12.04-.22.1-.31.19-.12.11-.2.25-.26.4-.14.39-.19.81-.2.84h1.19c.1,0,.13.05.12.12l-.14.77c-.02.11-.12.11-.12.11h-1.22l-.84,4.73c-.07.42-.18.84-.33,1.25-.13.34-.27.59-.48.83-.19.21-.42.38-.69.48-.26.09-.57.14-.91.14-.16,0-.34,0-.54-.05-.12-.03-.23-.06-.34-.1-.05-.02-.08-.07-.06-.15.03-.07.24-.67.27-.75.04-.1.13-.06.13-.06.07.03.11.05.2.06.09.02.21.03.3.03.16,0,.31-.02.44-.06.15-.05.24-.14.34-.26.1-.13.18-.3.26-.53.08-.23.16-.54.22-.91l.83-4.64h-.82c-.1,0-.13-.05-.12-.12l.14-.77c.02-.11.13-.11.13-.11h.84l.05-.25c.13-.74.38-1.31.75-1.68.37-.37.9-.56,1.57-.56.19,0,.36.01.5.04.14.03.25.05.37.09Zm-16.57,8.02c0,.06-.04.11-.11.11h-.98c-.06,0-.11-.05-.11-.11v-7.92c0-.06.04-.11.1-.11h.98c.06,0,.11.05.11.11,0,0,0,7.92,0,7.92Z" style="fill:#fff; fill-rule:evenodd; stroke-width:0px;"/></g><g id="b"><rect width="64" height="64" style="fill:none; stroke-width:0px;"/></g></svg>')}`,Sg=`data:image/svg+xml;utf8,${encodeURIComponent('<svg viewBox="0 0 122.52 122.523" xmlns="http://www.w3.org/2000/svg"><title>WordPress icon - Uncanny Automator</title><g fill="#21759b"><path d="m8.708 61.26c0 20.802 12.089 38.779 29.619 47.298l-25.069-68.686c-2.916 6.536-4.55 13.769-4.55 21.388z"/><path d="m96.74 58.608c0-6.495-2.333-10.993-4.334-14.494-2.664-4.329-5.161-7.995-5.161-12.324 0-4.831 3.664-9.328 8.825-9.328.233 0 .454.029.681.042-9.35-8.566-21.807-13.796-35.489-13.796-18.36 0-34.513 9.42-43.91 23.688 1.233.037 2.395.063 3.382.063 5.497 0 14.006-.667 14.006-.667 2.833-.167 3.167 3.994.337 4.329 0 0-2.847.335-6.015.501l19.138 56.925 11.501-34.493-8.188-22.434c-2.83-.166-5.511-.501-5.511-.501-2.832-.166-2.5-4.496.332-4.329 0 0 8.679.667 13.843.667 5.496 0 14.006-.667 14.006-.667 2.835-.167 3.168 3.994.337 4.329 0 0-2.853.335-6.015.501l18.992 56.494 5.242-17.517c2.272-7.269 4.001-12.49 4.001-16.989z"/><path d="m62.184 65.857-15.768 45.819c4.708 1.384 9.687 2.141 14.846 2.141 6.12 0 11.989-1.058 17.452-2.979-.141-.225-.269-.464-.374-.724z"/><path d="m107.376 36.046c.226 1.674.354 3.471.354 5.404 0 5.333-.996 11.328-3.996 18.824l-16.053 46.413c15.624-9.111 26.133-26.038 26.133-45.426.001-9.137-2.333-17.729-6.438-25.215z"/><path d="m61.262 0c-33.779 0-61.262 27.481-61.262 61.26 0 33.783 27.483 61.263 61.262 61.263 33.778 0 61.265-27.48 61.265-61.263-.001-33.779-27.487-61.26-61.265-61.26zm0 119.715c-32.23 0-58.453-26.223-58.453-58.455 0-32.23 26.222-58.451 58.453-58.451 32.229 0 58.45 26.221 58.45 58.451 0 32.232-26.221 58.455-58.45 58.455z"/></g></svg>')}`,Sm={PRO_BASIC:{type:Eu.LICENSE,scenario_id:y9.PRO_BASIC,label:"Pro",color:"success",helper:"You must have a valid Pro Basic license or higher"},PRO_PLUS:{type:Eu.LICENSE,scenario_id:y9.PRO_PLUS,label:"Pro Plus",color:"success",helper:"You must have a valid Pro Plus license or higher"},PRO_ELITE:{type:Eu.LICENSE,scenario_id:y9.PRO_ELITE,label:"Pro Elite",color:"success",helper:"You must have a valid Pro Elite license or higher"},NOT_INSTALLED:{type:Eu.DEPENDENCY,scenario_id:El.NOT_INSTALLED,label:"Not Installed",icon:"link-simple-slash"},NOT_CONNECTED:{type:Eu.DEPENDENCY,scenario_id:El.NOT_CONNECTED,label:"Not Connected",icon:"link-simple-slash"},NOT_ACTIVE:{type:Eu.DEPENDENCY,scenario_id:El.NOT_ACTIVE,label:"Not active",icon:"link-simple-slash"},LOCKED:{type:Eu.AVAILABILITY,scenario_id:Er.LOCKED,label:"Locked",icon:"lock"},TESTS_PASSED:{type:Eu.TESTS,scenario_id:k9.PASSED,label:"Tests passed",color:"success",icon:"circle-check"},TESTS_FAILED:{type:Eu.TESTS,scenario_id:k9.FAILED,label:"Tests failed",color:"error",icon:"circle-xmark"},TESTS_SKIPPED:{type:Eu.TESTS,scenario_id:k9.SKIPPED,label:"Tests skipped",color:"warning",icon:"circle-minus"}},Sf={WC:{type:"plugin",code:"WC",name:"WooCommerce",required_tier:pD.LITE,details:{icon:Sl,description:"Woo is the most popular ecommerce platform on the internet and is a free addon for WordPress. With it, you can sell both physical and digital products globally and leverage hundreds of both free and paid WooCommerce extensions to add membership, subscription, recurring payment and other capabilities to your WordPress site.",short_description:"Sell physical and digital products globally and leverage free and paid extensions to add features.",primary_color:"#873eff",taxonomies:{categories:["e-commerce"],collections:["featured"],tags:["e-commerce","store","shop","sales","marketing"]},external_url:"https://automatorplugin.com/integration/woocommerce/"},items:{action:{WCCREATEORDER:{type:"action",code:"WCCREATEORDER",is_deprecated:!1,has_tests:!1,has_status_toggle:!0,sentence:{short:"Create an order with {{a product}}",dynamic:"Create an order with {{a product:CREATEORDER}}"},required_tier:pD.PRO_BASIC,requires_user_data:!1,description:"Select a product to instantly create a new WooCommerce order-then set quantity, customer, payment method and status to automate order creation from any trigger.",url_support:"https://automatorplugin.com/integration/woocommerce/",dependencies:{all_met:!1,items:[{id:kE.REQUIRES_PRO_BASIC_NOT_INSTALLED,type:kv.LICENSE,scenario_id:kE.REQUIRES_PRO_BASIC_NOT_INSTALLED,name:"Uncanny Automator Pro",description:"This integration requires Uncanny Automator Pro to be installed.",is_met:!1,is_disabled:!1,dependencies:[],tags:[{scenario_id:kC.LICENSE,label:"License",icon:"badge-check"}],cta:{type:"link-external",label:"Get Automator Pro",url:"https://uncannyautomator.com/pricing/"}}]},tags:[Sm.PRO_BASIC,Sm.LOCKED]},WC_NOTE_TO_ORDER:{type:"action",code:"WC_NOTE_TO_ORDER",is_deprecated:!1,has_tests:!1,has_status_toggle:!0,sentence:{short:"Add a note to {{an order}}",dynamic:"Add a note to {{an order:WC_ORDER}}"},description:null,required_tier:pD.LITE,requires_user_data:!1,url_support:"https://automatorplugin.com/integration/woocommerce/",dependencies:{all_met:!1,items:[]},tags:[Sm.LOCKED]},WC_ADD_PRODUCT_TO_CART:{type:"action",code:"WC_ADD_PRODUCT_TO_CART",is_deprecated:!1,has_tests:!1,has_status_toggle:!0,sentence:{short:"Add {{a product}} to the cart",dynamic:"Add {{a product:WC_PRODUCT}} to the cart"},description:null,required_tier:pD.LITE,requires_user_data:!1,url_support:"https://automatorplugin.com/integration/woocommerce/",dependencies:{all_met:!1,items:[]},tags:[Sm.LOCKED]},WC_ORDER_DETAILS:{type:"action",code:"WC_ORDER_DETAILS",is_deprecated:!1,has_tests:!1,has_status_toggle:!0,sentence:{short:"Get order details",dynamic:"Get order details by {{an order ID:WC_ORDER_ID}}"},description:"Fetch the details of a specific order using its ID and create tokens for subsequent recipe steps.",required_tier:pD.LITE,requires_user_data:!1,url_support:"https://automatorplugin.com/integration/woocommerce/",dependencies:{all_met:!1,items:[]},tags:[Sm.LOCKED]}}},tokens:E9,usage:{count:18,last_used:1767312e3},dependencies:{all_met:!1,items:[{id:"woocommerce",type:kv.INSTALLABLE,scenario_id:kx.WP_ORG,name:"Woo",description:"Everything you need to launch an online store in days and keep it growing for years. From your first sale to millions in revenue, Woo is with you.",icon:Sl,is_met:!1,is_disabled:!1,dependencies:[],tags:[{scenario_id:kC.INSTALLABLE,label:"Plugin",icon:"puzzle-piece"},{scenario_id:kC.INSTALLABLE_WP_ORG,label:"Open source",icon:"earth-americas"}],developer:{name:"Automattic",site:"https://automattic.com/"},cta:{type:kh.FETCH,label:"Get Woo",addon_id:"woocommerce",addon_action:"install"}}]},tags:[Sm.NOT_INSTALLED],block_modifiers:{}},GOOGLE_CALENDAR:{type:"app",code:"GOOGLE_CALENDAR",name:"Google Calendar",required_tier:pD.LITE,connected:!1,details:{icon:Sc,description:"Google Calendar is a time management and scheduling calendar service offered by Google. With it, users can schedule meetings and events, and get reminders about upcoming activities.",short_description:"A time management and scheduling calendar service.",primary_color:"#1a67d2",taxonomies:{categories:[],collections:["app-integrations"],tags:["google","calendar","time-management","scheduling"]},external_url:"https://automatorplugin.com/integration/google-calendar/"},tokens:{},items:{action:{GCALENDAR_ADDATTENDEE_CODE:{type:"action",code:"GCALENDAR_ADDATTENDEE_CODE",is_deprecated:!1,has_tests:!1,has_status_toggle:!0,sentence:{short:"Add {{an attendee}} to {{an event}} in {{a Google Calendar}}",dynamic:"Add {{an attendee:GCALENDAR_ADDATTENDEE_META}} to {{an event:GCALENDAR_ADDATTENDEE_event_id}} in {{a Google Calendar:GCALENDAR_ADDATTENDEE_calendar_id}}"},description:null,required_tier:pD.LITE,requires_user_data:!1,url_support:"https://automatorplugin.com/integration/google-calendar/",dependencies:{all_met:!1,items:[]},tags:[Sm.LOCKED]}}},usage:{count:16,last_used:0x69585c00},dependencies:{all_met:!1,items:[{id:"google-account",type:kv.ACCOUNT,scenario_id:k_.APP,name:"Google account",description:"Connect your Google account to use Google Calendar in your recipes.",icon:Sd,is_met:!1,is_disabled:!1,dependencies:[],tags:[{scenario_id:kC.ACCOUNT,label:"Account",icon:"user"}],cta:{type:kh.LINK_OPEN_AND_WAIT,label:"Connect Google account",url:"https://localhost/wp-admin/edit.php?post_type=uo-recipe&page=uncanny-automator-config&tab=premium-integrations&integration=google-calendar"}}]},tags:[Sm.NOT_CONNECTED],block_modifiers:{}},WEBHOOKS:{type:"built-in",code:"WEBHOOKS",name:"Webhooks",required_tier:pD.LITE,details:{icon:Su,description:"Uncanny Automator includes the most powerful and versatile webhook functionality available for your WordPress site. Send data to any service or app that supports webhooks using any request method (GET, PUT, POST, HEAD, DELETE) or data format (x-www-form-urlencoded, form-data, JSON, Text, HTML, XML, GraphQL, Raw). Build complex objects using nesting. Trigger a webhook whenever users complete any combination of supported triggers on your site. And that's all available in the free version. Upgrade to Uncanny Automator Pro to receive webhooks from other apps and services and automatically run actions on your WordPress site.",short_description:"The most powerful incoming and outgoing webhook functionality available for WordPress.",primary_color:"#0790e8",taxonomies:{categories:[],collections:[""],tags:["webhook","api","automation"]},external_url:"https://automatorplugin.com/integration/webhooks/"},tokens:{},items:{action:{WPSENDWEBHOOK:{type:"action",code:"WPSENDWEBHOOK",is_deprecated:!1,has_tests:!0,has_status_toggle:!0,required_tier:pD.LITE,requires_user_data:!1,sentence:{short:"Send {{a webhook}}",dynamic:"Send {{a webhook:WPWEBHOOK}}"},description:null,url_support:"https://automatorplugin.com/integration/webhooks/",dependencies:{all_met:!0,items:[]},tags:[]}}},usage:{count:12,last_used:0x6959ad80},dependencies:{all_met:!0,items:[]},tags:[],block_modifiers:{}},WHATSAPP:{type:"app",code:"WHATSAPP",name:"WhatsApp",required_tier:pD.LITE,connected:!0,details:{icon:Sp,description:"WhatsApp is a free, cross-platform messaging platform with over 2 billion users. As the world's most popular messaging application, it has become the primary means of internet communications for many regions of the world.",short_description:"A cross-platform messaging app",primary_color:"#25d366",taxonomies:{categories:[],collections:["app-integrations"],tags:["whatsapp","messaging","chat","communication"]},external_url:"https://automatorplugin.com/integration/whatsapp/"},tokens:{},items:{action:{WHATSAPP_SEND_MESSAGE:{type:"action",code:"WHATSAPP_SEND_MESSAGE",is_deprecated:!1,has_tests:!1,has_status_toggle:!0,sentence:{short:"Send a WhatsApp message to {{a number}}",dynamic:"Send a WhatsApp message to {{a number:WHATSAPP_META}}"},description:null,required_tier:pD.PRO_BASIC,requires_user_data:!1,url_support:"https://automatorplugin.com/integration/whatsapp/",dependencies:{all_met:!1,items:[{type:kv.LICENSE,id:kE.REQUIRES_PRO_BASIC_NOT_INSTALLED,scenario_id:kE.REQUIRES_PRO_BASIC_NOT_INSTALLED,name:"Uncanny Automator Pro",description:"This action requires Uncanny Automator Pro to be installed.",is_met:!1,is_disabled:!1,dependencies:[],tags:[{scenario_id:kC.LICENSE,label:"License",icon:"badge-check"}],cta:{type:kh.LINK_EXTERNAL,label:"Get Automator Pro",url:"https://uncannyautomator.com/pricing/"}}]},tags:[Sm.PRO_BASIC,Sm.LOCKED]}}},usage:{count:15,last_used:0x695aff00},dependencies:{all_met:!0,items:[{id:"whatsapp-account",type:kv.ACCOUNT,scenario_id:k_.APP,name:"WhatsApp account",description:"Connect your WhatsApp account to use WhatsApp in your recipes.",icon:Sp,is_met:!0,is_disabled:!1,dependencies:[],tags:[{scenario_id:kC.ACCOUNT,label:"Account",icon:"user"}],cta:{type:kh.LINK_OPEN_AND_WAIT,label:"Connect WhatsApp account",url:"https://localhost/wp-admin/edit.php?post_type=uo-recipe&page=uncanny-automator-config&tab=premium-integrations&integration=whatsapp"}}]},tags:[],block_modifiers:{}},WP:{type:"built-in",code:"WP",name:"WordPress Core",required_tier:pD.LITE,details:{icon:Sg,description:"WordPress core actions - including the redirect action that finishes a recipe by sending the user to a chosen URL.",short_description:"Core WordPress actions.",primary_color:"#23282d",taxonomies:{categories:[],collections:[],tags:["wordpress","core"]},external_url:"https://automatorplugin.com/integration/wordpress-core/"},tokens:{},block_modifiers:{},items:{action:{REDIRECT:{type:"action",code:"REDIRECT",is_deprecated:!1,has_tests:!1,has_status_toggle:!0,sentence:{short:"Redirect to a URL",dynamic:"Redirect to {{a link:REDIRECTURL}} when recipe is completed"},description:"Sends the user to a URL when the recipe finishes.",required_tier:pD.LITE,requires_user_data:!0,url_support:"https://automatorplugin.com/integration/wordpress-core/",dependencies:{all_met:!0,items:[]},tags:[],required_block_ancestors:[],unsupported_block_ancestors:[{entity_type:kP.BLOCK,entity_code:"delay_schedule",reason:"A redirect only works while the user is still on the page. Delays make the recipe finish later, after the user has left."}]}}},usage:{count:19,last_used:0x695c5080},dependencies:{all_met:!0,items:[]},tags:[]},LOOP:{type:"plugin",code:"LOOP",name:"Loop",required_tier:pD.PRO_BASIC,details:{icon:Sg,description:"Loop block utilities - repeat a slice of a recipe per iteration over a collection.",short_description:"Repeat actions per iteration.",primary_color:"#1f2937",taxonomies:{categories:[],collections:[],tags:["loop"]},external_url:"https://automatorplugin.com/integration/loop/"},tokens:{},block_modifiers:{},items:{action:{END_LOOP:{type:"action",code:"END_LOOP",is_deprecated:!1,has_tests:!1,has_status_toggle:!0,sentence:{short:"End loop",dynamic:"End loop"},description:"Stop the parent Loop immediately and continue the recipe with the next step after the Loop.",required_tier:pD.PRO_BASIC,requires_user_data:!1,url_support:"https://automatorplugin.com/integration/loop/",dependencies:{all_met:!0,items:[]},tags:[],required_block_ancestors:[{entity_type:kP.BLOCK,entity_code:"loop",reason:"This action can only be used inside a Loop."}],unsupported_block_ancestors:[]}}},usage:{count:12,last_used:1767744e3},dependencies:{all_met:!0,items:[]},tags:[]},SALESFORCE:{type:"app",code:"SALESFORCE",name:"Salesforce",connected:!1,required_tier:pD.PRO_ELITE,details:{icon:Sh,description:"Salesforce is a market-leading CRM platform that helps businesses manage customer relationships, streamline workflows, and provide data-driven insights. It offers a suite of sales, marketing, service, and other tools to help businesses grow and collaborate",short_description:"Elite CRM platformm",primary_color:"#009ee0",taxonomies:{categories:[],collections:["app-integrations"],tags:["crm","sales","marketing","service"]},external_url:"https://automatorplugin.com/integration/salesforce/"},tokens:{},items:{action:{SALESFORCE_CREATE_CONTACT:{type:"action",code:"SALESFORCE_CREATE_CONTACT",is_deprecated:!1,has_tests:!1,has_status_toggle:!0,sentence:{short:"Add {{a contact}} to a {{campaign}}",dynamic:"Add {{a contact:SALESFORCE_META}} to a {{campaign:SALESFORCE_META}}"},description:null,required_tier:pD.PRO_ELITE,requires_user_data:!1,url_support:"https://automatorplugin.com/integration/salesforce/",dependencies:{all_met:!1,items:[]},tags:[Sm.PRO_ELITE,Sm.LOCKED]}}},usage:{count:10,last_used:0x695ef380},dependencies:{all_met:!1,items:[{type:kv.LICENSE,id:kE.REQUIRES_PRO_ELITE_NOT_INSTALLED,scenario_id:kE.REQUIRES_PRO_ELITE_NOT_INSTALLED,name:"Uncanny Automator Pro with Elite license",description:"This action requires Uncanny Automator Pro with Elite license to be installed.",is_met:!1,is_disabled:!1,dependencies:[],tags:[{scenario_id:kC.LICENSE,label:"License",icon:"badge-check"}],cta:{type:kh.LINK_EXTERNAL,label:"Get Automator Pro Elite",url:"https://uncannyautomator.com/pricing/"}},{id:"salesforce-account",type:kv.ACCOUNT,scenario_id:k_.APP,name:"Salesforce account",description:"Connect your Salesforce account to use Salesforce in your recipes.",icon:Sh,is_met:!0,is_disabled:!1,dependencies:[],tags:[{scenario_id:kC.ACCOUNT,label:"Account",icon:"user"}],cta:{type:kh.LINK_OPEN_AND_WAIT,label:"Connect Salesforce account",url:"https://localhost/wp-admin/edit.php?post_type=uo-recipe&page=uncanny-automator-config&tab=premium-integrations&integration=salesforce"}}]},tags:[Sm.PRO_ELITE,Sm.LOCKED],block_modifiers:{}}},Sy={WP:{type:"built-in",code:"WP",name:"WordPress Core",required_tier:pD.LITE,details:{icon:Sg,description:"WordPress is a free open-course content management system (CMS) that powers more than 60 million websites. WordPress uses a plugin architecture to extend the features and functionality of a website. Uncanny Automator requires WordPress. WordPress Core triggers let you run custom actions when posts or created or updated, and actions even let you create or update posts automatically.",short_description:"Many core triggers and actions that let you automate your WordPress site.",primary_color:"#23282d",taxonomies:{categories:[],collections:[],tags:["wordpress","cms","automation"]},external_url:"https://automatorplugin.com/integration/wordpress-core/"},tokens:{},items:{trigger:{WP_USER_POST_PUBLISHED:{type:"trigger",code:"WP_USER_POST_PUBLISHED",is_deprecated:!1,has_tests:!1,has_status_toggle:!0,sentence:{short:"A user publishes a post",dynamic:"A user publishes a {{type of post:WPPOSTTYPES}}"},description:null,required_tier:pD.LITE,requires_user_data:!0,url_support:"https://automatorplugin.com/integration/wordpress-core/",dependencies:{all_met:!0,items:[]},tags:[]}}},usage:{count:18,last_used:0x69604500},dependencies:{all_met:!0,items:[]},tags:[],block_modifiers:{}}};({...Sy.WP,items:{trigger:{...Sy.WP.items.trigger,WP_ANON_POST_VIEWED:{...Sy.WP.items.trigger.WP_USER_POST_PUBLISHED,code:"WP_ANON_POST_VIEWED",sentence:{short:"A post is viewed",dynamic:"{{A post:WPPOST}} is viewed"},requires_user_data:!1}}}});let Sb=`data:image/svg+xml;utf8,${encodeURIComponent('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64"><defs><style>.cls-1{fill:none;}.cls-2{fill:#0790e8;}.cls-3{fill:#fff;}</style></defs><title>General icon - Uncanny Automator</title><g id="Transparent_layer" data-name="Transparent layer"><rect class="cls-1" width="64" height="64"/></g><g id="Background"><g id="Layer_2" data-name="Layer 2"><rect class="cls-2" width="64" height="64" rx="8"/></g></g><g id="General"><path class="cls-3" d="M36,29.37h9.15a2.47,2.47,0,0,1,2.38,1.7A2.5,2.5,0,0,1,46.87,34l-21,18.37a2.62,2.62,0,0,1-4.14-3L28,34.62H18.81a2.61,2.61,0,0,1-2.38-1.69A2.65,2.65,0,0,1,17.16,30l21-18.37a2.62,2.62,0,0,1,4.14,3Z"/></g></svg>')}`,Sv={WP:{type:"built-in",code:"WP",name:"WordPress Core",required_tier:pD.LITE,details:{icon:Sg,description:"WordPress core loop filters limit which users / posts / records the loop iterates over.",short_description:"Loop filters for WordPress users, posts, and meta.",primary_color:"#23282d",taxonomies:{categories:[],collections:[],tags:["wordpress","loop-filter"]},external_url:"https://automatorplugin.com/integration/wordpress-core/"},tokens:{},items:{},block_modifiers:{loop_filter:{WP_USER_HAS_ROLE:{type:"loop_filter",code:"WP_USER_HAS_ROLE",is_deprecated:!1,has_tests:!1,sentence:{short:"A user has a role",dynamic:"User {{has:CRITERIA}} {{a specific role:WP_USER_HAS_ROLE}}"},description:"Iterate the users that match (or don't match) a specific role.",required_tier:pD.PRO_BASIC,requires_user_data:!0,url_support:"https://automatorplugin.com/integration/wordpress-core/",dependencies:{all_met:!0,items:[]},tags:[]},WP_USER_HAS_META:{type:"loop_filter",code:"WP_USER_HAS_META",is_deprecated:!1,has_tests:!1,sentence:{short:"A user has user meta",dynamic:"User has {{user meta:META_KEY}} {{matching:CRITERIA}} {{a value:META_VALUE}}"},description:"Iterate the users whose user meta matches a specific value.",required_tier:pD.PRO_BASIC,requires_user_data:!0,url_support:"https://automatorplugin.com/integration/wordpress-core/",dependencies:{all_met:!0,items:[]},tags:[]}}},usage:{count:19,last_used:0x69619680},dependencies:{all_met:!0,items:[]},tags:[]}};pD.PRO_BASIC,kP.BLOCK;let S_={GEN:{type:"built-in",code:"GEN",name:"General",required_tier:pD.LITE,details:{icon:Sb,description:"General-purpose filter conditions used across recipes.",short_description:"General-purpose conditions.",primary_color:"#23282d",taxonomies:{categories:[],collections:[],tags:["general","conditions"]},external_url:"https://automatorplugin.com/integration/general/"},tokens:{},items:{},block_modifiers:{filter_condition:{TOKEN_MEETS_CONDITION:{type:"filter_condition",code:"TOKEN_MEETS_CONDITION",is_deprecated:!1,has_tests:!1,sentence:{short:"A token meets a condition",dynamic:"{{A token:TOKEN}} {{matches:CRITERIA}} {{a value:VALUE}}"},description:"Compares any token against a value using a configurable criteria.",required_tier:pD.PRO_BASIC,requires_user_data:!1,url_support:"https://automatorplugin.com/integration/general/",dependencies:{all_met:!0,items:[]},tags:[]}}},usage:{count:18,last_used:0x6962e800},dependencies:{all_met:!0,items:[]},tags:[]}};function Sw(e,t,i,a=pD.LITE){return{type:i,code:e,name:t,required_tier:a,details:{icon:Si.details.icon,description:`Automate ${t} in recipes.`,short_description:`${t} automation.`,primary_color:"#0790e8",taxonomies:{categories:[],collections:[],tags:[]},external_url:`https://automatorplugin.com/integration/${e.toLowerCase()}/`},tokens:{},items:{action:{},trigger:{}},block_modifiers:{}}}pD.LITE,pD.LITE,kP.BLOCK,pD.PRO_BASIC,pD.PRO_BASIC,kP.BLOCK,pD.LITE,pD.LITE,kv.INSTALLABLE,kx.WP_ORG,kC.INSTALLABLE,kh.LINK_EXTERNAL,Sm.LOCKED,kv.INSTALLABLE,kx.WP_ORG,kC.INSTALLABLE,kh.FETCH,pD.LITE,pD.LITE,kv.ACCOUNT,k_.APP,kC.ACCOUNT,kh.LINK_EXTERNAL,Sm.LOCKED,kv.ACCOUNT,k_.APP,kC.ACCOUNT,kh.LINK_OPEN_AND_WAIT,Sw("ACFWC","Advanced Coupons","plugin"),Sw("ACTIVE_CAMPAIGN","ActiveCampaign","app"),Sw("AIRTABLE","Airtable","built-in"),Sw("CF7","Contact Form 7","plugin"),Sw("FI","Formidable Forms","plugin"),Sw("FLSUPPORT","Fluent Support","plugin"),Sw("GH","Groundhogg","plugin"),Sw("GIVEWP","GiveWP","plugin"),Sw("GP","GamiPress","plugin"),Sw("H5P","H5P","plugin",pD.PRO_BASIC),Sw("HT_KB","Heroic Knowledge Base","plugin"),Sw("MAILCHIMP","Mailchimp","app"),Sw("RC","Restrict Content Pro","plugin"),Sw("TUTORLMS","Tutor LMS","plugin"),Sw("TWILIO","Twilio","app"),Sw("UM","Ultimate Member","plugin"),Sw("UNCANNYCODE","Uncanny Codes","plugin"),Sw("USERFEEDBACK","UserFeedback","plugin"),Eu.TOKEN_HINT,k8.FIELD_VALUE,Eu.TOKEN_HINT,k8.MAY_BE_EMPTY;let Sx={code:"WP:USER_META",name:"User meta",data_type:EA.TEXT,requires_user_data:!0,tags:[],config:{fields:[{option_code:"meta_key",input_type:kU.TEXT,label:"Meta key",required:!0,description:"The user meta key whose value this token resolves to.",supports_tokens:!0}],id_template:"WP:USER_META:{{meta_key}}",name_template:"User meta: {{Meta key:meta_key}}"}};EA.EMAIL;let Sk=["integrations","all"];async function SE(){return d4.DEV.RETURN_MOCK_DATA?(await new Promise(e=>setTimeout(e,d4.DEV.MOCK_DELAY_MS)),EG.parse(Sa)):await dV({endpoint:"integrations/get",responseSchema:EG,method:"GET",useEnvelope:!1})}let SS={queryKey:Sk,queryFn:SE,staleTime:1/0};async function SC(){return dW.fetchQuery({queryKey:Sk,queryFn:SE,staleTime:1/0})}let ST={FLAT:"flat",CIRCLE:"circle"},SI=rT(ST),SD={XS:"xs",SM:"sm",MD:"md",LG:"lg",XL:"xl"},SA=rT(SD);var S$=a(7835),SO=a.n(S$),SR=function(e,t,i,a){var n,o=arguments.length,r=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(r=(o<3?n(r):o>3?n(t,i,r):n(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r};let SM=class extends ld{constructor(){super(...arguments),this.size=SD.MD,this.variant=ST.FLAT,this.integrationsController=new vE(this,{...SS,enabled:!1})}static{this.styles=sf`${sm(SO())}`}willUpdate(e){if(lQ(this,"size",SA,e,"uap-d-integrations-icon"),lQ(this,"variant",SI,e,"uap-d-integrations-icon"),e.has("code")){let e=rK(this.code)&&!rY(this.code);this.integrationsController.options.enabled!==e&&this.integrationsController.setOptions({enabled:e})}}render(){if(rY(this.code))return;let{status:e,data:t,error:i,isLoading:a,isFetching:n,isError:o}=this.integrationsController.result;if(a)return this.templatePlaceholder();if(o)return d4.DEV.SHOW_CONSOLE_MESSAGES&&console.error(`Error fetching integrations for icon (integration: ${this.code}):`,i),this.templateError();if("success"===e&&t){let e=t[this.code];return e?s1` <div class="icon" size=${this.size} variant=${this.variant} > <img src="${e.details.icon}" alt="${e.name}" /> </div> `:this.templateError()}if("pending"===e||n&&!t)return this.templatePlaceholder()}templatePlaceholder(){return s1` <div class="icon" size=${this.size} variant=${this.variant} > <uas-skeleton variant="circle" width="100%" height="100%" ></uas-skeleton> </div> `}templateError(){return s1` <div class="icon icon--error" size=${this.size} variant=${this.variant} > <uas-icon code="circle-exclamation"></uas-icon> </div> `}};SR([l0({type:String})],SM.prototype,"code",void 0),SR([l0({type:String})],SM.prototype,"size",void 0),SR([l0({type:String})],SM.prototype,"variant",void 0),SM=SR([lJ("uap-d-integrations-icon")],SM);var SL=a(2657),SN=a.n(SL),SP=function(e,t,i,a){var n,o=arguments.length,r=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(r=(o<3?n(r):o>3?n(t,i,r):n(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r};let Sz=class extends ld{constructor(){super(...arguments),this.noIcon=!1,this.integrationsController=new vE(this,{...SS,enabled:!1})}static{this.styles=sf`${sm(SN())}`}willUpdate(e){if(e.has("code")){let e=rK(this.code)&&!rY(this.code);this.integrationsController.options.enabled!==e&&this.integrationsController.setOptions({enabled:e})}}render(){if(rY(this.code))return;let{status:e,data:t,error:i,isLoading:a,isFetching:n,isError:o}=this.integrationsController.result;if(a)return this.templatePlaceholder();if(o)return d4.DEV.SHOW_CONSOLE_MESSAGES&&console.error(`Error fetching integrations for icon (integration: ${this.code}):`,i),this.templateError();if("success"===e&&t){let e=t[this.code];return e?s1` <div class="label"> ${!this.noIcon?s1`<uap-d-integrations-icon code="${this.code}" size="xs"></uap-d-integrations-icon>`:""} ${e.name} </div> `:this.templateError()}if("pending"===e||n&&!t)return this.templatePlaceholder()}templatePlaceholder(){return this.noIcon?s1` <div class="label"> <uas-skeleton width="10em"></uas-skeleton> </div> `:s1` <div class="label"> <uas-skeleton width="1em" height="1em"></uas-skeleton> <uas-skeleton width="10em"></uas-skeleton> </div> `}templateError(){return s1` <div class="label label--error"> ${!this.noIcon?s1`<uas-icon code="circle-exclamation"></uas-icon>`:""} ${(0,lX.__)("Integration not found","uncanny-automator")} </div> `}};SP([l0({type:String})],Sz.prototype,"code",void 0),SP([l0({type:Boolean,attribute:"no-icon"})],Sz.prototype,"noIcon",void 0),Sz=SP([lJ("uap-d-integrations-name")],Sz);let SU=new Set(["1","true","on","yes"]),SF={TEXT:"text",PLACEHOLDER:"placeholder",SHORTCODE:"shortcode"};rT(SF),rv("kind",[rg({kind:rT([SF.TEXT]),text:oR()}),rg({kind:rT([SF.PLACEHOLDER]),label:oR(),fieldCode:oR().optional(),groupCode:oR().optional()}),rg({kind:rT([SF.SHORTCODE]),raw:oR()})]);let Sj=/\{\{(.*?)(?:\:(.*?)(?:\:(.*?))?)?\}\}/gm,SB=/\[[a-z0-9_]+(?:\s+[\w-]+=(?:"[^"]*"|'[^']*'|\S+))*\s*\/?\]/gi;function SH(e){let t;if(""===e)return[];let i=[],a=new RegExp(SB.source,SB.flags),n=0;for(;null!==(t=a.exec(e));){var o;t.index>n&&i.push(...SV(e.slice(n,t.index))),i.push((o=t[0],{kind:SF.SHORTCODE,raw:o})),n=a.lastIndex}return n<e.length&&i.push(...SV(e.slice(n))),i}function SV(e){let t,i=[],a=new RegExp(Sj.source,Sj.flags),n=0;for(;null!==(t=a.exec(e));)t.index>n&&i.push(Sq(e.slice(n,t.index))),i.push(function(e,t,i){let a={kind:SF.PLACEHOLDER,label:e??""};return void 0!==t&&""!==t&&(a.fieldCode=t),void 0!==i&&""!==i&&(a.groupCode=i),a}(t[1],t[2],t[3])),n=a.lastIndex;return n<e.length&&i.push(Sq(e.slice(n))),i}function Sq(e){return{kind:SF.TEXT,text:e}}let SZ={TEXT:"text",TOKEN:"token"};function SW(e){if("string"!=typeof e||""===e)return[];let t=lH(e);if(0===t.length)return[{kind:SZ.TEXT,text:e}];let i=[],a=0;for(let n of t){let t=`{{${n}}}`,o=e.indexOf(t,a);if(-1===o)break;o>a&&i.push({kind:SZ.TEXT,text:e.slice(a,o)}),i.push({kind:SZ.TOKEN,code:n}),a=o+t.length}return a<e.length&&i.push({kind:SZ.TEXT,text:e.slice(a)}),i}rT(SZ),rv("kind",[rg({kind:rT([SZ.TEXT]),text:oR()}),rg({kind:rT([SZ.TOKEN]),code:oR()})]);let SG=rg({when:rp(rg({field:oR().min(1),equals:ry([oR(),o5(),re()])})).min(1),template:oR().min(1)}),SK=rg({default:oR().min(1),variants:rp(SG).optional()});rg({fields:kK,sentence:SK});let SY={INTEGRATION:"integration",ITEM:kP.ITEM,BLOCK:kP.BLOCK},SQ=rT(SY),SX={FRAME:"frame",FAN_OUT:"fan_out",DEFERRED:"deferred"},SJ=rT(SX),S1=SX.FRAME,S0={LEFT:"left",RIGHT:"right",BOTTOM:"bottom"},S2=rT(S0),S3=rp(rg({entity_type:SQ,entity_code:oR(),reason:oR()}).readonly()).readonly(),S4=rg({path_code:oR().min(1).refine(e=>e===e.toUpperCase(),{error:"Path `path_code` must be in uppercase."}),name:oR().min(1),direction:S2,primary_color:pL,unsupported_entities:S3}).readonly(),S6=rp(rg({type:EE,integration_code:oR().min(1),code:oR().min(1),fields:k4}).readonly()).readonly(),S5=rg({id:EE,name:oR().min(1)}).readonly(),S8=rg({types:rp(S5),defaults:S6}).readonly(),S7=rg({when:rp(rg({field:oR().min(1),equals:ry([oR(),o5(),re()])})).min(1),template:oR().min(1)}).readonly(),S9=rg({default:oR().min(1),variants:rp(S7).optional()}).readonly(),Ce=rg({type:E1,name:oR().min(1),required_tier:pA,details:kp.extend({icon:ur,primary_color:pL}),supported_scopes:rp(kL),unsupported_entities:S3,required_block_ancestors:rp(k6).readonly().optional(),unsupported_block_ancestors:rp(k6).readonly().optional(),paths:rp(S4),fields:kK,layout:SJ.optional(),modifiers:S8.optional(),sentence:S9.optional(),tags:Ey,has_tests:re(),dependencies:kR}).readonly(),Ct=rE(oR(),Ce).superRefine((e,t)=>{for(let[i,a]of Object.entries(e))i!==a.type&&t.addIssue({code:"custom",path:[i,"type"],message:`The record key '${i}' must match the 'type' property ('${a.type}') of the block object. Mismatch found.`})}),Ci=[],Ca={int:EA.INTEGER,json:EA.ARRAY},Cn=rm({id:oR().min(1),name:oR(),data_type:oR(),tags:Ey.optional()}).transform(e=>({id:e.id,name:e.name,data_type:function(e){let t=Ca[e];if(void 0!==t)return t;let i=E$.safeParse(e);return i.success?i.data:EA.TEXT}(e.data_type),tags:e.tags??Ci})),Co=rg({id:o5(),name:oR(),slug:oR(),parent:o5()}).strict(),Cr=rp(Co),Cs=rp(Co.extend({client_id:o5()}).strict()),Cl=rg({categories:Cr,tags:Cr}).strict(),Cc={USABLE:"usable",UNAVAILABLE:"unavailable"};rT(Cc);let Cd=rv("status",[rg({status:rT([Cc.USABLE])}).strict(),rg({status:rT([Cc.UNAVAILABLE]),message:oR().min(1)}).strict()]),Cu=rg({code:oR().min(1),message:oR().min(1)}).strict(),Cp=rp(Cu).min(1),Ch=rg({node_type:oR().min(1),id:ry([o5(),oR()])}).strict(),Cg=rp(Cu.extend({target:Ch.nullable()})).min(1),Cm=rg({type:rT([kP.ITEM]),item_type:kL,id:o5(),integration_code:EP.shape.code,code:Eb.shape.code,is_item_on:re(),custom_name:oR().nullable().optional(),fields:k4,last_known_integration_name:oR(),tokens:rp(Cn),availability:Cd,violations:Cp.optional(),tags:Ey}),Cf=Cm.readonly(),Cy=rg({type:rT([kP.BLOCK_MODIFIER]),block_modifier_type:EE,id:ry([o5(),oR().min(1)]),integration_code:EP.shape.code,code:Eb.shape.code,custom_name:oR().nullable().optional(),fields:k4,last_known_integration_name:oR().optional(),availability:Cd,violations:Cp.optional(),tags:Ey}),Cb=Cy.readonly(),Cv=rg({type:rT([kP.BLOCK]),block_type:E1,id:ry([o5(),oR().min(1)]),fields:k4,modifiers:rp(Cb).readonly(),tokens:rp(Cn),availability:Cd,violations:Cp.optional(),tags:Ey,deferred_order:o5().int().nonnegative().optional(),loopable_token_ids:rp(oR().min(1)).readonly().optional()}).strict(),C_=Cv.extend({paths:rB(()=>rp(rg({path_code:oR().min(1),content:rp(ry([C_,Cf])).readonly()}).readonly()).readonly())}).readonly(),Cw={RECIPE_THROTTLE:"recipe_throttle",RECIPE_TOTAL_TIMES:"recipe_total_times",RECIPE_TIMES_PER_USER:"recipe_times_per_user",RECIPE_USER_TYPE:"recipe_user_type",RECIPE_CREATED_ON:"recipe_created_on",RECIPE_COMPLETED_RUNS:"recipe_completed_runs"},Cx=rT(Cw),Ck=rp(rg({code:oR().min(1),type:yX,heading:oR().min(1).optional(),message:oR().min(1)}).strict()).min(1),CE={PUBLISH:"publish",DRAFT:"draft"},CS=rT(CE),CC={REQUEST:"request",LISTEN:"listen"};rT(CC);let CT={NOT_RUN:"not_run",RUNNING:"running",PASSED:"passed",FAILED:"failed"},CI=rT(CT),CD=rg({heading:oR().min(1),content:oR().optional()}).strict(),CA=rg({status:CI,output:CD.optional(),completed_at:o5().int().positive().optional(),formatted_date:oR().optional()}).strict().superRefine((e,t)=>{let i=e.status===CT.PASSED||e.status===CT.FAILED;if(i&&void 0===e.output&&t.addIssue({code:"custom",path:["output"],message:"A terminal run result must carry its output."}),!i)for(let i of["output","completed_at","formatted_date"])void 0!==e[i]&&t.addIssue({code:"custom",path:[i],message:"Only a terminal run result may carry report fields."})}),C$=rg({id:oR().min(1),name:oR().min(1),description:oR().optional(),required:re(),button_label:oR().min(1),fields:kK,last_result:CA.refine(e=>e.status===CT.PASSED||e.status===CT.FAILED,{message:"A stored last result must be terminal."}).optional()}),CO=rv("run_mode",[C$.extend({run_mode:rT([CC.REQUEST])}).strict(),C$.extend({run_mode:rT([CC.LISTEN]),poll:rg({interval_ms:o5().int().positive(),timeout_ms:o5().int().positive()}).strict()}).strict()]),CR=rp(CO),CM={ALL:"all",ANY:"any"},CL=rT(CM),CN={ANONYMOUS:"anonymous",USER:"user"},CP=rT(CN),Cz=rg({operator:CL,triggers:rp(Cf)}),CU=Cz.readonly(),CF=rg({fields:k4}).readonly(),Cj=rg({entry:CU,run_as:CF.nullable(),content:rp(ry([C_,Cf]))}),CB=Cj.readonly(),CH=rg({recipe_id:o5(),recipe_status:CS,can_edit:re(),title:oR(),notes:oR(),categories:Cr,tags:Cr,recipe_type:CP.nullable(),miscellaneous:rg({last_modified_date_timestamp:o5(),has_run_now:re(),run_as_availability:Cd,latest_recipe_log_id:o5().nullable(),latest_run_number:o5().nullable(),url_duplicate_recipe:oH(),url_trash_recipe:oH(),url_logs:oH(),url_download_recipe:oH(),url_all_recipes:oH()}).readonly(),settings:rE(Cx,k4),violations:Cp.optional(),notices:Ck.optional(),flow:CB}),CV=CH.readonly(),Cq={WAITING:"waiting",ACTIVE:"active",PAUSED:"paused",TERMINAL_SUCCESS:"terminal_success",TERMINAL_FAILURE:"terminal_failure"},CZ=rT(Cq),CW={SUCCESS:"success",ERROR:"error",WARNING:"warning",NEUTRAL:"neutral",MUTED:"muted"},CG=rT(CW),CK={NORMAL:"normal",MUTED:"muted"},CY=rT(CK),CQ=rg({code:oR(),phase:CZ,appearance:CY,label:oR(),icon:ur,tone:CG}).strict(),CX=rp(rg({status:CQ,count:o5().int().nonnegative()}).strict()).readonly(),CJ=rg({seconds:o5().int().nonnegative(),human_readable:oR().min(1)}).strict(),C1={TEXT:"text",TEXTAREA:"textarea",CODE:"code",FILE:"file",REPEATER:"repeater"},C0=rT(C1).catch(C1.TEXT),C2=rg({code_language:oR().optional(),supports_html:re().optional()}).loose(),C3=rp(rg({type:C0,label:oR(),value:oR(),attributes:C2.optional()}).strict()).readonly(),C4=rg({run_number:o5().int().nonnegative(),status:CQ,date:oR(),result_message:oR().optional(),tokens:rE(oR(),oR()).optional(),fields:k4.optional(),properties:C3.optional(),outputs:C3.optional()}).strict(),C6={RESEND:"resend"},C5=rT(C6),C8=rg({item_log_id:oR().min(1),actions:rp(C5).readonly()}).strict(),C7=rg({status:CQ,date_started:oR(),date_ended:oR().optional(),date_elapsed:CJ.optional(),result_message:oR().optional(),runs:rp(C4).optional(),status_breakdown:CX.optional(),control:C8.optional()}).strict().refine(e=>void 0!==e.runs!=(void 0!==e.status_breakdown),{message:"Exactly one of `runs` or `status_breakdown` must be present (runs for top-level / filter-body items; status_breakdown for items inside a loop body)."}),C9=rg({iteration_index:o5().int().nonnegative(),iteration_label:oR().optional()}).strict(),Te=rg({status:CQ,date_started:oR(),date_ended:oR().optional(),date_elapsed:CJ.optional(),runs:rp(C4).readonly(),control:C8.optional()}).strict(),Tt=C9.extend({execution:Te}).strict(),Ti=rg({type:rT([kP.ITEM]),item_type:kL,id:ry([o5(),oR().min(1)]),integration_code:EP.shape.code,code:Eb.shape.code,last_known_integration_name:oR().optional(),custom_name:oR().nullable().optional(),fields:k4,execution:C7}).strict(),Ta=rg({status:CQ,result_message:oR().optional(),tokens:rE(oR(),oR()).optional(),fields:k4.optional(),status_breakdown:CX.optional(),properties:C3.optional()}).strict(),Tn=C9.extend({execution:Ta}).strict(),To=rg({type:rT([kP.BLOCK_MODIFIER]),block_modifier_type:EE,id:ry([o5(),oR().min(1)]),integration_code:EP.shape.code,code:Eb.shape.code,last_known_integration_name:oR().optional(),fields:k4,execution:Ta}).strict(),Tr=rg({elements_total:o5().int().nonnegative(),message:oR().optional(),status_breakdown:CX.optional()}).strict(),Ts={RUN_NOW:"run_now",PAUSE:"pause",RESUME:"resume",CANCEL:"cancel"},Tl=rT(Ts),Tc=rg({process_code:oR().min(1),actions:rp(Tl).readonly()}).strict(),Td=rg({status:CQ,date_started:oR().optional(),date_ended:oR().optional(),date_elapsed:CJ.optional(),date_next_process:oR().optional(),progress:Tr.optional(),control:Tc.optional(),result_message:oR().optional(),fields:k4.optional(),tokens:rE(oR(),oR()).optional(),status_breakdown:CX.optional()}).strict(),Tu=rg({status:CQ,date_started:oR(),date_ended:oR().optional(),date_elapsed:CJ.optional(),tokens:rE(oR(),oR()).optional(),fields:k4.optional(),properties:C3.optional()}).strict(),Tp=rg({status:CQ}).strict(),Th=rg({type:rT([kP.BLOCK]),block_type:E1,id:ry([o5(),oR().min(1)]),fields:k4,modifiers:rp(To).readonly(),execution:Td,deferred_order:o5().int().nonnegative().optional()}).strict(),Tg=rB(()=>rg({path_code:oR().min(1),content:rp(ry([Ti,Tf])).readonly(),execution:Tp.optional()}).strict()),Tm=C9.extend({execution:Tu}).strict(),Tf=rB(()=>Th.extend({paths:rp(Tg).min(1).readonly()})),Ty=ry([Ti,Tf]),Tb=ry([Ti,Tf,To]),Tv=rg({code:oR(),message:oR()}).strict(),T_=rT({ALL:"all",ANY:"any"}),Tw=rg({status:CQ,date_started:oR(),date_ended:oR().optional(),errors:rp(Tv).readonly().optional()}).strict(),Tx=rg({operator:T_,triggers:rp(Ti).readonly()}).strict(),Tk=rg({entry:Tx,content:rp(Ty).readonly()}).strict(),TE=rg({log_id:o5().int().positive(),recipe_id:o5().int().positive(),recipe_title:oR(),run_number:o5().int().positive(),can_delete:re(),recipe_edit_url:oR(),triggered_by_user:rg({id:o5().int().positive(),display_name:oR(),avatar_url:oR()}).strict().nullish(),execution:Tw,flow:Tk}).strict(),TS=rg({recipe_id:o5().int().positive(),run_number:o5().int().positive(),log_id:o5().int().positive()}).strict(),TC=rg({id:o5().int().positive(),title:oR(),edit_url:oR()}).strict(),TT=rg({id:o5().int().min(0),name:oR(),email:oR(),avatar_url:oR(),edit_url:oR()}).strict(),TI=rg({id:o5().int().positive(),title:oR(),integration:oR().min(1)}).strict(),TD=oR().regex(/^\d+$/),TA=rg({id:oR().min(1),run:TS,recipe:TC,user:TT,status:CQ,date:oR(),date_short:oR().min(1),date_relative:oR().min(1).nullable(),date_gmt:n$(oL,{offset:!0}),integrations:rp(oR().min(1))}).strict(),T$=TA.extend({can_delete:re(),is_replay:re()}).strict(),TO=TA.extend({item:TI,recipe_status:CQ}).strict(),TR=TA.extend({item:TI,recipe_status:CQ,notes:oR()}).strict(),TM=TA.extend({item:TI,item_log_id:TD,reason:oR(),detail:oR().min(1),http_status:oR(),endpoint:oR(),resent_count:o5().int().min(0),can_resend:re()}).strict(),TL=rg({code:oR(),name:oR(),account:oR()}).strict(),TN=rg({name:oR(),summary:oR(),changes:o5().int().min(0),items:rp(oR()).max(5)}).strict(),TP=TS.extend({recipe_title:oR()}).strict(),Tz=rg({id:oR().regex(/^\d+$/),app:TL,event:TN,status:CQ,attempts:o5().int().min(0),error:oR(),date:oR(),date_short:oR().min(1),date_gmt:n$(oL,{offset:!0}),runs:rp(TP).max(10),runs_total:o5().int().nonnegative()}).strict(),TU=rg({code:oR().min(1),name:oR()}).strict(),TF=rg({value:oR().min(1),label:oR()}).strict(),Tj=TF.extend({value:oR().regex(/^[1-9]\d*$/)}).strict(),TB=TF.extend({value:oR().regex(/^\d+$/)}).strict(),TH=rg({recipes:rp(Tj),users:rp(TB),statuses:rp(TF),integrations:rp(TF),endpoints:rp(TF),triggers:rp(TF),actions:rp(TF),available:re()}).strict(),TV={DATE:"date",RECIPE:"recipe",USER:"user",STATUS:"status"},Tq=rT(TV),TZ={ASC:"asc",DESC:"desc"},TW=rT(TZ),TG=rg({page:o5().int().min(1),per_page:o5().int().min(1).max(100),recipe_id:o5().int().positive().optional(),user_id:o5().int().min(0).optional(),status:oR().min(1).optional(),integration:oR().min(1).optional(),endpoint:oR().min(1).optional(),item_code:oR().min(1).optional(),item_log_id:TD.optional(),date_from:nO(oN,void 0).optional(),date_to:nO(oN,void 0).optional(),search:oR().min(1).optional(),orderby:Tq.optional(),order:TW.optional()}).strict(),TK=rg({id:o5().int(),title:oR(),description:oR(),tags:Ey,integration_codes:rp(oR()),dependencies_met:re(),priority:o5().int(),blocks:rp(oR())}).strict(),TY=rg({id:o5().int(),name:oR(),slug:oR(),count:o5().int(),template_ids:rp(o5().int())}).strict(),TQ=rg({templates:rp(TK),categories:rp(TY)}).strict(),TX=rp(rg({id:o5().int().positive(),title:oR(),runs:o5().int().min(1),links:rg({edit:bi,logs:bi}).strict()}).strict()),TJ={DIAGRAM:"diagram",LIST:"list"},T1=rT(TJ),T0=rg({view:T1.nullable(),default_view:T1,diagram_intro_dismissed:re()}).strict(),T2=oR().regex(/^temp-/,{message:"Temporary ID must start with temp-"}).brand();function T3(e){return"string"==typeof e&&e.startsWith("temp-")}let T4=Cm.extend({id:T2});function T6(e,t){return"object"==typeof e&&null!==e&&"type"in e&&e.type===t}let T5=ry([Cf,T4]);function T8(e){return T6(e,kP.ITEM)}function T7(e,t){return T8(e)&&e.item_type===t}let T9=Cy.extend({id:T2}),Ie=ry([Cb,T9]);function It(e){return T6(e,kP.BLOCK_MODIFIER)}let Ii=rB(()=>rp(ry([Io,T5])).readonly()),Ia=rp(rB(()=>rg({path_code:oR().min(1),content:Ii}).readonly())).readonly(),In=Cv.extend({id:T2,modifiers:rp(Ie).readonly()}).extend({paths:Ia}).readonly(),Io=ry([Cv.extend({modifiers:rp(Ie).readonly(),paths:Ia}).readonly(),In]);function Ir(e){return T6(e,kP.BLOCK)}let Is=ry([T5,Ie,Io]),Il=CH.extend({flow:Cj.extend({entry:Cz.extend({triggers:rp(T5).readonly()}),content:rp(ry([T5,Io])).readonly()}).readonly()}).readonly(),Ic={SAVED:"saved",SAVING:"saving",ERROR:"error"};rT(Ic);let Id=rg({recipeSave:re().optional()}),Iu=rg({recipe:CV}).strict(),Ip={type:EX,name:"Filter",supported_scopes:[kM.ACTION],required_tier:pD.PRO_BASIC,unsupported_entities:[],details:{icon:"code-merge",primary_color:pM.INDIGO,description:"Add conditional logic to your recipes with filters. With the ability to run actions only if specific conditions are met, recipes become much more powerful!",short_description:"Add conditional logic to your recipes with filters.",taxonomies:{categories:[],collections:[],tags:["filter","conditional","logic","decision","branching"]},external_url:"https://automatorplugin.com/knowledge-base/action-filters-conditions/"},fields:[{option_code:"CONDITION_MATCH_MODE",input_type:"radio",label:"Condition match mode",description:"Choose whether all conditions must be met, or if meeting any single condition is sufficient.",required:!0,default_value:"any",show_label_in_sentence:!1,options:[{value:"any",text:"Any"},{value:"all",text:"All"}]}],modifiers:{types:[{id:Ex,name:"Condition"}],defaults:[]},sentence:{default:"Continue when {{any:CONDITION_MATCH_MODE}} of the conditions match"},layout:SX.FAN_OUT,paths:[{path_code:"FILTER-CONDITIONS-MET",name:"Conditions met",direction:S0.BOTTOM,primary_color:pM.GREEN,unsupported_entities:[]},{path_code:"FILTER-CONDITIONS-NOT-MET",name:"Conditions not met",direction:S0.RIGHT,primary_color:pM.RED,unsupported_entities:[]}],tags:[{type:Eu.LICENSE,scenario_id:y9.PRO_BASIC,label:"Pro",color:"success",helper:"You must have a valid Pro Basic license or higher to use Filter blocks."}],has_tests:!1,dependencies:{all_met:!0,items:[{id:kE.REQUIRES_PRO_BASIC_NOT_INSTALLED,type:kv.LICENSE,scenario_id:kE.REQUIRES_PRO_BASIC_NOT_INSTALLED,name:"Uncanny Automator Pro",description:`Add **conditional logic** to your recipes with filters. With the ability to **run actions only if specific conditions are met**, recipes become much more powerful! Here are a few examples of what is possible with filters: - In recipes with a form submission trigger, **run different actions depending on the options the user selected on the form**. - In recipes with a purchase trigger, **run different actions depending on which product the user purchased**. - In recipes with a course or group enrollment trigger, **run different actions depending on which course or group the user enrolled in**. You can also use filters to give recipes additional "intelligence" about when actions should run, such as: - Whether the user has a **specific role or membership level**. - Whether the user is **enrolled in a specific course or group**. - Whether the user has **specific user meta values**.`,tags:[{scenario_id:kC.LICENSE,label:"License",icon:"badge-check"}],is_met:!0,is_disabled:!1,dependencies:[],cta:{type:"link-external",label:"Unlock Filter blocks",url:"https://automatorplugin.com/pricing/"}}]}},Ih={type:EJ,name:"Loop",supported_scopes:[kM.ACTION],required_tier:pD.PRO_BASIC,required_block_ancestors:[],unsupported_block_ancestors:[],unsupported_entities:[{entity_type:SY.BLOCK,entity_code:EJ,reason:"It's not possible to add a Loop block inside another Loop block."}],details:{icon:"repeat",primary_color:pM.BLUE,description:"Add bulk processing capabilities to your recipes with Loops. With the ability to run actions on sets of users, posts, or data, you can automate complex site management tasks efficiently.",short_description:"Add bulk processing capabilities to your recipes with Loops.",taxonomies:{categories:[],collections:[],tags:["loop","iterate","repeat","cycle","sequence"]},external_url:"https://automatorplugin.com/introducing-loops/"},fields:[{option_code:"LOOP_TYPE",input_type:"radio",label:"Loop type",description:"Select the kind of data this loop will repeat through. Each option defines the items that will be processed one by one inside the loop.",required:!0,default_value:"users",show_label_in_sentence:!1,options:[{value:"users",text:"Users"},{value:"posts",text:"Posts"},{value:"token",text:"Token"}],relevant_tokens:[]},{option_code:"LOOP_TOKEN",input_type:"text",label:"Token",description:"Enter the loopable token that contains the data you want to iterate through.",required:!0,supports_tokens:!0,only_loopable_tokens:!0,show_label_in_sentence:!1,dynamic_visibility:{default_state:"hidden",visibility_rules:[{operator:"AND",rule_conditions:[{option_code:"LOOP_TYPE",compare:"==",value:"token"}],resulting_visibility:"show"}]}}],modifiers:{types:[{id:Ek,name:"Filter"}],defaults:[{type:Ek,integration_code:"WP",code:"WP_USER_HAS_ROLE",fields:{CRITERIA:{type:"select",value:"does-not-have",readable:"does not have",miscellaneous:{label:"Criteria"}},WP_USER_HAS_ROLE:{type:"select",value:"administrator",readable:"Administrator",miscellaneous:{label:"Role"}}}}]},sentence:{default:"Loop through {{the items:LOOP_TYPE}}",variants:[{when:[{field:"LOOP_TYPE",equals:"token"}],template:"Loop through {{a token:LOOP_TOKEN}}"}]},layout:SX.FRAME,paths:[{path_code:"LOOP-ITERATION-COMPLETED",name:(0,b4.escapeHTML)((0,lX._x)("Iteration completed","Recipe Block Loop","uncanny-automator")),direction:S0.BOTTOM,primary_color:pM.GREEN,unsupported_entities:[]}],tags:[{type:Eu.LICENSE,scenario_id:y9.PRO_BASIC,label:"Pro",color:"success",helper:"You must have a valid Pro Basic license or higher to use Loop blocks."},{type:Eu.AVAILABILITY,scenario_id:Er.LOCKED,label:"Locked",icon:"lock"}],has_tests:!1,dependencies:{all_met:!0,items:[{id:kE.REQUIRES_PRO_BASIC_NOT_INSTALLED,type:kv.LICENSE,scenario_id:kE.REQUIRES_PRO_BASIC_NOT_INSTALLED,name:"Uncanny Automator Pro",description:`Add **bulk processing** capabilities to your recipes with Loops. With the ability to **run actions on sets of users, posts, or data**, you can automate complex site management tasks efficiently. Here are a few examples of what is possible with Loops: - **User Loops:** Perform bulk actions on **every user that matches specific criteria**, such as sending coupons to everyone who purchased a specific product. - **Post Loops:** Update or export **all blog posts, products, or courses** that belong to a specific category or author. - **Token Loops:** Iterate through data arrays to check **a user's past orders, completed courses, or active subscriptions**. You can also use Loops to handle "housekeeping" and data management, such as: - Updating roles for **users with specific membership levels**. - Generating AI content for **posts missing specific meta values**. - Triggering workflows based on **historical purchase data**.`,tags:[{scenario_id:kC.LICENSE,label:"License",icon:"badge-check"}],is_met:!0,is_disabled:!1,dependencies:[],cta:{type:"link-external",label:(0,b4.escapeHTML)((0,lX._x)("Unlock Loop blocks","Recipe Block Loop","uncanny-automator")),url:"https://automatorplugin.com/pricing/"}}]}},Ig={type:EQ,name:"Queue",supported_scopes:[kM.ACTION],required_tier:pD.PRO_BASIC,unsupported_entities:[{entity_type:SY.BLOCK,entity_code:EQ,reason:"It's not possible to add a Delay block inside another Delay block."}],details:{icon:"stopwatch",primary_color:pM.PURPLE,description:"Pause the execution of subsequent actions for a specified interval so you can schedule them to run only after that time has passed.",short_description:"Pause actions, scheduling them to run after a set delay.",taxonomies:{categories:[],collections:[],tags:["delay","schedule","defer","queue","wait"]},external_url:"https://automatorplugin.com/knowledge-base/scheduled-actions/"},fields:[{option_code:"DELAY_MODE",input_type:"radio",label:"Delay mode",description:"Choose how this block schedules subsequent actions: a relative delay, an absolute date / time, or a token-driven value.",required:!0,default_value:"delay",show_label_in_sentence:!1,options:[{value:"delay",text:"Delay"},{value:"schedule",text:"Schedule"},{value:"token",text:"Use a token / custom value"}]},{option_code:"DELAY_VALUE",input_type:"int",label:"Amount",description:"How long to wait before continuing.",required:!0,default_value:1,show_label_in_sentence:!1,dynamic_visibility:{default_state:"hidden",visibility_rules:[{operator:"AND",rule_conditions:[{option_code:"DELAY_MODE",compare:"==",value:"delay"}],resulting_visibility:"show"}]}},{option_code:"DELAY_UNIT",input_type:"select",label:"Unit",description:"The time unit applied to the amount above.",required:!0,default_value:"minutes",show_label_in_sentence:!1,options:[{value:"minutes",text:"Minutes"},{value:"hours",text:"Hours"},{value:"days",text:"Days"},{value:"weeks",text:"Weeks"}],dynamic_visibility:{default_state:"hidden",visibility_rules:[{operator:"AND",rule_conditions:[{option_code:"DELAY_MODE",compare:"==",value:"delay"}],resulting_visibility:"show"}]}},{option_code:"SCHEDULE_DATE",input_type:"date",label:"Date",description:"The date to run subsequent actions on, in your site's timezone.",required:!0,show_label_in_sentence:!1,dynamic_visibility:{default_state:"hidden",visibility_rules:[{operator:"AND",rule_conditions:[{option_code:"DELAY_MODE",compare:"==",value:"schedule"}],resulting_visibility:"show"}]}},{option_code:"SCHEDULE_TIME",input_type:"time",label:"Time",description:"The time of day, in your site's timezone.",required:!0,show_label_in_sentence:!1,dynamic_visibility:{default_state:"hidden",visibility_rules:[{operator:"AND",rule_conditions:[{option_code:"DELAY_MODE",compare:"==",value:"schedule"}],resulting_visibility:"show"}]}},{option_code:"DELAY_TOKEN",input_type:"text",label:"Token or custom value",description:'Use **tokens** and/or text to enter any supported format. Examples: "Friday at 1pm", "November 9", "2 hours", Unix timestamps and [more](https://automatorplugin.com/knowledge-base/how-to-use-custom-scheduling-in-wordpress-automations).',required:!0,supports_tokens:!0,show_label_in_sentence:!1,dynamic_visibility:{default_state:"hidden",visibility_rules:[{operator:"AND",rule_conditions:[{option_code:"DELAY_MODE",compare:"==",value:"token"}],resulting_visibility:"show"}]}}],sentence:{default:"Run the actions inside later",variants:[{when:[{field:"DELAY_MODE",equals:"delay"}],template:"Wait {{0:DELAY_VALUE}} {{minutes:DELAY_UNIT}} after triggers complete"},{when:[{field:"DELAY_MODE",equals:"schedule"}],template:"Wait until {{a date:SCHEDULE_DATE}} at {{a time:SCHEDULE_TIME}}"},{when:[{field:"DELAY_MODE",equals:"token"}],template:"Wait for {{some time:DELAY_TOKEN}}"}]},layout:SX.DEFERRED,paths:[{path_code:"DELAY-COMPLETED",name:"Completed",direction:S0.BOTTOM,primary_color:pM.GREEN,unsupported_entities:[]}],tags:[{type:Eu.LICENSE,scenario_id:y9.PRO_BASIC,label:"Pro",color:"success",helper:"You must have a valid Pro Basic license or higher to use Delay blocks."},{type:Eu.AVAILABILITY,scenario_id:Er.LOCKED,label:"Locked",icon:"lock"}],has_tests:!1,dependencies:{all_met:!1,items:[{id:kE.REQUIRES_PRO_BASIC_NOT_INSTALLED,type:kv.LICENSE,scenario_id:kE.REQUIRES_PRO_BASIC_NOT_INSTALLED,name:"Uncanny Automator Pro",description:`Add **delayed** or **scheduled actions** to your recipes. With the ability to delay or schedule actions, you can run an action a specific number of **minutes, hours, or days after a user completes the recipe's triggers**. Here are a few examples of what is possible with delayed and scheduled actions: - When a new user registers, **send them an onboarding drip campaign over a period of days or weeks** to help them get up to speed with minimal support. - When a user purchases a product, **send them an email a week later to ask them to leave a review**. - When a user registers for an event, **send them a reminder before the event**. - When a user enrolls in a course or event, **send them supporting materials at regular intervals** during the course or before or after the event. You can also use the scheduled recipe feature to run recipes at regular intervals to do things like: - Send **email reminders** to users that haven't completed a key activity. - **Log data for a report** in Google Sheets, Airtable or Notion. - Perform **scheduled maintenance** on a site.`,tags:[{scenario_id:kC.LICENSE,label:"License",icon:"badge-check"}],is_met:!1,is_disabled:!1,dependencies:[],cta:{type:"link-external",label:(0,b4.escapeHTML)((0,lX._x)("Unlock Delay & Schedule blocks","Recipe Block Delay","uncanny-automator")),url:"https://automatorplugin.com/pricing/"}}]}},Im={[EX]:Ip,[EJ]:Ih,[EQ]:Ig};({...Im,[EQ]:{...Ig,layout:SX.FRAME}});let If={status:Cc.USABLE},Iy={status:Cc.UNAVAILABLE,message:"This action requires **Pro Elite** and is ignored when the recipe runs. [Upgrade your plan](https://automatorplugin.com/pricing/)."};Cc.UNAVAILABLE,Im[EJ].dependencies.items[0]?.description;let Ib={status:Cc.UNAVAILABLE,message:`To use this feature, you need Uncanny Automator Pro. This run-as setting is ignored when the recipe runs. [Upgrade to Pro](https://automatorplugin.com/pricing/)`},Iv={type:Eu.LICENSE,scenario_id:y9.PRO_BASIC,label:"Pro",color:"success",helper:"You must have a valid Pro Basic license or higher to use this item."},I_={type:Eu.LICENSE,scenario_id:y9.PRO_PLUS,label:"Pro Plus",color:"success",helper:"You must have a valid Pro Plus license or higher to use this item."},Iw={type:Eu.LICENSE,scenario_id:y9.PRO_ELITE,label:"Pro Elite",color:"success",helper:"You must have a valid Pro Elite license or higher to use this item."},Ix={code:"recipe_imported",type:yQ.WARNING,message:"Recipe imported on 2026-08-12. Please make sure to set the correct values before you take this recipe live."};yQ.INFO;let Ik="u">typeof location&&location.origin?location.origin:"https://localhost",IE={recipe_id:42,recipe_status:CE.DRAFT,can_edit:!0,title:"Empty recipe",notes:"",categories:[],tags:[],recipe_type:"user",miscellaneous:{last_modified_date_timestamp:0x68097f00,has_run_now:!1,run_as_availability:If,latest_recipe_log_id:null,latest_run_number:null,url_duplicate_recipe:`${Ik}/duplicate/42`,url_trash_recipe:`${Ik}/trash/42`,url_logs:`${Ik}/logs/42`,url_download_recipe:`${Ik}/download/42`,url_all_recipes:`${Ik}/recipes`},settings:{recipe_throttle:{},recipe_total_times:{},recipe_times_per_user:{},recipe_user_type:{USER_TYPE:{type:"text",value:"user",miscellaneous:{label:"Recipe type"}}},recipe_created_on:{CREATED_ON:{type:"text",value:"April 24, 2026",miscellaneous:{label:"Created on"}}},recipe_completed_runs:{COMPLETED_RUNS:{type:"int",value:"0",miscellaneous:{label:"Completed runs"}}}},flow:{entry:{operator:"all",triggers:[]},run_as:null,content:[]}};IE.settings,IE.miscellaneous,IE.miscellaneous.last_modified_date_timestamp,IE.flow,kP.ITEM;let IS={...IE,miscellaneous:{...IE.miscellaneous,has_run_now:!0}};IS.miscellaneous;let IC={recipe_id:123,recipe_status:CE.PUBLISH,can_edit:!0,title:"Send welcome email after purchase",notes:"Sends a welcome email when an order completes.",categories:[{id:11,name:"Store",slug:"store",parent:0},{id:14,name:"Checkout",slug:"checkout",parent:11}],tags:[{id:30,name:"Onboarding",slug:"onboarding",parent:0}],recipe_type:"user",miscellaneous:{last_modified_date_timestamp:0x65920080,has_run_now:!1,run_as_availability:If,latest_recipe_log_id:null,latest_run_number:null,url_duplicate_recipe:`${Ik}/duplicate/123`,url_trash_recipe:`${Ik}/trash/123`,url_logs:`${Ik}/logs/123`,url_download_recipe:`${Ik}/download/123`,url_all_recipes:`${Ik}/recipes`},settings:{recipe_throttle:{},recipe_total_times:{TIMES:{type:"int",value:"5",miscellaneous:{label:"Times"}}},recipe_times_per_user:{TIMES:{type:"int",value:"2",miscellaneous:{label:"Times"}}},recipe_user_type:{USER_TYPE:{type:"text",value:"user",miscellaneous:{label:"Recipe type"}}},recipe_created_on:{CREATED_ON:{type:"text",value:"January 1, 2024",miscellaneous:{label:"Created on"}}},recipe_completed_runs:{COMPLETED_RUNS:{type:"int",value:"42",miscellaneous:{label:"Completed runs"}}}},flow:{entry:{operator:"all",triggers:[{type:kP.ITEM,item_type:"trigger",id:1,integration_code:"GF",code:"ANONSUBFIELD",is_item_on:!0,fields:{ANONGFFORMS:{type:"select",value:"7",readable:"Newsletter signup",miscellaneous:{label:"Form"}},ANONSUBFIELD:{type:"select",value:"2",readable:"Email",miscellaneous:{label:"Field"}},SUBVALUE:{type:"text",value:"@example.com",miscellaneous:{label:"Value"}}},last_known_integration_name:"Gravity Forms",tokens:[{id:"1:ANONGFFORMS",name:"Form title",data_type:"text",tags:[]},{id:"1:ANONGFFORMS_ID",name:"Form ID",data_type:"integer",tags:[]},{id:"1:ANONGFFORMS_2",name:"Email",data_type:"email",tags:[]},{id:"1:ANONGFFORMS_3",name:"Name",data_type:"text",tags:[]}],availability:If,tags:[Iv]}]},run_as:{fields:{SOURCE:{type:"radio",value:"existing-user",readable:"An existing user",miscellaneous:{show_label_in_sentence:!1,label:"Run actions as"}}}},content:[{type:kP.ITEM,item_type:"action",id:2,integration_code:"EMAILS",code:"SENDEMAIL",is_item_on:!0,fields:{EMAILTO:{type:"email",value:"user@automatorplugin.com",miscellaneous:{label:"To"}},EMAILSUBJECT:{type:"text",value:"Welcome!",miscellaneous:{label:"Subject"}},EMAILBODY:{type:"textarea",value:"Thank you for your purchase.",miscellaneous:{label:"Body"}}},last_known_integration_name:"Emails",tokens:[],availability:If,tags:[]}]}},IT={recipe_id:21103,recipe_status:CE.DRAFT,can_edit:!0,title:"Complex recipe",notes:"Internal notes for the complex recipe.",categories:[{id:13,name:"E-commerce",slug:"e-commerce",parent:0}],tags:[],recipe_type:"user",miscellaneous:{last_modified_date_timestamp:0x67439880,has_run_now:!1,run_as_availability:If,latest_recipe_log_id:null,latest_run_number:null,url_duplicate_recipe:`${Ik}/duplicate/21103`,url_trash_recipe:`${Ik}/trash/21103`,url_logs:`${Ik}/logs/21103`,url_download_recipe:`${Ik}/download/21103`,url_all_recipes:`${Ik}/recipes`},settings:{recipe_throttle:{ENABLED:{type:"checkbox",value:"1",miscellaneous:{label:"Enabled"}},PER_RECIPE_OR_USER:{type:"select",value:"recipe",readable:"Per recipe",miscellaneous:{label:"Scope"}},NUMBER:{type:"int",value:"5",miscellaneous:{label:"Number"}},UNIT:{type:"select",value:"minutes",readable:"minutes",miscellaneous:{label:"Unit"}}},recipe_total_times:{TIMES:{type:"int",value:"100",miscellaneous:{label:"Times"}}},recipe_times_per_user:{TIMES:{type:"int",value:"5",miscellaneous:{label:"Times"}}},recipe_user_type:{USER_TYPE:{type:"text",value:"anonymous",miscellaneous:{label:"Recipe type"}}},recipe_created_on:{CREATED_ON:{type:"text",value:"January 1, 2024",miscellaneous:{label:"Created on"}}},recipe_completed_runs:{COMPLETED_RUNS:{type:"int",value:"0",miscellaneous:{label:"Completed runs"}}}},flow:{entry:{operator:"all",triggers:[{type:kP.ITEM,item_type:"trigger",is_item_on:!0,id:21104,integration_code:"GF",code:"ANONSUBFIELD",custom_name:"When a newsletter signup is submitted",last_known_integration_name:"Gravity Forms",fields:{ANONGFFORMS:{type:"select",value:"7",readable:"Newsletter signup",miscellaneous:{label:"Form"}},ANONSUBFIELD:{type:"select",value:"2",readable:"Email",miscellaneous:{label:"Field"}},SUBVALUE:{type:"text",value:"@example.com",miscellaneous:{label:"Value"}}},tokens:[{id:"21104:ANONGFFORMS",name:"Form title",data_type:"text",tags:[]},{id:"21104:ANONGFFORMS_ID",name:"Form ID",data_type:"integer",tags:[]},{id:"21104:ANONGFFORMS_2",name:"Email",data_type:"email",tags:[]},{id:"21104:ANONGFFORMS_3",name:"Name",data_type:"text",tags:[]}],availability:If,tags:[Iv]},{type:kP.ITEM,item_type:"trigger",is_item_on:!0,id:21115,integration_code:"WP",code:"WP_USER_POST_PUBLISHED",custom_name:"",last_known_integration_name:"WordPress Core",fields:{},tokens:[{id:"21115:POST_ID",name:"Post ID",data_type:"integer",tags:[]},{id:"21115:POST_TITLE",name:"Post title",data_type:"text",tags:[]},{id:"21115:POST_URL",name:"Post URL",data_type:"url",tags:[]}],availability:If,tags:[]},{type:kP.ITEM,item_type:"trigger",is_item_on:!0,id:21116,integration_code:"MAGIC_BUTTON",code:"WPMAGICBUTTON",custom_name:"",last_known_integration_name:"Magic Button",fields:{WPMAGICBUTTON:{type:"text",value:"21103",miscellaneous:{label:"Magic button ID"}}},tokens:[{id:"21116:MAGICBUTTON_ID",name:"Button ID",data_type:"integer",tags:[]},{id:"21116:PAGE_URL",name:"Page URL",data_type:"url",tags:[]}],availability:If,tags:[Iv]}]},run_as:{fields:{SOURCE:{type:"radio",value:"existing-user",readable:"An existing user",miscellaneous:{show_label_in_sentence:!1,label:"Run actions as"}},UNIQUE_FIELD:{type:"select",value:"email",readable:"Email",miscellaneous:{show_label_in_sentence:!1,label:"Match by"}},UNIQUE_FIELD_VALUE:{type:"text",value:"{{21104:ANONGFFORMS_2}}",miscellaneous:{show_label_in_sentence:!1,label:"Value"}},EXISTING_USER_FALLBACK:{type:"radio",value:"do-nothing",readable:"Skip the action",miscellaneous:{show_label_in_sentence:!1,label:"If the user doesn't exist"}}}},content:[{type:kP.ITEM,item_type:"action",is_item_on:!0,id:21105,integration_code:"EMAILS",code:"SENDEMAIL",custom_name:"Top-level action",last_known_integration_name:"Emails",fields:{EMAILCONTENTTYPE:{type:"select",value:"html",readable:"HTML",miscellaneous:{label:"Content type"}},EMAILFROM:{type:"email",value:"{{admin_email}}",miscellaneous:{label:"From"}},EMAILFROMNAME:{type:"text",value:"{{site_name}}",miscellaneous:{label:"From name"}},EMAILTO:{type:"email",value:"{{user_email}}",readable:"{{user_email}}",miscellaneous:{label:"To"}},REPLYTO:{type:"email",value:"",miscellaneous:{label:"Reply to"}},EMAILCC:{type:"email",value:"",miscellaneous:{label:"CC"}},EMAILBCC:{type:"email",value:"",miscellaneous:{label:"BCC"}},EMAILSUBJECT:{type:"text",value:"Email subject",miscellaneous:{label:"Subject"}},EMAILBODY:{type:"textarea",value:`<!DOCTYPE html> <html> <head> </head> <body> <p>Body</p> </body> </html>`,miscellaneous:{label:"Body"}},FILE_ATTACHMENT_URL:{type:"url",value:"",miscellaneous:{label:"Attachment URL"}},_automator_custom_item_name_:{type:"text",value:"Top-level action",miscellaneous:{label:"Custom name",show_label_in_sentence:!1}}},tokens:[{id:"21105:EMAILTO",name:"Recipient email",data_type:"email",tags:[]},{id:"21105:EMAILSUBJECT",name:"Email subject",data_type:"text",tags:[]}],availability:If,tags:[]},{type:kP.BLOCK,block_type:"filter",id:"midkmsgcz4mqsglmv2l",fields:{CONDITION_MATCH_MODE:{type:"radio",value:"any",readable:"Any",miscellaneous:{label:"Condition match mode",show_label_in_sentence:!1}}},modifiers:[{type:kP.BLOCK_MODIFIER,block_modifier_type:"filter_condition",id:"midkll4kt2rnxsgf1mm",integration_code:"GEN",code:"TOKEN_MEETS_CONDITION",custom_name:"Only for high-value runs",fields:{TOKEN:{type:"text",value:"{{UT:ADVANCED:RECIPE_RUN_TOTAL}}",readable:"",miscellaneous:{label:"Token"}},CRITERIA:{type:"select",value:"is",readable:"is",miscellaneous:{label:"Criteria"}},VALUE:{type:"text",value:"1",readable:"",miscellaneous:{label:"Value"}}},last_known_integration_name:"General",availability:If,tags:[Iv]}],tokens:[],paths:[{path_code:"FILTER-CONDITIONS-MET",content:[{type:kP.ITEM,item_type:"action",is_item_on:!0,id:21106,integration_code:"SLACK",code:"SLACKSENDDIRECTMESSAGE",custom_name:"Action inside filter",last_known_integration_name:"Slack",fields:{SLACKUSER:{type:"select",readable:"agustin",value:"abc",miscellaneous:{label:"User"}},BOT_NAME:{type:"text",value:"",miscellaneous:{label:"Bot name"}},BOT_ICON:{type:"url",value:"",miscellaneous:{label:"Bot icon"}},SLACKMESSAGE:{type:"textarea",value:"This is a test message",miscellaneous:{label:"Message"}},_automator_custom_item_name_:{type:"text",value:"Action inside filter",miscellaneous:{label:"Custom name",show_label_in_sentence:!1}}},tokens:[{id:"21106:MESSAGE_TS",name:"Message timestamp",data_type:"text",tags:[]},{id:"21106:CHANNEL",name:"Channel name",data_type:"text",tags:[]}],availability:If,tags:[]}]},{path_code:"FILTER-CONDITIONS-NOT-MET",content:[]}],availability:If,tags:[Iv]},{type:kP.BLOCK,block_type:"loop",id:21107,fields:{LOOP_TYPE:{type:"radio",value:"users",readable:"Users",miscellaneous:{label:"Loop type",show_label_in_sentence:!1}}},modifiers:[{type:kP.BLOCK_MODIFIER,block_modifier_type:"loop_filter",id:21108,code:"WP_USER_HAS_ROLE",integration_code:"WP",last_known_integration_name:"WordPress",fields:{CRITERIA:{type:"select",value:"does-not-have",readable:"does not have",miscellaneous:{label:"Criteria"}},WP_USER_HAS_ROLE:{type:"select",value:"administrator",readable:"Administrator",miscellaneous:{label:"Role"}}},availability:If,tags:[Iv]}],tokens:[{id:"21107:LOOP_USER_ID",name:"Loop user ID",data_type:"integer",tags:[]},{id:"21107:LOOP_INDEX",name:"Loop index",data_type:"integer",tags:[]}],loopable_token_ids:["TOKEN_EXTENDED:DATA_TOKEN_PURCHASED_PRODUCT:UNIVERSAL:WC:PURCHASED_PRODUCT","TOKEN_EXTENDED:DATA_TOKEN_USER_ORDERS_TWENTY_FOUR_HOURS:UNIVERSAL:WC:USER_ORDERS_TWENTY_FOUR_HOURS","TOKEN_EXTENDED:DATA_TOKEN_USER_ORDERS_WEEKLY:UNIVERSAL:WC:USER_ORDERS_WEEKLY","TOKEN_EXTENDED:DATA_TOKEN_USER_ORDERS_MONTHLY:UNIVERSAL:WC:USER_ORDERS_MONTHLY","TOKEN_EXTENDED:DATA_TOKEN_USER_TOTAL_SPEND:UNIVERSAL:WC:USER_TOTAL_SPEND"],paths:[{path_code:"LOOP-ITERATION-COMPLETED",content:[{type:kP.BLOCK,block_type:"filter",id:"midklixbipen23hh5kh",fields:{CONDITION_MATCH_MODE:{type:"radio",value:"any",readable:"Any",miscellaneous:{label:"Condition match mode",show_label_in_sentence:!1}}},modifiers:[{type:kP.BLOCK_MODIFIER,block_modifier_type:"filter_condition",id:"midkmx159u1a2pqqq6",integration_code:"EMAILS",code:"EMAIL_DOMAIN_EXISTS",custom_name:"Company domain only",fields:{EMAIL_ADDRESS:{type:"text",value:"{{user_email}}",readable:"",miscellaneous:{label:"Email address"}},DOMAIN_NAME:{type:"text",value:"@automatorplugin.com",readable:"",miscellaneous:{label:"Domain"}}},last_known_integration_name:"Emails",availability:If,tags:[Iv]}],tokens:[],paths:[{path_code:"FILTER-CONDITIONS-MET",content:[{type:kP.ITEM,item_type:"action",is_item_on:!0,id:21109,integration_code:"DATETIME",code:"GENERATE_NEW_DATE",custom_name:"Action inside filter, inside loop",last_known_integration_name:"Date and time",fields:{DATE_MODIFIER:{type:"text",readable:"+5 days",value:"+5 days",miscellaneous:{label:"Date"}},TO_FORMAT:{type:"select",readable:"Mmm DD, YYYY (Nov 24, 2025)",value:"M d, Y",miscellaneous:{label:"Format"}},_automator_custom_item_name_:{type:"text",value:"Action inside filter, inside loop",miscellaneous:{label:"Custom name",show_label_in_sentence:!1}}},tokens:[{id:"21109:GENERATED_DATE",name:"Generated date",data_type:"date",tags:[]}],availability:If,tags:[Iv]},{type:kP.ITEM,item_type:"action",is_item_on:!0,id:21111,integration_code:"TRELLO",code:"ADD_CARD_LABEL",custom_name:"",last_known_integration_name:"Trello",fields:{BOARD:{type:"select",readable:"Test",value:"abc",miscellaneous:{label:"Board"}},LIST:{type:"select",readable:"Cancelaciones",value:"def",miscellaneous:{label:"List"}},CARD:{type:"select",readable:"Test Dani",value:"ghi",miscellaneous:{label:"Card"}},LABEL:{type:"select",readable:"red (Cancelación)",value:"jkl",miscellaneous:{label:"Label"}},_automator_custom_item_name_:{type:"text",value:"",miscellaneous:{label:"Custom name",show_label_in_sentence:!1}}},tokens:[{id:"21111:CARD_ID",name:"Card ID",data_type:"text",tags:[]},{id:"21111:CARD_URL",name:"Card URL",data_type:"url",tags:[]}],availability:If,tags:[]}]},{path_code:"FILTER-CONDITIONS-NOT-MET",content:[]}],availability:If,tags:[Iv]}]}],availability:If,tags:[Iv]},{type:kP.BLOCK,block_type:"delay_schedule",id:21200,deferred_order:0,fields:{DELAY_MODE:{type:"radio",value:"delay",readable:"Delay",miscellaneous:{label:"Delay mode",show_label_in_sentence:!1}},DELAY_VALUE:{type:"int",value:"5",miscellaneous:{label:"Amount",show_label_in_sentence:!1}},DELAY_UNIT:{type:"select",value:"hours",readable:"Hours",miscellaneous:{label:"Unit",show_label_in_sentence:!1}}},modifiers:[],tokens:[],paths:[{path_code:"DELAY-COMPLETED",content:[{type:kP.ITEM,item_type:"action",is_item_on:!0,id:21201,integration_code:"EMAILS",code:"SENDEMAIL",custom_name:"Follow-up email after delay",last_known_integration_name:"Emails",fields:{EMAILTO:{type:"email",readable:"{{user_email}}",value:"{{user_email}}",miscellaneous:{label:"To"}},EMAILSUBJECT:{type:"text",readable:"Follow-up",value:"Follow-up",miscellaneous:{label:"Subject"}},EMAILBODY:{type:"textarea",value:"Hi, just checking in!",miscellaneous:{label:"Body"}},_automator_custom_item_name_:{type:"text",value:"Follow-up email after delay",miscellaneous:{label:"Custom name",show_label_in_sentence:!1}}},tokens:[{id:"21201:EMAILTO",name:"Recipient email",data_type:"email",tags:[]}],availability:If,tags:[]}]}],availability:If,tags:[Iv]},{type:kP.ITEM,item_type:"action",is_item_on:!1,id:21113,integration_code:"WP",code:"REDIRECT",last_known_integration_name:"WordPress",custom_name:"",fields:{REDIRECTURL:{type:"text",value:"https://automatorplugin.com",readable:"https://automatorplugin.com",miscellaneous:{label:"URL"}}},tokens:[{id:"21113:REDIRECTURL",name:"Redirect URL",data_type:"url",tags:[]}],availability:If,tags:[]},{type:kP.ITEM,item_type:"action",is_item_on:!0,id:21112,integration_code:"CLICKUP",code:"CLICKUP_SPACE_LIST_TASK_TAG_ADD",custom_name:"",last_known_integration_name:"ClickUp",fields:{TEAM:{type:"select",readable:"Uncanny Owl Workspace",value:"10514831",miscellaneous:{label:"Team"}},SPACE:{type:"select",readable:"Engineering",value:"14842576",miscellaneous:{label:"Space"}},FOLDER:{type:"select",readable:"Folderless lists",value:"14842576|SPACE_ID",miscellaneous:{label:"Folder"}},LIST:{type:"select",readable:"Add Backlog Item",value:"901102924534",miscellaneous:{label:"List"}},TASK:{type:"select",readable:"Hide custom label fields by default",value:"868fy5ujf",miscellaneous:{label:"Task"}},CLICKUP_SPACE_LIST_TASK_TAG_ADD_META:{type:"text",value:"Test",miscellaneous:{label:"Tag"}},_automator_custom_item_name_:{type:"text",value:"",miscellaneous:{label:"Custom name",show_label_in_sentence:!1}}},tokens:[{id:"21112:TASK_ID",name:"Task ID",data_type:"text",tags:[]},{id:"21112:TASK_URL",name:"Task URL",data_type:"url",tags:[]}],availability:If,tags:[]},{type:kP.ITEM,item_type:"action",is_item_on:!0,id:21214,integration_code:"SALESFORCE",code:"SALESFORCE_CREATE_CONTACT",custom_name:"",last_known_integration_name:"Salesforce",fields:{},tokens:[{id:"21214:CONTACT_ID",name:"Contact ID",data_type:"text",tags:[]}],availability:Iy,tags:[Iw]},{type:kP.ITEM,item_type:"action",is_item_on:!0,id:21215,integration_code:"WC",code:"WC_NOTE_TO_ORDER",custom_name:"",last_known_integration_name:"WooCommerce",fields:{WC_ORDER:{type:"text",value:"123",miscellaneous:{label:"Order"}}},tokens:[{id:"21215:ORDER_ID",name:"Order ID",data_type:"integer",tags:[]}],availability:If,tags:[I_]},{type:kP.ITEM,item_type:"action",is_item_on:!0,id:21216,integration_code:"WC",code:"WCCREATEORDER",custom_name:"",last_known_integration_name:"WooCommerce",fields:{},tokens:[{id:"21216:ORDER_ID",name:"Order ID",data_type:"integer",tags:[]},{id:"21216:ORDER_TOTAL",name:"Order total",data_type:"float",tags:[]}],availability:If,tags:[Iv]}]}};IC.flow,IC.flow,IC.flow,IC.flow,IC.flow;let II={...IE,recipe_id:77,title:"Everyone recipe",recipe_type:"anonymous",flow:{entry:{operator:"all",triggers:[{type:kP.ITEM,item_type:"trigger",id:7001,integration_code:"WP",code:"WP_USER_POST_PUBLISHED",is_item_on:!0,fields:{},last_known_integration_name:"WordPress Core",tokens:[],availability:If,tags:[]}]},run_as:null,content:[{type:kP.ITEM,item_type:"action",id:7002,integration_code:"WP",code:"CREATEPOST",is_item_on:!0,fields:{},last_known_integration_name:"WordPress Core",tokens:[],availability:If,tags:[]}]}},ID={...II,miscellaneous:{...II.miscellaneous,run_as_availability:Ib}};function IA(e,t){return{type:kP.ITEM,item_type:"action",is_item_on:!0,id:e,integration_code:"EMAILS",code:"SENDEMAIL",custom_name:t,last_known_integration_name:"Emails",fields:{EMAILTO:{type:"email",readable:"{{user_email}}",value:"{{user_email}}",miscellaneous:{label:"To"}},EMAILSUBJECT:{type:"text",readable:t,value:t,miscellaneous:{label:"Subject"}},EMAILBODY:{type:"textarea",value:t,miscellaneous:{label:"Body"}},_automator_custom_item_name_:{type:"text",value:t,miscellaneous:{label:"Custom name",show_label_in_sentence:!1}}},tokens:[],availability:If,tags:[]}}function I$(e,t,i,a){return{type:kP.BLOCK,block_type:"delay_schedule",id:e,deferred_order:i,fields:{DELAY_MODE:{type:"radio",value:"delay",readable:"Delay",miscellaneous:{label:"Delay mode",show_label_in_sentence:!1}},DELAY_VALUE:{type:"int",value:String(t),miscellaneous:{label:"Amount",show_label_in_sentence:!1}},DELAY_UNIT:{type:"select",value:"days",readable:"Days",miscellaneous:{label:"Unit",show_label_in_sentence:!1}}},modifiers:[],tokens:[],paths:[{path_code:"DELAY-COMPLETED",content:a}],availability:If,tags:[Iv]}}ID.flow,II.flow,kP.BLOCK,kP.ITEM,kP.ITEM,IA(31001,"Send welcome email"),I$(31010,3,2,[IA(31011,"Send tips email"),IA(31012,"Send case study")]),kP.BLOCK,kP.BLOCK_MODIFIER,IA(31021,"Send coupon"),I$(31030,2,1,[IA(31031,"Send reminder")]),I$(31040,5,3,[IA(31041,"Send upgrade offer")]),IA(31002,"Notify the team"),I$(31050,1,0,[IA(31051,"Send survey")]),kP.ITEM,kP.ITEM,kP.BLOCK,kP.ITEM,kP.ITEM;let IO={categories:[{id:11,name:"Store",slug:"store",parent:0},{id:14,name:"Checkout",slug:"checkout",parent:11},{id:12,name:"Email",slug:"email",parent:0},{id:13,name:"E-commerce",slug:"e-commerce",parent:0}],tags:[{id:30,name:"Onboarding",slug:"onboarding",parent:0},{id:31,name:"Q2",slug:"q2",parent:0}]},IR="completed",IM="completed-with-errors",IL="completed-do-nothing",IN="completed-did-nothing",IP="completed-with-notice",Iz="completed-awaiting",IU="failed",IF="skipped",Ij="in-progress",IB="in-progress-with-errors",IH="queued",IV="scheduled",Iq="delayed",IZ="cancelled",IW="paused",IG="ended",IK="not-completed",IY="not-evaluated",IQ="condition-met",IX="condition-not-met",IJ="condition-not-evaluated",I1={code:IR,phase:Cq.TERMINAL_SUCCESS,appearance:CK.NORMAL,label:(0,b4.escapeHTML)((0,lX.__)("Completed","uncanny-automator")),icon:"circle-check",tone:CW.SUCCESS},I0={code:IM,phase:Cq.TERMINAL_SUCCESS,appearance:CK.NORMAL,label:(0,b4.escapeHTML)((0,lX.__)("Completed with errors","uncanny-automator")),icon:"circle-exclamation",tone:CW.ERROR},I2={code:IL,phase:Cq.TERMINAL_SUCCESS,appearance:CK.NORMAL,label:(0,b4.escapeHTML)((0,lX.__)("Completed, do nothing","uncanny-automator")),icon:"circle-check",tone:CW.SUCCESS},I3={code:IN,phase:Cq.TERMINAL_SUCCESS,appearance:CK.NORMAL,label:(0,b4.escapeHTML)((0,lX.__)("Completed, did nothing","uncanny-automator")),icon:"circle-check",tone:CW.SUCCESS},I4={code:IP,phase:Cq.TERMINAL_SUCCESS,appearance:CK.NORMAL,label:(0,b4.escapeHTML)((0,lX.__)("Completed with notice","uncanny-automator")),icon:"circle-info",tone:CW.SUCCESS},I6={code:Iz,phase:Cq.ACTIVE,appearance:CK.NORMAL,label:(0,b4.escapeHTML)((0,lX.__)("Completed, awaiting","uncanny-automator")),icon:"clock",tone:CW.WARNING},I5={code:IU,phase:Cq.TERMINAL_FAILURE,appearance:CK.NORMAL,label:(0,b4.escapeHTML)((0,lX.__)("Failed","uncanny-automator")),icon:"circle-xmark",tone:CW.ERROR},I8={code:IF,phase:Cq.TERMINAL_FAILURE,appearance:CK.MUTED,label:(0,b4.escapeHTML)((0,lX.__)("Skipped","uncanny-automator")),icon:"circle-minus",tone:CW.NEUTRAL},I7={code:Ij,phase:Cq.ACTIVE,appearance:CK.NORMAL,label:(0,b4.escapeHTML)((0,lX.__)("In progress","uncanny-automator")),icon:"spinner-third",tone:CW.WARNING},I9={code:IB,phase:Cq.ACTIVE,appearance:CK.NORMAL,label:(0,b4.escapeHTML)((0,lX.__)("In progress with errors","uncanny-automator")),icon:"spinner-third",tone:CW.ERROR},De={code:IH,phase:Cq.WAITING,appearance:CK.NORMAL,label:(0,b4.escapeHTML)((0,lX.__)("Queued","uncanny-automator")),icon:"hourglass-half",tone:CW.WARNING},Dt={code:IV,phase:Cq.ACTIVE,appearance:CK.NORMAL,label:(0,b4.escapeHTML)((0,lX.__)("Scheduled","uncanny-automator")),icon:"clock",tone:CW.WARNING},Di={code:Iq,phase:Cq.ACTIVE,appearance:CK.NORMAL,label:(0,b4.escapeHTML)((0,lX.__)("Delayed","uncanny-automator")),icon:"clock",tone:CW.WARNING},Da={code:IZ,phase:Cq.TERMINAL_FAILURE,appearance:CK.NORMAL,label:(0,b4.escapeHTML)((0,lX.__)("Cancelled","uncanny-automator")),icon:"circle-xmark",tone:CW.ERROR},Dn={code:IW,phase:Cq.PAUSED,appearance:CK.NORMAL,label:(0,b4.escapeHTML)((0,lX.__)("Paused","uncanny-automator")),icon:"pause",tone:CW.WARNING},Do={code:IG,phase:Cq.TERMINAL_FAILURE,appearance:CK.NORMAL,label:(0,b4.escapeHTML)((0,lX.__)("Ended","uncanny-automator")),icon:"stop",tone:CW.NEUTRAL},Dr={code:IK,phase:Cq.WAITING,appearance:CK.MUTED,label:(0,b4.escapeHTML)((0,lX.__)("Not completed","uncanny-automator")),icon:"circle-dashed",tone:CW.NEUTRAL},Ds={code:IY,phase:Cq.WAITING,appearance:CK.MUTED,label:(0,b4.escapeHTML)((0,lX.__)("Not evaluated","uncanny-automator")),icon:"circle-dashed",tone:CW.MUTED},Dl={code:IQ,phase:Cq.TERMINAL_SUCCESS,appearance:CK.NORMAL,label:(0,b4.escapeHTML)((0,lX.__)("Met","uncanny-automator")),icon:"circle-check",tone:CW.SUCCESS},Dc={code:IX,phase:Cq.TERMINAL_FAILURE,appearance:CK.NORMAL,label:(0,b4.escapeHTML)((0,lX.__)("Not met","uncanny-automator")),icon:"circle-xmark",tone:CW.ERROR},Dd={code:IJ,phase:Cq.WAITING,appearance:CK.MUTED,label:(0,b4.escapeHTML)((0,lX.__)("Not evaluated","uncanny-automator")),icon:"circle-minus",tone:CW.MUTED};function Du(e){switch(e){case IR:return I1;case IM:return I0;case IL:return I2;case IN:return I3;case IP:return I4;case Iz:return I6;case IU:return I5;case IF:return I8;case Ij:return I7;case IB:return I9;case IH:return De;case IV:return Dt;case Iq:return Di;case IZ:return Da;case IW:return Dn;case IG:return Do;case IK:return Dr;case IY:return Ds;case IQ:return Dl;case IX:return Dc;case IJ:return Dd}}let Dp=e=>e.reduce((e,t)=>{let i=e.findIndex(e=>e.status.code===t);return i>=0?e.map((e,t)=>t===i?{...e,count:e.count+1}:e):[...e,{status:Du(t),count:1}]},[]),Dh=e=>e.includes("failed")?I0:I1,Dg=e=>{let t=e[0],i=e[e.length-1];if(!t||!i)throw Error("sendEmailLoopItemWithIterations requires at least one iteration entry.");let a=e.map(e=>e.status);return{type:kP.ITEM,item_type:"action",id:5200,integration_code:"EMAILS",code:"SENDEMAIL",last_known_integration_name:"Emails",custom_name:null,fields:{EMAILTO:{type:"email",value:"{{USER_EMAIL}}",miscellaneous:{label:"To"}},EMAILSUBJECT:{type:"text",value:"Welcome",miscellaneous:{label:"Subject"}}},execution:{status:Dh(a),date_started:t.when,date_ended:i.when,status_breakdown:Dp(a)}}};kP.ITEM,kP.ITEM,kP.ITEM,kP.BLOCK_MODIFIER,kP.BLOCK_MODIFIER,kP.ITEM,kP.BLOCK,Dg([{iteration_index:0,iteration_label:"agus@automatorplugin.com",status:"completed",when:"January 1, 2026 10:00 AM",recipient:"agus@automatorplugin.com"},{iteration_index:1,iteration_label:"noah@automatorplugin.com",status:"completed",when:"January 1, 2026 10:00 AM",recipient:"noah@automatorplugin.com"}]),kP.BLOCK,Dg([{iteration_index:0,iteration_label:"agus@automatorplugin.com",status:"completed",when:"January 1, 2026 10:00 AM",recipient:"agus@automatorplugin.com"},{iteration_index:1,iteration_label:"noah@automatorplugin.com",status:"failed",when:"January 1, 2026 10:00 AM",recipient:"noah@automatorplugin.com"}]),kP.BLOCK,Ts.PAUSE,Ts.CANCEL,kP.ITEM,kP.BLOCK,Ts.RESUME,Ts.CANCEL,kP.ITEM,kP.BLOCK,kP.ITEM,kP.BLOCK,Dg([{iteration_index:0,iteration_label:"agus@automatorplugin.com",status:"completed",when:"January 1, 2026 10:00 AM",recipient:"agus@automatorplugin.com"},{iteration_index:1,iteration_label:"noah@automatorplugin.com",status:"completed",when:"January 1, 2026 10:01 AM",recipient:"noah@automatorplugin.com"}]),kP.BLOCK,kP.BLOCK,kP.ITEM,Du("completed"),Du("completed"),kP.BLOCK,Ts.RUN_NOW,Ts.CANCEL,kP.ITEM,kP.BLOCK,kP.ITEM,kP.BLOCK,kP.ITEM;let Dm=(e,t,i)=>({type:kP.ITEM,item_type:"action",id:6900,integration_code:"EMAILS",code:"SENDEMAIL",last_known_integration_name:"Emails",custom_name:null,fields:{EMAILTO:{type:"email",value:"{{USER_EMAIL}}",miscellaneous:{label:"To"}},EMAILSUBJECT:{type:"text",value:"Welcome",miscellaneous:{label:"Subject"}}},execution:{status:Du(e),date_started:t,date_ended:"completed"===e?t:void 0,runs:"completed"===e?[{run_number:1,status:I1,date:t,tokens:{USER_EMAIL:i}}]:[]}}),Df=(e,t,i)=>({type:kP.ITEM,item_type:"action",id:6901,integration_code:"EMAILS",code:"SENDEMAIL",last_known_integration_name:"Emails",custom_name:"Sorry email",fields:{EMAILTO:{type:"email",value:"{{USER_EMAIL}}",miscellaneous:{label:"To"}},EMAILSUBJECT:{type:"text",value:"You can sign up later",miscellaneous:{label:"Subject"}}},execution:{status:Du(e),date_started:t,date_ended:"completed"===e?t:void 0,runs:"completed"===e?[{run_number:1,status:I1,date:t,tokens:{USER_EMAIL:i}}]:[]}});kP.BLOCK,kP.BLOCK,Dg([{iteration_index:0,iteration_label:"agus@automatorplugin.com",status:"completed",when:"January 1, 2026 3:00 PM",recipient:"agus@automatorplugin.com"},{iteration_index:1,iteration_label:"noah@automatorplugin.com",status:"completed",when:"January 1, 2026 3:00 PM",recipient:"noah@automatorplugin.com"}]),kP.BLOCK,kP.BLOCK,(e=>{let t=e[0],i=e[e.length-1];if(!t||!i)throw Error("welcomeEmailActionWithIterations requires at least one iteration entry.");let a=e.map(e=>e.status);return kP.ITEM,Dh(a),t.when,i.when,Dp(a)})([{iteration_index:0,iteration_label:"agus@automatorplugin.com",status:"completed",when:"January 1, 2026 10:10 AM",recipient:"agus@automatorplugin.com"},{iteration_index:1,iteration_label:"noah@automatorplugin.com",status:"completed",when:"January 1, 2026 10:10 AM",recipient:"noah@automatorplugin.com"}]),(e=>{let t=e[0],i=e[e.length-1];if(!t||!i)throw Error("rejectionEmailActionWithIterations requires at least one iteration entry.");let a=e.map(e=>e.status);return kP.ITEM,Dh(a),t.when,i.when,Dp(a)})([{iteration_index:0,iteration_label:"agus@automatorplugin.com",status:"skipped",when:"January 1, 2026 10:10 AM",recipient:"agus@automatorplugin.com"},{iteration_index:1,iteration_label:"noah@automatorplugin.com",status:"skipped",when:"January 1, 2026 10:10 AM",recipient:"noah@automatorplugin.com"}]),kP.BLOCK,Dm("completed","January 1, 2026 10:20 AM","agus@automatorplugin.com"),Df("skipped","January 1, 2026 10:20 AM","agus@automatorplugin.com"),kP.BLOCK,Dm("not-completed","January 1, 2026 10:25 AM","noah@automatorplugin.com"),Df("completed","January 1, 2026 10:25 AM","noah@automatorplugin.com");let Dy={log_id:9001,recipe_id:100,recipe_title:"Welcome new users via email",run_number:1,triggered_by_user:{id:42,display_name:"Agustin Barrientos",avatar_url:"https://secure.gravatar.com/avatar/00000000000000000000000000000000?s=96&d=mp"},can_delete:!0,recipe_edit_url:"post.php?post=100&action=edit",execution:{status:I1,date_started:"January 1, 2026 10:00 AM",date_ended:"January 1, 2026 10:00 AM"},flow:{entry:{operator:"all",triggers:[{type:kP.ITEM,item_type:"trigger",id:1,integration_code:"WP",code:"WP_USER_LOGIN",last_known_integration_name:"WordPress",custom_name:null,fields:{USER_ROLE:{type:"select",value:"subscriber",readable:"Subscriber",miscellaneous:{label:"Role"}}},execution:{status:I1,date_started:"January 1, 2026 10:00 AM",date_ended:"January 1, 2026 10:00 AM",runs:[{run_number:1,status:I1,date:"January 1, 2026 10:00 AM",tokens:{USER_EMAIL:"agus@automatorplugin.com"}}]}}]},content:[{type:kP.BLOCK,block_type:"loop",id:5100,fields:{LOOP_TYPE:{type:"radio",value:"users",readable:"Users",miscellaneous:{label:"Loop type",show_label_in_sentence:!1}}},modifiers:[],execution:{status:I0,date_started:"January 1, 2026 10:00 AM",date_ended:"January 1, 2026 10:00 AM",progress:{elements_total:2,status_breakdown:[{status:I1,count:1},{status:I0,count:1}]}},paths:[{path_code:"LOOP-ITERATION-COMPLETED",content:[{type:kP.ITEM,item_type:"action",id:5200,integration_code:"EMAILS",code:"SENDEMAIL",last_known_integration_name:"Emails",custom_name:null,fields:{EMAILCONTENTTYPE:{type:"select",value:"html",readable:"HTML",miscellaneous:{label:"Content type"}},EMAILFROM:{type:"email",value:"{{admin_email}}",miscellaneous:{label:"From"}},EMAILFROMNAME:{type:"text",value:"{{site_name}}",miscellaneous:{label:"From name"}},EMAILTO:{type:"email",value:"{{USER_EMAIL}}",miscellaneous:{label:"To"}},REPLYTO:{type:"email",value:"",miscellaneous:{label:"Reply to"}},EMAILCC:{type:"email",value:"",miscellaneous:{label:"CC"}},EMAILBCC:{type:"email",value:"",miscellaneous:{label:"BCC"}},EMAILSUBJECT:{type:"text",value:"Welcome",miscellaneous:{label:"Subject"}},EMAILBODY:{type:"textarea",value:"<p>Hi {{USER_DISPLAYNAME}},</p><p>Thanks for joining.</p>",miscellaneous:{label:"Body",attributes:{supports_html:!0}}},FILE_ATTACHMENT_URL:{type:"file",value:"",miscellaneous:{label:"File attachment"}}},execution:{status:I0,date_started:"January 1, 2026 10:00 AM",date_ended:"January 1, 2026 10:00 AM",status_breakdown:[{status:I1,count:1},{status:I5,count:1}]}}]}]}]}};kP.ITEM,kP.BLOCK,kP.BLOCK_MODIFIER,kP.ITEM,kP.ITEM,({log_id:9100,recipe_id:100,recipe_title:"Loop through all users",run_number:1,triggered_by_user:{id:42,display_name:"Agustin Barrientos",avatar_url:`data:image/svg+xml;utf8,${encodeURIComponent('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 40 40"><circle cx="20" cy="20" r="20" fill="#646970"/><circle cx="20" cy="16" r="7.2" fill="#fff"/><path d="M4 40c0-7.2 7.2-12.8 16-12.8s16 5.6 16 12.8" fill="#fff"/></svg>')}`},can_delete:!0,recipe_edit_url:"post.php?post=100&action=edit",execution:{status:I7,date_started:"January 1, 2026 10:00 AM"},flow:{entry:{operator:"all",triggers:[{type:kP.ITEM,item_type:"trigger",id:1,integration_code:"WP",code:"WP_USER_LOGIN",last_known_integration_name:"WordPress",custom_name:null,fields:{USER_ROLE:{type:"select",value:"subscriber",readable:"Subscriber",miscellaneous:{label:"Role"}}},execution:{status:I1,date_started:"January 1, 2026 10:00 AM",date_ended:"January 1, 2026 10:00 AM",runs:[{run_number:1,status:I1,date:"January 1, 2026 10:00 AM",tokens:{USER_EMAIL:"agus@automatorplugin.com"}}]}}]},content:[{type:kP.BLOCK,block_type:"loop",id:5100,fields:{LOOP_TYPE:{type:"radio",value:"users",readable:"Users",miscellaneous:{label:"Loop type",show_label_in_sentence:!1}}},modifiers:[],execution:{status:I7,date_started:"January 1, 2026 10:00 AM",date_elapsed:{seconds:87,human_readable:"1 minute, 27 seconds"},date_next_process:"January 1, 2026 10:05 AM",progress:{elements_total:10,message:"Processing batch 2 of 3",status_breakdown:[{status:I1,count:4},{status:I7,count:1},{status:Dr,count:5}]},control:{process_code:"loop-5100-run-1",actions:[Ts.PAUSE,Ts.CANCEL]}},paths:[{path_code:"LOOP-ITERATION-COMPLETED",content:[{type:kP.ITEM,item_type:"action",id:5200,integration_code:"EMAILS",code:"SENDEMAIL",last_known_integration_name:"Emails",custom_name:null,fields:{EMAILTO:{type:"email",value:"{{USER_EMAIL}}",miscellaneous:{label:"To"}},EMAILSUBJECT:{type:"text",value:"Welcome",miscellaneous:{label:"Subject"}}},execution:{status:I7,date_started:"January 1, 2026 10:00 AM",status_breakdown:[{status:I1,count:3},{status:I7,count:1}]}}]}]}]}}).triggered_by_user,(()=>{let{triggered_by_user:e,...t}=Dy;return{...t,log_id:9099}})();let Db="March 26, 2026 11:45 AM",Dv="March 26, 2026 11:45 AM",D_="March 26, 2026 11:45 AM",Dw="March 26, 2026 11:46 AM",Dx="March 26, 2026 4:46 PM",Dk="March 26, 2026 4:50 PM",DE=["Agus","Noah","Liam","Olivia","Mia","Lucas","Ethan","Sofia","James","Amelia","Isla","Leo","Aria","Maya","Charlie","Ezra","Hugo","Iris","Jade","Kai","Luna","Milo","Nora","Oscar","Penelope","Quinn","Riley","Sage"],DS=["automatorplugin.com"],DC=e=>{let t=(DE[e%DE.length]??"user").toLowerCase(),i=DS[Math.floor(e/7)%DS.length];return`${t}${e}@${i}`},DT=`<!doctype html> <html lang="en"> <head> <meta charset="UTF-8" /> <title>Welcome</title> <style> body { font-family: Helvetica, sans-serif; background: #f4f5f6; margin: 0; padding: 24px; } .container { max-width: 600px; margin: 0 auto; background: #ffffff; border-radius: 12px; padding: 32px; } .btn { display: inline-block; padding: 12px 24px; background: #0867ec; color: #ffffff; border-radius: 4px; text-decoration: none; } .footer { color: #9a9ea6; font-size: 12px; margin-top: 24px; text-align: center; } </style> </head> <body> <div class="container"> <h1>Hi {{USER_DISPLAYNAME}}, welcome aboard!</h1> <p>Thanks for joining the Pro plan. Your account is ready to go.</p> <p>You can jump straight in by following the link below.</p> <p><a class="btn" href="https://automatorplugin.com/dashboard">Open the dashboard</a></p> <p>If you have any questions, just reply to this email and someone from our team will get back to you.</p> <p>Cheers,<br />The Uncanny Owl team</p> <div class="footer">Uncanny Owl, 312-225 Sheppard Ave W, Toronto ON M2N 1N3</div> </div> </body> </html>`,DI=JSON.stringify([{id:20125,title:"Attendance - Planes",filename:"Attendance-Planes.csv",url:"https://automatorplugin.com/wp-content/uploads/2024/10/Attendance-Planes.csv",icon:"https://automatorplugin.com/wp-includes/images/media/text.svg",mime:"text/csv",type:"text",subtype:"csv",filesizeInBytes:648,filesizeHumanReadable:"648 B"}]),DD=(e,t="",i="agus@automatorplugin.com")=>{let a;return{EMAILCONTENTTYPE:{type:"select",value:"html",readable:"HTML",miscellaneous:{label:"Content type"}},EMAILFROM:{type:"email",value:"noreply@automatorplugin.com",miscellaneous:{label:"From"}},EMAILFROMNAME:{type:"text",value:"Uncanny Owl",miscellaneous:{label:"From name"}},EMAILTO:{type:"email",value:i,miscellaneous:{label:"To"}},REPLYTO:{type:"email",value:"",miscellaneous:{label:"Reply to"}},EMAILCC:{type:"email",value:"",miscellaneous:{label:"CC"}},EMAILBCC:{type:"email",value:"",miscellaneous:{label:"BCC"}},EMAILSUBJECT:{type:"text",value:e,miscellaneous:{label:"Subject"}},EMAILBODY:{type:"textarea",value:(a=i.split("@")[0]??"user",DT.replace(/\{\{USER_DISPLAYNAME\}\}/g,a)),miscellaneous:{label:"Body",attributes:{supports_html:!0}}},FILE_ATTACHMENT_URL:{type:"file",value:DI,miscellaneous:{label:"File attachment"}},_automator_custom_item_name_:{type:"text",value:t,miscellaneous:{label:"Custom action label"}}}},DA=(e,t="",i="")=>{let a=e.split("@")[0]??e;return{USER_EMAIL:e,USER_DISPLAYNAME:a,admin_email:"noreply@automatorplugin.com",site_name:"Uncanny Owl"}},D$=(()=>{let e=[];for(let t=0;t<102;t++)(t+1)%23==0?e.push("failed"):(t+1)%13==0?e.push("completed-with-errors"):e.push("completed");return e.push("skipped"),e.push("in-progress"),e.push("not-completed"),e.push("not-completed"),e})(),DO={log_id:9200,recipe_id:100,recipe_title:"Massive recipe with every shape",run_number:42,triggered_by_user:{id:42,display_name:"Agustin Barrientos",avatar_url:"https://secure.gravatar.com/avatar/00000000000000000000000000000000?s=96&d=mp"},can_delete:!0,recipe_edit_url:"post.php?post=100&action=edit",execution:{status:I7,date_started:Db},flow:{entry:{operator:"any",triggers:[{type:kP.ITEM,item_type:"trigger",id:1001,integration_code:"WC",code:"WC_PURCHASESPRODUCT",last_known_integration_name:"WooCommerce",custom_name:"Trigger that fired this run (any-operator entry)",fields:{WOOPRODUCT:{type:"select",value:"12345",readable:"Pro Plan (annual)",miscellaneous:{label:"Product"}},_automator_custom_item_name_:{type:"text",value:"Trigger that fired this run (any-operator entry)",miscellaneous:{label:"Custom trigger label"}}},execution:{status:I1,date_started:Db,date_ended:Db,runs:[{run_number:1,status:I1,date:Db,tokens:{USER_EMAIL:"agus0@automatorplugin.com",USER_DISPLAYNAME:"ava0",USER_ROLE:"customer"}}]}},{type:kP.ITEM,item_type:"trigger",id:1002,integration_code:"WP",code:"WP_USER_LOGIN",last_known_integration_name:"WordPress",custom_name:"Trigger that did NOT fire (any-operator OR sibling)",fields:{USER_ROLE:{type:"select",value:"subscriber",readable:"Subscriber",miscellaneous:{label:"Role"}},_automator_custom_item_name_:{type:"text",value:"Trigger that did NOT fire (any-operator OR sibling)",miscellaneous:{label:"Custom trigger label"}}},execution:{status:Dr,date_started:"",runs:[]}},{type:kP.ITEM,item_type:"trigger",id:1003,integration_code:"MAGIC_BUTTON",code:"WPMAGICBUTTON",last_known_integration_name:"Magic Button",custom_name:null,fields:{WPMAGICBUTTON:{type:"text",value:"1003",readable:"1003",miscellaneous:{label:"Button ID",show_label_in_sentence:!1}}},execution:{status:Dr,date_started:"",runs:[]}}]},content:[(eP="Action completed cleanly (single run)",{type:kP.ITEM,item_type:"action",id:5001,integration_code:"EMAILS",code:"SENDEMAIL",last_known_integration_name:"Emails",custom_name:eP,fields:DD("Welcome aboard!",eP),execution:{status:I1,date_started:Dv,date_ended:Dv,runs:[{run_number:1,status:I1,date:Dv,tokens:DA("agus0@automatorplugin.com","Welcome aboard!",eP)}]}}),(ez="Action with multiple runs (3 retries succeeding)",{type:kP.ITEM,item_type:"action",id:5002,integration_code:"EMAILS",code:"SENDEMAIL",last_known_integration_name:"Emails",custom_name:ez,fields:DD("Onboarding kit",ez),execution:{status:I1,date_started:"March 26, 2026 11:46 AM",date_ended:"March 26, 2026 11:48 AM",runs:[{run_number:1,status:I5,date:"March 26, 2026 11:46 AM",result_message:"SMTP handshake timed out after 10s.",tokens:DA("agus0@automatorplugin.com","Onboarding kit",ez)},{run_number:2,status:I5,date:"March 26, 2026 11:47 AM",result_message:"SMTP handshake timed out after 10s. Retrying.",tokens:DA("agus0@automatorplugin.com","Onboarding kit",ez)},{run_number:3,status:I1,date:"March 26, 2026 11:48 AM",tokens:DA("agus0@automatorplugin.com","Onboarding kit",ez)}]}}),(eU="Action that failed permanently (retry budget exhausted)",{type:kP.ITEM,item_type:"action",id:5003,integration_code:"EMAILS",code:"SENDEMAIL",last_known_integration_name:"Emails",custom_name:eU,fields:DD("Receipt",eU),execution:{status:I5,date_started:"March 26, 2026 11:48 AM",date_ended:"March 26, 2026 11:50 AM",result_message:"SMTP server returned 550 (mailbox unavailable). Retry budget exhausted.",runs:[{run_number:1,status:I5,date:"March 26, 2026 11:48 AM",result_message:"SMTP server returned 550 (mailbox unavailable).",tokens:DA("agus0@automatorplugin.com","Receipt",eU)},{run_number:2,status:I5,date:"March 26, 2026 11:50 AM",result_message:"SMTP server returned 550 (mailbox unavailable). Retry budget exhausted.",tokens:DA("agus0@automatorplugin.com","Receipt",eU)}]}}),(eF="Action completed with notice (non-fatal warning)",{type:kP.ITEM,item_type:"action",id:5004,integration_code:"EMAILS",code:"SENDEMAIL",last_known_integration_name:"Emails",custom_name:eF,fields:DD("Tax invoice",eF),execution:{status:I4,date_started:"March 26, 2026 11:50 AM",date_ended:"March 26, 2026 11:50 AM",result_message:"Delivered to mailbox, but the recipient marked the previous message as spam.",runs:[{run_number:1,status:I4,date:"March 26, 2026 11:50 AM",result_message:"Delivered to mailbox, but the recipient marked the previous message as spam.",tokens:DA("agus0@automatorplugin.com","Tax invoice",eF)}]}}),{type:kP.ITEM,item_type:"action",id:5005,integration_code:"WEBHOOKS",code:"WPSENDWEBHOOK",last_known_integration_name:"Webhooks",custom_name:"Action that did nothing (no-op)",fields:{WPWEBHOOK:{type:"url",value:"https://hooks.automatorplugin.com/idempotent",miscellaneous:{label:"Webhook URL"}},_automator_custom_item_name_:{type:"text",value:"Action that did nothing (no-op)",miscellaneous:{label:"Custom action label"}}},execution:{status:I3,date_started:"March 26, 2026 11:50 AM",date_ended:"March 26, 2026 11:50 AM",result_message:"Idempotency key already seen; skipped second delivery.",runs:[{run_number:1,status:I3,date:"March 26, 2026 11:50 AM",result_message:"Idempotency key already seen; skipped second delivery."}]}},{type:kP.BLOCK,block_type:"filter",id:5050,fields:{CONDITION_MATCH_MODE:{type:"radio",value:"any",readable:"Any",miscellaneous:{label:"Condition match mode",show_label_in_sentence:!1}}},modifiers:[{type:kP.BLOCK_MODIFIER,block_modifier_type:"filter_condition",id:"cond-top-1",integration_code:"GEN",code:"TOKEN_MEETS_CONDITION",last_known_integration_name:"General",fields:{TOKEN:{type:"text",value:"{{USER_ROLE}}",miscellaneous:{label:"Token",show_label_in_sentence:!1}},CRITERIA:{type:"select",value:"is",readable:"is",miscellaneous:{label:"Criteria",show_label_in_sentence:!1}},VALUE:{type:"text",value:"customer",miscellaneous:{label:"Value",show_label_in_sentence:!1}}},execution:{status:Dl,tokens:{USER_ROLE:"customer"}}},{type:kP.BLOCK_MODIFIER,block_modifier_type:"filter_condition",id:"cond-top-2",integration_code:"EMAILS",code:"EMAIL_DOMAIN_EXISTS",last_known_integration_name:"Emails",fields:{EMAIL_ADDRESS:{type:"email",value:"{{USER_EMAIL}}",miscellaneous:{label:"Email address"}},DOMAIN_NAME:{type:"text",value:"automatorplugin.com",miscellaneous:{label:"Domain"}}},execution:{status:Dd,tokens:{USER_EMAIL:"agus0@automatorplugin.com"}}}],execution:{status:I0,date_started:D_},paths:[{path_code:"FILTER-CONDITIONS-MET",content:[{type:kP.ITEM,item_type:"action",id:5051,integration_code:"SLACK",code:"SLACKSENDDIRECTMESSAGE",last_known_integration_name:"Slack",custom_name:"Action that failed inside the matched filter path (2 runs, resend-eligible)",fields:{SLACKUSER:{type:"select",value:"U03ABC",readable:"Sales team",miscellaneous:{label:"Slack user"}},SLACKMESSAGE:{type:"textarea",value:"New Pro signup: ava0",miscellaneous:{label:"Message"}},_automator_custom_item_name_:{type:"text",value:"Action that failed inside the matched filter path (2 runs, resend-eligible)",miscellaneous:{label:"Custom action label"}}},execution:{status:I5,date_started:Dw,date_ended:Dw,result_message:'Slack API returned 503 (channel_busy). Click "Re-run" to retry.',control:{item_log_id:"slack-5051-rerun",actions:[C6.RESEND]},runs:[{run_number:1,status:I5,date:Dw,result_message:"Slack API returned 503 (channel_busy).",tokens:{USER_DISPLAYNAME:"ava0"}},{run_number:2,status:I5,date:Dw,result_message:"Slack API returned 503 (channel_busy). Retry budget exhausted.",tokens:{USER_DISPLAYNAME:"ava0"}}]}}],execution:{status:I0}},{path_code:"FILTER-CONDITIONS-NOT-MET",content:[{type:kP.ITEM,item_type:"action",id:5052,integration_code:"WEBHOOKS",code:"WPSENDWEBHOOK",last_known_integration_name:"Webhooks",custom_name:"Action skipped inside the unmatched filter path (zero runs)",fields:{WPWEBHOOK:{type:"url",value:"https://hooks.automatorplugin.com/freebie",miscellaneous:{label:"Webhook URL"}},_automator_custom_item_name_:{type:"text",value:"Action skipped inside the unmatched filter path (zero runs)",miscellaneous:{label:"Custom action label"}}},execution:{status:I8,date_started:"",runs:[]}}],execution:{status:I8}}]},{type:kP.BLOCK,block_type:"filter",id:5060,fields:{CONDITION_MATCH_MODE:{type:"radio",value:"all",readable:"All",miscellaneous:{label:"Condition match mode",show_label_in_sentence:!1}}},modifiers:[{type:kP.BLOCK_MODIFIER,block_modifier_type:"filter_condition",id:"cond-top-3",integration_code:"GEN",code:"TOKEN_MEETS_CONDITION",last_known_integration_name:"General",fields:{TOKEN:{type:"text",value:"customer",miscellaneous:{label:"Token",show_label_in_sentence:!1}},CRITERIA:{type:"select",value:"is",readable:"is",miscellaneous:{label:"Criteria",show_label_in_sentence:!1}},VALUE:{type:"text",value:"subscriber",miscellaneous:{label:"Value",show_label_in_sentence:!1}}},execution:{status:Dc,tokens:{USER_ROLE:"customer"}}}],execution:{status:I2,date_started:D_},paths:[{path_code:"FILTER-CONDITIONS-MET",content:[{type:kP.ITEM,item_type:"action",id:5061,integration_code:"EMAILS",code:"SENDEMAIL",last_known_integration_name:"Emails",custom_name:"Action that did NOT run (matched-path was rejected by the top-level filter)",fields:DD("Welcome aboard","Action that did NOT run (matched-path was rejected by the top-level filter)"),execution:{status:Dr,date_started:D_,runs:[]}}],execution:{status:Dr}},{path_code:"FILTER-CONDITIONS-NOT-MET",content:[{type:kP.ITEM,item_type:"action",id:5062,integration_code:"EMAILS",code:"SENDEMAIL",last_known_integration_name:"Emails",custom_name:"Action that ran along the rejection path",fields:DD("You can sign up later","Action that ran along the rejection path"),execution:{status:I1,date_started:D_,date_ended:D_,runs:[{run_number:1,status:I1,date:D_,tokens:DA("agus0@automatorplugin.com","You can sign up later","Action that ran along the rejection path")}]}}],execution:{status:I1}}]},{type:kP.BLOCK,block_type:"delay_schedule",id:5070,fields:{DELAY_MODE:{type:"radio",value:"delay",readable:"Delay",miscellaneous:{label:"Delay mode",show_label_in_sentence:!1}},DELAY_UNIT:{type:"select",value:"hours",readable:"Hours",miscellaneous:{label:"Unit",show_label_in_sentence:!1}},DELAY_VALUE:{type:"int",value:"5",miscellaneous:{label:"Amount",show_label_in_sentence:!1}}},modifiers:[],execution:{status:I1,date_started:"March 26, 2026 11:46 AM",date_ended:"March 26, 2026 4:46 PM",date_elapsed:{seconds:18e3,human_readable:"5 hours"}},paths:[{path_code:"DELAY-COMPLETED",content:[{type:kP.ITEM,item_type:"action",id:5071,integration_code:"EMAILS",code:"SENDEMAIL",last_known_integration_name:"Emails",custom_name:"Action that ran after a 5-hour delay (single iteration)",fields:DD("Still settling in?","Action that ran after a 5-hour delay (single iteration)"),execution:{status:I1,date_started:Dx,date_ended:Dx,runs:[{run_number:1,status:I1,date:Dx,tokens:DA("agus0@automatorplugin.com","Still settling in?","Action that ran after a 5-hour delay (single iteration)")}]}}],execution:{status:I1}}]},{type:kP.BLOCK,block_type:"loop",id:5100,fields:{LOOP_TYPE:{type:"radio",value:"users",readable:"Users",miscellaneous:{label:"Loop type",show_label_in_sentence:!1}}},modifiers:[{type:kP.BLOCK_MODIFIER,block_modifier_type:"loop_filter",id:"loopf-1",integration_code:"WP",code:"WP_USER_HAS_ROLE",last_known_integration_name:"WordPress",fields:{CRITERIA:{type:"select",value:"has",readable:"has",miscellaneous:{label:"Criteria",show_label_in_sentence:!1}},WP_USER_HAS_ROLE:{type:"select",value:"customer",readable:"Customer",miscellaneous:{label:"Role"}}},execution:{status:Dl,status_breakdown:Dp(D$)}}],execution:{status:I7,date_started:"March 26, 2026 4:50 PM",date_elapsed:{seconds:18480,human_readable:"5 hours, 8 minutes"},date_next_process:"March 26, 2026 9:55 PM",progress:{elements_total:257,message:"Processing batch 1 of 3 (rate-limited to 100/min)",status_breakdown:[{status:I1,count:94},{status:I0,count:7},{status:I5,count:4},{status:I7,count:1},{status:I8,count:1},{status:Dr,count:150}]},control:{process_code:"loop-5100-run-42",actions:[Ts.PAUSE,Ts.CANCEL]}},paths:[{path_code:"LOOP-ITERATION-COMPLETED",content:[(eB="completed"===(ej=D$[0]??"completed")||"completed-with-errors"===ej||"failed"===ej,eH="completed-with-errors"===ej&&!1,eV="Loop body action (runs once per iteration, single run each)",{type:kP.ITEM,item_type:"action",id:5400,integration_code:"EMAILS",code:"SENDEMAIL",last_known_integration_name:"Emails",custom_name:eV,fields:((e,t="")=>({EMAILCONTENTTYPE:{type:"select",value:"html",readable:"HTML",miscellaneous:{label:"Content type"}},EMAILFROM:{type:"email",value:"{{admin_email}}",miscellaneous:{label:"From"}},EMAILFROMNAME:{type:"text",value:"{{site_name}}",miscellaneous:{label:"From name"}},EMAILTO:{type:"email",value:"{{USER_EMAIL}}",miscellaneous:{label:"To"}},REPLYTO:{type:"email",value:"",miscellaneous:{label:"Reply to"}},EMAILCC:{type:"email",value:"",miscellaneous:{label:"CC"}},EMAILBCC:{type:"email",value:"",miscellaneous:{label:"BCC"}},EMAILSUBJECT:{type:"text",value:e,miscellaneous:{label:"Subject"}},EMAILBODY:{type:"textarea",value:DT,miscellaneous:{label:"Body",attributes:{supports_html:!0}}},FILE_ATTACHMENT_URL:{type:"file",value:DI,miscellaneous:{label:"File attachment"}},_automator_custom_item_name_:{type:"text",value:t,miscellaneous:{label:"Custom action label"}}}))("Welcome to the program",eV),execution:{status:Du(eB?eH?"failed":"completed":"in-progress"===ej?"in-progress":"not-completed"),date_started:Dk,date_ended:eB?Dk:void 0,result_message:eB&&eH?'SMTP server timed out after 10s. Click "Re-run" to retry.':void 0,status_breakdown:Dp(D$.map((e,t)=>"completed"===e||"completed-with-errors"===e||"failed"===e?"completed-with-errors"===e&&t%13==12?"failed":"completed":e))}}),(eq=D$[0]??"completed",eZ=DC(0),eW=/@(?:corp|acme)\./.test(eZ),eK=(eG="completed"===eq||"completed-with-errors"===eq||"failed"===eq)&&eW,eY=eG&&!eW,eZ.split("@")[0],eQ="Conditional action - runs only when the nested filter path is met",eX={type:kP.ITEM,item_type:"action",id:5510,integration_code:"TRELLO",code:"ADD_CARD_LABEL",last_known_integration_name:"Trello",custom_name:eQ,fields:{LABEL:{type:"text",value:"Corporate signup",miscellaneous:{label:"Label"}},CARD:{type:"text",value:"{{USER_DISPLAYNAME}}",miscellaneous:{label:"Card"}},_automator_custom_item_name_:{type:"text",value:eQ,miscellaneous:{label:"Custom action label"}}},execution:{status:Du(eK?"completed-with-errors"===eq?"completed":eq:"not-completed"),date_started:Dk,date_ended:eK?Dk:void 0,status_breakdown:Dp(D$.map((e,t)=>{let i=DC(t),a="completed"===e||"completed-with-errors"===e||"failed"===e,n=/@(?:corp|acme)\./.test(i);return a&&n?"failed"===e?"failed":"completed":a?"skipped":e}))}},eJ="Conditional action - runs only when the nested filter path is NOT met",e1={type:kP.ITEM,item_type:"action",id:5520,integration_code:"WHATSAPP",code:"WHATSAPP_SEND_MESSAGE",last_known_integration_name:"WhatsApp",custom_name:eJ,fields:{WHATSAPP_META:{type:"text",value:"+1-555-0100",miscellaneous:{label:"Phone"}},_automator_custom_item_name_:{type:"text",value:eJ,miscellaneous:{label:"Custom action label"}}},execution:{status:Du(eY?"failed"===eq?"failed":"completed":"not-completed"),date_started:Dk,date_ended:eY?Dk:void 0,result_message:eY&&"failed"===eq?"WhatsApp Cloud API returned 429 (rate-limited). The action can be re-sent.":void 0,status_breakdown:Dp(D$.map((e,t)=>{let i=DC(t),a="completed"===e||"completed-with-errors"===e||"failed"===e,n=/@(?:corp|acme)\./.test(i);return a&&!n?"failed"===e?"failed":"completed":a?"skipped":e}))}},{type:kP.BLOCK,block_type:"filter",id:5450,fields:{CONDITION_MATCH_MODE:{type:"radio",value:"all",readable:"All",miscellaneous:{label:"Condition match mode",show_label_in_sentence:!1}}},modifiers:[{type:kP.BLOCK_MODIFIER,block_modifier_type:"filter_condition",id:"cond-loop",integration_code:"EMAILS",code:"EMAIL_DOMAIN_EXISTS",last_known_integration_name:"Emails",fields:{EMAIL_ADDRESS:{type:"email",value:"{{USER_EMAIL}}",miscellaneous:{label:"Email address"}},DOMAIN_NAME:{type:"text",value:"automatorplugin.com",miscellaneous:{label:"Domain"}}},execution:{status:Dl,status_breakdown:Dp(D$.map(e=>"completed"===e||"completed-with-errors"===e||"failed"===e?"condition-met":"condition-not-evaluated"))}}],execution:{status:Du("in-progress"===eq?"in-progress":eG?"completed-with-errors"===eq?"completed-with-errors":"completed":"not-completed"),date_started:Dk},paths:[{path_code:"FILTER-CONDITIONS-MET",content:[eX],execution:{status:Du(eW?eG?"failed"===eq?"failed":"completed":"not-completed":"skipped")}},{path_code:"FILTER-CONDITIONS-NOT-MET",content:[e1],execution:{status:Du(eW?"skipped":eG?"failed"===eq?"failed":"completed":"not-completed")}}]})],execution:{status:I7}}]},{type:kP.BLOCK,block_type:"loop",id:5500,fields:{LOOP_TYPE:{type:"radio",value:"token",readable:"Token",miscellaneous:{label:"Loop type",show_label_in_sentence:!1}},LOOP_TOKEN:{type:"text",value:"{{TOKEN_EXTENDED:DATA_TOKEN_PURCHASED_PRODUCT:UNIVERSAL:WC:PURCHASED_PRODUCT}}",miscellaneous:{label:"Loopable token",show_label_in_sentence:!1}}},modifiers:[],execution:{status:I1,date_started:"March 26, 2026 11:50 AM",date_ended:"March 26, 2026 11:51 AM",date_elapsed:{seconds:42,human_readable:"42 seconds"},tokens:{"TOKEN_EXTENDED:DATA_TOKEN_PURCHASED_PRODUCT:UNIVERSAL:WC:PURCHASED_PRODUCT":"23 products"},progress:{elements_total:1,status_breakdown:[{status:I1,count:1}]}},paths:[{path_code:"LOOP-ITERATION-COMPLETED",content:[Dg([{iteration_index:0,iteration_label:"ava@automatorplugin.com",status:"completed",when:"March 26, 2026 11:50 AM",recipient:"ava@automatorplugin.com"}])]}]},{type:kP.ITEM,item_type:"action",id:5900,integration_code:"WP",code:"REDIRECT",last_known_integration_name:"WordPress",custom_name:"Trailing action not yet reached (parked behind the in-progress loop)",fields:{REDIRECTURL:{type:"url",value:"https://automatorplugin.com/thanks",miscellaneous:{label:"URL"}},_automator_custom_item_name_:{type:"text",value:"Trailing action not yet reached (parked behind the in-progress loop)",miscellaneous:{label:"Custom action label"}}},execution:{status:Dr,date_started:"",runs:[]}}]}};kP.ITEM,kP.BLOCK,kP.ITEM,kP.ITEM,kP.ITEM,kP.ITEM,kP.ITEM,kP.ITEM,kP.ITEM,kP.ITEM,kP.ITEM,C6.RESEND;let DR={RECIPE_ID:IE.recipe_id,TRIGGER_ID:1001,TOP_LEVEL_ITEM_1:1101,TOP_LEVEL_ITEM_2:1102,LOOP_BLOCK_ID:2001,LOOP_PATH_CODE:"LOOP-ITERATION-COMPLETED",LOOP_PATH_ITEM_1:3001,LOOP_PATH_ITEM_2:3002,LOOP_MODIFIER_1:2101,LOOP_MODIFIER_2:2102},DM={...IE,flow:{...IE.flow,entry:{operator:"all",triggers:[{type:kP.ITEM,item_type:"trigger",id:DR.TRIGGER_ID,integration_code:"WP",code:"WP_USER_LOGIN",is_item_on:!0,fields:{},last_known_integration_name:"WordPress",tokens:[],availability:If,tags:[]}]},content:[{type:kP.ITEM,item_type:"action",id:DR.TOP_LEVEL_ITEM_1,integration_code:"WP",code:"WP_PUBLISH_POST",is_item_on:!0,fields:{},last_known_integration_name:"WordPress",tokens:[],availability:If,tags:[]},{type:kP.ITEM,item_type:"action",id:DR.TOP_LEVEL_ITEM_2,integration_code:"WP",code:"WP_PUBLISH_POST",is_item_on:!0,fields:{},last_known_integration_name:"WordPress",tokens:[],availability:If,tags:[]},{type:kP.BLOCK,block_type:"loop",id:DR.LOOP_BLOCK_ID,availability:If,tags:[Iv],fields:{LOOP_TYPE:{type:"select",value:"users",readable:"Users",miscellaneous:{label:"Loop type"}}},modifiers:[{type:kP.BLOCK_MODIFIER,block_modifier_type:"loop_filter",id:DR.LOOP_MODIFIER_1,integration_code:"WP",code:"WP_USER_HAS_ROLE",fields:{},last_known_integration_name:"WordPress",availability:If,tags:[]},{type:kP.BLOCK_MODIFIER,block_modifier_type:"loop_filter",id:DR.LOOP_MODIFIER_2,integration_code:"WP",code:"WP_USER_HAS_ROLE",fields:{},last_known_integration_name:"WordPress",availability:If,tags:[]}],tokens:[],paths:[{path_code:DR.LOOP_PATH_CODE,content:[{type:kP.ITEM,item_type:"action",id:DR.LOOP_PATH_ITEM_1,integration_code:"WP",code:"WP_PUBLISH_POST",is_item_on:!0,fields:{},last_known_integration_name:"WordPress",tokens:[],availability:If,tags:[]},{type:kP.ITEM,item_type:"action",id:DR.LOOP_PATH_ITEM_2,integration_code:"WP",code:"WP_PUBLISH_POST",is_item_on:!0,fields:{},last_known_integration_name:"WordPress",tokens:[],availability:If,tags:[]}]}]}]}},DL={RECIPE_ID:IE.recipe_id,TRIGGER_ID:9001,SOURCE_LOOP_ID:9100,SOURCE_MODIFIER_ID:9101,TARGET_LOOP_ID:9200},DN={...IE,flow:{...IE.flow,entry:{operator:"all",triggers:[{type:kP.ITEM,item_type:"trigger",id:DL.TRIGGER_ID,integration_code:"WP",code:"WP_USER_LOGIN",is_item_on:!0,fields:{},last_known_integration_name:"WordPress",tokens:[],availability:If,tags:[]}]},content:[{type:kP.BLOCK,block_type:"loop",id:DL.SOURCE_LOOP_ID,availability:If,tags:[Iv],fields:{LOOP_TYPE:{type:"select",value:"users",readable:"Users",miscellaneous:{label:"Loop type"}}},modifiers:[{type:kP.BLOCK_MODIFIER,block_modifier_type:"loop_filter",id:DL.SOURCE_MODIFIER_ID,integration_code:"WP",code:"WP_USER_HAS_ROLE",fields:{},last_known_integration_name:"WordPress",availability:If,tags:[]}],tokens:[],paths:[{path_code:"LOOP-ITERATION-COMPLETED",content:[]}]},{type:kP.BLOCK,block_type:"loop",id:DL.TARGET_LOOP_ID,availability:If,tags:[Iv],fields:{LOOP_TYPE:{type:"select",value:"users",readable:"Users",miscellaneous:{label:"Loop type"}}},modifiers:[],tokens:[],paths:[{path_code:"LOOP-ITERATION-COMPLETED",content:[]}]}]}};function DP(e,t,i){return{...e,flow:{...e.flow,content:e.flow.content.map(e=>e.type===kP.BLOCK&&e.id===t?i(e):e)}}}(()=>{let[e,t,...i]=DM.flow.content;if(void 0===e||void 0===t)throw Error("dnd fixture derivation: expected two leading top-level content nodes");return{...DM,flow:{...DM.flow,content:[t,e,...i]}}})(),DP(DM,DR.LOOP_BLOCK_ID,e=>({...e,paths:e.paths.map(e=>e.path_code===DR.LOOP_PATH_CODE?{...e,content:[...e.content].reverse()}:e)})),DP(DM,DR.LOOP_BLOCK_ID,e=>({...e,modifiers:[...e.modifiers].reverse()})),(()=>{let e=DM.flow.content.find(e=>e.type===kP.ITEM&&e.id===DR.TOP_LEVEL_ITEM_1);if(void 0===e||e.type!==kP.ITEM)throw Error("dnd fixture derivation: top-level item to move not found");return DP({...DM,flow:{...DM.flow,content:DM.flow.content.filter(t=>t!==e)}},DR.LOOP_BLOCK_ID,t=>({...t,paths:t.paths.map(t=>t.path_code===DR.LOOP_PATH_CODE?{...t,content:[e,...t.content]}:t)}))})(),(()=>{let e=DN.flow.content.find(e=>e.type===kP.BLOCK&&e.id===DL.SOURCE_LOOP_ID);if(void 0===e||e.type!==kP.BLOCK)throw Error("dnd fixture derivation: source loop not found");let[t]=e.modifiers;if(void 0===t)throw Error("dnd fixture derivation: source loop carries no modifier to move");return DP(DP(DN,DL.SOURCE_LOOP_ID,e=>({...e,modifiers:[]})),DL.TARGET_LOOP_ID,e=>({...e,modifiers:[t]}))})();let Dz={INTEGRATION:"integration",ITEM:"item",BLOCK:"block",UNKNOWN:"unknown"};rT(Dz);let DU={RESOLVABLE:"resolvable",SOURCE_OFF:"source-off"},DF=rT(DU),Dj=rE(oR(),oR()),DB=rg({source:rT([Dz.INTEGRATION]),id:oR().min(1),displayName:oR(),token:EL,integration:EZ.optional(),values:Dj.optional()}),DH=rg({source:rT([Dz.ITEM]),id:oR().min(1),displayName:oR(),token:Cn,integration:EZ.optional(),status:DF}),DV=rg({source:rT([Dz.BLOCK]),id:oR().min(1),displayName:oR(),token:Cn,blockType:E1}),Dq=rv("source",[DH,DV]),DZ=rv("source",[DB,DH,DV,rg({source:rT([Dz.UNKNOWN]),id:oR().min(1)})]);if(void 0===Sa.WC)throw Error("Fixture setup: Mock_Integrations.WC is missing.");Dz.INTEGRATION,Sx.code,Sx.name,Dz.ITEM,DU.RESOLVABLE,Dz.BLOCK,Dz.UNKNOWN,kP.ITEM,kP.ITEM,kP.BLOCK;let DW={templates:[{id:178731,title:"When a user completes a course, send an email to the user",description:"Celebrate course completions automatically by sending learners a congratulatory email the moment they finish.",tags:[],integration_codes:["WC","EMAILS"],dependencies_met:!0,priority:0,blocks:[]},{id:178729,title:"When users complete H5P content, add a tag to their CRM contact",description:"Personalize learning around user activity by connecting H5P completions to your CRM, allowing sites to build automations and campaigns structured around learning progress.",tags:[{type:Eu.LICENSE,scenario_id:y9.PRO_BASIC,label:"Pro",color:"success"}],integration_codes:["H5P","GH"],dependencies_met:!1,priority:10,blocks:["loop"]},{id:178733,title:"When a form is submitted, send a message to a Slack channel",description:"Keep the team in the loop by posting every form submission to Slack.",tags:[],integration_codes:["SLACK"],dependencies_met:!0,priority:0,blocks:[]},{id:178740,title:"When articles receive negative ratings, create a task to investigate why",description:"Automatically create tasks to investigate possible issues or bad content when articles receive negative user ratings.",tags:[],integration_codes:["HT_KB","CLICKUP"],dependencies_met:!1,priority:0,blocks:[]},{id:178741,title:"When users cancel a recurring donation, create a support ticket to follow up",description:"Take action when users cancel recurring donations by creating a new support ticket so that someone can follow up.",tags:[],integration_codes:["GIVEWP","FLSUPPORT"],dependencies_met:!1,priority:0,blocks:[]},{id:178742,title:"When new courses are published, loop through all users with a certain access level and notify them",description:"Notify all users when a new course (or a post of any type) is published by looping through all users matching access level criteria.",tags:[],integration_codes:["WP","RC","EMAILS"],dependencies_met:!1,priority:0,blocks:[]},{id:178743,title:"When users attain a specific rank, add a tag to their CRM contact",description:"Add an identifier to CRM contact records when users attain a certain rank, allowing sites to target users in campaigns and automations by their rank.",tags:[],integration_codes:["GP","GH"],dependencies_met:!1,priority:0,blocks:[]},{id:178744,title:"When users submit a form with a specific value in a field, add them to an audience",description:"Use form submissions to optionally add users to a Mailchimp audience. Perhaps checking a checkbox in a form field adds the user to an audience that are the basis for future email campaigns.",tags:[],integration_codes:["FI","MAILCHIMP"],dependencies_met:!0,priority:0,blocks:[]},{id:178745,title:"When users complete a course, send them an offer to buy another course",description:"",tags:[],integration_codes:["TUTORLMS","WC"],dependencies_met:!0,priority:0,blocks:[]},{id:178746,title:"When users submit a survey, reward them with store credit and confirm via SMS",description:"Show users your appreciation for completing a survey by awarding them store credit on submission. You can even let them know about the credit that's been added to their account via SMS.",tags:[],integration_codes:["USERFEEDBACK","ACFWC","TWILIO"],dependencies_met:!1,priority:0,blocks:[]},{id:178747,title:"When users redeem a code with a specific prefix, add a role to the user's roles",description:"Create a code batch with Uncanny Codes that can be linked to adding a WordPress role to a user. By targeting a specific prefix, you could even link multiple batches to adding roles to users if they share a common prefix.",tags:[],integration_codes:["UNCANNYCODE","UM"],dependencies_met:!1,priority:0,blocks:[]},{id:178748,title:"Whenever users log in, record the entry in Airtable",description:"Track all logins to your WordPress site automatically in an Airtable base, including information about the user, timestamps, and other records.",tags:[],integration_codes:["WP","AIRTABLE"],dependencies_met:!0,priority:0,blocks:[]},{id:178749,title:"When users submit a form, remove them from all mailing lists",description:"When users submit a removal request via a form on your website, remove them from all mailing lists in ActiveCampaign.",tags:[],integration_codes:["CF7","ACTIVE_CAMPAIGN"],dependencies_met:!0,priority:0,blocks:[]},{id:178750,title:"When a user's field is updated to a specific value, add a tag to the CRM contact",description:"Update contact records by adding CRM tags whenever a field is updated to a specific value in Advanced Custom Fields.",tags:[],integration_codes:["ADVANCED","ACTIVE_CAMPAIGN"],dependencies_met:!1,priority:0,blocks:[]}],categories:[{id:-1,name:"All templates",slug:"all",count:14,template_ids:[]},{id:12,name:"E-learning",slug:"e-learning",count:2,template_ids:[178731,178729]}]};CC.REQUEST,CC.REQUEST;let DG=[{id:"send-email",name:"Send test email",description:"Ensure everything looks perfect before sending it out! **Send a test email to preview** your content and make any **necessary adjustments**.",required:!0,run_mode:CC.REQUEST,button_label:"Send email",fields:[{option_code:"EMAIL_ADDRESS",input_type:kU.EMAIL,label:"Email address",required:!0}]}],DK=[{id:"receive-webhook",name:"Receive a webhook",description:"Send a request to the webhook URL above to capture a sample.",required:!0,run_mode:CC.LISTEN,button_label:"Listen for webhook",fields:[],poll:{interval_ms:1e3,timeout_ms:6e4}}],DY=Math.floor(Date.now()/1e3)-120,DQ={status:CT.PASSED,output:{heading:"Test email sent successfully!",content:"Check your inbox to review the preview."},completed_at:DY,formatted_date:"July 6, 2026 3:41 pm"};CT.FAILED;let DX={status:CT.RUNNING},DJ={status:CT.PASSED,output:{heading:"Captured a sample.",content:`| Field | Value | | --- | --- | | Email | jane@example.com | | Source | webhook |`},completed_at:DY,formatted_date:"July 6, 2026 4:15 pm"},D1={status:CT.FAILED,output:{heading:"No webhook was received within the time limit.",content:"Send a request to the webhook URL and try again."},completed_at:DY,formatted_date:"July 6, 2026 4:16 pm"};TJ.LIST,TJ.DIAGRAM,TJ.LIST,TJ.DIAGRAM,TJ.DIAGRAM,TJ.LIST;let D0="https://localhost/wp-admin/";function D2(e){return{edit:`${D0}post.php?post=${e}&action=edit`,logs:`${D0}edit.php?post_type=uo-recipe&page=uncanny-automator-admin-logs&recipe_id=${e}`}}let D3={id:42,title:"New order to Slack",runs:1204,links:D2(42)},D4={id:17,title:"Welcome email for new members",runs:856,links:D2(17)},D6={id:63,title:"Enroll buyers in the onboarding course",runs:312,links:D2(63)},D5={id:88,title:"Tag new subscribers in Mailchimp",runs:97,links:D2(88)},D8={id:105,title:"Notify the team about new form entries",runs:14,links:D2(105)};D2(120);let D7=[D3,D4,D6,D5,D8],D9={id:"9401",run:{recipe_id:42,run_number:3,log_id:9401},recipe:{id:42,title:"Welcome new members",edit_url:"https://example.com/wp-admin/post.php?post=42&action=edit"},user:{id:7,name:"Sam Rivera",email:"sam@example.com",avatar_url:"",edit_url:"https://example.com/wp-admin/user-edit.php?user_id=7"},status:I1,date:"July 2, 2026 9:48 am",date_short:"Jul 2",date_relative:null,date_gmt:"2026-07-02T09:48:00Z",integrations:["WP","SLACK"]};D9.status,D9.status,Cq.WAITING,CK.NORMAL,CW.WARNING,Cq.ACTIVE,CK.NORMAL,CW.WARNING,Cq.TERMINAL_SUCCESS,CK.NORMAL,CW.SUCCESS,Cq.TERMINAL_FAILURE,CK.NORMAL,CW.ERROR,Array.from({length:10},(e,t)=>({recipe_id:42,recipe_title:"Welcome new members",run_number:4+t,log_id:9501+t}));let Ae={all:()=>["recipe"],detail:e=>[...Ae.all(),e]};async function At(e){let[,t]=e.queryKey,i=o5().int().positive().parse(t);if(d4.DEV.RETURN_MOCK_DATA){await new Promise(e=>setTimeout(e,d4.DEV.MOCK_DELAY_MS));let e=CV.parse({...IT,recipe_id:i});return Il.parse(e)}let a=await dV({endpoint:`recipe/${i}`,responseSchema:Iu,method:"GET",useEnvelope:!0});return Il.parse(a.recipe)}let Ai=e=>({queryKey:Ae.detail(e),queryFn:At,staleTime:1/0}),Aa=/^\{\{([^{}]+)\}\}$/;function An(e){return Aa.exec(e)?.[1]}function Ao(e,t,i){if(""===e)return;if(void 0!==t){let a=function(e,t,i){for(let a of e.flow.entry.triggers){let e=Ar(a,t,i);if(void 0!==e)return e}for(let a of e.flow.content){let e=Ir(a)?function e(t,i,a){let n=function(e,t){let i=e.tokens.find(e=>e.id===t);if(void 0!==i)return{source:Dz.BLOCK,id:t,displayName:i.name,token:i,blockType:e.block_type}}(t,i);if(void 0!==n)return n;for(let n of t.paths)for(let t of n.content){let n=Ir(t)?e(t,i,a):Ar(t,i,a);if(void 0!==n)return n}}(a,t,i):Ar(a,t,i);if(void 0!==e)return e}}(t,e,i);if(void 0!==a)return a}if(void 0===i)return;let a=function(e,t){for(let i of Object.values(t)){let t=i.tokens?.[e];if(void 0!==t)return{source:Dz.INTEGRATION,id:e,displayName:t.name,token:t,integration:i}}return function(e,t){let i=[];for(let n of Object.values(t))for(let t of Object.values(n.tokens??{})){var a;let o=t.config;void 0!==o&&(a=t.code,e.startsWith(`${a}:`))&&i.push({token:t,config:o,integration:n})}for(let t of(i.sort((e,t)=>t.token.code.length-e.token.code.length),i)){let i;try{i=function(e,t){let i=lV(e),a=lV(t);if(i.length!==a.length)throw Error(`parseFieldTokenId: part-count mismatch between id_template "${e}" (${i.length}) and inserted id "${t}" (${a.length}).`);let n={};for(let e=0;e<i.length;e++){let t=i[e]??"",o=a[e]??"",r=An(t);if(void 0!==r){n[r]=o;continue}if(t!==o)throw Error(`parseFieldTokenId: static template part "${t}" does not match inserted part "${o}".`)}return n}(t.config.id_template,e)}catch{continue}return{source:Dz.INTEGRATION,id:e,displayName:function(e,t){return SH(e).map(e=>e.kind===SF.TEXT?e.text:e.kind===SF.SHORTCODE?e.raw:(void 0!==e.fieldCode?t[e.fieldCode]:void 0)??e.label).join("")}(t.config.name_template,i),token:t.token,integration:t.integration,values:i}}}(e,t)}(e,i);return void 0!==a?a:{source:Dz.UNKNOWN,id:e}}function Ar(e,t,i){let a=e.tokens.find(e=>e.id===t);if(void 0===a)return;let n=i?.[e.integration_code];return{source:Dz.ITEM,id:t,displayName:a.name,token:a,status:e.is_item_on?DU.RESOLVABLE:DU.SOURCE_OFF,...void 0!==n?{integration:n}:{}}}let As=["blocks","all"];async function Al(){return d4.DEV.RETURN_MOCK_DATA?(await new Promise(e=>setTimeout(e,d4.DEV.MOCK_DELAY_MS)),Ct.parse(Im)):await dV({endpoint:"blocks/get",responseSchema:Ct,method:"GET",useEnvelope:!1})}let Ac={queryKey:As,queryFn:Al,staleTime:1/0};async function Ad(){return dW.fetchQuery({queryKey:As,queryFn:Al,staleTime:1/0})}let Au={FLAT:"flat",BOX:"box"},Ap=rT(Au),Ah={XS:"xs",SM:"sm",MD:"md",LG:"lg"},Ag=rT(Ah);var Am=a(6916),Af=a.n(Am),Ay=function(e,t,i,a){var n,o=arguments.length,r=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(r=(o<3?n(r):o>3?n(t,i,r):n(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r};let Ab=class extends ld{constructor(){super(...arguments),this.size=Ah.MD,this.variant=Au.FLAT,this.blocksController=new vE(this,{...Ac,enabled:!1})}static{this.styles=sf`${sm(Af())}`}willUpdate(e){if(lQ(this,"code",E1,e,"uap-d-recipe-block-icon"),lQ(this,"size",Ag,e,"uap-d-recipe-block-icon"),lQ(this,"variant",Ap,e,"uap-d-recipe-block-icon"),e.has("code")){let e=rK(this.code)&&!rY(this.code);this.blocksController.options.enabled!==e&&this.blocksController.setOptions({enabled:e})}}render(){if(rY(this.code))return;let{status:e,data:t,error:i,isLoading:a,isFetching:n,isError:o}=this.blocksController.result;if(a)return this.templatePlaceholder();if(o)return d4.DEV.SHOW_CONSOLE_MESSAGES&&console.error(`Error fetching blocks for icon (block: ${this.code}):`,i),this.templateError();if("success"===e&&t){let e=t[this.code];if(!e)return this.templateError();let i={"--uap--d--recipe--block-icon--icon-bg":`var( --uas--color--tag-${e.details.primary_color}-container )`,"--uap--d--recipe--block-icon--icon-color":`var( --uas--color--tag-on-${e.details.primary_color}-container )`};return s1` <div class="icon" size=${this.size} variant=${this.variant} style=${cd(i)} > <uas-icon code="${e.details.icon}" icon-pack="duotone" ></uas-icon> </div> `}if("pending"===e||n&&!t)return this.templatePlaceholder()}templatePlaceholder(){return s1` <div class="icon" size=${this.size}> <uas-skeleton width="1em" height="1em"></uas-skeleton> </div> `}templateError(){return s1` <div class="icon icon--error" size=${this.size}> <uas-icon code="circle-exclamation"></uas-icon> </div> `}};Ay([l0({type:String})],Ab.prototype,"code",void 0),Ay([l0({type:String})],Ab.prototype,"size",void 0),Ay([l0({type:String})],Ab.prototype,"variant",void 0),Ab=Ay([lJ("uap-d-recipe-block-icon")],Ab);let Av={MOUSEENTER:"mouseenter",MOUSELEAVE:"mouseleave",MOUSEMOVE:"mousemove",MOUSEOVER:"mouseover",MOUSEOUT:"mouseout",MOUSEDOWN:"mousedown",POINTER_DOWN:"pointerdown",POINTER_UP:"pointerup",POINTER_MOVE:"pointermove",POINTER_OVER:"pointerover",POINTER_OUT:"pointerout",POINTER_ENTER:"pointerenter",POINTER_LEAVE:"pointerleave",POINTER_CANCEL:"pointercancel",GOT_POINTER_CAPTURE:"gotpointercapture",LOST_POINTER_CAPTURE:"lostpointercapture",CLICK:"click"},A_=rT(Av),Aw={TOP:"top",BOTTOM:"bottom",LEFT:"left",RIGHT:"right"},Ax=rT(Aw),Ak=sf`:host{display:inline-block}.tooltip{position:relative}.tooltip__target{display:inline-flex;anchor-name:--tooltip-target}.tooltip__content{position:fixed;position-anchor:--tooltip-target;position-area:block-start;position-try-fallbacks:flip-block,flip-inline;margin:0;box-sizing:border-box;border:none;overflow:visible;font-family:var(--uas--typography--body-small-font-family);font-size:var(--uas--typography--body-small-font-size);line-height:var(--uas--typography--body-small-line-height);font-weight:var(--uas--typography--body-small-font-weight);letter-spacing:var(--uas--typography--body-small-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-weight:500;text-align:center;width:max-content;color:var(--uas--tooltip--custom-color, var(--uas--tooltip--color));background-color:var(--uas--tooltip--custom-background, var(--uas--tooltip--background));border-radius:var(--uas--tooltip--custom-border-radius, var(--uas--tooltip--border-radius));padding:var(--uas--tooltip--custom-padding, var(--uas--tooltip--padding));min-width:var(--uas--tooltip--custom-min-width, var(--uas--tooltip--min-width));max-width:var(--uas--tooltip--custom-max-width, var(--uas--tooltip--max-width));opacity:0;transition:opacity var(--uas--tooltip--custom-transition, var(--uas--tooltip--transition)),overlay var(--uas--tooltip--custom-transition, var(--uas--tooltip--transition)) allow-discrete,display var(--uas--tooltip--custom-transition, var(--uas--tooltip--transition)) allow-discrete}.tooltip__content[placement=top],.tooltip__content[placement=bottom]{margin-block:var(--uas--tooltip--custom-distance-from-target, var(--uas--tooltip--distance-from-target))}.tooltip__content[placement=left],.tooltip__content[placement=right]{margin-inline:var(--uas--tooltip--custom-distance-from-target, var(--uas--tooltip--distance-from-target))}.tooltip__content[placement=bottom]{position-area:block-end}.tooltip__content[placement=left]{position-area:inline-start}.tooltip__content[placement=right]{position-area:inline-end}.tooltip__content:popover-open{display:block;opacity:1}@starting-style{.tooltip__content:popover-open{opacity:0}}.tooltip__content::after{content:"";position:absolute;width:var(--uas--tooltip--custom-arrow-size, var(--uas--tooltip--arrow-size));height:var(--uas--tooltip--custom-arrow-size, var(--uas--tooltip--arrow-size));background-color:var(--uas--tooltip--custom-background, var(--uas--tooltip--background));transform:rotate(45deg)}.tooltip__content[placement=top]::after{inset-block-end:calc(var(--uas--tooltip--custom-arrow-size, var(--uas--tooltip--arrow-size))/-2);inset-inline-start:calc(50% - var(--uas--tooltip--custom-arrow-size, var(--uas--tooltip--arrow-size))/2)}.tooltip__content[placement=bottom]::after{inset-block-start:calc(var(--uas--tooltip--custom-arrow-size, var(--uas--tooltip--arrow-size))/-2);inset-inline-start:calc(50% - var(--uas--tooltip--custom-arrow-size, var(--uas--tooltip--arrow-size))/2)}.tooltip__content[placement=left]::after{inset-inline-end:calc(var(--uas--tooltip--custom-arrow-size, var(--uas--tooltip--arrow-size))/-2);inset-block-start:calc(50% - var(--uas--tooltip--custom-arrow-size, var(--uas--tooltip--arrow-size))/2)}.tooltip__content[placement=right]::after{inset-inline-start:calc(var(--uas--tooltip--custom-arrow-size, var(--uas--tooltip--arrow-size))/-2);inset-block-start:calc(50% - var(--uas--tooltip--custom-arrow-size, var(--uas--tooltip--arrow-size))/2)}@media(prefers-reduced-motion: reduce){.tooltip__content{transition:none}}`;var AE=function(e,t,i,a){var n,o=arguments.length,r=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(r=(o<3?n(r):o>3?n(t,i,r):n(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r};class AS extends ld{constructor(){super(...arguments),this.trigger=Av.MOUSEENTER,this.placement=Aw.TOP,this.minWidth=80,this.maxWidth=350,this.interactive=!0,this._handleTargetEnter=()=>{this.trigger!==Av.CLICK&&this._scheduleShow()},this._handleTargetLeave=()=>{this.trigger!==Av.CLICK&&this._scheduleHide()},this._handleTargetClick=()=>{this.trigger===Av.CLICK&&(this.$tooltipContent.matches(":popover-open")?this._hide():this._show())},this._handleTooltipEnter=()=>{this.interactive&&this._clearTimers()},this._handleTooltipLeave=()=>{this.interactive&&this._scheduleHide()}}willUpdate(e){lQ(this,"trigger",A_,e,"uas-tooltip"),lQ(this,"placement",Ax,e,"uas-tooltip")}render(){return s1` <div class="tooltip"> <div class="tooltip__target" @mouseenter=${this._handleTargetEnter} @mouseleave=${this._handleTargetLeave} @focusin=${this._handleTargetEnter} @focusout=${this._handleTargetLeave} @click=${this._handleTargetClick} > <slot name="target"></slot> </div> <div class="tooltip__content" popover="manual" role="tooltip" placement=${this.placement} style=${cd({"--uas--tooltip--custom-min-width":`${this.minWidth}px`,"--uas--tooltip--custom-max-width":`${this.maxWidth}px`})} @mouseenter=${this._handleTooltipEnter} @mouseleave=${this._handleTooltipLeave} > <slot></slot> </div> </div> `}disconnectedCallback(){super.disconnectedCallback(),this._clearTimers()}_scheduleShow(){this._clearTimers(),this._showTimer=window.setTimeout(()=>this._show(),300)}_scheduleHide(){this._clearTimers(),this._hideTimer=window.setTimeout(()=>this._hide(),100)}_show(){this._clearTimers(),this.$tooltipContent.matches(":popover-open")||this.$tooltipContent.showPopover()}_hide(){this._clearTimers(),this.$tooltipContent.matches(":popover-open")&&this.$tooltipContent.hidePopover()}_clearTimers(){window.clearTimeout(this._showTimer),window.clearTimeout(this._hideTimer)}}AS.styles=Ak,AE([l0({type:String})],AS.prototype,"trigger",void 0),AE([l0({type:String})],AS.prototype,"placement",void 0),AE([l0({type:Number,attribute:"min-width"})],AS.prototype,"minWidth",void 0),AE([l0({type:Number,attribute:"max-width"})],AS.prototype,"maxWidth",void 0),AE([l0({type:Boolean})],AS.prototype,"interactive",void 0),AE([l4(".tooltip__target")],AS.prototype,"$target",void 0),AE([l4(".tooltip__content")],AS.prototype,"$tooltipContent",void 0),"u">typeof customElements&&!customElements.get("uas-tooltip")&&customElements.define("uas-tooltip",AS),"u">typeof customElements&&!customElements.get("uo-tooltip")&&customElements.define("uo-tooltip",class extends AS{});let AC={XS:"xs",SM:"sm",MD:"md"},AT=rT(AC),AI=rg({code:oR().min(1)}).strict();var AD=a(7604),AA=a.n(AD),A$=function(e,t,i,a){var n,o=arguments.length,r=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(r=(o<3?n(r):o>3?n(t,i,r):n(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r};let AO=class extends ld{constructor(){super(...arguments),this.code="",this.size=AC.MD,this.editable=!1,this.hideStatus=!1,this.depth=0,this.recipeController=new vE(this,{queryKey:Ae.detail(0),queryFn:()=>Promise.reject(Error("recipe controller not enabled")),staleTime:1/0,enabled:!1}),this.integrationsController=new vE(this,SS)}static{this.styles=sf`${sm(AA())}`}willUpdate(e){lQ(this,"size",AT,e,"uap-d-recipe-token"),e.has("recipeID")&&(void 0!==this.recipeID?this.recipeController.setOptions({...Ai(this.recipeID),enabled:!0}):this.recipeController.setOptions({queryKey:Ae.detail(0),queryFn:()=>Promise.reject(Error("recipe controller not enabled")),staleTime:1/0,enabled:!1}));let t=Ao(this.code,this.recipeController.result.data,this.integrationsController.result.data),i=void 0!==this.recipeID&&this.recipeController.result.isPending;this.resolvedToken=i&&t?.source===Dz.UNKNOWN?void 0:t}get isLoading(){if(void 0!==this.name||void 0!==this.resolved)return!1;let e=this.integrationsController.result.isPending,t=void 0!==this.recipeID&&this.recipeController.result.isPending;return e||t}get resolved(){return this.resolvedToken}get displayName(){if(void 0!==this.name)return this.name;let e=this.resolved;return void 0===e?this.code:e.source===Dz.UNKNOWN?(0,lX.__)("Unknown token","uncanny-automator"):e.displayName}get integrationCode(){let e=this.resolved;if(e?.source===Dz.INTEGRATION||e?.source===Dz.ITEM)return e.integration?.code}get blockType(){let e=this.resolved;if(void 0!==e&&e.source===Dz.BLOCK)return e.blockType}get isUnknown(){return void 0===this.name&&this.resolved?.source===Dz.UNKNOWN}get status(){if(this.hideStatus)return DU.RESOLVABLE;let e=this.resolved;return e?.source===Dz.ITEM?e.status:DU.RESOLVABLE}get tokenClass(){let e=["token"];return this.isUnknown&&e.push(`token--${Dz.UNKNOWN}`),this.status!==DU.RESOLVABLE&&e.push(`token--${this.status}`),e.join(" ")}render(){return this.isLoading?s1`<span class="token" size=${this.size}><uas-skeleton width="40px"></uas-skeleton></span>`:this.editable&&!this.isUnknown?this.templateButton():this.templateInert()}templateButton(){return s1` <button type="button" class=${this.tokenClass} size=${this.size} @click=${this.onClick} > ${this.templateContent()} </button> `}templateInert(){return s1` <span class=${this.tokenClass} size=${this.size} > ${this.templateContent()} </span> `}templateContent(){return this.isUnknown?s1` <uas-tooltip class="token__tooltip"> <span slot="target" class="token__target"> ${this.templateIcon()} ${this.templateName()} </span> ${this.code} </uas-tooltip> `:s1` ${this.templateIcon()} ${this.templateName()} ${this.templateStatusIcon()} `}templateIcon(){let e=this.blockType;if(!rY(e))return s1` <span class="token__icon"> <uap-d-recipe-block-icon code=${e} variant="box" size="xs"></uap-d-recipe-block-icon> </span> `;let t=this.integrationCode;return rY(t)?s1` <span class="token__icon"> <uas-icon code="circle-question"></uas-icon> </span> `:s1` <span class="token__icon"> <uap-d-integrations-icon code=${t} size="xs"></uap-d-integrations-icon> </span> `}templateName(){return s1`<span class="token__name">${this.templateDisplayName()}</span>`}templateDisplayName(){let e=SW(this.displayName);return 1===e.length&&e[0]?.kind===SZ.TEXT?s1`${this.displayName}`:e.map(e=>this.templateNameSegment(e))}templateNameSegment(e){return e.kind===SZ.TEXT?s1`${e.text}`:this.depth>=3?s1`${`{{${e.code}}}`}`:s1`<uap-d-recipe-token class="token__nested" code=${e.code} size=${this.size} .recipeID=${this.recipeID} ?hide-status=${this.hideStatus} .depth=${this.depth+1} ></uap-d-recipe-token>`}templateStatusIcon(){return this.status===DU.SOURCE_OFF?s1` <span class="token__status-icon"> <uas-icon code="triangle-exclamation"></uas-icon> </span> `:s3}onClick(e){lw({element:this,eventName:"uap.d.recipe.token.edit",data:{code:this.code},schema:AI,options:{bubbles:!0,composed:!0}})}};function AR(e,t){return(e[t]?.value??"").toString().trim()}A$([l0({type:String})],AO.prototype,"code",void 0),A$([l0({type:String})],AO.prototype,"name",void 0),A$([l0({type:String})],AO.prototype,"size",void 0),A$([l0({type:Number,attribute:"recipe-id"})],AO.prototype,"recipeID",void 0),A$([l0({type:Boolean,reflect:!0})],AO.prototype,"editable",void 0),A$([l0({type:Boolean,attribute:"hide-status"})],AO.prototype,"hideStatus",void 0),A$([l0({type:Number,attribute:!1})],AO.prototype,"depth",void 0),AO=A$([lJ("uap-d-recipe-token")],AO);var AM=a(1825),AL=a.n(AM),AN=function(e,t,i,a){var n,o=arguments.length,r=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(r=(o<3?n(r):o>3?n(t,i,r):n(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r};let AP=class extends ld{constructor(){super(...arguments),this.rawShortcode="",this.fields={},this.size=AC.MD,this.copied=!1,this.feedbackTimer=0}static{this.styles=sf`${sm(AL())}`}disconnectedCallback(){super.disconnectedCallback(),window.clearTimeout(this.feedbackTimer)}willUpdate(e){lQ(this,"size",AT,e,"uap-d-recipe-sentence-shortcode")}render(){let e=this.resolveShortcode(),t=!this.hasUnresolvedPlaceholder(e);return s1` <span class="shortcode" size=${this.size}> <uas-icon class="shortcode__icon" code="code"></uas-icon> <code class="shortcode__label">${e}</code> ${t?this.templateCopy(e):this.templateCopyDisabled()} </span> `}resolveShortcode(){let e=new RegExp(Sj.source,Sj.flags);return this.rawShortcode.replace(e,(e,t,i)=>void 0===i||void 0===this.fields[i]?e:AR(this.fields,i))}hasUnresolvedPlaceholder(e){return new RegExp(Sj.source).test(e)}templateCopy(e){return s1` <uas-tooltip> <span>${this.copied?(0,lX.__)("Copied!","uncanny-automator"):(0,lX.__)("Copy shortcode","uncanny-automator")}</span> <uas-button slot="target" class="shortcode__copy" color="transparent" size="xs" data-test="shortcode-copy" aria-label=${String((0,lX.__)("Copy shortcode","uncanny-automator"))} @click=${t=>{t.stopPropagation(),this.copy(e)}} > <uas-icon class=${this.copied?"shortcode__copy-icon shortcode__copy-icon--copied":"shortcode__copy-icon"} code=${this.copied?"check":"copy"} ></uas-icon> </uas-button> </uas-tooltip> `}templateCopyDisabled(){return s1` <uas-tooltip> <span>${(0,lX.__)("This shortcode contains dynamic values and can't be copied as static text.","uncanny-automator")}</span> <uas-button slot="target" class="shortcode__copy" color="transparent" size="xs" data-test="shortcode-copy" disabled aria-label=${String((0,lX.__)("Copy unavailable","uncanny-automator"))} > <uas-icon code="copy"></uas-icon> </uas-button> </uas-tooltip> `}async copy(e){try{await navigator.clipboard.writeText(e)}catch{return}this.copied=!0,window.clearTimeout(this.feedbackTimer),this.feedbackTimer=window.setTimeout(()=>{this.copied=!1},2e3)}};AN([l0({type:String})],AP.prototype,"rawShortcode",void 0),AN([l0({type:Object})],AP.prototype,"fields",void 0),AN([l0({type:String})],AP.prototype,"size",void 0),AN([l2()],AP.prototype,"copied",void 0),AP=AN([lJ("uap-d-recipe-sentence-shortcode")],AP);var Az=a(6516),AU=a.n(Az),AF=function(e,t,i,a){var n,o=arguments.length,r=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(r=(o<3?n(r):o>3?n(t,i,r):n(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r};let Aj=class extends ld{constructor(){super(...arguments),this.template="",this.fields={},this.isLoading=!1,this.hideStatus=!1,this.size=AC.MD}static{e5=this}static{this.styles=sf`${sm(AU())}`}static{this.SKELETON_WIDTHS=[3,5,4,6]}willUpdate(e){lQ(this,"size",AT,e,"uap-d-recipe-sentence")}render(){return this.isLoading?s1`<span class="sentence sentence--loading" size=${this.size}><uas-skeleton .widths=${e5.SKELETON_WIDTHS}></uas-skeleton></span>`:s1`<span class="sentence" size=${this.size}>${this.templateContent()}</span>`}templateContent(){if(""===this.template)return s3;let e=SH(this.template),t=[];return e.forEach((i,a)=>{let n=e[a-1];n?.kind===SF.PLACEHOLDER&&i.kind===SF.PLACEHOLDER&&t.push(s1`<span class="sentence-plain"> </span>`);let o=this.templateSegment(i);o!==s3&&t.push(o)}),t}templateSegment(e){return e.kind===SF.TEXT?this.templatePlain(e.text):e.kind===SF.SHORTCODE?this.templateShortcode(e):this.templatePill(e)}templateShortcode(e){return s1`<uap-d-recipe-sentence-shortcode size=${this.size} .rawShortcode=${e.raw} .fields=${this.fields} ></uap-d-recipe-sentence-shortcode>`}templatePlain(e){return""===e?s3:s1`<span class="sentence-plain">${e}</span>`}templatePill(e){let t=void 0!==e.fieldCode?this.fields[e.fieldCode]:void 0;return void 0===t?this.templatePillUnfilled(e):this.templatePillFilled(t)}templatePillUnfilled(e){return s1`<span class="sentence-pill sentence-pill--unfilled">${e.label}</span>`}templatePillFilled(e){let t="automator_custom_value"===e.value?e.custom??"":void 0!==e.readable&&""!==e.readable?e.readable:e.value;return s1`<span class="sentence-pill sentence-pill--filled">${this.templatePillLabel(e)}<span class="sentence-pill-value">${this.templateFieldDisplay(t)}</span></span>`}templatePillLabel(e){let t=e.miscellaneous?.label;return e.miscellaneous?.show_label_in_sentence===!1||void 0===t||""===t?s3:s1`<span class="sentence-pill-label">${t}:</span>`}templateFieldDisplay(e){if(""===e)return this.templateEmptyValue();let t=SW(e);return 1===t.length&&t[0]?.kind===SZ.TEXT?s1`${t[0].text}`:t.map(e=>this.templateFieldSegment(e))}templateEmptyValue(){return s1`<span class="sentence-empty">(${(0,lX.__)("Empty","uncanny-automator")})</span>`}templateFieldSegment(e){return e.kind===SZ.TEXT?s1`<span>${e.text}</span>`:this.templateFieldToken(e.code)}templateFieldToken(e){return s1`<uap-d-recipe-token code=${e} size=${this.size} .recipeID=${this.recipeID} ?hide-status=${this.hideStatus}></uap-d-recipe-token>`}};AF([l0({type:String})],Aj.prototype,"template",void 0),AF([l0({type:Object})],Aj.prototype,"fields",void 0),AF([l0({type:Boolean,attribute:"is-loading",reflect:!0})],Aj.prototype,"isLoading",void 0),AF([l0({type:Number,attribute:"recipe-id"})],Aj.prototype,"recipeID",void 0),AF([l0({type:Boolean,attribute:"hide-status"})],Aj.prototype,"hideStatus",void 0),AF([l0({type:String})],Aj.prototype,"size",void 0),Aj=e5=AF([lJ("uap-d-recipe-sentence")],Aj);let AB=rg({}).strict(),AH=rg({}).strict();var AV=a(4647),Aq=a.n(AV),AZ=function(e,t,i,a){var n,o=arguments.length,r=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(r=(o<3?n(r):o>3?n(t,i,r):n(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r};let AW=class extends ld{constructor(){super(...arguments),this.isSentenceLoading=!1,this.fields={},this.isDirty=!1,this.isPending=!1,this.isError=!1,this.saveDisabled=!1}static{this.styles=sf`${sm(Aq())}`}render(){let e=this.isPending||this.isError||this.saveDisabled;return s1` <uas-dialog heading=${(0,b4.escapeHTML)(this.heading??(0,lX.__)("Edit fields","uncanny-automator"))} size="lg" force-manual-close open @uas.dialog.close=${this.onDialogClose} > ${this.templateHead()} ${this.templateBody()} <uas-button slot="primary-action" ?disabled=${e} @click=${this.onSaveClick} > ${(0,lX.__)("Save","uncanny-automator")} </uas-button> <uas-button slot="secondary-action" dialog-action="close" color="secondary" > ${(0,lX.__)("Cancel","uncanny-automator")} </uas-button> </uas-dialog> `}templateHead(){let e=this.integrationCode,t=this.sentenceTemplate,i=!rY(e),a=this.isDirty,n=i||a,o=this.isSentenceLoading||!rY(t);return n||o?s1` <div class="head"> ${n?s1` <div class="head__chips"> ${i?s1` <uap-d-integrations-icon code=${e} size="xs" ></uap-d-integrations-icon> <uas-chip size="xs" .label=${s1`<uap-d-integrations-name code=${e} no-icon></uap-d-integrations-name>`} ></uas-chip> `:s3} ${a?s1` <uas-chip class="head__chip-unsaved" color="warning" size="xs" icon="circle-exclamation" label=${String((0,lX.__)("Unsaved changes","uncanny-automator"))} ></uas-chip> `:s3} </div> `:s3} ${o?s1` <div class="head__sentence"> <uap-d-recipe-sentence .recipeID=${this.recipeID} .template=${this.sentenceTemplate??""} .fields=${this.fields} ?is-loading=${this.isSentenceLoading} ></uap-d-recipe-sentence> </div> `:s3} </div> `:s3}templateBody(){return this.isPending?s1`<uap-d-fields-skeleton></uap-d-fields-skeleton>`:this.isError?s1` <uas-alert type="error"> <p>${(0,lX.__)("Failed to load fields. Close the dialog and try again.","uncanny-automator")}</p> </uas-alert> `:s1`<slot name="body"></slot>`}onDialogClose(){lw({element:this,eventName:"uap.d.fields-edit-shell.close",data:{},schema:AH,options:{bubbles:!0,composed:!0}})}onSaveClick(){lw({element:this,eventName:"uap.d.fields-edit-shell.save",data:{},schema:AB,options:{bubbles:!0,composed:!0}})}};AZ([l0({type:String,attribute:"integration-code"})],AW.prototype,"integrationCode",void 0),AZ([l0({type:Number,attribute:"recipe-id"})],AW.prototype,"recipeID",void 0),AZ([l0({type:String,attribute:"heading"})],AW.prototype,"heading",void 0),AZ([l0({type:String,attribute:"sentence-template"})],AW.prototype,"sentenceTemplate",void 0),AZ([l0({type:Boolean,attribute:"is-sentence-loading",reflect:!0})],AW.prototype,"isSentenceLoading",void 0),AZ([l0({type:Object})],AW.prototype,"fields",void 0),AZ([l0({type:Boolean,attribute:"is-dirty",reflect:!0})],AW.prototype,"isDirty",void 0),AZ([l0({type:Boolean,attribute:"is-pending",reflect:!0})],AW.prototype,"isPending",void 0),AZ([l0({type:Boolean,attribute:"is-error",reflect:!0})],AW.prototype,"isError",void 0),AZ([l0({type:Boolean,attribute:"save-disabled",reflect:!0})],AW.prototype,"saveDisabled",void 0),AW=AZ([lJ("uap-d-fields-edit-shell")],AW);let AG=":scope > .media-modal",AK=[],AY=new WeakSet;function AQ(e){let t=e.parentElement,i=e instanceof Element?e:void 0;for(;null!==t&&t!==document.body;)i=t,t=t.parentElement;return null===t?void 0:i}function AX(e){let t,i;for(let t of e)t.addedNodes.forEach(e=>{!AY.delete(e)&&e.parentNode===document.body&&e instanceof HTMLElement&&(e.matches(".mce-floatpanel, .mce-tooltip, #mce-modal-block")||null!==e.querySelector(AG))&&function(e){let t=AK[AK.length-1];void 0!==t&&(t.append(e),(e.matches(".mce-window")?e.querySelector("input, textarea, select"):e.querySelector(AG))?.focus({preventScroll:!0}))}(e)});i=void 0===(t=AK[AK.length-1])?void 0:AQ(t),i?.getAttribute("aria-hidden")==="true"&&i.removeAttribute("aria-hidden")}class AJ{constructor(e){this.host=e,e.addController(this)}hostConnected(){AK.push(this.host),(o??=new MutationObserver(AX)).observe(document.body,{childList:!0});let e=AQ(this.host);void 0!==e&&o.observe(e,{attributes:!0,attributeFilter:["aria-hidden"]})}hostDisconnected(){let e=AK.indexOf(this.host);-1!==e&&AK.splice(e,1),Array.from(this.host.children).forEach(e=>{AY.add(e),document.body.append(e)}),0===AK.length&&(o?.disconnect(),o=void 0)}}var A1=a(4084),A0=a.n(A1);let A2=class extends ld{constructor(){super(...arguments),this.overlayAdoption=new AJ(this),this.escapeGuard={handleEvent:e=>{e instanceof KeyboardEvent&&"Escape"===e.key&&e.preventDefault()},capture:!0}}static{this.styles=sf`${sm(A0())}`}render(){return s1` <div class="overlay-layer" @keydown=${this.escapeGuard}> <slot></slot> </div> `}};A2=function(e,t,i,a){var n,o=arguments.length,r=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(r=(o<3?n(r):o>3?n(t,i,r):n(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r}([lJ("uap-d-fields-overlay-layer")],A2);var A3=a(5859),A4=a.n(A3),A6=function(e,t,i,a){var n,o=arguments.length,r=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(r=(o<3?n(r):o>3?n(t,i,r):n(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r};let A5=class extends ld{constructor(){super(...arguments),this.integrationsController=new vE(this,{...SS,enabled:!1})}static{this.styles=sf`${sm(A4())}`}willUpdate(e){if(lQ(this,"modifierType",EE,e,"uap-d-integrations-block-modifier"),e.has("integrationCode")&&e.has("modifierCode")&&e.has("modifierType")){let e=rK(this.integrationCode)&&!rY(this.integrationCode)&&rK(this.modifierCode)&&!rY(this.modifierCode);this.integrationsController.options.enabled!==e&&this.integrationsController.setOptions({enabled:e})}}render(){if(rY(this.integrationCode)||rY(this.modifierCode)||rY(this.modifierType))return;let{status:e,data:t,error:i,isLoading:a,isFetching:n,isError:o}=this.integrationsController.result;return a?this.templatePlaceholder():o?(d4.DEV.SHOW_CONSOLE_MESSAGES&&console.error(`Error fetching the block modifier (integration: ${this.integrationCode}, modifier: ${this.modifierCode}):`,i),this.templateError()):"success"===e&&t?this.templateGetModifier(t):"pending"===e||n&&!t?this.templatePlaceholder():void 0}templateGetModifier(e){if(rY(this.integrationCode)||rY(this.modifierCode)||rY(this.modifierType))return;let t=e[this.integrationCode]?.block_modifiers[this.modifierType]?.[this.modifierCode];if(t)return s1` <div class="modifier"> <uap-d-integrations-icon code="${this.integrationCode}" size="xs"></uap-d-integrations-icon> <uas-markdown allowed-tags="strong" .content=${t.sentence.short.replace(/{{/g,"**").replace(/}}/g,"**")} ></uas-markdown> </div> `}templatePlaceholder(){return s1` <div class="modifier"> <uas-skeleton width="1em"></uas-skeleton> <uas-skeleton width="10em"></uas-skeleton> </div> `}templateError(){return s1` <div class="label label--error"> ${(0,lX.__)("Block modifier not found","uncanny-automator")} </div> `}};A6([l0({type:String,attribute:"modifier-type"})],A5.prototype,"modifierType",void 0),A6([l0({type:String,attribute:"integration-code"})],A5.prototype,"integrationCode",void 0),A6([l0({type:String,attribute:"modifier-code"})],A5.prototype,"modifierCode",void 0),A5=A6([lJ("uap-d-integrations-block-modifier")],A5);var A8=a(1080),A7=a.n(A8),A9=function(e,t,i,a){var n,o=arguments.length,r=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(r=(o<3?n(r):o>3?n(t,i,r):n(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r};let $e=class extends ld{static{this.styles=sf`${sm(A7())}`}willUpdate(e){lQ(this,"icon",ur,e,"uap-d-integrations-dependency-tag"),lQ(this,"size",b5,e,"uap-d-integrations-dependency-tag"),lQ(this,"scenarioID",kT,e,"uap-d-integrations-dependency-tag")}render(){if(!(rY(this.scenarioID)||rY(this.label)))return s1` <uas-chip .label="${this.label}" icon="${this.icon??s3}" size="${this.size??s3}" filled ></uas-chip> `}};A9([l0({type:String})],$e.prototype,"icon",void 0),A9([l0({type:String})],$e.prototype,"label",void 0),A9([l0({type:String})],$e.prototype,"size",void 0),A9([l0({type:String,attribute:"scenario-id"})],$e.prototype,"scenarioID",void 0),$e=A9([lJ("uap-d-integrations-dependency-tag")],$e);var $t=a(353),$i=a.n($t),$a=function(e,t,i,a){var n,o=arguments.length,r=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(r=(o<3?n(r):o>3?n(t,i,r):n(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r};let $n=class extends ld{constructor(){super(...arguments),this.integrationsController=new vE(this,{...SS,enabled:!1})}static{this.styles=sf`${sm($i())}`}willUpdate(e){if(lQ(this,"itemType",kL,e,"uap-d-integrations-item"),e.has("integrationCode")&&e.has("itemCode")&&e.has("itemType")){let e=rK(this.integrationCode)&&!rY(this.integrationCode)&&rK(this.itemCode)&&!rY(this.itemCode);this.integrationsController.options.enabled!==e&&this.integrationsController.setOptions({enabled:e})}}render(){if(rY(this.integrationCode)||rY(this.itemCode)||rY(this.itemType))return;let{status:e,data:t,error:i,isLoading:a,isFetching:n,isError:o}=this.integrationsController.result;return a?this.templatePlaceholder():o?(d4.DEV.SHOW_CONSOLE_MESSAGES&&console.error(`Error fetching the item (integration: ${this.integrationCode}, item: ${this.itemCode}):`,i),this.templateError()):"success"===e&&t?this.templateGetItem(t):"pending"===e||n&&!t?this.templatePlaceholder():void 0}templateGetItem(e){if(rY(this.integrationCode)||rY(this.itemCode)||rY(this.itemType))return;let t=e[this.integrationCode]?.items[this.itemType]?.[this.itemCode];if(t)return s1` <div class="item"> <uap-d-integrations-icon code="${this.integrationCode}" size="xs"></uap-d-integrations-icon> <uas-markdown allowed-tags="strong" .content=${t.sentence.short.replace(/{{/g,"**").replace(/}}/g,"**")} ></uas-markdown> </div> `}templatePlaceholder(){return s1` <div class="item"> <uas-skeleton width="1em"></uas-skeleton> <uas-skeleton width="10em"></uas-skeleton> </div> `}templateError(){return s1` <div class="label label--error"> ${(0,lX.__)("Item not found","uncanny-automator")} </div> `}};$a([l0({type:String,attribute:"item-type"})],$n.prototype,"itemType",void 0),$a([l0({type:String,attribute:"integration-code"})],$n.prototype,"integrationCode",void 0),$a([l0({type:String,attribute:"item-code"})],$n.prototype,"itemCode",void 0),$n=$a([lJ("uap-d-integrations-item")],$n);var $o=a(5938),$r=a.n($o),$s=function(e,t,i,a){var n,o=arguments.length,r=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(r=(o<3?n(r):o>3?n(t,i,r):n(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r};let $l=class extends ld{constructor(){super(...arguments),this.outlined=!1}static{this.styles=sf`${sm($r())}`}willUpdate(e){lQ(this,"icon",ur,e,"uap-d-integrations-tag"),lQ(this,"color",pR,e,"uap-d-integrations-tag"),lQ(this,"size",b5,e,"uap-d-integrations-tag"),lQ(this,"type",Ep,e,"uap-d-integrations-tag"),lQ(this,"scenarioID",Ef,e,"uap-d-integrations-tag")}render(){if(rY(this.type)||rY(this.scenarioID)||rY(this.label))return;let e=s1` <uas-chip .label="${this.label}" icon="${this.icon??s3}" color="${this.color??s3}" size="${this.size??s3}" ?filled="${!this.outlined}" ></uas-chip> `;return this.helper?s1` <div class="tooltip-wrapper"> <uas-tooltip min-width="150"> ${this.helper} <div slot="target"> ${e} </div> </uas-tooltip> </div> `:e}};$s([l0({type:String})],$l.prototype,"icon",void 0),$s([l0({type:String})],$l.prototype,"label",void 0),$s([l0({type:String})],$l.prototype,"helper",void 0),$s([l0({type:String})],$l.prototype,"color",void 0),$s([l0({type:String})],$l.prototype,"size",void 0),$s([l0({type:Boolean})],$l.prototype,"outlined",void 0),$s([l0({type:String})],$l.prototype,"type",void 0),$s([l0({type:String,attribute:"scenario-id"})],$l.prototype,"scenarioID",void 0),$l=$s([lJ("uap-d-integrations-tag")],$l),[...Sk];let $c={all:()=>["integrations","scoped"],detail:e=>[...$c.all(),e]};async function $d(e){let[,,t]=e.queryKey;if(d4.DEV.RETURN_MOCK_DATA)switch(await new Promise(e=>setTimeout(e,d4.DEV.MOCK_DELAY_MS)),t){case kM.TRIGGER:return EK.parse(Sy);case Ek:return EK.parse(Sv);case Ex:return EK.parse(S_);default:return EK.parse(Sf)}if(!kL.safeParse(t).success)throw Error("getIntegrationsScoped: scope is invalid");return await dV({endpoint:`integrations/get/${t}`,responseSchema:EK,method:"GET",useEnvelope:!1})}let $u=e=>{let t=kL.safeParse(e);if(!t.success){let i=t.error.issues.map(e=>e.message).join(", ");throw Error(`getIntegrationsControllerOptions: Scope is invalid. Received: "${String(e)}". Issues: ${i}`)}let i=t.data;return{queryKey:$c.detail(i),queryFn:$d,staleTime:1/0}};async function $p(e,t){let i=(await SC())[e];if(!i)throw Error(`Integration not found: ${e}`);let a=Object.values(i.block_modifiers).flatMap(e=>Object.values(e)).find(e=>e.code===t);if(!a)throw Error(`Block modifier not found: ${t}`);return a}kU.TEXT,kU.TEXT,kU.TEXTAREA,kU.FILE,JSON.stringify([{id:9001,filename:"invoice-2026-01.pdf",url:"https://automatorplugin.com/wp-content/uploads/invoice-2026-01.pdf",mime:"application/pdf",filesizeHumanReadable:"184 KB"}]);let $h=[{option_code:"POST_TYPE",input_type:kU.SELECT,label:"Post type",required:!0,options:[{value:"post",text:"Post"},{value:"page",text:"Page"},{value:"product",text:"Product"}]},{option_code:"STATUS",input_type:kU.RADIO,label:"Status",required:!0,default_value:"draft",options:[{value:"draft",text:"Draft"},{value:"publish",text:"Published"},{value:"private",text:"Private"}]},{option_code:"TITLE",input_type:kU.TEXT,label:"Title",required:!0,description:"The post title. **Tokens** are supported."},{option_code:"SLUG",input_type:kU.TEXT,label:"Slug",required:!1},{option_code:"CONTENT",input_type:kU.TEXTAREA,label:"Content",required:!1,description:"The post body. Supports HTML and [tokens](https://automatorplugin.com/)."},{option_code:"RICH_MESSAGE",input_type:kU.TEXTAREA,label:"Rich message",required:!1,supports_tokens:!0,supports_tinymce:!0,description:"A rich-text (TinyMCE) message body. Tokens are supported in both the Visual and Text tabs."},{option_code:"AUTHOR_EMAIL",input_type:kU.EMAIL,label:"Author email",required:!1,default_value:"{{user_email}}"},{option_code:"FEATURED_IMAGE_URL",input_type:kU.URL,label:"Featured image URL",required:!1},{option_code:"EXCERPT_LENGTH",input_type:kU.INT,label:"Excerpt length",required:!1,default_value:55},{option_code:"PRICE",input_type:kU.FLOAT,label:"Price",required:!1,default_value:0},{option_code:"PUBLISH_DATE",input_type:kU.DATE,label:"Publish date",required:!1},{option_code:"PUBLISH_TIME",input_type:kU.TIME,label:"Publish time",required:!1},{option_code:"IS_FEATURED",input_type:kU.CHECKBOX,label:"Featured post",required:!1,default_value:!1,is_toggle:!0},{option_code:"ATTACHMENT",input_type:kU.FILE,label:"Attachment",required:!1},{option_code:"POST_META",input_type:kU.REPEATER,label:"Meta",required:!1,add_row_button:"Add pair",remove_row_button:"Remove pair",fields:[{option_code:"KEY",input_type:kU.TEXT,label:"Key",required:!0},{option_code:"VALUE",input_type:kU.TEXT,label:"Value",required:!0}]},{option_code:"COLUMN_VALUES",input_type:kU.REPEATER,label:"Row",required:!0,layout:"transposed",hide_header:!0,hide_actions:!0,fields:[{option_code:"COLUMN_KEY",input_type:kU.TEXT,label:"Column",required:!0},{option_code:"COLUMN_VALUE",input_type:kU.TEXT,label:"Value",required:!0}]}];kU.TEXT,kU.SELECT,kU.SELECT,kU.SELECT,kU.SELECT,kU.SELECT,kU.SELECT,kU.SELECT,kU.SELECT,kU.SELECT,kU.SELECT,kU.SELECT,kU.SELECT,rg({integrationCode:oR().min(1),modifierType:EE,modifierCode:oR().min(1)});let $g={all:()=>["integration-block-modifier-fields-directory"],detail:(e,t,i)=>[...$g.all(),e,t,i]};rg({integrationCode:oR().min(1),itemType:kL,itemCode:oR().min(1)});let $m={all:()=>["integration-item-fields-directory"],detail:(e,t,i)=>[...$m.all(),e,t,i]};function $f(e,t,i,a){if(void 0!==e&&t&&i&&a)return e[t]?.items?.[i]?.[a]}function $y(e,t,i,a){return $f(e,t,i,a)?.sentence?.dynamic??""}function $b(e,t,i,a){if(void 0!==e&&t&&i&&a)return e[t]?.block_modifiers?.[i]?.[a]}function $v(e,t,i,a){return $b(e,t,i,a)?.sentence?.dynamic??""}function $_(e){if(void 0!==e&&EO.includes(e))return(0,lX.__)("Number","uncanny-automator");switch(e){case EA.EMAIL:return(0,lX.__)("Email","uncanny-automator");case EA.URL:return(0,lX.__)("URL","uncanny-automator");case EA.DATE:return(0,lX.__)("Date","uncanny-automator");case EA.TIME:return(0,lX.__)("Time","uncanny-automator");case EA.DATETIME:return(0,lX.__)("Date and time","uncanny-automator");case EA.BOOLEAN:return(0,lX.__)("True or false","uncanny-automator");case EA.ARRAY:return(0,lX.__)("List","uncanny-automator");default:return(0,lX.__)("Text","uncanny-automator")}}let{I:$w}={M:sN,P:sP,A:sz,C:1,L:s8,R:le,D:sV,V:s9,I:lt,H:li,N:ln,U:lo,B:la,F:lr},$x=e=>e,$k=(e,t)=>void 0===t?void 0!==e?._$litType$:e?._$litType$===t,$E=(e,t,i)=>{let a=e._$AA.parentNode,n=void 0===t?e._$AB:t._$AA;if(void 0===i)i=new $w(a.insertBefore(document.createComment(""),n),a.insertBefore(document.createComment(""),n),e,e.options);else{let t=i._$AB.nextSibling,o=i._$AM,r=o!==e;if(r){let t;i._$AQ?.(e),i._$AM=e,void 0!==i._$AP&&(t=e._$AU)!==o._$AU&&i._$AP(t)}if(t!==n||r){let e=i._$AA;for(;e!==t;){let t=$x(e).nextSibling;$x(a).insertBefore(e,n),e=t}}}return i},$S=(e,t,i=e)=>(e._$AI(t,i),e),$C={},$T=(e,t=$C)=>e._$AH=t,$I=e=>{e._$AR(),e._$AA.remove()},$D=(e,t,i)=>{let a=new Map;for(let n=t;n<=i;n++)a.set(e[n],n);return a},$A=cr(class extends cs{constructor(e){if(super(e),2!==e.type)throw Error("repeat() can only be used in text expressions")}dt(e,t,i){let a;void 0===i?i=t:void 0!==t&&(a=t);let n=[],o=[],r=0;for(let t of e)n[r]=a?a(t,r):r,o[r]=i(t,r),r++;return{values:o,keys:n}}render(e,t,i){return this.dt(e,t,i).values}update(e,[t,i,a]){let n=e._$AH,{values:o,keys:r}=this.dt(t,i,a);if(!Array.isArray(n))return this.ut=r,o;let s=this.ut??=[],l=[],c,d,u=0,p=n.length-1,h=0,g=o.length-1;for(;u<=p&&h<=g;)if(null===n[u])u++;else if(null===n[p])p--;else if(s[u]===r[h])l[h]=$S(n[u],o[h]),u++,h++;else if(s[p]===r[g])l[g]=$S(n[p],o[g]),p--,g--;else if(s[u]===r[g])l[g]=$S(n[u],o[g]),$E(e,l[g+1],n[u]),u++,g--;else if(s[p]===r[h])l[h]=$S(n[p],o[h]),$E(e,n[u],n[p]),p--,h++;else if(void 0===c&&(c=$D(r,h,g),d=$D(s,u,p)),c.has(s[u]))if(c.has(s[p])){let t=d.get(r[h]),i=void 0!==t?n[t]:null;if(null===i){let t=$E(e,n[u]);$S(t,o[h]),l[h]=t}else l[h]=$S(i,o[h]),$E(e,n[u],i),n[t]=null;h++}else $I(n[p]),p--;else $I(n[u]),u++;for(;h<=g;){let t=$E(e,l[g+1]);$S(t,o[h]),l[h++]=t}for(;u<=p;){let e=n[u++];null!==e&&$I(e)}return this.ut=r,$T(e,l),s2}}),$$=rg({summary:y5}).strict(),$O={scenario_id:pS.PRO_NOT_INSTALLED,license_owner:{name:"Leonardo Da Vinci",email:"leonardo@example.com"},current_plan:pD.LITE,status:pT.VALID,addons:{available:5,total:10},notice:{heading:"You're currently on Automator Lite",content:"It looks like you're using the Lite plan, which **doesn't include addons**. **Upgrade** to Automator Pro to get access to all addon features.",type:yQ.WARNING},cta:[{label:"Upgrade to Pro",url:"https://automatorplugin.com/pricing"}]},$R=`data:image/svg+xml;utf8,${encodeURIComponent('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 40 40"><circle cx="20" cy="20" r="20" fill="#646970"/><circle cx="20" cy="16" r="7.2" fill="#fff"/><path d="M4 40c0-7.2 7.2-12.8 16-12.8s16 5.6 16 12.8" fill="#fff"/></svg>')}`,$M={link_account:"https://automatorplugin.com/signup/?redirect_url=https%3A%2F%2Flocalhost%2Fwp-admin%2Fadmin.php%3Fpage%3Duncanny-automator-dashboard",activate_license:"https://localhost/wp-admin/edit.php?post_type=uo-recipe&page=uncanny-automator-config&tab=general&general=license",my_account:"https://automatorplugin.com/my-account/",manage_sites:"https://automatorplugin.com/checkout/purchase-history/?license_id=1234&action=manage_licenses&payment_id=5678",disconnect_account:"https://localhost/wp-admin/edit.php?post_type=uo-recipe&page=uncanny-automator-dashboard&action=discount_automator_connect&state=0123456789",connect_ai:"https://mcp.automatorplugin.com/?site=https%3A%2F%2Flocalhost"},$L={linked:!1,license_scenario:pS.PRO_NOT_INSTALLED,owner:null,plan:pD.LITE,links:$M},$N={linked:!0,license_scenario:pS.PRO_NOT_INSTALLED,owner:{name:"Leonardo Da Vinci",avatar_url:$R,is_viewer:!1},plan:pD.LITE,links:$M},$P={linked:!0,license_scenario:pS.PRO_INSTALLED_AND_ACTIVATED_AND_ELITE,owner:{name:"Leonardo Da Vinci",avatar_url:$R,is_viewer:!1},plan:pD.PRO_ELITE,links:$M},$z={linked:!1,license_scenario:pS.PRO_INSTALLED_AND_ACTIVATED_AND_EXPIRED,owner:null,plan:pD.LITE,links:$M},$U={queryKey:["license_summary"],queryFn:async function(){return d4.DEV.RETURN_MOCK_DATA?(await new Promise(e=>setTimeout(e,d4.DEV.MOCK_DELAY_MS)),y5.parse($O)):(await dV({endpoint:"license/get-summary",responseSchema:$$,method:"GET"})).summary},staleTime:1/0};var $F=a(1212),$j=a.n($F);let $B=class extends ld{constructor(){super(...arguments),this.licenseController=new vE(this,$U)}static{this.styles=sf`${sm($j())}`}render(){let{status:e,data:t,isLoading:i,isFetching:a,isError:n}=this.licenseController.result;return i?this.templatePlaceholder():n?this.templateError():"success"===e&&t?s1` <uas-alert class="license" type=${t.notice.type} heading=${t.notice.heading} > ${this.templateNoticeContent()} </uas-alert> `:"pending"===e||a&&!t?this.templatePlaceholder():void 0}templateNoticeContent(){return s1` <div class="license-notice"> ${this.templateSummary()} ${this.templateTextContent()} ${this.templateCTAS()} </div> `}templateTextContent(){if(rK(this.licenseController.result.data?.notice?.content))return s1` <div class="license-text-content"> <uas-markdown allowed-tags="strong,em" .content=${this.licenseController.result.data?.notice?.content??""} ></uas-markdown> </div> `}templateSummary(){return s1` <div class="license-summary"> ${this.templateSummaryAccount()} ${this.templateSummaryCurrentPlan()} ${this.templateSummaryAddons()} </div> `}templateSummaryAccount(){if(rK(this.licenseController.result.data?.license_owner))return s1` <div class="license-summary-item"> <uas-icon code="user"></uas-icon> <span class="license-summary-item-label"> ${(0,lX._x)("Account:","License","uncanny-automator")} </span> <span class="license-summary-item-value"> ${this.licenseController.result.data?.license_owner.name} (${this.licenseController.result.data?.license_owner.email}) </span> </div> `}templateSummaryCurrentPlan(){if(rK(this.licenseController.result.data?.current_plan))return s1` <div class="license-summary-item"> <uas-icon code="gem"></uas-icon> <span class="license-summary-item-label"> ${(0,lX._x)("Plan:","License","uncanny-automator")} </span> <span class="license-summary-item-value"> ${({[pD.LITE]:s1`<uap-d-license-tier-name tier-id=${pD.LITE}></uap-d-license-tier-name>`,[pD.PRO_BASIC]:s1`<uap-d-license-tier-name tier-id=${pD.PRO_BASIC}></uap-d-license-tier-name>`,[pD.PRO_PLUS]:s1`<uap-d-license-tier-name tier-id=${pD.PRO_PLUS}></uap-d-license-tier-name>`,[pD.PRO_ELITE]:s1`<uap-d-license-tier-name tier-id=${pD.PRO_ELITE}></uap-d-license-tier-name>`})[this.licenseController.result.data?.current_plan]} </span> </div> `}templateSummaryAddons(){if(rK(this.licenseController.result.data?.addons))return s1` <div class="license-summary-item"> <uas-icon code="medal"></uas-icon> <span class="license-summary-item-value"> <uas-markdown allowed-tags="strong" .content=${(0,b4.escapeHTML)((0,lX.sprintf)((0,lX._x)("**%1$s out of %2$s addons unlocked** with your current plan","License","uncanny-automator"),String(this.licenseController.result.data?.addons?.available??0),String(this.licenseController.result.data?.addons?.total??0)))} ></uas-markdown> </span> </div> `}templateCTAS(){if(!rY(this.licenseController.result.data?.cta))return s1` <div class="license-ctas"> ${$A(this.licenseController.result.data?.cta||[],(e,t)=>t,e=>this.templateSummaryCTAButton(e))} </div> `}templateSummaryCTAButton(e){return s1` <uas-button color="secondary" href=${r0(e.url,{campaign:br.UPGRADE_TO_PRO,content:"license-summary-cta"})} target="_blank" > ${e.icon?s1`<uas-icon code=${e.icon}></uas-icon>`:""} ${e.label} </uas-button> `}templatePlaceholder(){return s1` <uas-alert class="license"> <div style="margin-top: 2px;"> ${[3,3,5,5,1,6].map(e=>s1`<uas-skeleton width="${e}em"></uas-skeleton>`)} </div> <div class="license-notice"> <div class="license-summary"> <div class="license-summary-item"> <uas-skeleton width="1em" height="1em"></uas-skeleton> <span class="license-summary-item-label"> <uas-skeleton width="8em"></uas-skeleton> </span> <span class="license-summary-item-value"> ${[4,8,10].map(e=>s1`<uas-skeleton width="${e}em"></uas-skeleton>`)} </span> </div> <div class="license-summary-item"> <uas-skeleton width="1em" height="1em"></uas-skeleton> <span class="license-summary-item-label"> <uas-skeleton width="6em"></uas-skeleton> </span> <span class="license-summary-item-value"> <uas-skeleton width="8em"></uas-skeleton> </span> </div> <div class="license-summary-item"> <uas-skeleton width="1em" height="1em"></uas-skeleton> <span class="license-summary-item-value"> ${[1,2,1,1,4,4,2,2,4,2].map(e=>s1`<uas-skeleton width="${e}em"></uas-skeleton>`)} </span> </div> </div> <div class="license-text-content"> ${[4,3,6,6,5,3,6,6,1,5,5,1,5,8,2,3].map(e=>s1`<uas-skeleton width="${e}em"></uas-skeleton>`)} </div> </div> </uas-alert> `}templateError(){return s1` <uas-alert type="error" heading=${(0,b4.escapeHTML)((0,lX.__)("Unable to load license summary","uncanny-automator"))} > ${(0,lX.__)("There was an issue retrieving the license summary. Please reload the page to try again.","uncanny-automator")} </uas-alert> `}};$B=function(e,t,i,a){var n,o=arguments.length,r=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(r=(o<3?n(r):o>3?n(t,i,r):n(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r}([lJ("uap-d-license-summary")],$B);var $H=a(5208),$V=a.n($H),$q=function(e,t,i,a){var n,o=arguments.length,r=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(r=(o<3?n(r):o>3?n(t,i,r):n(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r};let $Z=class extends ld{constructor(){super(...arguments),this.tierId=pD.LITE}static{this.styles=sf`${sm($V())}`}render(){return s1` <div class="tier"> ${p$[this.tierId].isPro?s1`Pro`:""} ${p$[this.tierId].label} </div> `}};$q([l0({type:String,attribute:"tier-id"})],$Z.prototype,"tierId",void 0),$Z=$q([lJ("uap-d-license-tier-name")],$Z),rE(dQ,bs);let $W={[dY.NO_ACCOUNT]:$L,[dY.PRO_INACTIVE]:$z,[dY.CONNECTED]:$N,[dY.NEAR_LIMIT]:$N,[dY.AT_LIMIT]:$N,[dY.PRO]:$P,[dY.EMPTY]:$N},$G=rg({account:bs}).strict(),$K={queryKey:["account","summary"],queryFn:async function(){if(d4.DEV.RETURN_MOCK_DATA){await new Promise(e=>setTimeout(e,d4.DEV.MOCK_DELAY_MS));let e={account:$W[d4.DEV.MOCK_SCENARIO]};return $G.parse(e).account}return(await dV({endpoint:"account/get-summary",method:"GET",responseSchema:$G,useEnvelope:!0})).account},staleTime:1/0},$Y=[{title:"Connect your AI to WordPress with Uncanny Automator 8.0",url:"https://automatorplugin.com/connect-your-ai-to-wordpress/",published_at:new Date(Date.now()-1728e5).toISOString()},{title:"5 recipes that save store owners hours every week",url:"https://automatorplugin.com/recipes-for-store-owners/",published_at:new Date(Date.now()-7776e5).toISOString()},{title:"How to send WooCommerce orders to Google Sheets",url:"https://automatorplugin.com/woocommerce-orders-to-google-sheets/",published_at:new Date(Date.now()-19872e5).toISOString()}],$Q=rp(rg({title:oR().min(1),url:bi,published_at:n$(oL,{offset:!0})}).strict()),$X=rg({posts:$Q}).strict(),$J={queryKey:["news","latest"],queryFn:async function(){return d4.DEV.RETURN_MOCK_DATA?(await new Promise(e=>setTimeout(e,d4.DEV.MOCK_DELAY_MS)),$X.parse({posts:$Y}).posts):(await dV({endpoint:"news/get-latest",method:"GET",responseSchema:$X,useEnvelope:!0})).posts},staleTime:1/0};function $1(e){return new o6(nI({type:"number",coerce:!0,checks:[],...tC(e)}))}let $0=rg({recipeId:$1().int().positive()});async function $2(e){await dW.invalidateQueries({queryKey:Ae.detail(e)})}let $3={ITEM:"item",BLOCK_MODIFIER:"block_modifier"},$4=rT($3),$6=rp(rg({integration_code:oR(),code:oR()}).strict()).max(5,{error:"Maximum of 5 entity suggestions allowed."}).refine(e=>new Set(e.map(e=>`${e.integration_code}-${e.code}`)).size===e.length,{error:"Entity suggestions must be unique."}),$5=rg({suggested_entities:$6}).strict(),$8={[kM.TRIGGER]:[{integration_code:"WP",code:"WP_USER_POST_PUBLISHED"}],[kM.ACTION]:[{integration_code:"WC",code:"WCCREATEORDER"},{integration_code:"GOOGLE_CALENDAR",code:"GCALENDAR_ADDATTENDEE_CODE"},{integration_code:"WEBHOOKS",code:"WPSENDWEBHOOK"}],[Ek]:[{integration_code:"WP",code:"WP_USER_HAS_ROLE"},{integration_code:"WP",code:"WP_USER_HAS_META"}],[Ex]:[{integration_code:"GEN",code:"TOKEN_MEETS_CONDITION"}]};$8[kM.ACTION];let $7={all:()=>["ai-entity-suggestions"],detail:(e,t,i,a,n,o)=>[...$7.all(),e,t,i,a,n,o]};async function $9(e){let[,t,,i,a,n,o]=e.queryKey;if(d4.DEV.RETURN_MOCK_DATA){await new Promise(e=>setTimeout(e,d4.DEV.MOCK_DELAY_MS));let e=$8[a]??[];return $6.parse(e)}if(!o5().safeParse(t).success)throw Error("Invalid recipe ID provided. Expected a number.");if(!$4.safeParse(i).success)throw Error('Invalid kind provided. Expected "item" or "block_modifier".');if(!kL.safeParse(a).success)throw Error("Invalid scope provided. Expected a valid integration item type.");let r=`integrations/ai-entity-suggestions/${t}/${i}/${a}/${n}`,s=o?`${r}/${o}`:r;return(await dV({endpoint:s,responseSchema:$5,method:"GET",useEnvelope:!1})).suggested_entities}let Oe=(e,t,i,a,n,o)=>{let r=$4.safeParse(i);if(!r.success){let e=r.error.issues.map(e=>e.message).join(", ");throw Error(`getAiEntitySuggestionsControllerOptions: Kind is invalid. Received: "${String(i)}". Issues: ${e}`)}let s=r.data,l=kL.safeParse(a);if(!l.success){let e=l.error.issues.map(e=>e.message).join(", ");throw Error(`getAiEntitySuggestionsControllerOptions: Scope is invalid. Received: "${String(a)}". Issues: ${e}`)}let c=l.data;return{queryKey:$7.detail(e,t,s,c,n,o),queryFn:$9,staleTime:1/0}},Ot=rg({integrationCode:oR(),code:oR()});var Oi=a(1145),Oa=a.n(Oi),On=function(e,t,i,a){var n,o=arguments.length,r=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(r=(o<3?n(r):o>3?n(t,i,r):n(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r};let Oo=class extends ld{constructor(){super(...arguments),this.isDragging=!1,this.aiEntitySuggestionsController=new vE(this,{...Oe(0,0,kP.ITEM,"action",0),enabled:!1})}static{this.styles=sf`${sm(Oa())}`}willUpdate(e){lQ(this,"kind",$4,e,"uap-d-recipe-ai-entity-suggestions"),lQ(this,"scope",kL,e,"uap-d-recipe-ai-entity-suggestions"),(e.has("recipeID")||e.has("lastModifiedDateTimestamp")||e.has("kind")||e.has("scope")||e.has("parentItemID")||e.has("parentPathCode"))&&(rK(this.recipeID)&&rK(this.lastModifiedDateTimestamp)&&rK(this.kind)&&rK(this.scope)&&rK(this.parentItemID)?this.aiEntitySuggestionsController.setOptions({...Oe(this.recipeID,this.lastModifiedDateTimestamp,this.kind,this.scope,this.parentItemID,this.parentPathCode),enabled:!0}):this.aiEntitySuggestionsController.options.enabled&&this.aiEntitySuggestionsController.setOptions({enabled:!1}))}render(){if(!this.recipeID||!this.lastModifiedDateTimestamp||!this.kind||!this.scope||!this.parentItemID)return;let{status:e,data:t,error:i,isLoading:a,isFetching:n,isError:o}=this.aiEntitySuggestionsController.result;return s1` <div class="suggestions"> <div class="suggestions-heading"> <uas-icon-ai-agent ?loading=${a} type="gradient" class="suggestions-heading-icon" ></uas-icon-ai-agent> <div class="suggestions-heading-text">${this.templateHeadingTitle()}</div> </div> ${((e,t)=>{for(let i of t)if(i[0]===e)return(0,i[1])()})(!0,[[a,()=>this.templatePlaceholder()],[o,()=>(d4.DEV.SHOW_CONSOLE_MESSAGES&&console.error(i),s1``)],["success"===e,()=>t?this.templateSuggestions(t):(0,lX.__)("Keep editing your recipe so Automator AI can suggest great items!","uncanny-automator")],["pending"===e||n&&!t,()=>this.templatePlaceholder()]])} </div> `}handleSuggestionClick(e){lw({element:this,eventName:"uap.d.recipe.ai-entity-suggestions.selected",data:{integrationCode:e.integration_code,code:e.code},schema:Ot,options:{bubbles:!0,composed:!0}})}templateHeadingTitle(){let{isError:e}=this.aiEntitySuggestionsController.result;return e?(0,lX.__)("Keep editing your recipe so Automator AI can suggest great items!","uncanny-automator"):(0,lX.__)("You might be looking for...","uncanny-automator")}templateSuggestions(e){if(this.scope)return s1` <div class="suggestions-items"> <div class="suggestions-items-content"> ${e.map(e=>s1` <uas-button color="transparent" size="sm" class="suggestions-item" ?disabled=${this.isDragging} @click=${()=>this.handleSuggestionClick(e)} > ${this.kind===kP.BLOCK_MODIFIER?s1` <uap-d-integrations-block-modifier modifier-type=${this.scope??s3} integration-code="${e.integration_code}" modifier-code="${e.code}" ></uap-d-integrations-block-modifier> `:s1` <uap-d-integrations-item item-type=${this.scope??s3} integration-code="${e.integration_code}" item-code="${e.code}" ></uap-d-integrations-item> `} </uas-button> `)} </div> </div> `}templatePlaceholder(){return s1` <div class="suggestions-items"> <div class="suggestions-items-content"> ${Array.from({length:5}).map(()=>s1` <div class="suggestions-item suggestions-item--placeholder"> <uas-skeleton width="1em"></uas-skeleton> <uas-skeleton width="10em"></uas-skeleton> </div> `)} </div> </div> `}};On([l0({type:Number,attribute:"recipe-id"})],Oo.prototype,"recipeID",void 0),On([l0({type:Number,attribute:"last-modified-date-timestamp"})],Oo.prototype,"lastModifiedDateTimestamp",void 0),On([l0({type:String})],Oo.prototype,"kind",void 0),On([l0({type:String})],Oo.prototype,"scope",void 0),On([l0({type:String,attribute:"parent-item-id"})],Oo.prototype,"parentItemID",void 0),On([l0({type:String,attribute:"parent-path-code"})],Oo.prototype,"parentPathCode",void 0),On([l2()],Oo.prototype,"isDragging",void 0),Oo=On([lJ("uap-d-recipe-ai-entity-suggestions")],Oo);var Or=a(2158),Os=a.n(Or),Ol=function(e,t,i,a){var n,o=arguments.length,r=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(r=(o<3?n(r):o>3?n(t,i,r):n(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r};let Oc=class extends ld{constructor(){super(...arguments),this.noIcon=!1,this.blocksController=new vE(this,{...Ac,enabled:!1})}static{this.styles=sf`${sm(Os())}`}willUpdate(e){if(lQ(this,"code",E1,e,"uap-d-recipe-block-name"),e.has("code")){let e=rK(this.code)&&!rY(this.code);this.blocksController.options.enabled!==e&&this.blocksController.setOptions({enabled:e})}}render(){if(rY(this.code))return;let{status:e,data:t,error:i,isLoading:a,isFetching:n,isError:o}=this.blocksController.result;if(a)return this.templatePlaceholder();if(o)return d4.DEV.SHOW_CONSOLE_MESSAGES&&console.error(`Error fetching blocks for name (block: ${this.code}):`,i),this.templateError();if("success"===e&&t){let e=t[this.code];return e?s1` <div class="label"> ${!this.noIcon?s1`<uap-d-recipe-block-icon code="${this.code}"></uap-d-recipe-block-icon>`:""} ${e.name} </div> `:this.templateError()}if("pending"===e||n&&!t)return this.templatePlaceholder()}templatePlaceholder(){return this.noIcon?s1` <div class="label"> <uas-skeleton width="10em"></uas-skeleton> </div> `:s1` <div class="label"> <uas-skeleton width="1em" height="1em"></uas-skeleton> <uas-skeleton width="10em"></uas-skeleton> </div> `}templateError(){return s1` <div class="label label--error"> ${!this.noIcon?s1`<uas-icon code="circle-exclamation"></uas-icon>`:""} ${(0,lX.__)("Block not found","uncanny-automator")} </div> `}};Ol([l0({type:String})],Oc.prototype,"code",void 0),Ol([l0({type:Boolean,attribute:"no-icon"})],Oc.prototype,"noIcon",void 0),Oc=Ol([lJ("uap-d-recipe-block-name")],Oc);var Od=a(9210),Ou=a.n(Od),Op=function(e,t,i,a){var n,o=arguments.length,r=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(r=(o<3?n(r):o>3?n(t,i,r):n(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r};let Oh=class extends ld{constructor(){super(...arguments),this.sentenceTemplate="",this.fields={}}static{this.styles=sf`${sm(Ou())}`}render(){return s1` <uap-d-recipe-block-icon class="preview__icon" code=${this.blockType??s3} variant="box" size="xs" ></uap-d-recipe-block-icon> <uap-d-recipe-block-name class="preview__name" code=${this.blockType??s3} no-icon ></uap-d-recipe-block-name> <span class="preview__sentence"> <uap-d-recipe-sentence .recipeID=${this.recipeID} .template=${this.sentenceTemplate} .fields=${this.fields} ></uap-d-recipe-sentence> </span> `}};Op([l0({type:String,attribute:"block-type"})],Oh.prototype,"blockType",void 0),Op([l0({type:Number,attribute:"recipe-id"})],Oh.prototype,"recipeID",void 0),Op([l0({type:String,attribute:"sentence-template"})],Oh.prototype,"sentenceTemplate",void 0),Op([l0({type:Object})],Oh.prototype,"fields",void 0),Oh=Op([lJ("uap-d-recipe-block-drag-preview")],Oh);var Og=a(1758),Om=a.n(Og),Of=function(e,t,i,a){var n,o=arguments.length,r=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(r=(o<3?n(r):o>3?n(t,i,r):n(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r};let Oy=class extends ld{constructor(){super(...arguments),this.integrationCode="",this.sentenceTemplate="",this.fields={},this.customName=""}static{this.styles=sf`${sm(Om())}`}render(){return s1` <uap-d-integrations-icon class="preview__icon" code=${this.integrationCode} size="xs" ></uap-d-integrations-icon> ${""!==this.customName?s1`<span class="preview__custom-name">${this.customName}</span>`:s1`<span class="preview__sentence"> <uap-d-recipe-sentence .recipeID=${this.recipeID} .template=${this.sentenceTemplate} .fields=${this.fields} ></uap-d-recipe-sentence> </span>`} `}};Of([l0({type:String,attribute:"integration-code"})],Oy.prototype,"integrationCode",void 0),Of([l0({type:Number,attribute:"recipe-id"})],Oy.prototype,"recipeID",void 0),Of([l0({type:String,attribute:"sentence-template"})],Oy.prototype,"sentenceTemplate",void 0),Of([l0({type:Object})],Oy.prototype,"fields",void 0),Of([l0({type:String,attribute:"custom-name"})],Oy.prototype,"customName",void 0),Oy=Of([lJ("uap-d-recipe-block-modifier-drag-preview")],Oy);var Ob=a(5202),Ov=a.n(Ob),O_=function(e,t,i,a){var n,o=arguments.length,r=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(r=(o<3?n(r):o>3?n(t,i,r):n(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r};let Ow=class extends ld{constructor(){super(...arguments),this.blocksController=new vE(this,{...Ac,enabled:!1})}static{this.styles=sf`${sm(Ov())}`}willUpdate(e){if(lQ(this,"code",EE,e,"uap-d-recipe-block-modifier-name"),e.has("code")){let e=rK(this.code)&&!rY(this.code);this.blocksController.options.enabled!==e&&this.blocksController.setOptions({enabled:e})}}render(){if(rY(this.code))return;let{status:e,data:t,error:i,isLoading:a,isFetching:n,isError:o}=this.blocksController.result;if(a)return this.templatePlaceholder();if(o)return d4.DEV.SHOW_CONSOLE_MESSAGES&&console.error(`Error fetching blocks for block-modifier name (code: ${this.code}):`,i),this.templateError();if("success"===e&&t){let e=this.findModifierName(t,this.code);return e?s1`<span class="label">${e}</span>`:this.templateError()}if("pending"===e||n&&!t)return this.templatePlaceholder()}findModifierName(e,t){for(let i in e){let a=e[i],n=a?.modifiers?.types?.find(e=>e.id===t);if(n)return n.name}}templatePlaceholder(){return s1`<uas-skeleton width="6em"></uas-skeleton>`}templateError(){return s1` <span class="label label--error"> ${(0,lX.__)("Modifier not found","uncanny-automator")} </span> `}};O_([l0({type:String})],Ow.prototype,"code",void 0),Ow=O_([lJ("uap-d-recipe-block-modifier-name")],Ow);let Ox={ITEMS:"items",MODIFIERS:"modifiers"};rT(Ox);let Ok=rg({entity_type:SQ,entity_code:oR()});function OE(e,t,i){if(void 0!==e)return i===Ox.MODIFIERS?void 0===e.modifiers?{entity_type:t.entity_type,entity_code:t.entity_code,reason:(0,lX._x)("This block does not accept modifiers.","Recipe block","uncanny-automator")}:e.modifiers.types.some(e=>e.id===t.entity_code)?void 0:{entity_type:t.entity_type,entity_code:t.entity_code,reason:(0,lX._x)("This item type cannot be added as a modifier of this block.","Recipe block","uncanny-automator")}:e.unsupported_entities.find(e=>e.entity_type===t.entity_type&&e.entity_code===t.entity_code)}function OS(e,t){let i=t?.[e.block_type];if(void 0!==i)return i.layout??S1}function OC(e,t){return e.type===kP.BLOCK&&void 0!==e.block_type&&OS({block_type:e.block_type},t)===SX.DEFERRED}rg({type:oR(),block_type:oR().optional()});let OT=ry([o5(),oR()]),OI=rg({id:OT,type:rT([kP.ITEM]),item_type:oR(),integration_code:EP.shape.code.optional()}).readonly(),OD=rB(()=>rg({path_code:oR(),content:rp(O$).readonly()}).readonly()),OA=rB(()=>rg({id:OT,type:rT([kP.BLOCK]),block_type:oR(),paths:rp(OD).readonly(),deferred_order:o5().int().nonnegative().optional()}).readonly()),O$=rB(()=>ry([OI,OA])),OO=rp(O$).readonly();function OR(e){return e.type===kP.BLOCK}function OM(e){return e.type===kP.ITEM}rg({entry:rg({operator:CL,triggers:rp(OI).readonly()}).readonly(),content:OO}).readonly();let OL={LANE:"lane",SECTION:"section"};rT(OL);let ON={rootID:"skeleton-recipe",flow:{entry:{operator:CM.ANY,triggers:[{id:"skeleton-trigger",type:kP.ITEM,item_type:kM.TRIGGER}]},content:[{id:"skeleton-action",type:kP.ITEM,item_type:kM.ACTION}]}},OP="#8a9299",Oz={[pM.GREEN]:"#4a9e4f",[pM.RED]:"#dc5b57"},OU="operator-pill",OF=rg({actions:o5().int().nonnegative(),integrations:rp(EP.shape.code).readonly()}).readonly();function Oj(e){let t=0,i=[],a=e=>{for(let n of e){if(!OM(n)){n.paths.forEach(e=>a(e.content));continue}n.item_type===kM.ACTION&&(t++,void 0===n.integration_code||i.includes(n.integration_code)||i.push(n.integration_code))}};return e.paths.forEach(e=>a(e.content)),{actions:t,integrations:i}}let OB=rg({pathCode:oR(),name:oR(),tag:pL.nullable(),content:OO}).strict().readonly();function OH(e,t){let i=t?.[e.block_type]?.paths;if(void 0===i)return e.paths.map(e=>({pathCode:e.path_code,name:e.path_code,tag:null,content:e.content}));let a=OS(e,t)===SX.FAN_OUT,n=[];for(let t of i){let i=e.paths.find(e=>e.path_code===t.path_code);void 0!==i&&n.push({pathCode:t.path_code,name:t.name,tag:a?t.primary_color:null,content:i.content})}return n}function OV(e,t){return OR(e)&&OC(e,t)}function Oq(e,t){let i=e.deferred_order??1/0,a=t.deferred_order??1/0;return i===a?0:i<a?-1:1}function OZ(e,t){let i=[],a=[];for(let n of e)OV(n,t)?a.push(n):i.push(n);return 0===a.length?e:[...i,...a.sort(Oq)]}rg({deferred_order:o5().int().nonnegative().optional()});let OW=rg({block:OA,branch:OB}).readonly();function OG(e,t){let i=[],a=(e,n,o)=>{for(let r of e){if(!OR(r))continue;OC(r,t)&&i.push({block:r,ancestors:n,host:o});let e=[...n,r];for(let i of OH(r,t))a(i.content,e,{block:r,branch:i})}};return a(e,[],null),i.sort((e,t)=>Oq(e.block,t.block))}function OK(e,t,i,a){let n=t.get(String(e.id));if(void 0===n)return;let o=r8(n);return OR(e)&&OS(e,i)===SX.FAN_OUT?{x:a??o.x,y:o.y+20}:o}rg({block:OA,ancestors:rp(OA).readonly(),host:OW.nullable()}).readonly();let OY="content",OQ="flow-start",OX="flow-end";function OJ(e){return`${e}:head`}function O1(e,t){return`${e}:${t}:label`}function O0(e){return`${e}:deferred`}let O2="empty";function O3(e){return null===e.tag?OP:Oz[e.tag]??`var( --uas--color--tag-on-${e.tag}-container )`}function O4(e,t){return Math.max(Math.max(...e)+12,t-28)}let O6=rp(rg({id:oR(),from:x4,to:x4,color:oR(),width:o5(),railY:o5().optional(),head:re()}).readonly()).readonly(),O5={width:0,height:0},O8=sf`:host{display:block;pointer-events:none}.connectors{display:block;inline-size:100%;block-size:100%;overflow:visible}.connectors__line{fill:none;stroke-linecap:round;stroke-linejoin:round}`;var O7=function(e,t,i,a){var n,o=arguments.length,r=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(r=(o<3?n(r):o>3?n(t,i,r):n(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r};function O9(e){return`connector-arrow-${e}`}class Re extends ld{constructor(){super(...arguments),this.connectors=[],this.size=O5}willUpdate(e){lQ(this,"connectors",O6,e,"uas-canvas-connectors",[]),lQ(this,"size",x6,e,"uas-canvas-connectors",O5)}render(){let e=[...new Set(this.connectors.map(e=>e.color))];return s1` <svg class="connectors" data-test="canvas-connectors" width=${this.size.width} height=${this.size.height} aria-hidden="true" focusable="false" > <defs> ${$A(e,e=>e,(e,t)=>this.templateMarker(e,t))} </defs> ${$A(this.connectors,e=>e.id,t=>this.templateConnector(t,e))} </svg> `}templateMarker(e,t){return s0` <marker id=${O9(t)} viewBox="0 0 10 10" refX="8" refY="5" markerWidth="7" markerHeight="7" orient="auto" > <path d="M0 0 L10 5 L0 10 z" fill=${e}></path> </marker> `}templateConnector(e,t){return s0` <path class="connectors__line" data-connector-id=${e.id} d=${function(e,t,i){if(!r2(e)||!r2(t))return"";let a=t.x-e.x,n=t.y-e.y;if(.5>Math.abs(a))return`M ${t.x} ${e.y} L ${t.x} ${t.y}`;let o=i??e.y+n/2,r=a>0?1:-1,s=n<0?-1:1,l=Math.max(0,Math.min(12*!Number.isNaN(12),Math.abs(a)/2,Math.abs(n)/2)),c=o-s*l,d=o+s*l,u=e.x+r*l,p=t.x-r*l,h=[`M ${e.x} ${e.y}`];return e.y!==c&&h.push(`L ${e.x} ${c}`),l>0&&h.push(`Q ${e.x} ${o} ${u} ${o}`),u!==p&&h.push(`L ${p} ${o}`),l>0&&h.push(`Q ${t.x} ${o} ${t.x} ${d}`),d!==t.y&&h.push(`L ${t.x} ${t.y}`),h.join(" ")}(e.from,e.to,e.railY)} stroke=${e.color} stroke-width=${e.width} vector-effect="non-scaling-stroke" marker-end=${e.head?`url(#${O9(t.indexOf(e.color))})`:s3} ></path> `}}Re.styles=O8,O7([l0({attribute:!1})],Re.prototype,"connectors",void 0),O7([l0({attribute:!1})],Re.prototype,"size",void 0),"u">typeof customElements&&!customElements.get("uas-canvas-connectors")&&customElements.define("uas-canvas-connectors",Re);let Rt="uas.canvas.viewport-change",Ri=rg({x:o5(),y:o5(),zoom:o5().positive()}).strict();rg({min:o5(),max:o5(),zoomStep:o5(),panPadding:o5(),fitTopInset:o5(),contentAnchor:x9});let Ra={min:kt.min,max:kt.max,zoomStep:1.15,panPadding:40,fitTopInset:24,contentAnchor:ki},Rn=new Map;function Ro(e){return[...Array.isArray(e)?e:[e],"en"]}function Rr(e,t,i){let a,n=Ro(e);if(i||(i="default"),"string"==typeof i)switch(a={day:"numeric",month:"short",year:"numeric"},i){case"full":a.weekday="long";case"long":a.month="long";break;case"short":a.month="numeric"}else a=i;return Rc(()=>Rd("date",n,i),()=>new Intl.DateTimeFormat(n,a)).format("string"==typeof t?new Date(t):t)}function Rs(e,t,i){let a=Ro(e);return Rc(()=>Rd("number",a,i),()=>new Intl.NumberFormat(a,i)).format(t)}function Rl(e,t,i,{offset:a=0,...n}){let o=Ro(e),r=t?Rc(()=>Rd("plural-ordinal",o),()=>new Intl.PluralRules(o,{type:"ordinal"})):Rc(()=>Rd("plural-cardinal",o),()=>new Intl.PluralRules(o,{type:"cardinal"}));return n[i]??n[r.select(i-a)]??n.other}function Rc(e,t){let i=e(),a=Rn.get(i);return a||(a=t(),Rn.set(i,a)),a}function Rd(e,t,i){let a=t.join("-");return`${e}-${a}-${JSON.stringify(i)}`}let Ru=/\\u[a-fA-F0-9]{4}|\\x[a-fA-F0-9]{2}/,Rp=e=>e.replace(/\\u([a-fA-F0-9]{4})|\\x([a-fA-F0-9]{2})/g,(e,t,i)=>t?String.fromCharCode(parseInt(t,16)):String.fromCharCode(parseInt(i,16))),Rh="%__lingui_octothorpe__%",Rg=(e,t)=>(Object.prototype.hasOwnProperty.call(t,e)?t[e]:void 0)??t.other;class Rm{_events={};on(e,t){return this._events[e]??=new Set,this._events[e].add(t),()=>this.removeListener(e,t)}removeListener(e,t){let i=this._events[e];i?.delete(t),i?.size===0&&delete this._events[e]}emit(e,...t){let i=this._events[e];if(i)for(let e of[...i])e.apply(this,t)}}class Rf extends Rm{_locale="";_locales;_messages={};_missing;_messageCompiler;constructor(e){super(),null!=e.missing&&(this._missing=e.missing),null!=e.messages&&this.load(e.messages),("string"==typeof e.locale||e.locales)&&this.activate(e.locale??"en",e.locales)}get locale(){return this._locale}get locales(){return this._locales}get messages(){return this._messages[this._locale]??{}}setMessagesCompiler(e){return this._messageCompiler=e,this}_load(e,t){let i=Object.prototype.hasOwnProperty.call(this._messages,e)?this._messages[e]:void 0;i?Object.assign(i,t):this._messages[e]=t}load(e,t){"string"==typeof e&&"object"==typeof t?this._load(e,t):Object.entries(e).forEach(([e,t])=>this._load(e,t)),this.emit("change")}loadAndActivate({locale:e,locales:t,messages:i}){this._locale=e,this._locales=t||void 0,this._messages[this._locale]=i,this.emit("change")}activate(e,t){this._locale=e,this._locales=t,this.emit("change")}_(e,t,i){var a,n,o;if(!this.locale)throw Error("Lingui: Attempted to call a translation function without setting a locale.\nMake sure to call `i18n.activate(locale)` before using Lingui functions.\nThis issue may also occur due to a race condition in your initialization logic.");let r=i?.message;e||(e=""),"string"!=typeof e&&(t=e.values||t,r=e.message,e=e.id);let s=this.messages,l=Object.prototype.hasOwnProperty.call(s,e)?s[e]:void 0,c=void 0===l,d=this._missing;if(d&&c)return"function"==typeof d?d(this._locale,e):d;c&&this.emit("missing",{id:e,locale:this._locale});let u=l||r||e;return("string"==typeof u&&(this._messageCompiler?u=this._messageCompiler(u):console.warn(`Uncompiled message detected! Message: > ${u} That means you use raw catalog or your catalog doesn't have a translation for the message and fallback was used. ICU features such as interpolation and plurals will not work properly for that message. Please compile your catalog first. `)),"string"==typeof u&&Ru.test(u))?Rp(u):"string"==typeof u?u:(a=u,n=this._locale,o=this._locales,(e={},t)=>{let i=((e,t,i={})=>{let a=t||e,n=e=>"object"==typeof e?e:i[e],o=(e,t)=>{let o=Rs(a,e,Object.keys(i).length?n("number"):void 0);return t.replace(RegExp(Rh,"g"),o)};return{plural:(e,t)=>{let{offset:i=0}=t,n=Rl(a,!1,e,t);return o(e-i,n)},selectordinal:(e,t)=>{let{offset:i=0}=t,n=Rl(a,!0,e,t);return o(e-i,n)},select:Rg,number:(e,t)=>Rs(a,e,n(t)||{style:t}),date:(e,t)=>Rr(a,e,n(t)||t),time:(e,t)=>(function(e,t,i){let a;if(i||(i="default"),"string"==typeof i)switch(a={second:"numeric",minute:"numeric",hour:"numeric"},i){case"full":case"long":a.timeZoneName="short";break;case"short":delete a.second}else a=i;return Rr(e,t,a)})(a,e,n(t)||t)}})(n,o,t),r=(t,a=!1)=>Array.isArray(t)?t.reduce((t,n)=>{let o;if("#"===n&&a)return t+Rh;if("string"==typeof n)return t+n;let[s,l,c]=n,d={};return("plural"===l||"selectordinal"===l||"select"===l?Object.entries(c).forEach(([e,t])=>{d[e]=r(t,"plural"===l||"selectordinal"===l)}):d=c,null==(o=l?(0,i[l])(e[s],d):e[s]))?t:t+o},""):t,s=r(a);return"string"==typeof s&&Ru.test(s)?Rp(s):"string"==typeof s?s:s?String(s):""})(t,i?.formats)}t=this._.bind(this);date(e,t){return Rr(this._locales||this._locale,e,t)}number(e,t){return Rs(this._locales||this._locale,e,t)}}function Ry(e={}){return new Rf(e)}Ry();let Rb=JSON.parse('{"accordion.noResultsDescription":["حاول البحث مرة أخرى"],"accordion.noResultsHeading":["لم يتم العثور على نتائج"],"accordion.resultsFound":[["count","plural",{"zero":["لم يتم العثور على نتائج"],"one":["تم العثور على نتيجة واحدة"],"two":["تم العثور على نتيجتين"],"few":["تم العثور على ","#"," نتائج"],"many":["تم العثور على ","#"," نتيجة"],"other":["تم العثور على ","#"," نتيجة"]}]],"accordion.search":["بحث"],"canvasViewport.label":["Canvas"],"canvasZoomControls.fit":["Fit"],"canvasZoomControls.group":["Canvas zoom"],"canvasZoomControls.percent":[["percent"],"%"],"canvasZoomControls.reset":["Reset"],"canvasZoomControls.zoomActual":["Reset zoom"],"canvasZoomControls.zoomIn":["Zoom in"],"canvasZoomControls.zoomOut":["Zoom out"],"codeViewer.showLess":["عرض أقل"],"codeViewer.showMore":[["count","plural",{"zero":["عرض ","#"," سطر إضافي"],"one":["عرض سطر إضافي واحد"],"two":["عرض سطرين إضافيين"],"few":["عرض ","#"," أسطر إضافية"],"many":["عرض ","#"," سطرًا إضافيًا"],"other":["عرض ","#"," سطر إضافي"]}]]}'),Rv=JSON.parse('{"accordion.noResultsDescription":["Versuchen Sie es mit einer neuen Suche"],"accordion.noResultsHeading":["Keine Ergebnisse gefunden"],"accordion.resultsFound":[["count","plural",{"one":["#"," Ergebnis gefunden"],"other":["#"," Ergebnisse gefunden"]}]],"accordion.search":["Suchen"],"canvasViewport.label":["Canvas"],"canvasZoomControls.fit":["Fit"],"canvasZoomControls.group":["Canvas zoom"],"canvasZoomControls.percent":[["percent"],"%"],"canvasZoomControls.reset":["Reset"],"canvasZoomControls.zoomActual":["Reset zoom"],"canvasZoomControls.zoomIn":["Zoom in"],"canvasZoomControls.zoomOut":["Zoom out"],"codeViewer.showLess":["Weniger anzeigen"],"codeViewer.showMore":[["count","plural",{"one":["#"," weitere Zeile anzeigen"],"other":["#"," weitere Zeilen anzeigen"]}]]}'),R_=JSON.parse('{"accordion.noResultsDescription":["Try searching again"],"accordion.noResultsHeading":["No results found"],"accordion.resultsFound":[["count","plural",{"one":["#"," result found"],"other":["#"," results found"]}]],"accordion.search":["Search"],"canvasViewport.label":["Canvas"],"canvasZoomControls.fit":["Fit"],"canvasZoomControls.group":["Canvas zoom"],"canvasZoomControls.percent":[["percent"],"%"],"canvasZoomControls.reset":["Reset"],"canvasZoomControls.zoomActual":["Reset zoom"],"canvasZoomControls.zoomIn":["Zoom in"],"canvasZoomControls.zoomOut":["Zoom out"],"codeViewer.showLess":["Show less"],"codeViewer.showMore":[["count","plural",{"one":["Show ","#"," more line"],"other":["Show ","#"," more lines"]}]]}'),Rw=JSON.parse('{"accordion.noResultsDescription":["Intenta buscar de nuevo"],"accordion.noResultsHeading":["No se encontraron resultados"],"accordion.resultsFound":[["count","plural",{"one":["#"," resultado encontrado"],"other":["#"," resultados encontrados"]}]],"accordion.search":["Buscar"],"canvasViewport.label":["Canvas"],"canvasZoomControls.fit":["Fit"],"canvasZoomControls.group":["Canvas zoom"],"canvasZoomControls.percent":[["percent"],"%"],"canvasZoomControls.reset":["Reset"],"canvasZoomControls.zoomActual":["Reset zoom"],"canvasZoomControls.zoomIn":["Zoom in"],"canvasZoomControls.zoomOut":["Zoom out"],"codeViewer.showLess":["Mostrar menos"],"codeViewer.showMore":[["count","plural",{"one":["Mostrar ","#"," línea más"],"other":["Mostrar ","#"," líneas más"]}]]}'),Rx=JSON.parse('{"accordion.noResultsDescription":["Essayez une nouvelle recherche"],"accordion.noResultsHeading":["Aucun résultat trouvé"],"accordion.resultsFound":[["count","plural",{"one":["#"," résultat trouvé"],"other":["#"," résultats trouvés"]}]],"accordion.search":["Rechercher"],"canvasViewport.label":["Canvas"],"canvasZoomControls.fit":["Fit"],"canvasZoomControls.group":["Canvas zoom"],"canvasZoomControls.percent":[["percent"],"%"],"canvasZoomControls.reset":["Reset"],"canvasZoomControls.zoomActual":["Reset zoom"],"canvasZoomControls.zoomIn":["Zoom in"],"canvasZoomControls.zoomOut":["Zoom out"],"codeViewer.showLess":["Afficher moins"],"codeViewer.showMore":[["count","plural",{"one":["Afficher ","#"," ligne de plus"],"other":["Afficher ","#"," lignes de plus"]}]]}'),Rk=JSON.parse('{"accordion.noResultsDescription":["נסו לחפש שוב"],"accordion.noResultsHeading":["לא נמצאו תוצאות"],"accordion.resultsFound":[["count","plural",{"one":["נמצאה תוצאה אחת"],"two":["נמצאו שתי תוצאות"],"other":["נמצאו ","#"," תוצאות"]}]],"accordion.search":["חיפוש"],"canvasViewport.label":["Canvas"],"canvasZoomControls.fit":["Fit"],"canvasZoomControls.group":["Canvas zoom"],"canvasZoomControls.percent":[["percent"],"%"],"canvasZoomControls.reset":["Reset"],"canvasZoomControls.zoomActual":["Reset zoom"],"canvasZoomControls.zoomIn":["Zoom in"],"canvasZoomControls.zoomOut":["Zoom out"],"codeViewer.showLess":["הצג פחות"],"codeViewer.showMore":[["count","plural",{"one":["הצג עוד שורה אחת"],"two":["הצג עוד שתי שורות"],"other":["הצג עוד ","#"," שורות"]}]]}'),RE=JSON.parse('{"accordion.noResultsDescription":["Prova a cercare di nuovo"],"accordion.noResultsHeading":["Nessun risultato trovato"],"accordion.resultsFound":[["count","plural",{"one":["#"," risultato trovato"],"other":["#"," risultati trovati"]}]],"accordion.search":["Cerca"],"canvasViewport.label":["Canvas"],"canvasZoomControls.fit":["Fit"],"canvasZoomControls.group":["Canvas zoom"],"canvasZoomControls.percent":[["percent"],"%"],"canvasZoomControls.reset":["Reset"],"canvasZoomControls.zoomActual":["Reset zoom"],"canvasZoomControls.zoomIn":["Zoom in"],"canvasZoomControls.zoomOut":["Zoom out"],"codeViewer.showLess":["Mostra meno"],"codeViewer.showMore":[["count","plural",{"one":["Mostra ","#"," altra riga"],"other":["Mostra altre ","#"," righe"]}]]}'),RS=JSON.parse('{"accordion.noResultsDescription":["もう一度検索してください"],"accordion.noResultsHeading":["結果が見つかりませんでした"],"accordion.resultsFound":[["count","plural",{"other":["#","件の結果が見つかりました"]}]],"accordion.search":["検索"],"canvasViewport.label":["Canvas"],"canvasZoomControls.fit":["Fit"],"canvasZoomControls.group":["Canvas zoom"],"canvasZoomControls.percent":[["percent"],"%"],"canvasZoomControls.reset":["Reset"],"canvasZoomControls.zoomActual":["Reset zoom"],"canvasZoomControls.zoomIn":["Zoom in"],"canvasZoomControls.zoomOut":["Zoom out"],"codeViewer.showLess":["表示を減らす"],"codeViewer.showMore":[["count","plural",{"other":["さらに","#","行を表示"]}]]}'),RC=JSON.parse('{"accordion.noResultsDescription":["Probeer opnieuw te zoeken"],"accordion.noResultsHeading":["Geen resultaten gevonden"],"accordion.resultsFound":[["count","plural",{"one":["#"," resultaat gevonden"],"other":["#"," resultaten gevonden"]}]],"accordion.search":["Zoeken"],"canvasViewport.label":["Canvas"],"canvasZoomControls.fit":["Fit"],"canvasZoomControls.group":["Canvas zoom"],"canvasZoomControls.percent":[["percent"],"%"],"canvasZoomControls.reset":["Reset"],"canvasZoomControls.zoomActual":["Reset zoom"],"canvasZoomControls.zoomIn":["Zoom in"],"canvasZoomControls.zoomOut":["Zoom out"],"codeViewer.showLess":["Minder tonen"],"codeViewer.showMore":[["count","plural",{"one":["Nog ","#"," regel tonen"],"other":["Nog ","#"," regels tonen"]}]]}'),RT=JSON.parse('{"accordion.noResultsDescription":["Spróbuj wyszukać ponownie"],"accordion.noResultsHeading":["Nie znaleziono wyników"],"accordion.resultsFound":[["count","plural",{"one":["Znaleziono ","#"," wynik"],"few":["Znaleziono ","#"," wyniki"],"many":["Znaleziono ","#"," wyników"],"other":["Znaleziono ","#"," wyniku"]}]],"accordion.search":["Szukaj"],"canvasViewport.label":["Canvas"],"canvasZoomControls.fit":["Fit"],"canvasZoomControls.group":["Canvas zoom"],"canvasZoomControls.percent":[["percent"],"%"],"canvasZoomControls.reset":["Reset"],"canvasZoomControls.zoomActual":["Reset zoom"],"canvasZoomControls.zoomIn":["Zoom in"],"canvasZoomControls.zoomOut":["Zoom out"],"codeViewer.showLess":["Pokaż mniej"],"codeViewer.showMore":[["count","plural",{"one":["Pokaż jeszcze ","#"," wiersz"],"few":["Pokaż jeszcze ","#"," wiersze"],"many":["Pokaż jeszcze ","#"," wierszy"],"other":["Pokaż jeszcze ","#"," wiersza"]}]]}'),RI=JSON.parse('{"accordion.noResultsDescription":["Tente pesquisar novamente"],"accordion.noResultsHeading":["Nenhum resultado encontrado"],"accordion.resultsFound":[["count","plural",{"one":["#"," resultado encontrado"],"other":["#"," resultados encontrados"]}]],"accordion.search":["Pesquisar"],"canvasViewport.label":["Canvas"],"canvasZoomControls.fit":["Fit"],"canvasZoomControls.group":["Canvas zoom"],"canvasZoomControls.percent":[["percent"],"%"],"canvasZoomControls.reset":["Reset"],"canvasZoomControls.zoomActual":["Reset zoom"],"canvasZoomControls.zoomIn":["Zoom in"],"canvasZoomControls.zoomOut":["Zoom out"],"codeViewer.showLess":["Mostrar menos"],"codeViewer.showMore":[["count","plural",{"one":["Mostrar mais ","#"," linha"],"other":["Mostrar mais ","#"," linhas"]}]]}'),RD=JSON.parse('{"accordion.noResultsDescription":["Попробуйте выполнить поиск ещё раз"],"accordion.noResultsHeading":["Ничего не найдено"],"accordion.resultsFound":[["count","plural",{"one":["Найден ","#"," результат"],"few":["Найдено ","#"," результата"],"many":["Найдено ","#"," результатов"],"other":["Найдено ","#"," результата"]}]],"accordion.search":["Поиск"],"canvasViewport.label":["Canvas"],"canvasZoomControls.fit":["Fit"],"canvasZoomControls.group":["Canvas zoom"],"canvasZoomControls.percent":[["percent"],"%"],"canvasZoomControls.reset":["Reset"],"canvasZoomControls.zoomActual":["Reset zoom"],"canvasZoomControls.zoomIn":["Zoom in"],"canvasZoomControls.zoomOut":["Zoom out"],"codeViewer.showLess":["Показать меньше"],"codeViewer.showMore":[["count","plural",{"one":["Показать ещё ","#"," строку"],"few":["Показать ещё ","#"," строки"],"many":["Показать ещё ","#"," строк"],"other":["Показать ещё ","#"," строки"]}]]}'),RA=JSON.parse('{"accordion.noResultsDescription":["Tekrar aramayı deneyin"],"accordion.noResultsHeading":["Sonuç bulunamadı"],"accordion.resultsFound":[["count","plural",{"other":["#"," sonuç bulundu"]}]],"accordion.search":["Ara"],"canvasViewport.label":["Canvas"],"canvasZoomControls.fit":["Fit"],"canvasZoomControls.group":["Canvas zoom"],"canvasZoomControls.percent":[["percent"],"%"],"canvasZoomControls.reset":["Reset"],"canvasZoomControls.zoomActual":["Reset zoom"],"canvasZoomControls.zoomIn":["Zoom in"],"canvasZoomControls.zoomOut":["Zoom out"],"codeViewer.showLess":["Daha az göster"],"codeViewer.showMore":[["count","plural",{"other":["#"," satır daha göster"]}]]}'),R$=Ry();R$.load({en:R_,es:Rw,ar:Rb,de:Rv,fr:Rx,he:Rk,it:RE,ja:RS,nl:RC,pl:RT,pt:RI,ru:RD,tr:RA}),R$.activate("en");let RO={_(e){let t=lB();return R$.locale!==t&&R$.activate(t),R$._(e)}},RR=sf`:host{display:block}.zoom-controls{display:flex;align-items:center;gap:var(--uas--base--spacing-2xs);inline-size:fit-content;padding:var(--uas--base--spacing-2xs);border:1px solid var(--uas--color--border);border-radius:var(--uas--base--border-radius-md);background:var(--uas--color--surface);box-shadow:var(--uas--base--shadow-sm)}.zoom-controls__readout{font-family:var(--uas--typography--label-medium-font-family);font-size:var(--uas--typography--label-medium-font-size);line-height:var(--uas--typography--label-medium-line-height);font-weight:var(--uas--typography--label-medium-font-weight);letter-spacing:var(--uas--typography--label-medium-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;inline-size:4em;text-align:center;font-variant-numeric:tabular-nums;color:var(--uas--typography--color-secondary)}.zoom-controls__assistive-text{position:absolute;inline-size:1px;block-size:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.zoom-controls__separator{inline-size:1px;align-self:stretch;background:var(--uas--color--border)}`;var RM=function(e,t,i,a){var n,o=arguments.length,r=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(r=(o<3?n(r):o>3?n(t,i,r):n(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r};class RL extends ld{constructor(){super(...arguments),this.zoom=1,this.min=kt.min,this.max=kt.max}get resolvedZoom(){return kn(this.zoom,{min:this.min,max:this.max})}static percentOf(e){return RO._({id:"canvasZoomControls.percent",message:"{percent}%",values:{percent:Math.round(100*e)}})}get isAtActualSize(){return RL.percentOf(this.resolvedZoom)===RL.percentOf(1)}render(){return s1` <div class="zoom-controls" role="group" aria-label=${RO._({id:"canvasZoomControls.group",message:"Canvas zoom"})}> ${this.isAtActualSize?s3:s1` <uas-button class="zoom-controls__button" color="transparent" size="sm" data-test="canvas-zoom-actual" @click=${this.onZoomActual} > <span aria-hidden="true">${RO._({id:"canvasZoomControls.reset",message:"Reset"})}</span> <span class="zoom-controls__assistive-text">${RO._({id:"canvasZoomControls.zoomActual",message:"Reset zoom"})}</span> </uas-button> <span class="zoom-controls__separator"></span> `} <uas-button class="zoom-controls__button" color="transparent" size="sm" data-test="canvas-zoom-out" ?disabled=${this.resolvedZoom<=this.min} @click=${this.onZoomOut} > <uas-icon code="minus"></uas-icon> <span class="zoom-controls__assistive-text">${RO._({id:"canvasZoomControls.zoomOut",message:"Zoom out"})}</span> </uas-button> <span class="zoom-controls__readout" data-test="canvas-zoom-readout"> ${RL.percentOf(this.resolvedZoom)} </span> <uas-button class="zoom-controls__button" color="transparent" size="sm" data-test="canvas-zoom-in" ?disabled=${this.resolvedZoom>=this.max} @click=${this.onZoomIn} > <uas-icon code="plus"></uas-icon> <span class="zoom-controls__assistive-text">${RO._({id:"canvasZoomControls.zoomIn",message:"Zoom in"})}</span> </uas-button> <span class="zoom-controls__separator"></span> <uas-button class="zoom-controls__button" color="transparent" size="sm" data-test="canvas-fit" @click=${this.onFit} > <uas-icon code="expand"></uas-icon> ${RO._({id:"canvasZoomControls.fit",message:"Fit"})} </uas-button> </div> `}onZoomIn(){lw({element:this,eventName:"uas.canvas.zoom-in",options:{bubbles:!0,composed:!0}})}onZoomOut(){lw({element:this,eventName:"uas.canvas.zoom-out",options:{bubbles:!0,composed:!0}})}onZoomActual(){lw({element:this,eventName:"uas.canvas.zoom-actual",options:{bubbles:!0,composed:!0}})}onFit(){lw({element:this,eventName:"uas.canvas.fit",options:{bubbles:!0,composed:!0}})}}RL.styles=RR,RM([l0({type:Number})],RL.prototype,"zoom",void 0),RM([l0({type:Number})],RL.prototype,"min",void 0),RM([l0({type:Number})],RL.prototype,"max",void 0),"u">typeof customElements&&!customElements.get("uas-canvas-zoom-controls")&&customElements.define("uas-canvas-zoom-controls",RL);let RN=sf`:host{display:flex}.viewport{position:relative;flex:1 1 auto;min-inline-size:0;overflow:clip;touch-action:none;background-color:var(--uas--canvas-viewport--custom-background, var(--uas--canvas-viewport--background));background-image:radial-gradient(circle, var(--uas--canvas-viewport--custom-dot-color, var(--uas--canvas-viewport--dot-color)) 1.1px, transparent 1.3px);background-size:calc(var(--uas--canvas-viewport--custom-dot-pitch, var(--uas--canvas-viewport--dot-pitch))*var(--uas--canvas-viewport--zoom)) calc(var(--uas--canvas-viewport--custom-dot-pitch, var(--uas--canvas-viewport--dot-pitch))*var(--uas--canvas-viewport--zoom));background-position:calc(var(--uas--canvas-viewport--offset-x)*1px) calc(var(--uas--canvas-viewport--offset-y)*1px);cursor:default;user-select:none}.viewport:focus-visible{outline:var(--uas--canvas-viewport--custom-focus-outline, var(--uas--canvas-viewport--focus-outline));outline-offset:-2px}.viewport--panning,.viewport--panning .viewport__surface{cursor:grabbing}.viewport--eased{transition:background-size 180ms cubic-bezier(0.2, 0, 0, 1),background-position 180ms cubic-bezier(0.2, 0, 0, 1)}.viewport--eased .viewport__stage{transition:transform 180ms cubic-bezier(0.2, 0, 0, 1)}@media(prefers-reduced-motion: reduce){.viewport--eased,.viewport--eased .viewport__stage{transition:none}}.viewport__surface{position:absolute;inset:0;cursor:grab}.viewport__stage{pointer-events:none;position:absolute;inset-block-start:0;inset-inline-start:0;transform-origin:0 0;will-change:transform}.viewport__controls{position:absolute;inset-block-end:var(--uas--base--spacing-lg);inset-inline-end:var(--uas--base--spacing-lg);z-index:30}`;var RP=function(e,t,i,a){var n,o=arguments.length,r=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(r=(o<3?n(r):o>3?n(t,i,r):n(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r};let Rz=["min","max","zoomStep","panPadding","fitTopInset","contentAnchor"];class RU extends ld{constructor(){super(...arguments),this.busy=!1,this.dragging=!1,this.min=Ra.min,this.max=Ra.max,this.zoomStep=Ra.zoomStep,this.panPadding=Ra.panPadding,this.fitTopInset=Ra.fitTopInset,this.contentAnchor=Ra.contentAnchor,this.pageScroll=!1,this.controller=new kl(this,this.controllerOptions(Ra,ke)),this.tuning=Ra,this.published=ke,this.panPointerID=null,this.panOrigin={x:0,y:0},this.revealFrame=null,this.panelResize=new ResizeObserver(()=>this.controller.reclamp()),this.stageResize=new vp(this,{selector:'[data-test="canvas-stage"]',onChange:()=>this.reclampToContent()}),this.onPointerMove=e=>{e.pointerId===this.panPointerID&&(this.controller.panBy({x:e.clientX-this.panOrigin.x,y:e.clientY-this.panOrigin.y}),this.panOrigin={x:e.clientX,y:e.clientY})},this.onPointerUp=e=>{e.pointerId===this.panPointerID&&this.endPan()}}get viewportController(){return this.controller}panelBounds(){let e=this.panelElement?.getBoundingClientRect();return void 0===e?null:{top:e.top,left:e.left,bottom:e.bottom,right:e.right}}connectedCallback(){super.connectedCallback(),this.observePanel()}disconnectedCallback(){super.disconnectedCallback(),this.endPan(),this.cancelFocusReveal(),this.panelResize.disconnect()}firstUpdated(){this.observePanel()}willUpdate(e){Rz.some(t=>e.has(t))&&this.retune()}updated(){this.publishViewport()}render(){return s1` <div class=${up({viewport:!0,"viewport--panning":null!==this.panPointerID,"viewport--eased":this.controller.eased})} data-test="canvas-panel" tabindex="0" role="region" aria-label=${this.label??RO._({id:"canvasViewport.label",message:"Canvas"})} aria-busy=${(this.busy?"true":void 0)??s3} style=${cd({"--uas--canvas-viewport--zoom":String(this.controller.zoom),"--uas--canvas-viewport--offset-x":String(this.controller.viewport.x),"--uas--canvas-viewport--offset-y":String(this.controller.viewport.y)})} @wheel=${this.onWheel} @keydown=${this.onKeyDown} @focusin=${this.scheduleFocusReveal} > <div class="viewport__surface" data-test="canvas-surface" @pointerdown=${this.onPointerDown} @lostpointercapture=${this.onPointerUp} ></div> <div class="viewport__stage" data-test="canvas-stage" style=${cd({transform:this.controller.transform})} > <slot></slot> </div> <uas-canvas-zoom-controls class="viewport__controls" .zoom=${this.controller.zoom} .min=${this.controller.zoomLimits.min} .max=${this.controller.zoomLimits.max} @uas.canvas.zoom-in=${this.onZoomIn} @uas.canvas.zoom-out=${this.onZoomOut} @uas.canvas.zoom-actual=${this.onZoomActual} @uas.canvas.fit=${this.onFit} ></uas-canvas-zoom-controls> </div> `}controllerOptions(e,t){return{getPanel:()=>this.panelSize(),getContent:()=>this.contentSize(),initialViewport:t,zoomLimits:{min:e.min,max:e.max},zoomStep:e.zoomStep,panPadding:e.panPadding,fitTopInset:e.fitTopInset,contentAnchor:e.contentAnchor}}retune(){var e;let t={min:this.min,max:this.max,zoomStep:this.zoomStep,panPadding:this.panPadding,fitTopInset:this.fitTopInset,contentAnchor:this.contentAnchor};if(e=this.tuning,Rz.every(i=>t[i]===e[i]))return;let i=this.controllerOptions(t,this.controller.viewport),a=ka.safeParse(i);if(!a.success){let e=a.error.issues.map(e=>`${e.path.join(".")}: ${e.message}`).join("; ");console.warn(`[uas-canvas-viewport] The tuning is not usable and was left unapplied. Validation issues: ${e}`);return}this.removeController(this.controller),this.controller=new kl(this,a.data),this.tuning=t}observePanel(){this.panelElement&&this.panelResize.observe(this.panelElement)}reclampToContent(){let e=this.contentSize();0!==e.width&&0!==e.height&&this.controller.reclamp()}panelSize(){return{width:this.panelElement?.clientWidth??0,height:this.panelElement?.clientHeight??0}}contentSize(){return{width:this.stageElement?.offsetWidth??0,height:this.stageElement?.offsetHeight??0}}toPanelPoint(e,t){let i=this.panelElement?.getBoundingClientRect();return{x:e-(i?.left??0),y:t-(i?.top??0)}}publishViewport(){let{x:e,y:t,zoom:i}=this.controller.viewport;(e!==this.published.x||t!==this.published.y||i!==this.published.zoom)&&(this.published={x:e,y:t,zoom:i},lw({element:this,eventName:Rt,data:this.published,schema:Ri,options:{bubbles:!0,composed:!0}}))}onWheel(e){let t=this.panelSize(),i={deltaX:e.deltaX,deltaY:e.deltaY,deltaMode:e.deltaMode,ctrlKey:e.ctrlKey,metaKey:e.metaKey};if(i.ctrlKey||i.metaKey){e.preventDefault(),this.controller.zoomAt(function(e,t,i={}){let a=i.lineHeight??16,n=i.zoomDivisor??400,o=i.zoomMaxDelta??200;return Math.exp(-Math.max(-o,Math.min(o,kr(e.deltaY,e.deltaMode,t.height,a)))/n)}(i,t),this.toPanelPoint(e.clientX,e.clientY));return}if(this.pageScroll&&Math.abs(e.deltaY)>Math.abs(e.deltaX))return;e.preventDefault();let a=function(e,t,i={}){var a,n;let o=i.lineHeight??16;return{x:0===(a=kr(e.deltaX,e.deltaMode,t.width,o))?0:-a,y:0===(n=kr(e.deltaY,e.deltaMode,t.height,o))?0:-n}}(i,t);this.controller.panBy(this.pageScroll?{x:a.x,y:0}:a)}onPointerDown(e){0===e.button&&null===this.panPointerID&&(e.preventDefault(),this.panelElement?.focus(),this.panPointerID=e.pointerId,this.panOrigin={x:e.clientX,y:e.clientY},this.capturePanPointer(e.pointerId),window.addEventListener("pointermove",this.onPointerMove),window.addEventListener("pointerup",this.onPointerUp),window.addEventListener("pointercancel",this.onPointerUp))}capturePanPointer(e){try{this.surfaceElement?.setPointerCapture(e)}catch{}}endPan(){null!==this.panPointerID&&this.surfaceElement?.hasPointerCapture(this.panPointerID)===!0&&this.surfaceElement.releasePointerCapture(this.panPointerID),this.panPointerID=null,window.removeEventListener("pointermove",this.onPointerMove),window.removeEventListener("pointerup",this.onPointerUp),window.removeEventListener("pointercancel",this.onPointerUp)}onKeyDown(e){if(this.scheduleFocusReveal(),e.target!==this.panelElement)return;if(e.shiftKey&&this.applyZoomShortcut(e.code))return void e.preventDefault();let t=48*(e.shiftKey?5:1);switch(e.key){case"ArrowLeft":this.controller.panBy({x:t,y:0});break;case"ArrowRight":this.controller.panBy({x:-t,y:0});break;case"ArrowUp":this.controller.panBy({x:0,y:t});break;case"ArrowDown":this.controller.panBy({x:0,y:-t});break;case"+":case"=":this.controller.zoomStep(1);break;case"-":case"_":this.controller.zoomStep(-1);break;default:return}e.preventDefault()}applyZoomShortcut(e){return"Digit0"===e?(this.controller.zoomTo(1),!0):"Digit1"===e&&(this.controller.fit(),!0)}scheduleFocusReveal(){null===this.revealFrame&&(this.revealFrame=requestAnimationFrame(()=>{this.revealFrame=null,this.revealFocusTarget()}))}cancelFocusReveal(){null!==this.revealFrame&&(cancelAnimationFrame(this.revealFrame),this.revealFrame=null)}revealFocusTarget(){if(null!==this.panPointerID||this.dragging)return;let e=function(e,t){if(null===t)return null;let i=e.ownerDocument.activeElement;for(;null!==i&&null!==i.shadowRoot&&null!==i.shadowRoot.activeElement;)i=i.shadowRoot.activeElement;return null===i||!function(e,t){let i=t;for(;null!==i;){if(i===e)return!0;i=function(e){if(e instanceof Element&&null!==e.assignedSlot)return e.assignedSlot;let t=e.parentNode;return t instanceof ShadowRoot?t.host:t}(i)}return!1}(t,i)?null:i}(this.renderRoot,this.stageElement),t=this.panelBounds();if(null===e||null===t)return;let i=e.getBoundingClientRect(),a=function(e,t,i){if(e.right<=e.left&&e.bottom<=e.top||t.right<=t.left||t.bottom<=t.top)return{x:0,y:0};let a=i??40,n=Number.isFinite(a)?Math.max(0,a):0;return{x:ks(e.left,e.right,t.left,t.right,n),y:ks(e.top,e.bottom,t.top,t.bottom,n)}}({top:i.top,left:i.left,bottom:i.bottom,right:i.right},t,this.controller.panPadding);(0!==a.x||0!==a.y)&&this.controller.easePanBy(a)}onZoomIn(){this.controller.zoomStep(1)}onZoomOut(){this.controller.zoomStep(-1)}onZoomActual(){this.controller.zoomTo(1)}onFit(){this.controller.fit()}}RU.styles=RN,RP([l0({type:String})],RU.prototype,"label",void 0),RP([l0({type:Boolean})],RU.prototype,"busy",void 0),RP([l0({type:Boolean})],RU.prototype,"dragging",void 0),RP([l0({type:Number})],RU.prototype,"min",void 0),RP([l0({type:Number})],RU.prototype,"max",void 0),RP([l0({type:Number,attribute:"zoom-step"})],RU.prototype,"zoomStep",void 0),RP([l0({type:Number,attribute:"pan-padding"})],RU.prototype,"panPadding",void 0),RP([l0({type:Number,attribute:"fit-top-inset"})],RU.prototype,"fitTopInset",void 0),RP([l0({type:String,attribute:"content-anchor"})],RU.prototype,"contentAnchor",void 0),RP([l0({type:Boolean,attribute:"page-scroll"})],RU.prototype,"pageScroll",void 0),RP([l4('[data-test="canvas-panel"]')],RU.prototype,"panelElement",void 0),RP([l4('[data-test="canvas-surface"]')],RU.prototype,"surfaceElement",void 0),RP([l4('[data-test="canvas-stage"]')],RU.prototype,"stageElement",void 0),RP([l2()],RU.prototype,"panPointerID",void 0),RP([(e3={passive:!1},(e,t)=>{Object.assign("function"==typeof e?e:e[t],e3)})],RU.prototype,"onWheel",null),"u">typeof customElements&&!customElements.get("uas-canvas-viewport")&&customElements.define("uas-canvas-viewport",RU);var RF=a(3967),Rj=a.n(RF),RB=function(e,t,i,a){var n,o=arguments.length,r=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(r=(o<3?n(r):o>3?n(t,i,r):n(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r};class RH extends ld{constructor(){super(...arguments),this.connectors=[],this.ports=new Map,this.overlayFrame=null,this.pendingReveal=null,this.pendingBodyReveal=null,this.highlightedDeferredID=null,this.highlightTimer=null,this.readerMovedView=!1,this.trunkCentered=!1,this.recipeResize=new vp(this,{selector:'[data-test="canvas-recipe"]',onChange:({height:e})=>{this.pageScroll&&(this.recipeHeight=e),this.redrawOverlays()}}),this.pageScroll=!1,this.recipeHeight=0,this.pageScrollZoom=1,this.blocksController=new vE(this,Ac),this.onReaderMovedView=()=>{this.readerMovedView=!0}}static{this.styles=sf`${sm(Rj())}`}frameColors(e){return{}}get catalog(){return this.blocksController.result.data}get pageScrollBlockSize(){if(this.pageScroll&&0!==this.recipeHeight)return`${Math.ceil(this.recipeHeight*this.pageScrollZoom)+24+40}px`}onPageScrollViewportChange(e){this.pageScroll&&(this.pageScrollZoom=e.detail.zoom)}get busy(){return!1}get stageDragging(){return!1}templateBand(){return s3}templateEntryTail(){return s3}templateContentTail(){return s3}templateOverlays(){return s3}templateLaneTail(e,t){return s3}get laneEmptyLabel(){return(0,lX.__)("No items in this path yet","uncanny-automator")}templateSkeletonCard(){return s3}disconnectedCallback(){super.disconnectedCallback(),this.cancelOverlayRedraw(),this.pendingReveal=null,this.pendingBodyReveal=null,this.clearDeferredHighlight()}requestNodeReveal(e){this.requestPortReveal(String(e))}requestNodeBodyReveal(e){this.pendingBodyReveal=e,this.revealPendingBody()}requestPortReveal(e){this.pendingReveal=e,this.revealPendingNode()}updated(e){super.updated(e);let t=this.stageSource()?.flow;(t!==this.drawnFlow||this.catalog!==this.drawnCatalog)&&(this.drawnFlow=t,this.drawnCatalog=this.catalog,this.scheduleOverlayRedraw())}get standingIn(){return this.busy&&this.templateSkeletonCard()!==s3}stageSource(){let e=this.flow,t=this.rootID;return void 0!==e&&void 0!==t?{flow:e,rootID:t}:this.standingIn?ON:void 0}scheduleOverlayRedraw(){null===this.overlayFrame&&(this.overlayFrame=requestAnimationFrame(()=>{this.overlayFrame=null,this.redrawOverlays()}))}cancelOverlayRedraw(){null!==this.overlayFrame&&(cancelAnimationFrame(this.overlayFrame),this.overlayFrame=null)}redrawOverlays(){let e=this.stageSource();if(void 0===e||null===this.recipeElement||null===this.shadowRoot)return;let t=this.recipeElement.getBoundingClientRect(),i=this.measuredZoom(t),a=new Map([...r9(this.shadowRoot,t,i,so,sr),...r9(this.shadowRoot,t,i,si,sn)]),n=function(e,t,i,a){let n=[],o=(e,t,a,o,r=2)=>{let s=i.get(t),l=i.get(a);void 0!==s&&void 0!==l&&n.push({id:e,from:r8(s),to:r5(l),color:o,width:r,head:a!==OX})},r=(e,t,i)=>{n.push({id:e,from:t,to:{x:t.x,y:i},color:OP,width:2,head:!1})},s=(e,t,o,s=!1)=>{let c=i.get(t),d=OZ(e,a);d.forEach((e,t)=>{let o=d[t+1],r=void 0===o?void 0:i.get(String(o.id)),s=OK(e,i,a,void 0!==r?r5(r).x:void 0!==c?r5(c).x:void 0);!OV(e,a)&&OR(e)&&l(e,s),void 0!==o&&void 0!==r&&void 0!==s&&n.push({id:`trunk:${e.id}->${o.id}`,from:s,to:r5(r),color:OP,width:2,head:!0})});let u=d[d.length-1],p=void 0===c?void 0:r5(c).x,h=void 0===u?void 0===c?void 0:r8(c):OK(u,i,a,p);if(void 0===h)return;if(s){let e=i.get(OX);void 0!==u&&void 0!==e&&r(`end:${u.id}`,h,r5(e).y);return}if(void 0===o||OS(o,a)!==SX.FRAME)return;let g=i.get(String(o.id));if(void 0===g)return;let m=g.y+g.height,f=void 0===u?`${t}:${O2}`:String(u.id);m>h.y&&r(`tail:${f}`,h,m)},l=(e,t,o=String(e.id))=>{let l=OH(e,a),c=OS(e,a);for(let t of l)s(t.content,sa(e.id,t.pathCode),e);let d=i.get(o);if(void 0===d)return;let u=i.get(OJ(e.id)),p=void 0===u?r5(d):r8(u),h=l.map(t=>{var n,o;let r,s,l,c;return{branch:t,label:i.get(O1(e.id,t.pathCode)),ends:(n=e,o=t,r=i.get(sa(n.id,o.pathCode)),l=(s=OZ(o.content,a))[0],c=s[s.length-1],void 0===l||void 0===c?{firstID:O2,lastID:O2,first:r,exit:void 0===r?void 0:r8(r)}:{firstID:String(l.id),lastID:String(c.id),first:i.get(String(l.id)),exit:OK(c,i,a,void 0===r?void 0:r5(r).x)})}}),g=h.map(({label:e,ends:t})=>e??t.first).filter(e=>void 0!==e);if(g.length>0){let t=Math.max(p.y+12,Math.min(...g.map(e=>e.y))-28),i=c===SX.FAN_OUT?{x:p.x,y:t-12}:p;for(let{branch:a,label:o,ends:s}of(i.y>p.y&&r(`stem:${e.id}`,p,i.y),h))void 0!==o&&n.push({id:`split:${e.id}:${a.pathCode}`,from:i,to:r5(o),color:O3(a),width:2,railY:t,head:!0}),void 0!==s.first&&n.push({id:`split:${e.id}:${a.pathCode}->${s.firstID}`,from:void 0===o?i:r8(o),to:r5(s.first),color:O3(a),width:2,railY:void 0===o?t:void 0,head:!0})}if(c!==SX.FAN_OUT||void 0===t)return;let m=h.map(({branch:e,ends:t})=>({branch:e,nodeID:t.lastID,from:t.exit})).filter(e=>void 0!==e.from);if(m.length>0){let i=O4(m.map(e=>e.from.y),t.y),a=Math.min(i+12,t.y);for(let o of m)n.push({id:`merge:${e.id}:${o.branch.pathCode}:${o.nodeID}`,from:o.from,to:{x:t.x,y:a},color:O3(o.branch),width:2,railY:i,head:!1});a<t.y&&r(`junction:${e.id}`,{x:t.x,y:a},t.y)}},c=(e,t,a,o)=>{let r=i.get(t),s=i.get(a);if(void 0===r||void 0===s)return;let l=r8(r);n.push({id:e,from:l,to:{x:l.x,y:s.y},color:OP,width:o,head:!0})},d=e.entry.operator===CM.ALL&&i.has(OU),u=OZ(e.content,a)[0],p=void 0===u?OX:String(u.id),h=i.has("band")?"band":p;for(let t of e.entry.triggers.length>0?e.entry.triggers.map(e=>String(e.id)):[OQ]){if(d){o(`entry:${t}->${OU}`,t,OU,OP,1.8);continue}if("band"===h){c(`entry:${t}->band`,t,"band",1.8);continue}o(`entry:${t}->${h}`,t,h,OP,1.8)}for(let{block:i}of(d&&c(`entry:${OU}->band`,OU,"band",2),"band"===h&&void 0!==u&&o(`trunk:band->${u.id}`,"band",String(u.id),OP),s(e.content,sa(t,OY),void 0,!0),OG(e.content,a)))l(i,void 0,O0(i.id));let g=new Map;for(let e of n){let t=`${e.to.x}:${e.to.y}`;g.set(t,[...g.get(t)??[],e])}return n.map(e=>{let t=g.get(`${e.to.x}:${e.to.y}`)??[];return t.length<2||void 0!==e.railY?e:{...e,railY:O4(t.map(e=>e.from.y),e.to.y)}})}(e.flow,e.rootID,a,this.catalog);JSON.stringify(n)!==JSON.stringify(this.connectors)&&(this.connectors=n),JSON.stringify([...a])!==JSON.stringify([...this.ports])&&(this.ports=a),this.centerTrunk(a,e.rootID),this.revealPendingBody(),this.revealPendingNode()}centerTrunk(e,t){if(this.trunkCentered||this.readerMovedView||null===this.viewportElement||void 0===this.flow||void 0===this.catalog)return;let i=e.get(sa(t,OY)),a=this.viewportElement.panelBounds();if(void 0===i||null===a)return;let n=this.viewportElement.viewportController,{x:o,zoom:r}=n.viewport;n.panBy({x:(a.right-a.left)/2-r7(i).x*r-o,y:0}),this.trunkCentered=!0}revealPendingBody(){if(null===this.pendingBodyReveal||void 0===this.flow||void 0===this.catalog||!this.ports.has(String(this.pendingBodyReveal)))return;let e=String(this.pendingBodyReveal),t=OG(this.flow.content,this.catalog).find(t=>String(t.block.id)===e);void 0!==t?this.revealDeferredBlock(t.block.id):this.requestNodeReveal(this.pendingBodyReveal),this.pendingBodyReveal=null}revealPendingNode(){if(null===this.pendingReveal)return;let e=this.ports.get(this.pendingReveal),t=this.viewportElement?.panelBounds()??null;if(void 0===e||null===t||null===this.viewportElement)return;this.pendingReveal=null;let i=this.viewportElement.viewportController,{x:a,y:n,zoom:o}=i.viewport,r=r7(e);i.easePanBy({x:(t.right-t.left)/2-r.x*o-a,y:(t.bottom-t.top)/2-r.y*o-n})}measuredZoom(e){let t=this.recipeElement?.offsetWidth??0;return t>0?e.width/t:this.viewportElement?.viewportController.zoom??ke.zoom}render(){return s1` <uas-canvas-viewport label=${String((0,lX.__)("Recipe canvas","uncanny-automator"))} min=${.25} max=${2} zoom-step=${1.15} pan-padding=${40} fit-top-inset=${24} ?busy=${this.busy} ?dragging=${this.stageDragging} ?page-scroll=${this.pageScroll} style=${cd({"block-size":this.pageScrollBlockSize})} @uas.canvas.viewport-change=${this.onPageScrollViewportChange} @pointerdown=${this.onReaderMovedView} @wheel=${{handleEvent:this.onReaderMovedView,passive:!0}} @keydown=${this.onReaderMovedView} > ${this.templateRecipe()} </uas-canvas-viewport> `}templateRecipe(){let e=this.flow,t=this.rootID;if(void 0!==e&&void 0!==t)return this.templateStage("",this.templateItems(e.entry.triggers),this.templateLane(t,OY,"canvas-content",this.templateNodes(e.content,[],s3)),this.templateBand());if(!this.standingIn)return s1`<div class="stage stage--empty" data-test="canvas-recipe"></div>`;let{rootID:i,flow:a}=ON,n=this.templateSkeletonCard();return this.templateStage("",this.templateStandIns(a.entry.triggers,n),this.templateLane(i,OY,"canvas-content",this.templateStandIns(a.content,n)),this.templateSeam())}templateStage(e,t,i,a){return s1` <div class="stage ${e}" data-test="canvas-recipe"> <uas-canvas-connectors class="stage__connectors" .connectors=${this.connectors} .size=${{width:this.recipeResize.width,height:this.recipeResize.height}} ></uas-canvas-connectors> ${this.templateSection(String((0,lX.__)("Triggers","uncanny-automator")),this.templateTriggers(t))} ${a} ${this.templateSection(String((0,lX.__)("Actions","uncanny-automator")),this.templateContent(i))} ${this.templateDeferredSection()} ${this.templateOverlays()} </div> `}templateSeam(){return s1`<div class="stage__seam" data-test="canvas-seam" data-canvas-port=${"band"}></div>`}templateSection(e,t,i="",a){return s1` <section class="stage__section ${i}" data-test=${a??s3}> <h2 class="stage__heading">${e}</h2> ${t} </section> `}templateTriggers(e){return s1` <div class="stage__triggers" data-test="canvas-triggers"> ${e} ${this.templateEntryTail()} </div> `}templateContent(e){return s1` <div class="stage__flow"> ${e} ${this.templateContentTail()} </div> `}templateLane(e,t,i,a){return s1` <div class="stage__lane" data-test=${i} data-container-id=${e} data-slot=${t} > ${a} </div> `}templateNodes(e,t,i){return 0===e.length?i:s1`${$A(OZ(e,this.catalog),e=>e.id,e=>this.templateNode(e,t))}`}templateItems(e){return s1`${$A(e,e=>e.id,e=>this.templateItem(e,this.templateItemCard(e,[])))}`}templateStandIns(e,t){return s1`${$A(e,e=>e.id,e=>this.templateItem(e,t))}`}templateNode(e,t){return OV(e,this.catalog)?this.templateMarker(e,t):OR(e)?this.templateBlock(e,t):OM(e)?this.templateItem(e,this.templateItemCard(e,t)):s3}templateItem(e,t){return s1` <div class="stage__node stage__node--item" data-entity-id=${e.id} data-entity-type=${kP.ITEM} data-entity-code=${e.item_type} > ${t} </div> `}templateBlock(e,t){let i=OS(e,this.catalog),a=[...t,e],n=i===SX.FRAME?"stage__node--frame":i===SX.FAN_OUT?"stage__node--fan-out":"";return s1` <div class="stage__node stage__node--block ${n}" data-entity-id=${e.id} data-entity-type=${kP.BLOCK} data-entity-code=${e.block_type} > <div class="stage__block-head" data-canvas-port=${OJ(e.id)}> ${this.templateBlockHead(e,t,OL.LANE,i===SX.FRAME)} </div> ${i===SX.FRAME?this.templateFrame(e,t):this.templateBranches(e,a)} </div> `}templateMarker(e,t){return s1` <div class="stage__node stage__node--marker" data-test="canvas-marker" data-entity-id=${e.id} data-entity-type=${kP.BLOCK} data-entity-code=${e.block_type} style=${cd(this.markerColors(e))} > <div class="stage__marker"> ${this.templateBlockMarker(e,t,s1`<uas-button slot="action" data-test="canvas-marker-view" size="xs" color="secondary" @click=${()=>this.revealDeferredBlock(e.id)} > ${(0,lX.__)("View","uncanny-automator")} <uas-icon code="angle-down" aria-hidden="true"></uas-icon> </uas-button>`)} </div> </div> `}templateDeferredSection(){let e=this.flow;if(void 0===e)return s3;let t=OG(e.content,this.catalog);return 0===t.length?s3:this.templateSection(String((0,lX.__)("Delayed actions","uncanny-automator")),s1` <div class="stage__deferred-list"> ${$A(t,e=>e.block.id,e=>this.templateDeferredBlock(e))} </div> `,"stage__section--deferred","canvas-deferred-section")}templateDeferredBlock(e){let t=null!==this.highlightedDeferredID&&String(this.highlightedDeferredID)===String(e.block.id);return s1` <div class="stage__deferred ${t?"stage__deferred--highlighted":""}" data-test="canvas-deferred" data-deferred-id=${e.block.id} > ${this.templateDeferredOrigin(e)} <div class="stage__node stage__node--block stage__node--frame" data-canvas-port=${O0(e.block.id)}> <div class="stage__block-head" data-canvas-port=${OJ(e.block.id)}> ${this.templateBlockHead(e.block,e.ancestors,OL.SECTION,!0)} </div> ${this.templateFrame(e.block,e.ancestors)} </div> </div> `}templateDeferredOrigin(e){if(null===e.host)return s3;let t=OH(e.host.block,this.catalog).length>1?e.host.branch.name:this.catalog?.[e.host.block.block_type]?.name??e.host.block.block_type;return s1` <header class="stage__branch-label stage__deferred-origin" data-test="canvas-deferred-origin" style=${cd(this.branchColors(e.host.branch))}> <span class="stage__branch-name">${t}</span> </header> `}revealDeferredBlock(e){this.requestPortReveal(O0(e)),this.clearDeferredHighlight(),this.highlightedDeferredID=e,this.highlightTimer=window.setTimeout(()=>{this.highlightTimer=null,this.highlightedDeferredID=null},1600)}clearDeferredHighlight(){null!==this.highlightTimer&&(window.clearTimeout(this.highlightTimer),this.highlightTimer=null),this.highlightedDeferredID=null}templateBranches(e,t){let i=OH(e,this.catalog),a=i.length>1;return s1` <div class="stage__branches" data-test="canvas-branches"> ${$A(i,e=>e.pathCode,i=>s1` <div class="stage__branch" data-test="canvas-branch" data-path-code=${i.pathCode} style=${cd(this.branchColors(i))} > ${a?s1` <header class="stage__branch-label" data-canvas-port=${O1(e.id,i.pathCode)}> <span class="stage__branch-name">${i.name}</span> </header> `:s3} ${this.templateBranchLane(e,i,t)} </div> `)} </div> `}templateFrame(e,t){let i=OH(e,this.catalog),a=[...t,e];return s1` <div class="stage__frame" data-test="canvas-frame" style=${cd(this.frameColors(e))}> ${$A(i,e=>e.pathCode,t=>this.templateBranchLane(e,t,a))} </div> `}templateBranchLane(e,t,i){let a=this.templateLanePlaceholder(this.templateLaneTail(e.id,t.pathCode));return this.templateLane(e.id,t.pathCode,"canvas-branch-lane",this.templateNodes(t.content,i,a))}templateLanePlaceholder(e){return s1` <div class="stage__lane-empty" data-test="canvas-branch-empty"> <span class="stage__lane-empty-label">${this.laneEmptyLabel}</span> ${e===s3?s3:s1`<div class="stage__lane-empty-tail">${e}</div>`} </div> `}branchColors(e){return null===e.tag?{}:{"--uap--d--recipe-canvas--branch-color":`var( --uas--color--tag-${e.tag}-container )`,"--uap--d--recipe-canvas--branch-ink":`var( --uas--color--tag-on-${e.tag}-container )`}}markerColors(e){let t=this.catalog?.[e.block_type]?.details.primary_color;return void 0===t?{}:{"--uap--d--recipe-canvas--marker-color":`var( --uas--color--tag-${t}-container )`,"--uap--d--recipe-canvas--marker-ink":`var( --uas--color--tag-on-${t}-container )`}}}RB([l4("uas-canvas-viewport")],RH.prototype,"viewportElement",void 0),RB([l4('[data-test="canvas-recipe"]')],RH.prototype,"recipeElement",void 0),RB([l2()],RH.prototype,"connectors",void 0),RB([l2()],RH.prototype,"ports",void 0),RB([l2()],RH.prototype,"highlightedDeferredID",void 0),RB([l0({type:Boolean,attribute:"page-scroll"})],RH.prototype,"pageScroll",void 0),RB([l2()],RH.prototype,"recipeHeight",void 0),RB([l2()],RH.prototype,"pageScrollZoom",void 0);var RV=a(9640),Rq=a.n(RV),RZ=function(e,t,i,a){var n,o=arguments.length,r=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(r=(o<3?n(r):o>3?n(t,i,r):n(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r};let RW=class extends ld{constructor(){super(...arguments),this.integrationCode="",this.sentenceTemplate="",this.fields={},this.customName=""}static{this.styles=sf`${sm(Rq())}`}render(){return s1` <uap-d-integrations-icon class="preview__icon" code=${this.integrationCode} size="xs" ></uap-d-integrations-icon> ${""!==this.customName?s1`<span class="preview__custom-name">${this.customName}</span>`:s1`<span class="preview__sentence"> <uap-d-recipe-sentence .recipeID=${this.recipeID} .template=${this.sentenceTemplate} .fields=${this.fields} ></uap-d-recipe-sentence> </span>`} `}};function RG(e,t){if(void 0===e)return"";for(let i of e.variants??[])if(function(e,t){for(let{field:i,equals:a}of e){let e=t[i]?.value;if(void 0===e||String(e)!==String(a))return!1}return!0}(i.when,t))return i.template;return e.default}RZ([l0({type:String,attribute:"integration-code"})],RW.prototype,"integrationCode",void 0),RZ([l0({type:Number,attribute:"recipe-id"})],RW.prototype,"recipeID",void 0),RZ([l0({type:String,attribute:"sentence-template"})],RW.prototype,"sentenceTemplate",void 0),RZ([l0({type:Object})],RW.prototype,"fields",void 0),RZ([l0({type:String,attribute:"custom-name"})],RW.prototype,"customName",void 0),RW=RZ([lJ("uap-d-recipe-item-drag-preview")],RW);var RK=a(9610),RY=a.n(RK),RQ=function(e,t,i,a){var n,o=arguments.length,r=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(r=(o<3?n(r):o>3?n(t,i,r):n(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r};let RX=class extends ld{constructor(){super(...arguments),this.integrationsController=new vE(this,{...SS,enabled:!1}),this.blocksController=new vE(this,{...Ac,enabled:!1})}static{this.styles=sf`${sm(RY())}`}willUpdate(e){if(lQ(this,"node",Is.optional(),e,"uap-d-recipe-node-label"),lQ(this,"recipeID",CH.shape.recipe_id.optional(),e,"uap-d-recipe-node-label"),e.has("node")){let e=Ir(this.node),t=T8(this.node)||It(this.node);this.blocksController.options.enabled!==e&&this.blocksController.setOptions({enabled:e}),this.integrationsController.options.enabled!==t&&this.integrationsController.setOptions({enabled:t})}}render(){if(Ir(this.node))return this.templateBlock(this.node);let e=this.integrationsController.result.data;return It(this.node)?this.templateIntegrationNode(this.node.integration_code,this.node.custom_name??"",$v(e,this.node.integration_code,this.node.block_modifier_type,this.node.code),this.node.fields):T8(this.node)?this.templateIntegrationNode(this.node.integration_code,this.node.custom_name??"",$y(e,this.node.integration_code,this.node.item_type,this.node.code),this.node.fields):s3}templateIntegrationNode(e,t,i,a){let n=this.templateSentence(i,a,this.integrationsController.result.isPending);return""!==t&&(n=s1`<span class="node-label__custom-name">${t}</span>`),s1` <div class="node-label"> <span class="node-label__icon"> <uap-d-integrations-icon code=${e} size="xs"></uap-d-integrations-icon> </span> <span class="node-label__text">${n}</span> </div> `}templateBlock(e){let t=RG(this.blocksController.result.data?.[e.block_type]?.sentence,e.fields);return s1` <div class="node-label"> <span class="node-label__icon"> <uap-d-recipe-block-icon code=${e.block_type} size="xs"></uap-d-recipe-block-icon> </span> <span class="node-label__text"> <span class="node-label__block-name"><uap-d-recipe-block-name code=${e.block_type} no-icon></uap-d-recipe-block-name></span> ${this.templateSentence(t,e.fields,this.blocksController.result.isPending)} </span> </div> `}templateSentence(e,t,i){return i?s1`<uap-d-recipe-sentence is-loading></uap-d-recipe-sentence>`:""===e?s3:s1` <uap-d-recipe-sentence .recipeID=${this.recipeID} .template=${e} .fields=${t} ></uap-d-recipe-sentence> `}};RQ([l0({attribute:!1})],RX.prototype,"node",void 0),RQ([l0({type:Number,attribute:"recipe-id"})],RX.prototype,"recipeID",void 0),RX=RQ([lJ("uap-d-recipe-node-label")],RX);let RJ=rg({item_id:ry([o5(),oR()]),recipe:CV}).strict(),R1=rg({recipeID:CH.shape.recipe_id,parentID:ry([o5(),oR()]),pathCode:oR().min(1).optional(),insertIndex:o5().int().nonnegative().optional(),integrationCode:EP.shape.code,itemType:kL,itemCode:Eb.shape.code,temporaryID:T2}).strict();function R0(e,t){for(let i of e.flow.entry.triggers)if(String(i.id)===String(t))return i;return function e(t,i){for(let a of t){if(String(a.id)===String(i))return a;if(Ir(a)){for(let e of a.modifiers)if(String(e.id)===String(i))return e;for(let t of a.paths){let a=e(t.content,i);if(void 0!==a)return a}}}}(e.flow.content,t)}rg({previousRecipe:Il,temporaryItemID:oR()}).strict().readonly(),rg({recipeID:CH.shape.recipe_id,parentID:ry([o5(),oR()]),pathCode:oR().min(1).optional(),insertIndex:o5().int().nonnegative().optional()});let R2={CONTENT:"content",ITEMS:"items",MODIFIERS:"modifiers"},R3=rT(R2),R4={RECIPE:"recipe",BLOCK:kP.BLOCK};rT(R4);let R6={ITEM:kP.ITEM,BLOCK:kP.BLOCK,MODIFIER:"modifier"};rT(R6);let R5={FULL_TREE:"full-tree",SLOT:"slot",MOVE:"move"};rT(R5);let R8=Cy.pick({id:!0,block_modifier_type:!0}).extend({kind:rT([R6.MODIFIER])}).strict(),R7=ry([Cm.pick({id:!0,item_type:!0}).extend({kind:rT([R6.ITEM])}).strict(),Cv.pick({id:!0,block_type:!0}).extend({kind:rT([R6.BLOCK])}).strict().extend({paths:rp(rg({path_code:oR().min(1),items:rp(rB(()=>R7))}).strict()).optional(),modifiers:rp(R8).optional()})]),R9=rg({recipeID:CH.shape.recipe_id,actions:rp(R7).optional()}).strict(),Me=rg({recipeID:CH.shape.recipe_id,parentKind:rT([R4.RECIPE]),parentID:CH.shape.recipe_id,slot:rT([R2.CONTENT]),order:rp(R7)}).strict(),Mt=rg({recipeID:CH.shape.recipe_id,parentKind:rT([R4.BLOCK]),parentID:Cv.shape.id,slot:rT([R2.ITEMS]),pathCode:oR().min(1),order:rp(R7)}).strict(),Mi=rg({recipeID:CH.shape.recipe_id,parentKind:rT([R4.BLOCK]),parentID:Cv.shape.id,slot:rT([R2.MODIFIERS]),order:rp(R8)}).strict();ry([Me,Mt,Mi]);let Ma=rg({recipeID:CH.shape.recipe_id,entityID:Cv.shape.id,toParentID:Cv.shape.id,toPathCode:oR().min(1).optional(),toIndex:o5().int().nonnegative()}).strict(),Mn=R9.extend({kind:rT([R5.FULL_TREE])}),Mo=ry([Me.extend({kind:rT([R5.SLOT])}),Mt.extend({kind:rT([R5.SLOT])}),Mi.extend({kind:rT([R5.SLOT])})]),Mr=ry([Mn,Mo,Ma.extend({kind:rT([R5.MOVE])})]),Ms=rg({recipe:CV}).strict();function Ml(e,t,i,a,n){let o=n?k4.parse(n):{};return T9.parse({type:kP.BLOCK_MODIFIER,block_modifier_type:t,id:e,integration_code:i,code:a,fields:o,availability:{status:Cc.USABLE},tags:[]})}function Mc(e,t,i){for(let a of i.unsupported_block_ancestors??[])if(Md(a,e))return Mu(i,a,t,Mh);let a=i.required_block_ancestors??[];if(0===a.length)return;for(let t of a)if(Md(t,e))return;let n=a[0];if(void 0!==n)return Mu(i,n,t,Mp)}function Md(e,t){for(let i of t)if(i.block.block_type===e.entity_code&&function(e,t){if(void 0===e||0===e.length)return!0;for(let{field:i,equals:a}of e)if(t[i]?.value!==a)return!1;return!0}(e.when,i.block.fields))return!0;return!1}function Mu(e,t,i,a){let n=i[t.entity_code]?.name??t.entity_code;return{entity_type:e.entity_type,entity_code:e.entity_code,reason:t.reason??a(n)}}function Mp(e){return(0,lX.sprintf)((0,lX._x)("This action can only be used inside a %s.","Recipe block ancestor","uncanny-automator"),e)}function Mh(e){return(0,lX.sprintf)((0,lX._x)("This action cannot be used inside a %s.","Recipe block ancestor","uncanny-automator"),e)}function Mg(e,t,i){return void 0===Mc([{block:e,pathCode:"MODIFIER"}],t,i)}function Mm(){return T2.parse(`temp-${lq()}`)}function Mf(e,t){var i;let a=dW.getQueryData(As);if(void 0===a)return[];let n=dW.getQueryData(Sk);return(i=e=>{let t=$b(n,e.integration_code,e.type,e.code);if(void 0!==t)return{entity_type:SY.ITEM,entity_code:e.code,required_block_ancestors:t.required_block_ancestors,unsupported_block_ancestors:t.unsupported_block_ancestors}},(a[t.block_type]?.modifiers?.defaults??[]).filter(n=>{if(t.modifiers.some(e=>e.integration_code===n.integration_code&&e.code===n.code))return!1;let o=i(n);return void 0!==o&&!!Mg(t,a,o)&&(void 0===e||!Mg(e,a,o))})).map(e=>Ml(Mm(),e.type,e.integration_code,e.code,e.fields))}rg({previousRecipe:Il,previousContent:rp(R7).readonly()}),rg({block:Io,ancestors:rp(Io).readonly()}).strict().readonly(),rg({optimisticRecipe:Il,wireContent:rp(R7).readonly()}).strict().readonly(),rg({catalogBlock:Ce.optional(),fieldOverrides:k4.optional()}),Ok.extend({required_block_ancestors:rp(k6).readonly().optional(),unsupported_block_ancestors:rp(k6).readonly().optional()});var My=Symbol.for("immer-nothing"),Mb=Symbol.for("immer-draftable"),Mv=Symbol.for("immer-state");function M_(e){throw Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var Mw=Object,Mx=Mw.getPrototypeOf,Mk="constructor",ME="prototype",MS="configurable",MC="enumerable",MT="writable",MI="value",MD=e=>!!e&&!!e[Mv];function MA(e){return!!e&&(MR(e)||MU(e)||!!e[Mb]||!!e[Mk]?.[Mb]||MF(e)||Mj(e))}var M$=Mw[ME][Mk].toString(),MO=new WeakMap;function MR(e){if(!e||!MB(e))return!1;let t=Mx(e);if(null===t||t===Mw[ME])return!0;let i=Mw.hasOwnProperty.call(t,Mk)&&t[Mk];if(i===Object)return!0;if(!MH(i))return!1;let a=MO.get(i);return void 0===a&&(a=Function.toString.call(i),MO.set(i,a)),a===M$}function MM(e,t,i=!0){0===ML(e)?(i?Reflect.ownKeys(e):Mw.keys(e)).forEach(i=>{t(i,e[i],e)}):e.forEach((i,a)=>t(a,i,e))}function ML(e){let t=e[Mv];return t?t.type_:MU(e)?1:MF(e)?2:3*!!Mj(e)}var MN=(e,t,i=ML(e))=>2===i?e.has(t):Mw[ME].hasOwnProperty.call(e,t),MP=(e,t,i=ML(e))=>2===i?e.get(t):e[t],Mz=(e,t,i,a=ML(e))=>{2===a?e.set(t,i):3===a?e.add(i):e[t]=i},MU=Array.isArray,MF=e=>e instanceof Map,Mj=e=>e instanceof Set,MB=e=>"object"==typeof e,MH=e=>"function"==typeof e,MV=e=>e.modified_?e.copy_:e.base_;function Mq(e,t){if(MF(e))return new Map(e);if(Mj(e))return new Set(e);if(MU(e))return Array[ME].slice.call(e);let i=MR(e);if(!0!==t&&("class_only"!==t||i)){let t=Mx(e);if(null!==t&&i)return{...e};let a=Mw.create(t);return Mw.assign(a,e)}{let t=Mw.getOwnPropertyDescriptors(e);delete t[Mv];let i=Reflect.ownKeys(t);for(let a=0;a<i.length;a++){let n=i[a],o=t[n];!1===o[MT]&&(o[MT]=!0,o[MS]=!0),(o.get||o.set)&&(t[n]={[MS]:!0,[MT]:!0,[MC]:o[MC],[MI]:e[n]})}return Mw.create(Mx(e),t)}}function MZ(e,t=!1){return MG(e)||MD(e)||!MA(e)||(ML(e)>1&&Mw.defineProperties(e,{set:MW,add:MW,clear:MW,delete:MW}),Mw.freeze(e),t&&MM(e,(e,t)=>{MZ(t,!0)},!1)),e}var MW={[MI]:function(){M_(2)}};function MG(e){return!(null!==e&&MB(e))||Mw.isFrozen(e)}var MK="MapSet",MY="Patches",MQ="ArrayMethods",MX={};function MJ(e){let t=MX[e];return t||M_(0),t}var M1=e=>!!MX[e];function M0(e,t){t&&(e.patchPlugin_=MJ(MY),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function M2(e){M3(e),e.drafts_.forEach(M6),e.drafts_=null}function M3(e){e===e8&&(e8=e.parent_)}var M4=e=>e8={drafts_:[],parent_:e8,immer_:e,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:M1(MK)?MJ(MK):void 0,arrayMethodsPlugin_:M1(MQ)?MJ(MQ):void 0};function M6(e){let t=e[Mv];0===t.type_||1===t.type_?t.revoke_():t.revoked_=!0}function M5(e,t){t.unfinalizedDrafts_=t.drafts_.length;let i=t.drafts_[0];if(void 0!==e&&e!==i){i[Mv].modified_&&(M2(t),M_(4)),MA(e)&&(e=M8(t,e));let{patchPlugin_:a}=t;a&&a.generateReplacementPatches_(i[Mv].base_,e,t)}else e=M8(t,i);return function(e,t,i=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&MZ(t,i)}(t,e,!0),M2(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==My?e:void 0}function M8(e,t){if(MG(t))return t;let i=t[Mv];if(!i)return La(t,e.handledSet_,e);if(!M9(i,e))return t;if(!i.modified_)return i.base_;if(!i.finalized_){let{callbacks_:t}=i;if(t)for(;t.length>0;)t.pop()(e);Li(i,e)}return i.copy_}function M7(e){e.finalized_=!0,e.scope_.unfinalizedDrafts_--}var M9=(e,t)=>e.scope_===t,Le=[];function Lt(e,t,i,a){let n=e.copy_||e.base_,o=e.type_;if(void 0!==a&&MP(n,a,o)===t)return void Mz(n,a,i,o);if(!e.draftLocations_){let t=e.draftLocations_=new Map;MM(n,(e,i)=>{if(MD(i)){let a=t.get(i)||[];a.push(e),t.set(i,a)}})}for(let a of e.draftLocations_.get(t)??Le)Mz(n,a,i,o)}function Li(e,t){if(e.modified_&&!e.finalized_&&(3===e.type_||1===e.type_&&e.allIndicesReassigned_||(e.assigned_?.size??0)>0)){let{patchPlugin_:i}=t;if(i){let a=i.getPath(e);a&&i.generatePatches_(e,a,t)}M7(e)}}function La(e,t,i){return!i.immer_.autoFreeze_&&i.unfinalizedDrafts_<1||MD(e)||t.has(e)||!MA(e)||MG(e)||(t.add(e),MM(e,(a,n)=>{if(MD(n)){let t=n[Mv];M9(t,i)&&(Mz(e,a,MV(t),e.type_),M7(t))}else MA(n)&&La(n,t,i)})),e}var Ln={get(e,t){var i,a,n,o;let r;if(t===Mv)return e;let s=e.scope_.arrayMethodsPlugin_,l=1===e.type_&&"string"==typeof t;if(l&&s?.isArrayOperationMethod(t))return s.createMethodInterceptor(e,t);let c=e.copy_||e.base_;if(!MN(c,t,e.type_)){let a;return i=e,(a=Ls(c,t))?MI in a?a[MI]:a.get?.call(i.draft_):void 0}let d=c[t];if(e.finalized_||!MA(d)||l&&e.operationMethod&&s?.isMutatingArrayMethod(e.operationMethod)&&Number.isInteger(r=+t)&&String(r)===t)return d;if(d===Lr(e.base_,t)||(a=e,n=t,o=d,!(1!==a.type_||!a.allIndicesReassigned_||a.assigned_?.get(n))&&MA(o)&&!o[Mv]&&a.baseRefs_.has(o))){Lc(e);let i=1===e.type_?+t:t,a=Lu(e.scope_,d,e,i);return e.copy_[i]=a}return d},has:(e,t)=>t in(e.copy_||e.base_),ownKeys:e=>Reflect.ownKeys(e.copy_||e.base_),set(e,t,i){let a=Ls(e.copy_||e.base_,t);if(a?.set)return a.set.call(e.draft_,i),!0;if(!e.modified_){let a=Lr(e.copy_||e.base_,t),n=a?.[Mv];if(n&&n.base_===i)return e.copy_[t]=i,e.assigned_.delete(t),!0;if((i===a?0!==i||1/i==1/a:i!=i&&a!=a)&&(void 0!==i||MN(e.base_,t,e.type_)))return!0;Lc(e),Ll(e)}return!!(e.copy_[t]===i&&(void 0!==i||MN(e.copy_,t,e.type_))||Number.isNaN(i)&&Number.isNaN(e.copy_[t]))||(e.copy_[t]=i,e.assigned_.set(t,!0),!function(e,t,i){let{scope_:a}=e;if(MD(i)){let n=i[Mv];M9(n,a)&&n.callbacks_.push(function(){Lc(e),Lt(e,i,MV(n),t)})}else MA(i)&&e.callbacks_.push(function(){let n=e.copy_||e.base_;3===e.type_?n.has(i)&&La(i,a.handledSet_,a):MP(n,t,e.type_)===i&&a.drafts_.length>1&&(e.assigned_.get(t)??!1)===!0&&e.copy_&&La(MP(e.copy_,t,e.type_),a.handledSet_,a)})}(e,t,i),!0)},deleteProperty:(e,t)=>(Lc(e),void 0!==Lr(e.base_,t)||t in e.base_?(e.assigned_.set(t,!1),Ll(e)):e.assigned_.delete(t),e.copy_&&delete e.copy_[t],!0),getOwnPropertyDescriptor(e,t){let i=e.copy_||e.base_,a=Reflect.getOwnPropertyDescriptor(i,t);return a?{[MT]:!0,[MS]:1!==e.type_||"length"!==t,[MC]:a[MC],[MI]:i[t]}:a},defineProperty(){M_(11)},getPrototypeOf:e=>Mx(e.base_),setPrototypeOf(){M_(12)}},Lo={};for(let e in Ln){let t=Ln[e];Lo[e]=function(){let e=arguments;return e[0]=e[0][0],t.apply(this,e)}}function Lr(e,t){let i=e[Mv];return(i?i.copy_||i.base_:e)[t]}function Ls(e,t){if(!(t in e))return;let i=Mx(e);for(;i;){let e=Object.getOwnPropertyDescriptor(i,t);if(e)return e;i=Mx(i)}}function Ll(e){!e.modified_&&(e.modified_=!0,e.parent_&&Ll(e.parent_))}function Lc(e){e.copy_||(e.assigned_=new Map,e.copy_=Mq(e.base_,e.scope_.immer_.useStrictShallowCopy_))}Lo.deleteProperty=function(e,t){return Lo.set.call(this,e,t,void 0)},Lo.set=function(e,t,i){return Ln.set.call(this,e[0],t,i,e[0])};var Ld=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(e,t,i)=>{let a;if(MH(e)&&!MH(t)){let i=t;t=e;let a=this;return function(e=i,...n){return a.produce(e,e=>t.call(this,e,...n))}}if(MH(t)||M_(6),void 0===i||MH(i)||M_(7),MA(e)){let n=M4(this),o=Lu(n,e,void 0),r=!0;try{a=t(o),r=!1}finally{r?M2(n):M3(n)}return M0(n,i),M5(a,n)}if(e&&MB(e))M_(1);else{if(void 0===(a=t(e))&&(a=e),a===My&&(a=void 0),this.autoFreeze_&&MZ(a,!0),i){let t=[],n=[];MJ(MY).generateReplacementPatches_(e,a,{patches_:t,inversePatches_:n}),i(t,n)}return a}},this.produceWithPatches=(e,t)=>{let i,a;return MH(e)?(t,...i)=>this.produceWithPatches(t,t=>e(t,...i)):[this.produce(e,t,(e,t)=>{i=e,a=t}),i,a]},"boolean"==typeof e?.autoFreeze&&this.setAutoFreeze(e.autoFreeze),"boolean"==typeof e?.useStrictShallowCopy&&this.setUseStrictShallowCopy(e.useStrictShallowCopy),"boolean"==typeof e?.useStrictIteration&&this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){var t;MA(e)||M_(8),MD(e)&&(MD(t=e)||M_(10),e=function e(t){let i;if(!MA(t)||MG(t))return t;let a=t[Mv],n=!0;if(a){if(!a.modified_)return a.base_;a.finalized_=!0,i=Mq(t,a.scope_.immer_.useStrictShallowCopy_),n=a.scope_.immer_.shouldUseStrictIteration()}else i=Mq(t,!0);return MM(i,(t,a)=>{Mz(i,t,e(a))},n),a&&(a.finalized_=!1),i}(t));let i=M4(this),a=Lu(i,e,void 0);return a[Mv].isManual_=!0,M3(i),a}finishDraft(e,t){let i=e&&e[Mv];i&&i.isManual_||M_(9);let{scope_:a}=i;return M0(a,t),M5(void 0,a)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}setUseStrictIteration(e){this.useStrictIteration_=e}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(e,t){let i;for(i=t.length-1;i>=0;i--){let a=t[i];if(0===a.path.length&&"replace"===a.op){e=a.value;break}}i>-1&&(t=t.slice(i+1));let a=MJ(MY).applyPatches_;return MD(e)?a(e,t):this.produce(e,e=>a(e,t))}};function Lu(e,t,i,a){let[n,o]=MF(t)?MJ(MK).proxyMap_(t,i):Mj(t)?MJ(MK).proxySet_(t,i):function(e,t){let i=MU(e),a={type_:+!!i,scope_:t?t.scope_:e8,modified_:!1,finalized_:!1,assigned_:void 0,parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0},n=a,o=Ln;i&&(n=[a],o=Lo);let{revoke:r,proxy:s}=Proxy.revocable(n,o);return a.draft_=s,a.revoke_=r,[s,a]}(t,i);if((i?.scope_??e8).drafts_.push(n),o.callbacks_=i?.callbacks_??[],o.key_=a,i&&void 0!==a)i.callbacks_.push(function(e){if(!o||!M9(o,e))return;e.mapSetPlugin_?.fixSetContents(o);let t=MV(o);Lt(i,o.draft_??o,t,a),Li(o,e)});else o.callbacks_.push(function(e){e.mapSetPlugin_?.fixSetContents(o);let{patchPlugin_:t}=e;o.modified_&&t&&t.generatePatches_(o,[],e)});return n}var Lp=globalThis.Iterator;Lp?.from;var Lh=new Ld().produce,Lg=e=>e;function Lm(e,t){return Lh(e,e=>{!function e(t,i){if(t.id=i??Mm(),Ir(t)){for(let e of(t.tokens=[],t.modifiers))e.id=Mm();for(let i of t.paths)for(let t of i.content)e(t);return}T8(t)&&(t.tokens=[],t.is_item_on=!1)}(e,t)})}function Lf(e,t){let i=e.flow.entry.triggers.findIndex(e=>e.id===t);return -1!==i?i:function e(t,i){for(let a=0;a<t.length;a++){let n=t[a];if(void 0!==n){if(n.id===i)return a;if(Ir(n)){let t=n.modifiers.findIndex(e=>e.id===i);if(-1!==t)return t;for(let t of n.paths){let a=e(t.content,i);if(void 0!==a)return a}}}}}(e.flow.content,t)}function Ly(e,t){return e.flow.entry.triggers.some(e=>e.id===t)||e.flow.content.some(e=>e.id===t)?e.recipe_id:function e(t,i){for(let a of t)if(Ir(a)){if(a.modifiers.some(e=>e.id===i)||a.paths.some(e=>e.content.some(e=>e.id===i)))return a.id;for(let t of a.paths){let a=e(t.content,i);if(void 0!==a)return a}}}(e.flow.content,t)}function Lb(e,t,i){if(t===e.recipe_id)return[];let a=Lv(e.flow.content,t,[]);if(void 0===a)return;let n=function e(t,i){for(let a of t)if(Ir(a)){if(a.id===i)return a;for(let t of a.paths){let a=e(t.content,i);if(void 0!==a)return a}}}(e.flow.content,t);if(void 0!==n)return[...a,{block:n,pathCode:i}]}function Lv(e,t,i){for(let a of e){if(a.id===t)return i;if(Ir(a))for(let e of a.paths){let n=[...i,{block:a,pathCode:e.path_code}],o=Lv(e.content,t,n);if(void 0!==o)return o}}}function L_(e,t,i,a){let n=e[e.length-1];if(a===Ox.MODIFIERS){if(void 0===n)return;let a=OE(t[n.block.block_type],i,Ox.MODIFIERS);return void 0!==a?a:Mc(e,t,i)}if(void 0===n)return Mc(e,t,i);for(let a of e.slice().reverse()){let e=t[a.block.block_type];if(void 0===e)continue;let n=OE(e,i,Ox.ITEMS);if(void 0!==n)return n;let o=e.paths.find(e=>e.path_code===a.pathCode);if(void 0!==o){let e=o.unsupported_entities.find(e=>e.entity_type===i.entity_type&&e.entity_code===i.entity_code);if(void 0!==e)return e}}return Mc(e,t,i)}function Lw(e,t,i){void 0===i||i<0||i>e.length?e.push(t):e.splice(i,0,t)}function Lx(e,t,i,a,n){return Lh(e,o=>{if(T7(i,kM.TRIGGER)){if(t!==e.recipe_id)throw Error("insertEntityAtParent: triggers can only be inserted at recipe level");o.flow.entry.triggers.push(Lg(i));return}if(t===e.recipe_id){if(T8(i)||Ir(i))return void Lw(o.flow.content,Lg(i),n);throw Error(`insertEntityAtParent: ${i.block_modifier_type} cannot be inserted at recipe level`)}let r=Lg(R0(o,t));if(!r)throw Error(`insertEntityAtParent: parent with ID ${t} not found in recipe`);if(!Ir(r))throw Error(`insertEntityAtParent: parent with ID ${t} is not a block`);let s=It(i)?Ox.MODIFIERS:Ox.ITEMS,l=Ir(i)?SY.BLOCK:SY.ITEM,c=Ir(i)?i.block_type:It(i)?i.block_modifier_type:i.item_type,d=dW.getQueryData(As);if(void 0!==d){let n=Lb(e,t,a??r.paths[0]?.path_code??"");if(void 0!==n){let e=Lk(i),t=L_(n,d,{entity_type:l,entity_code:c,required_block_ancestors:e.required_block_ancestors,unsupported_block_ancestors:e.unsupported_block_ancestors},s);if(void 0!==t)throw Error(t.reason)}}if(It(i))return void Lw(r.modifiers,Lg(i),n);let u=void 0===a?r.paths[0]:r.paths.find(e=>e.path_code===a);if(void 0===u)throw Error(`insertEntityAtParent: path "${a??"(default)"}" not found on block ${t}`);Lw(u.content,Lg(i),n)})}function Lk(e){if(!T8(e))return{};let t=dW.getQueryData($c.detail(e.item_type));if(void 0===t)return{};let i=t[e.integration_code],a=i?.items?.[e.item_type]?.[e.code];return void 0===a?{}:{required_block_ancestors:a.required_block_ancestors,unsupported_block_ancestors:a.unsupported_block_ancestors}}rp(rg({block:Io,pathCode:oR().min(1)}).readonly()).readonly();let LE=rp(rg({stepID:ry([o5(),oR()]),requiredAncestor:k6.optional()}).strict()).readonly(),LS=rg({parentID:ry([o5(),oR()]),pathCode:oR().min(1).optional(),index:o5().int().nonnegative(),movedStepIDs:rp(ry([o5(),oR()])).readonly(),deletedSteps:LE}).strict();function LC(e,t){let i=R0(e,t);if(void 0===i||!Ir(i))return;let a=dW.getQueryData(As);if(void 0===a)throw Error("getBlockKeepContentPlan: the blocks catalog is not in the cache");let n=Lv(e.flow.content,t,[]);if(void 0===n)return;let o=n[n.length-1],r=[],s=[];for(let e of function(e,t){let i=(t[e.block_type]?.paths??[]).map(e=>e.path_code),a=e.paths.map(e=>e.path_code).filter(e=>!i.includes(e)),n=[];for(let t of[...i,...a]){let i=e.paths.find(e=>e.path_code===t);for(let e of i?.content??[])n.push(e)}return n}(i,a))(function e(t,i,a,n){let o=function(e,t){if(Ir(e)){let i=t[e.block_type];return{entity_type:SY.BLOCK,entity_code:e.block_type,required_block_ancestors:i?.required_block_ancestors,unsupported_block_ancestors:i?.unsupported_block_ancestors}}let i=Lk(e);return{entity_type:SY.ITEM,entity_code:e.item_type,required_block_ancestors:i.required_block_ancestors,unsupported_block_ancestors:i.unsupported_block_ancestors}}(t,a);if(void 0!==L_(i,a,o,Ox.ITEMS))return n.push({stepID:t.id,requiredAncestor:function(e,t,i){let a=e.required_block_ancestors??[];return void 0===Mc(t,i,{entity_type:e.entity_type,entity_code:e.entity_code,required_block_ancestors:a})?void 0:a[0]}(o,i,a)}),!1;if(Ir(t))for(let o of t.paths){let r=[...i,{block:t,pathCode:o.path_code}];for(let t of o.content)e(t,r,a,n)}return!0})(e,n,a,s)&&r.push(e.id);let l=Lf(e,t);if(void 0===l)throw Error("getBlockKeepContentPlan: the block was found but its index could not be resolved");return LS.parse({parentID:void 0===o?e.recipe_id:o.block.id,pathCode:o?.pathCode,index:l,movedStepIDs:r,deletedSteps:s})}function LT(e,t,i){return Lh(e,e=>{let a=e.flow.entry.triggers;for(let e=0;e<a.length;e++)if(a[e]?.id===t){if(!T8(i))throw Error("insertEntityAfterID: only an item can be inserted after a trigger");a.splice(e+1,0,Lg(i));return}if(!function e(t,i,a){for(let n=0;n<t.length;n++){let o=t[n];if(o){if(o.id===i){if(!T8(a)&&!Ir(a))throw Error("insertEntityAfterID: only an item or block can be inserted into a content list");return t.splice(n+1,0,Lg(a)),!0}if(Ir(o)){for(let e=0;e<o.modifiers.length;e++)if(o.modifiers[e]?.id===i){if(!It(a))throw Error("insertEntityAfterID: only a modifier can be inserted into a modifiers list");return o.modifiers.splice(e+1,0,Lg(a)),!0}for(let t of o.paths)if(e(t.content,i,a))return!0}}}return!1}(e.flow.content,t,i))throw Error(`insertEntityAfterID: sibling with ID ${t} not found in recipe`)})}function LI(e){let t=Id.safeParse(e.options.meta??{});return t.success&&!0===t.data.recipeSave}function LD(e,t){let i;return{...t,flow:(i=new Map,function e(t,i){for(let a of t)if(Ir(a))for(let t of(i.set(String(a.id),a.deferred_order),a.paths))e(t.content,i)}(t.flow.content,i),Lh(e,e=>{!function e(t,i){for(let a of t){if(!Ir(a))continue;let t=String(a.id),n=i.get(t);for(let o of(i.has(t)&&a.deferred_order!==n&&(void 0===n?delete a.deferred_order:a.deferred_order=n),a.paths))e(o.content,i)}}(e.flow.content,i)})).flow}}async function LA(e,t){let i=e.parse(t),a=Ae.detail(i.recipeID);await dW.cancelQueries({queryKey:a});let n=dW.getQueryData(a);if(!n)throw Error("Can't apply temporary update: the recipe is missing from the cache. It typically indicates that the initial Zod validation against the LocalRecipe schema failed during page load. If this error appears, review the Zod validation error shown above, resolve that issue, and retry.");return{parsed:i,previousRecipe:n,queryKey:a}}function L$(e,t){return Lh(e,e=>{for(let i=0;i<e.flow.entry.triggers.length;i++)if(e.flow.entry.triggers[i]?.id===t)return void e.flow.entry.triggers.splice(i,1);!function e(t,i){for(let a=0;a<t.length;a++){let n=t[a];if(n){if(n.id===i)return t.splice(a,1),!0;if(Ir(n)){for(let e=0;e<n.modifiers.length;e++)if(n.modifiers[e]?.id===i)return n.modifiers.splice(e,1),!0;for(let t of n.paths)if(e(t.content,i))return!0}}}return!1}(e.flow.content,t)})}rg({options:rg({meta:rE(oR(),rr()).optional()})}),new rS({type:"map",keyType:oR(),valueType:Cv.shape.deferred_order,...tC(void 0)}),rg({recipeID:o5().int().positive()});let LO=rg({deleteContent:re()}).strict();function LR(e,t){let i=e.slice();i.sort((e,i)=>{var a,n;let o,r;return a=e.id,n=i.id,o=t.get(a),r=t.get(n),void 0===o&&void 0===r?0:void 0===o?1:void 0===r?-1:o-r});for(let t=0;t<i.length;t++){let a=i[t];void 0!==a&&(e[t]=a)}}function LM(e,t,i,a,n){let o=function(e){let t=new Map;for(let i=0;i<e.length;i++){let a=e[i];void 0!==a&&t.set(a,i)}return t}(a);return Lh(e,a=>{if(i===R2.CONTENT){if(t!==e.recipe_id)throw Error(`reorderChildrenByID: slot "${R2.CONTENT}" is only legal at the recipe root; got parentID ${t}, expected recipe ID ${e.recipe_id}`);LR(a.flow.content,o);return}if(t===e.recipe_id)throw Error(`reorderChildrenByID: slot "${i}" is not legal at the recipe root; only "${R2.CONTENT}" is`);if(!function e(t,i,a,n,o){for(let r of t)if(r&&Ir(r)){if(r.id===i){if(a===R2.ITEMS){if(void 0===n)throw Error(`reorderChildrenByID: slot "${R2.ITEMS}" requires a pathCode (block ${i})`);let e=r.paths.find(e=>e.path_code===n);if(void 0===e)throw Error(`reorderChildrenByID: path "${n}" not found on block ${i}`);return LR(e.content,o),!0}return a===R2.MODIFIERS&&LR(r.modifiers,o),!0}for(let t of r.paths)if(e(t.content,i,a,n,o))return!0}return!1}(a.flow.content,t,i,n,o))throw Error(`reorderChildrenByID: parent with ID ${t} not found in recipe`)})}function LL(e,t,i){return Lh(e,e=>{if(T7(i,kM.TRIGGER)){for(let a=0;a<e.flow.entry.triggers.length;a++)if(e.flow.entry.triggers[a]?.id===t){e.flow.entry.triggers[a]=Lg(i);return}throw Error(`replaceEntityByID: entity with ID ${t} not found in recipe`)}if(!function e(t,i,a){for(let n=0;n<t.length;n++){let o=t[n];if(o){if(o.id===i&&(T8(a)||Ir(a)))return t[n]=Lg(a),!0;if(Ir(o)){if(It(a)){for(let e=0;e<o.modifiers.length;e++)if(o.modifiers[e]?.id===i)return o.modifiers[e]=Lg(a),!0}for(let t of o.paths)if(e(t.content,i,a))return!0}}}return!1}(e.flow.content,t,i))throw Error(`replaceEntityByID: entity with ID ${t} not found in recipe`)})}function LN(e,t){e.fields=t.fields}function LP(e,t){e.is_item_on=t}function Lz(e,t){let i=[],a=new Map;for(let n of t){let t={code:n.code,message:n.message},o=n.target,r=null===o?void 0:R0(e,o.id);if(null===o||void 0===r||r.type!==o.node_type){i.push(t);continue}let s=a.get(o.id)??[];a.set(o.id,[...s,t])}let n=e;for(let[e,t]of a){let a=R0(n,e);if(void 0===a){i.push(...t);continue}n=LL(n,e,{...a,violations:t})}return i.length>0&&(n={...n,violations:i}),n}rg({fields:k4}),rg({found:re(),matchedNonModifier:re()}),rg({fields:k4});let LU=rg({violations:Cg,recipe:CV}).strict(),LF=rg({success:re(),message:oR().optional(),data:LU});class Lj extends Error{constructor(e,t){super("The toggle was rejected by backend validation."),this.name="RecipeToggleRejectionError",this.violations=e,this.recipe=t}}function LB(e){if(!(e instanceof dH)||422!==e.status)return;let t=LF.safeParse(e.body);return t.success?new Lj(t.data.data.violations,t.data.data.recipe):void console.warn("[recipe-toggle-rejection] 422 body did not match the rejection contract:",t.error.issues)}function LH(e){if(e.item_type!==kM.TRIGGER)return e.item_type}function LV(e){return!("string"==typeof e&&e.startsWith("temp-"))}function Lq(e){if(!LV(e.id))return;let t=[];for(let i of e.paths){let e=LZ(i.content);0!==e.length&&t.push({path_code:i.path_code,items:e})}let i={id:e.id,kind:R6.BLOCK,block_type:e.block_type};t.length>0&&(i.paths=t);let a=[];for(let t of e.modifiers)LV(t.id)&&a.push({id:t.id,kind:R6.MODIFIER,block_modifier_type:t.block_modifier_type});return a.length>0&&(i.modifiers=a),i}function LZ(e){let t=[];for(let i of e){if(Ir(i)){let e=Lq(i);void 0!==e&&t.push(e);continue}if("number"!=typeof i.id)continue;let e=LH(i);void 0!==e&&t.push({id:i.id,kind:R6.ITEM,item_type:e})}return t}function LW(e){return LZ(e.flow.content)}function LG(e,t){let i=new Map;for(let t of e)i.set(t.id,t);let a=[];for(let e of t){let t=i.get(e);if(void 0===t)continue;if(Ir(t)){let e=Lq(t);void 0!==e&&a.push(e);continue}if("number"!=typeof t.id)continue;let n=LH(t);void 0!==n&&a.push({id:t.id,kind:R6.ITEM,item_type:n})}return a}function LK(e,t,i,a,n){let o=a.map(e=>e.id);try{return LM(e,t,i,o,n)}catch(a){return console.debug("[reorderRecipe] slot apply skipped",{parentID:t,slot:i,pathCode:n,error:a}),e}}function LY(e,t){if(void 0===t||0===t.length)return e;let i=LK(e,e.recipe_id,R2.CONTENT,t);for(let e of t)i=function e(t,i){if(i.kind!==R6.BLOCK)return t;let a=t;if(void 0!==i.paths){for(let t of i.paths)if(0!==t.items.length)for(let n of(a=LK(a,i.id,R2.ITEMS,t.items,t.path_code),t.items))a=e(a,n)}return void 0!==i.modifiers&&i.modifiers.length>0&&(a=LK(a,i.id,R2.MODIFIERS,i.modifiers)),a}(i,e);return i}let LQ=new WeakMap;function LX(){return{meta:{recipeSave:!0},mutationFn:async e=>{let t=Mr.parse(e),i=LQ.get(e);if(void 0===i)throw Error("getReorderMutationOptions: wire body stash is empty. onMutate must run before mutationFn.");return async function(e,t){if(d4.DEV.RETURN_MOCK_DATA){await new Promise(e=>setTimeout(e,d4.DEV.MOCK_DELAY_MS));let t=dW.getQueryData(Ae.detail(e));if(void 0===t)throw Error(`reorderRecipe (mock): recipe ${e} not in cache; the optimistic apply must have run before the request`);return Ms.parse({recipe:t})}let i={};return void 0!==t&&(i.actions=t),dV({endpoint:`recipe/${e}/reorder`,responseSchema:Ms,eventName:"uap.d.recipe.reordered",method:"POST",data:i,useEnvelope:!0})}(t.recipeID,i)},onMutate:async e=>{let{parsed:t,previousRecipe:i,queryKey:a}=await LA(Mr,e),n=LW(i),{optimisticRecipe:o,wireContent:r}=function(e,t){switch(t.kind){case R5.FULL_TREE:return{optimisticRecipe:LY(e,t.actions),wireContent:t.actions??[]};case R5.SLOT:{let i=function(e,t){if(t.parentKind===R4.RECIPE)return t.order;let i=function e(t,i,a){for(let n of t)if(Ir(n)){if(n.id===a)return{block:n,ancestors:i};for(let t of n.paths){let o=e(t.content,[...i,n],a);if(void 0!==o)return o}}}(e.flow.content,[],t.parentID);if(void 0===i)throw Error(`reorderRecipe (slot): block with ID ${t.parentID} not found in recipe cache`);let{block:a,ancestors:n}=i,o=Lq(a);if(void 0===o)throw Error(`reorderRecipe (slot): block with ID ${t.parentID} cannot be addressed on the wire (temp-* id)`);delete o.paths,delete o.modifiers,t.slot===R2.ITEMS?o.paths=[{path_code:t.pathCode,items:t.order}]:t.slot===R2.MODIFIERS&&(o.modifiers=t.order);let r=[];for(let e=0;e<n.length;e++){let t=n[e+1]??a;r.push(t.id)}return function(e,t,i){let a=t;for(let t=e.length-1;t>=0;t--){let n=e[t];if(void 0===n)continue;let o=Lq(n);if(void 0===o)continue;let r=i[t],s=n.paths.find(e=>e.content.some(e=>e.id===r));void 0!==s&&(delete o.modifiers,o.paths=[{path_code:s.path_code,items:[a]}],a=o)}return[a]}(n,o,r)}(e,t),a=t.order.map(e=>e.id);return{optimisticRecipe:LM(e,t.parentID,t.slot,a,t.slot===R2.ITEMS?t.pathCode:void 0),wireContent:i}}case R5.MOVE:{let i=function(e,t,i,a,n){let o=R0(e,t);if(!o)throw Error(`moveEntityBetweenParents: entity with id ${t} not found`);return Lx(L$(e,t),i,o,a,n)}(e,t.entityID,t.toParentID,t.toPathCode,t.toIndex);return{optimisticRecipe:i,wireContent:LW(i)}}}}(i,t);return LQ.set(e,r),dW.setQueryData(a,o),{previousRecipe:i,previousContent:n}},onError:(e,t,i)=>{if(!i)return void console.error("[reorderRecipe] Mutation failed; nothing to roll back:",e);let{previousRecipe:a,previousContent:n}=i,o=Ae.detail(a.recipe_id);dW.setQueryData(o,e=>t.kind===R5.MOVE||void 0===e?a:LY(e,n)),console.error("[reorderRecipe] Mutation failed, rolled back optimistic update:",e)},onSuccess:(e,t,i)=>{let a=Ae.detail(t.recipeID),n=LW(e.recipe);dW.setQueryData(a,t=>t?LD(LY(t,n),e.recipe):e.recipe)},onSettled:(e,t,i,a)=>{dW.invalidateQueries({queryKey:Ae.detail(i.recipeID)})}}}async function LJ(e){if(void 0===e.insertIndex)return;let t=Ae.detail(e.recipeID),i=dW.getQueryData(t);if(void 0===i)return;let a=function(e,t){let i=function(e,t,i){if(t===e.recipe_id)return e.flow.content;let a=R0(e,t);if(void 0===a||!Ir(a))return;let n=void 0===i?a.paths[0]:a.paths.find(e=>e.path_code===i);return n?.content}(e,t.parentID,t.pathCode);if(void 0===i)return;let a=LZ(i);return a.length!==i.length||a.length<2?void 0:t.parentID===e.recipe_id?{kind:R5.SLOT,recipeID:t.recipeID,parentKind:R4.RECIPE,parentID:e.recipe_id,slot:R2.CONTENT,order:a}:void 0!==t.pathCode?{kind:R5.SLOT,recipeID:t.recipeID,parentKind:R4.BLOCK,parentID:t.parentID,slot:R2.ITEMS,pathCode:t.pathCode,order:a}:void 0}(i,e);if(void 0!==a)try{await dK(LX(),a)}catch(e){console.error("[persistInsertPosition] The node was added but its position could not be saved:",e)}}let L1={PENDING:"pending",RESOLVED:"resolved"};rT(L1),rv("status",[rg({status:rT([L1.PENDING])}).strict(),rg({status:rT([L1.RESOLVED]),node_id:ry([o5(),oR()])}).strict()]);let L0=new Map;function L2(e,t){L0.set(e,{status:L1.RESOLVED,node_id:t})}function L3(e){L0.delete(e)}function L4(e){return L0.get(e)}let L6=rg({recipe:CV}).strict(),L5=rg({recipeID:CH.shape.recipe_id,itemType:kL,itemID:ry([o5(),oR()]),parentID:ry([o5(),oR()])}).strict();function L8(){return{meta:{recipeSave:!0},mutationFn:async e=>{var t,i;let a=L5.parse(e);return t=a.recipeID,i=a.itemType,dV({endpoint:`recipe/${t}/item/${i}/delete`,responseSchema:L6,eventName:"uap.d.recipe.item.deleted",method:"POST",data:{item_id:a.itemID},useEnvelope:!0})},onMutate:async e=>{let{parsed:t,previousRecipe:i,queryKey:a}=await LA(L5,e),n=R0(i,t.itemID),o=n&&!Ir(n)?n:void 0,r=o?t.parentID:void 0,s=o?Lf(i,t.itemID):void 0,l=L$(i,t.itemID);return dW.setQueryData(a,l),{previousRecipe:i,removedItem:o,removedFromParentID:r,removedFromIndex:s}},onError:(e,t,i)=>{let a=L5.parse(t),n=Ae.detail(a.recipeID);if(!i?.removedItem||void 0===i.removedFromParentID)return void console.error("[deleteItem] Mutation failed; no item to roll back:",e);let o=i.removedItem,r=i.removedFromParentID;dW.setQueryData(n,e=>e?R0(e,o.id)?e:Lx(e,r,o,void 0,i.removedFromIndex):i.previousRecipe),console.error("[deleteItem] Mutation failed, rolled back optimistic delete:",e)},onSuccess:(e,t,i)=>{let a=L5.parse(t),n=Ae.detail(a.recipeID);dW.setQueryData(n,t=>t?LD(t,e.recipe):e.recipe),console.log(`[deleteItem] Item deleted successfully: ${a.itemID}`)},onSettled:(e,t,i,a)=>{dW.invalidateQueries({queryKey:Ae.detail(i.recipeID)})}}}rg({previousRecipe:Il,removedItem:ry([T5,Ie]).optional(),removedFromParentID:ry([o5(),oR()]).optional(),removedFromIndex:o5().int().nonnegative().optional()}).strict().readonly();let L7=rg({recipe:CV}).strict(),L9=rg({recipeID:CH.shape.recipe_id,itemType:kL,itemID:ry([o5(),oR()]),isItemOn:re()}).strict();rg({previousRecipe:Il,originalItem:T5.optional()}).strict().readonly();let Ne=rg({recipe:CV}).strict(),Nt=rg({recipeID:CH.shape.recipe_id,itemType:kL,itemID:ry([o5(),oR()]),fields:k4}).strict();rg({previousRecipe:Il,originalItem:ry([T5,Ie]).optional()}).strict().readonly();let Ni="/recipe-builder/select-node",Na="/recipe-builder/edit-node",Nn="/recipe-builder/select-recipe-type",No="/recipe-builder/templates",Nr="/recipe-builder/resolve-dependencies",Ns="/recipe-log",Nl="/logs",Nc="/recipe-template",Nd={ITEM:"item",BLOCK:"block",BLOCK_MODIFIER:"block-modifier"},Nu=rT(Nd),Np={[kP.ITEM]:Nd.ITEM,[kP.BLOCK]:Nd.BLOCK,[kP.BLOCK_MODIFIER]:Nd.BLOCK_MODIFIER},Nh={[Nd.ITEM]:kP.ITEM,[Nd.BLOCK]:kP.BLOCK,[Nd.BLOCK_MODIFIER]:kP.BLOCK_MODIFIER},Ng=Nu.transform(e=>Nh[e]);function Nm(e){return Np[kz.parse(e)]}function Nf(e,t){return`${Na}/${Nm(e)}/${encodeURIComponent(String(t))}/set-up`}let Ny=rg({tests:CR}).strict(),Nb=rg({recipeID:o5().int().positive(),nodeType:kz,nodeID:ry([o5(),oR().min(1)])}),Nv={all:()=>["recipe-node-tests"],detail:(e,t,i)=>[...Nv.all(),e,t,i]};async function N_(e){let[,t,i,a]=e.queryKey,n=Nb.parse({recipeID:t,nodeType:i,nodeID:a});return d4.DEV.RETURN_MOCK_DATA?(await new Promise(e=>setTimeout(e,d4.DEV.MOCK_DELAY_MS)),Ny.parse({tests:[...DG,...DK]}).tests):(await dV({endpoint:`recipe/${n.recipeID}/node-tests/${Nm(n.nodeType)}/${encodeURIComponent(String(n.nodeID))}`,responseSchema:Ny,method:"GET",useEnvelope:!0})).tests}let Nw="uap.d.recipe.block.added",Nx=rg({block_id:ry([o5(),oR()]),recipe:CV}).strict(),Nk=rg({recipeID:CH.shape.recipe_id,parentID:ry([o5(),oR()]),pathCode:oR().min(1).optional(),insertIndex:o5().int().nonnegative().optional(),blockType:E1,fields:rE(oR(),rr()).optional(),temporaryID:T2}).strict();rg({previousRecipe:Il,temporaryBlockID:oR()}).strict().readonly();let NE=rg({recipe:CV}).strict();rg({block_id:ry([o5(),oR()]),delete_content:re()}).strict();let NS=rg({recipeID:CH.shape.recipe_id,blockType:E1,blockID:ry([o5(),oR()]),parentID:ry([o5(),oR()]),deleteContent:re()}).strict();function NC(){return{meta:{recipeSave:!0},mutationFn:async e=>{var t,i;let a=NS.parse(e);return t=a.recipeID,i=a.blockType,dV({endpoint:`recipe/${t}/block/${i}/delete`,responseSchema:NE,eventName:"uap.d.recipe.block.deleted",method:"POST",data:{block_id:a.blockID,delete_content:a.deleteContent},useEnvelope:!0})},onMutate:async e=>{var t;let{parsed:i,previousRecipe:a,queryKey:n}=await LA(NS,e),o=R0(a,i.blockID),r=o&&Ir(o)?o:void 0,s=r?i.parentID:void 0,l=r?(t=i.blockID,function e(t,i){for(let a of t)if(Ir(a))for(let t of a.paths){if(t.content.some(e=>e.id===i))return t.path_code;let a=e(t.content,i);if(void 0!==a)return a}}(a.flow.content,t)):void 0,c=r?Lf(a,i.blockID):void 0,d=function(e,t,i){if(LO.parse(i).deleteContent)return L$(e,t);let a=LC(e,t);if(void 0===a)return e;let n=a.movedStepIDs.map(t=>R0(e,t)).filter(e=>void 0!==e),o=L$(e,t),r=0;for(let e of n)o=Lx(o,a.parentID,e,a.pathCode,a.index+r),r+=1;for(let e of a.deletedSteps)o=L$(o,e.stepID);return o}(a,i.blockID,{deleteContent:i.deleteContent});return dW.setQueryData(n,d),{previousRecipe:a,removedBlock:r,removedFromParentID:s,removedFromPathCode:l,removedFromIndex:c}},onError:(e,t,i)=>{if(!i?.removedBlock||void 0===i.removedFromParentID)return void console.error("[deleteBlock] Mutation failed; no block to roll back:",e);let a=i.removedBlock,n=i.removedFromParentID,o=Ae.detail(i.previousRecipe.recipe_id);dW.setQueryData(o,e=>{if(!e)return i.previousRecipe;let t=R0(e,a.id);if(t&&Ir(t))return e;let o=e;for(let e of a.paths)for(let t of e.content)o=L$(o,t.id);return Lx(o,n,a,i.removedFromPathCode,i.removedFromIndex)}),console.error("[deleteBlock] Mutation failed, rolled back optimistic delete:",e)},onSuccess:(e,t,i)=>{let a=NS.parse(t),n=Ae.detail(a.recipeID);dW.setQueryData(n,t=>t?LD(t,e.recipe):e.recipe)},onSettled:(e,t,i,a)=>{dW.invalidateQueries({queryKey:Ae.detail(i.recipeID)})}}}rg({previousRecipe:Il,removedBlock:Io.optional(),removedFromParentID:ry([o5(),oR()]).optional(),removedFromPathCode:oR().min(1).optional(),removedFromIndex:o5().int().nonnegative().optional()}).strict().readonly();let NT=rg({recipe:CV}).strict(),NI=rg({recipeID:CH.shape.recipe_id,blockType:E1,blockID:ry([o5(),oR()]),fields:rE(oR(),rr()),clearModifierIDs:rp(ry([o5(),oR()])).optional()}).strict();rg({previousRecipe:Il,originalBlock:Io.optional()}).strict().readonly();let ND=rg({block_modifier_id:ry([o5(),oR()]),recipe:CV}).strict(),NA=rg({recipeID:CH.shape.recipe_id,parentBlockID:ry([o5(),oR()]),integrationCode:EP.shape.code,modifierType:EE,modifierCode:Eb.shape.code,temporaryID:T2}).strict();rg({previousRecipe:Il,temporaryBlockModifierID:oR()}).strict().readonly();let N$=rg({recipe:CV}).strict(),NO=rg({recipeID:CH.shape.recipe_id,modifierType:EE,modifierID:ry([o5(),oR()]),parentBlockID:ry([o5(),oR()])}).strict();function NR(){return{meta:{recipeSave:!0},mutationFn:async e=>{var t,i;let a=NO.parse(e);return t=a.recipeID,i=a.modifierType,dV({endpoint:`recipe/${t}/block-modifier/${i}/delete`,responseSchema:N$,eventName:"uap.d.recipe.block-modifier.deleted",method:"POST",data:{block_modifier_id:a.modifierID},useEnvelope:!0})},onMutate:async e=>{let{parsed:t,previousRecipe:i,queryKey:a}=await LA(NO,e),n=R0(i,t.modifierID),o=void 0!==n&&It(n)?n:void 0,r=o?t.parentBlockID:void 0,s=o?Lf(i,t.modifierID):void 0,l=L$(i,t.modifierID);return dW.setQueryData(a,l),{previousRecipe:i,removedBlockModifier:o,removedFromParentID:r,removedFromIndex:s}},onError:(e,t,i)=>{let a=NO.parse(t),n=Ae.detail(a.recipeID);if(!i?.removedBlockModifier||void 0===i.removedFromParentID)return void console.error("[deleteBlockModifier] Mutation failed; no modifier to roll back:",e);let o=i.removedBlockModifier,r=i.removedFromParentID;dW.setQueryData(n,e=>e?R0(e,o.id)?e:Lx(e,r,o,void 0,i.removedFromIndex):i.previousRecipe),console.error("[deleteBlockModifier] Mutation failed, rolled back optimistic delete:",e)},onSuccess:(e,t)=>{let i=NO.parse(t),a=Ae.detail(i.recipeID);dW.setQueryData(a,t=>t?LD(t,e.recipe):e.recipe),console.log(`[deleteBlockModifier] Modifier deleted successfully: ${i.modifierID}`)},onSettled:(e,t,i,a)=>{dW.invalidateQueries({queryKey:Ae.detail(i.recipeID)})}}}rg({previousRecipe:Il,removedBlockModifier:Ie.optional(),removedFromParentID:ry([o5(),oR()]).optional(),removedFromIndex:o5().int().nonnegative().optional()}).strict().readonly();let NM=rg({recipe:CV}).strict(),NL=rg({recipeID:CH.shape.recipe_id,modifierType:EE,modifierID:ry([o5(),oR()]),fields:k4}).strict();rg({previousRecipe:Il,originalBlockModifier:Ie.optional()}).strict().readonly();let NN=rg({recipeID:CH.shape.recipe_id,notes:oR()}).strict();rg({notes:oR()}).strict();let NP=rg({recipe:CV}).strict(),Nz=rg({recipeNotes:oR()}).strict();async function NU(e){let t=NN.parse(e);if(d4.DEV.RETURN_MOCK_DATA)return await new Promise(e=>setTimeout(e,d4.DEV.MOCK_DELAY_MS)),Il.parse({...IC,recipe_id:t.recipeID,notes:t.notes});let i={notes:t.notes},a=await dV({endpoint:`recipe/${t.recipeID}/details/notes`,responseSchema:NP,method:"POST",data:i,useEnvelope:!0});return Il.parse(a.recipe)}rg({previousRecipe:Il}).strict().readonly();let NF=rg({recipeID:CH.shape.recipe_id,runAs:CF}).strict(),Nj=rg({success:re().optional(),recipe:CV}).passthrough();async function NB(e){let t=NF.parse(e);return d4.DEV.RETURN_MOCK_DATA?(await new Promise(e=>setTimeout(e,d4.DEV.MOCK_DELAY_MS)),Nj.parse({success:!0,recipe:{...IC,recipe_id:t.recipeID,flow:{...IC.flow,run_as:t.runAs}}})):dV({endpoint:`recipe/${t.recipeID}/run_as/set`,responseSchema:Nj,method:"POST",data:{fields:t.runAs.fields},useEnvelope:!0})}function NH(){return{meta:{recipeSave:!0},mutationFn:NB,onMutate:async e=>{var t;let{parsed:i,previousRecipe:a,queryKey:n}=await LA(NF,e);return t=i.runAs,dW.setQueryData(n,{...a,flow:{...a.flow,run_as:t}}),{previousRecipe:a}},onSuccess:(e,t)=>{dW.setQueryData(Ae.detail(t.recipeID),t=>t?{...t,notices:e.recipe.notices}:t)},onError:(e,t,i)=>{i?.previousRecipe&&dW.setQueryData(Ae.detail(t.recipeID),i.previousRecipe)}}}rg({previousRecipe:Il}).strict().readonly();let NV=rg({recipeID:CH.shape.recipe_id,settingID:Cx,fields:k4}).strict(),Nq=rg({recipe:CV}).strict();async function NZ(e){let t=NV.parse(e);if(d4.DEV.RETURN_MOCK_DATA)return await new Promise(e=>setTimeout(e,d4.DEV.MOCK_DELAY_MS)),Il.parse({...IC,recipe_id:t.recipeID,settings:{...IC.settings,[t.settingID]:t.fields}});let i=await dV({endpoint:`recipe/${t.recipeID}/settings/update`,responseSchema:Nq,method:"POST",data:{setting_id:t.settingID,fields:t.fields},useEnvelope:!0});return Il.parse(i.recipe)}rg({previousRecipe:Il}).strict().readonly();let NW=rg({recipeID:CH.shape.recipe_id,status:CS}).strict(),NG=rg({recipe:CV}).strict();async function NK(e){let t,i=NW.parse(e);if(d4.DEV.RETURN_MOCK_DATA)return await new Promise(e=>setTimeout(e,d4.DEV.MOCK_DELAY_MS)),Il.parse({...IC,recipe_id:i.recipeID,recipe_status:i.status});try{t=await dV({endpoint:`recipe/${i.recipeID}/settings/set-status`,responseSchema:NG,method:"POST",data:{recipe_status:i.status},useEnvelope:!0})}catch(t){let e=LB(t);if(void 0!==e)throw e;throw t}return Il.parse(t.recipe)}rg({previousRecipe:Il}).strict().readonly();let NY=()=>["recipe-terms"];async function NQ(e){return d4.DEV.RETURN_MOCK_DATA?(await new Promise(e=>setTimeout(e,d4.DEV.MOCK_DELAY_MS)),Cl.parse(IO)):dV({endpoint:"recipe-taxonomies",responseSchema:Cl,method:"GET",useEnvelope:!0})}let NX=()=>({queryKey:NY(),queryFn:NQ,staleTime:1/0});function NJ(e){let t=[],i=new Set(e.filter(e=>e.id>0).map(e=>e.slug));return{terms:e.map(e=>{if(e.id>0)return e;let a={id:9e3-e.id,name:e.name,slug:(e=>{let t=e,a=2;for(;i.has(t);)t=`${e}-${a}`,a+=1;return i.add(t),t})(e.name.toLowerCase().replace(/\s+/gu,"-")),parent:e.parent};return t.push({...a,client_id:e.id}),a}),created:t}}let N1=rg({recipeID:CH.shape.recipe_id,terms:Cr}).strict();rg({categories:Cr}).strict();let N0=rg({recipe:CV,created:Cs}).strict(),N2=rg({recipeID:CH.shape.recipe_id,terms:Cr}).strict();rg({tags:Cr}).strict();let N3=rg({recipe:CV,created:Cs}).strict(),N4={CATEGORIES:"categories",TAGS:"tags"};rT(N4),rg({recipe:Il,created:Cs}),rg({terms:Cr,created:Cs});let N6=rg({promise:rZ(e=>e instanceof Promise,{message:"promise must be a Promise"}),resolve:rZ(e=>"function"==typeof e,{message:"resolve must be a function"}),reject:rZ(e=>"function"==typeof e,{message:"reject must be a function"})});rg({pending:Cr.nullable(),timer:rZ(e=>"number"==typeof e||"object"==typeof e,{message:"timer must be a setTimeout handle"}).nullable(),inFlight:re(),burst:N6.nullable()});let N5=new Map,N8=(e,t)=>`${e}:${t}`,N7={[N4.CATEGORIES]:async function(e){let t=N1.parse(e);if(d4.DEV.RETURN_MOCK_DATA){await new Promise(e=>setTimeout(e,d4.DEV.MOCK_DELAY_MS));let{terms:e,created:i}=NJ(t.terms);return{recipe:Il.parse({...IC,recipe_id:t.recipeID,categories:e}),created:i}}let i={categories:t.terms},a=await dV({endpoint:`recipe/${t.recipeID}/details/categories`,responseSchema:N0,method:"POST",data:i,useEnvelope:!0});return{recipe:Il.parse(a.recipe),created:a.created}},[N4.TAGS]:async function(e){let t=N2.parse(e);if(d4.DEV.RETURN_MOCK_DATA){await new Promise(e=>setTimeout(e,d4.DEV.MOCK_DELAY_MS));let{terms:e,created:i}=NJ(t.terms);return{recipe:Il.parse({...IC,recipe_id:t.recipeID,tags:e}),created:i}}let i={tags:t.terms},a=await dV({endpoint:`recipe/${t.recipeID}/details/tags`,responseSchema:N3,method:"POST",data:i,useEnvelope:!0});return{recipe:Il.parse(a.recipe),created:a.created}}};function N9(e,t,i){dW.setQueryData(Ae.detail(e),e=>e?{...e,[t]:i}:e)}function Pe(e,t,i){N9(e,t,i);let a=N8(e,t),n=N5.get(a)??{pending:null,timer:null,inFlight:!1,burst:null};if(!n.burst){let e,t,i=(e=()=>void 0,t=()=>void 0,{promise:new Promise((i,a)=>{e=i,t=a}),resolve:e,reject:t});n.burst=i,(async function(e){return dW.getMutationCache().build(dW,{mutationFn:e,meta:{recipeSave:!0}}).execute(void 0)})(()=>i.promise).catch(()=>void 0)}n.pending=i,n.timer&&clearTimeout(n.timer),n.timer=setTimeout(()=>{n.timer=null,async function e(t,i){let a=N5.get(N8(t,i));if(!a||a.inFlight||null===a.pending)return;let n=a.pending;a.pending=null,a.inFlight=!0;try{var o,r;let{recipe:e,created:s}=await N7[i]({recipeID:t,terms:n});if(o=e[i],dW.setQueryData(NY(),e=>{if(!e)return e;let t=new Set(e[i].map(e=>e.slug)),a=o.filter(e=>e.id>0&&!t.has(e.slug));return 0===a.length?e:{...e,[i]:[...e[i],...a]}}),r=e.notices,dW.setQueryData(Ae.detail(t),e=>e?{...e,notices:r}:e),null===a.pending)N9(t,i,e[i]),a.burst?.resolve(),a.burst=null;else{let e,a,n;s.length>0&&(e=new Map(s.map(e=>[e.client_id,e])),a=t=>{let i=e.get(t.id);return i?{id:i.id,name:i.name,slug:i.slug,parent:i.parent}:t},dW.setQueryData(Ae.detail(t),e=>e?{...e,[i]:e[i].map(a)}:e),n=N5.get(N8(t,i)),n?.pending&&(n.pending=n.pending.map(a)))}}catch(e){null===a.pending&&(a.burst?.reject(e),a.burst=null)}finally{a.inFlight=!1,await e(t,i)}}(e,t)},400),N5.set(a,n)}let Pt=rg({recipeID:CH.shape.recipe_id,title:CH.shape.title}).strict();rg({title:oR()}).strict();let Pi=rg({recipe:CV}).strict(),Pa=rg({recipeTitle:oR()}).strict();async function Pn(e){let t=Pt.parse(e);if(d4.DEV.RETURN_MOCK_DATA)return await new Promise(e=>setTimeout(e,d4.DEV.MOCK_DELAY_MS)),Il.parse({...IC,recipe_id:t.recipeID,title:t.title});let i={title:t.title},a=await dV({endpoint:`recipe/${t.recipeID}/details/title`,responseSchema:Pi,method:"POST",data:i,useEnvelope:!0});return Il.parse(a.recipe)}rg({previousRecipe:Il}).strict().readonly();let Po=rg({recipeID:CH.shape.recipe_id,triggerLogic:CL}).strict(),Pr=rg({recipe:CV}).strict();async function Ps(e){let t=Po.parse(e);return d4.DEV.RETURN_MOCK_DATA?(await new Promise(e=>setTimeout(e,d4.DEV.MOCK_DELAY_MS)),Pr.parse({recipe:IT})):dV({endpoint:`recipe/${t.recipeID}/settings/set-trigger-logic`,responseSchema:Pr,method:"POST",data:{trigger_logic:t.triggerLogic},useEnvelope:!0})}rg({previousRecipe:Il}).strict().readonly();let Pl=rg({recipeID:CH.shape.recipe_id,recipeType:CP}).strict(),Pc=rg({recipe:CV}).strict(),Pd="USER_TYPE",Pu=rg({recipeType:CP}).strict();async function Pp(e){let t=Pl.safeParse(e);if(!t.success)return;let i=t.data;return d4.DEV.RETURN_MOCK_DATA?(await new Promise(e=>setTimeout(e,d4.DEV.MOCK_DELAY_MS)),Pc.parse({recipe:{...IC,recipe_id:i.recipeID,recipe_type:i.recipeType}})):await dV({endpoint:`recipe/${i.recipeID}/settings/set-type`,responseSchema:Pc,method:"POST",data:{recipe_type:i.recipeType},useEnvelope:!0})}rg({previousRecipe:Il}).strict().readonly();let Ph=rg({recipeID:CH.shape.recipe_id}).strict(),Pg=rg({success:re(),is_user_logged_in:re(),recipe_id:CH.shape.recipe_id,recipe:CV,recipe_run_completed:re(),recipe_log_id:o5().int().nonnegative(),run_number:o5().int().nonnegative()}).passthrough(),Pm={GET:"GET",POST:"POST",PUT:"PUT",DELETE:"DELETE"},Pf=rT(Pm);rg({endpoint:rG(RegExp),method:Pf,envelope:re(),body:rr()}).strict().superRefine((e,t)=>{Object.prototype.hasOwnProperty.call(e,"body")||t.addIssue({code:"custom",path:["body"],message:"The `body` key is required (a body-less descriptor is not allowed; set `body: undefined` to send an empty reply)."})});let Py={success:!0,is_user_logged_in:!0,recipe_id:IS.recipe_id,recipe:IS,recipe_run_completed:!0,recipe_log_id:9001,run_number:1};async function Pb(e){let t,i=Ph.parse(e);if(d4.DEV.RETURN_MOCK_DATA)await new Promise(e=>setTimeout(e,d4.DEV.MOCK_DELAY_MS)),t=Pg.parse(Py);else try{t=await dV({endpoint:`recipe/${i.recipeID}/run-now`,responseSchema:Pg,method:"POST",useEnvelope:!0})}catch(t){let e=LB(t);if(void 0!==e)throw e;throw t}return await $2(i.recipeID),t}Pm.POST,e0=e=>{let t=$0.safeParse(e.detail);t.success?$2(t.data.recipeId):console.warn(`[invalidate-recipe] Event '${e.type}' fired with an invalid payload; nothing invalidated.`,t.error.format())},document.addEventListener("uap.d.recipe.invalidate",e0),document.addEventListener("uap.builder.recipe.reload",e0);let Pv=60*d4.NONCE_REFRESH_INTERVAL_H*60*1e3,P_={queryKey:["site","nonce"],queryFn:async function(){return await dV({endpoint:"site/refresh-nonce",responseSchema:ba,method:"POST",useEnvelope:!0})},staleTime:Pv,refetchInterval:Pv,refetchIntervalInBackground:!0,refetchOnWindowFocus:!0,refetchOnMount:!0,refetchOnReconnect:!0};var Pw=function(e,t,i,a){var n,o=arguments.length,r=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(r=(o<3?n(r):o>3?n(t,i,r):n(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r};let Px=class extends ld{constructor(){super(...arguments),this.nonceController=new vE(this,{...P_,enabled:!0})}static{this.styles=sf`:host { display: contents }`}connectedCallback(){this.configureClient(),super.connectedCallback()}willUpdate(e){this.nonceController.result.data?.nonce&&(this.siteApiNonce=this.nonceController.result.data.nonce),this.configureClient()}configureClient(){var e;this.siteApiURL&&this.siteApiNonce&&(e={baseUrl:this.siteApiURL,wpNonce:this.siteApiNonce,methodOverride:!0},dF={...dF,...e})}render(){return this.siteApiURL&&this.siteApiNonce?s1`<slot></slot>`:s1` <uas-alert type="error" .heading=${(0,b4.escapeHTML)((0,lX.__)("The application can't be loaded","uncanny-automator"))} > ${(0,lX.__)("We couldn't load the application. The WordPress site URL or nonce is missing or unavailable.","uncanny-automator")} </uas-alert> `}};Pw([l0({type:String,attribute:"site-api-url"})],Px.prototype,"siteApiURL",void 0),Pw([l0({type:String,attribute:"site-api-nonce"})],Px.prototype,"siteApiNonce",void 0),Px=Pw([lJ("uap-d-site-auth")],Px);let Pk="https://localhost/wp-admin/update-core.php",PE={id:bn.AUTOMATOR,name:"Uncanny Automator",version:"8.0.0",update:null},PS={id:bn.AUTOMATOR,name:"Uncanny Automator",version:"8.0.0",update:{version:"8.0.1",url:Pk}},PC={id:bn.AUTOMATOR_PRO,name:"Uncanny Automator Pro",version:"8.0.0",update:null},PT={id:bn.AUTOMATOR_PRO,name:"Uncanny Automator Pro",version:"8.0.0",update:{version:"8.0.1",url:Pk}},PI=rg({plugins:rp(bo).min(1)}).strict();rE(dQ,PI.shape.plugins);let PD={[dY.NO_ACCOUNT]:[PE],[dY.PRO_INACTIVE]:[PE,PC],[dY.CONNECTED]:[PS],[dY.NEAR_LIMIT]:[PS],[dY.AT_LIMIT]:[PS],[dY.PRO]:[PE,PT],[dY.EMPTY]:[PE]},PA={queryKey:["site","status"],queryFn:async function(){if(d4.DEV.RETURN_MOCK_DATA){await new Promise(e=>setTimeout(e,d4.DEV.MOCK_DELAY_MS));let e={plugins:PD[d4.DEV.MOCK_SCENARIO]};return PI.parse(e).plugins}return(await dV({endpoint:"site/get-status",method:"GET",responseSchema:PI,useEnvelope:!0})).plugins},staleTime:1/0},P$=rE(oR(),oR());function PO(e,t={}){let i=dJ.parse(e),a=Object.entries(P$.parse(t)).filter(([e])=>"post_type"!==e&&"page"!==e).map(([e,t])=>`&${encodeURIComponent(e)}=${encodeURIComponent(t)}`).join("");return`edit.php?post_type=uo-recipe&page=${i}${a}`}function PR(e){let[t="",...i]=e.split("");return{before:t,after:i.join("")}}rg({before:oR(),after:oR()}).strict();let PM={SELECTOR:"selector",SHADOW_PATH:"shadow_path"};rT(PM);let PL=rv("kind",[rg({kind:rT([PM.SELECTOR]),selector:oR().min(1)}).strict(),rg({kind:rT([PM.SHADOW_PATH]),path:rp(oR().min(1)).min(1)}).strict()]),PN=ry([oR(),o5(),re(),ri()]),PP=rE(oR(),PN),Pz={EVENT:"event",BUTTON:"button",NAVIGATE:"navigate",CLICK:"click"};rT(Pz);let PU=rv("kind",[rg({kind:rT([Pz.EVENT]),name:oR().min(1),match:PP.optional()}).strict(),rg({kind:rT([Pz.BUTTON])}).strict(),rg({kind:rT([Pz.CLICK])}).strict(),rg({kind:rT([Pz.NAVIGATE]),url:oR().min(1),target:PL.optional()}).strict()]),PF=ry([oR(),o5(),re(),ri()]),Pj={CLICK:"click",TYPE_INTO:"type_into",SET_FIELD_VALUE:"set_field_value",DISPATCH_EVENT:"dispatch_event",TYPEWRITER:"typewriter"};rT(Pj);let PB=rv("kind",[rg({kind:rT([Pj.CLICK]),target:PL}).strict(),rg({kind:rT([Pj.TYPE_INTO]),target:PL,text:oR()}).strict(),rg({kind:rT([Pj.SET_FIELD_VALUE]),target:PL,value:oR()}).strict(),rg({kind:rT([Pj.DISPATCH_EVENT]),target:PL,name:oR().min(1),detail:PF.optional()}).strict(),rg({kind:rT([Pj.TYPEWRITER]),target:PL,text:oR(),speed_ms:o5().int().min(0).optional()}).strict()]),PH={NEXT:"next",BACK:"back",COMPLETE:"complete"},PV=rT(PH),Pq=rg({label:oR().min(1),action:PV}).strict().readonly(),PZ={TOP:"top",BOTTOM:"bottom",LEFT:"left",RIGHT:"right"},PW=rT(PZ),PG=rg({id:oR().min(1),surface:oR().min(1),title:oR(),body_html:oR(),target:PL.optional(),attach:PW.optional(),wait_for:rp(PL).optional(),requires:PL.optional(),restrict_to_target:re().optional(),advance:PU,actions:rp(PB).optional(),buttons:rp(Pq).optional()}).strict().readonly(),PK=rg({id:oR().min(1),steps:rp(PG).min(1)}).strict().readonly(),PY=o5().int().min(0).max(1),PQ=rg({id:oR().min(1),step:oR(),progress:o5().min(0).max(100),dismissed:PY,show:PY}).strict().readonly(),PX={id:"create-recipe",step:"recipe-created",progress:100,dismissed:0,show:0};PM.SELECTOR,PZ.TOP,PM.SELECTOR,PM.SHADOW_PATH,Pz.EVENT,Pj.CLICK,PM.SELECTOR,Pj.TYPE_INTO,PM.SELECTOR,Pj.SET_FIELD_VALUE,PM.SELECTOR,Pj.DISPATCH_EVENT,PM.SELECTOR,Pj.TYPEWRITER,PM.SELECTOR,Pz.BUTTON,PH.NEXT,Pz.NAVIGATE,PM.SELECTOR,PM.SELECTOR,Pz.CLICK;let PJ="recipe-edit",P1=PM.SELECTOR,P0=PM.SHADOW_PATH,P2={kind:P0,path:["uap-f-recipe-builder-welcome",'uas-button[data-test="welcome-start-from-scratch"]']},P3={kind:P0,path:["uap-f-recipe-builder-type-selector",'uas-button[slot="primary-action"]']},P4={kind:P0,path:["uap-f-recipe-builder-title","input.title"]},P6={kind:P1,selector:'uap-f-recipe-builder-node-selector-add-button[scope="action"], [data-test="canvas-add-action"]'},P5={kind:P1,selector:"uap-f-recipe-builder-edit-node"},P8={kind:P0,path:["uap-f-recipe-builder-node-selector-viewer",'.viewer-integration[data-integration-code="WP"]']},P7={kind:P0,path:["uap-f-recipe-builder-node-selector-viewer",'.viewer-item[data-integration-code="WP"][data-item-code="WP_USER_POST_PUBLISHED"]']},P9={kind:P0,path:["uap-f-recipe-builder-node-selector-viewer",'.viewer-integration[data-integration-code="EMAILS"]']},ze={kind:P0,path:["uap-f-recipe-builder-node-selector-viewer",'.viewer-item[data-integration-code="EMAILS"][data-item-code="SENDEMAIL"]']},zt="integration-ready",zi="item-ready",za={id:"create-recipe",steps:[{id:"welcome",surface:PJ,title:"Welcome to Uncanny Automator",body_html:"<p>Let us build your first recipe together. It only takes a minute.</p>",wait_for:[{kind:P1,selector:"uap-f-recipe-builder"}],advance:{kind:Pz.BUTTON},buttons:[{label:"Start",action:PH.NEXT}]},{id:"set-title",surface:PJ,title:"Name your recipe",body_html:"<p>Every recipe needs a title. We have filled one in for this example.</p>",target:P4,attach:PZ.BOTTOM,wait_for:[P4],actions:[{kind:Pj.TYPEWRITER,target:P4,text:"Send an email when a post is published"}],advance:{kind:Pz.BUTTON},buttons:[{label:"Continue",action:PH.NEXT}]},{id:"start-from-scratch",surface:PJ,title:"Start from scratch",body_html:'<p>Build your recipe step by step. Click "Add a trigger" to begin.</p>',target:P2,attach:PZ.BOTTOM,wait_for:[P2],requires:P2,advance:{kind:Pz.EVENT,name:"uap.f.recipe-builder.welcome.start-from-scratch"}},{id:"recipe-type",surface:PJ,title:"Choose a recipe type",body_html:'<p>"Logged-in users" is selected, so the recipe runs for users on your site. Confirm to start building your recipe.</p>',target:P3,attach:PZ.LEFT,wait_for:[P3],requires:P3,advance:{kind:Pz.EVENT,name:"uap.f.recipe-builder.core.set-recipe-type"}},{id:"trigger-integration",surface:PJ,title:"Pick the WordPress integration",body_html:"<p>Select the WordPress integration from the results.</p>",target:P8,attach:PZ.LEFT,wait_for:[P8],requires:P8,restrict_to_target:!0,advance:{kind:Pz.EVENT,name:"uap.f.recipe-builder.node-selector.step-request-change",match:{"detail.scenario_id":zt,"detail.integration_code":"WP"}}},{id:"trigger-item",surface:PJ,title:"Pick a trigger",body_html:'<p>Choose "A user publishes a post" to start the recipe when a post is published.</p>',target:P7,attach:PZ.LEFT,wait_for:[P7],requires:P7,restrict_to_target:!0,advance:{kind:Pz.EVENT,name:"uap.f.recipe-builder.node-selector.step-request-change",match:{"detail.scenario_id":zi,"detail.item_code":"WP_USER_POST_PUBLISHED"}}},{id:"trigger-save",surface:PJ,title:"Edit your trigger",body_html:"<p>Fill in the trigger fields, then save it.</p>",target:P5,attach:PZ.LEFT,wait_for:[P5],advance:{kind:Pz.EVENT,name:"uap.f.recipe-builder.flow.item.edit.saved"}},{id:"action-add",surface:PJ,title:"Add an action",body_html:"<p>Actions run after the trigger fires. Add one to choose what happens next.</p>",target:P6,attach:PZ.RIGHT,wait_for:[P6],advance:{kind:Pz.EVENT,name:"uap.f.recipe-builder.node-selector.ready",match:{"detail.scope":"action"}}},{id:"action-integration",surface:PJ,title:"Pick the Emails integration",body_html:"<p>Select Emails to send an email when the recipe runs.</p>",target:P9,attach:PZ.LEFT,wait_for:[P9],requires:P9,restrict_to_target:!0,advance:{kind:Pz.EVENT,name:"uap.f.recipe-builder.node-selector.step-request-change",match:{"detail.scenario_id":zt,"detail.integration_code":"EMAILS"}}},{id:"action-item",surface:PJ,title:"Pick an action",body_html:'<p>Choose "Send an email".</p>',target:ze,attach:PZ.LEFT,wait_for:[ze],requires:ze,restrict_to_target:!0,advance:{kind:Pz.EVENT,name:"uap.f.recipe-builder.node-selector.step-request-change",match:{"detail.scenario_id":zi,"detail.item_code":"SENDEMAIL"}}},{id:"action-save",surface:PJ,title:"Configure and save",body_html:"<p>Fill in the action fields, then save it.</p>",target:P5,attach:PZ.LEFT,wait_for:[P5],advance:{kind:Pz.EVENT,name:"uap.f.recipe-builder.flow.item.edit.saved"}},{id:"recipe-live",surface:PJ,title:"Go live",body_html:"<p>Your recipe is ready. Use the Recipe on / Recipe off toggle here to turn it on whenever you like.</p>",target:{kind:P1,selector:"uap-f-recipe-builder-publish-bar"},attach:PZ.TOP,advance:{kind:Pz.BUTTON},buttons:[{label:"Done",action:PH.NEXT}]},{id:"recipe-created",surface:PJ,title:"You built a recipe",body_html:"<p>That is the whole flow. Build one of your own next.</p>",advance:{kind:Pz.BUTTON},buttons:[{label:"Finish tour",action:PH.COMPLETE}]}]};Pz.NAVIGATE,PM.SELECTOR,Pz.BUTTON,PH.COMPLETE,PM.SELECTOR,Pz.BUTTON,PH.NEXT,Pz.BUTTON,PH.COMPLETE,PM.SELECTOR,PZ.BOTTOM,Pz.EVENT,PM.SELECTOR,PZ.RIGHT,Pz.BUTTON,PH.COMPLETE,Pz.BUTTON,PH.NEXT,Pz.BUTTON,PH.COMPLETE,Pz.BUTTON,PH.NEXT,PM.SELECTOR,Pj.TYPEWRITER,PM.SELECTOR,Pz.BUTTON,PH.NEXT,Pz.NAVIGATE,Pz.BUTTON,PH.COMPLETE;let zn=rg({surface:oR().min(1)}).strict(),zo=rg({active:PK.nullable(),progress:PQ.nullable()}).strict().readonly(),zr={all:()=>["walkthrough","active"],detail:e=>[...zr.all(),e]};async function zs(e){let[,,t]=e.queryKey,{surface:i}=zn.parse({surface:t});if(d4.DEV.RETURN_MOCK_DATA){await new Promise(e=>setTimeout(e,d4.DEV.MOCK_DELAY_MS));let e="recipe-edit"===i?za:null,t=e?PX:null,a=null!==t&&(t.progress>=100||1===t.dismissed);return zo.parse({active:a?null:e,progress:a?null:t})}return dV({endpoint:`walkthroughs?surface=${encodeURIComponent(i)}`,responseSchema:zo,method:"GET",useEnvelope:!0})}let zl=rg({id:oR().min(1),step_id:oR(),progress_percentage:o5().min(0).max(100),close_requested:re()}).strict();function zc(e,t){let i=function(e,t){try{return e.querySelector(t)}catch{return null}}(e,t);if(i)return i;for(let i of e.querySelectorAll("*"))if(i.shadowRoot){let e=zc(i.shadowRoot,t);if(e)return e}return null}function zd(e){switch(e.kind){case PM.SELECTOR:return zc(document,e.selector);case PM.SHADOW_PATH:{let t=document,i=null;for(let a of e.path){if(!t||!(i=zc(t,a)))return null;t=i.shadowRoot}return i}default:throw Error(`Unhandled walkthrough target kind: ${String(e)}`)}}function zu(e){return e instanceof HTMLElement}function zp(e){return"function"==typeof e}function zh(e){return"string"==typeof e}function zg(e){return void 0===e}class zm{on(e,t,i,a=!1){var n;return zg(this.bindings)&&(this.bindings={}),zg(this.bindings[e])&&(this.bindings[e]=[]),null==(n=this.bindings[e])||n.push({handler:t,ctx:i,once:a}),this}once(e,t,i){return this.on(e,t,i,!0)}off(e,t){var i;let a=null==(i=this.bindings)?void 0:i[e];return zg(a)||(zg(t)?delete this.bindings[e]:this.bindings[e]=a.filter(e=>e.handler!==t)),this}trigger(e,...t){var i,a,n,o;let r=null==(i=this.bindings)?void 0:i[e];if(zg(r))return this;for(let i of r.slice()){let{ctx:r,handler:s,once:l}=i,c=r||this;if(s.apply(c,t),l){let t=null!=(a=null==(n=this.bindings[e])?void 0:n.indexOf(i))?a:-1;-1!==t&&(null==(o=this.bindings[e])||o.splice(t,1))}}return this}}function zf(){return(zf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var a in i)({}).hasOwnProperty.call(i,a)&&(e[a]=i[a])}return e}).apply(null,arguments)}function zy(e,t){if(null==e)return{};var i={};for(var a in e)if(({}).hasOwnProperty.call(e,a)){if(-1!==t.indexOf(a))continue;i[a]=e[a]}return i}let zb={defaultMerge:Symbol("deepmerge-ts: default merge"),skip:Symbol("deepmerge-ts: skip")};function zv(e,t){let i={key:t.key,parents:t.parents,values:t.values,result:t.result},a=null==e?void 0:e.hierarchy;return zf({},i,{hierarchy:void 0===a?[i]:[...a,i]})}function z_(e,t){return e.includes(void 0)?e.filter(e=>void 0!==e):e}function zw(e,t,i){return i===zb.defaultMerge||e.useImplicitDefaultMerging&&void 0===i&&e.mergeFunctions[t]!==e.defaultMergeFunctions[t]}function zx(e){return"object"!=typeof e||null===e?e7.NOT:Array.isArray(e)?e7.ARRAY:!function(e){let t=Object.getPrototypeOf(e);if(null===t||t===Object.prototype)return!0;let i=Object.prototype.toString.call(e);if("[object Object]"!==i&&"[object Module]"!==i)return!1;let{constructor:a}=e;if(void 0===a)return!0;let n=a.prototype;if(null===n||"object"!=typeof n)return!1;let o=Object.prototype.toString.call(n);return("[object Object]"===o||"[object Module]"===o)&&!!Object.hasOwn(n,"isPrototypeOf")}(e)?e instanceof Set?e7.SET:e instanceof Map?e7.MAP:e7.OTHER:e7.RECORD}function zk(e){let t=Object.getOwnPropertySymbols(e).filter(t=>Object.prototype.propertyIsEnumerable.call(e,t));return[...Object.keys(e),...t]}function zE(e,t){return"object"==typeof e&&Object.prototype.propertyIsEnumerable.call(e,t)}function zS(e,t,i){if(void 0===t||0===t.length)return 0;let a=1;for(let n=t.length-1;n>=0;n--){let{parents:o}=t[n];if(o[i]===e||o.includes(e))return a;a+=1}return 0}function zC(e){return null==e?void 0:e.hierarchy}(e4=e7||(e7={}))[e4.NOT=0]="NOT",e4[e4.RECORD=1]="RECORD",e4[e4.ARRAY=2]="ARRAY",e4[e4.SET=3]="SET",e4[e4.MAP=4]="MAP",e4[e4.OTHER=5]="OTHER";let zT={mergeRecords:function(e,t,i){if(2===e.length){let a={},n=(n,o)=>{let r=t.metaDataUpdater(i,{key:n,parents:e,values:o,result:a}),s=zA(o,t,r);s!==zb.skip&&("__proto__"===n?Object.defineProperty(a,n,{value:s,configurable:!0,enumerable:!0,writable:!0}):a[n]=s)},o=e[0],r=e[1];for(let e of zk(o))n(e,zE(r,e)?[o[e],r[e]]:[o[e]]);for(let e of zk(r))zE(o,e)||n(e,[r[e]]);return a}let a={};for(let n of function(e){let t=new Set;for(let i of e){for(let e of Object.keys(i))t.add(e);let e=Object.getOwnPropertySymbols(i);if(e.length>0)for(let a of e)Object.prototype.propertyIsEnumerable.call(i,a)&&t.add(a)}return t}(e)){let o=[];for(let t of e)zE(t,n)&&o.push(t[n]);let r=t.metaDataUpdater(i,{key:n,parents:e,values:o,result:a}),s=zA(o,t,r);s!==zb.skip&&("__proto__"===n?Object.defineProperty(a,n,{value:s,configurable:!0,enumerable:!0,writable:!0}):a[n]=s)}return a},mergeArrays:function(e,t,i){return e.flat()},mergeSets:function(e,t,i){let a=new Set;for(let t of e)for(let e of t)a.add(e);return a},mergeMaps:function(e,t,i){let a=new Map,n=new Map;for(let t of e)for(let[e,i]of t){let t=n.get(e);void 0===t?n.set(e,[i]):t.push(i)}for(let[o,r]of n){let n=t.metaDataUpdater(i,{key:o,parents:e,values:r,result:a}),s=zA(r,t,n);s!==zb.skip&&a.set(o,s)}return a},mergeCircularReferences:function(e,t,i,a){var n,o;let r=t[0],s=zC(a);for(let n=1;n<e.length;n++)if(t[n]!==r){let n=t.at(-1);return 0===n?function e(t,i,a){var n;if("object"!=typeof t||null===t)return t;let o=zC(a),r=zS(t,o,0);if(r>0&&void 0!==o)return null==(n=o[o.length-r])?void 0:n.result;if(zx(t)===e7.RECORD){let n=!1,o={};for(let r of zk(t)){let s=t[r],l=i.metaDataUpdater(a,{key:r,parents:[t],values:[s],result:o}),c=e(s,i,l);c!==s&&(n=!0),"__proto__"===r?Object.defineProperty(o,r,{value:c,configurable:!0,enumerable:!0,writable:!0}):o[r]=c}return n?o:t}return t}(e.at(-1),i,a):null==s||null==(o=s[s.length-n])?void 0:o.result}return null==s||null==(n=s[s.length-r])?void 0:n.result},mergeOthers:function(e,t,i){return e.at(-1)}},zI=function(e={}){var t;let i={defaultMergeFunctions:zT,mergeFunctions:zf({},zT,Object.fromEntries(Object.entries(e).filter(([e])=>Object.hasOwn(zT,e)).map(([e,t])=>!1===t?[e,zT.mergeOthers]:"function"==typeof t?[e,t]:[e,zT[e]]))),metaDataUpdater:"function"==typeof e.metaDataUpdater?e.metaDataUpdater:zv,deepmerge:a,useImplicitDefaultMerging:null!=(t=e.enableImplicitDefaultMerging)&&t,filterValues:!1===e.filterValues?void 0:"function"==typeof e.filterValues?e.filterValues:z_,maxDepth:"number"==typeof e.maxDepth&&!Number.isNaN(e.maxDepth)&&e.maxDepth>=0?e.maxDepth:1e3,actions:zb};function a(...e){return zA(e,i,void 0)}return a}();function zD(...e){return zI(...e)}function zA(e,t,i){var a,n,o,r,s,l;let c=null!=(a=null==t.filterValues?void 0:t.filterValues(e,i))?a:e;if(0===c.length)return;let d=zC(i),u=null!=(n=null==d?void 0:d.length)?n:"number"==typeof i?i:null!=(o=null==i?void 0:i.depth)?o:0;if(void 0!==t.maxDepth&&u>=t.maxDepth)return zO(c,t,i);if(1===c.length){if(void 0!==d){let e=zS(c[0],d,0);if(e>0)return null!=(r=null==(s=d[d.length-e])?void 0:s.result)?r:null==(l=d[d.length-e])?void 0:l.parents[0]}return zO(c,t,i)}let p=zx(c[0]);if(p!==e7.NOT&&p!==e7.OTHER)if(2===c.length){if(zx(c[1])!==p)return zO(c,t,i);let e=zS(c[0],d,0),a=zS(c[1],d,1);if(0!==e||0!==a)return z$(c,[e,a],t,i)}else{let e=Array(c.length);e[0]=zS(c[0],d,0);for(let a=1;a<c.length;a++){if(zx(c[a])!==p)return zO(c,t,i);e[a]=zS(c[a],d,a)}if(e.some(e=>0!==e))return z$(c,e,t,i)}switch(p){case e7.RECORD:let h;return h=t.mergeFunctions.mergeRecords(c,t,i),zw(t,"mergeRecords",h)?t.defaultMergeFunctions.mergeRecords(c,t,i):h;case e7.ARRAY:let g;return g=t.mergeFunctions.mergeArrays(c,t,i),zw(t,"mergeArrays",g)?t.defaultMergeFunctions.mergeArrays(c):g;case e7.SET:let m;return m=t.mergeFunctions.mergeSets(c,t,i),zw(t,"mergeSets",m)?t.defaultMergeFunctions.mergeSets(c):m;case e7.MAP:let f;return f=t.mergeFunctions.mergeMaps(c,t,i),zw(t,"mergeMaps",f)?t.defaultMergeFunctions.mergeMaps(c,t,i):f;default:return zO(c,t,i)}}function z$(e,t,i,a){let n=i.mergeFunctions.mergeCircularReferences(e,t,i,a);return zw(i,"mergeCircularReferences",n)?i.defaultMergeFunctions.mergeCircularReferences(e,t,i,a):n}function zO(e,t,i){let a=t.mergeFunctions.mergeOthers(e,t,i);return zw(t,"mergeOthers",a)?t.defaultMergeFunctions.mergeOthers(e):a}function zR(e){let t=Object.getOwnPropertyNames(e.constructor.prototype);for(let i=0;i<t.length;i++){let a=t[i],n=e[a];"constructor"!==a&&"function"==typeof n&&(e[a]=n.bind(e))}return e}function zM(e){return zh(e)&&""!==e?"-"!==e.charAt(e.length-1)?`${e}-`:e:""}function zL(e){let t=e.options.attachTo||{},i=zp(t.element)?t.element.call(e):t.element;if(zh(i))try{i=document.querySelector(i)}catch{i=null}return i||null}function zN(e){return null==e||!e.element||!e.on}function zP(){let e=Date.now();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,t=>{let i=(e+16*Math.random())%16|0;return e=Math.floor(e/16),("x"==t?i:3&i|8).toString(16)})}let zz=["top","right","bottom","left"].reduce((e,t)=>e.concat(t,t+"-start",t+"-end"),[]),zU=Math.min,zF=Math.max,zj=Math.round,zB=Math.floor,zH=e=>({x:e,y:e}),zV={left:"right",right:"left",bottom:"top",top:"bottom"};function zq(e,t){return"function"==typeof e?e(t):e}function zZ(e){return e.split("-")[0]}function zW(e){return e.split("-")[1]}function zG(e){return"x"===e?"y":"x"}function zK(e){return"y"===e?"height":"width"}function zY(e){let t=e[0];return"t"===t||"b"===t?"y":"x"}function zQ(e,t,i){void 0===i&&(i=!1);let a=zW(e),n=zG(zY(e)),o=zK(n),r="x"===n?a===(i?"end":"start")?"right":"left":"start"===a?"bottom":"top";return t.reference[o]>t.floating[o]&&(r=z3(r)),[r,z3(r)]}function zX(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}let zJ=["left","right"],z1=["right","left"],z0=["top","bottom"],z2=["bottom","top"];function z3(e){let t=zZ(e);return zV[t]+e.slice(t.length)}function z4(e){var t,i,a,n;return"number"!=typeof e?{top:null!=(t=e.top)?t:0,right:null!=(i=e.right)?i:0,bottom:null!=(a=e.bottom)?a:0,left:null!=(n=e.left)?n:0}:{top:e,right:e,bottom:e,left:e}}function z6(e){let{x:t,y:i,width:a,height:n}=e;return{width:a,height:n,top:i,left:t,right:t+a,bottom:i+n,x:t,y:i}}let z5=["crossAxis","alignment","allowedPlacements","autoAlignment"],z8=["mainAxis","crossAxis","fallbackPlacements","fallbackStrategy","fallbackAxisSideDirection","flipAlignment"],z7=["mainAxis","crossAxis","limiter"];function z9(e,t,i){let a,{reference:n,floating:o}=e,r=zY(t),s=zG(zY(t)),l=zK(s),c=zZ(t),d=n.x+n.width/2-o.width/2,u=n.y+n.height/2-o.height/2,p=n[l]/2-o[l]/2;switch(c){case"top":a={x:d,y:n.y-o.height};break;case"bottom":a={x:d,y:n.y+n.height};break;case"right":a={x:n.x+n.width,y:u};break;case"left":a={x:n.x-o.width,y:u};break;default:a={x:n.x,y:n.y}}let h=zW(t);return h&&(a[s]+=p*("end"===h?1:-1)*(i&&"y"===r?-1:1)),a}async function Ue(e,t){var i;void 0===t&&(t={});let{x:a,y:n,platform:o,rects:r,elements:s,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:d="viewport",elementContext:u="floating",altBoundary:p=!1,padding:h=0}=zq(t,e),g=z4(h),m=s[p?"floating"===u?"reference":"floating":u],f=z6(await o.getClippingRect({element:null==(i=await (null==o.isElement?void 0:o.isElement(m)))||i?m:m.contextElement||await (null==o.getDocumentElement?void 0:o.getDocumentElement(s.floating)),boundary:c,rootBoundary:d,strategy:l})),y="floating"===u?{x:a,y:n,width:r.floating.width,height:r.floating.height}:r.reference,b=await (null==o.getOffsetParent?void 0:o.getOffsetParent(s.floating)),v=await (null==o.isElement?void 0:o.isElement(b))&&await (null==o.getScale?void 0:o.getScale(b))||{x:1,y:1},_=z6(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:y,offsetParent:b,strategy:l}):y);return{top:(f.top-_.top+g.top)/v.y,bottom:(_.bottom-f.bottom+g.bottom)/v.y,left:(f.left-_.left+g.left)/v.x,right:(_.right-f.right+g.right)/v.x}}let Ut=new Set(["left","top"]);function Ui(){return"u">typeof window}function Ua(e){return Ur(e)?(e.nodeName||"").toLowerCase():"#document"}function Un(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function Uo(e){var t;return null==(t=(Ur(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function Ur(e){return!!Ui()&&(e instanceof Node||e instanceof Un(e).Node)}function Us(e){return!!Ui()&&(e instanceof Element||e instanceof Un(e).Element)}function Ul(e){return!!Ui()&&(e instanceof HTMLElement||e instanceof Un(e).HTMLElement)}function Uc(e){return!(!Ui()||"u"<typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof Un(e).ShadowRoot)}function Ud(e){let{overflow:t,overflowX:i,overflowY:a,display:n}=Ub(e);return/auto|scroll|overlay|hidden|clip/.test(t+a+i)&&"inline"!==n&&"contents"!==n}function Uu(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}let Up=/transform|translate|scale|rotate|perspective|filter/,Uh=/paint|layout|strict|content/,Ug=e=>!!e&&"none"!==e;function Um(e){let t=Us(e)?Ub(e):e;return Ug(t.transform)||Ug(t.translate)||Ug(t.scale)||Ug(t.rotate)||Ug(t.perspective)||!Uf()&&(Ug(t.backdropFilter)||Ug(t.filter))||Up.test(t.willChange||"")||Uh.test(t.contain||"")}function Uf(){return null==r&&(r="u">typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),r}function Uy(e){return/^(html|body|#document)$/.test(Ua(e))}function Ub(e){return Un(e).getComputedStyle(e)}function Uv(e){return Us(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function U_(e){if("html"===Ua(e))return e;let t=e.assignedSlot||e.parentNode||Uc(e)&&e.host||Uo(e);return Uc(t)?t.host:t}function Uw(e,t,i){var a;void 0===t&&(t=[]),void 0===i&&(i=!0);let n=function e(t){let i=U_(t);return Uy(i)?(t.ownerDocument||t).body:Ul(i)&&Ud(i)?i:e(i)}(e),o=n===(null==(a=e.ownerDocument)?void 0:a.body),r=Un(n);if(o){let e=Ux(r);return t.concat(r,r.visualViewport||[],Ud(n)?n:[],e&&i?Uw(e):[])}return t.concat(n,Uw(n,[],i))}function Ux(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Uk(e){let t=Ub(e),i=parseFloat(t.width)||0,a=parseFloat(t.height)||0,n=Ul(e),o=n?e.offsetWidth:i,r=n?e.offsetHeight:a,s=zj(i)!==o||zj(a)!==r;return s&&(i=o,a=r),{width:i,height:a,$:s}}function UE(e){return Us(e)?e:e.contextElement}function US(e){let t=UE(e);if(!Ul(t))return zH(1);let i=t.getBoundingClientRect(),{width:a,height:n,$:o}=Uk(t),r=(o?zj(i.width):i.width)/a,s=(o?zj(i.height):i.height)/n;return r&&Number.isFinite(r)||(r=1),s&&Number.isFinite(s)||(s=1),{x:r,y:s}}let UC=zH(0);function UT(e){let t=Un(e);return Uf()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:UC}function UI(e,t,i,a){var n;void 0===t&&(t=!1),void 0===i&&(i=!1);let o=e.getBoundingClientRect(),r=UE(e),s=zH(1);t&&(a?Us(a)&&(s=US(a)):s=US(e));let l=(void 0===(n=i)&&(n=!1),a&&n&&a===Un(r))?UT(r):zH(0),c=(o.left+l.x)/s.x,d=(o.top+l.y)/s.y,u=o.width/s.x,p=o.height/s.y;if(r&&a){let e=Un(r),t=Us(a)?Un(a):a,i=e,n=Ux(i);for(;n&&t!==i;){let e=US(n),t=n.getBoundingClientRect(),a=Ub(n),o=t.left+(n.clientLeft+parseFloat(a.paddingLeft))*e.x,r=t.top+(n.clientTop+parseFloat(a.paddingTop))*e.y;c*=e.x,d*=e.y,u*=e.x,p*=e.y,c+=o,d+=r,n=Ux(i=Un(n))}}return z6({width:u,height:p,x:c,y:d})}function UD(e,t){let i=Uv(e).scrollLeft;return t?t.left+i:UI(Uo(e)).left+i}function UA(e,t){let i=e.getBoundingClientRect();return{x:i.left+t.scrollLeft-UD(e,i),y:i.top+t.scrollTop}}function U$(e,t,i){var a;let n;if("viewport"===t||"layoutViewport"===t)n=function(e,t,i){void 0===i&&(i="viewport");let a="layoutViewport"===i,n=Un(e),o=Uo(e),r=n.visualViewport,s=o.clientWidth,l=o.clientHeight,c=0,d=0;if(r){let e=!Uf()||"fixed"===t;a?e||(c=-r.offsetLeft,d=-r.offsetTop):(s=r.width,l=r.height,e&&(c=r.offsetLeft,d=r.offsetTop))}if(0>=UD(o)){let e=o.ownerDocument,t=e.body,i=getComputedStyle(t),a="CSS1Compat"===e.compatMode&&parseFloat(i.marginLeft)+parseFloat(i.marginRight)||0,n=Math.abs(o.clientWidth-t.clientWidth-a),r="stable both-edges"===getComputedStyle(o).scrollbarGutter?n/2:n;r<=25&&(s-=r)}return{width:s,height:l,x:c,y:d}}(e,i,t);else if("document"===t){let t,i,o,r,s,l;t=Uv(a=Uo(e)),i=a.ownerDocument.body,o=zF(a.scrollWidth,a.clientWidth,i.scrollWidth,i.clientWidth),r=zF(a.scrollHeight,a.clientHeight,i.scrollHeight,i.clientHeight),s=-t.scrollLeft+UD(a),l=-t.scrollTop,"rtl"===Ub(i).direction&&(s+=zF(a.clientWidth,i.clientWidth)-o),n={width:o,height:r,x:s,y:l}}else if(Us(t)){let e,a,o,r;a=(e=UI(t,!0,"fixed"===i)).top+t.clientTop,o=e.left+t.clientLeft,r=US(t),n={width:t.clientWidth*r.x,height:t.clientHeight*r.y,x:o*r.x,y:a*r.y}}else{let i=UT(e);n={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return z6(n)}function UO(e){return"static"===Ub(e).position}function UR(e,t){if(!Ul(e)||"fixed"===Ub(e).position)return null;if(t)return t(e);let i=e.offsetParent;return Uo(e)===i&&(i=i.ownerDocument.body),i}function UM(e,t){var i;let a=Un(e);if(Uu(e))return a;if(!Ul(e)){let t=U_(e);for(;t&&!Uy(t);){if(Us(t)&&!UO(t))return t;t=U_(t)}return a}let n=UR(e,t);for(;n&&(i=n,/^(table|td|th)$/.test(Ua(i)))&&UO(n);)n=UR(n,t);return n&&Uy(n)&&UO(n)&&!Um(n)?a:n||function(e){let t=U_(e);for(;Ul(t)&&!Uy(t);){if(Um(t))return t;if(Uu(t))break;t=U_(t)}return null}(e)||a}let UL={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:i,offsetParent:a,strategy:n}=e,o="fixed"===n,r=Uo(a),s=!!t&&Uu(t.floating);if(a===r||s&&o)return i;let l={scrollLeft:0,scrollTop:0},c=zH(1),d=zH(0),u=Ul(a);if((u||!o)&&(("body"!==Ua(a)||Ud(r))&&(l=Uv(a)),u)){let e=UI(a);c=US(a),d.x=e.x+a.clientLeft,d.y=e.y+a.clientTop}let p=!r||u||o?zH(0):UA(r,l);return{width:i.width*c.x,height:i.height*c.y,x:i.x*c.x-l.scrollLeft*c.x+d.x+p.x,y:i.y*c.y-l.scrollTop*c.y+d.y+p.y}},getDocumentElement:Uo,getClippingRect:function(e){let{element:t,boundary:i,rootBoundary:a,strategy:n}=e,o=[..."clippingAncestors"===i?Uu(t)?[]:function(e,t){let i=t.get(e);if(i)return i;let a=Uw(e,[],!1).filter(e=>Us(e)&&"body"!==Ua(e)),n=null,o="fixed"===Ub(e).position,r=o?U_(e):e;for(;Us(r)&&!Uy(r);){let e=Ub(r),t=Um(r),i=n?n.position:o?"fixed":"";t||"fixed"!==i&&("absolute"!==i||"static"!==e.position)?n=e:a=a.filter(e=>e!==r),r=U_(r)}return t.set(e,a),a}(t,this._c):[].concat(i),a],r=U$(t,o[0],n),s=r.top,l=r.right,c=r.bottom,d=r.left;for(let e=1;e<o.length;e++){let i=U$(t,o[e],n);s=zF(i.top,s),l=zU(i.right,l),c=zU(i.bottom,c),d=zF(i.left,d)}return{width:l-d,height:c-s,x:d,y:s}},getOffsetParent:UM,getElementRects:async function(e){let t=this.getOffsetParent||UM,i=this.getDimensions,a=await i(e.floating);return{reference:function(e,t,i){let a=Ul(t),n=Uo(t),o="fixed"===i,r=UI(e,!0,o,t),s={scrollLeft:0,scrollTop:0},l=zH(0);if((a||!o)&&(("body"!==Ua(t)||Ud(n))&&(s=Uv(t)),a)){let e=UI(t,!0,o,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}!a&&n&&(l.x=UD(n));let c=!n||a||o?zH(0):UA(n,s);return{x:r.left+s.scrollLeft-l.x-c.x,y:r.top+s.scrollTop-l.y-c.y,width:r.width,height:r.height}}(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:a.width,height:a.height}}},getClientRects:function(e){return e.getClientRects?Array.from(e.getClientRects()):[]},getDimensions:function(e){let{width:t,height:i}=Uk(e);return{width:t,height:i}},getScale:US,isElement:Us,isRTL:function(e){return"rtl"===Ub(e).direction}};function UN(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function UP(e,t,...i){let a=document.createElement(e);return UU(a,t),UF(a,i),a}function Uz(e,t,...i){let a=document.createElementNS("http://www.w3.org/2000/svg",e);return UU(a,t),UF(a,i),a}function UU(e,t){if(t)for(let[i,a]of Object.entries(t))null!=a&&!1!==a&&(i.startsWith("on")&&"function"==typeof a?e.addEventListener(i.slice(2).toLowerCase(),a):"disabled"===i&&!0===a?e.disabled=!0:e.setAttribute(i,String(a)))}function UF(e,t){for(let i of t)null!=i&&!1!==i&&e.append("string"==typeof i?document.createTextNode(i):i)}function Uj(e,t){return zp(e)?e.call(t):e}class UB extends zm{constructor(e,t={}){return super(),this._advanceOnCleanup=void 0,this._resolvedAttachTo=void 0,this._resolvedExtraHighlightElements=void 0,this._originalTabIndexes=void 0,this.classPrefix=void 0,this.el=void 0,this.shepherdElementComponent=void 0,this.target=void 0,this.tour=void 0,this.tour=e,this.classPrefix=this.tour.options?zM(this.tour.options.classPrefix):"",this.styles=e.styles,this._resolvedAttachTo=null,this._originalTabIndexes=new Map,zR(this),this._setOptions(t),this}cancel(){this.tour.cancel(),this.trigger("cancel")}complete(){this.tour.complete(),this.trigger("complete")}destroy(){this._teardownElements(),this.trigger("destroy")}_teardownElements(){this._advanceOnCleanup&&(this._advanceOnCleanup(),this._advanceOnCleanup=null),this.cleanup&&this.cleanup(),this.cleanup=null,this.shepherdElementComponent&&(this.shepherdElementComponent.cleanup(),this.shepherdElementComponent=void 0),zu(this.el)&&(this.el.remove(),this.el=null),this._updateStepTargetOnHide(),this._originalTabIndexes.clear()}getTour(){return this.tour}hide(){var e;null==(e=this.tour.modal)||e.hide(),this.trigger("before-hide"),this.el&&(this.el.hidden=!0),this._updateStepTargetOnHide(),this.trigger("hide")}_resolveExtraHiglightElements(){return this._resolvedExtraHighlightElements=this.options.extraHighlights?this.options.extraHighlights.flatMap(e=>Array.from(document.querySelectorAll(e))):[],this._resolvedExtraHighlightElements}_resolveAttachToOptions(){return this._resolvedAttachTo=function(e){let t=Object.assign({},e.options.attachTo||{});if(zp(t.element)&&(t.element=t.element.call(e)),zh(t.element)){try{t.element=document.querySelector(t.element)}catch{}t.element||e.options.skipMissingElement}return t}(this),this._resolvedAttachTo}_getResolvedAttachToOptions(){return null===this._resolvedAttachTo?this._resolveAttachToOptions():this._resolvedAttachTo}isOpen(){return!!(this.el&&!this.el.hidden)}show(){return zp(this.options.beforeShowPromise)?Promise.resolve(this.options.beforeShowPromise()).then(()=>this._show()):Promise.resolve(this._show())}updateStepOptions(e){Object.assign(this.options,e),this.shepherdElementComponent&&this.el&&(this._teardownElements(),this._setupElements())}getElement(){return this.el}getTarget(){return this.target}_storeOriginalTabIndex(e){let t=e.getAttribute("tabindex");null!==t&&this._originalTabIndexes.set(e,t)}_restoreOriginalTabIndexes(){let e=this.target;e&&(this._originalTabIndexes.has(e)?e.setAttribute("tabindex",this._originalTabIndexes.get(e)):e.removeAttribute("tabindex"))}_createTooltipContent(){let e=`${this.id}-description`,t=`${this.id}-label`;return this.shepherdElementComponent=function(e){var t,i,a,n,o,r;let s,l,c,d,u,p,h,g,m,f,y,b,{classPrefix:v,descriptionId:_,labelId:w,step:x}=e,k=null!=(t=null==(i=x.options)||null==(i=i.cancelIcon)?void 0:i.enabled)&&t,E=null!=(a=null==(n=x.options)?void 0:n.title)&&a,S=E?void 0:zp(x.options.label)?x.options.label.call(x):x.options.label,C=zh(S)&&S.trim()?S:null,T=e=>{let{tour:t}=x;switch(e.keyCode){case 9:var i,a,n,o,r;if((!l||0===l.length)&&p&&0===p.length){e.preventDefault();break}e.shiftKey?document.activeElement===u||null!=(i=document.activeElement)&&i.classList.contains("shepherd-element")?(e.preventDefault(),null==(a=null!=d?d:h)||a.focus()):document.activeElement===c&&(e.preventDefault(),null==(o=h)||o.focus()):document.activeElement===h?(e.preventDefault(),null==(n=null!=c?c:u)||n.focus()):document.activeElement===d&&(e.preventDefault(),null==(r=u)||r.focus());break;case 27:t.options.exitOnEsc&&(e.preventDefault(),e.stopPropagation(),x.cancel());break;case 37:t.options.keyboardNavigation&&(e.preventDefault(),e.stopPropagation(),t.back());break;case 39:t.options.keyboardNavigation&&(e.preventDefault(),e.stopPropagation(),t.next())}},I=UP("dialog",{"aria-describedby":zg(x.options.text)?null:_,"aria-label":C,"aria-labelledby":x.options.title?w:null,class:["shepherd-element",k?"shepherd-has-cancel-icon":"",E?"shepherd-has-title":""].filter(Boolean).join(" "),[`data-${v}shepherd-step-id`]:x.id,onkeydown:T,open:"true"});if(x.options.arrow&&x.options.attachTo&&x.options.attachTo.element&&x.options.attachTo.on&&I.append(UP("div",{class:"shepherd-arrow","data-popper-arrow":""})),I.append((g=UP("div",{class:"shepherd-content"}),(!zg(x.options.title)||x.options.cancelIcon&&x.options.cancelIcon.enabled)&&g.append((m=UP("header",{class:"shepherd-header"}),x.options.title&&m.append((o=x.options.title,(f=UP("h3",{id:w,class:"shepherd-title"})).innerHTML=zp(o)?o():o,f)),x.options.cancelIcon&&x.options.cancelIcon.enabled&&m.append((r=x.options.cancelIcon,UP("button",zf({},r.attrs||{},{"aria-label":r.label?r.label:"Close Tour",class:"shepherd-cancel-icon",onclick:e=>{e.preventDefault(),x.cancel()},type:"button"}),UP("span",{"aria-hidden":"true"},"×")))),m)),zg(x.options.text)||g.append((y=UP("div",{class:"shepherd-text",id:_}),zp(b=x.options.text)&&(b=b.call(x)),zu(b)?y.appendChild(b):y.innerHTML=b,y)),Array.isArray(x.options.buttons)&&x.options.buttons.length&&g.append(function(e){let t=UP("footer",{class:"shepherd-footer"});if(e.options.buttons)for(let i of e.options.buttons)t.append(function(e,t){let i=e.action?e.action.bind(t.tour):null,a=!!e.disabled&&Uj(e.disabled,t),n=e.label?Uj(e.label,t):null,o=e.text?Uj(e.text,t):null,r=UP("button",zf({},e.attrs||{},{"aria-label":n||null,class:`${e.classes||""} shepherd-button ${e.secondary?"shepherd-button-secondary":""}`,disabled:a||null,onclick:i,tabindex:"0",type:"button"}));return o&&(r.innerHTML=o),r}(i,e));return t}(x)),g)),zh(x.options.classes)){let e=x.options.classes.split(" ").filter(e=>!!e.length);e.length&&I.classList.add(...e)}let D='a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), [tabindex="0"]';u=(p=[...I.querySelectorAll(D)])[0],h=p[p.length-1];let A=x._getResolvedAttachToOptions();return null!=A&&A.element&&(s=A.element,x._storeOriginalTabIndex(s),s.tabIndex=0,c=(l=[s,...s.querySelectorAll(D)])[0],d=l[l.length-1],s.addEventListener("keydown",T)),{element:I,cleanup:()=>{var e;null==(e=s)||e.removeEventListener("keydown",T)}}}({classPrefix:this.classPrefix,descriptionId:e,labelId:t,step:this}),(this.tour.options.stepsContainer||document.body).append(this.shepherdElementComponent.element),this.shepherdElementComponent.element}_scrollTo(e){let{element:t}=this._getResolvedAttachToOptions();zp(this.options.scrollToHandler)?this.options.scrollToHandler(t):t instanceof Element&&"function"==typeof t.scrollIntoView&&t.scrollIntoView(e)}_getClassOptions(e){let t=this.tour&&this.tour.options&&this.tour.options.defaultStepOptions,i=e.classes?e.classes:"",a=t&&t.classes?t.classes:"";return Array.from(new Set([...i.split(" "),...a.split(" ")])).join(" ").trim()}_setOptions(e={}){let t=this.tour&&this.tour.options&&this.tour.options.defaultStepOptions;t=zD({},t||{}),this.options=Object.assign({arrow:!0},t,e,{floatingUIOptions:zD(t.floatingUIOptions||{},e.floatingUIOptions||{})});let{when:i}=this.options;this.options.classes=this._getClassOptions(e),this._teardownElements(),this.id=this.options.id||`step-${zP()}`,i&&Object.keys(i).forEach(e=>{this.on(e,i[e],this)})}_setupElements(){var e;zu(this.el)&&this._teardownElements(),this.el=this._createTooltipContent(),this.options.advanceOn&&(this._advanceOnCleanup=null!=(e=function(e){let{event:t,selector:i}=e.options.advanceOn||{};if(!t)return;let a=t=>{if(e.isOpen()){let a=e.el&&t.currentTarget===e.el;(!zg(i)&&t.currentTarget.matches(i)||a)&&e.tour.next()}};if(!zg(i)){let e=document.querySelector(i);if(!e)return;return e.addEventListener(t,a),()=>e.removeEventListener(t,a)}return document.body.addEventListener(t,a,!0),()=>document.body.removeEventListener(t,a,!0)}(this))?e:null),function(e){e.cleanup&&e.cleanup();let t=e._getResolvedAttachToOptions(),i=t.element,a=function(e,t){var i,a,n,o,r,s,l,c,d,u;let p={strategy:"absolute",middleware:[]},h=!!t.options.arrow&&!!t.el&&t.el.querySelector(".shepherd-arrow"),g=zN(e),m=null==(i=e.on)?void 0:i.includes("auto"),f=(null==e||null==(a=e.on)?void 0:a.includes("-start"))||(null==e||null==(n=e.on)?void 0:n.includes("-end"));!g&&(m?p.middleware.push({name:"autoPlacement",options:l={crossAxis:!0,alignment:f?null==e||null==(o=e.on)?void 0:o.split("-").pop():null},async fn(e){var t,i,a,n;let{rects:o,middlewareData:r,placement:s,platform:c,elements:d}=e,u=zq(l,e),{crossAxis:p=!1,alignment:h,allowedPlacements:g=zz,autoAlignment:m=!0}=u,f=zy(u,z5),y=void 0!==h||g===zz?((n=h||null)?[...g.filter(e=>zW(e)===n),...g.filter(e=>zW(e)!==n)]:g.filter(e=>zZ(e)===e)).filter(e=>!n||zW(e)===n||!!m&&zX(e)!==e):g,b=(null==(t=r.autoPlacement)?void 0:t.index)||0,v=y[b];if(null==v)return{};if(s!==v)return{reset:{placement:y[0]}};let _=await c.detectOverflow(e,f),w=zQ(v,o,await (null==c.isRTL?void 0:c.isRTL(d.floating))),x=[_[zZ(v)],_[w[0]],_[w[1]]],k=[...(null==(i=r.autoPlacement)?void 0:i.overflows)||[],{placement:v,overflows:x}],E=y[b+1];if(E)return{data:{index:b+1,overflows:k},reset:{placement:E}};let S=k.map(e=>{let t=zW(e.placement);return[e.placement,t&&p?e.overflows.slice(0,2).reduce((e,t)=>e+t,0):e.overflows[0],e.overflows]}).sort((e,t)=>e[1]-t[1]),C=(null==(a=S.filter(e=>e[2].slice(0,zW(e[0])?2:3).every(e=>e<=0))[0])?void 0:a[0])||S[0][0];return C!==s?{data:{index:b+1,overflows:k},reset:{placement:C}}:{}}}):p.middleware.push((void 0===c&&(c={}),{name:"flip",options:c,async fn(e){var t,i,a,n,o;let r,s,l,{placement:d,middlewareData:u,rects:p,initialPlacement:h,platform:g,elements:m}=e,f=zq(c,e),{mainAxis:y=!0,crossAxis:b=!0,fallbackPlacements:v,fallbackStrategy:_="bestFit",fallbackAxisSideDirection:w="none",flipAlignment:x=!0}=f,k=zy(f,z8);if(null!=(t=u.arrow)&&t.alignmentOffset)return{};let E=zZ(d),S=zY(h),C=zZ(h)===h,T=await (null==g.isRTL?void 0:g.isRTL(m.floating)),I=v||(C||!x?[z3(h)]:(r=z3(h),[zX(h),r,zX(r)])),D="none"!==w;!v&&D&&I.push(...(s=zW(h),l=function(e,t,i){switch(e){case"top":case"bottom":return i?t?z1:zJ:t?zJ:z1;case"left":case"right":return t?z0:z2;default:return[]}}(zZ(h),"start"===w,T),s&&(l=l.map(e=>e+"-"+s),x&&(l=l.concat(l.map(zX)))),l));let A=[h,...I],O=await g.detectOverflow(e,k),R=[],M=(null==(i=u.flip)?void 0:i.overflows)||[];if(y&&R.push(O[E]),b){let e=zQ(d,p,T);R.push(O[e[0]],O[e[1]])}if(M=[...M,{placement:d,overflows:R}],!R.every(e=>e<=0)){let e=((null==(a=u.flip)?void 0:a.index)||0)+1,t=A[e];if(t&&("alignment"!==b||S===zY(t)||M.every(e=>zY(e.placement)!==S||e.overflows[0]>0)))return{data:{index:e,overflows:M},reset:{placement:t}};let i=null==(n=M.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:n.placement;if(!i)switch(_){case"bestFit":{let e=null==(o=M.filter(e=>{if(D){let t=zY(e.placement);return t===S||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:o[0];e&&(i=e);break}case"initialPlacement":i=h}if(d!==i)return{reset:{placement:i}}}return{}}})),p.middleware.push({name:"shift",options:u={limiter:(void 0===d&&(d={}),{options:d,fn(e){var t,i,a,n;let{x:o,y:r,placement:s,rects:l,middlewareData:c}=e,{offset:u=0,mainAxis:p=!0,crossAxis:h=!0}=zq(d,e),g={x:o,y:r},m=zY(s),f=zG(m),y=g[f],b=g[m],v=zq(u,e),_="number"==typeof v?{mainAxis:v,crossAxis:0}:{mainAxis:null!=(t=v.mainAxis)?t:0,crossAxis:null!=(i=v.crossAxis)?i:0};if(p){let e="y"===f?"height":"width",t=l.reference[f]-l.floating[e]+_.mainAxis,i=l.reference[f]+l.reference[e]-_.mainAxis;y<t?y=t:y>i&&(y=i)}if(h){let e="y"===f?"width":"height",t=Ut.has(zZ(s)),i=l.reference[m]-l.floating[e]+(t&&(null==(a=c.offset)?void 0:a[m])||0)+(t?0:_.crossAxis),o=l.reference[m]+l.reference[e]+(t?0:(null==(n=c.offset)?void 0:n[m])||0)-(t?_.crossAxis:0);b<i?b=i:b>o&&(b=o)}return{[f]:y,[m]:b}}}),crossAxis:!0},async fn(e){let{x:t,y:i,placement:a,platform:n}=e,o=zq(u,e),{mainAxis:r=!0,crossAxis:s=!1,limiter:l={fn:e=>{let{x:t,y:i}=e;return{x:t,y:i}}}}=o,c=zy(o,z7),d={x:t,y:i},p=await n.detectOverflow(e,c),h=zY(a),g=zG(h),m=d[g],f=d[h],y=(e,t)=>zF(t+p["y"===e?"top":"left"],zU(t,t-p["y"===e?"bottom":"right"]));r&&(m=y(g,m)),s&&(f=y(h,f));let b=l.fn(zf({},e,{[g]:m,[h]:f}));return zf({},b,{data:{x:b.x-t,y:b.y-i,enabled:{[g]:r,[h]:s}}})}}),m||(p.placement=e.on));let y=zD(p,t.options.floatingUIOptions||{});if(!g&&h&&!(null==(s=y.middleware)?void 0:s.some(e=>!!e&&"arrow"===e.name))){let e,i="object"==typeof t.options.arrow?t.options.arrow:{padding:4};y.middleware=[...null!=(r=y.middleware)?r:[],{name:"arrow",options:e={element:h,padding:f?i.padding:0},async fn(t){let{x:i,y:a,placement:n,rects:o,platform:r,elements:s,middlewareData:l}=t,{element:c,padding:d=0}=zq(e,t)||{};if(null==c)return{};let u=z4(d),p={x:i,y:a},h=zG(zY(n)),g=zK(h),m=await r.getDimensions(c),f="y"===h,y=f?"clientHeight":"clientWidth",b=o.reference[g]+o.reference[h]-p[h]-o.floating[g],v=p[h]-o.reference[h],_=await (null==r.getOffsetParent?void 0:r.getOffsetParent(c)),w=_?_[y]:0;w&&await (null==r.isElement?void 0:r.isElement(_))||(w=s.floating[y]||o.floating[g]);let x=w/2-m[g]/2-1,k=zU(u[f?"top":"left"],x),E=zU(u[f?"bottom":"right"],x),S=w-m[g]-E,C=w/2-m[g]/2+(b/2-v/2),T=zF(k,zU(C,S)),I=!l.arrow&&null!=zW(n)&&C!==T&&o.reference[g]/2-(C<k?k:E)-m[g]/2<0,D=I?C<k?C-k:C-S:0;return{[h]:p[h]+D,data:zf({[h]:T,centerOffset:C-T-D},I&&{alignmentOffset:D}),reset:I}}}]}return y}(t,e),n=zN(t);if(n){var o;i=document.body;let t=null==(o=e.shepherdElementComponent)?void 0:o.element;null==t||t.classList.add("shepherd-centered")}e.cleanup=function(e,t,i,a){void 0===a&&(a={});let{ancestorScroll:n=!0,ancestorResize:o=!0,elementResize:r="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:l=!1}=a,c=UE(e),d=n||o?[...c?Uw(c):[],...t?Uw(t):[]]:[];d.forEach(e=>{n&&e.addEventListener("scroll",i),o&&e.addEventListener("resize",i)});let u=c&&s?function(e,t,i){let a,n=null,o=Uo(e);function r(){var e;clearTimeout(a),null==(e=n)||e.disconnect(),n=null}function s(i,l){void 0===i&&(i=!1),void 0===l&&(l=1),r();let c=e.getBoundingClientRect(),{left:d,top:u,width:p,height:h}=c;if(i||t(),!p||!h)return;let g={rootMargin:-zB(u)+"px "+-zB(o.clientWidth-(d+p))+"px "+-zB(o.clientHeight-(u+h))+"px "+-zB(d)+"px",threshold:zF(0,zU(1,l))||1},m=!0;function f(t){let i=t[0].intersectionRatio;if(!UN(c,e.getBoundingClientRect()))return s();if(i!==l){if(!m)return s();i?s(!1,i):a=setTimeout(()=>{s(!1,1e-7)},1e3)}m=!1}try{n=new IntersectionObserver(f,zf({},g,{root:o.ownerDocument}))}catch{n=new IntersectionObserver(f,g)}n.observe(e)}let l=Un(e),c=()=>s(i);return l.addEventListener("resize",c),s(!0),()=>{l.removeEventListener("resize",c),r()}}(c,i,o):null,p,h=-1,g=null;r&&(g=new ResizeObserver(e=>{let[a]=e;a&&a.target===c&&g&&t&&(g.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var e;null==(e=g)||e.observe(t)})),i()}),c&&!l&&g.observe(c),t&&g.observe(t));let m=l?UI(e):null;return l&&function t(){let a=UI(e);m&&!UN(m,a)&&i(),m=a,p=requestAnimationFrame(t)}(),i(),()=>{var e;d.forEach(e=>{n&&e.removeEventListener("scroll",i),o&&e.removeEventListener("resize",i)}),null==u||u(),null==(e=g)||e.disconnect(),g=null,l&&cancelAnimationFrame(p)}}(i,e.el,()=>{var t,o;let r,s,l;e.el?(t=i,o=e.el,r=new Map,l=zf({},UL,(s=null!=a?a:{}).platform,{_c:r}),(async(e,t,i)=>{let{placement:a="bottom",strategy:n="absolute",middleware:o=[],platform:r}=i,s=r.detectOverflow?r:zf({},r,{detectOverflow:Ue}),l=await (null==r.isRTL?void 0:r.isRTL(t)),c=await r.getElementRects({reference:e,floating:t,strategy:n}),{x:d,y:u}=z9(c,a,l),p=a,h=0,g={};for(let i=0;i<o.length;i++){let m=o[i];if(!m)continue;let{name:f,fn:y}=m,{x:b,y:v,data:_,reset:w}=await y({x:d,y:u,initialPlacement:a,placement:p,strategy:n,middlewareData:g,rects:c,platform:s,elements:{reference:e,floating:t}});d=null!=b?b:d,u=null!=v?v:u,g[f]=zf({},g[f],_),w&&h<50&&(h++,"object"==typeof w&&(w.placement&&(p=w.placement),w.rects&&(c=!0===w.rects?await r.getElementRects({reference:e,floating:t,strategy:n}):w.rects),{x:d,y:u}=z9(c,p,l)),i=-1)}return{x:d,y:u,placement:p,strategy:n,middlewareData:g}})(t,o,zf({},s,{platform:l}))).then(({x:t,y:i,strategy:a,placement:o,middlewareData:r})=>(e.el&&(n?Object.assign(e.el.style,{position:"fixed",left:"50%",top:"50%",transform:"translate(-50%, -50%)"}):Object.assign(e.el.style,{position:a,left:`${t}px`,top:`${i}px`}),e.el.dataset.popperPlacement=o,function(e,t){let i=e.querySelector(".shepherd-arrow");if(zu(i)&&t.arrow){let{x:e,y:a}=t.arrow;Object.assign(i.style,{left:null!=e?`${e}px`:"",top:null!=a?`${a}px`:""})}}(e.el,r)),e)).then(e=>new Promise(t=>{setTimeout(()=>t(e),300)})).then(e=>{null!=e&&e.el&&(e.el.tabIndex=0,e.el.focus({preventScroll:!0}))}):null==e.cleanup||e.cleanup()}),e.target=t.element}(this)}_show(){var e;this.trigger("before-show"),this._resolveAttachToOptions(),this._resolveExtraHiglightElements(),this._setupElements(),this.tour.modal||this.tour.setupModal(),null==(e=this.tour.modal)||e.setupForStep(this),this._styleTargetElementForStep(this),this.el&&(this.el.hidden=!1),this.options.scrollTo&&setTimeout(()=>{this._scrollTo(this.options.scrollTo)}),this.el&&(this.el.hidden=!1);let t=this.shepherdElementComponent.element,i=this.target||document.body,a=this._resolvedExtraHighlightElements;i.classList.add(`${this.classPrefix}shepherd-enabled`),i.classList.add(`${this.classPrefix}shepherd-target`),t.classList.add("shepherd-enabled"),null==a||a.forEach(e=>{e.classList.add(`${this.classPrefix}shepherd-enabled`),e.classList.add(`${this.classPrefix}shepherd-target`)}),this.trigger("show")}_styleTargetElementForStep(e){let t=e.target,i=e._resolvedExtraHighlightElements;if(!t)return;let a=e.options.highlightClass;a&&(t.classList.add(a),null==i||i.forEach(e=>e.classList.add(a))),t.classList.remove("shepherd-target-click-disabled"),null==i||i.forEach(e=>e.classList.remove("shepherd-target-click-disabled")),!1===e.options.canClickTarget&&(t.classList.add("shepherd-target-click-disabled"),null==i||i.forEach(e=>e.classList.add("shepherd-target-click-disabled")))}_updateStepTargetOnHide(){let e=this.target||document.body,t=this._resolvedExtraHighlightElements,i=this.options.highlightClass;i&&(e.classList.remove(i),null==t||t.forEach(e=>e.classList.remove(i))),e.classList.remove("shepherd-target-click-disabled",`${this.classPrefix}shepherd-enabled`,`${this.classPrefix}shepherd-target`),null==t||t.forEach(e=>{e.classList.remove("shepherd-target-click-disabled",`${this.classPrefix}shepherd-enabled`,`${this.classPrefix}shepherd-target`)}),this._restoreOriginalTabIndexes()}}let UH=new class extends zm{constructor(){super(),this.activeTour=void 0,zR(this)}},UV="u"<typeof window;UH.Step=UV?class{constructor(e){}}:UB,UH.Tour=UV?class{constructor(e,t){}}:class extends zm{constructor(e={}){return super(),this.trackedEvents=["active","cancel","complete","show"],this.classPrefix=void 0,this.currentStep=void 0,this.focusedElBeforeOpen=void 0,this.id=void 0,this.modal=void 0,this.options=void 0,this.steps=void 0,this._showGeneration=0,zR(this),this.options=Object.assign({},{exitOnEsc:!0,keyboardNavigation:!0},e),this.classPrefix=zM(this.options.classPrefix),this.steps=[],this.addSteps(this.options.steps),["active","cancel","complete","inactive","show","start"].map(e=>{this.on(e,t=>{(t=t||{}).tour=this,UH.trigger(e,t)})}),this._setTourID(e.id),this}addStep(e,t){let i=e;return i instanceof UB?i.tour=this:i=new UB(this,i),zg(t)?this.steps.push(i):this.steps.splice(t,0,i),i}addSteps(e){return Array.isArray(e)&&e.forEach(e=>{this.addStep(e)}),this}back(){let e=this.steps.indexOf(this.currentStep);return this.show(e-1,!1)}async cancel(){if(this.options.confirmCancel){let e=this.options.confirmCancelMessage||"Are you sure you want to stop the tour?";(zp(this.options.confirmCancel)?await this.options.confirmCancel():window.confirm(e))&&this._done("cancel")}else this._done("cancel")}complete(){this._done("complete")}getById(e){return this.steps.find(t=>t.id===e)}getCurrentStep(){return this.currentStep}hide(){let e=this.getCurrentStep();if(e)return e.hide()}isActive(){return UH.activeTour===this}next(){let e=this.steps.indexOf(this.currentStep);if(e!==this.steps.length-1)return this.show(e+1,!0);this.complete()}removeStep(e){let t=this.getCurrentStep();this.steps.some((t,i)=>{if(t.id===e)return t.isOpen()&&t.hide(),t.destroy(),this.steps.splice(i,1),!0}),t&&t.id===e&&(this.currentStep=void 0,this.steps.length?this.show(0):this.cancel())}show(e=0,t=!0){let i=zh(e)?this.getById(e):this.steps[e];if(!i)return;this._updateStateBeforeShow();let a=++this._showGeneration;if(zp(i.options.showOn)&&!i.options.showOn())return this._skipStep(i,t);let{skipMissingElement:n,waitForElement:o}=i.options,r=i.options.attachTo&&i.options.attachTo.element,s="number"==typeof o&&o>0?o:0;if((zh(r)||zp(r))&&(n||s>0)&&!zL(i)){if(s>0)return new Promise(e=>{let t=zL(i);if(t||!(s>0))return void e(t);let a=null,n=null,o=null,r=t=>{var i;null==(i=a)||i.disconnect(),null!==n&&clearInterval(n),null!==o&&clearTimeout(o),e(t)},l=()=>{let e=zL(i);e&&r(e)};o=setTimeout(()=>r(null),s),"u">typeof MutationObserver?(a=new MutationObserver(l)).observe(document.documentElement,{attributes:!0,childList:!0,subtree:!0}):n=setInterval(l,50)}).then(e=>{if(a===this._showGeneration&&this.isActive())return!e&&n?this._skipStep(i,t):void this._showStep(i)});if(n)return this._skipStep(i,t)}this._showStep(i)}_showStep(e){var t;let i=null!=(t=this.currentStep)?t:null;this.currentStep=e,this.trigger("show",{step:e,previous:i}),e.show()}async start(){return this.trigger("start"),this.focusedElBeforeOpen=document.activeElement,this.currentStep=null,this.setupModal(),this._setupActiveTour(),this.next()}_done(e){let t=this.steps.indexOf(this.currentStep);Array.isArray(this.steps)&&this.steps.forEach(e=>e.destroy()),function(e){if(e){let{steps:t}=e;t.forEach(e=>{e.options&&!1===e.options.canClickTarget&&e.options.attachTo&&(zu(e.target)&&e.target.classList.remove("shepherd-target-click-disabled"),e._resolvedExtraHighlightElements&&e._resolvedExtraHighlightElements.forEach(e=>{zu(e)&&e.classList.remove("shepherd-target-click-disabled")}))})}}(this),this.trigger(e,{index:t}),UH.activeTour=null,this.trigger("inactive",{tour:this}),this.modal&&this.modal.hide(),"cancel"!==e&&"complete"!==e||this.modal&&(this.modal.destroy(),this.modal=null),zu(this.focusedElBeforeOpen)&&this.focusedElBeforeOpen.focus()}_setupActiveTour(){this.trigger("active",{tour:this}),UH.activeTour=this}setupModal(){let e=this.options.modalContainer||document.body;this.modal=function(e){let t,i=new WeakMap,a=[{width:0,height:0,x:0,y:0,r:0}],n=Uz("path"),o=Uz("svg",{class:"shepherd-modal-overlay-container"},n);function r(){n.setAttribute("d",function(e){let t="",{innerWidth:i,innerHeight:a}=window;return e.forEach(e=>{let{width:i,height:a,x:n=0,y:o=0,r:r=0}=e,{topLeft:s=0,topRight:l=0,bottomRight:c=0,bottomLeft:d=0}="number"==typeof r?{topLeft:r,topRight:r,bottomRight:r,bottomLeft:r}:r;t+=`M${n+s},${o}a${s},${s},0,0,0-${s},${s}V`+(a+o-d)+`a${d},${d},0,0,0,${d},${d}H`+(i+n-c)+`a${c},${c},0,0,0,${c}-${c}`+`V${o+l}`+`a${l},${l},0,0,0-${l}-${l}Z`}),`M${i},${a}H0V0H${i}V${a}Z${t}`.replace(/\s/g,"")}(a))}function s(){a=[{width:0,height:0,x:0,y:0,r:0}],r()}function l(){o.classList.remove("shepherd-modal-is-visible"),h()}function c(){o.classList.add("shepherd-modal-is-visible")}function d(e=0,t=0,i=0,n=0,o,l,c){if(l){{let r=[l,...c||[]],s=[],d=o?[o,...m(o.parentElement)]:[],u=e=>e===l?d:m(e);for(let a of r){if(!a||r.indexOf(a)!==r.lastIndexOf(a))continue;let{y:o,height:l}=f(a,u(a)),{x:c,width:d,left:p}=a.getBoundingClientRect();r.some(e=>{if(e===a)return!1;let t=e.getBoundingClientRect(),{y:i,height:n}=f(e,u(e));return c>=t.left&&c+d<=t.left+t.width&&o>=i&&o+l<=i+n})||s.push({width:d+2*e,height:l+2*e,x:(c||p)+i-e,y:o+n-e,r:t})}a=s}r()}else s()}function u(e){e.stopPropagation()}o.addEventListener("touchmove",u),r(),e.append(o);let p=e=>{e.preventDefault()};function h(){t&&(cancelAnimationFrame(t),t=void 0),i=new WeakMap,window.removeEventListener("touchmove",p,{passive:!1})}function g(e){if(!(e instanceof HTMLElement))return[];let{position:t}=window.getComputedStyle(e);if("fixed"===t)return[];let i=[],a="absolute"!==t;for(let t=e;t;t=t.parentElement){let n=window.getComputedStyle(t);a||t===e||"static"===n.position||(a=!0),a&&function(e,t){let{overflowY:i}=t;return"hidden"!==i&&"visible"!==i&&e.scrollHeight>=e.clientHeight}(t,n)&&i.push(t)}return i}function m(e){if(!e)return[];let t=i.get(e);if(t)return t;let a=g(e);return i.set(e,a),a}function f(e,t){let i=e.getBoundingClientRect(),a=i.y||i.top,n=i.bottom||a+i.height;for(let e of t){let t=e.getBoundingClientRect(),i=t.y||t.top,o=t.bottom||i+t.height;a=Math.max(a,i),n=Math.min(n,o)}return{y:a,height:Math.max(n-a,0)}}return{closeModalOpening:s,destroy:function(){h(),o.removeEventListener("touchmove",u),o.remove()},hide:l,positionModal:d,setupForStep:function(e){h(),e.tour.options.useModalOverlay?(!function(e){var i;let{modalOverlayOpeningPadding:a,modalOverlayOpeningRadius:n,modalOverlayOpeningXOffset:o=0,modalOverlayOpeningYOffset:r=0}=e.options,s=function(e){let t={top:0,left:0};if(!e)return t;let i=e.ownerDocument.defaultView;try{for(;i&&i!==window.top;){var a;let e=null==(a=i)?void 0:a.frameElement;if(e){let i=e.getBoundingClientRect();t.top+=i.top+e.scrollTop,t.left+=i.left+e.scrollLeft}i=i.parent}}catch{}return t}(e.target),l=null!=(i=g(e.target)[0])?i:null,c=()=>{t=void 0,d(a,n,o+s.left,r+s.top,l,e.target,e._resolvedExtraHighlightElements),t=requestAnimationFrame(c)};c(),window.addEventListener("touchmove",p,{passive:!1})}(e),c()):l()},show:c,getElement:function(){return o}}}(e)}_skipStep(e,t){let i=this.steps.indexOf(e),a=t?i+1:i-1;if(a<0)this.cancel();else{if(!(a>=this.steps.length))return this.show(a,t);this.complete()}}_updateStateBeforeShow(){this.currentStep&&this.currentStep.hide(),this.isActive()||this._setupActiveTour()}_setTourID(e){let t=this.options.tourName||"tour",i=e||zP();this.id=`${t}--${i}`}};var Uq={};!function e(t,i,a,n){var o,r,s,l,c,d,u,p,h,g,m,f=!!(t.Worker&&t.Blob&&t.Promise&&t.OffscreenCanvas&&t.OffscreenCanvasRenderingContext2D&&t.HTMLCanvasElement&&t.HTMLCanvasElement.prototype.transferControlToOffscreen&&t.URL&&t.URL.createObjectURL),y="function"==typeof Path2D&&"function"==typeof DOMMatrix;function b(){}function v(e){var a=i.exports.Promise,n=void 0!==a?a:t.Promise;return"function"==typeof n?new n(e):(e(b,b),null)}var _=(o=function(){if(!t.OffscreenCanvas)return!1;try{var e=new OffscreenCanvas(1,1),i=e.getContext("2d");i.fillRect(0,0,1,1);var a=e.transferToImageBitmap();i.createPattern(a,"no-repeat")}catch{return!1}return!0}(),r=new Map,{transform:function(e){if(o)return e;if(r.has(e))return r.get(e);var t=new OffscreenCanvas(e.width,e.height);return t.getContext("2d").drawImage(e,0,0),r.set(e,t),t},clear:function(){r.clear()}}),w=(c=Math.floor(1e3/60),d={},u=0,"function"==typeof requestAnimationFrame&&"function"==typeof cancelAnimationFrame?(s=function(e){var t=Math.random();return d[t]=requestAnimationFrame(function i(a){u===a||u+c-1<a?(u=a,delete d[t],e()):d[t]=requestAnimationFrame(i)}),t},l=function(e){d[e]&&cancelAnimationFrame(d[e])}):(s=function(e){return setTimeout(e,c)},l=function(e){return clearTimeout(e)}),{frame:s,cancel:l}),x=(g={},function(){if(p)return p;if(!a&&f){var t=["var CONFETTI, SIZE = {}, module = {};","("+e.toString()+")(this, module, true, SIZE);",`onmessage = function(msg) { if (msg.data.options) { CONFETTI(msg.data.options).then(function () { if (msg.data.callback) { postMessage({ callback: msg.data.callback }); } }); } else if (msg.data.reset) { CONFETTI && CONFETTI.reset(); } else if (msg.data.resize) { SIZE.width = msg.data.resize.width; SIZE.height = msg.data.resize.height; } else if (msg.data.canvas) { SIZE.width = msg.data.canvas.width; SIZE.height = msg.data.canvas.height; CONFETTI = module.exports.create(msg.data.canvas); } }`].join(` `);try{p=new Worker(URL.createObjectURL(new Blob([t])))}catch(e){return"u">typeof console&&"function"==typeof console.warn&&console.warn("🎊 Could not load worker",e),null}var i=p;function n(e,t){i.postMessage({options:e||{},callback:t})}i.init=function(e){var t=e.transferControlToOffscreen();i.postMessage({canvas:t},[t])},i.fire=function(e,t,a){if(h)return n(e,null),h;var o=Math.random().toString(36).slice(2);return h=v(function(t){function r(e){e.data.callback===o&&(delete g[o],i.removeEventListener("message",r),h=null,_.clear(),a(),t())}i.addEventListener("message",r),n(e,o),g[o]=r.bind(null,{data:{callback:o}})})},i.reset=function(){for(var e in i.postMessage({reset:!0}),g)g[e](),delete g[e]}}return p}),k={particleCount:50,angle:90,spread:45,startVelocity:45,decay:.9,gravity:1,drift:0,ticks:200,x:.5,y:.5,shapes:["square","circle"],zIndex:100,colors:["#26ccff","#a25afd","#ff5e7e","#88ff5a","#fcff42","#ffa62d","#ff36ff"],disableForReducedMotion:!1,scalar:1};function E(e,t,i){var a;return a=e&&null!=e[t]?e[t]:k[t],i?i(a):a}function S(e){return e<0?0:Math.floor(e)}function C(e){return parseInt(e,16)}function T(e){return e.map(I)}function I(e){var t=String(e).replace(/[^0-9a-f]/gi,"");return t.length<6&&(t=t[0]+t[0]+t[1]+t[1]+t[2]+t[2]),{r:C(t.substring(0,2)),g:C(t.substring(2,4)),b:C(t.substring(4,6))}}function D(e){e.width=document.documentElement.clientWidth,e.height=document.documentElement.clientHeight}function A(e){var t=e.getBoundingClientRect();e.width=t.width,e.height=t.height}function O(e,i){var o,r=!e,s=!!E(i||{},"resize"),l=!1,c=E(i,"disableForReducedMotion",Boolean),d=f&&E(i||{},"useWorker")?x():null,u=r?D:A,p=!!e&&!!d&&!!e.__confetti_initialized,h="function"==typeof matchMedia&&matchMedia("(prefers-reduced-motion)").matches;function g(i){var g,m=c||E(i,"disableForReducedMotion",Boolean),f=E(i,"zIndex",Number);if(m&&h)return v(function(e){e()});r&&o?e=o.canvas:r&&!e&&((g=document.createElement("canvas")).style.position="fixed",g.style.top="0px",g.style.left="0px",g.style.pointerEvents="none",g.style.zIndex=f,e=g,document.body.appendChild(e)),s&&!p&&u(e);var b={width:e.width,height:e.height};function x(){if(d){var t={getBoundingClientRect:function(){if(!r)return e.getBoundingClientRect()}};u(t),d.postMessage({resize:{width:t.width,height:t.height}});return}b.width=b.height=null}function k(){o=null,s&&(l=!1,t.removeEventListener("resize",x)),r&&e&&(document.body.contains(e)&&document.body.removeChild(e),e=null,p=!1)}return(d&&!p&&d.init(e),p=!0,d&&(e.__confetti_initialized=!0),s&&!l&&(l=!0,t.addEventListener("resize",x,!1)),d)?d.fire(i,b,k):function(t,i,r){for(var s,l,c,d,p,h,g,m=E(t,"particleCount",S),f=E(t,"angle",Number),b=E(t,"spread",Number),x=E(t,"startVelocity",Number),k=E(t,"decay",Number),C=E(t,"gravity",Number),I=E(t,"drift",Number),D=E(t,"colors",T),A=E(t,"ticks",Number),O=E(t,"shapes"),R=E(t,"scalar"),M=!!E(t,"flat"),L=((s=E(t,"origin",Object)).x=E(s,"x",Number),s.y=E(s,"y",Number),s),N=m,P=[],z=e.width*L.x,U=e.height*L.y;N--;)P.push(function(e){var t=e.angle*(Math.PI/180),i=e.spread*(Math.PI/180);return{x:e.x,y:e.y,wobble:10*Math.random(),wobbleSpeed:Math.min(.11,.1*Math.random()+.05),velocity:.5*e.startVelocity+Math.random()*e.startVelocity,angle2D:-t+(.5*i-Math.random()*i),tiltAngle:(.5*Math.random()+.25)*Math.PI,color:e.color,shape:e.shape,tick:0,totalTicks:e.ticks,decay:e.decay,drift:e.drift,random:Math.random()+2,tiltSin:0,tiltCos:0,wobbleX:0,wobbleY:0,gravity:3*e.gravity,ovalScalar:.6,scalar:e.scalar,flat:e.flat}}({x:z,y:U,angle:f,spread:b,startVelocity:x,color:D[N%D.length],shape:O[Math.floor(Math.random()*(O.length-0))+0],ticks:A,decay:k,gravity:C,drift:I,scalar:R,flat:M}));return o?o.addFettis(P):(l=e,p=P.slice(),h=l.getContext("2d"),g=v(function(e){function t(){c=d=null,h.clearRect(0,0,i.width,i.height),_.clear(),r(),e()}c=w.frame(function e(){a&&(i.width!==n.width||i.height!==n.height)&&(i.width=l.width=n.width,i.height=l.height=n.height),i.width||i.height||(u(l),i.width=l.width,i.height=l.height),h.clearRect(0,0,i.width,i.height),(p=p.filter(function(e){return function(e,t){t.x+=Math.cos(t.angle2D)*t.velocity+t.drift,t.y+=Math.sin(t.angle2D)*t.velocity+t.gravity,t.velocity*=t.decay,t.flat?(t.wobble=0,t.wobbleX=t.x+10*t.scalar,t.wobbleY=t.y+10*t.scalar,t.tiltSin=0,t.tiltCos=0,t.random=1):(t.wobble+=t.wobbleSpeed,t.wobbleX=t.x+10*t.scalar*Math.cos(t.wobble),t.wobbleY=t.y+10*t.scalar*Math.sin(t.wobble),t.tiltAngle+=.1,t.tiltSin=Math.sin(t.tiltAngle),t.tiltCos=Math.cos(t.tiltAngle),t.random=Math.random()+2);var i,a,n,o,r,s,l,c,d,u,p,h,g,m,f,b,v=t.tick++/t.totalTicks,w=t.x+t.random*t.tiltCos,x=t.y+t.random*t.tiltSin,k=t.wobbleX+t.random*t.tiltCos,E=t.wobbleY+t.random*t.tiltSin;if(e.fillStyle="rgba("+t.color.r+", "+t.color.g+", "+t.color.b+", "+(1-v)+")",e.beginPath(),y&&"path"===t.shape.type&&"string"==typeof t.shape.path&&Array.isArray(t.shape.matrix)){e.fill((i=t.shape.path,a=t.shape.matrix,n=t.x,o=t.y,r=.1*Math.abs(k-w),s=.1*Math.abs(E-x),l=Math.PI/10*t.wobble,c=new Path2D(i),(d=new Path2D).addPath(c,new DOMMatrix(a)),(u=new Path2D).addPath(d,new DOMMatrix([Math.cos(l)*r,Math.sin(l)*r,-Math.sin(l)*s,Math.cos(l)*s,n,o])),u))}else if("bitmap"===t.shape.type){var S=Math.PI/10*t.wobble,C=.1*Math.abs(k-w),T=.1*Math.abs(E-x),I=t.shape.bitmap.width*t.scalar,D=t.shape.bitmap.height*t.scalar,A=new DOMMatrix([Math.cos(S)*C,Math.sin(S)*C,-Math.sin(S)*T,Math.cos(S)*T,t.x,t.y]);A.multiplySelf(new DOMMatrix(t.shape.matrix));var O=e.createPattern(_.transform(t.shape.bitmap),"no-repeat");O.setTransform(A),e.globalAlpha=1-v,e.fillStyle=O,e.fillRect(t.x-I/2,t.y-D/2,I,D),e.globalAlpha=1}else if("circle"===t.shape)e.ellipse?e.ellipse(t.x,t.y,Math.abs(k-w)*t.ovalScalar,Math.abs(E-x)*t.ovalScalar,Math.PI/10*t.wobble,0,2*Math.PI):(p=t.x,h=t.y,g=Math.abs(k-w)*t.ovalScalar,m=Math.abs(E-x)*t.ovalScalar,f=Math.PI/10*t.wobble,b=2*Math.PI,e.save(),e.translate(p,h),e.rotate(f),e.scale(g,m),e.arc(0,0,1,0,b,void 0),e.restore());else if("star"===t.shape)for(var R=Math.PI/2*3,M=4*t.scalar,L=8*t.scalar,N=t.x,P=t.y,z=5,U=Math.PI/5;z--;)N=t.x+Math.cos(R)*L,P=t.y+Math.sin(R)*L,e.lineTo(N,P),R+=U,N=t.x+Math.cos(R)*M,P=t.y+Math.sin(R)*M,e.lineTo(N,P),R+=U;else e.moveTo(Math.floor(t.x),Math.floor(t.y)),e.lineTo(Math.floor(t.wobbleX),Math.floor(x)),e.lineTo(Math.floor(k),Math.floor(E)),e.lineTo(Math.floor(w),Math.floor(t.wobbleY));return e.closePath(),e.fill(),t.tick<t.totalTicks}(h,e)})).length?c=w.frame(e):t()}),d=t}),(o={addFettis:function(e){return p=p.concat(e),g},canvas:l,promise:g,reset:function(){c&&w.cancel(c),d&&d()}}).promise)}(i,b,k)}return g.reset=function(){d&&d.reset(),o&&o.reset()},g}function R(){return m||(m=O(null,{useWorker:!0,resize:!0})),m}i.exports=function(){return R().apply(this,arguments)},i.exports.reset=function(){R().reset()},i.exports.create=O,i.exports.shapeFromPath=function(e){if(!y)throw Error("path confetti are not supported in this browser");"string"==typeof e?a=e:(a=e.path,n=e.matrix);var t=new Path2D(a),i=document.createElement("canvas").getContext("2d");if(!n){for(var a,n,o,r,s=1e3,l=1e3,c=0,d=0,u=0;u<1e3;u+=2)for(var p=0;p<1e3;p+=2)i.isPointInPath(t,u,p,"nonzero")&&(s=Math.min(s,u),l=Math.min(l,p),c=Math.max(c,u),d=Math.max(d,p));o=c-s;var h=Math.min(10/o,10/(r=d-l));n=[h,0,0,h,-Math.round(o/2+s)*h,-Math.round(r/2+l)*h]}return{type:"path",path:a,matrix:n}},i.exports.shapeFromText=function(e){var t,i=1,a="#000000",n='"Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji", "EmojiOne Color", "Android Emoji", "Twemoji Mozilla", "system emoji", sans-serif';"string"==typeof e?t=e:(t=e.text,i="scalar"in e?e.scalar:i,n="fontFamily"in e?e.fontFamily:n,a="color"in e?e.color:a);var o=10*i,r=""+o+"px "+n,s=new OffscreenCanvas(o,o),l=s.getContext("2d");l.font=r;var c=l.measureText(t),d=Math.ceil(c.actualBoundingBoxRight+c.actualBoundingBoxLeft),u=Math.ceil(c.actualBoundingBoxAscent+c.actualBoundingBoxDescent),p=c.actualBoundingBoxLeft+2,h=c.actualBoundingBoxAscent+2;d+=4,u+=4,(l=(s=new OffscreenCanvas(d,u)).getContext("2d")).font=r,l.fillStyle=a,l.fillText(t,p,h);var g=1/i;return{type:"bitmap",bitmap:s.transferToImageBitmap(),matrix:[g,0,0,g,-d*g/2,-u*g/2]}}}(function(){return"u">typeof window?window:"u">typeof self?self:this||{}}(),Uq,!1);let UZ=Uq.exports;Uq.exports.create;let UW={origin:{y:.7}};function UG(e,t,i){let a=Math.floor(200*e);(i||UZ)({...UW,...t,particleCount:a})}function UK(e){return e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement}function UY(e,t){(e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement)&&(e.value=t,e.dispatchEvent(new Event("input",{bubbles:!0})),e.dispatchEvent(new Event("change",{bubbles:!0})))}function UQ(e,t=8e3){return 0===e.length?Promise.resolve(!0):new Promise(i=>{let a=[],n=e.length,o=!1,r=e=>{o||(o=!0,a.forEach(e=>e()),i(e))},s=setTimeout(()=>r(!1),t);a.push(()=>clearTimeout(s));let l=()=>{0==(n-=1)&&r(!0)};for(let t of e)!function(e,t,i){if(zd(e))return t();let a=setInterval(()=>{zd(e)&&(clearInterval(a),t())},50);i.push(()=>clearInterval(a))}(t,l,a)})}let UX="show",UJ="complete",U1="cancel",U0="navigate";rv("kind",[rg({kind:rT([UX]),stepId:oR()}).strict(),rg({kind:rT([UJ])}).strict(),rg({kind:rT([U1])}).strict(),rg({kind:rT([U0]),stepId:oR()}).strict()]);let U2=["pointerdown","mousedown","pointerup","mouseup","click","dblclick","touchstart","contextmenu"];function U3(e,t){let i=e.steps.findIndex(e=>e.id===t);return i<0?0:Math.round((i+1)/e.steps.length*100)}function U4(e,t,i,a){return(async function(e){let t=zl.parse(e);await dV({endpoint:"set_walkthrough_progress",method:"POST",data:t,useEnvelope:!1})})({id:e.id,step_id:t,progress_percentage:i,close_requested:a}).catch(()=>void 0)}var U6=function(e,t,i,a){var n,o=arguments.length,r=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(r=(o<3?n(r):o>3?n(t,i,r):n(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r};let U5=class extends ld{constructor(){super(...arguments),this.currentSurface="",this.hasBooted=!1}static{this.styles=sf` :host { display: none; } `}firstUpdated(){this.closest("uap-d-site-auth")||console.error("uap-d-walkthrough-host: Error: <uap-d-walkthrough-host> must be used inside <uap-d-site-auth>"),this.boot()}boot(){this.hasBooted||""===this.currentSurface||(this.hasBooted=!0,(async function(e){var t;let i,a,n,o,r,s,l,c,d,u,p,h,g,m,{active:f,progress:y}=await async function(e){let{surface:t}=zn.parse(e);return dW.fetchQuery({queryKey:zr.detail(t),queryFn:zs,staleTime:1/0})}({surface:e});if(!f||y?.dismissed===1)return;let b=f.steps[0];if(!b)return;let v=y&&""!==y.step?y.step:b.id,_=f.steps.find(e=>e.id===v);_&&_.surface===e&&(t=e=>(function(e,t){switch(t.kind){case UX:U4(e,t.stepId,U3(e,t.stepId),!1);return;case UJ:{let t=e.steps[e.steps.length-1];t&&U4(e,t.id,100,!1);return}case U1:U4(e,"",0,!0);return;case U0:{var i;let a,n=e.steps.find(e=>e.id===t.stepId),o=(i=t.stepId,(a=e.steps.findIndex(e=>e.id===i))<0?null:e.steps[a+1]??null);if(!n||!o||n.advance.kind!==Pz.NAVIGATE)return;let r=n.advance.url;U4(e,o.id,U3(e,o.id),!1).finally(()=>window.location.assign(r));return}default:throw Error(`Unhandled walkthrough engine event: ${String(t)}`)}})(f,e),i=null,a=!1,n=new Map,(o=document.createElement("dialog")).className="uap-walkthrough-host uap-walkthrough-host--modal",(r=document.createElement("div")).className="uap-walkthrough-host uap-walkthrough-host--popover",r.setAttribute("popover","manual"),s={dialog:o,popover:r},l=()=>i,c=(e=document)=>{for(let t of e.querySelectorAll("*"))if(t instanceof HTMLDialogElement&&t!==s.dialog&&t.matches(":modal")||t.shadowRoot&&c(t.shadowRoot))return!0;return!1},d=(e=document,t=new Set)=>{for(let i of e.querySelectorAll("*"))i instanceof HTMLDialogElement&&i!==s.dialog&&i.matches(":modal")&&t.add(i),i.shadowRoot&&d(i.shadowRoot,t);return t},u=e=>{n.get(e)?.(),n.delete(e)},p=()=>{n.forEach(e=>e()),n.clear()},h=()=>{try{s.dialog.open&&s.dialog.close()}catch{}try{s.popover.hidePopover()}catch{}},g=(e,t)=>{let i=e.advance.kind;if((i===Pz.BUTTON||i===Pz.NAVIGATE)&&c()){try{s.popover.hidePopover()}catch{}if(s.dialog.append(t),!s.dialog.open)try{s.dialog.showModal()}catch{}return}try{s.dialog.open&&s.dialog.close()}catch{}try{s.popover.hidePopover()}catch{}try{s.popover.showPopover()}catch{}},m=(e,t)=>{let i=d(),a=window.setInterval(()=>{let a=d(),n=Array.from(a).some(e=>!i.has(e));i=a,n&&g(e,t)},250);return()=>window.clearInterval(a)},{run(e,o,r){let c=e.steps.filter(e=>e.surface===o),d=c.findIndex(e=>e.id===r),f=c.slice(d<0?0:d);if(0!==f.length){for(let e of(document.body.append(s.popover),document.body.append(s.dialog),(i=new UH.Tour({useModalOverlay:!0,stepsContainer:s.popover,modalContainer:s.popover,defaultStepOptions:{classes:"uap uap-shepherd",scrollTo:{behavior:"smooth",block:"center"},cancelIcon:{enabled:!0},modalOverlayOpeningPadding:8,modalOverlayOpeningRadius:6,floatingUIOptions:{strategy:"fixed",middleware:[{name:"keepOffTarget",fn:({x:e,y:t,placement:i,rects:a,middlewareData:n})=>{let o=i.split("-")[0],r={x:e+8*("right"===o)-8*("left"===o),y:t+8*("bottom"===o)-8*("top"===o)},s=a.reference,l=r.x<s.x+s.width&&r.x+a.floating.width>s.x&&r.y<s.y+s.height&&r.y+a.floating.height>s.y,c=n.keepOffTarget?.tried,d=Array.isArray(c)?c.filter(e=>"string"==typeof e):[],u=l?["bottom","top"].find(e=>e!==o&&!d.includes(e)):void 0;return"bottom"===u||"top"===u?{data:{tried:[...d,o]},reset:{placement:u}}:r}}]}}})).on("complete",()=>{p(),h(),t({kind:UJ})}),i.on("cancel",()=>{p(),h(),a||t({kind:U1})}),f))i.addStep({id:e.id,title:e.title,text:e.body_html,attachTo:function(e){let t=e.target;if(t)return{element:()=>{let e=zd(t);return e instanceof HTMLElement?e:void 0},on:e.attach??"bottom"}}(e),buttons:function(e,t,i,a){return e.advance.kind===Pz.NAVIGATE?[{text:(0,lX.__)("Continue","uncanny-automator"),action:()=>i({kind:U0,stepId:e.id}),disabled:!a}]:e.buttons?e.buttons.map(e=>({text:e.label,action:()=>(function(e,t){let i=t();if(i)switch(e){case PH.NEXT:i.next();return;case PH.BACK:i.back();return;case PH.COMPLETE:i.complete();return;default:throw Error(`Unhandled walkthrough button action: ${String(e)}`)}})(e.action,t),disabled:!a})):[]}(e,l,t,(e.actions?.length??0)===0),beforeShowPromise:async()=>{(!e.requires||await UQ([e.requires],1e3))&&await UQ(e.wait_for??[])},when:{show:()=>{e.requires&&!zd(e.requires)?queueMicrotask(()=>l()?.next()):(t({kind:UX,stepId:e.id}),n.set(e.id,function(e,t){if(e.advance.kind===Pz.CLICK){let i=e.target?zd(e.target):null;if(!i)return()=>void 0;let a=()=>{t()?.next()};return i.addEventListener("click",a),()=>i.removeEventListener("click",a)}if(e.advance.kind!==Pz.EVENT)return()=>void 0;let i=e.advance,a=e=>{Object.entries(i.match??{}).every(([t,i])=>(function(e,t){let i=e;for(let e of t.split(".")){var a;if("object"!=typeof(a=i)||null===a)return;i=i[e]}return i})(e,t)===i)&&t()?.next()};return document.addEventListener(i.name,a),()=>document.removeEventListener(i.name,a)}(e,l)),requestAnimationFrame(()=>{let t=l()?.getCurrentStep();if(t?.id!==e.id)return;let i=t.getElement();if(i){g(e,i);let t=n.get(e.id),a=m(e,i),o=function(e,t){let i=e.target;if(!e.restrict_to_target||!i)return()=>void 0;let a=e=>{let a=e.composedPath(),n=zd(i);a.includes(t)||n&&a.includes(n)||(e.preventDefault(),e.stopImmediatePropagation())};return U2.forEach(e=>window.addEventListener(e,a,{capture:!0})),()=>U2.forEach(e=>window.removeEventListener(e,a,{capture:!0}))}(e,i);n.set(e.id,()=>{t?.(),a(),o()})}(async function(e){for(let t of e){let e=zd(t.target);e&&await async function(e,t){var i,a;switch(t.kind){case Pj.CLICK:e instanceof HTMLElement&&e.click();return;case Pj.TYPE_INTO:UY(e,t.text);return;case Pj.SET_FIELD_VALUE:if("setValue"in e&&"function"==typeof e.setValue)return void e.setValue(t.value);UY(e,t.value);return;case Pj.DISPATCH_EVENT:e.dispatchEvent(new CustomEvent(t.name,{detail:t.detail,bubbles:!0}));return;case Pj.TYPEWRITER:(e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement)&&(await (i=t.text,a={delay:t.speed_ms??50},new Promise((t,n)=>{let{delay:o=50}=a||{};if(!(e instanceof HTMLElement)){let e=TypeError("typeWriterHelper: Invalid element provided. Must be an HTMLElement.");console.error(e.message),n(e);return}UK(e)?e.value="":e.textContent="",function e({$element:t,text:i,index:a,delay:n,resolve:o,reject:r}){try{a<i.length?(UK(t)?t.value+=i[a]:t.textContent=(t.textContent||"")+i[a],setTimeout(()=>e({$element:t,text:i,index:a+1,delay:n,resolve:o,reject:r}),n)):o()}catch(t){let e="An unknown error occurred in typeWriterHelper";t instanceof Error?e=`An error occurred in typeWriterHelper: ${t.message}`:"string"==typeof t&&(e=`An error occurred in typeWriterHelper: ${t}`),console.error(e,t),r(Error(e))}}({$element:e,text:i,index:0,delay:o,resolve:t,reject:n})})),e.dispatchEvent(new Event("input",{bubbles:!0})),e.dispatchEvent(new Event("change",{bubbles:!0})));return;default:throw Error(`Unhandled walkthrough action: ${String(t)}`)}}(e,t)}})(e.actions??[]).then(()=>{let t=l()?.getCurrentStep();if(t?.id!==e.id)return;let i=t.getElement();i?.querySelectorAll(".shepherd-button[disabled]").forEach(e=>{e.disabled=!1})})}))},hide:()=>u(e.id)}});i.start()}},destroy(){a=!0,p(),h(),i?.cancel(),i=null,s.dialog.remove(),s.popover.remove()}}).run(f,e,v)})(this.currentSurface).catch(e=>{d4.DEV.SHOW_CONSOLE_MESSAGES&&console.error("uap-d-walkthrough-host: walkthrough boot failed",e)}))}render(){return s1``}};U6([l0({type:String,attribute:"current-surface"})],U5.prototype,"currentSurface",void 0),U5=U6([lJ("uap-d-walkthrough-host")],U5);let U8=window.wp.domReady;var U7=a.n(U8);class U9{constructor(){this.createInstances()}createInstances(){this.$forms.forEach(e=>{new Fe(e)})}get formUnsavedAttribute(){return"warn-unsaved"}get $forms(){return document.querySelectorAll(`form[${this.formUnsavedAttribute}]`)}}class Fe{constructor(e){this.$form=e,this.originalValues=lT(this.$form),this.listenUserLeaving(),this.listenFormSubmission()}listenUserLeaving(){window.addEventListener("beforeunload",e=>{let t=lT(this.$form);if(JSON.stringify(this.originalValues)!=JSON.stringify(t)&&!this.submittingForm)return e.preventDefault(),e.returnValue=(0,b4.escapeHTML)((0,lX.__)("Changes you made may not be saved.","uncanny-automator")),(0,b4.escapeHTML)((0,lX.__)("Changes you made may not be saved.","uncanny-automator"))})}listenFormSubmission(){this.$form.addEventListener("submit",()=>{this.submittingForm=!0})}}function Ft(e,t=100,i={}){let a,n,o,r;if("function"!=typeof e)throw TypeError(`Expected the first parameter to be a function, got \`${typeof e}\`.`);if(t<0)throw RangeError("`wait` must not be negative.");if("boolean"==typeof i)throw TypeError("The `options` parameter must be an object, not a boolean. Use `{immediate: true}` instead.");let{immediate:s}=i;function l(){let t=a,i=n;return a=void 0,n=void 0,e.apply(t,i)}function c(){let e=Date.now()-r;e<t&&e>=0?o=setTimeout(c,t-e):(o=void 0,s||l())}let d=function(...e){if(a&&this!==a&&Object.getPrototypeOf(this)===Object.getPrototypeOf(a))throw Error("Debounced method called with different contexts of the same prototype.");a=this,n=e,r=Date.now();let i=s&&!o;if(o||(o=setTimeout(c,t)),i)return l()};return Object.defineProperty(d,"isPending",{get:()=>void 0!==o}),d.clear=()=>{o&&(clearTimeout(o),o=void 0,a=void 0,n=void 0)},d.flush=()=>{o&&d.trigger()},d.trigger=()=>{l(),d.clear()},d}U7()(()=>{new U9});var Fi=a(8436),Fa=a.n(Fi);let Fn=document.createElement("template");Fn.innerHTML=` <style> /* Base styles */ ${Fa()} </style> <div class="wrapper"> <div class="control"></div> </div> <slot name="hidden-field"></slot> `;let Fo=e=>class extends e{constructor(){super(),this.attachShadow({mode:"open"}),this.shadowRoot.appendChild(Fn.content.cloneNode(!0)),this.#ee(),this.#et()}static get baseComponentAttributes(){return{id:{type:"string"},label:{type:"string"},helper:{type:"string"},required:{type:"boolean"},disabled:{type:"boolean"},hidden:{type:"boolean"}}}static get observedAttributes(){return Object.keys(this.componentAttributes)}reportValidity(){let e=this.$input.reportValidity();return e?this.$wrapper.classList.remove("error"):this.$wrapper.classList.add("error"),e||this.$input.focus(),e||this.scrollIntoView({behavior:"smooth",block:"end"}),e}attributeChangedCallback(e,t,i){if(t!==i){let t=this.constructor.componentAttributes[e],i=rK(t.propertyKey)?t.propertyKey:e;"boolean"==t.type?this[i]=this.hasAttribute(e):this[i]=this.getAttribute(e)}}#ee(){rY(this.id)&&(this.id=`uo-input-${lq()}`)}#et(){if(this.closest("form")){let e=this.closest("form");this.insertAdjacentHTML("beforeEnd",` <input type="hidden" name="${this.id}" slot="hidden-field" > `),this.addEventListener("change",()=>{this.updateHiddenField()}),e.addEventListener("submit",e=>{this.reportValidity()||e.preventDefault()})}}updateHiddenField(){this.#ei.value=this.value}get id(){return this.getAttribute("id")}set id(e){e?this.setAttribute("id",e):this.removeAttribute("id")}get label(){return this.getAttribute("label")}set label(e){e?(this.setAttribute("label",e),this.#ea(e)):(this.removeAttribute("label"),this.#en())}#ea(e){if(rK(this.$label))this.$label.querySelector("span").innerHTML=e;else{let t=document.createElement("label");t.classList.add("top-label"),t.htmlFor=this.id,t.insertAdjacentHTML("beforeEnd",` <span>${e}</span> `),this.$wrapper.insertAdjacentElement("afterBegin",t)}}#en(){rK(this.$label)&&this.$label.parentNode.removeChild(this.$label)}get helper(){return this.getAttribute("helper")}set helper(e){e?(this.setAttribute("helper",e),this.#eo(e)):(this.removeAttribute("helper"),this.#er())}#eo(e){if(rK(this.$helper))this.$helper.innerHTML=e;else{let t=document.createElement("div");t.classList.add("helper"),t.insertAdjacentHTML("beforeEnd",` <span>${e}</span> `),this.$wrapper.insertAdjacentElement("beforeEnd",t)}}#er(){rK(this.$helper)&&this.$helper.parentNode.removeChild(this.$helper)}get required(){return this.hasAttribute("required")}set required(e){e?this.setAttribute("required",""):this.removeAttribute("required")}get disabled(){return this.hasAttribute("disabled")}set disabled(e){e?this.setAttribute("disabled",""):this.removeAttribute("disabled")}get hidden(){return this.hasAttribute("hidden")}set hidden(e){e?this.setAttribute("hidden",""):this.removeAttribute("hidden")}get $wrapper(){return this.shadowRoot.querySelector(".wrapper")}get $controlWrapper(){return this.shadowRoot.querySelector(".control")}get $label(){return this.shadowRoot.querySelector("label.top-label")}get $helper(){return this.shadowRoot.querySelector(".helper")}get #ei(){return this.querySelector(`:scope > input[name="${this.id}"]`)}};var Fr=a(8526),Fs=a.n(Fr);class Fl extends Fo(HTMLElement){static get componentAttributes(){return Object.assign(this.baseComponentAttributes,{value:{type:"string"},placeholder:{type:"string"},type:{type:"string"},readonly:{type:"boolean",propertyKey:"readOnly"},"auto-focus":{type:"boolean",propertyKey:"autoFocus"},"copy-to-clipboard":{type:"boolean",propertyKey:"copyToClipboard"}})}constructor(){super(),this.#es(),this.#el()}connectedCallback(){this.#ec(),this.maybeAutofocusField(),this.handleCopyToClipboard()}maybeAutofocusField(){this.autoFocus&&this.$input.focus()}#es(){this.shadowRoot.querySelector("style").insertAdjacentHTML("beforeEnd",Fs())}#el(){this.$controlWrapper.insertAdjacentHTML("beforeEnd",` <div class="input-wrapper"> <input type="text"> </div> `),this.$input.id=this.id,this.$fieldWrapper.addEventListener("click",e=>{e.target===this.$fieldWrapper&&this.$input.focus()})}handleCopyToClipboard(){if(!this.copyToClipboard||this.$copyToClipboardComponent)return;let e=document.createElement("uo-click-to-copy");e.getContent=()=>this.value,this.label&&e.setAttribute("content-name",this.label),this.$fieldWrapper.appendChild(e)}#ec(){this.$input.addEventListener("input",Ft(()=>{this.dispatchEvent(new CustomEvent("change",{detail:{context:"user-input"}}))},200))}get copyToClipboard(){return this.hasAttribute("copy-to-clipboard")}set copyToClipboard(e){e?this.setAttribute("copy-to-clipboard",""):this.removeAttribute("copy-to-clipboard")}get autoFocus(){return this._autofocus}set autoFocus(e){this._autofocus=e}get value(){return this.$input.value}set value(e){e?(this.setAttribute("value",e),this.$input.value=e):(this.removeAttribute("value"),this.$input.value=""),this.dispatchEvent(new CustomEvent("change",{detail:{context:"set-value"}}))}get placeholder(){return this.getAttribute("placeholder")}set placeholder(e){e?(this.setAttribute("placeholder",e),this.$input.setAttribute("placeholder",e)):(this.removeAttribute("placeholder"),this.$input.removeAttribute("placeholder"))}get type(){return this.getAttribute("type")||"text"}set type(e){if(!e||"text"===e){this.removeAttribute("type"),this.$input.setAttribute("type","text");return}this.setAttribute("type",e),this.$input.setAttribute("type",e)}get required(){return this.hasAttribute("required")}set required(e){e?(this.setAttribute("required",""),this.$input.setAttribute("required","")):(this.removeAttribute("required"),this.$input.removeAttribute("required"))}get id(){return this.getAttribute("id")}set id(e){this.$input&&(this.$input.id=e||""),this.$label&&(this.$label.htmlFor=e||""),e?this.setAttribute("id",e):this.removeAttribute("id")}get disabled(){return this.hasAttribute("disabled")||this.$input.hasAttribute("disabled")}set disabled(e){this.removeAttribute("disabled"),e?(this.$fieldWrapper.classList.add("input-wrapper--disabled"),this.$input.setAttribute("disabled","")):(this.$fieldWrapper.classList.remove("input-wrapper--disabled"),this.$input.removeAttribute("disabled"))}get readOnly(){return this.hasAttribute("readonly")}set readOnly(e){this.toggleAttribute("readonly",!!e),this.$input.readOnly=!!e}get $copyToClipboardComponent(){return this.shadowRoot.querySelector("uo-click-to-copy")}get $fieldWrapper(){return this.shadowRoot.querySelector(".input-wrapper")}get $input(){return this.shadowRoot.querySelector("input")}}customElements.define("uo-text-field",Fl);var Fc=a(1647),Fd=a.n(Fc);class Fu extends Fo(HTMLElement){static get componentAttributes(){return Object.assign(this.baseComponentAttributes,{"aria-label":{type:"string",propertyKey:"accessibleLabel"},checked:{type:"boolean"},"status-label":{type:"string",propertyKey:"statusLabel"},"status-label-position":{type:"string",propertyKey:"statusLabelPosition"}})}constructor(){super(),this.#es(),this.#el()}connectedCallback(){this.#ec()}#es(){this.shadowRoot.querySelector("style").insertAdjacentHTML("beforeEnd",Fd())}#el(){this.$controlWrapper.insertAdjacentHTML("beforeEnd",` <label class="switch"> <input type="checkbox"> <span class="switch__handle"></span> </label> `)}get value(){return this.checked?"1":"0"}set accessibleLabel(e){e?this.$input.setAttribute("aria-label",e):this.$input.removeAttribute("aria-label")}#ec(){this.$input.addEventListener("change",()=>{this.dispatchEvent(new CustomEvent("change",{detail:{context:"user-input"}}))})}get statusLabel(){return this.getAttribute("status-label")}set statusLabel(e){rY(e)?(this.removeAttribute("status-label"),this.#en()):(this.setAttribute("status-label",e),this.#ea(e))}get statusLabelPosition(){return this.getAttribute("status-label-position")}set statusLabelPosition(e){rY(e)?(this.removeAttribute("status-position-position"),this.$switch.classList.remove("switch--left")):(this.setAttribute("status-label-position",e),"left"===e?this.$switch.classList.add("switch--left"):this.$switch.classList.remove("switch--left"))}#ea(e){let t=e.split(","),i=2==t.length;this.#en();let a=document.createElement("span");a.classList.add("switch__label"),i?a.insertAdjacentHTML("beforeEnd",` <span class="switch__label-dynamic switch__label-dynamic--on">${t[0]}</span> <span class="switch__label-dynamic switch__label-dynamic--off">${t[1]}</span> `):a.insertAdjacentHTML("beforeEnd",t),this.$switch.insertAdjacentElement("beforeEnd",a)}#en(){rK(this.$statusLabel)&&this.$statusLabel.parentNode.removeChild(this.$statusLabel)}get checked(){return this.$input.checked}set checked(e){e?(this.setAttribute("checked",""),this.$input.setAttribute("checked","")):(this.removeAttribute("checked"),this.$input.removeAttribute("checked")),this.$input.checked=!!e,this.dispatchEvent(new CustomEvent("change",{detail:{context:"set-value"}}))}get disabled(){return this.hasAttribute("disabled")}set disabled(e){e?(this.setAttribute("disabled",""),this.$input.setAttribute("disabled","")):(this.removeAttribute("disabled"),this.$input.removeAttribute("disabled"))}get required(){return this.hasAttribute("required")}set required(e){e?(this.setAttribute("required",""),this.$input.setAttribute("required","")):(this.removeAttribute("required"),this.$input.removeAttribute("required"))}get id(){return this.getAttribute("id")}set id(e){e?this.setAttribute("id",e):this.removeAttribute("id")}get $switch(){return this.shadowRoot.querySelector(".switch")}get $statusLabel(){return this.shadowRoot.querySelector(".switch__label")}get $input(){return this.shadowRoot.querySelector("input")}}function Fp(e){return(Fp="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Fh(e,t,i){"symbol"==Fp(t)&&(t=(t=t.description)?"["+t+"]":"");try{Object.defineProperty(e,"name",{configurable:!0,value:i?i+" "+t:t})}catch{}return e}function Fg(e,t,i,a,n,o){var r,s,l,c,d,u,p,h=Symbol.metadata||Symbol.for("Symbol.metadata"),g=Object.defineProperty,m=Object.create,f=[m(null),m(null)],y=t.length;function b(t,i,a){return function(n,o){i&&(o=n,n=e);for(var r=0;r<t.length;r++)o=t[r].apply(n,a?[o]:[]);return a?o:n}}function v(e,t,i,a){if("function"!=typeof e&&(a||void 0!==e))throw TypeError(t+" must "+(i||"be")+" a function"+(a?"":" or undefined"));return e}function _(e,t,i,a,n,o,l,c,d,u,p){function h(e){if(!p(e))throw TypeError("Attempted to access private element on non-instance")}var m=[].concat(t[0]),y=t[3],_=!l,w=1===n,x=3===n,k=4===n,E=2===n;function S(t,i,a){return function(n,o){return i&&(o=n,n=e),a&&a(n),C[t].call(n,o)}}if(!_){var C={},T=[],I=x?"get":k||w?"set":"value";if(d?(u||w?C={get:Fh(function(){return y(this)},a,"get"),set:function(e){t[4](this,e)}}:C[I]=y,u||Fh(C[I],a,E?"":I)):u||(C=Object.getOwnPropertyDescriptor(e,a)),!u&&!d){if((s=f[+c][a])&&7!=(s^n))throw Error("Decorating two elements with the same name ("+C[I].name+") is not supported yet");f[+c][a]=n<3?1:n}}for(var D=e,A=m.length-1;A>=0;A-=i?2:1){var O=v(m[A],"A decorator","be",!0),R=i?m[A-1]:void 0,M={},L={kind:["field","accessor","method","getter","setter","class"][n],name:a,metadata:r,addInitializer:(function(e,t){if(e.v)throw TypeError("attempted to call addInitializer after decoration was finished");v(t,"An initializer","be",!0),o.push(t)}).bind(null,M)};if(_)s=O.call(R,D,L),M.v=1,v(s,"class decorators","return")&&(D=s);else if(L.static=c,L.private=d,s=L.access={has:d?p.bind():function(e){return a in e}},k||(s.get=d?E?function(e){return h(e),C.value}:S("get",0,h):function(e){return e[a]}),E||x||(s.set=d?S("set",0,h):function(e,t){e[a]=t}),D=O.call(R,w?{get:C.get,set:C.set}:C[I],L),M.v=1,w){if("object"==Fp(D)&&D)(s=v(D.get,"accessor.get"))&&(C.get=s),(s=v(D.set,"accessor.set"))&&(C.set=s),(s=v(D.init,"accessor.init"))&&T.unshift(s);else if(void 0!==D)throw TypeError("accessor decorators must return an object with get, set, or init properties or undefined")}else v(D,(u?"field":"method")+" decorators","return")&&(u?T.unshift(D):C[I]=D)}return n<2&&l.push(b(T,c,1),b(o,c,0)),u||_||(d?w?l.splice(-1,0,S("get",c),S("set",c)):l.push(E?C[I]:v.call.bind(C[I])):g(e,a,C)),D}function w(e){return g(e,h,{configurable:!0,enumerable:!0,value:r})}return void 0!==o&&(r=o[h]),r=m(null==r?null:r),d=[],u=function(e){e&&d.push(b(e))},(p=function(t,a){for(var o=0;o<i.length;o++){var r=i[o],s=r[1],u=7&s;if((8&s)==t&&!u==a){var p=r[2],h=!!r[3],g=16&s;_(t?e:e.prototype,r,g,h?"#"+p:function(e){var t=function(e,t){if("object"!=Fp(e)||!e)return e;if("u">typeof Symbol&&void 0!==(i=e[Symbol.toPrimitive])){var i,a=i.call(e,t||"default");if("object"!=Fp(a))return a;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Fp(t)?t:t+""}(p),u,u<2?[]:t?c=c||[]:l=l||[],d,!!t,h,a,t&&h?function(t){return function(e){if(Object(e)!==e)throw TypeError("right-hand side of 'in' should be an object, got "+(null!==e?Fp(e):"null"));return e}(t)===e}:n)}}})(8,0),p(0,0),p(8,1),p(0,1),u(l),u(c),s=d,y||w(e),{e:s,get c(){var i=[];return y&&[w(e=_(e,[t],a,e.name,5,i)),b(i,1)]}}}function Fm(e){return e}customElements.define("uo-switch",Fu);let Ff=(e,t)=>{let i=e._$AN;if(void 0===i)return!1;for(let e of i)e._$AO?.(t,!1),Ff(e,t);return!0},Fy=e=>{let t,i;do{if(void 0===(t=e._$AM))break;(i=t._$AN).delete(e),e=t}while(0===i?.size)},Fb=e=>{for(let t;t=e._$AM;e=t){let i=t._$AN;if(void 0===i)t._$AN=i=new Set;else if(i.has(e))break;i.add(e),Fw(t)}};function Fv(e){void 0!==this._$AN?(Fy(this),this._$AM=e,Fb(this)):this._$AM=e}function F_(e,t=!1,i=0){let a=this._$AH,n=this._$AN;if(void 0!==n&&0!==n.size)if(t)if(Array.isArray(a))for(let e=i;e<a.length;e++)Ff(a[e],!1),Fy(a[e]);else null!=a&&(Ff(a,!1),Fy(a));else Ff(this,e)}let Fw=e=>{2==e.type&&(e._$AP??=F_,e._$AQ??=Fv)};class Fx extends cs{constructor(){super(...arguments),this._$AN=void 0}_$AT(e,t,i){super._$AT(e,t,i),Fb(this),this.isConnected=e._$AU}_$AO(e,t=!0){e!==this.isConnected&&(this.isConnected=e,e?this.reconnected?.():this.disconnected?.()),t&&(Ff(this,e),Fy(this))}setValue(e){if(void 0===this._$Ct.strings)this._$Ct._$AI(e,this);else{let t=[...this._$Ct._$AH];t[this._$Ci]=e,this._$Ct._$AI(t,this,0)}}disconnected(){}reconnected(){}}class Fk{constructor(e){this.G=e}disconnect(){this.G=void 0}reconnect(e){this.G=e}deref(){return this.G}}class FE{constructor(){this.Y=void 0,this.Z=void 0}get(){return this.Y}pause(){this.Y??=new Promise(e=>this.Z=e)}resume(){this.Z?.(),this.Y=this.Z=void 0}}let FS=e=>null!==e&&("object"==typeof e||"function"==typeof e)&&"function"==typeof e.then,FC=cr(class extends Fx{constructor(){super(...arguments),this._$Cwt=0x3fffffff,this._$Cbt=[],this._$CK=new Fk(this),this._$CX=new FE}render(...e){return e.find(e=>!FS(e))??s2}update(e,t){let i=this._$Cbt,a=i.length;this._$Cbt=t;let n=this._$CK,o=this._$CX;this.isConnected||this.disconnected();for(let e=0;e<t.length&&!(e>this._$Cwt);e++){let r=t[e];if(!FS(r))return this._$Cwt=e,r;e<a&&r===i[e]||(this._$Cwt=0x3fffffff,a=0,Promise.resolve(r).then(async e=>{for(;o.get();)await o.get();let t=n.deref();if(void 0!==t){let i=t._$Cbt.indexOf(r);i>-1&&i<t._$Cwt&&(t._$Cwt=i,t.setValue(e))}}))}return s2}disconnected(){this._$CK.disconnect(),this._$CX.pause()}reconnected(){this._$CK.reconnect(this),this._$CX.resume()}});var FT=a(2839),FI=a.n(FT);new class extends Fm{static [class extends ld{static{({e:[l,c,d,u],c:[p,s]}=Fg(this,[lJ("uo-field-input-file-async-data")],[[l0({type:String}),1,"mime"],[l0({type:String}),1,"url"]],0,void 0,ld))}constructor(...e){super(...e),u(this)}#ed=l(this);get mime(){return this.#ed}set mime(e){this.#ed=e}#eu=(c(this),d(this));get url(){return this.#eu}set url(e){this.#eu=e}render(){return s1` <div class="wrapper"> ${FC(this._templateFile,this._templatePlaceholder)} </div> `}get _templateFile(){return FC((async function(e,t,i={}){try{let a=await fetch(t);if(!a.ok)throw Error(`HTTP error! Status: ${a.status} ${a.statusText}`);let n=await a.text();switch(e){case"csv":return function(e,{headerRow:t=0,separator:i=",",hasHeaders:a=!0}={}){let n,o;if(rY(e))return{type:"csv",headers:[],numberOfRows:0};let r=e.split(` `).filter(e=>""!==e.trim());if(0===r.length)return{type:"csv",headers:[],numberOfRows:0};if(a){let e=Math.max(0,Math.min(t,r.length-1));n=r[e].split(i).map(e=>e.trim()),o=r.length-1}else n=r[0].split(i).map((e,t)=>`Column${t+1}`),o=r.length;return{type:"csv",headers:n,numberOfRows:o=Math.max(0,o)}}(n,i);case"json":let o;if(rY(n)||"string"==typeof n&&""===n.trim())throw Error("Input JSON text cannot be null, undefined, or empty.");try{o=JSON.parse(n)}catch(e){throw console.error("Failed to parse JSON:",e),SyntaxError(`Invalid JSON input: ${e instanceof Error?e.message:String(e)}`)}if(!Array.isArray(o))throw Error("JSON data is not an array.");let r=o.reduce((e,t)=>(t&&"object"==typeof t&&!Array.isArray(t)&&Object.keys(t).forEach(t=>e.add(t)),e),new Set),s=o.length;return{type:"json",keys:Array.from(r),numberOfItems:s};case"xml":return function(e){if(rY(e)||"string"==typeof e&&""===e.trim())throw Error("Input XML text cannot be null, undefined, or empty.");if("u"<typeof DOMParser)throw Error("DOMParser is not available in this environment.");let t=new DOMParser().parseFromString(e,"application/xml"),i=t.getElementsByTagName("parsererror");if(i.length>0){let e=i[0]?.textContent||"Unknown parsing error";throw Error(`Invalid XML: ${e}`)}let a=t.documentElement;if(!a)throw Error("Could not find root element in the XML document.");let n=a.nodeName;return{type:"xml",rootElementName:n,numberOfChildElements:a.children.length}}(n);default:throw Error(`Unsupported data type: ${e}`)}}catch(i){return console.error(`Error fetching or processing ${e} from ${t}:`,i),null}})(this.fileType,this.url).then(e=>{if(e){if("csv"===e.type)return this._templateCSV(e);if("json"===e.type)return this._templateJSON(e);if("xml"===e.type)return this._templateXML(e)}}).catch(e=>{console.log(e)}),this._templateLoading)}get _templateLoading(){return s1` | <uas-skeleton width="70px"></uas-skeleton> `}_templateItems(e=[]){if(0!==e.length)return s1` | ${e.map((e,t)=>s1`${t>0?" | ":""}${e}`)} `}_templateCSV(e){let t=[];return e.numberOfRows&&t.push(s1`${(0,lX.sprintf)((0,b4.escapeHTML)((0,lX.__)("%1$s rows","uncanny-automator")),e.numberOfRows)}`),e.headers&&t.push(s1`${(0,lX.sprintf)((0,b4.escapeHTML)((0,lX.__)("Headers: %1$s","uncanny-automator")),e.headers.join(", "))}`),this._templateItems(t)}_templateJSON(e){let t=[];return e.numberOfItems&&t.push(s1`${(0,lX.sprintf)((0,b4.escapeHTML)((0,lX.__)("%1$s items","uncanny-automator")),e.numberOfItems)}`),e.keys&&t.push(s1`${(0,lX.sprintf)((0,b4.escapeHTML)((0,lX.__)("Keys: %1$s","uncanny-automator")),e.keys.join(", "))}`),this._templateItems(t)}_templateXML(e){let t=[];return e.numberOfChildElements&&t.push(s1`${(0,lX.sprintf)((0,b4.escapeHTML)((0,lX.__)("%1$s elements","uncanny-automator")),e.numberOfChildElements)}`),e.rootElementName&&t.push(s1`${(0,lX.sprintf)((0,b4.escapeHTML)((0,lX.__)("Root element: %1$s","uncanny-automator")),e.rootElementName)}`),this._templateItems(t)}get fileType(){switch(this.mime){case"application/json":return"json";case"application/xml":case"text/xml":return"xml";case"text/csv":return"csv";default:return}}}];styles=sf`${sm(FI())}`;constructor(){super(p),s()}};var FD=a(8130),FA=a.n(FD);new class extends Fm{static [class extends ld{static{({e:[g,m,f,y,b,v,_,w],c:[x,h]}=Fg(this,[lJ("uo-field-input-file")],[[l0({type:Boolean}),1,"multiple"],[l0({type:Boolean}),1,"required"],[l0({type:Array}),1,"fileTypes"],[l0({type:Array}),1,"value"]],0,void 0,ld))}constructor(...e){super(...e),w(this)}#ed=g(this,!1);get multiple(){return this.#ed}set multiple(e){this.#ed=e}#eu=(m(this),f(this,!1));get required(){return this.#eu}set required(e){this.#eu=e}#ep=(y(this),b(this,[]));get fileTypes(){return this.#ep}set fileTypes(e){this.#ep=e}#eh=(v(this),_(this,[]));get value(){return this.#eh}set value(e){this.#eh=e}render(){return s1` <div class="wrapper"> ${this._templateUploadFile} ${this._templateFiles} </div> `}handleOpenMediaLibrary(){((e,{multiple:t=!1,fileTypes:i=[]}={})=>{if(null==e||"function"!=typeof e)throw TypeError("The callback provided must be a non-null function.");let a={multiple:t};i.length&&(a.library={type:i});let n=wp.media(a);n.on("select",()=>{let i=n.state().get("selection");e(t?i.toJSON():i.first().toJSON())}),n.open()})(e=>{let t=this.multiple?e:[e];this.value=t,this.dispatchEvent(new CustomEvent("change",{detail:{value:t},bubbles:!1,composed:!0}))},{multiple:this.multiple,fileTypes:this.fileTypes})}handleDeleteFile(e){let t=this.value.filter(t=>t.id!==e.id);this.value=t,this.dispatchEvent(new CustomEvent("change",{detail:{value:t},bubbles:!0,composed:!0}))}get _templateUploadFile(){return s1` <div class="upload-file"> <uas-button color="secondary" @click=${this.handleOpenMediaLibrary} > ${this._templateUploadButtonLabel} </uas-button> </div> `}get _templateUploadButtonLabel(){return rY(this.value)?this.multiple?(0,b4.escapeHTML)((0,lX.__)("Select files","uncanny-automator")):(0,b4.escapeHTML)((0,lX.__)("Select file","uncanny-automator")):this.multiple?(0,b4.escapeHTML)((0,lX.__)("Change files","uncanny-automator")):(0,b4.escapeHTML)((0,lX.__)("Change file","uncanny-automator"))}get _templateFiles(){if(!rY(this.value))return s1` <div class="files"> <lit-virtualizer .items=${this.value} .renderItem=${e=>this._templateFile(e)} ></lit-virtualizer> </div> `}_templateFile(e){return s1` <div class="file"> <div class="file-icon"> ${this._templateFileIcon(e)} </div> <div class="file-name"> ${e.filename} </div> <div class="file-details"> #${e.id} | ${e.filesizeHumanReadable} ${this._templateAsyncFileData(e)} </div> <div class="file-actions"> ${this._templateFileActions(e)} </div> </div> `}_templateFileActions(e){return s1` ${this._templateFileActionRemove(e)} `}_templateFileActionRemove(e){return s1` <uas-tooltip> <span class="tooltip-nowrap"> ${this._templateRemoveTooltipLabel} </span> <uas-button slot="target" color="transparent" size="xs" @click=${()=>this.handleDeleteFile(e)} > <uas-icon code="xmark" size="16"></uas-icon> </uas-button> </uas-tooltip> `}get _templateRemoveTooltipLabel(){return this.multiple?(0,lX.__)("Remove from list","uncanny-automator"):(0,lX.__)("Remove file","uncanny-automator")}_templateAsyncFileData(e){if(["text/csv","application/json","application/xml","text/xml"].includes(e.mime))return s1` <uo-field-input-file-async-data .url=${e.url} .mime=${e.mime} ></uo-field-input-file-async-data> `}_templateFileIcon(e){switch(e.mime){case"image/jpeg":case"image/png":case"image/gif":case"image/webp":case"image/svg+xml":return this._templateFileIconImage(e);default:return this._templateFileIconDefault(e)}}_templateFileIconImage(e){return s1` <img src="${e.url}" alt="${e.alt}" class="file-icon__image-preview" /> `}_templateFileIconDefault(e){return s1` <uas-icon mime="${e.mime??""}" code="file" class="file-icon__file-type" ></uas-icon> `}}];styles=sf`${sm(FA())}`;constructor(){super(x),h()}};var F$=a(6656),FO=a.n(F$);new class extends Fm{static [class extends ld{static{({e:[E,S,C,T,I,D,A,O,R,M,L,N,P,z,U,F],c:[j,k]}=Fg(this,[lJ("uo-field-input-switch")],[[l0({type:Boolean}),1,"required"],[l0({type:Boolean}),1,"checked"],[l0({type:Boolean}),1,"disabled"],[l0({type:Boolean}),1,"loading"],[l0({type:String,attribute:"label-placement"}),1,"labelPlacement"],[l0({type:String,attribute:"label-on"}),1,"labelOn"],[l0({type:String,attribute:"label-off"}),1,"labelOff"],[l0({type:String,attribute:"size"}),1,"size"]],0,void 0,ld))}constructor(...e){super(...e),F(this)}#ed=E(this,!1);get required(){return this.#ed}set required(e){this.#ed=e}#eu=(S(this),C(this,!1));get checked(){return this.#eu}set checked(e){this.#eu=e}#ep=(T(this),I(this,!1));get disabled(){return this.#ep}set disabled(e){this.#ep=e}#eh=(D(this),A(this,!1));get loading(){return this.#eh}set loading(e){this.#eh=e}#eg=(O(this),R(this,"right"));get labelPlacement(){return this.#eg}set labelPlacement(e){this.#eg=e}#em=(M(this),L(this,(0,b4.escapeHTML)((0,lX.__)("On","uncanny-automator"))));get labelOn(){return this.#em}set labelOn(e){this.#em=e}#ef=(N(this),P(this,(0,b4.escapeHTML)((0,lX.__)("Off","uncanny-automator"))));get labelOff(){return this.#ef}set labelOff(e){this.#ef=e}#ey=(z(this),U(this,"regular"));get size(){return this.#ey}set size(e){this.#ey=e}render(){return s1` <label class="wrapper"> <input type="checkbox" ?required=${this.required} ?checked=${this.checked} ?disabled=${this.disabled} @focus=${this._handleFocus} @change=${this.handleSwitchChange} tabindex="0" /> <div class="switch" ?checked=${this.checked} ?disabled=${this.disabled} ?loading=${this.loading} label-placement=${this.labelPlacement} size=${this.size} > <div class="switch-control"> <div class="switch-control-inner"></div> </div> <div class="switch-label"> ${this._templateLabel} </div> </div> </label> `}async handleSwitchChange(){this.disabled=!0;let e=this.checked;this.checked=!e;try{if(!await this.processChangeRequest(this.checked))return void this.revertWithDelay(e);this.disabled=!1,this.triggerChangeEvent()}catch{this.revertWithDelay(e)}}revertWithDelay(e){setTimeout(()=>{this.checked=e,this.disabled=!1},1e3)}triggerChangeEvent(){this.dispatchEvent(new CustomEvent("change",{detail:{checked:this.checked},bubbles:!1,composed:!0}))}async processChangeRequest(e){return new Promise(e=>e(!0))}get _templateLabel(){return this.checked?this.labelOn:this.labelOff}}];styles=sf`${sm(FO())}`;constructor(){super(j),k()}};var FR=a(4263),FM=a.n(FR);function FL(e){return Array.isArray?Array.isArray(e):"[object Array]"===FB(e)}function FN(e){return null==e?"":function(e){if("string"==typeof e)return e;if("bigint"==typeof e)return e.toString();let t=e+"";return"0"==t&&1/e==-1/0?"-0":t}(e)}function FP(e){return"string"==typeof e}function Fz(e){return"number"==typeof e}function FU(e){return"object"==typeof e}function FF(e){return null!=e}function Fj(e){return!e.trim().length}function FB(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}new class extends Fm{static [class extends ld{static{({e:[H,V,q,Z,W,G,K,Y,Q,X,J,ee],c:[et,B]}=Fg(this,[lJ("uo-field-input-radio")],[[l0({type:Boolean}),1,"required"],[l0({type:Boolean}),1,"checked"],[l0({type:String}),1,"name"],[l0({type:String}),1,"value"],[l0({type:Boolean}),1,"disabled"],[l0({type:String,attribute:"size"}),1,"size"]],0,void 0,ld))}constructor(...e){super(...e),ee(this)}#ed=H(this,!1);get required(){return this.#ed}set required(e){this.#ed=e}#eu=(V(this),q(this,!1));get checked(){return this.#eu}set checked(e){this.#eu=e}#ep=(Z(this),W(this,""));get name(){return this.#ep}set name(e){this.#ep=e}#eh=(G(this),K(this,""));get value(){return this.#eh}set value(e){this.#eh=e}#eg=(Y(this),Q(this,!1));get disabled(){return this.#eg}set disabled(e){this.#eg=e}#em=(X(this),J(this,"regular"));get size(){return this.#em}set size(e){this.#em=e}render(){return s1` <label class="wrapper"> <input type="radio" name="${this.name}" value="${this.value}" ?required=${this.required} ?disabled=${this.disabled} .checked=${this.checked} @change=${this._onChange} /> <span class="radio"> <span class="radio-control"> <span class="radio-control-inner"></span> </span> <span class="radio-label"> <slot name="label"></slot> </span> </span> </label> `}_onChange(){document.querySelectorAll("uo-field-input-radio").forEach(e=>{if(e!==this&&e.name===this.name){e.checked=!1;let t=e.shadowRoot?.querySelector('input[type="radio"]');t&&(t.checked=!1)}}),this.checked=!0,this.shadowRoot.querySelector('input[type="radio"]').checked=!0,this.dispatchEvent(new CustomEvent("change",{detail:{value:this.value,checked:!0},bubbles:!0,composed:!0}))}get $input(){return this.shadowRoot.querySelector("input")}}];styles=sf`${sm(FM())}`;constructor(){super(et),B()}};let FH="Invalid doc index: must be a non-negative integer within the bounds of the docs array",FV=Object.prototype.hasOwnProperty;var Fq=class{constructor(e){this._keys=[],this._keyMap={};let t=0;e.forEach(e=>{let i=FZ(e);this._keys.push(i),this._keyMap[i.id]=i,t+=i.weight}),this._keys.forEach(e=>{e.weight/=t})}get(e){return this._keyMap[e]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}};function FZ(e){let t=null,i=null,a=null,n=1,o=null;if(FP(e)||FL(e))a=e,t=FW(e),i=FG(e);else{if(!FV.call(e,"name"))throw Error("Missing name property in key");let r=e.name;if(a=r,FV.call(e,"weight")&&void 0!==e.weight&&(n=e.weight)<=0){let e;throw Error((e=FG(r),`Property 'weight' in key '${e}' must be a positive integer`))}t=FW(r),i=FG(r),o=e.getFn??null}return{path:t,id:i,weight:n,src:a,getFn:o}}function FW(e){return FL(e)?e:e.split(".")}function FG(e){return FL(e)?e.join("."):e}let FK=Object.freeze({isCaseSensitive:!1,ignoreDiacritics:!1,includeScore:!1,keys:[],shouldSort:!0,sortFn:(e,t)=>e.score===t.score?e.idx<t.idx?-1:1:e.score<t.score?-1:1,includeMatches:!1,findAllMatches:!1,minMatchCharLength:1,location:0,threshold:.6,distance:100,useExtendedSearch:!1,useTokenSearch:!1,tokenize:void 0,tokenMatch:"any",getFn:function(e,t){let i=[],a=!1,n=(e,t,o,r)=>{if(FF(e))if(t[o]){var s,l;let c=e[t[o]];if(!FF(c))return;if(o===t.length-1&&(FP(c)||Fz(c)||!0===(s=c)||!1===s||FU(l=s)&&null!==l&&"[object Boolean]"==FB(s)||"bigint"==typeof c))i.push(void 0!==r?{v:FN(c),i:r}:FN(c));else if(FL(c)){a=!0;for(let e=0,i=c.length;e<i;e+=1)n(c[e],t,o+1,e)}else t.length&&n(c,t,o+1,r)}else i.push(void 0!==r?{v:e,i:r}:e)};return n(e,FP(t)?t.split("."):t,0),a?i:i[0]},ignoreLocation:!1,ignoreFieldNorm:!1,fieldNormWeight:1});var FY=class{constructor({getFn:e=FK.getFn,fieldNormWeight:t=FK.fieldNormWeight}={}){this.norm=function(e=1,t=3){let i=new Map,a=Math.pow(10,t);return{get(t){let n=0,o=!1;for(let e=0;e<t.length;e++){var r;(r=t.charCodeAt(e))>=9&&r<=13||32===r||160===r?o=!1:o||(n++,o=!0)}if(0===n&&(n=1),i.has(n))return i.get(n);let s=Math.round(a/Math.pow(n,.5*e))/a;return i.set(n,s),s},clear(){i.clear()}}}(t,3),this.getFn=e,this.isCreated=!1,this.docs=[],this.keys=[],this._keysMap={},this.setIndexRecords()}setSources(e=[]){this.docs=e}setIndexRecords(e=[]){this.records=e}setKeys(e=[]){this.keys=e,this._keysMap={},e.forEach((e,t)=>{this._keysMap[e.id]=t})}create(){if(this.isCreated||!this.docs.length)return;this.isCreated=!0;let e=this.docs.length;this.records=Array(e);let t=0;if(FP(this.docs[0]))for(let i=0;i<e;i++){let e=this._createStringRecord(this.docs[i],i);e&&(this.records[t++]=e)}else for(let i=0;i<e;i++)this.records[t++]=this._createObjectRecord(this.docs[i],i);this.records.length=t,this.norm.clear()}add(e,t){if(!Number.isInteger(t)||t<0)throw Error(FH);if(FP(e)){let i=this._createStringRecord(e,t);return i&&this.records.push(i),i}let i=this._createObjectRecord(e,t);return this.records.push(i),i}removeAt(e){if(!Number.isInteger(e)||e<0)throw Error(FH);for(let t=0,i=this.records.length;t<i;t+=1)if(this.records[t].i===e){this.records.splice(t,1);break}for(let t=0,i=this.records.length;t<i;t+=1)this.records[t].i>e&&(this.records[t].i-=1)}removeAll(e){let t=new Set;for(let i of e)Number.isInteger(i)&&i>=0&&t.add(i);if(0===t.size)return;this.records=this.records.filter(e=>!t.has(e.i));let i=Array.from(t).sort((e,t)=>e-t);for(let e of this.records){let t=0,a=i.length;for(;t<a;){let n=t+a>>>1;i[n]<e.i?t=n+1:a=n}e.i-=t}}getValueForItemAtKeyId(e,t){return e[this._keysMap[t]]}size(){return this.records.length}_createStringRecord(e,t){return!FF(e)||Fj(e)?null:{v:e,i:t,n:this.norm.get(e)}}_createObjectRecord(e,t){let i={i:t,$:{}};for(let t=0,a=this.keys.length;t<a;t++){let a=this.keys[t],n=a.getFn?a.getFn(e):this.getFn(e,a.path);if(FF(n)){if(FL(n)){let e=[];for(let t=0,i=n.length;t<i;t+=1){let i=n[t];if(FF(i)){if(FP(i)){if(!Fj(i)){let a={v:i,i:t,n:this.norm.get(i)};e.push(a)}}else if(FF(i.v)){let t=FP(i.v)?i.v:FN(i.v);if(!Fj(t)){let a={v:t,i:i.i,n:this.norm.get(t)};e.push(a)}}}}i.$[t]=e}else if(FP(n)&&!Fj(n)){let e={v:n,n:this.norm.get(n)};i.$[t]=e}}}return i}toJSON(){return{keys:this.keys.map(({getFn:e,...t})=>t),records:this.records}}};function FQ(e,t,{getFn:i=FK.getFn,fieldNormWeight:a=FK.fieldNormWeight}={}){let n=new FY({getFn:i,fieldNormWeight:a});return n.setKeys(e.map(FZ)),n.setSources(t),n.create(),n}function FX(e){if(e.length<=1)return e;e.sort((e,t)=>e[0]-t[0]||e[1]-t[1]);let t=[e[0]];for(let i=1,a=e.length;i<a;i+=1){let a=t[t.length-1],n=e[i];n[0]<=a[1]+1?a[1]=Math.max(a[1],n[1]):t.push(n)}return t}let FJ={ł:"l",Ł:"L",đ:"d",Đ:"D",ø:"o",Ø:"O",ħ:"h",Ħ:"H",ŧ:"t",Ŧ:"T",ı:"i",ß:"ss"},F1=RegExp("["+Object.keys(FJ).join("")+"]","g"),F0="function"==typeof String.prototype.normalize?e=>e.normalize("NFD").replace(/[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B62\u0B63\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0C00-\u0C04\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D82\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EB9\u0EBB\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F\u109A-\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u192B\u1930-\u193B\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F\u1AB0-\u1ABE\u1B00-\u1B04\u1B34-\u1B44\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BE6-\u1BF3\u1C24-\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF2-\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA880\uA881\uA8B4-\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9E5\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F]/g,"").replace(F1,e=>FJ[e]):e=>e;var F2=class{constructor(e,{location:t=FK.location,threshold:i=FK.threshold,distance:a=FK.distance,includeMatches:n=FK.includeMatches,findAllMatches:o=FK.findAllMatches,minMatchCharLength:r=FK.minMatchCharLength,isCaseSensitive:s=FK.isCaseSensitive,ignoreDiacritics:l=FK.ignoreDiacritics,ignoreLocation:c=FK.ignoreLocation}={}){if(this.options={location:t,threshold:i,distance:a,includeMatches:n,findAllMatches:o,minMatchCharLength:r,isCaseSensitive:s,ignoreDiacritics:l,ignoreLocation:c},e=s?e:e.toLowerCase(),e=l?F0(e):e,this.pattern=e,this.chunks=[],!this.pattern.length)return;let d=(e,t)=>{this.chunks.push({pattern:e,alphabet:function(e){let t={};for(let i=0,a=e.length;i<a;i+=1){let n=e.charAt(i);t[n]=(t[n]||0)|1<<a-i-1}return t}(e),startIndex:t})},u=this.pattern.length;if(u>32){let e=0,t=u%32,i=u-t;for(;e<i;)d(this.pattern.substr(e,32),e),e+=32;if(t){let e=u-32;d(this.pattern.substr(e),e)}}else d(this.pattern,0)}searchIn(e){let{isCaseSensitive:t,ignoreDiacritics:i,includeMatches:a}=this.options;if(e=t?e:e.toLowerCase(),e=i?F0(e):e,this.pattern===e){if(e.length<this.options.minMatchCharLength)return{isMatch:!1,score:1};let t={isMatch:!0,score:0};return a&&(t.indices=[[0,e.length-1]]),t}let{location:n,distance:o,threshold:r,findAllMatches:s,minMatchCharLength:l,ignoreLocation:c}=this.options,d=[],u=0,p=!1;this.chunks.forEach(({pattern:t,alphabet:i,startIndex:h})=>{let{isMatch:g,score:m,indices:f}=function(e,t,i,{location:a=FK.location,distance:n=FK.distance,threshold:o=FK.threshold,findAllMatches:r=FK.findAllMatches,minMatchCharLength:s=FK.minMatchCharLength,includeMatches:l=FK.includeMatches,ignoreLocation:c=FK.ignoreLocation}={}){let d;if(t.length>32)throw Error("Pattern length exceeds max of 32.");let u=t.length,p=e.length,h=Math.max(0,Math.min(a,p)),g=o,m=h,f=(e,t)=>{let i=e/u;if(c)return i;let a=Math.abs(h-t);return n?i+a/n:a?1:i},y=s>1||l,b=y?Array(p):[];for(;(d=e.indexOf(t,m))>-1;)if(g=Math.min(f(0,d),g),m=d+u,y){let e=0;for(;e<u;)b[d+e]=1,e+=1}m=-1;let v=[],_=1,w=0,x=u+p,k=1<<u-1;for(let t=0;t<u;t+=1){let a=0,n=x;for(;a<n;)f(t,h+n)<=g?a=n:x=n,n=Math.floor((x-a)/2+a);x=n;let o=Math.max(1,h-n+1),s=r?p:Math.min(h+n,p)+u,l=Array(s+2);l[s+1]=(1<<t)-1;for(let a=s;a>=o;a-=1){let n=a-1,r=i[e[n]];if(l[a]=(l[a+1]<<1|1)&r,t&&(l[a]|=(v[a+1]|v[a])<<1|1|v[a+1]),l[a]&k&&(_=f(t,n))<=g){if(g=_,m=n,w=t,m<=h)break;o=Math.max(1,2*h-m)}}if(f(t+1,h)>g)break;v=l}if(y&&m>=0){let t=Math.min(p-1,m+u-1+w);for(let a=m;a<=t;a+=1)i[e[a]]&&(b[a]=1)}let E={isMatch:m>=0,score:Math.max(.001,_)};if(y){let e=function(e=[],t=FK.minMatchCharLength){let i=[],a=-1,n=-1,o=0;for(let r=e.length;o<r;o+=1){let r=e[o];r&&-1===a?a=o:r||-1===a||((n=o-1)-a+1>=t&&i.push([a,n]),a=-1)}return e[o-1]&&o-a>=t&&i.push([a,o-1]),i}(b,s);e.length?l&&(E.indices=e):E.isMatch=!1}return E}(e,t,i,{location:n+h,distance:o,threshold:r,findAllMatches:s,minMatchCharLength:l,includeMatches:a,ignoreLocation:c});g&&(p=!0),u+=m,g&&f&&d.push(...f)});let h={isMatch:p,score:p?u/this.chunks.length:1};return p&&a&&(h.indices=FX(d)),h}};let F3=new Set(["fuzzy","include"]),F4=[{type:"exact",multiRegex:/^="(.*)"$/,singleRegex:/^=(.*)$/,create:e=>({type:"exact",search(t){let i=t===e;return{isMatch:i,score:+!i,indices:[0,e.length-1]}}})},{type:"include",multiRegex:/^'"(.*)"$/,singleRegex:/^'(.*)$/,create:e=>({type:"include",search(t){let i,a=0,n=[],o=e.length;for(;(i=t.indexOf(e,a))>-1;)a=i+o,n.push([i,a-1]);let r=!!n.length;return{isMatch:r,score:+!r,indices:n}}})},{type:"prefix-exact",multiRegex:/^\^"(.*)"$/,singleRegex:/^\^(.*)$/,create:e=>({type:"prefix-exact",search(t){let i=t.startsWith(e);return{isMatch:i,score:+!i,indices:[0,e.length-1]}}})},{type:"inverse-prefix-exact",multiRegex:/^!\^"(.*)"$/,singleRegex:/^!\^(.*)$/,create:e=>({type:"inverse-prefix-exact",search(t){let i=!t.startsWith(e);return{isMatch:i,score:+!i,indices:[0,t.length-1]}}})},{type:"inverse-suffix-exact",multiRegex:/^!"(.*)"\$$/,singleRegex:/^!(.*)\$$/,create:e=>({type:"inverse-suffix-exact",search(t){let i=!t.endsWith(e);return{isMatch:i,score:+!i,indices:[0,t.length-1]}}})},{type:"suffix-exact",multiRegex:/^"(.*)"\$$/,singleRegex:/^(.*)\$$/,create:e=>({type:"suffix-exact",search(t){let i=t.endsWith(e);return{isMatch:i,score:+!i,indices:[t.length-e.length,t.length-1]}}})},{type:"inverse-exact",multiRegex:/^!"(.*)"$/,singleRegex:/^!(.*)$/,create:e=>({type:"inverse-exact",search(t){let i=-1===t.indexOf(e);return{isMatch:i,score:+!i,indices:[0,t.length-1]}}})},{type:"fuzzy",multiRegex:/^"(.*)"$/,singleRegex:/^(.*)$/,create:(e,t={})=>{let i=new F2(e,{location:t.location??FK.location,threshold:t.threshold??FK.threshold,distance:t.distance??FK.distance,includeMatches:t.includeMatches??FK.includeMatches,findAllMatches:t.findAllMatches??FK.findAllMatches,minMatchCharLength:t.minMatchCharLength??FK.minMatchCharLength,isCaseSensitive:t.isCaseSensitive??FK.isCaseSensitive,ignoreDiacritics:t.ignoreDiacritics??FK.ignoreDiacritics,ignoreLocation:t.ignoreLocation??FK.ignoreLocation});return{type:"fuzzy",search:e=>i.searchIn(e)}}}],F6=F4.length;function F5(e,t){let i=e.match(t);return i?i[1]:null}var F8=class{constructor(e,{isCaseSensitive:t=FK.isCaseSensitive,ignoreDiacritics:i=FK.ignoreDiacritics,includeMatches:a=FK.includeMatches,minMatchCharLength:n=FK.minMatchCharLength,ignoreLocation:o=FK.ignoreLocation,findAllMatches:r=FK.findAllMatches,location:s=FK.location,threshold:l=FK.threshold,distance:c=FK.distance}={}){this.query=null,this.options={isCaseSensitive:t,ignoreDiacritics:i,includeMatches:a,minMatchCharLength:n,findAllMatches:r,ignoreLocation:o,location:s,threshold:l,distance:c},e=t?e:e.toLowerCase(),e=i?F0(e):e,this.pattern=e,this.query=function(e,t={}){return e.replace(/\\\|/g,"\0").split("|").map(e=>{let i=(function(e){let t=[],i=e.length,a=0;for(;a<i;){for(;a<i&&" "===e[a];)a++;if(a>=i)break;let n=a;for(;n<i&&" "!==e[n]&&'"'!==e[n];)n++;if(n<i&&'"'===e[n]){for(n++;n<i;){if('"'===e[n]){let t=n+1;if(t>=i||" "===e[t]){n++;break}if("$"===e[t]&&(t+1>=i||" "===e[t+1])){n+=2;break}}n++}t.push(e.substring(a,n)),a=n}else{for(;n<i&&" "!==e[n];)n++;t.push(e.substring(a,n)),a=n}}return t})(e.replace(/\u0000/g,"|").trim()).filter(e=>e&&!!e.trim()),a=[];for(let e=0,n=i.length;e<n;e+=1){let n=i[e],o=!1,r=-1;for(;!o&&++r<F6;){let e=F4[r],i=F5(n,e.multiRegex);i&&(a.push(e.create(i,t)),o=!0)}if(!o)for(r=-1;++r<F6;){let e=F4[r],i=F5(n,e.singleRegex);if(i){a.push(e.create(i,t));break}}}return a})}(this.pattern,this.options)}static condition(e,t){return t.useExtendedSearch}searchIn(e){let t=this.query;if(!t)return{isMatch:!1,score:1};let{includeMatches:i,isCaseSensitive:a,ignoreDiacritics:n}=this.options;e=a?e:e.toLowerCase(),e=n?F0(e):e;let o=0,r=[],s=0,l=!1;for(let a=0,n=t.length;a<n;a+=1){let n=t[a];r.length=0,o=0,l=!1;for(let t=0,a=n.length;t<a;t+=1){let a=n[t],{isMatch:c,indices:d,score:u}=a.search(e);if(c)o+=1,s+=u,a.type.startsWith("inverse")&&(l=!0),i&&(F3.has(a.type)?r.push(...d):r.push(d));else{s=0,o=0,r.length=0,l=!1;break}}if(o){let e={isMatch:!0,score:s/o};return l&&(e.hasInverse=!0),i&&(e.indices=FX(r)),e}}return{isMatch:!1,score:1}}};let F7=[];function F9(...e){F7.push(...e)}function je(e,t){for(let i=0,a=F7.length;i<a;i+=1){let a=F7[i];if(a.condition(e,t))return new a(e,t)}return new F2(e,t)}let jt="$and",ji="$path",ja=e=>!!(e[jt]||e.$or),jn=e=>({[jt]:Object.keys(e).map(t=>({[t]:e[t]}))});function jo(e,t,{auto:i=!0}={}){let a=e=>{if(FP(e)){let a={keyId:null,pattern:e};return i&&(a.searcher=je(e,t)),a}let n=Object.keys(e),o=!!e[ji];if(!o&&n.length>1&&!ja(e))return a(jn(e));if(!FL(e)&&FU(e)&&!ja(e)){let a=o?e[ji]:n[0],r=o?e.$val:e[a];if(!FP(r))throw Error(`Invalid value for key ${a}`);let s={keyId:FG(a),pattern:r};return i&&(s.searcher=je(r,t)),s}let r={children:[],operator:n[0]};return n.forEach(t=>{let i=e[t];FL(i)&&i.forEach(e=>{r.children.push(a(e))})}),r};return ja(e)||(e=jn(e)),a(e)}function jr(e,{ignoreFieldNorm:t=FK.ignoreFieldNorm}){let i=1;return e.forEach(({key:e,norm:a,score:n})=>{let o=e?e.weight:null;i*=Math.pow(0===n&&o?Number.EPSILON:n,(o||1)*(t?1:a))}),i}var js=class{constructor(e,t){this.limit=e,this.heap=[],this.comparator=t}get size(){return this.heap.length}insert(e){this.size<this.limit?(this.heap.push(e),this._bubbleUp(this.size-1)):0>this.comparator(e,this.heap[0])&&(this.heap[0]=e,this._sinkDown(0))}extractSorted(){return this.heap.sort(this.comparator)}_bubbleUp(e){let t=this.heap;for(;e>0;){let i=e-1>>1;if(0>=this.comparator(t[e],t[i]))break;let a=t[e];t[e]=t[i],t[i]=a,e=i}}_sinkDown(e){let t=this.heap,i=t.length,a=e;do{let n=2*(e=a)+1,o=2*e+2;if(n<i&&this.comparator(t[n],t[a])>0&&(a=n),o<i&&this.comparator(t[o],t[a])>0&&(a=o),a!==e){let i=t[e];t[e]=t[a],t[a]=i}}while(a!==e)}};let jl=/[\p{L}\p{M}\p{N}_]+/gu,jc=new WeakSet;function jd({isCaseSensitive:e=!1,ignoreDiacritics:t=!1,tokenize:i}={}){let a=function(e){if("function"==typeof e){let t=!1;return i=>{let a=e(i);if(!t&&(t=!0,!Array.isArray(a)||a.some(e=>"string"!=typeof e)))throw Error(`[Fuse] tokenize function must return string[]; received ${Array.isArray(a)?"array containing non-strings":typeof a}.`);return a}}if(e instanceof RegExp)return!e.global&&(jc.has(e)||(jc.add(e),console.warn(`[Fuse] tokenize regex ${e} lacks the global flag; only the first match per text will be returned. Add the 'g' flag.`))),t=>t.match(e)||[];return e=>e.match(jl)||[]}(i);return{tokenize:i=>(e||(i=i.toLowerCase()),t&&(i=F0(i)),a(i))}}var ju=class{static condition(e,t){return t.useTokenSearch}constructor(e,t){this.options=t,this.analyzer=jd({isCaseSensitive:t.isCaseSensitive,ignoreDiacritics:t.ignoreDiacritics,tokenize:t.tokenize});let i=this.analyzer.tokenize(e),{df:a,fieldCount:n}=t._invertedIndex;for(let e of(this.termSearchers=[],this.idfWeights=[],i)){this.termSearchers.push(new F2(e,{location:t.location,threshold:t.threshold,distance:t.distance,includeMatches:t.includeMatches,findAllMatches:t.findAllMatches,minMatchCharLength:t.minMatchCharLength,isCaseSensitive:t.isCaseSensitive,ignoreDiacritics:t.ignoreDiacritics,ignoreLocation:!0}));let i=a.get(e)||0,o=Math.log(1+(n-i+.5)/(i+.5));this.idfWeights.push(o)}this.combineAll="all"===t.tokenMatch,this.numTerms=this.termSearchers.length,this.useMask=this.numTerms<=31}searchIn(e){if(!this.termSearchers.length)return{isMatch:!1,score:1};let t=[],i=0,a=0,n=0,o=0,r=this.combineAll&&!this.useMask?new Set:null;for(let s=0;s<this.termSearchers.length;s++){let l=this.termSearchers[s].searchIn(e),c=this.idfWeights[s];a+=c,l.isMatch&&(n++,i+=c*(1-l.score),l.indices&&t.push(...l.indices),this.combineAll&&(this.useMask?o|=1<<s:r.add(s)))}if(0===n)return{isMatch:!1,score:1};let s={isMatch:!0,score:Math.max(.001,a>0?1-i/a:0)};return this.options.includeMatches&&t.length&&(s.indices=FX(t)),this.combineAll&&(this.useMask?s.matchedMask=o:s.matchedTerms=r,s.termCount=this.numTerms),s}};function jp(e,t,i,a){let n=a.tokenize(t);if(!n.length)return;e.fieldCount++,e.docFieldCount.set(i,(e.docFieldCount.get(i)||0)+1);let o=new Set(n),r=e.docTermFieldHits.get(i);for(let t of(r||(r=new Map,e.docTermFieldHits.set(i,r)),o))r.set(t,(r.get(t)||0)+1),e.df.set(t,(e.df.get(t)||0)+1)}function jh(e,t,i,a){let{i:n,v:o,$:r}=t;if(void 0!==o)return void jp(e,o,n,a);if(r)for(let t=0;t<i;t++){let i=r[t];if(i)if(Array.isArray(i))for(let t of i)jp(e,t.v,n,a);else jp(e,i.v,n,a)}}function jg(e,t){if(0===t.length)return;let i=Array.from(new Set(t)).sort((e,t)=>e-t);for(let t of i)!function(e,t){let i=e.docFieldCount.get(t);if(void 0===i)return;e.fieldCount-=i,e.docFieldCount.delete(t);let a=e.docTermFieldHits.get(t);if(a){for(let[t,i]of a){let a=(e.df.get(t)||0)-i;a<=0?e.df.delete(t):e.df.set(t,a)}e.docTermFieldHits.delete(t)}}(e,t);let a=e=>{let t=0,a=i.length;for(;t<a;){let n=t+a>>>1;i[n]<e?t=n+1:a=n}return e-t},n=i[0],o=new Map;for(let[t,i]of e.docFieldCount)o.set(t>n?a(t):t,i);e.docFieldCount=o;let r=new Map;for(let[t,i]of e.docTermFieldHits)r.set(t>n?a(t):t,i);e.docTermFieldHits=r}var jm=class{constructor(e,t,i){this.options={...FK,...t},this.options.useExtendedSearch,this.options.useTokenSearch,this._keyStore=new Fq(this.options.keys),this._docs=e,this._myIndex=null,this._invertedIndex=null,this.setCollection(e,i),this._lastQuery=null,this._lastSearcher=null}_getSearcher(e){if(this._lastQuery===e)return this._lastSearcher;let t=je(e,this._invertedIndex?{...this.options,_invertedIndex:this._invertedIndex}:this.options);return this._lastQuery=e,this._lastSearcher=t,t}setCollection(e,t){if(this._docs=e,t&&!(t instanceof FY))throw Error("Incorrect 'index' type");if(this._myIndex=t||FQ(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight}),this.options.useTokenSearch){let e=jd({isCaseSensitive:this.options.isCaseSensitive,ignoreDiacritics:this.options.ignoreDiacritics,tokenize:this.options.tokenize});this._invertedIndex=function(e,t,i){let a={fieldCount:0,df:new Map,docFieldCount:new Map,docTermFieldHits:new Map};for(let n of e)jh(a,n,t,i);return a}(this._myIndex.records,this._myIndex.keys.length,e)}this._invalidateSearcherCache()}add(e){if(!FF(e))return;this._docs.push(e);let t=this._myIndex.add(e,this._docs.length-1);if(this._invertedIndex&&t){var i;let e=jd({isCaseSensitive:this.options.isCaseSensitive,ignoreDiacritics:this.options.ignoreDiacritics,tokenize:this.options.tokenize});i=this._invertedIndex,jh(i,t,this._myIndex.keys.length,e)}this._invalidateSearcherCache()}remove(e=()=>!1){let t=[],i=[];for(let a=0,n=this._docs.length;a<n;a+=1)e(this._docs[a],a)&&(t.push(this._docs[a]),i.push(a));if(i.length){this._invertedIndex&&jg(this._invertedIndex,i);let e=new Set(i);this._docs=this._docs.filter((t,i)=>!e.has(i)),this._myIndex.removeAll(i),this._invalidateSearcherCache()}return t}removeAt(e){if(!Number.isInteger(e)||e<0||e>=this._docs.length)throw Error(FH);this._invertedIndex&&jg(this._invertedIndex,[e]);let t=this._docs.splice(e,1)[0];return this._myIndex.removeAt(e),this._invalidateSearcherCache(),t}_invalidateSearcherCache(){this._lastQuery=null,this._lastSearcher=null}getIndex(){return this._myIndex}_normalizedKeys(){return this._myIndex.keys.map(e=>this._keyStore.get(e.id)||e)}search(e,t){let i,{limit:a=-1}=t||{},{includeMatches:n,includeScore:o,shouldSort:r,sortFn:s,ignoreFieldNorm:l}=this.options;if(FP(e)&&!e.trim()){let e=this._docs.map((e,t)=>({item:e,refIndex:t}));return Fz(a)&&a>-1&&(e=e.slice(0,a)),e}let c=r&&Fz(a)&&a>0&&FP(e),d=(e,t)=>s(e,t)||e.idx-t.idx;if(c){let t=new js(a,d);FP(this._docs[0])?this._searchStringList(e,{heap:t,ignoreFieldNorm:l}):this._searchObjectList(e,{heap:t,ignoreFieldNorm:l}),i=t.extractSorted()}else!function(e,{ignoreFieldNorm:t=FK.ignoreFieldNorm}){e.forEach(e=>{e.score=jr(e.matches,{ignoreFieldNorm:t})})}(i=FP(e)?FP(this._docs[0])?this._searchStringList(e):this._searchObjectList(e):this._searchLogical(e),{ignoreFieldNorm:l}),r&&i.sort(FP(e)?d:s),Fz(a)&&a>-1&&(i=i.slice(0,a));return function(e,t,{includeMatches:i=FK.includeMatches,includeScore:a=FK.includeScore}={}){return e.map(e=>{let n,{idx:o}=e,r={item:t[o],refIndex:o};return i&&(n=[],e.matches.forEach(e=>{if(!FF(e.indices)||!e.indices.length)return;let t={indices:e.indices,value:e.value};e.key&&(t.key=e.key.id),e.idx>-1&&(t.refIndex=e.idx),n.push(t)}),r.matches=n),a&&(r.score=e.score),r})}(i,this._docs,{includeMatches:n,includeScore:o})}_searchStringList(e,{heap:t,ignoreFieldNorm:i}={}){let a=this._getSearcher(e),n=this.options.useTokenSearch&&"all"===this.options.tokenMatch,{records:o}=this._myIndex,r=t?null:[];return o.forEach(({v:e,i:o,n:s})=>{if(!FF(e))return;let l=a.searchIn(e);if(l.isMatch){let a={score:l.score,value:e,norm:s,indices:l.indices};n&&(a.matchedMask=l.matchedMask,a.matchedTerms=l.matchedTerms,a.termCount=l.termCount);let c=[a];if(!n||this._coversAllTokens(c)){let a={item:e,idx:o,matches:c};t?(a.score=jr(a.matches,{ignoreFieldNorm:i}),t.insert(a)):r.push(a)}}}),r}_searchLogical(e){let t=jo(e,this.options),i=this._normalizedKeys(),a=(e,t,n)=>{if(!("children"in e)){let a,{keyId:o,searcher:r}=e;return(null===o?(a=[],i.forEach((e,i)=>{a.push(...this._findMatches({key:e,value:t[i],searcher:r}))})):a=this._findMatches({key:this._keyStore.get(o),value:this._myIndex.getValueForItemAtKeyId(t,o),searcher:r}),a&&a.length)?[{idx:n,item:t,matches:a}]:[]}let{children:o,operator:r}=e,s=[];for(let e=0,i=o.length;e<i;e+=1){let i=a(o[e],t,n);if(i.length)s.push(...i);else if(r===jt)return[]}return s},n=this._myIndex.records,o=new Map,r=[];return n.forEach(({$:e,i:i})=>{if(FF(e)){let n=a(t,e,i);n.length&&(o.has(i)||(o.set(i,{idx:i,item:e,matches:[]}),r.push(o.get(i))),n.forEach(({matches:e})=>{o.get(i).matches.push(...e)}))}}),r}_searchObjectList(e,{heap:t,ignoreFieldNorm:i}={}){let a=this._getSearcher(e),n=this.options.useTokenSearch&&"all"===this.options.tokenMatch,{records:o}=this._myIndex,r=this._normalizedKeys(),s=t?null:[];return o.forEach(({$:e,i:o})=>{if(!FF(e))return;let l=[],c=!1,d=!1;if(r.forEach((t,i)=>{let n=this._findMatches({key:t,value:e[i],searcher:a});n.length?(l.push(...n),n[0].hasInverse&&(d=!0)):c=!0}),(!d||!c)&&l.length&&(!n||this._coversAllTokens(l))){let a={idx:o,item:e,matches:l};t?(a.score=jr(a.matches,{ignoreFieldNorm:i}),t.insert(a)):s.push(a)}}),s}_findMatches({key:e,value:t,searcher:i}){if(!FF(t))return[];let a=[];if(FL(t))t.forEach(({v:t,i:n,n:o})=>{if(!FF(t))return;let r=i.searchIn(t);if(r.isMatch){let i={score:r.score,key:e,value:t,idx:n,norm:o,indices:r.indices,hasInverse:r.hasInverse};void 0!==r.termCount&&(i.matchedMask=r.matchedMask,i.matchedTerms=r.matchedTerms,i.termCount=r.termCount),a.push(i)}});else{let{v:n,n:o}=t,r=i.searchIn(n);if(r.isMatch){let t={score:r.score,key:e,value:n,norm:o,indices:r.indices,hasInverse:r.hasInverse};void 0!==r.termCount&&(t.matchedMask=r.matchedMask,t.matchedTerms=r.matchedTerms,t.termCount=r.termCount),a.push(t)}}return a}_coversAllTokens(e){let t=e.length?e[0].termCount:void 0;if(void 0===t)return!0;if(t<=31){let i=0;for(let t=0;t<e.length;t++)i|=e[t].matchedMask||0;return i===2**t-1}let i=new Set;for(let t=0;t<e.length;t++){let a=e[t].matchedTerms;if(a)for(let e of a)i.add(e)}return i.size===t}};jm.version="7.5.0",jm.createIndex=FQ,jm.parseIndex=function(e,{getFn:t=FK.getFn,fieldNormWeight:i=FK.fieldNormWeight}={}){let{keys:a,records:n}=e,o=new FY({getFn:t,fieldNormWeight:i});return o.setKeys(a),o.setIndexRecords(n),o},jm.config=FK,jm.match=function(e,t,i){if(i&&i.useTokenSearch)throw Error("Fuse.match does not support useTokenSearch: token search requires corpus-level statistics (df, fieldCount) that a one-off string comparison does not have. Use new Fuse(...).search(...) instead.");return je(e,{...FK,...i}).searchIn(t)},jm.parseQuery=jo,F9(F8),F9(ju),jm.use=function(...e){e.forEach(e=>F9(e))};let jf=rg({open:re()}).strict(),jy=sf`:host{display:block}:host([filtered]){display:none}.item{font-family:var(--uas--typography--body-medium-font-family);font-size:var(--uas--typography--body-medium-font-size);line-height:var(--uas--typography--body-medium-line-height);font-weight:var(--uas--typography--body-medium-font-weight);letter-spacing:var(--uas--typography--body-medium-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;color:var(--uas--accordion--custom-content-color, var(--uas--accordion--content-color))}:host(:not(:last-child)) .item{border-bottom:1px solid var(--uas--accordion--custom-border-color, var(--uas--accordion--border-color))}.summary{display:grid;grid-template-columns:1fr auto;align-items:center;width:100%;margin:0;padding:0;background:var(--uas--accordion--custom-header-background, transparent);border:0;color:inherit;font:inherit;text-align:start;cursor:pointer}.summary[disabled]{cursor:default}.summary:focus-visible{outline:2px solid var(--uas--color--primary);outline-offset:-2px}.summary-content{padding:var(--uas--accordion--custom-header-padding, var(--uas--accordion--custom-item-padding, var(--uas--accordion--header-padding)))}.summary-toggle{display:flex;align-items:center;justify-content:center;padding:var(--uas--accordion--custom-header-padding, var(--uas--accordion--custom-item-padding, var(--uas--accordion--header-padding)));transition:transform var(--uas--base--transition)}:host([open]) .summary-toggle{transform:rotate(180deg)}.content-wrap{display:grid;grid-template-rows:0fr;transition:grid-template-rows var(--uas--base--transition)}:host([open]) .content-wrap{grid-template-rows:1fr}.content{overflow:hidden;min-height:0}.content-inner{border-top:var(--uas--accordion--custom-content-border-block-start, 1px solid var(--uas--accordion--custom-border-color, var(--uas--accordion--border-color)));background:var(--uas--accordion--custom-content-background, var(--uas--accordion--content-background));padding:var(--uas--accordion--custom-body-padding, var(--uas--accordion--custom-item-padding, var(--uas--accordion--body-padding)))}.content-inner.flush{padding:0;border-top:0}@media(prefers-reduced-motion: reduce){.content-wrap,.summary-toggle{transition:none}}`;var jb=function(e,t,i,a){var n,o=arguments.length,r=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(r=(o<3?n(r):o>3?n(t,i,r):n(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r};class jv extends ld{constructor(){super(...arguments),this.open=!1,this.disabled=!1,this.filtered=!1,this._hasRows=!1,this._bodyID=`uas-accordion-item-${lq()}`}render(){return s1` <div class="item"> <button id="${this._bodyID}-summary" class="summary" type="button" aria-expanded=${this.open?"true":"false"} aria-controls=${this._bodyID} ?disabled=${this.disabled} @click=${this._handleToggle} > <span class="summary-content"> <slot name="summary"></slot> </span> ${this.disabled?s3:s1` <span class="summary-toggle" aria-hidden="true"> <uas-icon code="angle-down"></uas-icon> </span> `} </button> <div class="content-wrap"> <div id=${this._bodyID} class="content" role="region" aria-labelledby="${this._bodyID}-summary" ?inert=${!this.open} > <div class="content-inner ${this._hasRows?"flush":""}"> <slot @slotchange=${this._handleSlotChange}></slot> </div> </div> </div> </div> `}async _handleToggle(){this.open=!this.open,await this.updateComplete,lw({element:this,eventName:"uas.accordion-item.toggled",data:{open:this.open},schema:jf,options:{bubbles:!0,composed:!0}})}_handleSlotChange(){this._hasRows=this._bodyElements.some(e=>"uas-accordion-item-li"===e.localName)}}jv.styles=jy,jb([l0({type:Boolean,reflect:!0})],jv.prototype,"open",void 0),jb([l0({type:Boolean,reflect:!0})],jv.prototype,"disabled",void 0),jb([l0({type:Boolean,reflect:!0})],jv.prototype,"filtered",void 0),jb([l2()],jv.prototype,"_hasRows",void 0),jb([l5()],jv.prototype,"_bodyElements",void 0),"u">typeof customElements&&!customElements.get("uas-accordion-item")&&customElements.define("uas-accordion-item",jv);let j_=rg({title:oR().optional(),keywords:rp(oR()).optional()}).strict(),jw=sf`:host{display:block}:host([filtered]){display:none}.row{font-family:var(--uas--typography--body-medium-font-family);font-size:var(--uas--typography--body-medium-font-size);line-height:var(--uas--typography--body-medium-line-height);font-weight:var(--uas--typography--body-medium-font-weight);letter-spacing:var(--uas--typography--body-medium-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;color:var(--uas--accordion--custom-content-color, var(--uas--accordion--content-color));display:flex;justify-content:space-between;gap:var(--uas--base--spacing-md);padding:var(--uas--accordion--custom-row-padding, var(--uas--accordion--custom-item-padding, var(--uas--accordion--row-padding)));background:var(--uas--accordion--custom-content-background, var(--uas--accordion--content-background));border-top:1px solid var(--uas--accordion--custom-border-color, var(--uas--accordion--border-color));transition:background var(--uas--base--transition);cursor:pointer}.row:hover{background:var(--uas--accordion--custom-content-background-hover, var(--uas--accordion--content-background-hover))}@media(prefers-reduced-motion: reduce){.row{transition:none}}`;var jx=function(e,t,i,a){var n,o=arguments.length,r=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(r=(o<3?n(r):o>3?n(t,i,r):n(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r};class jk extends ld{constructor(){super(...arguments),this.filtered=!1}willUpdate(e){void 0!==this.search&&lQ(this,"search",j_,e,"uas-accordion-item-li")}render(){return s1` <div class="row"> <div class="content"> <slot></slot> </div> <div class="chip"> <slot name="chip"></slot> </div> </div> `}}jk.styles=jw,jx([l0({type:Boolean,reflect:!0})],jk.prototype,"filtered",void 0),jx([l0({attribute:!1})],jk.prototype,"search",void 0),"u">typeof customElements&&!customElements.get("uas-accordion-item-li")&&customElements.define("uas-accordion-item-li",jk);let jE=rg({query:oR(),resultCount:o5()}).strict();rg({title:oR(),keywords:rp(oR()),item:rG(jv),row:rG(jk).optional()});let jS={keys:[{name:"title",weight:4},{name:"keywords",weight:8}],minMatchCharLength:1,threshold:.5},jC=sf`:host{display:block}.wrapper{font-family:var(--uas--typography--body-medium-font-family);font-size:var(--uas--typography--body-medium-font-size);line-height:var(--uas--typography--body-medium-line-height);font-weight:var(--uas--typography--body-medium-font-weight);letter-spacing:var(--uas--typography--body-medium-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;color:var(--uas--accordion--custom-content-color, var(--uas--accordion--content-color))}.search-status{position:absolute;inline-size:1px;block-size:1px;margin:-1px;padding:0;border:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.accordion{overflow:hidden;border:var(--uas--accordion--custom-border, var(--uas--accordion--border));border-radius:var(--uas--accordion--custom-border-radius, var(--uas--accordion--border-radius));background:var(--uas--accordion--custom-background, var(--uas--accordion--background))}:host([searchable]) .accordion{border-top:0;border-start-start-radius:0;border-start-end-radius:0}.search{position:relative;display:flex;align-items:center}.search-icon{position:absolute;inset-inline-start:var(--uas--base--spacing-sm);color:var(--uas--typography--color-tertiary);pointer-events:none}.search-input{font-family:var(--uas--typography--body-medium-font-family);font-size:var(--uas--typography--body-medium-font-size);line-height:var(--uas--typography--body-medium-line-height);font-weight:var(--uas--typography--body-medium-font-weight);letter-spacing:var(--uas--typography--body-medium-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;width:100%;box-sizing:border-box;padding:var(--uas--accordion--custom-search-padding, var(--uas--accordion--custom-item-padding, var(--uas--accordion--search-padding)));padding-inline-start:var(--uas--base--spacing-2xl);border:1px solid var(--uas--accordion--custom-border-color, var(--uas--accordion--border-color));border-start-start-radius:var(--uas--base--border-radius-md);border-start-end-radius:var(--uas--base--border-radius-md);border-end-start-radius:0;border-end-end-radius:0}.no-results{font-family:var(--uas--typography--body-small-font-family);font-size:var(--uas--typography--body-small-font-size);line-height:var(--uas--typography--body-small-line-height);font-weight:var(--uas--typography--body-small-font-weight);letter-spacing:var(--uas--typography--body-small-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;padding:var(--uas--accordion--custom-no-results-padding, var(--uas--accordion--custom-item-padding, var(--uas--accordion--no-results-padding)));background:var(--uas--accordion--custom-content-background, var(--uas--accordion--content-background))}.no-results-heading{font-weight:600}.no-results-description{color:var(--uas--typography--color-secondary)}`;var jT=function(e,t,i,a){var n,o=arguments.length,r=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(r=(o<3?n(r):o>3?n(t,i,r):n(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r};class jI extends ld{constructor(){super(...arguments),this.exclusive=!1,this.searchable=!1,this._hasResults=!0,this._searchStatus="",this._entries=[]}render(){return s1` <div class="wrapper" @uas.accordion-item.toggled=${this._handleItemToggled}> <div class="search-status" role="status" aria-live="polite">${this._searchStatus}</div> ${this._templateSearch} <div class="accordion"> ${this._templateNoResults} <slot @slotchange=${this._handleSlotChange}></slot> </div> </div> `}get _resolvedSearchPlaceholder(){return this.searchPlaceholder??RO._({id:"accordion.search",message:"Search"})}get _resolvedNoResultsHeading(){return this.noResultsHeading??RO._({id:"accordion.noResultsHeading",message:"No results found"})}get _resolvedNoResultsDescription(){return this.noResultsDescription??RO._({id:"accordion.noResultsDescription",message:"Try searching again"})}get _templateSearch(){return this.searchable?s1` <div class="search"> <uas-icon class="search-icon" code="magnifying-glass" aria-hidden="true"></uas-icon> <input class="search-input" type="search" part="search-input" placeholder=${this._resolvedSearchPlaceholder} aria-label=${this._resolvedSearchPlaceholder} @input=${this._handleSearchInput} > </div> `:s3}get _templateNoResults(){return this._hasResults?s3:s1` <div class="no-results"> <div class="no-results-heading">${this._resolvedNoResultsHeading}</div> <div class="no-results-description">${this._resolvedNoResultsDescription}</div> </div> `}_handleItemToggled(e){if(!this.exclusive||!(e instanceof CustomEvent))return;let t=e.detail;if("object"!=typeof t||null===t||!("open"in t)||!0!==t.open)return;let i=e.target;for(let e of this._items)e!==i&&(e.open=!1)}search(e=""){0===this._entries.length&&this._buildIndex();let t=e.trim();if(""===t){this._clearFilter(),this._searchStatus="",this._emitSearched(e,this._entries.length);return}let i=new jm(this._entries,jS).search(t);for(let e of(this._hasResults=i.length>0,this._searchStatus=i.length>0?RO._({id:"accordion.resultsFound",message:"{count, plural, one {# result found} other {# results found}}",values:{count:i.length}}):this._resolvedNoResultsHeading,this._items))for(let t of(e.filtered=!0,e.open=!1,this._rowsOf(e)))t.filtered=!0;for(let e of i){let{item:t,row:i}=e.item;t.filtered=!1,t.open=!0,i&&(i.filtered=!1)}this._emitSearched(e,i.length)}_handleSearchInput(e){e.target instanceof HTMLInputElement&&this.search(e.target.value)}_handleSlotChange(){this._entries=[]}_clearFilter(){for(let e of(this._hasResults=!0,this._items))for(let t of(e.filtered=!1,e.open=!1,this._rowsOf(e)))t.filtered=!1}_buildIndex(){let e=[];for(let t of this._items){let i=this._summaryText(t),a=this._rowsOf(t);if(0===a.length){e.push({title:i,keywords:[this._trimmedText(t)],item:t});continue}for(let n of a){let a=n.search?.title??this._trimmedText(n),o=[i,...n.search?.keywords??[]];e.push({title:a,keywords:o,item:t,row:n})}}this._entries=e}_summaryText(e){return this._trimmedText(e.querySelector('[slot="summary"]'))}_trimmedText(e){return(e?.textContent??"").trim()}_rowsOf(e){return Array.from(e.querySelectorAll("uas-accordion-item-li"))}_emitSearched(e,t){lw({element:this,eventName:"uas.accordion.searched",data:{query:e,resultCount:t},schema:jE,options:{bubbles:!0,composed:!0}})}}jI.styles=jC,jT([l0({type:Boolean})],jI.prototype,"exclusive",void 0),jT([l0({type:Boolean,reflect:!0})],jI.prototype,"searchable",void 0),jT([l0({type:String,attribute:"search-placeholder"})],jI.prototype,"searchPlaceholder",void 0),jT([l0({type:String,attribute:"no-results-heading"})],jI.prototype,"noResultsHeading",void 0),jT([l0({type:String,attribute:"no-results-description"})],jI.prototype,"noResultsDescription",void 0),jT([l5({selector:"uas-accordion-item"})],jI.prototype,"_items",void 0),jT([l2()],jI.prototype,"_hasResults",void 0),jT([l2()],jI.prototype,"_searchStatus",void 0),"u">typeof customElements&&!customElements.get("uas-accordion")&&customElements.define("uas-accordion",jI);let jD={BOTTOM_START:"bottom-start",BOTTOM_END:"bottom-end",TOP_START:"top-start",TOP_END:"top-end"},jA=rT(jD),j$=sf`:host{display:inline-block}.button-dropdown{position:relative}.button-dropdown-trigger{display:inline-flex;anchor-name:--button-dropdown-trigger}.button-dropdown-panel{--uas--button--custom-justify-content: flex-start;position:fixed;position-anchor:--button-dropdown-trigger;position-area:block-end span-inline-end;position-try-fallbacks:flip-block,flip-inline;margin:0;margin-block:var(--uas--button-dropdown--custom-distance-from-trigger, var(--uas--button-dropdown--distance-from-trigger));overflow:hidden;background:var(--uas--button-dropdown--custom-background, var(--uas--button-dropdown--background));border-radius:var(--uas--button-dropdown--custom-border-radius, var(--uas--button-dropdown--border-radius));box-shadow:var(--uas--button-dropdown--custom-shadow, var(--uas--button-dropdown--shadow));border:1px solid var(--uas--button-dropdown--custom-border-color, var(--uas--button-dropdown--border-color));flex-direction:column;min-width:var(--uas--button-dropdown--custom-min-width, var(--uas--button-dropdown--min-width));max-width:var(--uas--button-dropdown--custom-max-width, var(--uas--button-dropdown--max-width));padding:var(--uas--button-dropdown--custom-padding, var(--uas--button-dropdown--padding));opacity:0;transition:opacity var(--uas--button-dropdown--custom-transition, var(--uas--button-dropdown--transition)),transform var(--uas--button-dropdown--custom-transition, var(--uas--button-dropdown--transition)),overlay var(--uas--button-dropdown--custom-transition, var(--uas--button-dropdown--transition)) allow-discrete,display var(--uas--button-dropdown--custom-transition, var(--uas--button-dropdown--transition)) allow-discrete}.button-dropdown[placement=bottom-end] .button-dropdown-panel{position-area:block-end span-inline-start}.button-dropdown[placement=top-start] .button-dropdown-panel{position-area:block-start span-inline-end}.button-dropdown[placement=top-end] .button-dropdown-panel{position-area:block-start span-inline-start}.button-dropdown-panel:popover-open{display:flex;opacity:1;transform:translateY(0)}@starting-style{.button-dropdown-panel:popover-open{opacity:0;transform:translateY(-6px)}}@starting-style{.button-dropdown[placement^=top] .button-dropdown-panel:popover-open{opacity:0;transform:translateY(6px)}}@media(prefers-reduced-motion: reduce){.button-dropdown-panel{transition:none}}slot:not([name=trigger])::slotted(uas-button){--uas--button--size-custom-padding-left: var(--uas--base--spacing-xs);--uas--button--size-custom-padding-right: var(--uas--base--spacing-xs)}`;var jO=function(e,t,i,a){var n,o=arguments.length,r=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(r=(o<3?n(r):o>3?n(t,i,r):n(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r};class jR extends ld{constructor(){super(...arguments),this.placement=jD.BOTTOM_START,this._pointerOpenedPanel=!1,this._handleTriggerPointerDown=()=>{this._pointerOpenedPanel=this.$panel.matches(":popover-open")},this._handleTriggerClick=e=>{(0===e.detail?this.$panel.matches(":popover-open"):this._pointerOpenedPanel)?this.$panel.hidePopover():this.$panel.showPopover()}}render(){return s1` <div class="button-dropdown" placement=${this.placement}> <div class="button-dropdown-trigger" @pointerdown=${this._handleTriggerPointerDown} @click=${this._handleTriggerClick} > <slot name="trigger"></slot> </div> <div class="button-dropdown-panel" popover="auto" @click=${this._closeOnSelect} > <slot @slotchange=${this._applyButtonStyles}></slot> </div> </div> `}willUpdate(e){lQ(this,"placement",jA,e,"uas-button-dropdown")}_applyButtonStyles(){this.$panelButtons.forEach(e=>{e.setAttribute("color","transparent")})}_closeOnSelect(){this.$panel.hidePopover()}}jR.styles=j$,jO([l0({type:String,reflect:!0})],jR.prototype,"placement",void 0),jO([l4(".button-dropdown-panel")],jR.prototype,"$panel",void 0),jO([l5({selector:"uas-button"})],jR.prototype,"$panelButtons",void 0),"u">typeof customElements&&!customElements.get("uas-button-dropdown")&&customElements.define("uas-button-dropdown",jR),"u">typeof customElements&&!customElements.get("uo-button-dropdown")&&customElements.define("uo-button-dropdown",class extends jR{});var jM=a(8416);let jL="[A-Za-z$_][0-9A-Za-z$_]*",jN=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends","using"],jP=["true","false","null","undefined","NaN","Infinity"],jz=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],jU=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],jF=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],jj=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","self","global"],jB=[].concat(jF,jz,jU),jH="[A-Za-z$_][0-9A-Za-z$_]*",jV=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends","using"],jq=["true","false","null","undefined","NaN","Infinity"],jZ=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],jW=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],jG=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],jK=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","self","global"],jY=[].concat(jG,jZ,jW);function jQ(e){let t=e.regex,i=t.concat(/[\p{L}_]/u,t.optional(/[\p{L}0-9_.-]*:/u),/[\p{L}0-9_.-]*/u),a={className:"symbol",begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},n={begin:/\s/,contains:[{className:"keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},o=e.inherit(n,{begin:/\(/,end:/\)/}),r=e.inherit(e.APOS_STRING_MODE,{className:"string"}),s=e.inherit(e.QUOTE_STRING_MODE,{className:"string"}),l={endsWithParent:!0,illegal:/</,relevance:0,contains:[{className:"attr",begin:/[\p{L}0-9._:-]+/u,relevance:0},{begin:/=\s*/,relevance:0,contains:[{className:"string",endsParent:!0,variants:[{begin:/"/,end:/"/,contains:[a]},{begin:/'/,end:/'/,contains:[a]},{begin:/[^\s"'=<>`]+/}]}]}]};return{name:"HTML, XML",aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist","wsf","svg"],case_insensitive:!0,unicodeRegex:!0,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,relevance:10,contains:[n,s,r,o,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,contains:[n,o,s,r]}]}]},e.COMMENT(/<\x21--/,/--\x3e/,{relevance:10}),{begin:/<!\[CDATA\[/,end:/\]\]>/,relevance:10},a,{className:"meta",end:/\?>/,variants:[{begin:/<\?xml/,relevance:10,contains:[s]},{begin:/<\?[a-z][a-z0-9]+/}]},{className:"tag",begin:/<style(?=\s|>)/,end:/>/,keywords:{name:"style"},contains:[l],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:"css"}},{className:"tag",begin:/<script(?=\s|>)/,end:/>/,keywords:{name:"script"},contains:[l],starts:{end:/<\/script>/,returnEnd:!0,subLanguage:"javascript"}},{className:"tag",begin:/<>|<\/>/},{className:"tag",begin:t.concat(/</,t.lookahead(t.concat(i,t.either(/\/>/,/>/,/\s/)))),end:/\/?>/,contains:[{className:"name",begin:i,relevance:0,starts:l}]},{className:"tag",begin:t.concat(/<\//,t.lookahead(t.concat(i,/>/))),contains:[{className:"name",begin:i,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}}let jX={scope:"number",match:"([-+]?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)|NaN|[-+]?Infinity",relevance:0},jJ=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video","defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],j1=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),j0=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),j2=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),j3=["accent-color","align-content","align-items","align-self","alignment-baseline","all","anchor-name","animation","animation-composition","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-range","animation-range-end","animation-range-start","animation-timeline","animation-timing-function","appearance","aspect-ratio","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-end-end-radius","border-end-start-radius","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-align","box-decoration-break","box-direction","box-flex","box-flex-group","box-lines","box-ordinal-group","box-orient","box-pack","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","contain-intrinsic-block-size","contain-intrinsic-height","contain-intrinsic-inline-size","contain-intrinsic-size","contain-intrinsic-width","container","container-name","container-type","content","content-visibility","corner-bottom-left-shape","corner-bottom-right-shape","corner-shape","corner-top-left-shape","corner-top-right-shape","counter-increment","counter-reset","counter-set","cue","cue-after","cue-before","cursor","cx","cy","direction","display","dominant-baseline","empty-cells","enable-background","field-sizing","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-palette","font-size","font-size-adjust","font-smooth","font-smoothing","font-stretch","font-style","font-synthesis","font-synthesis-position","font-synthesis-small-caps","font-synthesis-style","font-synthesis-weight","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-emoji","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","forced-color-adjust","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphenate-character","hyphenate-limit-chars","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","initial-letter","initial-letter-align","inline-size","inset","inset-area","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","kerning","left","letter-spacing","lighting-color","line-break","line-height","line-height-step","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","margin-trim","marker","marker-end","marker-mid","marker-start","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","masonry-auto-flow","math-depth","math-shift","math-style","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-inline","overflow-wrap","overflow-x","overflow-y","overlay","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","paint-order","pause","pause-after","pause-before","perspective","perspective-origin","place-content","place-items","place-self","pointer-events","position","position-anchor","position-visibility","print-color-adjust","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","ruby-align","ruby-position","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scroll-timeline","scroll-timeline-axis","scroll-timeline-name","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","speak","speak-as","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","table-layout","text-align","text-align-all","text-align-last","text-anchor","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-size-adjust","text-transform","text-underline-offset","text-underline-position","text-wrap","text-wrap-mode","text-wrap-style","timeline-scope","top","touch-action","transform","transform-box","transform-origin","transform-style","transition","transition-behavior","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","unicode-range","user-modify","user-select","vector-effect","vertical-align","view-timeline","view-timeline-axis","view-timeline-inset","view-timeline-name","view-transition-name","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","white-space-collapse","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index","zoom"].sort().reverse(),j4=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video","defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],j6=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),j5=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),j8=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),j7=["accent-color","align-content","align-items","align-self","alignment-baseline","all","anchor-name","animation","animation-composition","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-range","animation-range-end","animation-range-start","animation-timeline","animation-timing-function","appearance","aspect-ratio","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-end-end-radius","border-end-start-radius","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-align","box-decoration-break","box-direction","box-flex","box-flex-group","box-lines","box-ordinal-group","box-orient","box-pack","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","contain-intrinsic-block-size","contain-intrinsic-height","contain-intrinsic-inline-size","contain-intrinsic-size","contain-intrinsic-width","container","container-name","container-type","content","content-visibility","corner-bottom-left-shape","corner-bottom-right-shape","corner-shape","corner-top-left-shape","corner-top-right-shape","counter-increment","counter-reset","counter-set","cue","cue-after","cue-before","cursor","cx","cy","direction","display","dominant-baseline","empty-cells","enable-background","field-sizing","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-palette","font-size","font-size-adjust","font-smooth","font-smoothing","font-stretch","font-style","font-synthesis","font-synthesis-position","font-synthesis-small-caps","font-synthesis-style","font-synthesis-weight","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-emoji","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","forced-color-adjust","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphenate-character","hyphenate-limit-chars","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","initial-letter","initial-letter-align","inline-size","inset","inset-area","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","kerning","left","letter-spacing","lighting-color","line-break","line-height","line-height-step","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","margin-trim","marker","marker-end","marker-mid","marker-start","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","masonry-auto-flow","math-depth","math-shift","math-style","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-inline","overflow-wrap","overflow-x","overflow-y","overlay","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","paint-order","pause","pause-after","pause-before","perspective","perspective-origin","place-content","place-items","place-self","pointer-events","position","position-anchor","position-visibility","print-color-adjust","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","ruby-align","ruby-position","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scroll-timeline","scroll-timeline-axis","scroll-timeline-name","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","speak","speak-as","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","table-layout","text-align","text-align-all","text-align-last","text-anchor","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-size-adjust","text-transform","text-underline-offset","text-underline-position","text-wrap","text-wrap-mode","text-wrap-style","timeline-scope","top","touch-action","transform","transform-box","transform-origin","transform-style","transition","transition-behavior","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","unicode-range","user-modify","user-select","vector-effect","vertical-align","view-timeline","view-timeline-axis","view-timeline-inset","view-timeline-name","view-transition-name","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","white-space-collapse","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index","zoom"].sort().reverse();function j9(e){let t=e.regex,i={};Object.assign(i,{className:"variable",variants:[{begin:t.concat(/\$[\w\d#@][\w\d_]*/,"(?![\\w\\d])(?![$])")},{begin:/\$\{/,end:/\}/,contains:["self",{begin:/:-/,contains:[i]}]}]});let a={className:"subst",begin:/\$\(/,end:/\)/,contains:[e.BACKSLASH_ESCAPE]},n=e.inherit(e.COMMENT(),{match:[/(^|\s)/,/#.*$/],scope:{2:"comment"}}),o={begin:/<<-?\s*(?=\w+)/,starts:{contains:[e.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,className:"string"})]}},r={className:"string",begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,i,a]};a.contains.push(r);let s={begin:/\$?\(\(/,end:/\)\)/,contains:[{begin:/\d+#[0-9a-f]+/,className:"number"},e.NUMBER_MODE,i]},l=e.SHEBANG({binary:"(fish|bash|zsh|sh|csh|ksh|tcsh|dash|scsh)",relevance:10}),c={className:"function",begin:/\w[\w\d_]*\s*\(\s*\)\s*\{/,returnBegin:!0,contains:[e.inherit(e.TITLE_MODE,{begin:/\w[\w\d_]*/})],relevance:0};return{name:"Bash",aliases:["sh","zsh"],keywords:{$pattern:/\b[a-z][a-z0-9._-]+\b/,keyword:["if","then","else","elif","fi","time","for","while","until","in","do","done","case","esac","coproc","function","select"],literal:["true","false"],built_in:["break","cd","continue","eval","exec","exit","export","getopts","hash","pwd","readonly","return","shift","test","times","trap","umask","unset","alias","bind","builtin","caller","command","declare","echo","enable","help","let","local","logout","mapfile","printf","read","readarray","source","sudo","type","typeset","ulimit","unalias","set","shopt","autoload","bg","bindkey","bye","cap","chdir","clone","comparguments","compcall","compctl","compdescribe","compfiles","compgroups","compquote","comptags","comptry","compvalues","dirs","disable","disown","echotc","echoti","emulate","fc","fg","float","functions","getcap","getln","history","integer","jobs","kill","limit","log","noglob","popd","print","pushd","pushln","rehash","sched","setcap","setopt","stat","suspend","ttyctl","unfunction","unhash","unlimit","unsetopt","vared","wait","whence","where","which","zcompile","zformat","zftp","zle","zmodload","zparseopts","zprof","zpty","zregexparse","zsocket","zstyle","ztcp","chcon","chgrp","chown","chmod","cp","dd","df","dir","dircolors","ln","ls","mkdir","mkfifo","mknod","mktemp","mv","realpath","rm","rmdir","shred","sync","touch","truncate","vdir","b2sum","base32","base64","cat","cksum","comm","csplit","cut","expand","fmt","fold","head","join","md5sum","nl","numfmt","od","paste","ptx","pr","sha1sum","sha224sum","sha256sum","sha384sum","sha512sum","shuf","sort","split","sum","tac","tail","tr","tsort","unexpand","uniq","wc","arch","basename","chroot","date","dirname","du","echo","env","expr","factor","groups","hostid","id","link","logname","nice","nohup","nproc","pathchk","pinky","printenv","printf","pwd","readlink","runcon","seq","sleep","stat","stdbuf","stty","tee","test","timeout","tty","uname","unlink","uptime","users","who","whoami","yes"]},contains:[l,e.SHEBANG(),c,s,n,o,{match:/(\/[a-z._-]+)+/},r,{match:/\\"/},{className:"string",begin:/'/,end:/'/},{match:/\\'/},i]}}let Be={JAVASCRIPT:"javascript",TYPESCRIPT:"typescript",HTML:"html",XML:"xml",JSON:"json",PHP:"php",CSS:"css",SCSS:"scss",SQL:"sql",PYTHON:"python",MARKDOWN:"markdown",BASH:"bash",SHELL:"shell",YAML:"yaml"},Bt=rT(Be),Bi={js:Be.JAVASCRIPT,mjs:Be.JAVASCRIPT,cjs:Be.JAVASCRIPT,jsx:Be.JAVASCRIPT,ts:Be.TYPESCRIPT,tsx:Be.TYPESCRIPT,py:Be.PYTHON,sh:Be.BASH,zsh:Be.BASH,yml:Be.YAML,md:Be.MARKDOWN,htm:Be.HTML},Ba=sf`pre code.hljs{display:block;overflow-x:auto;padding:1em}code.hljs{padding:3px 5px}/*! Theme: StackOverflow Light Description: Light theme as used on stackoverflow.com Author: stackoverflow.com Maintainer: @Hirse Website: https://github.com/StackExchange/Stacks License: MIT Updated: 2021-05-15 Updated for @stackoverflow/stacks v0.64.0 Code Blocks: /blob/v0.64.0/lib/css/components/_stacks-code-blocks.less Colors: /blob/v0.64.0/lib/css/exports/_stacks-constants-colors.less */.hljs{color:#2f3337;background:#f6f6f6}.hljs-subst{color:#2f3337}.hljs-comment{color:#656e77}.hljs-keyword,.hljs-selector-tag,.hljs-meta .hljs-keyword,.hljs-doctag,.hljs-section{color:#015692}.hljs-attr{color:#015692}.hljs-attribute{color:#803378}.hljs-name,.hljs-type,.hljs-number,.hljs-selector-id,.hljs-quote,.hljs-template-tag{color:#b75501}.hljs-selector-class{color:#015692}.hljs-string,.hljs-regexp,.hljs-symbol,.hljs-variable,.hljs-template-variable,.hljs-link,.hljs-selector-attr{color:#54790d}.hljs-meta,.hljs-selector-pseudo{color:#015692}.hljs-built_in,.hljs-title,.hljs-literal{color:#b75501}.hljs-bullet,.hljs-code{color:#535a60}.hljs-meta .hljs-string{color:#54790d}.hljs-deletion{color:#c02d2e}.hljs-addition{color:#2f6f44}.hljs-emphasis{font-style:italic}.hljs-strong{font-weight:bold}.code-viewer{font-size:var(--uas--code-viewer--custom-font-size, var(--uas--typography--body-medium-font-size));line-height:var(--uas--code-viewer--custom-line-height, var(--uas--typography--body-medium-line-height))}.code-viewer__content{background:#f6f6f6;border:1px solid var(--uas--color--border);border-radius:var(--uas--base--border-radius-md);overflow:hidden;position:relative}.code-viewer__content[collapsed]::after{content:"";position:absolute;bottom:0;left:0;right:0;height:60px;background:linear-gradient(to bottom, transparent, #f6f6f6);pointer-events:none}.code-viewer__content pre{margin:0;padding:var(--uas--code-viewer--custom-padding, var(--uas--base--spacing-md));white-space:pre-wrap}.code-viewer__content pre code{white-space:pre-wrap}.code-viewer__content pre .hljs{background:rgba(0,0,0,0);padding:0}.code-viewer__content[can-collapse]{border-bottom-left-radius:0;border-bottom-right-radius:0}.code-viewer__toggle-btn{border-bottom-left-radius:var(--uas--base--border-radius-md);border-bottom-right-radius:var(--uas--base--border-radius-md);border:1px solid var(--uas--color--border);border-top:0;font-weight:600;cursor:pointer;padding:var(--uas--base--spacing-sm) var(--uas--base--spacing-md);text-align:center;display:flex;align-items:center;justify-content:center}`;var Bn=function(e,t,i,a){var n,o=arguments.length,r=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(r=(o<3?n(r):o>3?n(t,i,r):n(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r};jM.registerLanguage("javascript",function(e){var t;let i=e.regex,a=/<[A-Za-z0-9\\._:-]+/,n=/\/[A-Za-z0-9\\._:-]+>|\/>/,o={$pattern:jL,keyword:jN,literal:jP,built_in:jB,"variable.language":jj},r="[0-9](_?[0-9])*",s=`\\.(${r})`,l="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",c={className:"number",variants:[{begin:`(\\b(${l})((${s})|\\.)?|(${s}))[eE][+-]?(${r})\\b`},{begin:`\\b(${l})\\b((${s})\\b|\\.)?|(${s})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},d={className:"subst",begin:"\\$\\{",end:"\\}",keywords:o,contains:[]},u={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,d],subLanguage:"xml"}},p={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,d],subLanguage:"css"}},h={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,d],subLanguage:"graphql"}},g={className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,d]},m={className:"comment",variants:[e.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:jL+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE]},f=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,u,p,h,g,{match:/\$\d+/},c];d.contains=f.concat({begin:/\{/,end:/\}/,keywords:o,contains:["self"].concat(f)});let y=[].concat(m,d.contains),b=y.concat([{begin:/(\s*)\(/,end:/\)/,keywords:o,contains:["self"].concat(y)}]),v={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:o,contains:b},_={variants:[{match:[/class/,/\s+/,jL,/\s+/,/extends/,/\s+/,i.concat(jL,"(",i.concat(/\./,jL),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,jL],scope:{1:"keyword",3:"title.class"}}]},w={relevance:0,match:i.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...jz,...jU]}},x={match:i.concat(/\b/,(t=[...jF,"super","import","await"].map(e=>`${e}\\s*\\(`),i.concat("(?!",t.join("|"),")")),jL,i.lookahead(/\s*\(/)),className:"title.function",relevance:0},k={begin:i.concat(/\./,i.lookahead(i.concat(jL,/(?![0-9A-Za-z$_(])/))),end:jL,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},E="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+e.UNDERSCORE_IDENT_RE+")\\s*=>",S={match:[/const|var|let/,/\s+/,jL,/\s*/,/=\s*/,/(async\s*)?/,i.lookahead(E)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[v]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:o,exports:{PARAMS_CONTAINS:b,CLASS_REFERENCE:w},illegal:/#(?![$_A-Za-z])/,contains:[e.SHEBANG({label:"shebang",binary:"node",relevance:5}),{label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,u,p,h,g,m,{match:/\$\d+/},c,w,{scope:"attr",match:jL+i.lookahead(":"),relevance:0},S,{begin:"("+e.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[m,e.REGEXP_MODE,{className:"function",begin:E,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:e.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:o,contains:b}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:"<>",end:"</>"},{match:/<[A-Za-z0-9\\._:-]+\s*\/>/},{begin:a,"on:begin":(e,t)=>{let i,a=e[0].length+e.index,n=e.input[a];if("<"===n||","===n)return void t.ignoreMatch();">"!==n||((e,{after:t})=>{let i="</"+e[0].slice(1);return -1!==e.input.indexOf(i,t)})(e,{after:a})||t.ignoreMatch();let o=e.input.substring(a);if((i=o.match(/^\s*=/))||(i=o.match(/^\s+extends\s+/))&&0===i.index)return void t.ignoreMatch()},end:n}],subLanguage:"xml",contains:[{begin:a,end:n,skip:!0,contains:["self"]}]}]},{variants:[{match:[/function/,/\s+/,jL,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[v],illegal:/%/},{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+e.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[v,e.inherit(e.TITLE_MODE,{begin:jL,className:"title.function"})]},{match:/\.\.\./,relevance:0},k,{match:"\\$"+jL,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[v]},x,{relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"},_,{match:[/get|set/,/\s+/,jL,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},v]},{match:/\$[(.]/}]}}),jM.registerLanguage("typescript",function(e){var t;let i,a,n,o,r,s,l,c,d,u,p,h,g,m,f,y,b,v,_,w,x,k,E,S,C,T=e.regex,I=(i=e.regex,a=/<[A-Za-z0-9\\._:-]+/,n=/\/[A-Za-z0-9\\._:-]+>|\/>/,o=(e,t)=>{let i,a=e[0].length+e.index,n=e.input[a];if("<"===n||","===n)return void t.ignoreMatch();">"!==n||((e,{after:t})=>{let i="</"+e[0].slice(1);return -1!==e.input.indexOf(i,t)})(e,{after:a})||t.ignoreMatch();let o=e.input.substring(a);if((i=o.match(/^\s*=/))||(i=o.match(/^\s+extends\s+/))&&0===i.index)return void t.ignoreMatch()},r={$pattern:jH,keyword:jV,literal:jq,built_in:jY,"variable.language":jK},s="[0-9](_?[0-9])*",l=`\\.(${s})`,c="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",d={className:"number",variants:[{begin:`(\\b(${c})((${l})|\\.)?|(${l}))[eE][+-]?(${s})\\b`},{begin:`\\b(${c})\\b((${l})\\b|\\.)?|(${l})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},u={className:"subst",begin:"\\$\\{",end:"\\}",keywords:r,contains:[]},p={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,u],subLanguage:"xml"}},h={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,u],subLanguage:"css"}},g={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,u],subLanguage:"graphql"}},m={className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,u]},f={className:"comment",variants:[e.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:jH+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE]},u.contains=(y=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,p,h,g,m,{match:/\$\d+/},d]).concat({begin:/\{/,end:/\}/,keywords:r,contains:["self"].concat(y)}),v=(b=[].concat(f,u.contains)).concat([{begin:/(\s*)\(/,end:/\)/,keywords:r,contains:["self"].concat(b)}]),_={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:r,contains:v},w={variants:[{match:[/class/,/\s+/,jH,/\s+/,/extends/,/\s+/,i.concat(jH,"(",i.concat(/\./,jH),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,jH],scope:{1:"keyword",3:"title.class"}}]},x={relevance:0,match:i.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...jZ,...jW]}},k={match:i.concat(/\b/,(t=[...jG,"super","import","await"].map(e=>`${e}\\s*\\(`),i.concat("(?!",t.join("|"),")")),jH,i.lookahead(/\s*\(/)),className:"title.function",relevance:0},E={begin:i.concat(/\./,i.lookahead(i.concat(jH,/(?![0-9A-Za-z$_(])/))),end:jH,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},S="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+e.UNDERSCORE_IDENT_RE+")\\s*=>",C={match:[/const|var|let/,/\s+/,jH,/\s*/,/=\s*/,/(async\s*)?/,i.lookahead(S)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[_]},{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:r,exports:{PARAMS_CONTAINS:v,CLASS_REFERENCE:x},illegal:/#(?![$_A-Za-z])/,contains:[e.SHEBANG({label:"shebang",binary:"node",relevance:5}),{label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,p,h,g,m,f,{match:/\$\d+/},d,x,{scope:"attr",match:jH+i.lookahead(":"),relevance:0},C,{begin:"("+e.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[f,e.REGEXP_MODE,{className:"function",begin:S,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:e.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:r,contains:v}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:"<>",end:"</>"},{match:/<[A-Za-z0-9\\._:-]+\s*\/>/},{begin:a,"on:begin":o,end:n}],subLanguage:"xml",contains:[{begin:a,end:n,skip:!0,contains:["self"]}]}]},{variants:[{match:[/function/,/\s+/,jH,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[_],illegal:/%/},{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+e.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[_,e.inherit(e.TITLE_MODE,{begin:jH,className:"title.function"})]},{match:/\.\.\./,relevance:0},E,{match:"\\$"+jH,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[_]},k,{relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"},w,{match:[/get|set/,/\s+/,jH,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},_]},{match:/\$[(.]/}]}),D=["any","void","number","boolean","string","object","never","symbol","bigint","unknown"],A={begin:[/namespace/,/\s+/,e.IDENT_RE],beginScope:{1:"keyword",3:"title.class"}},O={beginKeywords:"interface",end:/\{/,excludeEnd:!0,keywords:{keyword:"interface extends",built_in:D},contains:[I.exports.CLASS_REFERENCE]},R={$pattern:jH,keyword:jV.concat(["type","interface","public","private","protected","implements","declare","abstract","readonly","enum","override","satisfies"]),literal:jq,built_in:jY.concat(D),"variable.language":jK},M={className:"meta",begin:"@"+jH},L=(e,t,i)=>{let a=e.contains.findIndex(e=>e.label===t);if(-1===a)throw Error("can not find mode to replace");e.contains.splice(a,1,i)};Object.assign(I.keywords,R),I.exports.PARAMS_CONTAINS.push(M);let N=I.contains.find(e=>"attr"===e.scope),P=Object.assign({},N,{match:T.concat(jH,T.lookahead(/\s*\?:/))});return I.exports.PARAMS_CONTAINS.push([I.exports.CLASS_REFERENCE,N,P]),I.contains=I.contains.concat([M,A,O,P]),L(I,"shebang",e.SHEBANG()),L(I,"use_strict",{className:"meta",relevance:10,begin:/^\s*['"]use strict['"]/}),I.contains.find(e=>"func.def"===e.label).relevance=0,Object.assign(I,{name:"TypeScript",aliases:["ts","tsx","mts","cts"]}),I}),jM.registerLanguage("xml",jQ),jM.registerLanguage("html",jQ),jM.registerLanguage("json",function(e){let t=["true","false","null"],i={scope:"literal",beginKeywords:t.join(" ")};return{name:"JSON",aliases:["jsonc","json5"],keywords:{literal:t},contains:[{className:"attr",begin:/(("(\\.|[^\\"\r\n])*")|('(\\.|[^\\'\r\n])*'))(?=\s*:)/,relevance:1.01},{match:/[{}[\],:]/,className:"punctuation",relevance:0},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,i,jX,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE],illegal:"\\S"}}),jM.registerLanguage("php",function(e){let t,i=e.regex,a=/(?![A-Za-z0-9])(?![$])/,n=i.concat(/[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/,a),o=i.concat(/(\\?[A-Z][a-z0-9_\x7f-\xff]+|\\?[A-Z]+(?=[A-Z][a-z0-9_\x7f-\xff])){1,}/,a),r=i.concat(/[A-Z]+/,a),s={scope:"variable",match:"\\$+"+n},l={scope:"subst",variants:[{begin:/\$\w+/},{begin:/\{\$/,end:/\}/}]},c=e.inherit(e.APOS_STRING_MODE,{illegal:null}),d=e.inherit(e.QUOTE_STRING_MODE,{illegal:null,contains:e.QUOTE_STRING_MODE.contains.concat(l)}),u={begin:/<<<[ \t]*(?:(\w+)|"(\w+)")\n/,end:/[ \t]*(\w+)\b/,contains:e.QUOTE_STRING_MODE.contains.concat(l),"on:begin":(e,t)=>{t.data._beginMatch=e[1]||e[2]},"on:end":(e,t)=>{t.data._beginMatch!==e[1]&&t.ignoreMatch()}},p=e.END_SAME_AS_BEGIN({begin:/<<<[ \t]*'(\w+)'\n/,end:/[ \t]*(\w+)\b/}),h=`[ ]`,g={scope:"string",variants:[d,c,u,p]},m={scope:"number",variants:[{begin:"\\b0[bB][01]+(?:_[01]+)*\\b"},{begin:"\\b0[oO][0-7]+(?:_[0-7]+)*\\b"},{begin:"\\b0[xX][\\da-fA-F]+(?:_[\\da-fA-F]+)*\\b"},{begin:"(?:\\b\\d+(?:_\\d+)*(\\.(?:\\d+(?:_\\d+)*))?|\\B\\.\\d+)(?:[eE][+-]?\\d+)?"}],relevance:0},f=["false","null","true"],y=["__CLASS__","__DIR__","__FILE__","__FUNCTION__","__COMPILER_HALT_OFFSET__","__LINE__","__METHOD__","__NAMESPACE__","__TRAIT__","die","echo","exit","include","include_once","print","require","require_once","array","abstract","and","as","binary","bool","boolean","break","callable","case","catch","class","clone","const","continue","declare","default","do","double","else","elseif","empty","enddeclare","endfor","endforeach","endif","endswitch","endwhile","enum","eval","extends","final","finally","float","for","foreach","from","global","goto","if","implements","instanceof","insteadof","int","integer","interface","isset","iterable","list","match|0","mixed","new","never","object","or","private","protected","public","readonly","real","return","string","switch","throw","trait","try","unset","use","var","void","while","xor","yield"],b=["Error|0","AppendIterator","ArgumentCountError","ArithmeticError","ArrayIterator","ArrayObject","AssertionError","BadFunctionCallException","BadMethodCallException","CachingIterator","CallbackFilterIterator","CompileError","Countable","DirectoryIterator","DivisionByZeroError","DomainException","EmptyIterator","ErrorException","Exception","FilesystemIterator","FilterIterator","GlobIterator","InfiniteIterator","InvalidArgumentException","IteratorIterator","LengthException","LimitIterator","LogicException","MultipleIterator","NoRewindIterator","OutOfBoundsException","OutOfRangeException","OuterIterator","OverflowException","ParentIterator","ParseError","RangeException","RecursiveArrayIterator","RecursiveCachingIterator","RecursiveCallbackFilterIterator","RecursiveDirectoryIterator","RecursiveFilterIterator","RecursiveIterator","RecursiveIteratorIterator","RecursiveRegexIterator","RecursiveTreeIterator","RegexIterator","RuntimeException","SeekableIterator","SplDoublyLinkedList","SplFileInfo","SplFileObject","SplFixedArray","SplHeap","SplMaxHeap","SplMinHeap","SplObjectStorage","SplObserver","SplPriorityQueue","SplQueue","SplStack","SplSubject","SplTempFileObject","TypeError","UnderflowException","UnexpectedValueException","UnhandledMatchError","ArrayAccess","BackedEnum","Closure","Fiber","Generator","Iterator","IteratorAggregate","Serializable","Stringable","Throwable","Traversable","UnitEnum","WeakReference","WeakMap","Directory","__PHP_Incomplete_Class","parent","php_user_filter","self","static","stdClass"],v={keyword:y,literal:(t=[],f.forEach(e=>{t.push(e),e.toLowerCase()===e?t.push(e.toUpperCase()):t.push(e.toLowerCase())}),t),built_in:b},_=e=>e.map(e=>e.replace(/\|\d+$/,"")),w={variants:[{match:[/new/,i.concat(h,"+"),i.concat("(?!",_(b).join("\\b|"),"\\b)"),o],scope:{1:"keyword",4:"title.class"}}]},x=i.concat(n,"\\b(?!\\()"),k={variants:[{match:[i.concat(/::/,i.lookahead(/(?!class\b)/)),x],scope:{2:"variable.constant"}},{match:[/::/,/class/],scope:{2:"variable.language"}},{match:[o,i.concat(/::/,i.lookahead(/(?!class\b)/)),x],scope:{1:"title.class",3:"variable.constant"}},{match:[o,i.concat("::",i.lookahead(/(?!class\b)/))],scope:{1:"title.class"}},{match:[o,/::/,/class/],scope:{1:"title.class",3:"variable.language"}}]},E={scope:"attr",match:i.concat(n,i.lookahead(":"),i.lookahead(/(?!::)/))},S={relevance:0,begin:/\(/,end:/\)/,keywords:v,contains:[E,s,k,e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE,e.HASH_COMMENT_MODE,g,m,w]},C={relevance:0,match:[/\b/,i.concat("(?!fn\\b|function\\b|",_(y).join("\\b|"),"|",_(b).join("\\b|"),"\\b)"),n,i.concat(h,"*"),i.lookahead(/(?=\()/)],scope:{3:"title.function.invoke"},contains:[S]};S.contains.push(C);let T=[E,k,e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE,e.HASH_COMMENT_MODE,g,m,w],I={begin:i.concat(/#\[\s*\\?/,i.either(o,r)),beginScope:"meta",end:/]/,endScope:"meta",keywords:{literal:f,keyword:["new","array"]},contains:[{begin:/\[/,end:/]/,keywords:{literal:f,keyword:["new","array"]},contains:["self",...T]},...T,{scope:"meta",variants:[{match:o},{match:r}]}]};return{case_insensitive:!1,keywords:v,contains:[I,e.HASH_COMMENT_MODE,e.COMMENT("//","$"),e.COMMENT("/\\*","\\*/",{contains:[{scope:"doctag",match:"@[A-Za-z]+"}]}),{match:/__halt_compiler\(\);/,keywords:"__halt_compiler",starts:{scope:"comment",end:e.MATCH_NOTHING_RE,contains:[{match:/\?>/,scope:"meta",endsParent:!0}]}},{scope:"meta",variants:[{begin:/<\?php/,relevance:10},{begin:/<\?=/},{begin:/<\?/,relevance:.1},{begin:/\?>/}]},{scope:"variable.language",match:/\$this\b/},s,C,k,{match:[/const/,/\s/,n],scope:{1:"keyword",3:"variable.constant"}},w,{scope:"function",relevance:0,beginKeywords:"fn function",end:/[;{]/,excludeEnd:!0,illegal:"[$%\\[]",contains:[{beginKeywords:"use"},e.UNDERSCORE_TITLE_MODE,{begin:"=>",endsParent:!0},{scope:"params",begin:"\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0,keywords:v,contains:["self",I,s,k,e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE,e.HASH_COMMENT_MODE,g,m]}]},{scope:"class",variants:[{beginKeywords:"enum",illegal:/[($"]/},{beginKeywords:"class interface trait",illegal:/[:($"]/}],relevance:0,end:/\{/,excludeEnd:!0,contains:[{beginKeywords:"extends implements"},e.UNDERSCORE_TITLE_MODE]},{beginKeywords:"namespace",relevance:0,end:";",illegal:/[.']/,contains:[e.inherit(e.UNDERSCORE_TITLE_MODE,{scope:"title.class"})]},{beginKeywords:"use",relevance:0,end:";",contains:[{match:/\b(as|const|function)\b/,scope:"keyword"},e.UNDERSCORE_TITLE_MODE]},g,m]}}),jM.registerLanguage("css",function(e){let t=e.regex,i={IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:e.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},UNICODE_RANGE:{scope:"number",begin:/\b[Uu]\+[0-9A-Fa-f][0-9A-Fa-f?]{0,5}(-[0-9A-Fa-f][0-9A-Fa-f]{0,5})?/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:e.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}},a=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE];return{name:"CSS",case_insensitive:!0,illegal:/[=|'\$]/,keywords:{keyframePosition:"from to"},classNameAliases:{keyframePosition:"selector-tag"},contains:[i.BLOCK_COMMENT,{begin:/-(webkit|moz|ms|o)-(?=[a-z])/},i.CSS_NUMBER_MODE,{className:"selector-id",begin:/#[A-Za-z0-9_-]+/,relevance:0},{className:"selector-class",begin:"\\.[a-zA-Z-][a-zA-Z0-9_-]*",relevance:0},i.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",variants:[{begin:":("+j0.join("|")+")"},{begin:":(:)?("+j2.join("|")+")"}]},i.CSS_VARIABLE,{className:"attribute",begin:"\\b("+j3.join("|")+")\\b"},{begin:/:/,end:/[;}{]/,contains:[i.BLOCK_COMMENT,i.HEXCOLOR,i.IMPORTANT,i.CSS_NUMBER_MODE,i.UNICODE_RANGE,...a,{begin:/(url|data-uri)\(/,end:/\)/,relevance:0,keywords:{built_in:"url data-uri"},contains:[...a,{className:"string",begin:/[^)]/,endsWithParent:!0,excludeEnd:!0}]},i.FUNCTION_DISPATCH]},{begin:t.lookahead(/@/),end:"[{;]",relevance:0,illegal:/:/,contains:[{className:"keyword",begin:/@-?\w[\w]*(-\w+)*/},{begin:/\s/,endsWithParent:!0,excludeEnd:!0,relevance:0,keywords:{$pattern:/[a-z-]+/,keyword:"and or not only",attribute:j1.join(" ")},contains:[{begin:/[a-z-]+(?=:)/,className:"attribute"},...a,i.CSS_NUMBER_MODE]}]},{className:"selector-tag",begin:"\\b("+jJ.join("|")+")\\b"}]}}),jM.registerLanguage("scss",function(e){let t={IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:e.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},UNICODE_RANGE:{scope:"number",begin:/\b[Uu]\+[0-9A-Fa-f][0-9A-Fa-f?]{0,5}(-[0-9A-Fa-f][0-9A-Fa-f]{0,5})?/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:e.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}},i="@[a-z-]+",a={className:"variable",begin:"(\\$[a-zA-Z-][a-zA-Z0-9_-]*)\\b",relevance:0};return{name:"SCSS",case_insensitive:!0,illegal:"[=/|']",contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,t.CSS_NUMBER_MODE,{className:"selector-id",begin:"#[A-Za-z0-9_-]+",relevance:0},{className:"selector-class",begin:"\\.[A-Za-z0-9_-]+",relevance:0},t.ATTRIBUTE_SELECTOR_MODE,{className:"selector-tag",begin:"\\b("+j4.join("|")+")\\b",relevance:0},{className:"selector-pseudo",begin:":("+j5.join("|")+")"},{className:"selector-pseudo",begin:":(:)?("+j8.join("|")+")"},a,{begin:/\(/,end:/\)/,contains:[t.CSS_NUMBER_MODE]},t.CSS_VARIABLE,{className:"attribute",begin:"\\b("+j7.join("|")+")\\b"},{begin:"\\b(whitespace|wait|w-resize|visible|vertical-text|vertical-ideographic|uppercase|upper-roman|upper-alpha|underline|transparent|top|thin|thick|text|text-top|text-bottom|tb-rl|table-header-group|table-footer-group|sw-resize|super|strict|static|square|solid|small-caps|separate|se-resize|scroll|s-resize|rtl|row-resize|ridge|right|repeat|repeat-y|repeat-x|relative|progress|pointer|overline|outside|outset|oblique|nowrap|not-allowed|normal|none|nw-resize|no-repeat|no-drop|newspaper|ne-resize|n-resize|move|middle|medium|ltr|lr-tb|lowercase|lower-roman|lower-alpha|loose|list-item|line|line-through|line-edge|lighter|left|keep-all|justify|italic|inter-word|inter-ideograph|inside|inset|inline|inline-block|inherit|inactive|ideograph-space|ideograph-parenthesis|ideograph-numeric|ideograph-alpha|horizontal|hidden|help|hand|groove|fixed|ellipsis|e-resize|double|dotted|distribute|distribute-space|distribute-letter|distribute-all-lines|disc|disabled|default|decimal|dashed|crosshair|collapse|col-resize|circle|char|center|capitalize|break-word|break-all|bottom|both|bolder|bold|block|bidi-override|below|baseline|auto|always|all-scroll|absolute|table|table-cell)\\b"},{begin:/:/,end:/[;}{]/,relevance:0,contains:[t.BLOCK_COMMENT,a,t.HEXCOLOR,t.CSS_NUMBER_MODE,t.UNICODE_RANGE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,t.IMPORTANT,t.FUNCTION_DISPATCH]},{begin:"@(page|font-face)",keywords:{$pattern:i,keyword:"@page @font-face"}},{begin:"@",end:"[{;]",returnBegin:!0,keywords:{$pattern:/[a-z-]+/,keyword:"and or not only",attribute:j6.join(" ")},contains:[{begin:i,className:"keyword"},{begin:/[a-z-]+(?=:)/,className:"attribute"},a,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,t.HEXCOLOR,t.CSS_NUMBER_MODE]},t.FUNCTION_DISPATCH]}}),jM.registerLanguage("sql",function(e){let t=e.regex,i=e.COMMENT("--","$"),a=["abs","acos","array_agg","asin","atan","avg","cast","ceil","ceiling","coalesce","corr","cos","cosh","count","covar_pop","covar_samp","cume_dist","dense_rank","deref","element","exp","extract","first_value","floor","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","last_value","lead","listagg","ln","log","log10","lower","max","min","mod","nth_value","ntile","nullif","percent_rank","percentile_cont","percentile_disc","position","position_regex","power","rank","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","row_number","sin","sinh","sqrt","stddev_pop","stddev_samp","substring","substring_regex","sum","tan","tanh","translate","translate_regex","treat","trim","trim_array","unnest","upper","value_of","var_pop","var_samp","width_bucket"],n=["abs","acos","all","allocate","alter","and","any","are","array","array_agg","array_max_cardinality","as","asensitive","asin","asymmetric","at","atan","atomic","authorization","avg","begin","begin_frame","begin_partition","between","bigint","binary","blob","boolean","both","by","call","called","cardinality","cascaded","case","cast","ceil","ceiling","char","char_length","character","character_length","check","classifier","clob","close","coalesce","collate","collect","column","commit","condition","connect","constraint","contains","convert","copy","corr","corresponding","cos","cosh","count","covar_pop","covar_samp","create","cross","cube","cume_dist","current","current_catalog","current_date","current_default_transform_group","current_path","current_role","current_row","current_schema","current_time","current_timestamp","current_path","current_role","current_transform_group_for_type","current_user","cursor","cycle","date","day","deallocate","dec","decimal","decfloat","declare","default","define","delete","dense_rank","deref","describe","deterministic","disconnect","distinct","double","drop","dynamic","each","element","else","empty","end","end_frame","end_partition","end-exec","equals","escape","every","except","exec","execute","exists","exp","external","extract","false","fetch","filter","first_value","float","floor","for","foreign","frame_row","free","from","full","function","fusion","get","global","grant","group","grouping","groups","having","hold","hour","identity","in","indicator","initial","inner","inout","insensitive","insert","int","integer","intersect","intersection","interval","into","is","join","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","language","large","last_value","lateral","lead","leading","left","like","like_regex","listagg","ln","local","localtime","localtimestamp","log","log10","lower","match","match_number","match_recognize","matches","max","member","merge","method","min","minute","mod","modifies","module","month","multiset","national","natural","nchar","nclob","new","no","none","normalize","not","nth_value","ntile","null","nullif","numeric","octet_length","occurrences_regex","of","offset","old","omit","on","one","only","open","or","order","out","outer","over","overlaps","overlay","parameter","partition","pattern","per","percent","percent_rank","percentile_cont","percentile_disc","period","portion","position","position_regex","power","precedes","precision","prepare","primary","procedure","ptf","range","rank","reads","real","recursive","ref","references","referencing","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","release","result","return","returns","revoke","right","rollback","rollup","row","row_number","rows","running","savepoint","scope","scroll","search","second","seek","select","sensitive","session_user","set","show","similar","sin","sinh","skip","smallint","some","specific","specifictype","sql","sqlexception","sqlstate","sqlwarning","sqrt","start","static","stddev_pop","stddev_samp","submultiset","subset","substring","substring_regex","succeeds","sum","symmetric","system","system_time","system_user","table","tablesample","tan","tanh","then","time","timestamp","timezone_hour","timezone_minute","to","trailing","translate","translate_regex","translation","treat","trigger","trim","trim_array","true","truncate","uescape","union","unique","unknown","unnest","update","upper","user","using","value","values","value_of","var_pop","var_samp","varbinary","varchar","varying","versioning","when","whenever","where","width_bucket","window","with","within","without","year","add","asc","collation","desc","final","first","last","view"].filter(e=>!a.includes(e)),o={match:t.concat(/\b/,t.either(...a),/\s*\(/),relevance:0,keywords:{built_in:a}};function r(e){return t.concat(/\b/,t.either(...e.map(e=>e.replace(/\s+/,"\\s+"))),/\b/)}let s={scope:"keyword",match:r(["create table","insert into","primary key","foreign key","not null","alter table","add constraint","grouping sets","on overflow","character set","respect nulls","ignore nulls","nulls first","nulls last","depth first","breadth first"]),relevance:0};return{name:"SQL",case_insensitive:!0,illegal:/[{}]|<\//,keywords:{$pattern:/\b[\w\.]+/,keyword:function(e,{exceptions:t,when:i}={}){return t=t||[],e.map(e=>e.match(/\|\d+$/)||t.includes(e)?e:i(e)?`${e}|0`:e)}(n,{when:e=>e.length<3}),literal:["true","false","unknown"],type:["bigint","binary","blob","boolean","char","character","clob","date","dec","decfloat","decimal","float","int","integer","interval","nchar","nclob","national","numeric","real","row","smallint","time","timestamp","varchar","varying","varbinary"],built_in:["current_catalog","current_date","current_default_transform_group","current_path","current_role","current_schema","current_transform_group_for_type","current_user","session_user","system_time","system_user","current_time","localtime","current_timestamp","localtimestamp"]},contains:[{scope:"type",match:r(["double precision","large object","with timezone","without timezone"])},s,o,{scope:"variable",match:/@[a-z0-9][a-z0-9_]*/},{scope:"string",variants:[{begin:/'/,end:/'/,contains:[{match:/''/}]}]},{begin:/"/,end:/"/,contains:[{match:/""/}]},e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE,i,{scope:"operator",match:/[-+*/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?/,relevance:0}]}}),jM.registerLanguage("python",function(e){let t=e.regex,i=/[\p{XID_Start}_]\p{XID_Continue}*/u,a=["and","as","assert","async","await","break","case","class","continue","def","del","elif","else","except","finally","for","from","global","if","import","in","is","lambda","lazy","match","nonlocal|10","not","or","pass","raise","return","try","while","with","yield"],n={$pattern:/[A-Za-z]\w+|__\w+__/,keyword:a,built_in:["__import__","abs","aiter","all","anext","any","ascii","bin","bool","breakpoint","bytearray","bytes","callable","chr","classmethod","compile","complex","delattr","dict","dir","divmod","enumerate","eval","exec","filter","float","format","frozendict","frozenset","getattr","globals","hasattr","hash","help","hex","id","input","int","isinstance","issubclass","iter","len","list","locals","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","range","repr","reversed","round","sentinel","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","vars","zip"],literal:["__debug__","Ellipsis","False","None","NotImplemented","True"],type:["Any","Callable","Coroutine","Dict","List","Literal","Generic","Optional","Sequence","Set","Tuple","Type","Union"]},o={className:"meta",begin:/^(>>>|\.\.\.) /},r={className:"subst",begin:/\{/,end:/\}/,keywords:n,illegal:/#/},s={begin:/\{\{/,relevance:0},l={className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?'''/,end:/'''/,contains:[e.BACKSLASH_ESCAPE,o],relevance:10},{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,o],relevance:10},{begin:/([fFtT][rR]|[rR][fFtT]|[fFtT])'''/,end:/'''/,contains:[e.BACKSLASH_ESCAPE,o,s,r]},{begin:/([fFtT][rR]|[rR][fFtT]|[fFtT])"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,o,s,r]},{begin:/([uU]|[rR])'/,end:/'/,relevance:10},{begin:/([uU]|[rR])"/,end:/"/,relevance:10},{begin:/([bB]|[bB][rR]|[rR][bB])'/,end:/'/},{begin:/([bB]|[bB][rR]|[rR][bB])"/,end:/"/},{begin:/([fFtT][rR]|[rR][fFtT]|[fFtT])'/,end:/'/,contains:[e.BACKSLASH_ESCAPE,s,r]},{begin:/([fFtT][rR]|[rR][fFtT]|[fFtT])"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,s,r]},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},c="[0-9](_?[0-9])*",d=`(\\b(${c}))?\\.(${c})|\\b(${c})\\.`,u=`\\b|${a.join("|")}`,p={className:"number",relevance:0,variants:[{begin:`(\\b(${c})|(${d}))[eE][+-]?(${c})[jJ]?(?=${u})`},{begin:`(${d})[jJ]?`},{begin:`\\b([1-9](_?[0-9])*|0+(_?0)*)[lLjJ]?(?=${u})`},{begin:`\\b0[bB](_?[01])+[lL]?(?=${u})`},{begin:`\\b0[oO](_?[0-7])+[lL]?(?=${u})`},{begin:`\\b0[xX](_?[0-9a-fA-F])+[lL]?(?=${u})`},{begin:`\\b(${c})[jJ](?=${u})`}]},h={className:"comment",begin:t.lookahead(/# type:/),end:/$/,keywords:n,contains:[{begin:/# type:/},{begin:/#/,end:/\b\B/,endsWithParent:!0}]},g={className:"params",variants:[{className:"",begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:n,contains:["self",o,p,l,e.HASH_COMMENT_MODE]}]};return r.contains=[l,p,o],{name:"Python",aliases:["py","gyp","ipython"],unicodeRegex:!0,keywords:n,illegal:/(<\/|\?)|=>/,contains:[o,p,{scope:"variable.language",match:/\bself\b/},{beginKeywords:"if",relevance:0},{match:/\bor\b/,scope:"keyword"},l,h,e.HASH_COMMENT_MODE,{match:[/\bdef/,/\s+/,i],scope:{1:"keyword",3:"title.function"},contains:[g]},{variants:[{match:[/\bclass/,/\s+/,i,/\s*/,/\(\s*/,i,/\s*\)/]},{match:[/\bclass/,/\s+/,i]}],scope:{1:"keyword",3:"title.class",6:"title.class.inherited"}},{className:"meta",begin:/^[\t ]*@/,end:/(?=#)|$/,contains:[p,g,l]}]}}),jM.registerLanguage("markdown",function(e){let t=e.regex,i={begin:/<\/?[A-Za-z_]/,end:">",subLanguage:"xml",relevance:0},a={variants:[{begin:/\[.+?\]\[.*?\]/,relevance:0},{begin:/\[.+?\]\(((data|javascript|mailto):|(?:http|ftp)s?:\/\/).*?\)/,relevance:2},{begin:t.concat(/\[.+?\]\(/,/[A-Za-z][A-Za-z0-9+.-]*/,/:\/\/.*?\)/),relevance:2},{begin:/\[.+?\]\([./?&#].*?\)/,relevance:1},{begin:/\[.*?\]\(.*?\)/,relevance:0}],returnBegin:!0,contains:[{match:/\[(?=\])/},{className:"string",relevance:0,begin:"\\[",end:"\\]",excludeBegin:!0,returnEnd:!0},{className:"link",relevance:0,begin:"\\]\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0},{className:"symbol",relevance:0,begin:"\\]\\[",end:"\\]",excludeBegin:!0,excludeEnd:!0}]},n={className:"strong",contains:[],variants:[{begin:/_{2}(?!\s)/,end:/_{2}/},{begin:/\*{2}(?!\s)/,end:/\*{2}/}]},o={className:"emphasis",contains:[],variants:[{begin:/\*(?![*\s])/,end:/\*/},{begin:/_(?![_\s])/,end:/_/,relevance:0}]},r=e.inherit(n,{contains:[]}),s=e.inherit(o,{contains:[]});n.contains.push(s),o.contains.push(r);let l=[i,a];return[n,o,r,s].forEach(e=>{e.contains=e.contains.concat(l)}),{name:"Markdown",aliases:["md","mkdown","mkd"],contains:[{className:"section",variants:[{begin:"^#{1,6}",end:"$",contains:l=l.concat(n,o)},{begin:"(?=^.+?\\n[=-]{2,}$)",contains:[{begin:"^[=-]*$"},{begin:"^",end:"\\n",contains:l}]}]},i,{className:"bullet",begin:"^[ ]*([*+-]|(\\d+\\.))(?=\\s+)",end:"\\s+",excludeEnd:!0},{match:/^ {0,3}([-*_])[ \t]*(?:\1[ \t]*){2,}$/},n,o,{className:"quote",begin:"^>\\s+",contains:l,end:"$"},{className:"code",variants:[{begin:"(`{3,})[^`](.|\\n)*?\\1`*[ ]*"},{begin:"(~{3,})[^~](.|\\n)*?\\1~*[ ]*"},{begin:"```",end:"```+[ ]*$"},{begin:"~~~",end:"~~~+[ ]*$"},{begin:"`.+?`"},{begin:"(?=^( {4}|\\t))",contains:[{begin:"^( {4}|\\t)",end:"(\\n)$"}],relevance:0}]},a,{begin:/^\[[^\n]+\]:/,returnBegin:!0,contains:[{className:"symbol",begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0},{className:"link",begin:/:\s*/,end:/$/,excludeBegin:!0}]},{scope:"literal",match:/&([a-zA-Z0-9]+|#[0-9]{1,7}|#[Xx][0-9a-fA-F]{1,6});/}]}}),jM.registerLanguage("bash",j9),jM.registerLanguage("shell",j9),jM.registerLanguage("yaml",function(e){let t="true false yes no null",i="[\\w#;/?:@&=+$,.~*'()[\\]]+",a={className:"string",relevance:0,variants:[{begin:/"/,end:/"/},{begin:/\S+/}],contains:[e.BACKSLASH_ESCAPE,{className:"template-variable",variants:[{begin:/\{\{/,end:/\}\}/},{begin:/%\{/,end:/\}/}]}]},n=e.inherit(a,{variants:[{begin:/'/,end:/'/,contains:[{begin:/''/,relevance:0}]},{begin:/"/,end:/"/},{begin:/[^\s,{}[\]]+/}]}),o={end:",",endsWithParent:!0,excludeEnd:!0,keywords:t,relevance:0},r=[{className:"attr",variants:[{begin:/[\w*@][\w*@ :()\./-]*:(?=[ \t]|$)/},{begin:/"[\w*@][\w*@ :()\./-]*":(?=[ \t]|$)/},{begin:/'[\w*@][\w*@ :()\./-]*':(?=[ \t]|$)/}]},{className:"meta",begin:"^---\\s*$",relevance:10},{className:"string",begin:"[\\|>]([1-9]?[+-])?[ ]*\\n( +)[^ ][^\\n]*\\n(\\2[^\\n]+\\n?)*"},{begin:"<%[%=-]?",end:"[%-]?%>",subLanguage:"ruby",excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:"!\\w+!"+i},{className:"type",begin:"!<"+i+">"},{className:"type",begin:"!"+i},{className:"type",begin:"!!"+i},{className:"meta",begin:"&"+e.UNDERSCORE_IDENT_RE+"$"},{className:"meta",begin:"\\*"+e.UNDERSCORE_IDENT_RE+"$"},{className:"bullet",begin:"-(?=[ ]|$)",relevance:0},e.HASH_COMMENT_MODE,{beginKeywords:t,keywords:{literal:t}},{className:"number",begin:"\\b[0-9]{4}(-[0-9][0-9]){0,2}([Tt \\t][0-9][0-9]?(:[0-9][0-9]){2})?(\\.[0-9]*)?([ \\t])*(Z|[-+][0-9][0-9]?(:[0-9][0-9])?)?\\b"},{className:"number",begin:e.C_NUMBER_RE+"\\b",relevance:0},{begin:/\{/,end:/\}/,contains:[o],illegal:"\\n",relevance:0},{begin:"\\[",end:"\\]",contains:[o],illegal:"\\n",relevance:0},{className:"string",relevance:0,begin:/'/,end:/'/,contains:[{match:/''/,scope:"char.escape",relevance:0}]},a],s=[...r];return s.pop(),s.push(n),o.contains=s,{name:"YAML",case_insensitive:!0,aliases:["yml"],contains:r}});class Bo extends ld{constructor(){super(...arguments),this.code="",this.maxLines=10,this._isCollapsed=!0,this._hasHighlighted=!1,this._processedCode=""}willUpdate(e){let t,i;e.has("language")&&"string"==typeof this.language&&(this.language=(t=this.language.toLowerCase(),(i=Bt.safeParse(t)).success?i.data:t in Bi?Bi[t]:void 0)),lQ(this,"language",Bt,e,"uas-code-viewer"),(e.has("code")||e.has("language"))&&(this._processedCode=this._processCode(this.code))}_processCode(e){let t=e;if("json"===this.language)try{let e=JSON.parse(t);t=JSON.stringify(e,null,2)}catch{}return t}_getHighlightedCode(){if(!this._hasHighlighted)return this._processedCode;try{if(this.language)return jM.highlight(this._processedCode,{language:this.language}).value;return jM.highlightAuto(this._processedCode).value}catch{return this._processedCode}}_handleMouseEnter(){this._hasHighlighted||(this._hasHighlighted=!0)}_handleToggleCollapse(){this._isCollapsed=!this._isCollapsed}get _lineCount(){return this._processedCode.split(/\r\n|\r|\n/).length}get _canCollapse(){return this._lineCount>this.maxLines}get _hiddenLineCount(){return Math.max(0,this._lineCount-this.maxLines)}_expandLabel(e){let t=1===e?this.expandTextSingular:this.expandTextPlural;return void 0!==t?t.replace("%d",String(e)):RO._({id:"codeViewer.showMore",message:"{count, plural, one {Show # more line} other {Show # more lines}}",values:{count:e}})}_renderToggleButton(){if(!this._canCollapse)return;let e=this._isCollapsed?this._expandLabel(this._hiddenLineCount):this.collapseText??RO._({id:"codeViewer.showLess",message:"Show less"});return s1` <div class="code-viewer__toggle-btn" @click=${this._handleToggleCollapse} tabindex="0" > ${e} </div> `}render(){let e=this._isCollapsed&&this._canCollapse?`${(this.maxLines+1)*1.25}em`:"none";return s1` <div class="code-viewer" @mouseenter=${this._handleMouseEnter}> <div class="code-viewer__content" style="max-height: ${e}" ?collapsed=${this._isCollapsed&&this._canCollapse} ?can-collapse=${this._canCollapse} > <pre><code class="hljs">${this._hasHighlighted?d5(this._getHighlightedCode()):this._processedCode}</code></pre> </div> ${this._renderToggleButton()} </div> `}}Bo.styles=Ba,Bn([l0({type:String})],Bo.prototype,"language",void 0),Bn([l0({type:String})],Bo.prototype,"code",void 0),Bn([l0({type:Number,attribute:"max-lines"})],Bo.prototype,"maxLines",void 0),Bn([l0({type:String,attribute:"expand-text-singular"})],Bo.prototype,"expandTextSingular",void 0),Bn([l0({type:String,attribute:"expand-text-plural"})],Bo.prototype,"expandTextPlural",void 0),Bn([l0({type:String,attribute:"collapse-text"})],Bo.prototype,"collapseText",void 0),Bn([l2()],Bo.prototype,"_isCollapsed",void 0),Bn([l2()],Bo.prototype,"_hasHighlighted",void 0),Bn([l2()],Bo.prototype,"_processedCode",void 0),"u">typeof customElements&&!customElements.get("uas-code-viewer")&&customElements.define("uas-code-viewer",Bo);let Br=sf`:host{display:block}.content{position:relative;width:100%;height:100%;display:flex;align-items:center;justify-content:center}.graph{position:relative}svg.lines{position:absolute;top:0;left:0;pointer-events:none}.node{color:var(--uas--hub-spoke-graph--custom-node-color, var(--uas--hub-spoke-graph--node-color));position:absolute;border-radius:50%;overflow:hidden;display:flex;align-items:center;justify-content:center;background:var(--uas--color--surface);z-index:1}`;var Bs=function(e,t,i,a){var n,o=arguments.length,r=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(r=(o<3?n(r):o>3?n(t,i,r):n(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r};class Bl extends ld{constructor(){super(...arguments),this.centerItem=s1``,this.peripheralItems=[],this.radius=105,this.nodeDiameter=60,this.lineWidth=5,this.lineColor="#f5f7fb"}render(){let e=Math.max(this.peripheralItems.length,1),t=this.calculateContainerSize(),i=this.calculateCenterCoord(t),a=this.calculateAngleStep(e),n=this.nodeDiameter/2;return s1` <div class="content"> <div class="graph" style="width:${t}px; height:${t}px"> ${this.renderLines(i,a)} ${this.renderPeripheralNodes(i,a,n)} ${this.renderCenterNode(i,n)} </div> </div> `}calculateContainerSize(){return 2*this.radius+this.nodeDiameter}calculateCenterCoord(e){return e/2}calculateAngleStep(e){return 2*Math.PI/e}calculateNodePosition(e,t,i){let a=e*i-Math.PI/2;return{x:t+this.radius*Math.cos(a),y:t+this.radius*Math.sin(a)}}renderLines(e,t){let i=this.calculateContainerSize();return s0` <svg class="lines" width="${i}" height="${i}"> ${this.peripheralItems.map((i,a)=>{let{x:n,y:o}=this.calculateNodePosition(a,e,t);return s0` <line x1="${e}" y1="${e}" x2="${n}" y2="${o}" stroke="${this.lineColor}" stroke-width="${this.lineWidth}" ></line> `})} </svg> `}renderPeripheralNodes(e,t,i){return this.peripheralItems.map((a,n)=>{let o=this.calculateNodePosition(n,e,t);return s1` <div class="node peripheral" style=" width:${this.nodeDiameter}px; height:${this.nodeDiameter}px; top:${o.y-i}px; left:${o.x-i}px; " > ${a} </div> `})}renderCenterNode(e,t){return s1` <div class="node center" style=" width:${this.nodeDiameter}px; height:${this.nodeDiameter}px; top:${e-t}px; left:${e-t}px; " > ${this.centerItem} </div> `}}Bl.styles=Br,Bs([l0({type:Object})],Bl.prototype,"centerItem",void 0),Bs([l0({type:Array})],Bl.prototype,"peripheralItems",void 0),Bs([l0({type:Number})],Bl.prototype,"radius",void 0),Bs([l0({type:Number})],Bl.prototype,"nodeDiameter",void 0),Bs([l0({type:Number})],Bl.prototype,"lineWidth",void 0),Bs([l0({type:String})],Bl.prototype,"lineColor",void 0),"u">typeof customElements&&!customElements.get("uas-hub-spoke-graph")&&customElements.define("uas-hub-spoke-graph",Bl),"u">typeof customElements&&!customElements.get("uo-hub-spoke-graph")&&customElements.define("uo-hub-spoke-graph",class extends Bl{});let Bc=new Map,Bd=new Map,Bu=new Map;function Bp(e){let t=Bc.get(e)??[],i=0;t.forEach((e,t)=>{e.setStackPlacement(i,t),i+=e.$stackTarget?.offsetHeight??0})}function Bh(e){Bd.has(e)&&Bg(e);let t=e.position,i=Bc.get(t)??[];i.unshift(e),Bc.set(t,i),Bd.set(e,t),e.$stackTarget&&(Bu.set(e.$stackTarget,e),(function(){if("u">typeof ResizeObserver)return ei||(ei=new ResizeObserver(e=>{let t=new Set;for(let i of e){let e=Bu.get(i.target),a=e?Bd.get(e):void 0;void 0!==a&&t.add(a)}t.forEach(Bp)})),ei})()?.observe(e.$stackTarget)),Bp(t)}function Bg(e){let t=Bd.get(e);if(void 0===t)return;Bd.delete(e);let i=(Bc.get(t)??[]).filter(t=>t!==e);i.length>0?Bc.set(t,i):Bc.delete(t),e.$stackTarget&&(Bu.delete(e.$stackTarget),ei?.unobserve(e.$stackTarget)),Bp(t)}class Bm{constructor(e){this._heightOffset=0,this._index=0,this._registered=!1,this._everRegistered=!1,this._host=e,e.addController(this)}get heightOffset(){return this._heightOffset}get index(){return this._index}get position(){return this._host.position}get $stackTarget(){let e=this._host.renderRoot?.querySelector(".snackbar");return e instanceof HTMLElement?e:null}setStackPlacement(e,t){(e!==this._heightOffset||t!==this._index)&&(this._heightOffset=e,this._index=t,this._host.requestUpdate())}hostConnected(){this._host.hasUpdated&&this._enter()}hostUpdated(){this._registered?this._host.position!==this._registeredPosition&&(this._registeredPosition=this._host.position,Bh(this)):this._enter()}hostDisconnected(){window.clearTimeout(this._dismissTimer),this._dismissTimer=void 0,this._registered&&(Bg(this),this._registered=!1)}_enter(){if(this._registered)return;let e=this.$stackTarget;e&&this._host.isConnected&&("function"!=typeof e.showPopover||e.matches(":popover-open")||e.showPopover(),Bh(this),this._registered=!0,this._registeredPosition=this._host.position,this._everRegistered||(this._everRegistered=!0,this._scheduleDismiss()))}_scheduleDismiss(){rY(this._host.duration)||-1===this._host.duration||(this._dismissTimer=window.setTimeout(()=>this._host.remove(),this._host.duration))}}let Bf=sf`:host{display:block}.snackbar{font-family:var(--uas--typography--body-medium-font-family);font-size:var(--uas--typography--body-medium-font-size);line-height:var(--uas--typography--body-medium-line-height);font-weight:var(--uas--typography--body-medium-font-weight);letter-spacing:var(--uas--typography--body-medium-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;position:fixed;inset:auto;margin:0;border:none;align-items:center;gap:15px;min-width:var(--uas--snackbar--custom-min-width, var(--uas--snackbar--min-width));max-width:var(--uas--snackbar--custom-max-width, var(--uas--snackbar--max-width));color:#fff;background-color:var(--uas--snackbar--custom-background, var(--uas--snackbar--background));box-shadow:var(--uas--snackbar--custom-box-shadow, var(--uas--snackbar--box-shadow));border-radius:var(--uas--base--border-radius-md);padding:0 var(--uas--snackbar--custom-padding, var(--uas--snackbar--padding));overflow:hidden;--uas--snackbar--stack-direction: -1;--uas--snackbar--stack-shift: calc( ( var(--uas--snackbar--stack-height-offset) + var(--uas--snackbar--stack-index) * var(--uas--snackbar--custom-stack-gap, var(--uas--snackbar--stack-gap)) ) * var(--uas--snackbar--stack-direction) );opacity:0;transition:opacity var(--uas--snackbar--custom-transition, var(--uas--snackbar--transition)),transform var(--uas--snackbar--custom-transition, var(--uas--snackbar--transition)),overlay var(--uas--snackbar--custom-transition, var(--uas--snackbar--transition)) allow-discrete,display var(--uas--snackbar--custom-transition, var(--uas--snackbar--transition)) allow-discrete}.snackbar:popover-open{display:flex;opacity:1}@starting-style{.snackbar:popover-open{opacity:0}}.snackbar-icon{--uas--icon--size: var(--uas--snackbar--custom-icon-size, var(--uas--snackbar--icon-size));flex:0 0 auto;padding:var(--uas--snackbar--custom-padding, var(--uas--snackbar--padding)) 0}.snackbar-message{flex:1 1 auto;padding:var(--uas--snackbar--custom-padding, var(--uas--snackbar--padding)) 0}.snackbar-action{padding:calc(var(--uas--snackbar--custom-padding, var(--uas--snackbar--padding))*.65) 0;--uas--button--custom-font-weight: 600;--uas--button--size-custom-font-size: var(--uas--snackbar--custom-font-size, var(--uas--snackbar--font-size, var(--uas--typography--body-medium-font-size)));--uas--button--custom-background: transparent;--uas--button--custom-color: #a5d8ff;--uas--button--custom-border: transparent;--uas--button--custom-hover-background: rgba(255, 255, 255, 0.2);--uas--button--custom-hover-color: #a5d8ff}.snackbar-progress{position:absolute;bottom:0;left:0;right:0;width:100%;height:3px;border-radius:50px;background:rgba(255,255,255,.4);animation:shrinkWidth 5s linear forwards}@keyframes shrinkWidth{from{width:100%}to{width:0}}.snackbar[position^=top]{--uas--snackbar--stack-direction: 1}.snackbar[position=bottom-center]{bottom:var(--uas--snackbar--custom-margin-from-border, var(--uas--snackbar--margin-from-border));left:50%;transform:translateX(-50%) translateY(var(--uas--snackbar--stack-shift))}.snackbar[position=bottom-left]{bottom:var(--uas--snackbar--custom-margin-from-border, var(--uas--snackbar--margin-from-border));left:var(--uas--snackbar--custom-margin-from-border, var(--uas--snackbar--margin-from-border));transform:translateY(var(--uas--snackbar--stack-shift))}.snackbar[position=bottom-right]{bottom:var(--uas--snackbar--custom-margin-from-border, var(--uas--snackbar--margin-from-border));right:var(--uas--snackbar--custom-margin-from-border, var(--uas--snackbar--margin-from-border));transform:translateY(var(--uas--snackbar--stack-shift))}.snackbar[position=top-center]{top:var(--uas--snackbar--custom-margin-from-border, var(--uas--snackbar--margin-from-border));left:50%;transform:translateX(-50%) translateY(var(--uas--snackbar--stack-shift))}.snackbar[position=top-left]{top:var(--uas--snackbar--custom-margin-from-border, var(--uas--snackbar--margin-from-border));left:var(--uas--snackbar--custom-margin-from-border, var(--uas--snackbar--margin-from-border));transform:translateY(var(--uas--snackbar--stack-shift))}.snackbar[position=top-right]{top:var(--uas--snackbar--custom-margin-from-border, var(--uas--snackbar--margin-from-border));right:var(--uas--snackbar--custom-margin-from-border, var(--uas--snackbar--margin-from-border));transform:translateY(var(--uas--snackbar--stack-shift))}.snackbar[color=error]{--uas--snackbar--background: var(--uas--snackbar--custom-background-error, var(--uas--snackbar--background-error))}@media(prefers-reduced-motion: reduce){.snackbar{transition:none}}`;var By=function(e,t,i,a){var n,o=arguments.length,r=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(r=(o<3?n(r):o>3?n(t,i,r):n(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r};class Bb extends ld{constructor(){super(...arguments),this.message="",this.position=lh.BOTTOM_CENTER,this.color=lm.DEFAULT,this.duration=5e3,this._stack=new Bm(this)}willUpdate(e){lQ(this,"position",lg,e,"uas-snackbar",lh.BOTTOM_CENTER),lQ(this,"color",lf,e,"uas-snackbar",lm.DEFAULT)}render(){return s1` <div class="snackbar" popover="manual" role=${this.color===lm.ERROR?"alert":"status"} position=${this.position} color=${(this.color||void 0)??s3} style=${cd({"--uas--snackbar--stack-height-offset":`${this._stack.heightOffset}px`,"--uas--snackbar--stack-index":String(this._stack.index)})} > <div class="snackbar-icon"> <slot name="icon"></slot> </div> <div class="snackbar-message"> <uas-markdown .content=${this.message} allowed-tags="strong,em" ></uas-markdown> </div> <div class="snackbar-action"> <slot name="action"></slot> </div> ${this._templateProgress} </div> `}get _templateProgress(){if(-1!==this.duration)return s1` <div class="snackbar-progress" style="animation-duration: ${this.duration}ms" ></div> `}}Bb.styles=Bf,By([l0({type:String})],Bb.prototype,"message",void 0),By([l0({type:String})],Bb.prototype,"position",void 0),By([l0({type:String})],Bb.prototype,"color",void 0),By([l0({type:Number})],Bb.prototype,"duration",void 0),"u">typeof customElements&&!customElements.get("uas-snackbar")&&customElements.define("uas-snackbar",Bb);let Bv=rg({id:oR({error:e=>void 0===e.input?"Steps `id` is required.":"Steps `id` must be a string."}).min(1,{error:"Steps `id` cannot be empty."}).regex(/^[a-z0-9-]+$/,"Steps `id` must be in kebab-case format (lowercase letters, numbers, and hyphens)."),label:ry([oR({error:e=>void 0===e.input?"Steps `label` is required.":"Steps `label` must be a string."}).min(1,{error:"Steps `label` cannot be empty."}),rZ(e=>$k(e),{error:"Steps `label` must be a string or TemplateResult"})])}),B_=rg({current_step_id:oR({error:e=>void 0===e.input?"Steps `current_step_id` is required.":"Steps `current_step_id` must be a string."}).min(1,{error:"Steps `current_step_id` cannot be empty."}),steps:rp(Bv).min(1,{error:"Steps `steps` must have at least 1 step."})}).superRefine((e,t)=>{e.steps.some(t=>t.id===e.current_step_id)||t.addIssue({code:"custom",message:"Steps `current_step_id` must match the `id` of one of the steps."})}),Bw=rg({current_step:oR({error:e=>void 0===e.input?"Steps `current_step` is required.":"Steps `current_step` must be a string."}).min(1,{error:"Steps `current_step` cannot be empty."}),requested_step:oR({error:e=>void 0===e.input?"Steps `requested_step` is required.":"Steps `requested_step` must be a string."}).min(1,{error:"Steps `requested_step` cannot be empty."})}),Bx=sf`:host{display:inline-block}.wrapper{display:flex;flex-direction:column;display:flow-root}.go-back{padding-left:calc(var(--uas--button--size-md-padding-left) - var(--uas--button--size-xs-padding-left));padding-top:calc(var(--uas--base--spacing-sm)/2);opacity:1;transform:translateY(0) scale(1);transition:var(--uas--base--transition-slow);transition-property:opacity,transform}@starting-style{.go-back{opacity:0;transform:translateY(15px) scale(0.9)}}.steps{display:flex;align-items:center;gap:var(--uas--base--spacing-xs)}.step{display:flex;align-items:center;justify-content:center}.step--before{--uas--button--custom-color: var(--uas--typography--color)}.step--current{--uas--button--custom-color: var(--uas--color--primary);--uas--button--custom-hover-color: var(--uas--color--primary);--uas--button--custom-disabled-opacity: 1}.step--after{--uas--button--custom-color: var(--uas--typography--color-secondary)}.step-content{display:flex;align-items:center;justify-content:center;gap:var(--uas--base--spacing-xs)}.step-label{display:contents}.step-icon{opacity:1;transform:translateX(0) scale(1);transition:var(--uas--base--transition-slow);transition-property:opacity,transform}@starting-style{.step-icon{opacity:0;transform:translateX(15px) scale(0.9)}}.step uas-icon[code=circle-check]{color:var(--uas--color--status-on-success-container)}.step-separator{color:var(--uas--typography--color-secondary)}`;var Bk=function(e,t,i,a){var n,o=arguments.length,r=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(r=(o<3?n(r):o>3?n(t,i,r):n(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r};class BE extends ld{constructor(){super(...arguments),this.steps={current_step_id:"",steps:[]}}willUpdate(e){lQ(this,"steps",B_,e,"uas-steps")}render(){return s1` <div class="wrapper"> ${this._templateGoBackButton} ${this._templateSteps} </div> `}get _templateGoBackButton(){if(!this.isFirstStep)return s1` <div class="go-back"> <uas-button color="transparent" size="xs" @click=${()=>this.handleStepRequest(this.getPreviousStepId()||"")} > <uas-icon code="arrow-left-long"></uas-icon> ${this.backButtonLabel} </uas-button> </div> `}get _templateSteps(){return s1` <div class="steps"> ${this.steps.steps.map(e=>this._templateStep(e))} </div> `}_templateStep(e){let t=new Set;return this.isCurrentStep(e.id)&&t.add("step--current"),this.isBeforeCurrentStep(e.id)&&t.add("step--before"),this.isAfterCurrentStep(e.id)&&t.add("step--after"),s1` <uas-button class="step ${Array.from(t).join(" ")}" color="transparent" ?disabled=${this.isCurrentStep(e.id)||this.isAfterCurrentStep(e.id)} @click=${()=>this.handleStepRequest(e.id)} > <div class="step-content"> <div class="step-label"> ${e.label} </div> ${this.isBeforeCurrentStep(e.id)?s1` <div class="step-icon"> <uas-icon code="circle-check" icon-style="solid" ></uas-icon> </div> `:""} </div> </uas-button> ${!this.isLastStep(e.id)?s1` <div class="step-separator"> <uas-icon code="arrow-right-long"></uas-icon> </div> `:""} `}handleStepRequest(e){if(lw({element:this,eventName:"uas.steps.step.requested",data:{current_step:this.steps.current_step_id,requested_step:e},schema:Bw,options:{bubbles:!0,composed:!0}}),this.router)try{this.router.navigateById(e);return}catch(e){console.warn("Direct router navigation failed, falling back to event emission:",e)}}getPreviousStepId(){let e=this.steps.steps.findIndex(e=>e.id===this.steps.current_step_id);if(0!==e)return this.steps.steps[e-1]?.id}isCurrentStep(e){return e===this.steps.current_step_id}get isFirstStep(){return 0===this.steps.steps.findIndex(e=>e.id===this.steps.current_step_id)}isLastStep(e){return e===this.steps.steps[this.steps.steps.length-1]?.id}isBeforeCurrentStep(e){return this.steps.steps.findIndex(t=>t.id===e)<this.steps.steps.findIndex(e=>e.id===this.steps.current_step_id)}isAfterCurrentStep(e){return this.steps.steps.findIndex(t=>t.id===e)>this.steps.steps.findIndex(e=>e.id===this.steps.current_step_id)}}BE.styles=Bx,Bk([l0({type:Object,attribute:!1})],BE.prototype,"steps",void 0),Bk([l0({type:Object,attribute:!1})],BE.prototype,"router",void 0),Bk([l0({type:String,attribute:"back-button-label"})],BE.prototype,"backButtonLabel",void 0),"u">typeof customElements&&!customElements.get("uas-steps")&&customElements.define("uas-steps",BE);let BS=rT({INFO:"info",WARNING:"warning",ERROR:"error",SUCCESS:"success"}),BC={info:"circle-info",warning:"triangle-exclamation",error:"circle-exclamation",success:"circle-check"},BT=sf`:host{display:block}.tab{font-family:var(--uas--typography--label-large-font-family);font-size:var(--uas--typography--label-large-font-size);line-height:var(--uas--typography--label-large-line-height);font-weight:var(--uas--typography--label-large-font-weight);letter-spacing:var(--uas--typography--label-large-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-size:var(--uas--tabs--tab-custom-font-size, var(--uas--tabs--tab-font-size));line-height:var(--uas--tabs--tab-custom-line-height, var(--uas--tabs--tab-line-height));display:flex;align-items:center;gap:var(--uas--base--spacing-2xs);padding-block:var(--uas--tabs--tab-custom-padding-block, var(--uas--tabs--tab-padding-block));padding-inline:var(--uas--tabs--tab-custom-padding-inline, var(--uas--tabs--tab-padding-inline));color:var(--uas--typography--color);text-decoration:none;white-space:nowrap;cursor:pointer;transition:var(--uas--base--transition);transition-property:color}.tab:hover{color:var(--uas--tabs--custom-indicator-color, var(--uas--tabs--indicator-color))}.tab:focus-visible{outline:2px solid var(--uas--color--primary);outline-offset:-2px}:host([active]) .tab{color:var(--uas--tabs--custom-indicator-color, var(--uas--tabs--indicator-color))}:host([disabled]) .tab{pointer-events:none}:host([disabled]) .content{opacity:.5;filter:grayscale(1)}.content{display:inline-flex;align-items:center;gap:var(--uas--tabs--tab-custom-gap, var(--uas--tabs--tab-gap));min-inline-size:0}.status-icon{flex-shrink:0;margin-inline-start:var(--uas--base--spacing-2xs)}.status-icon.info{color:var(--uas--color--status-on-info-container)}.status-icon.warning{color:var(--uas--color--status-on-warning-container)}.status-icon.error{color:var(--uas--color--status-on-error-container)}.status-icon.success{color:var(--uas--color--status-on-success-container)}::slotted(uas-icon:first-child){flex-shrink:0;opacity:.4}::slotted(uas-chip:last-child){margin-inline-start:var(--uas--base--spacing-2xs)}`;var BI=function(e,t,i,a){var n,o=arguments.length,r=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(r=(o<3?n(r):o>3?n(t,i,r):n(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r};class BD extends ld{constructor(){super(...arguments),this.value="",this.active=!1,this.disabled=!1,this.loading=!1,this.tabStop=!1}willUpdate(e){lQ(this,"status",BS,e,"uas-tab")}focus(e){this._anchor?.focus(e)}activate(){this._anchor?.click()}render(){return s1` <a class="tab" role="tab" href=${this.href??s3} aria-selected=${this.active?"true":"false"} aria-disabled=${this.disabled?"true":"false"} tabindex=${this.tabStop?"0":"-1"} > <span class="content"> <slot></slot> </span> ${this._renderTrailingIcon()} </a> `}_renderTrailingIcon(){return this.loading?s1`<uas-icon class="status-icon" code="spinner-third" animation="spin"></uas-icon>`:this.status?s1`<uas-icon class="status-icon ${this.status}" code=${BC[this.status]}></uas-icon>`:s3}}BD.styles=BT,BI([l0({type:String})],BD.prototype,"value",void 0),BI([l0({type:String})],BD.prototype,"href",void 0),BI([l0({type:String})],BD.prototype,"status",void 0),BI([l0({type:Boolean,reflect:!0})],BD.prototype,"active",void 0),BI([l0({type:Boolean,reflect:!0})],BD.prototype,"disabled",void 0),BI([l0({type:Boolean,reflect:!0})],BD.prototype,"loading",void 0),BI([l0({type:Boolean,attribute:!1})],BD.prototype,"tabStop",void 0),BI([l4(".tab")],BD.prototype,"_anchor",void 0),"u">typeof customElements&&!customElements.get("uas-tab")&&customElements.define("uas-tab",BD);let BA={HORIZONTAL:"horizontal",VERTICAL:"vertical"},B$=rT(BA),BO={SM:"sm",MD:"md",LG:"lg"},BR=rT(BO),BM=rg({value:oR()}).strict(),BL=sf`:host{display:block}.root{block-size:100%}.tabs{display:flex;flex-direction:column;block-size:100%;min-block-size:var(--uas--tabs--custom-min-height, var(--uas--tabs--min-height));max-block-size:var(--uas--tabs--custom-max-height, var(--uas--tabs--max-height))}.tablist{flex:0 0 auto;display:flex;flex-direction:row;gap:var(--uas--base--spacing-md);padding-inline:var(--uas--base--spacing-sm);border-block-start:var(--uas--tabs--custom-border-block-start, var(--uas--tabs--border-block-start));border-block-end:var(--uas--tabs--custom-border-block-end, var(--uas--tabs--border-block-end));overflow:auto}.tablist::-webkit-scrollbar{background-color:rgba(0,0,0,.09)}.tablist::-webkit-scrollbar:horizontal{height:10px}.tablist::-webkit-scrollbar-thumb{background:rgba(0,0,0,.3);border-radius:150px;background-clip:padding-box;border:2px solid rgba(0,0,0,0)}.tablist::-webkit-scrollbar-thumb:horizontal{min-width:10px}.panels{flex:1 1 auto;min-block-size:0;display:grid;grid-template-rows:minmax(0, 1fr);grid-template-columns:minmax(0, 1fr);position:relative}::slotted(uas-tab){border-block-end:var(--uas--tabs--custom-indicator-size, var(--uas--tabs--indicator-size)) solid rgba(0,0,0,0)}::slotted(uas-tab[active]){border-block-end-color:var(--uas--tabs--custom-indicator-color, var(--uas--tabs--indicator-color))}:host([size=sm]) .root{--uas--tabs--tab-padding-block: var(--uas--tabs--tab-sm-padding-block);--uas--tabs--tab-padding-inline: var(--uas--tabs--tab-sm-padding-inline);--uas--tabs--tab-font-size: var(--uas--tabs--tab-sm-font-size);--uas--tabs--tab-line-height: var(--uas--tabs--tab-sm-line-height);--uas--tabs--tab-gap: var(--uas--tabs--tab-sm-gap)}:host([size=lg]) .root{--uas--tabs--tab-padding-block: var(--uas--tabs--tab-lg-padding-block);--uas--tabs--tab-padding-inline: var(--uas--tabs--tab-lg-padding-inline);--uas--tabs--tab-font-size: var(--uas--tabs--tab-lg-font-size);--uas--tabs--tab-line-height: var(--uas--tabs--tab-lg-line-height);--uas--tabs--tab-gap: var(--uas--tabs--tab-lg-gap)}:host([orientation=vertical]) .root{container-type:inline-size;container-name:uas-tabs-rail}@container uas-tabs-rail (min-inline-size: 750px){.tabs{flex-direction:row;border:1px solid var(--uas--color--border);border-radius:var(--uas--base--border-radius-md)}.tablist{flex-direction:column;gap:0;inline-size:var(--uas--tabs--custom-list-width, var(--uas--tabs--list-width));padding:0;background:var(--uas--tabs--custom-list-background, var(--uas--tabs--list-background));border:0;border-inline-end:1px solid var(--uas--color--border);border-start-start-radius:var(--uas--base--border-radius-md);border-end-start-radius:var(--uas--base--border-radius-md)}.tablist::-webkit-scrollbar{background-color:rgba(0,0,0,.09)}.tablist::-webkit-scrollbar:vertical{width:10px}.tablist::-webkit-scrollbar-thumb{background:rgba(0,0,0,.3);border-radius:150px;background-clip:padding-box;border:2px solid rgba(0,0,0,0)}.tablist::-webkit-scrollbar-thumb:vertical{min-height:10px}::slotted(uas-tab){border-block-end:0;border-inline-start:var(--uas--tabs--custom-indicator-size, var(--uas--tabs--indicator-size)) solid rgba(0,0,0,0)}::slotted(uas-tab[active]){border-inline-start-color:var(--uas--tabs--custom-indicator-color, var(--uas--tabs--indicator-color));background:var(--uas--tabs--custom-active-background, var(--uas--tabs--active-background))}}`,BN=sf`:host{display:block}:host(:not([active])){display:none}.panel{box-sizing:border-box;block-size:100%;padding:var(--uas--base--spacing-md);overflow:auto}.panel::-webkit-scrollbar{background-color:rgba(0,0,0,.09)}.panel::-webkit-scrollbar:vertical{width:10px}.panel::-webkit-scrollbar-thumb{background:rgba(0,0,0,.3);border-radius:150px;background-clip:padding-box;border:2px solid rgba(0,0,0,0)}.panel::-webkit-scrollbar-thumb:vertical{min-height:10px}`;var BP=function(e,t,i,a){var n,o=arguments.length,r=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(r=(o<3?n(r):o>3?n(t,i,r):n(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r};class Bz extends ld{constructor(){super(...arguments),this.name="",this.active=!1}render(){return s1` <div class="panel" role="tabpanel" tabindex="0"> <slot></slot> </div> `}}Bz.styles=BN,BP([l0({type:String})],Bz.prototype,"name",void 0),BP([l0({type:Boolean,reflect:!0})],Bz.prototype,"active",void 0),"u">typeof customElements&&!customElements.get("uas-tab-panel")&&customElements.define("uas-tab-panel",Bz);var BU=function(e,t,i,a){var n,o=arguments.length,r=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(r=(o<3?n(r):o>3?n(t,i,r):n(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r};class BF extends ld{constructor(){super(...arguments),this.orientation=BA.HORIZONTAL,this.size=BO.MD,this._tabs=[],this._panels=[],this._onPopState=()=>{this._handlePopState()}}connectedCallback(){super.connectedCallback(),window.addEventListener("popstate",this._onPopState)}disconnectedCallback(){super.disconnectedCallback(),window.removeEventListener("popstate",this._onPopState)}willUpdate(e){lQ(this,"orientation",B$,e,"uas-tabs",BA.HORIZONTAL),lQ(this,"size",BR,e,"uas-tabs",BO.MD)}updated(){this._reflectState()}render(){return s1` <div class="root"> <div class="tabs"> <div class="tablist" role="tablist" aria-orientation=${this.orientation} @click=${this._handleClick} @keydown=${this._handleKeydown} > <slot @slotchange=${this._handleTabSlotChange}></slot> </div> <div class="panels"> <slot name="panel" @slotchange=${this._handlePanelSlotChange}></slot> </div> </div> </div> `}_isControlled(){return void 0!==this.value}_effectiveValue(){return this._isControlled()?this.value:void 0!==this._internalValue&&this._tabs.some(e=>e.value===this._internalValue)?this._internalValue:this._resolveInitialValue()}_resolveInitialValue(){let e=this._tabs.find(e=>e.active&&e.value);if(e)return e.value;let t=this._tabs.find(e=>e.href&&this._hrefMatchesCurrent(e.href));if(t)return t.value;let i=this._tabs.find(e=>e.value&&!e.disabled);return i?.value}_hrefMatchesCurrent(e){try{let t=new URL(e,window.location.href);return t.pathname===window.location.pathname&&t.search===window.location.search}catch{return!1}}_panelForValue(e){return this._panels.find(t=>t.name===e)}_reflectState(){let e=this._effectiveValue(),t=this._rovingValue??e;for(let i of this._tabs)i.active=i.value===e,i.tabStop=i.value===t;for(let t of this._panels)t.active=t.name===e;this._scrollActiveIntoView(e)}_scrollActiveIntoView(e){if(void 0===e)return;let t=this._tabs.find(t=>t.value===e);t?.scrollIntoView({block:"nearest",inline:"nearest"})}_handleTabSlotChange(){if(this._tabs=this._slottedTabs,!this._isControlled()&&void 0===this._internalValue){let e=this._resolveInitialValue();void 0!==e&&(this._internalValue=e,this._rovingValue=e)}}_handlePanelSlotChange(){this._panels=this._slottedPanels}_tabFromEvent(e){for(let t of e.composedPath())if(t instanceof BD)return t}_isModifiedClick(e){return 0!==e.button||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey}_handleClick(e){let t=this._tabFromEvent(e);!t||(t.disabled?e.preventDefault():this._isModifiedClick(e)||(this._panelForValue(t.value)?(e.preventDefault(),this._select(t,!0)):t.href?t.loading=!0:(e.preventDefault(),this._select(t,!1))))}_handleKeydown(e){let t,i=this._tabs.filter(e=>e.value&&!e.disabled);if(0===i.length)return;let a=this.orientation===BA.HORIZONTAL,n=this._rovingValue??this._effectiveValue(),o=Math.max(0,i.findIndex(e=>e.value===n));switch(e.key){case a?"ArrowRight":"ArrowDown":t=(o+1)%i.length;break;case a?"ArrowLeft":"ArrowUp":t=(o-1+i.length)%i.length;break;case"Home":t=0;break;case"End":t=i.length-1;break;case"Enter":case" ":e.preventDefault(),this._activateTab(i[o]);return;default:return}e.preventDefault();let r=i[t];this._rovingValue=r.value,this.updateComplete.then(()=>r.focus())}_activateTab(e){this._panelForValue(e.value)?this._select(e,!0):e.href?(e.loading=!0,e.activate()):this._select(e,!1)}_select(e,t){this._isControlled()||(this._internalValue=e.value),this._rovingValue=e.value,t&&e.href&&this._pushUrl(e.href),this._emitChange(e.value)}_pushUrl(e){try{let t=new URL(e,window.location.href);window.history.pushState({},"",t.href)}catch{}}_handlePopState(){if(this._isControlled())return;let e=this._tabs.find(e=>e.href&&this._hrefMatchesCurrent(e.href));e&&(this._internalValue=e.value,this._rovingValue=e.value)}_emitChange(e){lw({element:this,eventName:"uas.tabs.change",data:{value:e},schema:BM,options:{bubbles:!0,composed:!0}})}}BF.styles=BL,BU([l0({type:String,reflect:!0})],BF.prototype,"orientation",void 0),BU([l0({type:String,reflect:!0})],BF.prototype,"value",void 0),BU([l0({type:String,reflect:!0})],BF.prototype,"size",void 0),BU([l5({selector:"uas-tab"})],BF.prototype,"_slottedTabs",void 0),BU([l5({slot:"panel",selector:"uas-tab-panel"})],BF.prototype,"_slottedPanels",void 0),BU([l4(".tablist")],BF.prototype,"_tablist",void 0),BU([l2()],BF.prototype,"_tabs",void 0),BU([l2()],BF.prototype,"_panels",void 0),BU([l2()],BF.prototype,"_internalValue",void 0),BU([l2()],BF.prototype,"_rovingValue",void 0),"u">typeof customElements&&!customElements.get("uas-tabs")&&customElements.define("uas-tabs",BF);let Bj=sf`:host{display:contents}`;var BB=function(e,t,i,a){var n,o=arguments.length,r=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(r=(o<3?n(r):o>3?n(t,i,r):n(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r};class BH extends ld{constructor(){super(...arguments),this.format=lI.LONG,this.numeric=lA.ALWAYS,this.direction=lO.ALWAYS,this.freezeAtZero=!1,this._finishedFired=!0,this._handleVisibilityChange=()=>{document.hidden||this.requestUpdate()}}connectedCallback(){super.connectedCallback(),document.addEventListener("visibilitychange",this._handleVisibilityChange),this.hasUpdated&&this.requestUpdate()}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("visibilitychange",this._handleVisibilityChange),this._cancelTick()}willUpdate(e){if(lQ(this,"format",lD,e,"uas-timer",lI.LONG),lQ(this,"numeric",l$,e,"uas-timer",lA.ALWAYS),lQ(this,"direction",lR,e,"uas-timer",lO.ALWAYS),void 0!==this.timestamp&&lQ(this,"timestamp",lM,e,"uas-timer"),e.has("timestamp")){let e=function(e){if(void 0===e)return;if("number"==typeof e){if(!Number.isFinite(e))return;return e<1e11?1e3*e:e}if(e instanceof Date){let t=e.getTime();return Number.isNaN(t)?void 0:t}let t=Date.parse(e);return Number.isNaN(t)?void 0:t}(this.timestamp);e!==this._targetMs&&(this._targetMs=e,this._finishedFired=void 0===e||e<=Date.now(),this._cancelTick())}}updated(){var e;let t,i,a=this._targetMs;if(void 0===a)return void this._cancelTick();let n=Date.now();(!this._finishedFired&&a<=n&&(this._finishedFired=!0,lw({element:this,eventName:"uas.timer.finished",options:{bubbles:!0,composed:!0}})),this.freezeAtZero&&a<=n||document.hidden||!this.isConnected)?this._cancelTick():void 0===this._tickTimeout&&(this._tickTimeout=setTimeout(()=>{this._tickTimeout=void 0,document.hidden||this.requestUpdate()},(i=lU(t=Math.abs(e=a-n)),Math.max(1,Math.min(e>0?t%i.unitMs||i.unitMs:i.unitMs-t%i.unitMs,e>0?t-i.lowerEdgeMs+1:i.upperEdgeMs-t,0x7fffffff)))))}render(){var e;let t;if(void 0===this._targetMs)return s1``;let i=this._targetMs-Date.now(),{unit:a,value:n}={unit:(t=lU(Math.abs(e=this.freezeAtZero&&i<=0?0:i))).unit,value:Math.trunc(e/t.unitMs)};if(this.direction===lO.NONE)return s1`${new Intl.NumberFormat(lB(this.locale),{style:"unit",unit:a,unitDisplay:this.format}).format(Math.abs(n))}`;let o=new Intl.RelativeTimeFormat(lB(this.locale),{style:this.format,numeric:this.numeric});return s1`${o.format(n,a)}`}_cancelTick(){clearTimeout(this._tickTimeout),this._tickTimeout=void 0}}BH.styles=Bj,BB([l0({attribute:"timestamp"})],BH.prototype,"timestamp",void 0),BB([l0({type:String})],BH.prototype,"format",void 0),BB([l0({type:String})],BH.prototype,"numeric",void 0),BB([l0({type:String})],BH.prototype,"direction",void 0),BB([l0({type:Boolean,attribute:"freeze-at-zero"})],BH.prototype,"freezeAtZero",void 0),BB([l0({type:String})],BH.prototype,"locale",void 0),"u">typeof customElements&&!customElements.get("uas-timer")&&customElements.define("uas-timer",BH);let BV=a.p+"img/logo-horizontal.svg";a.p,a.p,a.p,a.p;let Bq=window.wp.apiFetch;var BZ=a.n(Bq);class BW{constructor(){if(!this.hasNotification)return;this.registerActions(),this.state={itemsCount:parseInt(uapNotifications.itemsCount),lastIndex:parseInt(uapNotifications.lastIndex)},this.updateNavigation()}registerActions(){var e=this;let t=document.getElementsByClassName("uap-notifications-controller-next"),i=document.getElementsByClassName("uap-notifications-controller-prev"),a=document.getElementsByClassName("uap-notifications-action-dismiss");Array.from(t).forEach(function(e){e.addEventListener("click",function(){let t=e.parentNode.parentNode.parentNode.parentNode;t.classList.remove("active"),t.nextElementSibling.classList.add("active"),e.parentNode.parentNode.parentNode.classList.remove("active")})}),Array.from(i).forEach(function(e){e.addEventListener("click",function(){let t=e.parentNode.parentNode.parentNode.parentNode;t.classList.remove("active"),t.previousElementSibling.classList.add("active"),e.parentNode.parentNode.parentNode.classList.remove("active")})}),Array.from(a).forEach(function(t){t.addEventListener("click",function(){let i=t.getAttribute("data-notification-id");e.dismissNotification(i,t)})})}dismissNotification(e,t){t.setAttribute("loading",!0),BZ()({path:"/uap/v2/notifications/dismiss/",method:"POST",data:{id:e}}).then(e=>{if(e.success){let e=t.parentNode.parentNode.parentNode;e.classList.remove("active"),parseInt(e.getAttribute("data-index"))!==this.state.lastIndex&&e.nextElementSibling?e.nextElementSibling.classList.add("active"):document.querySelector("ul.uap-notifications-list li:first-child").classList.add("active"),1===this.state.itemsCount&&document.querySelector(".uap-notifications").remove(),this.state.itemsCount--,e.remove(),this.updateNavigation()}}).catch(e=>{console.warn(e)}).finally(()=>{t.removeAttribute("loading")})}updateNavigation(){let e=document.querySelector("ul.uap-notifications-list li:first-child").querySelector(".uap-notifications-controller-prev"),t=document.querySelector("ul.uap-notifications-list li:last-child").querySelector(".uap-notifications-controller-next");e&&e.setAttribute("disabled",!0),t&&t.setAttribute("disabled",!0)}get hasNotification(){return rK(document.getElementById("uap-notifications-wrap"))}}U7()(()=>{new BW});let BG=rg({addon:uU}).strict();var BK=function(e,t,i,a){var n,o=arguments.length,r=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(r=(o<3?n(r):o>3?n(t,i,r):n(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r};let BY=class extends ld{constructor(){super(...arguments),this.addonID="",this.cta=null,this.runAddonActionMutation=new vm(this,{mutationFn:u3})}willUpdate(e){null!==this.cta&&lQ(this,"cta",uz,e,"uap-page-addons-group-item-button-action")}render(){if(!this.cta)return;let e=this.runAddonActionMutation.result.isPending;return s1` <uas-button color=${this.cta.type??s3} ?disabled=${e||this.cta.disabled} ?loading=${e} @click=${this.handleAddonPluginAction} > ${this.cta.icon?s1`<uas-icon code="${this.cta.icon}"></uas-icon>`:""} ${this.cta.label} </uas-button> `}async handleAddonPluginAction(){if(!this.cta||!this.cta.action||!this.addonID)return void console.error("Addon action cannot proceed: Missing cta, cta.action, or addonID.");let e=this.cta.action,t=ly({message:BQ[e],iconID:"spinner-third",iconAnimation:"spin"});try{let t=await this.runAddonActionMutation.mutateAsync({addonID:this.addonID,action:e});if(!t.success)return void(t.user_intervention?this.createDialog(t.user_intervention):this.showErrorSnackbar());let i,a=UW.origin;if(UG(.25,{origin:a,spread:26,startVelocity:55},i),UG(.2,{origin:a,spread:60},i),UG(.35,{origin:a,spread:100,decay:.91,scalar:.8},i),UG(.1,{origin:a,spread:120,startVelocity:25,decay:.92,scalar:1.2},i),UG(.1,{origin:a,spread:120,startVelocity:45},i),t.direct_download)return void window.open(t.direct_download,"_blank");t.data?this.requestDataUpdate(t.data.addon):console.warn("Addon action successful, but no updated data received."),ly({message:BX[e],iconID:"check",duration:3e3})}catch(t){let e=t instanceof Error?t.message:void 0;this.showErrorSnackbar(e)}finally{var i;"object"==typeof(i=t)&&null!==i&&"remove"in i&&"function"==typeof Reflect.get(i,"remove")&&t.remove()}}showErrorSnackbar(e){ly({message:e||(0,b4.escapeHTML)((0,lX.__)("Something went wrong. Please try again.","uncanny-automator")),color:"error",iconID:"xmark",duration:5e3})}requestDataUpdate(e){lw({element:this,eventName:"uap.f.page-addons.group-item.data-changed",data:{addon:e},schema:BG,options:{bubbles:!0,composed:!0}})}createDialog(e){let t=document.createElement("div");document.body.append(t),ll(s1` <uas-dialog open heading=${(0,b4.escapeHTML)((0,lX._x)("Unable to process request","Addons","uncanny-automator"))} @uas.dialog.close=${()=>{t.remove()}} > <uas-markdown allowed-tags="strong,em" .content=${e.message} ></uas-markdown> <uas-button slot="primary-action" href=${e.cta.url} dialog-action="close" > ${e.cta.icon?s1`<uas-icon code="${e.cta.icon}"></uas-icon>`:""} ${e.cta.label} </uas-button> <uas-button slot="secondary-action" dialog-action="close" color="secondary" > ${(0,lX._x)("Cancel","Verb","uncanny-automator")} </uas-button> </uas-dialog> `,t)}};BK([l0({type:String,attribute:"addon-id"})],BY.prototype,"addonID",void 0),BK([l0({type:Object})],BY.prototype,"cta",void 0),BY=BK([lJ("uap-page-addons-group-item-button-action")],BY);let BQ={[uO.INSTALL]:(0,lX._x)("Installing addon","Addons","uncanny-automator"),[uO.ACTIVATE]:(0,lX._x)("Activating addon","Addons","uncanny-automator"),[uO.UPDATE]:(0,lX._x)("Updating addon","Addons","uncanny-automator"),[uO.DOWNLOAD]:(0,lX._x)("Downloading addon","Addons","uncanny-automator")},BX={[uO.INSTALL]:(0,lX._x)("Addon installed","Addons","uncanny-automator"),[uO.ACTIVATE]:(0,lX._x)("Addon activated","Addons","uncanny-automator"),[uO.UPDATE]:(0,lX._x)("Addon updated","Addons","uncanny-automator"),[uO.DOWNLOAD]:(0,lX._x)("Addon downloaded","Addons","uncanny-automator")};var BJ=a(817),B1=a.n(BJ),B0=function(e,t,i,a){var n,o=arguments.length,r=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(r=(o<3?n(r):o>3?n(t,i,r):n(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r};let B2=class extends ld{constructor(){super(...arguments),this.addon=null,this.hasAccess=!1,this.handleAddonDataChanged=e=>{this.addon=e.detail.addon}}static{this.styles=sf`${sm(B1())}`}willUpdate(e){null!==this.addon&&lQ(this,"addon",uU,e,"uap-page-addons-group-item")}render(){if(this.addon)return s1` <div class="item" ?has-access=${this.hasAccess} > ${this.templateIcon()} ${this.templateContent()} ${this.templateCtas()} </div> `}templateIcon(){if(this.addon)return s1` <div class="item-icon"> <uas-icon code="${this.addon.icon}" icon-pack="duotone"></uas-icon> </div> `}templateContent(){if(this.addon)return s1` <div class="item-content"> <div class="item-content-top"> ${this.templateName()} ${this.templateDeveloper()} </div> <div class="item-content-description"> ${this.addon.description} </div> ${this.templateDetails()} </div> `}templateDetails(){if(this.addon)return s1` <table class="item-content-details"> <tbody> ${$A(this.addon.details,e=>e.label,e=>s1` <tr class="item-content-detail"> <td class="item-content-detail-label"> ${e.label} </td> <td class="item-content-detail-value"> <uas-markdown allowed-tags="strong,em,a" .content=${e.value} ></uas-markdown> </td> </tr> `)} </tbody> </table> `}templateName(){if(this.addon)return s1` <div class="item-content-name"> ${this.addon.name} </div> `}templateDeveloper(){if(this.addon)return s1` <div class="item-content-developer"> ${(0,lX._x)("By","Addons","uncanny-automator")} <a href="${this.addon.developer.url}" target="_blank"> ${this.addon.developer.name} ${this.addon.is_official?s1`<uas-icon code="badge-check" icon-style="solid"></uas-icon>`:""} <uas-icon code="arrow-up-right-from-square" icon-style="solid"></uas-icon> </a> </div> `}templateCtas(){if(!(!this.addon||rY(this.addon.cta)))return s1` <div class="item-ctas"> ${$A(this.addon.cta??[],e=>e.label,e=>this.templateCtaButton(e))} </div> `}templateCtaButton(e){if(this.addon)return e.action?s1` <uap-page-addons-group-item-button-action addon-id=${this.addon.id} .cta=${e} @uap.f.page-addons.group-item.data-changed=${this.handleAddonDataChanged} ></uap-page-addons-group-item-button-action> `:s1` <uas-button color=${e.type??uN.SECONDARY} href=${e.disabled?"":e.url??""} target=${(e.disabled?void 0:"_blank")??s3} ?disabled=${e.disabled} > ${e.icon?s1`<uas-icon code="${e.icon}"></uas-icon>`:""} ${e.label} </uas-button> `}};B0([l0({type:Object,attribute:!1})],B2.prototype,"addon",void 0),B0([l0({type:Boolean,attribute:"has-access",reflect:!0})],B2.prototype,"hasAccess",void 0),B2=B0([lJ("uap-page-addons-group-item")],B2);var B3=a(2083),B4=a.n(B3);let B6=class extends ld{static{this.styles=sf`${sm(B4())}`}render(){return s1` <div class="item"> ${this.templateIcon()} ${this.templateContent()} ${this.templateCtas()} </div> `}templateIcon(){return s1` <div class="item-icon"> <uas-skeleton width="48px" height="48px"></uas-skeleton> </div> `}templateContent(){return s1` <div class="item-content"> <div class="item-content-top"> ${this.templateName()} ${this.templateDeveloper()} </div> <div class="item-content-description"> <uas-skeleton width="80px"></uas-skeleton> <uas-skeleton width="100px"></uas-skeleton> <uas-skeleton width="50px"></uas-skeleton> <uas-skeleton width="150px"></uas-skeleton> <uas-skeleton width="70px"></uas-skeleton> <uas-skeleton width="50px"></uas-skeleton> <uas-skeleton width="110px"></uas-skeleton> <uas-skeleton width="70px"></uas-skeleton> <uas-skeleton width="45px"></uas-skeleton> <uas-skeleton width="120px"></uas-skeleton> <uas-skeleton width="120px"></uas-skeleton> <uas-skeleton width="40px"></uas-skeleton> </div> ${this.templateDetails()} </div> `}templateName(){return s1` <div class="item-content-name"> <uas-skeleton width="140px"></uas-skeleton> <uas-skeleton width="80px"></uas-skeleton> </div> `}templateDeveloper(){return s1` <div class="item-content-developer"> <uas-skeleton width="40px"></uas-skeleton> <uas-skeleton width="80px"></uas-skeleton> <uas-skeleton width="40px"></uas-skeleton> <uas-skeleton width="16px"></uas-skeleton> </div> `}templateDetails(){return s1` <div class="item-content-details"> <div class="item-content-detail"> <uas-skeleton width="16px" height="${"8px"}"></uas-skeleton> <uas-skeleton width="80px" height="${"8px"}"></uas-skeleton> <uas-skeleton width="150px" height="${"8px"}"></uas-skeleton> </div> <div class="item-content-detail"> <uas-skeleton width="16px" height="${"8px"}"></uas-skeleton> <uas-skeleton width="80px" height="${"8px"}"></uas-skeleton> <uas-skeleton width="50px" height="${"8px"}"></uas-skeleton> <uas-skeleton width="15px" height="${"8px"}"></uas-skeleton> <uas-skeleton width="45px" height="${"8px"}"></uas-skeleton> </div> <div class="item-content-detail"> <uas-skeleton width="16px" height="${"8px"}"></uas-skeleton> <uas-skeleton width="80px" height="${"8px"}"></uas-skeleton> <uas-skeleton width="50px" height="${"8px"}"></uas-skeleton> <uas-skeleton width="15px" height="${"8px"}"></uas-skeleton> </div> </div> `}templateCtas(){return s1` <div class="item-ctas"> <uas-skeleton width="110px" height="20px"></uas-skeleton> </div> `}};B6=function(e,t,i,a){var n,o=arguments.length,r=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(r=(o<3?n(r):o>3?n(t,i,r):n(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r}([lJ("uap-page-addons-group-placeholder-item")],B6);var B5=a(8277),B8=a.n(B5);let B7=class extends ld{static{this.styles=sf`${sm(B8())}`}render(){return s1` <div class="grid"> <uap-page-addons-group-placeholder-item></uap-page-addons-group-placeholder-item> <uap-page-addons-group-placeholder-item></uap-page-addons-group-placeholder-item> </div> `}};B7=function(e,t,i,a){var n,o=arguments.length,r=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(r=(o<3?n(r):o>3?n(t,i,r):n(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r}([lJ("uap-page-addons-group-placeholder")],B7);var B9=a(2291),He=a.n(B9),Ht=function(e,t,i,a){var n,o=arguments.length,r=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(r=(o<3?n(r):o>3?n(t,i,r):n(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r};let Hi={[uH.ERROR]:"circle-exclamation",[uH.WARNING]:"circle-exclamation",[uH.INFO]:"circle-info",[uH.LOCKED]:"lock"},Ha=class extends ld{constructor(){super(...arguments),this.listCode=null,this.addonsListController=new vE(this,{...uX(uF.PLUS),enabled:!1}),this.handleRetry=()=>{this.addonsListController.result.refetch()}}static{this.styles=sf`${sm(He())}`}willUpdate(e){null!==this.listCode&&lQ(this,"listCode",uj,e,"uap-page-addons-group"),e.has("listCode")&&(this.listCode?this.addonsListController.setOptions({...uX(this.listCode),enabled:!0}):this.addonsListController.options.enabled&&this.addonsListController.setOptions({enabled:!1}))}render(){if(!this.listCode)return;let{status:e,data:t,error:i}=this.addonsListController.result;return"error"===e?this.templateFatalError(i?.message):"success"===e&&t?this.templateMain(t):s1`<uap-page-addons-group-placeholder></uap-page-addons-group-placeholder>`}templateMain(e){return s1` <div class="addons-group"> ${this.templatePageNotice(e.page_notice)} ${this.templateAddonsGrid(e)} </div> `}templatePageNotice(e){if(e)return s1` <div class="addons-group-notice" notice-type=${e.type} > <uas-icon code=${Hi[e.type]} icon-style="solid" ></uas-icon> ${e.message} ${e.cta?s1` <uas-button size="xs" color="secondary" href=${r0(e.cta.url,{campaign:br.UPGRADE_TO_PRO,content:"page-addons-notice-cta"})} target="_blank" > ${e.cta.icon?s1`<uas-icon code=${e.cta.icon}></uas-icon>`:""} ${e.cta.label} </uas-button> `:""} </div> `}templateAddonsGrid(e){return s1` <div class="addons-group-grid"> ${$A(e.addons,e=>e.id,t=>s1` <uap-page-addons-group-item .addon=${t} ?has-access=${e.has_access} ></uap-page-addons-group-item> `)} </div> `}templateFatalError(e){let t=rY(e)?(0,lX.__)("Something went wrong","uncanny-automator"):e;return s1` <uas-alert type="error" heading=${(0,b4.escapeHTML)((0,lX.__)("Something went wrong","uncanny-automator"))} > <p>${t}</p> <uas-button size="sm" color="secondary" @click=${this.handleRetry} > ${(0,lX.__)("Try again","uncanny-automator")} </uas-button> </uas-alert> `}};Ht([l0({type:String,attribute:"list-code"})],Ha.prototype,"listCode",void 0),Ha=Ht([lJ("uap-page-addons-group")],Ha);var Hn=a(944),Ho=a.n(Hn);let Hr=class extends ld{constructor(){super(...arguments),this.licenseController=new vE(this,$U)}static{this.styles=sf`${sm(Ho())}`}render(){return s1` <div class="banner"> ${this.templateBackground()} ${this.templateContent()} </div> `}templateContent(){return s1` <div class="banner-content"> <div class="banner-content-logo"> <img src="${BV}"/> </div> <h1 class="banner-content-title" > ${(0,lX._x)("Do more with Addons","Upgrade","uncanny-automator")} </h1> <div class="banner-content-description"> <uas-markdown allowed-tags="strong" .content=${(0,b4.escapeHTML)((0,lX._x)("Get **addons** for **restricting content**, **dynamic content**, **user lists** and more. Upgrade to Elite for **every addon**.","Upgrade","uncanny-automator"))}> </uas-markdown> </div> <div class="banner-content-cta"> ${this.templateCTAButton()} </div> </div> `}templateCTAButton(){let{status:e,data:t,isLoading:i,isFetching:a,isError:n}=this.licenseController.result;if(i)return this.templateCTAButtonPlaceholder();if(n)return this.templateCTAButtonError();if("success"===e&&t)if("pro-installed-license-active-pro-elite"===t.scenario_id)return s1` <uas-button disabled filled > ${(0,lX._x)("See plans","Upgrade","uncanny-automator")} </uas-button> <div class="banner-content-cta-disclaimer"> 🎉 ${(0,lX._x)("You already have access to all addons!","Upgrade","uncanny-automator")} </div> `;else{if(rY(t.cta))return;return s1` ${$A(t.cta,(e,t)=>t,e=>this.templateSummaryCTAButton(e))} `}if("pending"===e||a&&!t)return this.templateCTAButtonPlaceholder()}templateSummaryCTAButton(e){return s1` <uas-button color="success" href=${r0(e.url,{campaign:br.UPGRADE_TO_PRO,content:"page-addons-banner-cta"})} filled > ${e.icon?s1`<uas-icon code=${e.icon}></uas-icon>`:""} ${e.label} </uas-button> `}templateCTAButtonPlaceholder(){return s1` <uas-skeleton width="130px" height="38px"></uas-skeleton> `}templateCTAButtonError(){}templateBackground(){return s1` <div class="banner-background"> <div class="banner-background-graph"> <uas-hub-spoke-graph .centerItem=${s1`<uap-d-integrations-icon code="UOA" size="md"></uap-d-integrations-icon>`} .peripheralItems=${[s1`<uas-icon code="address-card" size="24" icon-pack="duotone"></uas-icon>`,s1`<uas-icon code="eye-slash" size="24" icon-pack="duotone"></uas-icon>`,s1`<uas-icon code="users" size="24" icon-pack="duotone"></uas-icon>`,s1`<uas-icon code="gem" size="24" icon-pack="duotone"></uas-icon>`,s1`<uas-icon code="layer-group" size="24" icon-pack="duotone"></uas-icon>`]} ></uas-hub-spoke-graph> </div> </div> `}};Hr=function(e,t,i,a){var n,o=arguments.length,r=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(r=(o<3?n(r):o>3?n(t,i,r):n(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r}([lJ("uap-page-addons-banner")],Hr);var Hs=a(8191),Hl=a.n(Hs);let Hc=class extends ld{static{this.styles=sf`${sm(Hl())}`}connectedCallback(){super.connectedCallback(),this.closest("uap-d-site-auth")||console.error("uap-page-addons: Error: <uap-page-addons> must be used inside <uap-d-site-auth>")}render(){return s1` <div class="page"> <div class="page-content"> <uap-page-addons-banner></uap-page-addons-banner> <div class="page-content-inner"> <div class="page-content-section"> <h2> ${(0,lX._x)("License summary","Addons","uncanny-automator")} </h2> <uap-d-license-summary></uap-d-license-summary> </div> <div class="page-content-section"> <h2> ${(0,lX.sprintf)((0,lX._x)("Only available in %1$s and higher","Addons","uncanny-automator"),p$[pD.PRO_PLUS].label)} </h2> <uap-page-addons-group list-code="plus"></uap-page-addons-group> </div> <div class="page-content-section"> <h2> ${(0,lX.sprintf)((0,lX._x)("Only available in %1$s","Addons","uncanny-automator"),p$[pD.PRO_ELITE].label)} </h2> <uap-page-addons-group list-code="elite"></uap-page-addons-group> </div> </div> </div> </div> `}};Hc=function(e,t,i,a){var n,o=arguments.length,r=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(r=(o<3?n(r):o>3?n(t,i,r):n(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r}([lJ("uap-page-addons")],Hc);var Hd=a(2814),Hu=a.n(Hd);let Hp=class extends ld{constructor(){super(...arguments),this.accountController=new vE(this,$K)}static{this.styles=sf`${sm(Hu())}`}render(){return s1` <header class="header"> <h1 class="header__title">${(0,lX.__)("Dashboard","uncanny-automator")}</h1> ${this.templateAccount()} </header> `}templateAccount(){return!this.accountController.result.data&&this.accountController.result.isError?s3:this.accountController.result.data?this.templateAccountMenu(this.accountController.result.data):s1`<uas-skeleton width="120px"></uas-skeleton>`}templateAccountMenu(e){return e.owner?this.templateMenu(s1`<span class="header__avatar"><img src=${e.owner.avatar_url} alt=""></span>`,e.owner.name,s1` <uas-button href=${e.links.my_account}>${(0,lX.__)("My account","uncanny-automator")}</uas-button> <uas-button href=${e.links.manage_sites}>${(0,lX.__)("Manage sites","uncanny-automator")}</uas-button> ${pP(e.license_scenario)?s1`<uas-button href=${e.links.disconnect_account}>${(0,lX.__)("Disconnect account","uncanny-automator")}</uas-button>`:s1`<uas-button href=${e.links.activate_license}>${(0,lX.__)("Manage license","uncanny-automator")}</uas-button>`} `):this.templateMenu(s1`<span class="header__avatar header__avatar--guest"><uas-icon code="user" size="sm"></uas-icon></span>`,(0,lX.__)("Guest","uncanny-automator"),s1`<uas-button href=${e.links.link_account}>${(0,lX.__)("Link your account","uncanny-automator")}</uas-button>`)}templateMenu(e,t,i){return s1` <uas-button-dropdown placement="bottom-end"> <uas-button slot="trigger" color="transparent"> ${e} ${t} <uas-icon code="angle-down"></uas-icon> </uas-button> ${i} </uas-button-dropdown> `}};Hp=function(e,t,i,a){var n,o=arguments.length,r=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(r=(o<3?n(r):o>3?n(t,i,r):n(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r}([lJ("uap-f-page-dashboard-header")],Hp);let Hh=rp(u7).min(1),Hg=o5().int().positive().nullable();var Hm=a(7271),Hf=a.n(Hm),Hy=function(e,t,i,a){var n,o=arguments.length,r=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(r=(o<3?n(r):o>3?n(t,i,r):n(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r};let Hb=class extends ld{constructor(){super(...arguments),this.toolLimit=null}static{this.styles=sf`${sm(Hf())}`}willUpdate(e){lQ(this,"account",bs,e,"uap-f-page-dashboard-connect"),lQ(this,"toolLimit",Hg,e,"uap-f-page-dashboard-connect")}render(){return this.account?s1` <section class="connect"> <h2 class="connect__title">${(0,lX.__)("Connect your AI","uncanny-automator")}</h2> <div class="connect__logos"> <uap-d-ai-app-logo brand=${ua.OPENAI} size=${pc.LG}></uap-d-ai-app-logo> <uap-d-ai-app-logo brand=${ua.CLAUDE} size=${pc.LG}></uap-d-ai-app-logo> <uap-d-ai-app-logo brand=${ua.GEMINI} size=${pc.LG}></uap-d-ai-app-logo> </div> <p class="connect__description">${(0,lX.__)("Manage and automate this site with ChatGPT, Claude, Gemini or any AI. Uncanny Automator is an MCP server for WordPress, which is how your AI connects.","uncanny-automator")}</p> ${this.templateLicense(this.account)} ${this.templateAction(this.account)} </section> `:s3}templateLicense(e){let t=pU(e,this.toolLimit);return t?s1`<p class="connect__license">${t}</p>`:s3}templateAction(e){return e.linked?s1` <uas-button filled size="lg" href=${b3(e.links.connect_ai,"dashboard_connect")} target=${pv.SELF} unsafe-force-target >${(0,lX.__)("Connect an AI","uncanny-automator")}</uas-button> `:s1`<uap-d-ai-link-account-steps .account=${e}></uap-d-ai-link-account-steps>`}};Hy([l0({type:Object})],Hb.prototype,"account",void 0),Hy([l0({type:Number,attribute:"tool-limit"})],Hb.prototype,"toolLimit",void 0),Hb=Hy([lJ("uap-f-page-dashboard-connect")],Hb);var Hv=a(738),H_=a.n(Hv),Hw=function(e,t,i,a){var n,o=arguments.length,r=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(r=(o<3?n(r):o>3?n(t,i,r):n(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r};let Hx=class extends ld{constructor(){super(...arguments),this.toolLimit=null}static{this.styles=sf`${sm(H_())}`}willUpdate(e){lQ(this,"connections",Hh,e,"uap-f-page-dashboard-connections"),lQ(this,"connectUrl",bi,e,"uap-f-page-dashboard-connections"),lQ(this,"account",bs,e,"uap-f-page-dashboard-connections"),lQ(this,"toolLimit",Hg,e,"uap-f-page-dashboard-connections")}render(){if(!this.connections)return s3;let e=new Map(bB(this.connections).map(({id:e,label:t})=>[e,t]));return s1` <section class="connections"> <h2 class="connections__title">${(0,lX.__)("Connected AI","uncanny-automator")}</h2> <ul class="connections__list"> ${this.connections.map(t=>this.templateRow(t,e.get(t.id)??t.name))} </ul> ${this.connections.some(e=>e.is_mine)?this.templateConnect():this.templateInvitation()} </section> `}templateConnect(){return this.connectUrl?s1` <uas-button class="connections__connect" color="secondary" href=${b3(this.connectUrl,"dashboard_connect_different")} target=${pv.SELF} unsafe-force-target > <uas-icon code="plus"></uas-icon> ${(0,lX.__)("Connect a different AI","uncanny-automator")} </uas-button> `:s3}templateInvitation(){if(!this.connectUrl)return s3;let e=this.account?pU(this.account,this.toolLimit):null;return s1` <div class="connections__invitation"> <h3 class="connections__invitation-title">${(0,lX.__)("Use your own AI app","uncanny-automator")}</h3> ${e?s1`<p class="connections__invitation-text">${e}</p>`:s3} <uas-button filled href=${this.connectUrl} target=${pv.SELF} unsafe-force-target >${(0,lX.__)("Connect your AI","uncanny-automator")}</uas-button> </div> `}templateRow(e,t){return s1` <li class="connections__row"> <uap-d-ai-app-logo .brand=${e.brand} size=${pc.MD}></uap-d-ai-app-logo> <div class="connections__details"> <span class="connections__name">${t}</span> <span class="connections__last-used">${this.templateConnectedBy(e)} ${"·"} ${this.templateLastUsed(e)}</span> </div> <uas-button class="connections__permissions" color="transparent" size="xs" href=${PO(dX.SETTINGS,{tab:d2.MCP,[d2.MCP]:d3.TOOLS})} > <uas-icon code="shield-check"></uas-icon> ${(0,lX.__)("Permissions","uncanny-automator")} </uas-button> </li> `}templateConnectedBy(e){return e.is_mine?(0,lX.__)("Connected by you","uncanny-automator"):(0,lX.sprintf)((0,lX.__)("Connected by %s","uncanny-automator"),e.connected_by.name)}templateLastUsed(e){if(null===e.last_used_at)return s1`${(0,lX.__)("Not used yet.","uncanny-automator")}`;let{before:t,after:i}=PR((0,lX.sprintf)((0,lX.__)("Last used %s","uncanny-automator"),""));return s1`${t}<uas-timer numeric="auto" .timestamp=${e.last_used_at}></uas-timer>${i}`}};Hw([l0({type:Array})],Hx.prototype,"connections",void 0),Hw([l0({type:String,attribute:"connect-url"})],Hx.prototype,"connectUrl",void 0),Hw([l0({type:Object})],Hx.prototype,"account",void 0),Hw([l0({type:Number,attribute:"tool-limit"})],Hx.prototype,"toolLimit",void 0),Hx=Hw([lJ("uap-f-page-dashboard-connections")],Hx);let Hk={page:1,per_page:3,orderby:bv.OCCURRED_AT,order:bw.DESC};var HE=a(6274),HS=a.n(HE);let HC=class extends ld{constructor(){super(...arguments),this.activityController=new vE(this,bN(Hk))}static{this.styles=sf`${sm(HS())}`}render(){return s1` <section class="activity"> <div class="activity__header"> <h2 class="activity__title">${(0,lX.__)("Recent AI activity","uncanny-automator")}</h2> <uas-button class="activity__view-all" color="transparent" size="xs" href=${PO(dX.LOGS,{tab:d1.AI_ACTIVITY})} >${(0,lX.__)("View all","uncanny-automator")}</uas-button> </div> ${this.templateBody()} </section> `}templateBody(){return!this.activityController.result.data&&this.activityController.result.isError?s1`<uas-alert type="error" heading=${(0,b4.escapeHTML)((0,lX.__)("Your AI activity couldn't be loaded.","uncanny-automator"))}></uas-alert>`:this.activityController.result.data?0===this.activityController.result.data.entries.length?s1`<p class="activity__empty">${(0,lX.__)("No AI activity yet.","uncanny-automator")}</p>`:s1` <ul class="activity__list"> ${this.activityController.result.data.entries.map(e=>this.templateRow(e))} </ul> `:this.templateSkeleton()}templateSkeleton(){return s1` <div class="activity__skeleton"> ${Array.from({length:Hk.per_page},()=>s1` <div class="activity__skeleton-row"> <uas-skeleton width="16px" height="16px"></uas-skeleton> <uas-skeleton width="16em"></uas-skeleton> <uas-skeleton class="activity__skeleton-time" width="4em"></uas-skeleton> </div> `)} </div> `}templateRow(e){return s1` <li class="activity__row"> <uap-d-ai-app-logo .brand=${e.client.brand} size=${pc.SM} label=${e.client.name}></uap-d-ai-app-logo> <span class="activity__summary">${e.summary}</span> <span class="activity__meta"> ${this.templateWarning(e)} <uas-timer format="short" numeric="auto" .timestamp=${e.occurred_at}></uas-timer> </span> </li> `}templateWarning(e){return bU(e.result)?s1`<uas-icon class="activity__warning" code="triangle-exclamation" role="img" aria-label=${bF(e.result)}></uas-icon>`:s3}};HC=function(e,t,i,a){var n,o=arguments.length,r=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(r=(o<3?n(r):o>3?n(t,i,r):n(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r}([lJ("uap-f-page-dashboard-activity")],HC);let HT=TX.min(1);var HI=a(7572),HD=a.n(HI),HA=function(e,t,i,a){var n,o=arguments.length,r=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(r=(o<3?n(r):o>3?n(t,i,r):n(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r};let H$=new Intl.NumberFormat,HO=class extends ld{static{this.styles=sf`${sm(HD())}`}willUpdate(e){lQ(this,"recipes",HT,e,"uap-f-page-dashboard-recipes")}render(){return this.recipes?s1` <section class="recipes"> <h2 class="recipes__title" id="recipes-title">${(0,lX.__)("Most active recipes","uncanny-automator")}</h2> <table class="recipes__table" aria-labelledby="recipes-title"> <thead> <tr> <th class="recipes__heading" scope="col">${(0,lX.__)("Title","uncanny-automator")}</th> <th class="recipes__heading recipes__heading--runs" scope="col">${(0,lX.__)("Runs","uncanny-automator")}</th> </tr> </thead> <tbody> ${this.recipes.map(e=>this.templateRow(e))} </tbody> </table> </section> `:s3}templateRow(e){let t=""===e.title?(0,lX.__)("(no title)","uncanny-automator"):e.title,i=H$.format(e.runs);return s1` <tr class="recipes__row"> <th class="recipes__cell recipes__cell--title" scope="row"> <a class="recipes__link" href=${e.links.edit}>${t}</a> </th> <td class="recipes__cell recipes__cell--runs"> <a class="recipes__link" href=${e.links.logs} aria-label=${String((0,lX.sprintf)((0,lX._n)("%1$s run of %2$s","%1$s runs of %2$s",e.runs,"uncanny-automator"),i,t))} >${i}</a> </td> </tr> `}};HA([l0({type:Array})],HO.prototype,"recipes",void 0),HO=HA([lJ("uap-f-page-dashboard-recipes")],HO);let HR={UNLIMITED:"unlimited",NORMAL:"normal",NEAR:"near",AT_LIMIT:"at_limit"};function HM(e){return e.unlimited||null===e.limit?HR.UNLIMITED:e.used>=e.limit?HR.AT_LIMIT:e.used/e.limit>=.7?HR.NEAR:HR.NORMAL}rT(HR);var HL=a(3896),HN=a.n(HL),HP=function(e,t,i,a){var n,o=arguments.length,r=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(r=(o<3?n(r):o>3?n(t,i,r):n(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r};let Hz=new Intl.NumberFormat,HU=class extends ld{constructor(){super(...arguments),this.hasConnections=!1,this.usageController=new vE(this,bP)}static{this.styles=sf`${sm(HN())}`}willUpdate(e){lQ(this,"account",bs,e,"uap-f-page-dashboard-usage")}render(){return this.account?s1` <section class="usage"> <h2 class="usage__title">${(0,lX.__)("Usage","uncanny-automator")}</h2> ${this.templateBody(this.account)} </section> `:s3}templateBody(e){return!this.usageController.result.data&&this.usageController.result.isError?s1`<uas-alert type="error" heading=${(0,b4.escapeHTML)((0,lX.__)("Your usage couldn't be loaded.","uncanny-automator"))}></uas-alert>`:this.usageController.result.data?this.templateUsage(e,this.usageController.result.data):this.templateSkeleton()}templateSkeleton(){return s1` <div class="usage__meters"> ${Array.from({length:this.hasConnections?2:1},()=>s1` <div class="usage__skeleton-meter"> <div class="usage__meter-header"> <uas-skeleton width="8em"></uas-skeleton> <uas-skeleton width="4em"></uas-skeleton> </div> <uas-skeleton width="100%" height="8px"></uas-skeleton> </div> `)} </div> `}templateUsage(e,t){let i=[];return t.app_credits&&i.push(this.templateMeter((0,lX.__)("App credits","uncanny-automator"),t.app_credits)),this.hasConnections&&t.ai_tool_uses&&i.push(this.templateMeter((0,lX.__)("AI tool uses today","uncanny-automator"),t.ai_tool_uses,s1`<p class="usage__shared">${(0,lX.__)("Shared across sites on this license.","uncanny-automator")}</p>${this.templateToolStatus(e,t.ai_tool_uses)}`)),s1` ${i.length>0?s1`<div class="usage__meters">${i}</div>`:s3} ${this.templateUpgradeButton(e,t)} `}templateMeter(e,t,i=s3){if(null===t.limit)return s1` <div class="usage__meter"> <div class="usage__meter-header"> <span class="usage__label">${e}</span> <span class="usage__unlimited"> ${(0,lX.__)("Unlimited","uncanny-automator")} <uas-chip label=${String((0,lX.__)("Pro","uncanny-automator"))} color="success" filled></uas-chip> </span> </div> </div> `;let a=t.unlimited||null===t.limit?0:Math.min(100,Math.round(t.used/t.limit*100));return s1` <div class="usage__meter"> <div class="usage__meter-header"> <span class="usage__label">${e}</span> <span class="usage__count">${(0,lX.sprintf)((0,lX.__)("%1$s / %2$s","uncanny-automator"),Hz.format(t.used),Hz.format(t.limit))}</span> </div> <uas-progress-linear class="usage__bar" value=${a} role="progressbar" aria-label=${e} aria-valuemin="0" aria-valuemax="100" aria-valuenow=${a} ></uas-progress-linear> ${i} </div> `}templateToolStatus(e,t){switch(HM(t)){case HR.NEAR:return this.templateResets(t);case HR.AT_LIMIT:return s1` <uas-alert type="error" heading=${(0,b4.escapeHTML)((0,lX.__)("Daily limit reached","uncanny-automator"))}> ${this.templateContinues(t)} <a class="usage__alert-link" href=${this.getUpgradeURL(e)}>${this.getUpgradeLabel(e)}</a> </uas-alert> `;default:return s3}}templateContinues(e){let{before:t,after:i}=PR((0,lX.sprintf)((0,lX.__)("Your AI can continue %s.","uncanny-automator"),""));return s1`${t}<uas-timer numeric="auto" .timestamp=${e.resets_at}></uas-timer>${i}`}templateResets(e){let{before:t,after:i}=PR((0,lX.sprintf)((0,lX.__)("Resets %s","uncanny-automator"),""));return s1`<p class="usage__resets">${t}<uas-timer numeric="auto" .timestamp=${e.resets_at}></uas-timer>${i}</p>`}templateUpgradeButton(e,t){let i,a=this.hasConnections&&rK(t.ai_tool_uses)&&HM(t.ai_tool_uses)===HR.AT_LIMIT;return(i=[t.app_credits,t.ai_tool_uses].filter(rK)).length>0&&i.every(e=>HM(e)===HR.UNLIMITED)||a?s3:s1` <uas-button class="usage__upgrade" color="transparent" size="xs" href=${this.getUpgradeURL(e)} >${this.getUpgradeLabel(e)}</uas-button> `}getUpgradeURL(e){return pz(e.license_scenario)?e.links.activate_license:PO(dX.PLANS)}getUpgradeLabel(e){return pz(e.license_scenario)?(0,lX.__)("Activate your Pro license","uncanny-automator"):(0,lX.__)("Get unlimited with Pro","uncanny-automator")}};HP([l0({type:Object})],HU.prototype,"account",void 0),HP([l0({type:Boolean,attribute:"has-connections"})],HU.prototype,"hasConnections",void 0),HU=HP([lJ("uap-f-page-dashboard-usage")],HU);var HF=a(7171),Hj=a.n(HF);let HB=class extends ld{constructor(){super(...arguments),this.statusController=new vE(this,PA)}static{this.styles=sf`${sm(Hj())}`}render(){return s1` <section class="status"> <h2 class="status__title">${(0,lX.__)("Status","uncanny-automator")}</h2> ${this.templateBody()} <uas-button class="status__view-full" color="transparent" size="xs" href=${PO(dX.STATUS)} >${(0,lX.__)("View full status","uncanny-automator")}</uas-button> </section> `}templateBody(){return!this.statusController.result.data&&this.statusController.result.isError?s1`<uas-alert type="error" heading=${(0,b4.escapeHTML)((0,lX.__)("Your plugin versions couldn't be loaded.","uncanny-automator"))}></uas-alert>`:this.statusController.result.data?s1` <ul class="status__list"> ${this.statusController.result.data.map(e=>this.templateRow(e))} </ul> `:this.templateSkeleton()}templateSkeleton(){return s1` <div class="status__skeleton-row"> <uas-skeleton width="12em"></uas-skeleton> <uas-skeleton width="16px" height="16px"></uas-skeleton> </div> `}templateRow(e){return s1` <li class="status__row"> <span class="status__plugin"> <span class="status__name">${e.name}</span> <span class="status__version">${e.version}</span> </span> ${this.templateUpdate(e)} </li> `}templateUpdate(e){return null===e.update?s1`<uas-icon class="status__up-to-date" code="circle-check" role="img" aria-label=${String((0,lX.__)("Up to date","uncanny-automator"))}></uas-icon>`:s1` <uas-button class="status__update" size="sm" href=${e.update.url} >${(0,lX.sprintf)((0,lX.__)("Update to %s","uncanny-automator"),e.update.version)}</uas-button> `}};HB=function(e,t,i,a){var n,o=arguments.length,r=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(r=(o<3?n(r):o>3?n(t,i,r):n(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r}([lJ("uap-f-page-dashboard-status")],HB);let HH=$Q.min(1);var HV=a(9256),Hq=a.n(HV),HZ=function(e,t,i,a){var n,o=arguments.length,r=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(r=(o<3?n(r):o>3?n(t,i,r):n(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r};let HW=class extends ld{static{this.styles=sf`${sm(Hq())}`}willUpdate(e){lQ(this,"posts",HH,e,"uap-f-page-dashboard-news")}render(){return this.posts?s1` <section class="news"> <div class="news__header"> <h2 class="news__title">${(0,lX.__)("Latest news","uncanny-automator")}</h2> <uas-button class="news__view-all" color="transparent" size="xs" href=${r0("https://automatorplugin.com/blog/",{campaign:br.LEARN_MORE,content:"dashboard-latest-news-view-all"})} >${(0,lX.__)("View all","uncanny-automator")}</uas-button> </div> <ul class="news__list"> ${this.posts.map(e=>this.templateRow(e))} </ul> </section> `:s3}templateRow(e){return s1` <li class="news__row"> <a class="news__link" href=${r0(e.url,{campaign:br.LEARN_MORE,content:"dashboard-latest-news"})} target="_blank" rel="noopener noreferrer" aria-label=${String((0,lX.sprintf)((0,lX.__)("%s (opens in a new tab)","uncanny-automator"),e.title))} >${e.title}</a> <span class="news__published"> <uas-timer numeric="auto" .timestamp=${e.published_at}></uas-timer> </span> </li> `}};HZ([l0({type:Array})],HW.prototype,"posts",void 0),HW=HZ([lJ("uap-f-page-dashboard-news")],HW),rE(dQ,TX);let HG={[dY.NO_ACCOUNT]:D7,[dY.PRO_INACTIVE]:D7,[dY.CONNECTED]:D7,[dY.NEAR_LIMIT]:D7,[dY.AT_LIMIT]:D7,[dY.PRO]:D7,[dY.EMPTY]:[]},HK=rg({recipes:TX}).strict(),HY={queryKey:["most-active-recipes"],queryFn:async function(){if(d4.DEV.RETURN_MOCK_DATA){await new Promise(e=>setTimeout(e,d4.DEV.MOCK_DELAY_MS));let e={recipes:HG[d4.DEV.MOCK_SCENARIO]};return HK.parse(e).recipes}return(await dV({endpoint:"recipe/get-most-active",method:"GET",responseSchema:HK,useEnvelope:!0})).recipes},staleTime:0};var HQ=a(4719),HX=a.n(HQ),HJ=function(e,t,i,a){var n,o=arguments.length,r=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(r=(o<3?n(r):o>3?n(t,i,r):n(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r};let H1=class extends ld{constructor(){super(...arguments),this.canManageAi=!1,this.accountController=new vE(this,$K),this.usageController=new vE(this,()=>({...bP,enabled:this.canManageAi})),this.connectionsController=new vE(this,()=>({...bO,enabled:this.canManageAi})),this.recipesController=new vE(this,HY),this.newsController=new vE(this,$J)}static{this.styles=sf`${sm(HX())}`}connectedCallback(){let e;super.connectedCallback(),async function(){if("1"===new URLSearchParams(window.location.search).get("automator_open_agent"))try{var e;let t=await bQ(4e3,100);if(!t)return;await t.ready,await t.open({placement:bH.DOCKED,focus:!0});let i=(e=window.location.search,(new URLSearchParams(e).get("automator_agent_prompt")??"").trim());i&&t.send&&await t.send({text:i,open:!0,focus:!0})}catch{}}(),this.canManageAi&&(this.unsubscribeAiConnectionsRefresh=(e=()=>{"visible"===document.visibilityState&&dW.invalidateQueries({queryKey:bA.all()})},document.addEventListener("visibilitychange",e),()=>{document.removeEventListener("visibilitychange",e)}))}disconnectedCallback(){this.unsubscribeAiConnectionsRefresh?.(),this.unsubscribeAiConnectionsRefresh=void 0,super.disconnectedCallback()}render(){return s1` <div class="dashboard"> <uap-f-page-dashboard-header></uap-f-page-dashboard-header> ${this.templateGrid()} </div> `}templateGrid(){let e=this.hasMainColumn();return s1` <div class=${e?"dashboard__grid":"dashboard__grid dashboard__grid--single"}> ${e?s1`<div class="dashboard__main">${this.templateMain()}</div>`:s3} ${this.templateSide()} </div> `}templateSide(){return s1` <div class="dashboard__side"> ${this.templateUsage()} <uap-f-page-dashboard-status></uap-f-page-dashboard-status> ${this.templateNews()} </div> `}templateMain(){return s1` ${this.canManageAi?this.templateAi():s3} ${this.templateRecipes()} `}templateAi(){return!this.connectionsController.result.data&&this.connectionsController.result.isError?this.templateErrorCard((0,lX.__)("Your AI connections couldn't be loaded.","uncanny-automator")):this.connectionsController.result.data?0===this.connectionsController.result.data.length?this.templateConnect():s1` <uap-f-page-dashboard-connections .connections=${this.connectionsController.result.data} .connectUrl=${this.accountController.result.data?.links.connect_ai} .account=${this.accountController.result.data} .toolLimit=${this.usageController.result.data?.ai_tool_uses?.limit??null} ></uap-f-page-dashboard-connections> <uap-f-page-dashboard-activity></uap-f-page-dashboard-activity> `:this.templateSkeletonCard()}templateConnect(){return!this.accountController.result.data&&this.accountController.result.isError?this.templateErrorCard((0,lX.__)("Your account couldn't be loaded.","uncanny-automator")):this.accountController.result.data?s1` <uap-f-page-dashboard-connect .account=${this.accountController.result.data} .toolLimit=${this.usageController.result.data?.ai_tool_uses?.limit??null} ></uap-f-page-dashboard-connect> `:this.templateSkeletonCard()}templateRecipes(){return!this.recipesController.result.data&&this.recipesController.result.isError?this.templateErrorCard((0,lX.__)("Your most active recipes couldn't be loaded.","uncanny-automator")):this.recipesController.result.data?0===this.recipesController.result.data.length?s3:s1`<uap-f-page-dashboard-recipes .recipes=${this.recipesController.result.data}></uap-f-page-dashboard-recipes>`:this.templateSkeletonCard()}templateNews(){return!this.newsController.result.data&&this.newsController.result.isError?s3:this.newsController.result.data?0===this.newsController.result.data.length?s3:s1`<uap-f-page-dashboard-news .posts=${this.newsController.result.data}></uap-f-page-dashboard-news>`:this.templateSkeletonCard()}hasMainColumn(){return!!this.canManageAi||!this.recipesController.result.data||this.recipesController.result.data.length>0}templateUsage(){return this.accountController.result.data&&(this.accountController.result.data.linked||pz(this.accountController.result.data.license_scenario))?s1` <uap-f-page-dashboard-usage .account=${this.accountController.result.data} ?has-connections=${this.hasConnections()} ></uap-f-page-dashboard-usage> `:s3}hasConnections(){return!!this.canManageAi&&!!this.connectionsController.result.data&&this.connectionsController.result.data.length>0}templateSkeletonCard(){return s1` <div class="dashboard__card"> <uas-skeleton width="8em"></uas-skeleton> <uas-skeleton width="100%"></uas-skeleton> <uas-skeleton width="60%"></uas-skeleton> </div> `}templateErrorCard(e){return s1` <div class="dashboard__card"> <uas-alert type="error" heading=${(0,b4.escapeHTML)(e)}></uas-alert> </div> `}};HJ([l0({type:Boolean,attribute:"can-manage-ai"})],H1.prototype,"canManageAi",void 0),H1=HJ([lJ("uap-f-page-dashboard")],H1),a.p;class H0 extends Event{constructor(e,t,i,a){super("context-request",{bubbles:!0,composed:!0}),this.context=e,this.contextTarget=t,this.callback=i,this.subscribe=a??!1}}class H2{constructor(e,t,i,a){(this.subscribe=!1,this.provided=!1,this.value=void 0,this.t=(e,t)=>{this.unsubscribe&&(this.unsubscribe!==t&&(this.provided=!1,this.unsubscribe()),this.subscribe||this.unsubscribe()),this.value=e,this.host.requestUpdate(),this.provided&&!this.subscribe||(this.provided=!0,this.callback&&this.callback(e,t)),this.unsubscribe=t},this.host=e,void 0!==t.context)?(this.context=t.context,this.callback=t.callback,this.subscribe=t.subscribe??!1):(this.context=t,this.callback=i,this.subscribe=a??!1),this.host.addController(this)}hostConnected(){this.dispatchRequest()}hostDisconnected(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=void 0)}dispatchRequest(){this.host.dispatchEvent(new H0(this.context,this.host,this.t,this.subscribe))}}class H3{get value(){return this.o}set value(e){this.setValue(e)}setValue(e,t=!1){let i=t||!Object.is(e,this.o);this.o=e,i&&this.updateObservers()}constructor(e){this.subscriptions=new Map,this.updateObservers=()=>{for(let[e,{disposer:t}]of this.subscriptions)e(this.o,t)},void 0!==e&&(this.value=e)}addCallback(e,t,i){if(!i)return void e(this.value);this.subscriptions.has(e)||this.subscriptions.set(e,{disposer:()=>{this.subscriptions.delete(e)},consumerHost:t});let{disposer:a}=this.subscriptions.get(e);e(this.value,a)}clearCallbacks(){this.subscriptions.clear()}}class H4 extends Event{constructor(e,t){super("context-provider",{bubbles:!0,composed:!0}),this.context=e,this.contextTarget=t}}class H6 extends H3{constructor(e,t,i){super(void 0!==t.context?t.initialValue:i),this.onContextRequest=e=>{if(e.context!==this.context)return;let t=e.contextTarget??e.composedPath()[0];t!==this.host&&(e.stopPropagation(),this.addCallback(e.callback,t,e.subscribe))},this.onProviderRequest=e=>{if(e.context!==this.context||(e.contextTarget??e.composedPath()[0])===this.host)return;let t=new Set;for(let[e,{consumerHost:i}]of this.subscriptions)t.has(e)||(t.add(e),i.dispatchEvent(new H0(this.context,i,e,!0)));e.stopPropagation()},this.host=e,void 0!==t.context?this.context=t.context:this.context=t,this.attachListeners(),this.host.addController?.(this)}attachListeners(){this.host.addEventListener("context-request",this.onContextRequest),this.host.addEventListener("context-provider",this.onProviderRequest)}hostConnected(){this.host.dispatchEvent(new H4(this.context,this.host))}}function H5({context:e}){return(t,i)=>{let a=new WeakMap;if("object"==typeof i)return{get(){return t.get.call(this)},set(e){return a.get(this).setValue(e),t.set.call(this,e)},init(t){return a.set(this,new H6(this,{context:e,initialValue:t})),t}};{let n;t.constructor.addInitializer(t=>{a.set(t,new H6(t,{context:e}))});let o=Object.getOwnPropertyDescriptor(t,i);if(void 0===o){let e=new WeakMap;n={get(){return e.get(this)},set(t){a.get(this).setValue(t),e.set(this,t)},configurable:!0,enumerable:!0}}else{let e=o.set;n={...o,set(t){a.get(this).setValue(t),e?.call(this,t)}}}return void Object.defineProperty(t,i,n)}}}function H8({context:e,subscribe:t}){return(i,a)=>{"object"==typeof a?a.addInitializer(function(){new H2(this,{context:e,callback:e=>{i.set.call(this,e)},subscribe:t})}):i.constructor.addInitializer(i=>{new H2(i,{context:e,callback:e=>{i[a]=e},subscribe:t})})}}let H7={START:"start",END:"end"},H9=rT(H7),Ve={API:"api",BACKDROP:"backdrop",CLOSE_BUTTON:"close-button",DEFAULT:"default",EXTERNAL:"external",PERSISTENCE:"persistence"},Vt=rT(Ve),Vi=rg({open:re(),reason:Vt}),Va=Symbol("side-sheet-mobile");function Vn(e){let t=e.assignedSlot??e.parentNode;for(;t;){if(t instanceof Element&&"uas-side-sheet-layout"===t.localName)return t;t=t instanceof ShadowRoot?t.host:t instanceof Element&&t.assignedSlot?t.assignedSlot:t.parentNode}return null}let Vo=sf`:host{display:block;block-size:100%}.root{display:block;position:relative;block-size:100%;width:0;overflow:hidden;transition:width var(--uas--side-sheet--custom-transition-duration, var(--uas--side-sheet--transition-duration, 150ms)) ease-in-out}:host([open]) .root{width:clamp(var(--uas--side-sheet--custom-min-width, var(--uas--side-sheet--min-width)),var(--uas--side-sheet--custom-width, var(--uas--side-sheet--width, 300px)),var(--uas--side-sheet--custom-max-width, var(--uas--side-sheet--max-width)));overflow:visible}:host([open][collapsed]) .root{width:var(--uas--side-sheet--custom-collapsed-width, var(--uas--side-sheet--collapsed-width))}.root[no-transition],.root[no-transition] .panel{transition:none}.panel{display:flex;flex-direction:column;width:clamp(var(--uas--side-sheet--custom-min-width, var(--uas--side-sheet--min-width)),var(--uas--side-sheet--custom-width, var(--uas--side-sheet--width, 300px)),var(--uas--side-sheet--custom-max-width, var(--uas--side-sheet--max-width)));block-size:100%;box-sizing:border-box;outline:none;background:var(--uas--color--surface);border-inline-start:1px solid var(--uas--color--border, #e0e0e0);border-top-left-radius:var(--uas--side-sheet--custom-border-radius-top-left, var(--uas--side-sheet--border-radius-top-left));border-top-right-radius:var(--uas--side-sheet--custom-border-radius-top-right, var(--uas--side-sheet--border-radius-top-right));border-bottom-left-radius:var(--uas--side-sheet--custom-border-radius-bottom-left, var(--uas--side-sheet--border-radius-bottom-left));border-bottom-right-radius:var(--uas--side-sheet--custom-border-radius-bottom-right, var(--uas--side-sheet--border-radius-bottom-right));overflow:hidden;transition:width var(--uas--side-sheet--custom-transition-duration, var(--uas--side-sheet--transition-duration, 150ms)) ease-in-out}:host([placement=start]) .panel{border-inline-start:none;border-inline-end:1px solid var(--uas--color--border, #e0e0e0)}:host([collapsed]) .root:not([mobile]) .panel{width:var(--uas--side-sheet--custom-collapsed-width, var(--uas--side-sheet--collapsed-width))}.header{font-family:var(--uas--typography--title-small-font-family);font-size:var(--uas--typography--title-small-font-size);line-height:var(--uas--typography--title-small-line-height);font-weight:var(--uas--typography--title-small-font-weight);letter-spacing:var(--uas--typography--title-small-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;display:flex;align-items:center;justify-content:space-between;height:var(--uas--side-sheet--custom-header-height, var(--uas--side-sheet--header-height));padding:0 var(--uas--side-sheet--custom-left-padding, var(--uas--side-sheet--left-padding));gap:var(--uas--base--spacing-sm);border-bottom:var(--uas--side-sheet--custom-header-border, var(--uas--side-sheet--header-border));flex-shrink:0;box-sizing:border-box}.header-content{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding-left:var(--uas--side-sheet--custom-button-left-padding, var(--uas--side-sheet--button-left-padding))}:host([collapsed]) .header-content{display:none}.header-close{--uas--button--size-custom-padding-left: var(--uas--side-sheet--custom-button-left-padding, var(--uas--side-sheet--button-left-padding));--uas--button--size-custom-padding-right: var(--uas--side-sheet--custom-button-left-padding, var(--uas--side-sheet--button-left-padding))}.body{--uas--button--size-custom-padding-left: var(--uas--side-sheet--custom-button-left-padding, var(--uas--side-sheet--button-left-padding));--uas--button--size-custom-padding-right: var(--uas--side-sheet--custom-button-left-padding, var(--uas--side-sheet--button-left-padding));flex:1;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;padding-left:var(--uas--side-sheet--custom-left-padding, var(--uas--side-sheet--left-padding));padding-right:var(--uas--side-sheet--custom-left-padding, var(--uas--side-sheet--left-padding))}.body::-webkit-scrollbar{background-color:rgba(0,0,0,.09)}.body::-webkit-scrollbar:vertical{width:10px}.body::-webkit-scrollbar-thumb{background:rgba(0,0,0,.3);border-radius:150px;background-clip:padding-box;border:2px solid rgba(0,0,0,0)}.body::-webkit-scrollbar-thumb:vertical{min-height:10px}.backdrop{display:none}.root[mobile]{display:none}:host([open]) .root[mobile]{display:block;position:absolute;inset:0;width:auto;height:auto;overflow-x:clip;overflow-y:visible;transition:none;z-index:var(--uas--side-sheet--custom-z-index, var(--uas--side-sheet--z-index, 1000))}:host([open]) .root[mobile] .backdrop{display:block;position:absolute;inset:0;background:var(--uas--side-sheet--custom-backdrop-color, var(--uas--side-sheet--backdrop-color, rgba(0, 0, 0, 0.4)));opacity:1;transition:opacity var(--uas--side-sheet--custom-transition-duration, var(--uas--side-sheet--transition-duration, 150ms)) ease-in-out}@starting-style{:host([open]) .root[mobile] .backdrop{opacity:0}}:host([open]) .root[mobile] .panel{position:absolute;top:0;bottom:0;z-index:1;inset-inline-end:0;box-shadow:var(--uas--base--shadow-xl, 0 4px 30px 0 rgba(0, 0, 0, 0.2));transform:translateX(0);transition:transform var(--uas--side-sheet--custom-transition-duration, var(--uas--side-sheet--transition-duration, 150ms)) ease-in-out}@starting-style{:host([open]) .root[mobile] .panel{transform:translateX(100%)}}:host([open][placement=start]) .root[mobile] .panel{inset-inline-end:auto;inset-inline-start:0}@starting-style{:host([open][placement=start]) .root[mobile] .panel{transform:translateX(-100%)}}`,Vr=sf`:host{display:block;block-size:100%}.root{display:grid;grid-template-columns:auto 1fr auto;grid-template-rows:1fr;position:relative;block-size:100%}.start,.end{overflow:hidden;min-block-size:0}.content{min-width:0;min-block-size:0;overflow:auto}.root[mobile] .start,.root[mobile] .end{overflow:visible}`;var Vs=function(e,t,i,a){var n,o=arguments.length,r=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(r=(o<3?n(r):o>3?n(t,i,r):n(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r};class Vl extends ld{constructor(){super(...arguments),this.mobileBreakpoint=1024,this._mobile=!1}connectedCallback(){super.connectedCallback(),this._setupResizeObserver()}disconnectedCallback(){super.disconnectedCallback(),this._resizeObserver?.disconnect(),this._resizeObserver=void 0}render(){return s1` <div class="root" part="root" ?mobile=${this._mobile}> <div class="start" part="start"> <slot name="start"></slot> </div> <div class="content" part="content"> <slot></slot> </div> <div class="end" part="end"> <slot name="end"></slot> </div> </div> `}_setupResizeObserver(){this._resizeObserver=new ResizeObserver(e=>{for(let t of e){let e=t.contentRect.width<=this.mobileBreakpoint;e!==this._mobile&&(this._mobile=e)}}),this._resizeObserver.observe(this)}get isMobile(){return this._mobile}}Vl.styles=Vr,Vs([l0({type:Number,attribute:"mobile-breakpoint"})],Vl.prototype,"mobileBreakpoint",void 0),Vs([H5({context:Va})],Vl.prototype,"_mobile",void 0),"u">typeof customElements&&!customElements.get("uas-side-sheet-layout")&&customElements.define("uas-side-sheet-layout",Vl);var Vc=function(e,t,i,a){var n,o=arguments.length,r=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(r=(o<3?n(r):o>3?n(t,i,r):n(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r};let Vd="uas.side-sheet.opened";class Vu extends ld{constructor(){super(...arguments),this.open=!1,this.placement=H7.END,this.collapsed=!1,this.collapsible=!1,this.noHeader=!1,this.defaultOpen=!1,this._mobile=!1,this._instanceId=lq(),this._parentControlledOpen=!1,this._collapsibleReady=!1,this._suppressTransition=!1,this._boundCoordinationHandler=this._handleCoordinationEvent.bind(this)}connectedCallback(){super.connectedCallback(),this._parentControlledOpen=this.hasAttribute("open"),window.addEventListener(Vd,this._boundCoordinationHandler)}disconnectedCallback(){super.disconnectedCallback(),window.removeEventListener(Vd,this._boundCoordinationHandler)}firstUpdated(){this._restorePersistedState(),requestAnimationFrame(()=>{this._collapsibleReady=!0,this._enforceCollapsibleConstraints(),requestAnimationFrame(()=>{this._resolveDefaultOpen()})})}willUpdate(e){lQ(this,"placement",H9,e,"uas-side-sheet",H7.END)}updated(e){let t=e.get("open");void 0!==t&&t!==this.open&&(this.open?this._onOpen():this._onClose()),this._collapsibleReady&&this._enforceCollapsibleConstraints()}openSideSheet(e=Ve.API){if(this.open&&this.collapsible&&!this._mobile&&this.collapsed){this.collapsed=!1;return}if(this.open)return;let t=lw({element:this,eventName:"uas.side-sheet.before-open",options:{bubbles:!0,composed:!0,cancelable:!0}});t?.defaultPrevented||(this.open=!0,this._dispatchChangeEvent(!0,e))}closeSideSheet(e=Ve.API){if(!this.open)return;if(this.collapsible&&!this._mobile){this.collapsed=!0;return}let t=lw({element:this,eventName:"uas.side-sheet.before-close",options:{bubbles:!0,composed:!0,cancelable:!0}});t?.defaultPrevented||(this.open=!1,this._dispatchChangeEvent(!1,e))}toggleSideSheet(e=Ve.API){if(this.collapsible&&!this._mobile&&this.open){this.collapsed=!this.collapsed;return}this.open?this.closeSideSheet(e):this.openSideSheet(e)}render(){return s1` <div class="root" part="root" ?mobile=${this._mobile} ?no-transition=${this._suppressTransition}> <div class="backdrop" part="backdrop" @click=${this._handleBackdropClick} ></div> <div class="panel" part="panel" tabindex="-1" > ${this.noHeader?s3:this._templateHeader} ${this._templateBody} </div> </div> `}get _templateHeader(){return s1` <div class="header" part="header"> <div class="header-content"> <slot name="header"></slot> </div> <div class="header-close"> <slot name="close"> ${this._templateDefaultCloseButton} </slot> </div> </div> `}get _templateDefaultCloseButton(){return s1` <uas-button color="transparent" @click=${this._handleCloseButtonClick} > <uas-icon code="xmark"></uas-icon> </uas-button> `}get _templateBody(){return s1` <div class="body" part="body"> <slot></slot> </div> `}_handleBackdropClick(){this.closeSideSheet(Ve.BACKDROP)}_handleCloseButtonClick(){this.closeSideSheet(Ve.CLOSE_BUTTON)}_handleCoordinationEvent(e){if(!(e instanceof CustomEvent))return;let t=e.detail;if(!t||"object"!=typeof t)return;let i=t.id,a=t.placement,n=t.layout??null;i!==this._instanceId&&a===this.placement&&this.open&&n===Vn(this)&&this.closeSideSheet(Ve.EXTERNAL)}_enforceCollapsibleConstraints(){let e=void 0!==this._previousMobile&&this._previousMobile!==this._mobile;this.collapsible&&e?this._mobile?this.collapsed?(this.collapsed=!1,this.open=!1):this.open&&(this.collapsed=!1):this.open?this.collapsed=!1:(this.collapsed=!0,this.open=!0):(this._mobile&&this.collapsed&&(this.collapsed=!1),!this.collapsible||this._mobile||this.open||(this.collapsed=!0,this.open=!0)),this._previousMobile=this._mobile}_resolveDefaultOpen(){!this.defaultOpen||!this.isConnected||this._parentControlledOpen||this.collapsible||this.open||this._mobile||this._hasPersistedState()||(this._suppressTransition=!0,this.openSideSheet(Ve.DEFAULT),this.updateComplete.then(()=>{requestAnimationFrame(()=>{requestAnimationFrame(()=>{this._suppressTransition=!1})})}))}_onOpen(){window.dispatchEvent(new CustomEvent(Vd,{detail:{id:this._instanceId,placement:this.placement,sheetId:this.sheetId,layout:Vn(this)}})),this._saveFocusAndFocusPanel(),this._persistState(!0),lw({element:this,eventName:"uas.side-sheet.after-open",options:{bubbles:!0,composed:!0}})}_onClose(){this._restoreFocus(),this._persistState(!1),lw({element:this,eventName:"uas.side-sheet.after-close",options:{bubbles:!0,composed:!0}})}_dispatchChangeEvent(e,t){lw({element:this,eventName:"uas.side-sheet.change",data:{open:e,reason:t},schema:Vi,options:{bubbles:!0,composed:!0}})}_saveFocusAndFocusPanel(){document.activeElement&&document.activeElement instanceof HTMLElement&&(this._previouslyFocusedElement=document.activeElement),this.updateComplete.then(()=>{this._panel?.focus({preventScroll:!0})})}_restoreFocus(){this._previouslyFocusedElement&&document.contains(this._previouslyFocusedElement)&&this._previouslyFocusedElement.focus(),this._previouslyFocusedElement=void 0}_restorePersistedState(){if(this.sheetId&&!this._parentControlledOpen)try{"open"===localStorage.getItem(this.sheetId)&&this.openSideSheet(Ve.PERSISTENCE)}catch{}}_persistState(e){if(this.sheetId)try{e?localStorage.setItem(this.sheetId,"open"):localStorage.removeItem(this.sheetId)}catch{}}_hasPersistedState(){if(!this.sheetId)return!1;try{return null!==localStorage.getItem(this.sheetId)}catch{return!1}}}Vu.styles=Vo,Vc([l0({type:Boolean,reflect:!0})],Vu.prototype,"open",void 0),Vc([l0({type:String,reflect:!0})],Vu.prototype,"placement",void 0),Vc([l0({type:String,attribute:"sheet-id"})],Vu.prototype,"sheetId",void 0),Vc([l0({type:Boolean,reflect:!0})],Vu.prototype,"collapsed",void 0),Vc([l0({type:Boolean,reflect:!0})],Vu.prototype,"collapsible",void 0),Vc([l0({type:Boolean,reflect:!0,attribute:"no-header"})],Vu.prototype,"noHeader",void 0),Vc([l0({type:Boolean,reflect:!0,attribute:"default-open"})],Vu.prototype,"defaultOpen",void 0),Vc([H8({context:Va,subscribe:!0})],Vu.prototype,"_mobile",void 0),Vc([l2()],Vu.prototype,"_suppressTransition",void 0),Vc([l4(".panel")],Vu.prototype,"_panel",void 0),"u">typeof customElements&&!customElements.get("uas-side-sheet")&&customElements.define("uas-side-sheet",Vu);let Vp={success:"var( --uas--color--status-on-success-container )",error:"var( --uas--color--status-on-error-container )",warning:"var( --uas--color--status-on-warning-container )",neutral:"var( --uas--typography--color-secondary )",muted:"var( --uas--typography--color-tertiary )"};var Vh=a(406),Vg=a.n(Vh),Vm=function(e,t,i,a){var n,o=arguments.length,r=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(r=(o<3?n(r):o>3?n(t,i,r):n(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r};let Vf=class extends ld{constructor(){super(...arguments),this.hideLabel=!1}static{this.styles=sf`${sm(Vg())}`}willUpdate(e){lQ(this,"status",CQ.optional(),e,"uap-f-recipe-log-status"),lQ(this,"hideLabel",re(),e,"uap-f-recipe-log-status"),lQ(this,"count",o5().int().nonnegative().optional(),e,"uap-f-recipe-log-status")}render(){if(!this.status)return s3;let e="number"==typeof this.count&&this.count>0,t=cd({"--uap-f-recipe-log-status-color":Vp[this.status.tone]}),i=s1` <span class="status__icon"> <uas-icon code=${this.status.icon} animation=${("spinner-third"===this.status.icon?"spin":void 0)??s3} aria-label=${this.status.label} ></uas-icon> </span> ${this.hideLabel?s3:s1`<span class="status__label">${this.status.label}</span>`} ${e?s1`<span class="status__count">${this.count}</span>`:s3} `;return this.hideLabel?s1` <uas-tooltip placement="top"> <span slot="target" class="status status--tone-${this.status.tone}" data-status-code=${this.status.code} style=${t} > ${i} </span> ${this.status.label} </uas-tooltip> `:s1` <span class="status status--tone-${this.status.tone}" data-status-code=${this.status.code} style=${t} > ${i} </span> `}};Vm([l0({attribute:!1})],Vf.prototype,"status",void 0),Vm([l0({type:Boolean,attribute:"hide-label"})],Vf.prototype,"hideLabel",void 0),Vm([l0({type:Number})],Vf.prototype,"count",void 0),Vf=Vm([lJ("uap-f-recipe-log-status")],Vf);let Vy=Symbol("recipeLogRecipeID"),Vb="uap.d.recipe-log.sidebar-request",Vv=rg({nodeID:ry([o5(),oR().min(1)])}).strict();var V_=a(2827),Vw=a.n(V_),Vx=function(e,t,i,a){var n,o=arguments.length,r=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(r=(o<3?n(r):o>3?n(t,i,r):n(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r};let Vk=class extends ld{constructor(){super(...arguments),this.skeleton=!1,this.selected=!1,this.integrationsController=new vE(this,SS),this.onMoreInfo=()=>{this.item&&lw({element:this,eventName:Vb,data:{nodeID:this.item.id},schema:Vv,options:{bubbles:!0,composed:!0}})}}static{this.styles=sf`${sm(Vw())}`}willUpdate(e){lQ(this,"item",Ti.optional(),e,"uap-f-recipe-log-item"),lQ(this,"statusBreakdown",CX.optional(),e,"uap-f-recipe-log-item")}render(){if(this.skeleton)return this.templateSkeleton();if(!this.item)return s3;let e=this.dateText(this.item.execution.date_started,this.item.execution.date_ended),t=this.statusBreakdown??this.item.execution.status_breakdown;return s1` <div class="item item--appearance-${this.item.execution.status.appearance}"> <div class="item__icon"> <uap-d-integrations-icon code=${this.item.integration_code} variant="circle" size="md" ></uap-d-integrations-icon> </div> <div class="item__sentence"> ${this.item.custom_name?s1`<span class="item__custom-name">${this.item.custom_name}</span>`:s3} ${this.templateSentence()} </div> <div class="item__details"> ${void 0===t?s1`<div class="item__detail item__detail--id"> <uas-icon class="item__detail-icon" code="hashtag"></uas-icon> ${this.item.id} </div>`:s3} ${void 0===t&&""!==e?s1`<div class="item__detail"> <uas-icon class="item__detail-icon" code="clock"></uas-icon> ${e} </div>`:s3} ${this.templateStatusColumn(this.item.execution.status,t)} </div> ${this.templateMoreInfoButton()} </div> `}templateSkeleton(){return s1` <div class="item" data-test="log-item-skeleton" aria-busy="true"> <div class="item__icon"> <uas-skeleton variant="circle" width="32px"></uas-skeleton> </div> <div class="item__sentence"> <uas-skeleton .widths=${[4,6,3,5,7,4]}></uas-skeleton> </div> <div class="item__details"> <div class="item__detail"><uas-skeleton width="4em"></uas-skeleton></div> <div class="item__detail"><uas-skeleton width="11em"></uas-skeleton></div> </div> <div class="item__more-info"> <uas-skeleton variant="rectangle" width="16px" height="16px"></uas-skeleton> </div> </div> `}templateMoreInfoButton(){var e;return void 0!==(e=this.item)&&(e.execution.status.phase!==Cq.WAITING||(e.execution.result_message?.trim().length??0)>0)?s1` <uas-button data-test="more" class="item__more-info" color="transparent" size="sm" @click=${this.onMoreInfo} aria-label=${String((0,lX.__)("View details","uncanny-automator"))} > <uas-icon code="angle-right"></uas-icon> </uas-button> `:s3}templateStatusColumn(e,t){if(void 0===t)return s1` <div class="item__detail"> <uap-f-recipe-log-status .status=${e}></uap-f-recipe-log-status> </div> `;let i=t.filter(e=>e.count>0).slice().sort((e,t)=>t.count-e.count);if(0===i.length)return s3;let a=i.reduce((e,t)=>e+t.count,0),n=i[0];return 1===a&&void 0!==n?s1` <div class="item__detail"> <uap-f-recipe-log-status .status=${n.status}></uap-f-recipe-log-status> </div> `:s1` <div class="item__detail item__detail--status-counts"> ${i.map(({status:e,count:t})=>s1` <uap-f-recipe-log-status .status=${e} count=${t} hide-label ></uap-f-recipe-log-status> `)} </div> `}dateText(e,t){return""===e?"":void 0===t||""===t||t===e?e:(0,lX.sprintf)((0,lX.__)("%1$s to %2$s","uncanny-automator"),e,t)}templateSentence(){if(!this.item)return s3;if(this.integrationsController.result.isPending)return s1`<uap-d-recipe-sentence is-loading></uap-d-recipe-sentence>`;let e=this.catalogSentenceTemplate;return""===e?s1`<uas-alert type="warning" size="xs">${this.installNotice}</uas-alert>`:s1` <uap-d-recipe-sentence size="sm" .template=${e} .fields=${this.item.fields} .recipeID=${this.recipeID} hide-status ></uap-d-recipe-sentence> `}get catalogSentenceTemplate(){if(!this.item)return"";let e=$f(this.integrationsController.result.data,this.item.integration_code,this.item.item_type,this.item.code);return e?.sentence?.dynamic??""}get installNotice(){let e=this.item?.last_known_integration_name??"";return""!==e?(0,lX.sprintf)((0,lX.__)("Install %s to view this item.","uncanny-automator"),e):(0,lX.__)("This item's integration isn't installed.","uncanny-automator")}};Vx([l0({attribute:!1})],Vk.prototype,"item",void 0),Vx([H8({context:Vy,subscribe:!0}),l0({attribute:!1})],Vk.prototype,"recipeID",void 0),Vx([l0({type:Boolean,reflect:!0})],Vk.prototype,"skeleton",void 0),Vx([l0({attribute:!1})],Vk.prototype,"statusBreakdown",void 0),Vx([l0({type:Boolean,reflect:!0})],Vk.prototype,"selected",void 0),Vk=Vx([lJ("uap-f-recipe-log-item")],Vk);var VE=a(7872),VS=a.n(VE),VC=function(e,t,i,a){var n,o=arguments.length,r=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(r=(o<3?n(r):o>3?n(t,i,r):n(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r};let VT=class extends ld{constructor(){super(...arguments),this.blocksController=new vE(this,{...Ac,enabled:!1})}static{this.styles=sf`${sm(VS())}`}willUpdate(e){if(lQ(this,"blockType",E1.optional(),e,"uap-d-recipe-block-path-name"),e.has("blockType")||e.has("pathCode")){let e=rK(this.blockType)&&!rY(this.blockType)&&rK(this.pathCode)&&!rY(this.pathCode);this.blocksController.options.enabled!==e&&this.blocksController.setOptions({enabled:e})}}render(){if(rY(this.blockType)||rY(this.pathCode))return s3;let{status:e,data:t,error:i,isLoading:a,isFetching:n,isError:o}=this.blocksController.result;if(a)return s1`<span class="label"><uas-skeleton width="6em"></uas-skeleton></span>`;if(o)return d4.DEV.SHOW_CONSOLE_MESSAGES&&console.error(`Error fetching blocks for path-name (block-type: ${this.blockType}, path-code: ${this.pathCode}):`,i),this.templateUnknown();if("success"===e&&t){let e=t[this.blockType],i=e?.paths.find(e=>e.path_code===this.pathCode);return i?.name!==void 0?s1`<span class="label">${i.name}</span>`:this.templateUnknown()}return"pending"===e||n&&!t?s1`<span class="label"><uas-skeleton width="6em"></uas-skeleton></span>`:s3}templateUnknown(){return s1` <uas-chip label=${String((0,lX.__)("Unknown path","uncanny-automator"))} icon="circle-exclamation" color="warning" size="sm" data-test="path-name-unknown" ></uas-chip> `}};VC([l0({type:String,attribute:"block-type"})],VT.prototype,"blockType",void 0),VC([l0({type:String,attribute:"path-code"})],VT.prototype,"pathCode",void 0),VT=VC([lJ("uap-d-recipe-block-path-name")],VT);var VI=a(5264),VD=a.n(VI),VA=function(e,t,i,a){var n,o=arguments.length,r=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(r=(o<3?n(r):o>3?n(t,i,r):n(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r};let V$=class extends ld{constructor(){super(...arguments),this.showHeader=!1}static{this.styles=sf`${sm(VD())}`}willUpdate(e){lQ(this,"path",Tg.optional(),e,"uap-f-recipe-log-path"),lQ(this,"blockType",E1.optional(),e,"uap-f-recipe-log-path")}render(){if(!this.path)return s3;let{path:e}=this,t=0===e.content.length;return s1` <div class="path"> ${this.showHeader&&void 0!==this.blockType?s1`<uap-d-recipe-block-path-name class="path__header" block-type=${this.blockType} path-code=${e.path_code} ></uap-d-recipe-block-path-name>`:s3} ${t?s1`<p class="path__empty" data-test="path-empty">${(0,lX.__)("No actions ran along this path.","uncanny-automator")}</p>`:s1`<div class="path__items"> ${$A(e.content,e=>e.id,e=>e.type===kP.ITEM?s1`<uap-f-recipe-log-item .item=${e} ?selected=${void 0!==this.activeNodeID&&String(e.id)===String(this.activeNodeID)} ></uap-f-recipe-log-item>`:s1`<uap-f-recipe-log-block .block=${e} active-node-id=${this.activeNodeID??""} ?selected=${void 0!==this.activeNodeID&&String(e.id)===String(this.activeNodeID)} ></uap-f-recipe-log-block>`)} </div>`} </div> `}};VA([l0({attribute:!1})],V$.prototype,"path",void 0),VA([l0({type:Boolean,attribute:"show-header"})],V$.prototype,"showHeader",void 0),VA([l0({type:String,attribute:"block-type"})],V$.prototype,"blockType",void 0),VA([l0({attribute:"active-node-id"})],V$.prototype,"activeNodeID",void 0),V$=VA([lJ("uap-f-recipe-log-path")],V$);var VO=a(930),VR=a.n(VO),VM=function(e,t,i,a){var n,o=arguments.length,r=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(r=(o<3?n(r):o>3?n(t,i,r):n(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r};let VL=class extends ld{constructor(){super(...arguments),this.selected=!1,this.integrationsController=new vE(this,SS),this.onMoreInfo=()=>{this.modifier&&lw({element:this,eventName:Vb,data:{nodeID:this.modifier.id},schema:Vv,options:{bubbles:!0,composed:!0}})}}static{this.styles=sf`${sm(VR())}`}willUpdate(e){lQ(this,"modifier",To.optional(),e,"uap-f-recipe-log-block-modifier")}render(){if(!this.modifier)return s3;let{result_message:e}=this.modifier.execution;return s1` <div class="block-modifier block-modifier--appearance-${this.modifier.execution.status.appearance}"> <div class="block-modifier__icon"> <uap-d-integrations-icon code=${this.modifier.integration_code} size="xs" ></uap-d-integrations-icon> </div> <div class="block-modifier__content"> <div class="block-modifier__sentence"> ${this.templateSentence()} ${void 0!==e&&""!==e?s1`<span class="block-modifier__result-message">${e}</span>`:s3} </div> <div class="block-modifier__status"> ${this.templateStatusColumn()} </div> </div> <uas-button data-test="more" class="block-modifier__more-info" color="transparent" size="sm" @click=${this.onMoreInfo} aria-label=${String((0,lX.__)("View details","uncanny-automator"))} > <uas-icon code="angle-right"></uas-icon> </uas-button> </div> `}templateStatusColumn(){if(!this.modifier)return s3;let e=this.modifier.execution.status_breakdown;if(void 0===e)return s1` <uap-f-recipe-log-status data-test="status-single" .status=${this.modifier.execution.status} ></uap-f-recipe-log-status> `;let t=e.filter(e=>e.count>0).slice().sort((e,t)=>t.count-e.count),i=t.reduce((e,t)=>e+t.count,0),a=t[0];return 1===i&&void 0!==a?s1` <uap-f-recipe-log-status data-test="status-single" .status=${a.status} ></uap-f-recipe-log-status> `:s1` <div class="block-modifier__status-counts" data-test="status-counts"> ${t.map(({status:e,count:t})=>s1` <uap-f-recipe-log-status .status=${e} count=${t} hide-label ></uap-f-recipe-log-status> `)} </div> `}templateSentence(){if(!this.modifier)return s3;if(this.integrationsController.result.isPending)return s1`<uap-d-recipe-sentence is-loading></uap-d-recipe-sentence>`;let e=this.catalogSentenceTemplate;return""===e?s1`<uas-alert type="warning" size="xs">${this.installNotice}</uas-alert>`:s1` <uap-d-recipe-sentence size="sm" .template=${e} .fields=${this.modifier.fields} .recipeID=${this.recipeID} hide-status ></uap-d-recipe-sentence> `}get catalogSentenceTemplate(){if(!this.modifier)return"";let e=$b(this.integrationsController.result.data,this.modifier.integration_code,this.modifier.block_modifier_type,this.modifier.code);return e?.sentence?.dynamic??""}get installNotice(){let e=this.modifier?.last_known_integration_name??"";return""!==e?(0,lX.sprintf)((0,lX.__)("Install %s to view this modifier.","uncanny-automator"),e):(0,lX.__)("This modifier's integration isn't installed.","uncanny-automator")}};VM([l0({attribute:!1})],VL.prototype,"modifier",void 0),VM([H8({context:Vy,subscribe:!0}),l0({attribute:!1})],VL.prototype,"recipeID",void 0),VM([l0({type:Boolean,reflect:!0})],VL.prototype,"selected",void 0),VL=VM([lJ("uap-f-recipe-log-block-modifier")],VL);let VN=rg({action:Tl,processCode:oR().min(1)}).strict(),VP=rg({success:re().optional(),message:oR().optional()}).passthrough();function Vz(e){return e===Cq.TERMINAL_SUCCESS||e===Cq.TERMINAL_FAILURE}let VU=rg({logID:o5().int().positive()}).strict(),VF="uap.d.recipe-log.refresh-request",Vj=rg({}).strict(),VB={RECIPE_ID:{name:"recipeID",schema:$1().int().positive()},RUN_NUMBER:{name:"runNumber",schema:$1().int().positive()},LOG_ID:{name:"logID",schema:$1().int().positive()},NODE_ID:{name:"nodeID",schema:ry([$1().int().positive(),oR().min(1)])}},VH=rg({[VB.RECIPE_ID.name]:VB.RECIPE_ID.schema,[VB.RUN_NUMBER.name]:VB.RUN_NUMBER.schema,[VB.LOG_ID.name]:VB.LOG_ID.schema}),VV=VH.extend({[VB.NODE_ID.name]:VB.NODE_ID.schema}),Vq={LOG_VIEW:"log-view",LOG_VIEW_WITH_NODE:"log-view-with-node"};rT(Vq);let VZ=rg({heading:oR().min(1),content:oR().min(1),confirmButtonLabel:oR().min(1)}).strict(),VW=rp(rg({action:Tl,icon:ur,color:pf,label:oR().min(1),progress:oR().min(1),success:oR().min(1),confirmation:VZ.optional()}).strict()).readonly(),VG=[Ts.RUN_NOW,Ts.PAUSE,Ts.RESUME,Ts.CANCEL];function VK(e){switch(e){case Ts.RUN_NOW:return{action:e,icon:"forward",color:"primary",label:(0,lX.__)("Run now","uncanny-automator"),progress:(0,lX.__)("Running block now...","uncanny-automator"),success:(0,lX.__)("Block ran.","uncanny-automator"),confirmation:{heading:(0,lX.__)("Run now?","uncanny-automator"),content:(0,lX.__)("Everything waiting on this block runs immediately instead of at its scheduled time. This can't be undone.","uncanny-automator"),confirmButtonLabel:(0,lX.__)("Run now","uncanny-automator")}};case Ts.PAUSE:return{action:e,icon:"pause",color:"primary",label:(0,lX.__)("Pause","uncanny-automator"),progress:(0,lX.__)("Pausing block...","uncanny-automator"),success:(0,lX.__)("Block paused.","uncanny-automator")};case Ts.RESUME:return{action:e,icon:"play",color:"primary",label:(0,lX.__)("Resume","uncanny-automator"),progress:(0,lX.__)("Resuming block...","uncanny-automator"),success:(0,lX.__)("Block resumed.","uncanny-automator")};case Ts.CANCEL:return{action:e,icon:"xmark",color:"danger",label:(0,lX.__)("Cancel","uncanny-automator"),progress:(0,lX.__)("Cancelling block...","uncanny-automator"),success:(0,lX.__)("Block cancelled.","uncanny-automator")}}}var VY=a(883),VQ=a.n(VY),VX=function(e,t,i,a){var n,o=arguments.length,r=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(r=(o<3?n(r):o>3?n(t,i,r):n(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r};let VJ=class extends ld{constructor(){super(...arguments),this.selected=!1,this.headOnly=!1,this.pendingControlAction=null,this.blocksController=new vE(this,Ac),this.onMoreInfo=()=>{this.block&&lw({element:this,eventName:Vb,data:{nodeID:this.block.id},schema:Vv,options:{bubbles:!0,composed:!0}})},this.onControlClick=async(e,t)=>{if(null!==this.pendingControlAction)return;if(e.confirmation){try{await lp({heading:(0,b4.escapeHTML)(e.confirmation.heading),content:e.confirmation.content,confirmButtonLabel:e.confirmation.confirmButtonLabel})}catch{return}if(null!==this.pendingControlAction)return}this.pendingControlAction=e.action;let i=ly({message:(0,b4.escapeHTML)(e.progress),iconID:"spinner-third",iconAnimation:"spin"});try{let a=await async function(e){var t,i;let a=VN.parse(e);return d4.DEV.RETURN_MOCK_DATA?(await new Promise(e=>setTimeout(e,d4.DEV.MOCK_DELAY_MS)),VP.parse({success:!0,message:`mock ${a.action} accepted`})):dV({endpoint:(t=a.action,i=a.processCode,`recipe-log/block/process/${i}/${t}`),method:"POST",responseSchema:VP,useEnvelope:!0})}({action:e.action,processCode:t});V1(i)&&i.remove(),ly({message:(0,b4.escapeHTML)(a.message??e.success),iconID:"check",duration:3e3}),this.dispatchEvent(new CustomEvent(VF,{detail:{},bubbles:!0,composed:!0}))}catch(e){V1(i)&&i.remove(),ly({message:(0,b4.escapeHTML)(e instanceof Error?e.message:String(e)),color:"error",iconID:"xmark",duration:5e3})}finally{this.pendingControlAction=null}}}static{this.styles=sf`${sm(VQ())}`}willUpdate(e){lQ(this,"block",Tf.optional(),e,"uap-f-recipe-log-block")}render(){if(!this.block)return s3;let{block:e}=this,{execution:t}=e;return s1` <div class="block block--${e.block_type} block--phase-${t.status.phase} block--appearance-${t.status.appearance}"> <div class="block__header"> <div class="block__heading"> <div class="block__tag"> <uap-d-recipe-block-icon class="block__icon" code=${e.block_type} size="xs" variant="box"></uap-d-recipe-block-icon> <uap-d-recipe-block-name class="block__type" code=${e.block_type} no-icon></uap-d-recipe-block-name> </div> ${this.templateSentence()} </div> <uas-button data-test="more" class="block__more-info" color="transparent" size="sm" @click=${this.onMoreInfo} aria-label=${String((0,lX.__)("View details","uncanny-automator"))} > <uas-icon code="angle-right"></uas-icon> </uas-button> </div> ${e.modifiers.length>0?s1` <div class="block__modifiers"> ${$A(e.modifiers,e=>e.id,e=>s1`<uap-f-recipe-log-block-modifier .modifier=${e} ?selected=${void 0!==this.activeNodeID&&String(e.id)===String(this.activeNodeID)} ></uap-f-recipe-log-block-modifier>`)} </div> `:s3} ${this.templateStatusStrip(t.progress,t.control)} ${this.headOnly?s3:this.templateBody()} </div> `}templateBody(){if(!this.block)return s1`<div class="block__body block__body--empty"></div>`;let e=this.block.block_type,t=this.activeNodeID,i=this.block.paths,a=i.length>1;return s1` <div class="block__body"> ${$A(i,e=>e.path_code,i=>s1`<uap-f-recipe-log-path .path=${i} block-type=${e} active-node-id=${t??""} ?show-header=${a} ></uap-f-recipe-log-path>`)} </div> `}templateSentence(){if(!this.block)return s3;if(this.blocksController.result.isPending)return s1` <div class="block__sentence"> <uap-d-recipe-sentence is-loading></uap-d-recipe-sentence> </div> `;let e=this.blocksController.result.data?.[this.block.block_type],t=RG(e?.sentence,this.block.fields);return""===t?s3:s1` <div class="block__sentence"> <uap-d-recipe-sentence size="sm" .template=${t} .fields=${this.block.fields} .recipeID=${this.recipeID} hide-status ></uap-d-recipe-sentence> </div> `}templateStatusStrip(e,t){if(!this.block)return s3;let i=this.block.execution,a=e?.elements_total??0,n=function(e){let t=e.execution.progress;if(!t)return;if(0===t.elements_total)return 0;let i=e.paths[0],a=i?.content[0];if(1!==e.paths.length||i?.content.length!==1||a?.type!==kP.ITEM||"action"!==a.item_type)return;let n=t.status_breakdown;if(n?.length&&n.reduce((e,t)=>e+t.count,0)===t.elements_total)return n.reduce((e,t)=>e+(Vz(t.status.phase)?t.count:0),0)}(this.block),o=void 0!==n&&a>0?Math.min(n<a?99:100,Math.round(n/a*100)):0;return s1` <div class="block__status-strip"> <div class="block__status-summary"> <div class="block__status-info"> <uap-f-recipe-log-status .status=${i.status}></uap-f-recipe-log-status> ${e?s1` <span class="block__progress-counter"> ${void 0===n?(0,lX.sprintf)((0,lX.__)("Progress unavailable (%s total)","uncanny-automator"),String(e.elements_total)):s1` ${n} / ${e.elements_total} ${e.elements_total>0?s1`<span class="block__progress-percentage">(${o}%)</span>`:s3} `} </span> `:s3} </div> <div class="block__status-meta"> ${i.date_started?s1` <span class="block__status-meta-item" data-test="date-started"> <uas-icon code="clock"></uas-icon> ${i.date_ended?(0,lX.sprintf)((0,lX.__)("From %1$s to %2$s","uncanny-automator"),i.date_started,i.date_ended):i.date_started} </span> `:i.date_ended?s1` <span class="block__status-meta-item" data-test="date-ended"> <uas-icon code="clock"></uas-icon> ${(0,lX.sprintf)((0,lX.__)("Finished at %s","uncanny-automator"),i.date_ended)} </span> `:s3} ${i.date_elapsed?s1` <span class="block__status-meta-item"> <uas-icon code="play"></uas-icon> ${i.date_elapsed.human_readable} </span> `:s3} ${!e&&a>1?s1` <span class="block__status-meta-item"> <uas-icon code="repeat"></uas-icon> ${(0,lX.sprintf)((0,lX._n)("%s iteration","%s iterations",a,"uncanny-automator"),String(a))} </span> `:s3} ${i.date_next_process?s1` <span class="block__status-meta-item"> <uas-icon code="forward-step"></uas-icon> ${(0,lX.sprintf)((0,lX.__)("Runs at %s","uncanny-automator"),i.date_next_process)} </span> `:s3} ${e?.message?s1` <span class="block__status-meta-item"> <uas-icon code="note"></uas-icon> ${e.message} </span> `:s3} </div> </div> ${t?this.templateControl(t):s3} </div> ${e?s1` <div class="block__progress-bar" data-test="progress-bar" role="progressbar" aria-label=${String((0,lX.__)("Progress","uncanny-automator"))} aria-valuetext=${void 0===n?String((0,lX.__)("Progress unavailable","uncanny-automator")):s3} aria-valuemin="0" aria-valuemax=${e.elements_total} aria-valuenow=${n??s3} > ${void 0!==n?s1`<span class="block__progress-fill" style="width: ${o}%"></span>`:s3} </div> `:s3} ${e?.status_breakdown?s1` <div class="block__progress-statuses"> ${e.status_breakdown.map(({status:e,count:t})=>s1` <span class="block__progress-status"> <uap-f-recipe-log-status .status=${e} hide-label></uap-f-recipe-log-status> <span class="block__progress-status-count">${t}</span> </span> `)} </div> `:s3} `}templateControl(e){var t;let i=(t=e.actions,VW.parse(VG.filter(e=>t.includes(e)).map(VK)));return 0===i.length?s3:s1` <div class="block__control"> ${$A(i,e=>e.action,t=>s1` <uas-tooltip placement="top"> ${t.label} <uas-button slot="target" data-test="control-${t.action}" size="sm" color=${t.color} aria-label=${t.label} ?disabled=${null!==this.pendingControlAction&&this.pendingControlAction!==t.action} ?loading=${this.pendingControlAction===t.action} @click=${()=>this.onControlClick(t,e.process_code)} > <uas-icon code=${t.icon}></uas-icon> </uas-button> </uas-tooltip> `)} </div> `}};VX([l0({attribute:!1})],VJ.prototype,"block",void 0),VX([H8({context:Vy,subscribe:!0}),l0({attribute:!1})],VJ.prototype,"recipeID",void 0),VX([l0({type:Boolean,reflect:!0})],VJ.prototype,"selected",void 0),VX([l0({attribute:"active-node-id"})],VJ.prototype,"activeNodeID",void 0),VX([l0({type:Boolean,attribute:"head-only"})],VJ.prototype,"headOnly",void 0),VX([l2()],VJ.prototype,"pendingControlAction",void 0),VJ=VX([lJ("uap-f-recipe-log-block")],VJ);let V1=e=>"object"==typeof e&&null!==e&&"remove"in e&&"function"==typeof e.remove,V0=rp(oR().min(1));rg({shown:V0,more:o5().int().min(0)}).strict();var V2=a(5048),V3=a.n(V2),V4=function(e,t,i,a){var n,o=arguments.length,r=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(r=(o<3?n(r):o>3?n(t,i,r):n(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r};let V6=class extends ld{constructor(){super(...arguments),this.codes=[]}static{this.styles=sf`${sm(V3())}`}willUpdate(e){lQ(this,"codes",V0,e,"uap-d-integrations-icon-stack")}render(){let e,t,{shown:i,more:a}={shown:t=(e=[...new Set(this.codes)]).slice(0,4),more:e.length-t.length};return 0===i.length?s3:s1` <div class="stack"> ${i.map(e=>s1`<uap-d-integrations-icon class="stack__icon" code=${e} variant=${ST.CIRCLE} size=${SD.SM} ></uap-d-integrations-icon>`)} ${a>0?s1`<span class="stack__more" data-test="icon-stack-more">${(0,lX.sprintf)((0,lX.__)("+%d","uncanny-automator"),a)}</span>`:s3} </div> `}};V4([l0({attribute:!1})],V6.prototype,"codes",void 0),V6=V4([lJ("uap-d-integrations-icon-stack")],V6);var V5=a(1953),V8=a.n(V5),V7=function(e,t,i,a){var n,o=arguments.length,r=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(r=(o<3?n(r):o>3?n(t,i,r):n(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r};let V9=class extends ld{constructor(){super(...arguments),this.fields={},this.blocksController=new vE(this,{...Ac,enabled:!1})}static{this.styles=sf`${sm(V8())}`}willUpdate(e){if(lQ(this,"code",E1.optional(),e,"uap-d-recipe-block-marker"),lQ(this,"fields",k4,e,"uap-d-recipe-block-marker"),lQ(this,"contents",OF.optional(),e,"uap-d-recipe-block-marker"),e.has("code")){let e=!rY(this.code);this.blocksController.options.enabled!==e&&this.blocksController.setOptions({enabled:e})}}render(){return void 0===this.code||rY(this.code)?s3:s1` <div class="marker"> <div class="marker__row"> <uap-d-recipe-block-icon class="marker__icon" code=${this.code} variant="box" size="xs"></uap-d-recipe-block-icon> <uap-d-recipe-block-name class="marker__name" code=${this.code} no-icon></uap-d-recipe-block-name> <slot class="marker__action" name="action"></slot> </div> ${this.templateSentence(this.code)} ${this.templateContents()} </div> `}templateContents(){return void 0===this.contents?s3:0===this.contents.actions?s1`<div class="marker__contents marker__contents--empty" data-test="block-marker-contents">${(0,lX.__)("No actions","uncanny-automator")}</div>`:s1` <div class="marker__contents" data-test="block-marker-contents"> <uap-d-integrations-icon-stack class="marker__integrations" aria-hidden="true" .codes=${this.contents.integrations}></uap-d-integrations-icon-stack> <span class="marker__count" data-test="block-marker-contents-count"> ${(0,lX.sprintf)((0,lX._n)("%d action","%d actions",this.contents.actions,"uncanny-automator"),this.contents.actions)} </span> </div> `}templateSentence(e){if(this.blocksController.result.isPending)return s1`<uap-d-recipe-sentence class="marker__sentence" is-loading></uap-d-recipe-sentence>`;let t=RG(this.blocksController.result.data?.[e]?.sentence,this.fields);return""===t?s3:s1`<uap-d-recipe-sentence class="marker__sentence" .template=${t} .fields=${this.fields} .recipeID=${this.recipeID} ></uap-d-recipe-sentence>`}};V7([l0({type:String})],V9.prototype,"code",void 0),V7([l0({attribute:!1})],V9.prototype,"fields",void 0),V7([l0({type:Number,attribute:"recipe-id"})],V9.prototype,"recipeID",void 0),V7([l0({attribute:!1})],V9.prototype,"contents",void 0),V9=V7([lJ("uap-d-recipe-block-marker")],V9);var qe=a(7096),qt=a.n(qe),qi=function(e,t,i,a){var n,o=arguments.length,r=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(r=(o<3?n(r):o>3?n(t,i,r):n(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r};let qa=class extends RH{constructor(){super(...arguments),this.skeleton=!1}static{this.styles=[RH.styles,sf`${sm(qt())}`]}get flow(){return this.log?.flow}get rootID(){return this.log?.recipe_id}get busy(){return this.skeleton}willUpdate(e){super.willUpdate(e),e.has("activeNodeID")&&void 0!==this.activeNodeID&&this.requestNodeReveal(this.activeNodeID)}templateSkeletonCard(){return s1`<uap-f-recipe-log-item skeleton></uap-f-recipe-log-item>`}get laneEmptyLabel(){return(0,lX.__)("No actions ran along this path.","uncanny-automator")}isActive(e){return void 0!==this.activeNodeID&&String(e)===String(this.activeNodeID)}templateItemCard(e){return s1`<uap-f-recipe-log-item .item=${e} ?selected=${this.isActive(e.id)} ></uap-f-recipe-log-item>`}templateBlockHead(e){return s1`<uap-f-recipe-log-block head-only .block=${e} active-node-id=${this.activeNodeID??""} ?selected=${this.isActive(e.id)} ></uap-f-recipe-log-block>`}templateBlockMarker(e,t,i){return s1`<uap-d-recipe-block-marker code=${e.block_type} .fields=${e.fields} .contents=${Oj(e)} >${i}</uap-d-recipe-block-marker>`}templateBand(){let e=this.log?.flow.entry;if(void 0===e||e.triggers.length<2)return s3;let t=e.operator===CM.ALL;return s1` <div class="band stage__band" data-test="canvas-band"> ${t?s1`<div class="band__pill" data-test="canvas-operator-pill" data-canvas-port=${OU}> ${this.templateOperator(e.operator)} </div>`:s3} <div class="band__strip" data-test="canvas-band-strip" data-canvas-port=${"band"}> ${t?s3:this.templateOperator(e.operator)} </div> </div> `}templateOperator(e){return s1`<uas-chip class="band__operator" data-test="entry-operator" label=${e} aria-label=${String((0,lX.__)("Trigger operator","uncanny-automator"))} ></uas-chip>`}};qi([l0({attribute:!1})],qa.prototype,"log",void 0),qi([l0({attribute:"active-node-id"})],qa.prototype,"activeNodeID",void 0),qi([l0({type:Boolean})],qa.prototype,"skeleton",void 0),qa=qi([lJ("uap-f-recipe-log-canvas")],qa);var qn=a(8220),qo=a.n(qn),qr=function(e,t,i,a){var n,o=arguments.length,r=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(r=(o<3?n(r):o>3?n(t,i,r):n(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r};let qs=class extends ld{constructor(){super(...arguments),this.skeleton=!1}static{this.styles=sf`${sm(qo())}`}willUpdate(e){lQ(this,"flow",Tk.optional(),e,"uap-f-recipe-log-flow")}render(){if(this.skeleton)return this.templateSkeleton();if(!this.flow)return s3;let{entry:e,content:t}=this.flow,i=e.triggers.length>1;return s1` <div class="flow"> <section class="flow__section flow__section--entry" aria-label=${String((0,lX.__)("Triggers","uncanny-automator"))}> <div class="flow__section-header"> <span class="flow__section-title">${(0,lX.__)("Triggers","uncanny-automator")}</span> ${i?s1`<uas-chip data-test="entry-operator" label=${e.operator}></uas-chip>`:s3} </div> <div class="flow__section-items"> ${0===e.triggers.length?s1`<p class="flow__section-empty" data-test="flow-triggers-empty">${(0,lX.__)("This recipe has no triggers configured.","uncanny-automator")}</p>`:$A(e.triggers,e=>e.id,e=>s1`<uap-f-recipe-log-item .item=${e} ?selected=${void 0!==this.activeNodeID&&String(e.id)===String(this.activeNodeID)} ></uap-f-recipe-log-item>`)} </div> </section> <section class="flow__section flow__section--content" aria-label=${String((0,lX.__)("Actions","uncanny-automator"))}> <div class="flow__section-header"> <span class="flow__section-title">${(0,lX.__)("Actions","uncanny-automator")}</span> </div> <div class="flow__section-items"> ${0===t.length?s1`<p class="flow__section-empty" data-test="flow-actions-empty">${(0,lX.__)("This recipe has no actions configured.","uncanny-automator")}</p>`:$A(t,e=>e.id,e=>{let t=void 0!==this.activeNodeID&&String(e.id)===String(this.activeNodeID);return e.type===kP.ITEM?s1`<uap-f-recipe-log-item .item=${e} ?selected=${t} ></uap-f-recipe-log-item>`:s1`<uap-f-recipe-log-block .block=${e} active-node-id=${this.activeNodeID??""} ?selected=${t} ></uap-f-recipe-log-block>`})} </div> </section> </div> `}templateSkeleton(){let e=s1`<uap-f-recipe-log-item skeleton></uap-f-recipe-log-item>`;return s1` <div class="flow" data-test="log-flow-skeleton" aria-busy="true"> <section class="flow__section flow__section--entry" aria-label=${String((0,lX.__)("Triggers","uncanny-automator"))}> <div class="flow__section-header"> <span class="flow__section-title">${(0,lX.__)("Triggers","uncanny-automator")}</span> </div> <div class="flow__section-items">${e}</div> </section> <section class="flow__section flow__section--content" aria-label=${String((0,lX.__)("Actions","uncanny-automator"))}> <div class="flow__section-header"> <span class="flow__section-title">${(0,lX.__)("Actions","uncanny-automator")}</span> </div> <div class="flow__section-items"> ${e} ${e} </div> </section> </div> `}};function ql(e,t){let i=new URLSearchParams;for(let e of TG.keyof().options){let a=t[e];void 0!==a&&i.set(e,String(a))}return`${e}?${i.toString()}`}qr([l0({attribute:!1})],qs.prototype,"flow",void 0),qr([l0({attribute:"active-node-id"})],qs.prototype,"activeNodeID",void 0),qr([l0({type:Boolean,reflect:!0})],qs.prototype,"skeleton",void 0),qs=qr([lJ("uap-f-recipe-log-flow")],qs);let qc=rg({entries:rp(TR),total:o5().int().min(0)}).strict(),qd={all:()=>["logs-viewer","action-logs"],list:e=>[...qd.all(),e]};async function qu(e){let[,,t]=e.queryKey;return dV({endpoint:ql("logs/action-logs",TG.parse(t)),method:"GET",responseSchema:qc,useEnvelope:!0})}let qp=rg({entries:rp(TM),total:o5().int().min(0)}).strict(),qh={all:()=>["logs-viewer","failed-actions"],list:e=>[...qh.all(),e],item:e=>[...qh.all(),"item",e]};async function qg(e){return dV({endpoint:ql("logs/failed-actions",TG.parse(e)),method:"GET",responseSchema:qp,useEnvelope:!0})}async function qm(e){let[,,t]=e.queryKey;return qg(t)}async function qf(e){let[,,,t]=e.queryKey;return qg({page:1,per_page:1,item_log_id:TD.parse(t)})}function qy(e){return{queryKey:qh.list(e),queryFn:qm,staleTime:0,placeholderData:e=>e}}let qb=()=>["logs-viewer","filters"],qv={queryKey:qb(),queryFn:async function(){return dV({endpoint:"logs/filters",method:"GET",responseSchema:TH,useEnvelope:!0})},staleTime:3e5},q_=rg({entries:rp(T$),total:o5().int().min(0)}).strict(),qw={all:()=>["logs-viewer","recipe-runs"],list:e=>[...qw.all(),e]};async function qx(e){let[,,t]=e.queryKey;return dV({endpoint:ql("logs/recipe-runs",TG.parse(t)),method:"GET",responseSchema:q_,useEnvelope:!0})}let qk=rg({entries:rp(TO),total:o5().int().min(0)}).strict(),qE={all:()=>["logs-viewer","trigger-logs"],list:e=>[...qE.all(),e]};async function qS(e){let[,,t]=e.queryKey;return dV({endpoint:ql("logs/trigger-logs",TG.parse(t)),method:"GET",responseSchema:qk,useEnvelope:!0})}let qC=rg({log_ids:rp(o5().int().positive()).min(1)}).strict(),qT=rg({deleted_log_ids:rp(o5().int().positive())}).strict();async function qI(e){return dV({endpoint:"logs/recipe-runs",responseSchema:qT,method:"DELETE",data:qC.parse(e),useEnvelope:!0})}function qD(){return{mutationFn:qI,onSuccess:()=>{[qw.all(),qE.all(),qd.all(),qh.all(),qb()].forEach(e=>{dW.invalidateQueries({queryKey:e})})}}}let qA=rg({code:oR(),message:oR().min(1),data:rg({status:o5().int()}).loose()});function q$(e){if(!(e instanceof dH))return;let t=qA.safeParse(e.body);return t.success?t.data.message:void 0}let qO=o5().int().positive().optional(),qR=re();var qM=a(6728),qL=a.n(qM),qN=function(e,t,i,a){var n,o=arguments.length,r=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(r=(o<3?n(r):o>3?n(t,i,r):n(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r};let qP=class extends ld{constructor(){super(...arguments),this.inProgress=!1,this.isConfirmingDelete=!1,this.deleteRun=new vm(this,qD())}static{this.styles=sf`${sm(qL())}`}willUpdate(e){lQ(this,"logID",qO,e,"uap-f-recipe-log-btn-delete"),lQ(this,"inProgress",qR,e,"uap-f-recipe-log-btn-delete",!1)}render(){return void 0===this.logID?s3:s1` <uas-tooltip> <span>${(0,lX.__)("Delete this log entry","uncanny-automator")}</span> <uas-button slot="target" class="btn-delete__trigger" data-test="log-delete-button" color=${pm.TRANSPARENT} size=${py.XS} aria-label=${String((0,lX.__)("Delete this log entry","uncanny-automator"))} @click=${this.handleDeleteAsk} > <uas-icon code="trash"></uas-icon> </uas-button> </uas-tooltip> ${this.isConfirmingDelete?this.templateDeleteDialog():s3} `}templateDeleteDialog(){return s1` <uas-dialog size="sm" heading=${(0,b4.escapeHTML)((0,lX.__)("Delete this recipe run?","uncanny-automator"))} open @uas.dialog.close=${this.handleDialogClose} > ${this.inProgress?(0,lX.__)("This can't be undone. Any scheduled actions will be canceled.","uncanny-automator"):(0,lX.__)("This can't be undone.","uncanny-automator")} <uas-button slot="primary-action" color=${pm.DANGER} ?loading=${this.deleteRun.result.isPending} @click=${this.handleDeleteConfirm}> ${(0,lX.__)("Delete","uncanny-automator")} </uas-button> <uas-button slot="secondary-action" color=${pm.SECONDARY} @click=${this.handleDeleteCancel}> ${(0,lX.__)("Cancel","uncanny-automator")} </uas-button> </uas-dialog> `}handleDeleteAsk(){this.isConfirmingDelete=!0}handleDeleteCancel(){this.isConfirmingDelete=!1}handleDialogClose(e){e.stopPropagation(),this.handleDeleteCancel()}async handleDeleteConfirm(){if(void 0!==this.logID){try{let{deleted_log_ids:e}=await this.deleteRun.mutateAsync({log_ids:[this.logID]});e.includes(this.logID)?this.handleDeleted(this.logID):this.showDeleteFailure()}catch(e){this.showDeleteFailure(q$(e))}this.isConfirmingDelete=!1}}handleDeleted(e){ly({message:(0,b4.escapeHTML)(String((0,lX.sprintf)((0,lX._n)("%d recipe run deleted.","%d recipe runs deleted.",1,"uncanny-automator"),1))),color:lm.DEFAULT,iconID:"check",duration:4e3}),lw({element:this,eventName:"uap.d.recipe-log.deleted",data:{logID:e},schema:VU,options:{bubbles:!0,composed:!0}})}showDeleteFailure(e){ly({message:(0,b4.escapeHTML)(e??(0,lX.__)("Could not delete the recipe run.","uncanny-automator")),color:lm.ERROR,iconID:"xmark",duration:5e3})}};qN([l0({type:Number,attribute:"log-id"})],qP.prototype,"logID",void 0),qN([l0({type:Boolean,attribute:"in-progress",reflect:!0})],qP.prototype,"inProgress",void 0),qN([l2()],qP.prototype,"isConfirmingDelete",void 0),qP=qN([lJ("uap-f-recipe-log-btn-delete")],qP);var qz=a(8027),qU=a.n(qz),qF=function(e,t,i,a){var n,o=arguments.length,r=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(r=(o<3?n(r):o>3?n(t,i,r):n(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r};let qj=class extends ld{constructor(){super(...arguments),this.isRefreshing=!1,this.skeleton=!1,this.noDelete=!1}static{this.styles=sf`${sm(qU())}`}willUpdate(e){lQ(this,"log",TE.optional(),e,"uap-f-recipe-log-header")}render(){if(this.skeleton)return this.templateSkeleton();let e=this.log;if(!e)return s3;let t=""!==e.recipe_title?e.recipe_title:(0,lX.sprintf)((0,lX.__)("Recipe #%s","uncanny-automator"),String(e.recipe_id)),{execution:i}=e;return s1` <header class="header"> ${this.isRefreshing?s1`<uas-progress-linear class="header__refresh-progress" data-test="header-refresh-progress" type="indeterminate"></uas-progress-linear>`:s3} <div class="header__actions" data-test="log-actions"> <div class="header__actions-left"> <div class="header__actions-group"> ${this.templateRefresh()} ${this.templateDownload(e,t)} ${this.templateDelete(e)} </div> ${""!==e.recipe_edit_url?s1`<div class="header__actions-group">${this.templateEdit(e.recipe_edit_url)}</div>`:s3} <slot name="header-actions"></slot> </div> <div class="header__actions-right"> <slot name="header-actions-end"></slot> </div> </div> <h1 class="header__title">${t}</h1> <table class="header__summary"> <tbody> ${e.triggered_by_user?s1`<tr> <td class="header__summary-key">${(0,lX.__)("User","uncanny-automator")}</td> <td class="header__summary-value"> <span class="header__user"> ${""!==e.triggered_by_user.avatar_url?s1`<img class="header__user-avatar" src=${e.triggered_by_user.avatar_url} alt="" />`:s3} <span class="header__user-name">${e.triggered_by_user.display_name}</span> </span> </td> </tr> <tr> <td class="header__summary-key">${(0,lX.__)("User run number","uncanny-automator")}</td> <td class="header__summary-value">${e.run_number}</td> </tr>`:s3} <tr> <td class="header__summary-key">${(0,lX.__)("Status","uncanny-automator")}</td> <td class="header__summary-value"> <uap-f-recipe-log-status .status=${i.status}></uap-f-recipe-log-status> </td> </tr> <tr> <td class="header__summary-key">${(0,lX.__)("Start date","uncanny-automator")}</td> <td class="header__summary-value"> <time datetime=${i.date_started}>${i.date_started}</time> </td> </tr> <tr> <td class="header__summary-key">${(0,lX.__)("End date","uncanny-automator")}</td> <td class="header__summary-value"> ${void 0!==i.date_ended&&""!==i.date_ended?s1`<time datetime=${i.date_ended}>${i.date_ended}</time>`:s1`<span class="header__summary-value-placeholder">${(0,lX.__)("(run in progress)","uncanny-automator")}</span>`} </td> </tr> ${this.templateRunErrors(i.errors)} </tbody> </table> </header> `}templateRunErrors(e){return void 0===e||0===e.length?s3:s1` <tr class="header__summary-row header__summary-row--multiline" data-test="log-run-errors"> <td class="header__summary-key">${(0,lX.__)("Errors","uncanny-automator")}</td> <td class="header__summary-value"> <ul class="header__errors"> ${e.map(e=>s1`<li class="header__error">${e.message}</li>`)} </ul> </td> </tr> `}templateSkeleton(){return s1` <header class="header" data-test="log-header-skeleton" aria-busy="true"> <div class="header__actions"> <div class="header__actions-left"> <div class="header__actions-group"> <uas-skeleton variant="rectangle" width="24px" height="24px"></uas-skeleton> <uas-skeleton variant="rectangle" width="24px" height="24px"></uas-skeleton> <uas-skeleton variant="rectangle" width="24px" height="24px"></uas-skeleton> </div> <div class="header__actions-group"> <uas-skeleton variant="rectangle" width="96px" height="24px"></uas-skeleton> </div> </div> </div> <h1 class="header__title"><uas-skeleton .widths=${[4,6,3,5]}></uas-skeleton></h1> <table class="header__summary"> <tbody> <tr> <td class="header__summary-key"><uas-skeleton width="4em"></uas-skeleton></td> <td class="header__summary-value"><uas-skeleton width="10em"></uas-skeleton></td> </tr> <tr> <td class="header__summary-key"><uas-skeleton width="5em"></uas-skeleton></td> <td class="header__summary-value"><uas-skeleton width="6em"></uas-skeleton></td> </tr> <tr> <td class="header__summary-key"><uas-skeleton width="5em"></uas-skeleton></td> <td class="header__summary-value"><uas-skeleton width="11em"></uas-skeleton></td> </tr> <tr> <td class="header__summary-key"><uas-skeleton width="4em"></uas-skeleton></td> <td class="header__summary-value"><uas-skeleton width="11em"></uas-skeleton></td> </tr> </tbody> </table> </header> `}templateRefresh(){let e=this.isRefreshing;return s1` <uas-tooltip> <span class="header__action-tip">${(0,lX.__)("Reload this log entry","uncanny-automator")}</span> <uas-button slot="target" data-test="log-action-refresh" class="header__action" color="transparent" size="xs" ?disabled=${e} @click=${()=>this.onRefreshClick()} aria-label=${String((0,lX.__)("Reload this log entry","uncanny-automator"))} > <uas-icon code="rotate" animation=${(e?"spin":void 0)??s3}></uas-icon> </uas-button> </uas-tooltip> `}templateDownload(e,t){return s1` <uas-tooltip> <span class="header__action-tip">${(0,lX.__)("Download this log entry","uncanny-automator")}</span> <uas-button slot="target" data-test="log-action-download" class="header__action" color="transparent" size="xs" @click=${()=>this.onDownloadClick(e,t)} aria-label=${String((0,lX.__)("Download this log entry","uncanny-automator"))} > <uas-icon code="download"></uas-icon> </uas-button> </uas-tooltip> `}templateDelete(e){return this.noDelete||!e.can_delete?s3:s1` <uap-f-recipe-log-btn-delete data-test="log-action-delete" log-id=${e.log_id} ?in-progress=${!Vz(e.execution.status.phase)} ></uap-f-recipe-log-btn-delete> `}templateEdit(e){return s1` <uas-tooltip> <span class="header__action-tip">${(0,lX.__)("Edit recipe","uncanny-automator")}</span> <uas-button slot="target" data-test="log-action-edit-recipe" class="header__action" color="transparent" size="xs" href=${e} target="_blank" aria-label=${String((0,lX.__)("Edit recipe","uncanny-automator"))} > <uas-icon code="pencil"></uas-icon> <span class="header__action-label">${(0,lX.__)("Edit recipe","uncanny-automator")}</span> </uas-button> </uas-tooltip> `}onRefreshClick(){lw({element:this,eventName:VF,data:{},schema:Vj,options:{bubbles:!0,composed:!0}})}onDownloadClick(e,t){var i;let a=t.replace(/\s+/g,"_");i=`Log_${a}_${e.run_number}.json`,function(e,t){if("u"<typeof document)return;let i=URL.createObjectURL(e),a=document.createElement("a");a.href=i,a.download=t,a.style.display="none",document.body.appendChild(a),a.click(),document.body.removeChild(a),setTimeout(()=>{URL.revokeObjectURL(i)},0)}(new Blob([JSON.stringify(e,null,2)],{type:"application/json"}),i)}};qF([l0({attribute:!1})],qj.prototype,"log",void 0),qF([l0({type:Boolean,attribute:"is-refreshing",reflect:!0})],qj.prototype,"isRefreshing",void 0),qF([l0({type:Boolean,reflect:!0})],qj.prototype,"skeleton",void 0),qF([l0({type:Boolean,attribute:"no-delete"})],qj.prototype,"noDelete",void 0),qj=qF([lJ("uap-f-recipe-log-header")],qj);let qB=rg({id:oR(),open:re()}).strict(),qH=sf`:host{display:block;border-bottom:1px solid var(--uas--sidebar-section--custom-border-color, var(--uas--sidebar-section--border-color, var(--uas--color--border, #e4e4e4)))}:host([hidden]){display:none}.section{display:flex;flex-direction:column}.header{font-family:var(--uas--typography--title-small-font-family);font-size:var(--uas--typography--title-small-font-size);line-height:var(--uas--typography--title-small-line-height);font-weight:var(--uas--typography--title-small-font-weight);letter-spacing:var(--uas--typography--title-small-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;display:flex;align-items:center;gap:var(--uas--sidebar-section--custom-header-gap, var(--uas--sidebar-section--header-gap, var(--uas--base--spacing-xs, 8px)));width:100%;margin:0;padding:var(--uas--sidebar-section--custom-header-padding-y, var(--uas--sidebar-section--header-padding-y, var(--uas--base--spacing-sm, 12px))) var(--uas--sidebar-section--custom-header-padding-x, var(--uas--sidebar-section--header-padding-x, var(--uas--base--spacing-md, 16px)));box-sizing:border-box;background:rgba(0,0,0,0);border:0;color:var(--uas--sidebar-section--custom-header-color, var(--uas--sidebar-section--header-color, inherit));text-align:start;cursor:pointer}.header[disabled],.header.is-static{cursor:default}.header:not(.is-static):hover{background:var(--uas--sidebar-section--custom-header-hover-bg, var(--uas--sidebar-section--header-hover-bg, rgba(0, 0, 0, 0.03)))}.header:focus-visible{outline:2px solid var(--uas--sidebar-section--custom-focus-color, var(--uas--sidebar-section--focus-color, var(--uas--color--primary, #0790e8)));outline-offset:-2px}.icon{flex-shrink:0;display:inline-flex;align-items:center;color:var(--uas--sidebar-section--custom-icon-color, var(--uas--sidebar-section--icon-color, currentColor))}.heading{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.actions{display:inline-flex;align-items:center;gap:var(--uas--sidebar-section--custom-actions-gap, var(--uas--sidebar-section--actions-gap, var(--uas--base--spacing-2xs, 4px)))}.toggle{flex-shrink:0;display:inline-flex;align-items:center;justify-content:center;width:1.25em;height:1.25em;color:var(--uas--sidebar-section--custom-toggle-color, var(--uas--sidebar-section--toggle-color, currentColor));transition:transform var(--uas--sidebar-section--custom-toggle-transition, var(--uas--sidebar-section--toggle-transition, var(--uas--base--transition, 150ms ease-in-out)))}:host([open]) .toggle{transform:rotate(180deg)}.body{overflow:hidden;padding:0 var(--uas--sidebar-section--custom-body-padding-x, var(--uas--sidebar-section--body-padding-x, var(--uas--base--spacing-md, 16px))) var(--uas--sidebar-section--custom-body-padding-y, var(--uas--sidebar-section--body-padding-y, var(--uas--base--spacing-md, 16px)))}:host(:not([open])) .body{display:none}@media(prefers-reduced-motion: reduce){.toggle{transition:none}}`;var qV=function(e,t,i,a){var n,o=arguments.length,r=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(r=(o<3?n(r):o>3?n(t,i,r):n(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r};class qq extends ld{constructor(){super(...arguments),this.id="",this.heading="",this.initialOpen=!0,this.collapsible=!0,this.open=!0,this._headerID=`uas-sidebar-section-${lq()}`}firstUpdated(){this.open=this._initialOpenState()}render(){return s1` <div class="section"> ${this._templateHeader} ${this._templateBody} </div> `}get _templateHeader(){return this.collapsible?s1` <button id=${this._headerID} class="header" type="button" aria-expanded=${this.open?"true":"false"} aria-controls="${this._headerID}-body" @click=${this._handleHeaderClick} > ${this._templateIcon} ${this._templateHeading} ${this._templateActions} ${this._templateToggleIndicator} </button> `:s1` <h3 id=${this._headerID} class="header is-static"> ${this._templateIcon} ${this._templateHeading} ${this._templateActions} </h3> `}get _templateIcon(){return rK(this.icon)?s1` <span class="icon" aria-hidden="true"> <uas-icon code=${this.icon}></uas-icon> </span> `:s3}get _templateHeading(){return s1` <span class="heading"> <slot name="heading">${this.heading}</slot> </span> `}get _templateActions(){return s1` <span class="actions" @click=${this._handleActionsClick}> <slot name="actions"></slot> </span> `}get _templateToggleIndicator(){return s1` <span class="toggle" aria-hidden="true"> <svg viewBox="0 0 12 8" width="12" height="8" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"> <path d="M1 1.5l5 5 5-5"></path> </svg> </span> `}get _templateBody(){return s1` <div id="${this._headerID}-body" class="body" role="region" aria-labelledby=${this._headerID} > <slot></slot> </div> `}_handleHeaderClick(){this.collapsible&&(this.open=!this.open,this._persistOpenState(this.open),lw({element:this,eventName:"uas.sidebar-section.toggled",data:{id:this.id,open:this.open},schema:qB,options:{bubbles:!0,composed:!0}}))}_handleActionsClick(e){e.stopPropagation()}_initialOpenState(){let e=this._readPersistedOpen();return void 0!==e?e:this.initialOpen}_readPersistedOpen(){let e=this._persistenceKey();if(e)try{let t=localStorage.getItem(e);if(null===t)return;let i=JSON.parse(t);if("object"==typeof i&&null!==i&&"open"in i){let e=i.open;return"boolean"==typeof e?e:void 0}}catch{}}_persistOpenState(e){let t=this._persistenceKey();if(t)try{localStorage.setItem(t,JSON.stringify({open:e}))}catch{}}_persistenceKey(){if(!this.id)return;let e=this.closest("uas-sidebar");if(!e)return;let t=e.getAttribute("persist-key");if(t){var i;return i=this.id,`uas-sidebar:${t}:${i}`}}}qq.styles=qH,qV([l0({type:String})],qq.prototype,"id",void 0),qV([l0({type:String})],qq.prototype,"heading",void 0),qV([l0({type:String})],qq.prototype,"icon",void 0),qV([l0({type:Boolean,attribute:"initial-open"})],qq.prototype,"initialOpen",void 0),qV([l0({type:Boolean})],qq.prototype,"collapsible",void 0),qV([l0({type:Boolean,reflect:!0})],qq.prototype,"open",void 0),qV([l2()],qq.prototype,"_headerID",void 0),"u">typeof customElements&&!customElements.get("uas-sidebar-section")&&customElements.define("uas-sidebar-section",qq);let qZ=sf`:host{display:block}:host(:not([active])){display:none}.panel{display:block}`;var qW=function(e,t,i,a){var n,o=arguments.length,r=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(r=(o<3?n(r):o>3?n(t,i,r):n(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r};class qG extends ld{constructor(){super(...arguments),this.id="",this.label="",this.disabled=!1,this.active=!1}render(){return s1` <div class="panel" role="tabpanel"> <slot></slot> </div> `}renderButtonLabel(){let e=this.querySelector(':scope > [slot="label"]');return e?s1`${d5(e.innerHTML)}`:this.label?this.label:s3}}qG.styles=qZ,qW([l0({type:String})],qG.prototype,"id",void 0),qW([l0({type:String})],qG.prototype,"label",void 0),qW([l0({type:String})],qG.prototype,"icon",void 0),qW([l0({type:Boolean,reflect:!0})],qG.prototype,"disabled",void 0),qW([l0({type:Boolean,reflect:!0})],qG.prototype,"active",void 0),"u">typeof customElements&&!customElements.get("uas-sidebar-tab")&&customElements.define("uas-sidebar-tab",qG);let qK={START:"start",STRETCH:"stretch"},qY=rT(qK),qQ="uas.sidebar-tabs.changed",qX=rg({tabID:oR()}).strict(),qJ=sf`:host{display:flex;flex-direction:column;min-height:0}.tablist{display:flex;flex-shrink:0;gap:0;border-bottom:1px solid var(--uas--sidebar-tabs--custom-border-color, var(--uas--sidebar-tabs--border-color, var(--uas--color--border)));background:var(--uas--sidebar-tabs--custom-background, var(--uas--sidebar-tabs--background, var(--uas--sidebar--bg)));overflow-x:auto;scrollbar-width:none;position:sticky;top:0;z-index:1}.tablist::-webkit-scrollbar{display:none}:host([align=stretch]) .tablist .tab-button{flex:1;justify-content:center}:host([align=start]) .tablist .tab-button{flex:none}.tab-button{font-family:var(--uas--typography--label-medium-font-family);font-size:var(--uas--typography--label-medium-font-size);line-height:var(--uas--typography--label-medium-line-height);font-weight:var(--uas--typography--label-medium-font-weight);letter-spacing:var(--uas--typography--label-medium-letter-spacing);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;display:inline-flex;align-items:center;gap:var(--uas--sidebar-tabs--custom-tab-gap, var(--uas--sidebar-tabs--tab-gap, var(--uas--base--spacing-2xs, 4px)));min-width:0;height:var(--uas--sidebar-tabs--custom-tab-height, var(--uas--sidebar-tabs--tab-height, 40px));padding:0 var(--uas--sidebar-tabs--custom-tab-padding-x, var(--uas--sidebar-tabs--tab-padding-x, var(--uas--base--spacing-md, 16px)));background:rgba(0,0,0,0);border:0;border-bottom:2px solid rgba(0,0,0,0);margin-bottom:-1px;color:var(--uas--sidebar-tabs--custom-tab-color, var(--uas--sidebar-tabs--tab-color, currentColor));cursor:pointer;white-space:nowrap;transition:color var(--uas--sidebar-tabs--custom-tab-transition, var(--uas--sidebar-tabs--tab-transition, var(--uas--base--transition, 150ms ease-in-out))),border-color var(--uas--sidebar-tabs--custom-tab-transition, var(--uas--sidebar-tabs--tab-transition, var(--uas--base--transition, 150ms ease-in-out))),background var(--uas--sidebar-tabs--custom-tab-transition, var(--uas--sidebar-tabs--tab-transition, var(--uas--base--transition, 150ms ease-in-out)))}.tab-button:not([disabled]):hover{background:var(--uas--sidebar-tabs--custom-tab-hover-bg, var(--uas--sidebar-tabs--tab-hover-bg, rgba(0, 0, 0, 0.03)))}.tab-button:focus-visible{outline:2px solid var(--uas--sidebar-tabs--custom-focus-color, var(--uas--sidebar-tabs--focus-color, var(--uas--color--primary, #0790e8)));outline-offset:-2px}.tab-button[aria-selected=true]{color:var(--uas--sidebar-tabs--custom-tab-selected-color, var(--uas--sidebar-tabs--tab-selected-color, var(--uas--color--primary, #0790e8)));border-bottom-color:var(--uas--sidebar-tabs--custom-tab-selected-color, var(--uas--sidebar-tabs--tab-selected-color, var(--uas--color--primary, #0790e8)))}.tab-button[disabled]{opacity:var(--uas--sidebar-tabs--custom-tab-disabled-opacity, var(--uas--sidebar-tabs--tab-disabled-opacity, 0.5));cursor:not-allowed}.tab-button .tab-icon{display:inline-flex;align-items:center;flex-shrink:0}.tab-button .tab-label{display:inline-flex;align-items:center;min-width:0;overflow:hidden;text-overflow:ellipsis}.panels{flex:1;min-height:0}`;var q1=function(e,t,i,a){var n,o=arguments.length,r=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(r=(o<3?n(r):o>3?n(t,i,r):n(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r};class q0 extends ld{constructor(){super(...arguments),this.align=qK.STRETCH,this._tabs=[],this._tabsObserver=new MutationObserver(()=>this.requestUpdate())}disconnectedCallback(){super.disconnectedCallback(),this._tabsObserver.disconnect()}willUpdate(e){lQ(this,"align",qY,e,"uas-sidebar-tabs",qK.STRETCH)}updated(e){(e.has("activeTab")||e.has("_internalActiveTab")||e.has("_tabs"))&&this._reflectActiveOnTabs()}render(){let e=this._effectiveActiveTab(),t=new Set;return s1` <div class="tablist" role="tablist" @keydown=${this._handleKeydown}> ${this._tabs.map(i=>!i.id||t.has(i.id)?s3:(t.add(i.id),this._renderTabButton(i,i.id===e)))} </div> <div class="panels"> <slot @slotchange=${this._handleSlotChange}></slot> </div> `}_effectiveActiveTab(){if(this._isControlled())return this.activeTab;if(this._internalActiveTab&&this._tabs.some(e=>e.id===this._internalActiveTab))return this._internalActiveTab;let e=this._tabs.find(e=>e.id&&!e.disabled);return e?.id}_isControlled(){return void 0!==this.activeTab}_renderTabButton(e,t){let i=`uas-sidebar-tab-button-${e.id}`;return s1` <button id=${i} class="tab-button" role="tab" type="button" aria-selected=${t?"true":"false"} tabindex=${t?"0":"-1"} ?disabled=${e.disabled} data-tab-id=${e.id} @click=${()=>this.activate(e.id)} > ${e.icon?s1` <span class="tab-icon" aria-hidden="true"> <uas-icon code=${e.icon}></uas-icon> </span> `:s3} <span class="tab-label">${e.renderButtonLabel()}</span> </button> `}_handleSlotChange(){let e=this._slottedTabs;for(let t of(this._tabs=e,this._tabsObserver.disconnect(),e))this._tabsObserver.observe(t,{attributes:!0,attributeFilter:["id","label","icon","disabled"],childList:!0,subtree:!0,characterData:!0});let t=new Set;for(let i of e)if(i.id){if(t.has(i.id)){console.warn(`[uas-sidebar-tabs] Duplicate tab id "${i.id}". The first declared tab wins.`);continue}t.add(i.id)}}activate(e){let t=this._tabs.find(t=>t.id===e);t&&!t.disabled&&(this._isControlled()||(this._internalActiveTab=e),lw({element:this,eventName:qQ,data:{tabID:e},schema:qX,options:{bubbles:!0,composed:!0}}))}_reflectActiveOnTabs(){let e=this._effectiveActiveTab();for(let t of this._tabs)t.active=t.id===e}_handleKeydown(e){let t,i=this._tabs.filter(e=>e.id&&!e.disabled);if(0===i.length)return;let a=this._effectiveActiveTab(),n=i.findIndex(e=>e.id===a);switch(e.key){case"ArrowRight":t=(n+1+i.length)%i.length;break;case"ArrowLeft":t=(n-1+i.length)%i.length;break;case"Home":t=0;break;case"End":t=i.length-1;break;case"Enter":case" ":n>=0&&(e.preventDefault(),this.activate(i[n].id));return;default:return}if(void 0===t)return;e.preventDefault();let o=i[t];this.activate(o.id),this.updateComplete.then(()=>{let e=this._tablist?.querySelector(`[data-tab-id="${o.id}"]`);e?.focus()})}}q0.styles=qJ,q1([l0({type:String,attribute:"active-tab",reflect:!0})],q0.prototype,"activeTab",void 0),q1([l0({type:String,reflect:!0})],q0.prototype,"align",void 0),q1([l5({selector:"uas-sidebar-tab"})],q0.prototype,"_slottedTabs",void 0),q1([l4(".tablist")],q0.prototype,"_tablist",void 0),q1([l2()],q0.prototype,"_tabs",void 0),q1([l2()],q0.prototype,"_internalActiveTab",void 0),"u">typeof customElements&&!customElements.get("uas-sidebar-tabs")&&customElements.define("uas-sidebar-tabs",q0);let q2={PANEL:"panel",FLAT:"flat"},q3=rT(q2),q4=rg({tabID:oR()}).strict(),q6=sf`:host{display:block;box-sizing:border-box;height:100%;width:var(--uas--sidebar--custom-width, var(--uas--sidebar--width));min-width:0;background:var(--uas--sidebar--custom-bg, var(--uas--sidebar--bg));color:inherit}:host([surface=panel]){border-inline-start:1px solid var(--uas--sidebar--custom-border-color, var(--uas--sidebar--border-color, var(--uas--color--border)));box-shadow:var(--uas--sidebar--custom-panel-shadow, var(--uas--sidebar--panel-shadow, -4px 0 16px rgba(0, 0, 0, 0.04)))}.root{display:flex;flex-direction:column;height:100%;width:100%;min-height:0;box-sizing:border-box;overflow:hidden}.header,.footer{display:flex;align-items:center;flex-shrink:0;padding:var(--uas--sidebar--custom-padding-y, var(--uas--sidebar--padding-y, var(--uas--base--spacing-sm))) var(--uas--sidebar--custom-padding-x, var(--uas--sidebar--padding-x, var(--uas--base--spacing-md)));min-height:0}.header{background:var(--uas--sidebar--custom-header-bg, var(--uas--sidebar--header-bg, var(--uas--sidebar--bg)));border-bottom:1px solid var(--uas--sidebar--custom-border-color, var(--uas--sidebar--border-color, var(--uas--color--border)))}.footer{background:var(--uas--sidebar--custom-footer-bg, var(--uas--sidebar--footer-bg, var(--uas--sidebar--bg)));border-top:1px solid var(--uas--sidebar--custom-border-color, var(--uas--sidebar--border-color, var(--uas--color--border)))}:host(:not([data-has-header])) .header{display:none}:host(:not([data-has-footer])) .footer{display:none}.body{flex:1;display:flex;flex-direction:column;min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain}.body::-webkit-scrollbar{background-color:rgba(0,0,0,.09)}.body::-webkit-scrollbar:vertical{width:10px}.body::-webkit-scrollbar-thumb{background:rgba(0,0,0,.3);border-radius:150px;background-clip:padding-box;border:2px solid rgba(0,0,0,0)}.body::-webkit-scrollbar-thumb:vertical{min-height:10px}`;var q5=function(e,t,i,a){var n,o=arguments.length,r=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(r=(o<3?n(r):o>3?n(t,i,r):n(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r};class q8 extends ld{constructor(){super(...arguments),this.width="320px",this.surface=q2.PANEL,this._boundTabsChangedHandler=this._handleTabsChanged.bind(this)}willUpdate(e){lQ(this,"surface",q3,e,"uas-sidebar",q2.PANEL),e.has("width")&&this.style.setProperty("--uas--sidebar--custom-width",this.width)}render(){return s1` <div class="root"> <div class="header" part="header"> <slot name="header" @slotchange=${this._handleHeaderSlotChange}></slot> </div> <div class="body" part="body"> <slot @slotchange=${this._handleBodySlotChange}></slot> </div> <div class="footer" part="footer"> <slot name="footer" @slotchange=${this._handleFooterSlotChange}></slot> </div> </div> `}updated(e){e.has("activeTab")&&this._forwardActiveTabToTabs()}connectedCallback(){super.connectedCallback(),this.addEventListener(qQ,this._boundTabsChangedHandler)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener(qQ,this._boundTabsChangedHandler)}_handleTabsChanged(e){if(!(e instanceof CustomEvent))return;let t=e.detail;"object"==typeof t&&null!==t&&"tabID"in t&&"string"==typeof t.tabID&&lw({element:this,eventName:"uas.sidebar.tab-changed",data:{tabID:t.tabID},schema:q4,options:{bubbles:!0,composed:!0}})}_handleHeaderSlotChange(e){this._reflectSlotPresence(e,"data-has-header")}_handleFooterSlotChange(e){this._reflectSlotPresence(e,"data-has-footer")}_handleBodySlotChange(){this._forwardActiveTabToTabs()}_reflectSlotPresence(e,t){let i=e.target;i instanceof HTMLSlotElement&&(i.assignedNodes({flatten:!0}).length>0?this.setAttribute(t,""):this.removeAttribute(t))}activateTab(e){let t=this.querySelector(":scope > uas-sidebar-tabs");t?.activate(e)}_forwardActiveTabToTabs(){if(void 0===this.activeTab)return;let e=this.querySelector(":scope > uas-sidebar-tabs");e&&e.getAttribute("active-tab")!==this.activeTab&&e.setAttribute("active-tab",this.activeTab)}}q8.styles=q6,q5([l0({type:String})],q8.prototype,"width",void 0),q5([l0({type:String,reflect:!0})],q8.prototype,"surface",void 0),q5([l0({type:String,attribute:"active-tab"})],q8.prototype,"activeTab",void 0),q5([l0({type:String,attribute:"persist-key"})],q8.prototype,"persistKey",void 0),"u">typeof customElements&&!customElements.get("uas-sidebar")&&customElements.define("uas-sidebar",q8);var q7=a(8194),q9=a.n(q7),Ze=function(e,t,i,a){var n,o=arguments.length,r=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(r=(o<3?n(r):o>3?n(t,i,r):n(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r};let Zt=class extends ld{constructor(){super(...arguments),this.label="",this.value=""}static{this.styles=sf`${sm(q9())}`}willUpdate(e){lQ(this,"label",oR(),e,"uap-f-recipe-log-sidebar-property-base"),lQ(this,"value",oR(),e,"uap-f-recipe-log-sidebar-property-base")}render(){return""===this.label?s3:s1` <div class="property"> <dt class="property__label" part="label">${this.label}</dt> <dd class="property__value"> ${this.templateValue()} </dd> </div> `}templateValue(){if(""===this.value)return s1`<em class="property__empty">${(0,lX.__)("(empty)","uncanny-automator")}</em>`;let e=SW(this.value);return 1===e.length&&e[0]?.kind===SZ.TEXT?s1`<code class="property__code">${this.value}</code>`:s1`<span class="property__line">${e.map(e=>this.templateSegment(e))}</span>`}templateSegment(e){return e.kind===SZ.TEXT?s1`<code class="property__code property__code--inline">${e.text}</code>`:s1`<uap-d-recipe-token code=${e.code} size="sm" .recipeID=${this.recipeID} hide-status></uap-d-recipe-token>`}};Ze([l0({type:String})],Zt.prototype,"label",void 0),Ze([l0({type:String})],Zt.prototype,"value",void 0),Ze([H8({context:Vy,subscribe:!0}),l0({attribute:!1})],Zt.prototype,"recipeID",void 0),Zt=Ze([lJ("uap-f-recipe-log-sidebar-property-base")],Zt);var Zi=a(3858),Za=a.n(Zi),Zn=function(e,t,i,a){var n,o=arguments.length,r=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(r=(o<3?n(r):o>3?n(t,i,r):n(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r};let Zo=class extends ld{constructor(){super(...arguments),this.label="",this.value="",this.openPreview=()=>{let e=Math.max(0,window.screen.width/2-400),t=Math.max(0,window.screen.height/2-250),i=`toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=800,height=500,top=${t},left=${e}`,a=(0,lX.sprintf)((0,lX.__)('"%s" preview',"uncanny-automator"),this.label),n=window.open("",a,i);if(!n)return;let o=n.document.createElement("iframe");o.setAttribute("sandbox",""),o.style.cssText="position:absolute;inset:0;width:100%;height:100%;border:0;",o.srcdoc=this.value,n.document.body.style.margin="0",n.document.body.appendChild(o)}}static{this.styles=sf`${sm(Za())}`}willUpdate(e){lQ(this,"label",oR(),e,"uap-f-recipe-log-sidebar-property-code"),lQ(this,"value",oR(),e,"uap-f-recipe-log-sidebar-property-code"),lQ(this,"attrs",C2.optional(),e,"uap-f-recipe-log-sidebar-property-code")}render(){if(""===this.label)return s3;let e=Bt.safeParse(this.attrs?.code_language).data;return s1` <div class="property"> <dt class="property__label"> ${this.label} ${void 0!==e?s1`<uas-chip size="sm" filled label=${e.toUpperCase()}></uas-chip>`:s3} </dt> <dd class="property__value"> ${""===this.value?s1`<em class="property__empty">${(0,lX.__)("(empty)","uncanny-automator")}</em>`:s1` <uas-code-viewer class="property__code-viewer" language=${e??s3} .code=${this.value} ></uas-code-viewer> ${"html"===e?this.templatePreviewButton():s3} `} </dd> </div> `}templatePreviewButton(){return s1` <uas-button class="property__preview" data-test="property-code-preview" size="sm" color="secondary" @click=${this.openPreview} > <uas-icon code="eye"></uas-icon> ${(0,lX.__)("View preview","uncanny-automator")} <uas-icon code="arrow-up-right-from-square"></uas-icon> </uas-button> `}};Zn([l0({type:String})],Zo.prototype,"label",void 0),Zn([l0({type:String})],Zo.prototype,"value",void 0),Zn([l0({attribute:!1})],Zo.prototype,"attrs",void 0),Zo=Zn([lJ("uap-f-recipe-log-sidebar-property-code")],Zo);var Zr=a(6923),Zs=a.n(Zr),Zl=function(e,t,i,a){var n,o=arguments.length,r=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(r=(o<3?n(r):o>3?n(t,i,r):n(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r};let Zc=class extends ld{constructor(){super(...arguments),this.label="",this.value=""}static{this.styles=sf`${sm(Zs())}`}willUpdate(e){lQ(this,"label",oR(),e,"uap-f-recipe-log-sidebar-property-file"),lQ(this,"value",oR(),e,"uap-f-recipe-log-sidebar-property-file")}render(){if(""===this.label)return s3;let e=function(e){let t;if(""===e)return[];try{t=JSON.parse(e)}catch{return[]}let i=kQ.safeParse(t);return i.success?i.data:[]}(this.value);return s1` <div class="property"> <dt class="property__label">${this.label}</dt> <dd class="property__value"> ${0===e.length?s1`<em class="property__empty">${(0,lX.__)("(empty)","uncanny-automator")}</em>`:e.map(e=>this.templateCard(e))} </dd> </div> `}templateCard(e){return s1` <div class="file" data-test="file-card"> <div class="file__icon"> ${this.templateIcon(e)} </div> <div class="file__meta"> <div class="file__name">${e.filename}</div> <div class="file__details"> ${void 0!==e.id?s1`<span>#${e.id}</span>`:s3} ${e.filesizeHumanReadable?s1`<span>${e.filesizeHumanReadable}</span>`:s3} </div> </div> <div class="file__actions"> <uas-button size="xs" color="secondary" href=${e.url} target="_blank" > ${(0,lX.__)("View file","uncanny-automator")} </uas-button> </div> </div> `}templateIcon(e){let t=e.mime;return void 0!==t&&/^image\//.test(t)?s1`<img class="file__icon-image" src=${e.url} alt=${e.alt??""} />`:s1`<uas-icon class="file__icon-glyph" mime=${t??""} code="file"></uas-icon>`}};Zl([l0({type:String})],Zc.prototype,"label",void 0),Zl([l0({type:String})],Zc.prototype,"value",void 0),Zc=Zl([lJ("uap-f-recipe-log-sidebar-property-file")],Zc),rp(rg({code:oR(),value:oR()}).strict()).readonly();var Zd=a(8781),Zu=a.n(Zd),Zp=function(e,t,i,a){var n,o=arguments.length,r=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(r=(o<3?n(r):o>3?n(t,i,r):n(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r};let Zh=class extends ld{constructor(){super(...arguments),this.label="",this.value=""}static{this.styles=sf`${sm(Zu())}`}willUpdate(e){lQ(this,"label",oR(),e,"uap-f-recipe-log-sidebar-property-repeater"),lQ(this,"value",oR(),e,"uap-f-recipe-log-sidebar-property-repeater")}render(){if(""===this.label)return s3;let e=function(e){let t;if(""===e)return[];try{t=JSON.parse(e)}catch{return[]}let i=kX.safeParse(t);return i.success?i.data:[]}(this.value);return s1` <div class="property"> <dt class="property__label">${this.label}</dt> <dd class="property__value"> ${0===e.length?s1`<em class="property__empty">${(0,lX.__)("(empty)","uncanny-automator")}</em>`:s1` <table class="repeater" data-test="repeater-table"> <tbody> ${e.map((e,t)=>this.templateRow(e,t))} </tbody> </table> `} </dd> </div> `}templateRow(e,t){let i=Object.entries(e).filter(([e])=>!(e.endsWith("_readable")||e.endsWith("_custom"))).map(([t])=>({code:t,value:e[`${t}_readable`]??e[`${t}_custom`]??e[t]??""}));return s1` <tr class="repeater__row" data-test="repeater-row"> <td class="repeater__number"> <span class="repeater__number-value">${t+1}</span> </td> <td class="repeater__cells"> ${i.map(e=>s1` <uap-f-recipe-log-sidebar-property-base label=${e.code} value=${e.value} ></uap-f-recipe-log-sidebar-property-base> `)} </td> </tr> `}};Zp([l0({type:String})],Zh.prototype,"label",void 0),Zp([l0({type:String})],Zh.prototype,"value",void 0),Zh=Zp([lJ("uap-f-recipe-log-sidebar-property-repeater")],Zh);var Zg=a(2071),Zm=a.n(Zg),Zf=function(e,t,i,a){var n,o=arguments.length,r=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(r=(o<3?n(r):o>3?n(t,i,r):n(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r};let Zy=class extends ld{constructor(){super(...arguments),this.label="",this.value=""}static{this.styles=sf`${sm(Zm())}`}willUpdate(e){lQ(this,"label",oR(),e,"uap-f-recipe-log-sidebar-property-textarea"),lQ(this,"value",oR(),e,"uap-f-recipe-log-sidebar-property-textarea"),lQ(this,"attrs",C2.optional(),e,"uap-f-recipe-log-sidebar-property-textarea")}render(){return""===this.label?s3:this.attrs?.supports_html===!0?this.templateDelegatedCode():this.templatePlainText()}templateDelegatedCode(){let e={...this.attrs,code_language:this.attrs?.code_language??"html"};return s1` <uap-f-recipe-log-sidebar-property-code label=${this.label} value=${this.value} .attrs=${e} ></uap-f-recipe-log-sidebar-property-code> `}templatePlainText(){return s1` <div class="property"> <dt class="property__label"> ${this.label} <uas-chip size="sm" filled label=${String((0,lX.__)("Plain text","uncanny-automator"))}></uas-chip> </dt> <dd class="property__value"> ${""===this.value?s1`<em class="property__empty">${(0,lX.__)("(empty)","uncanny-automator")}</em>`:s1`<code class="property__code">${this.value}</code>`} </dd> </div> `}};Zf([l0({type:String})],Zy.prototype,"label",void 0),Zf([l0({type:String})],Zy.prototype,"value",void 0),Zf([l0({attribute:!1})],Zy.prototype,"attrs",void 0),Zy=Zf([lJ("uap-f-recipe-log-sidebar-property-textarea")],Zy);var Zb=a(6339),Zv=a.n(Zb),Z_=function(e,t,i,a){var n,o=arguments.length,r=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(r=(o<3?n(r):o>3?n(t,i,r):n(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r};let Zw=class extends ld{static{this.styles=sf`${sm(Zv())}`}willUpdate(e){lQ(this,"properties",C3.optional(),e,"uap-f-recipe-log-sidebar-properties")}render(){return this.properties&&0!==this.properties.length?s1` <dl class="properties" data-test="properties"> ${this.properties.map(e=>this.templateLeaf(e))} </dl> `:s3}templateLeaf(e){switch(e.type){case C1.FILE:return s1` <uap-f-recipe-log-sidebar-property-file label=${e.label} value=${e.value} ></uap-f-recipe-log-sidebar-property-file> `;case C1.CODE:return s1` <uap-f-recipe-log-sidebar-property-code label=${e.label} value=${e.value} .attrs=${e.attributes} ></uap-f-recipe-log-sidebar-property-code> `;case C1.REPEATER:return s1` <uap-f-recipe-log-sidebar-property-repeater label=${e.label} value=${e.value} ></uap-f-recipe-log-sidebar-property-repeater> `;case C1.TEXTAREA:return s1` <uap-f-recipe-log-sidebar-property-textarea label=${e.label} value=${e.value} .attrs=${e.attributes} ></uap-f-recipe-log-sidebar-property-textarea> `;case C1.TEXT:default:return s1` <uap-f-recipe-log-sidebar-property-base label=${e.label} value=${e.value} ></uap-f-recipe-log-sidebar-property-base> `}}};Z_([l0({attribute:!1})],Zw.prototype,"properties",void 0),Zw=Z_([lJ("uap-f-recipe-log-sidebar-properties")],Zw);var Zx=a(342),Zk=a.n(Zx),ZE=function(e,t,i,a){var n,o=arguments.length,r=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(r=(o<3?n(r):o>3?n(t,i,r):n(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r};let ZS=class extends ld{constructor(){super(...arguments),this.integrationsController=new vE(this,SS),this.blocksController=new vE(this,Ac)}static{this.styles=sf`${sm(Zk())}`}willUpdate(e){lQ(this,"node",Tb.optional(),e,"uap-f-recipe-log-sidebar-summary")}render(){let e=this.node;return e?s1` <div class="summary"> <div class="summary__headline"> ${this.templateIcon(e)} <div class="summary__sentence"> ${this.templateHeadline(e)} </div> </div> ${this.templateDetails(e)} </div> `:s3}templateIcon(e){return e.type===kP.BLOCK?s1` <div class="summary__icon"> <uap-d-recipe-block-icon code=${e.block_type} size="xs" variant="box"></uap-d-recipe-block-icon> </div> `:s1` <div class="summary__icon"> <uap-d-integrations-icon code=${e.integration_code} variant="flat" size="xs"></uap-d-integrations-icon> </div> `}templateHeadline(e){if(e.type===kP.BLOCK){let t=this.blocksController.result.data?.[e.block_type],i=RG(t?.sentence,e.fields);return s1` <uap-d-recipe-block-name class="summary__block" code=${e.block_type} no-icon ></uap-d-recipe-block-name> ${""!==i?s1` <uap-d-recipe-sentence size="sm" .template=${i} .fields=${e.fields} .recipeID=${this.recipeID} hide-status ></uap-d-recipe-sentence> `:s3} `}return this.templateItemSentence(e)}templateItemSentence(e){if(this.integrationsController.result.isPending)return s1`<uap-d-recipe-sentence is-loading></uap-d-recipe-sentence>`;let t=e.type===kP.ITEM?$f(this.integrationsController.result.data,e.integration_code,e.item_type,e.code)?.sentence?.dynamic??"":$b(this.integrationsController.result.data,e.integration_code,e.block_modifier_type,e.code)?.sentence?.dynamic??"";return""===t?s1`<code class="summary__code">${e.code}</code>`:s1` <uap-d-recipe-sentence size="sm" .template=${t} .fields=${e.fields} .recipeID=${this.recipeID} hide-status ></uap-d-recipe-sentence> `}templateDetails(e){return s1` <dl class="summary__details"> <div class="summary__row"> <dt class="summary__label">${(0,lX.__)("Status","uncanny-automator")}</dt> <dd class="summary__value"> <uap-f-recipe-log-status .status=${e.execution.status}></uap-f-recipe-log-status> </dd> </div> ${this.templateDateRows(e)} ${this.templateRunsRow(e)} ${this.templateNotesRow(e)} </dl> `}templateDateRows(e){if(e.type===kP.BLOCK_MODIFIER)return s3;let t=e.execution.date_started??"",i=e.execution.date_ended;return""===t&&(void 0===i||""===i)?s3:void 0===i||""===i||i===t?s1` <div class="summary__row"> <dt class="summary__label">${(0,lX.__)("Date","uncanny-automator")}</dt> <dd class="summary__value"> <time datetime=${t}>${t}</time> </dd> </div> `:s1` <div class="summary__row"> <dt class="summary__label">${(0,lX.__)("Start date","uncanny-automator")}</dt> <dd class="summary__value"> <time datetime=${t}>${t}</time> </dd> </div> <div class="summary__row"> <dt class="summary__label">${(0,lX.__)("End date","uncanny-automator")}</dt> <dd class="summary__value"> <time datetime=${i}>${i}</time> </dd> </div> `}templateRunsRow(e){if(e.type!==kP.ITEM)return s3;let t=e.execution.runs??[];return t.length<=1?s3:s1` <div class="summary__row"> <dt class="summary__label">${(0,lX.__)("Runs","uncanny-automator")}</dt> <dd class="summary__value">${t.length}</dd> </div> `}templateNotesRow(e){let t=e.execution.result_message;return void 0===t||""===t?s3:s1` <div class="summary__row"> <dt class="summary__label">${(0,lX.__)("Notes","uncanny-automator")}</dt> <dd class="summary__value" role="status">${t}</dd> </div> `}};ZE([l0({attribute:!1})],ZS.prototype,"node",void 0),ZE([H8({context:Vy,subscribe:!0}),l0({attribute:!1})],ZS.prototype,"recipeID",void 0),ZS=ZE([lJ("uap-f-recipe-log-sidebar-summary")],ZS);let ZC=rg({itemLogID:oR().min(1)}).strict(),ZT={RESENT:"resent",FAILED:"failed",SKIPPED:"skipped"},ZI=rT(ZT),ZD=rg({success:re(),outcome:ZI,message:oR(),api_log_id:o5(),status:CQ}).passthrough(),ZA={success:!0,outcome:ZT.RESENT,message:"The request has been successfully resent",api_log_id:9708,status:{code:ZT.RESENT,phase:Cq.TERMINAL_SUCCESS,appearance:CK.NORMAL,label:"Resent",icon:"circle-check",tone:CW.SUCCESS}};ZT.FAILED,ZT.FAILED,Cq.TERMINAL_FAILURE,CK.NORMAL,CW.ERROR,ZT.SKIPPED,ZT.SKIPPED,Cq.TERMINAL_FAILURE,CK.NORMAL,CW.WARNING,ZT.RESENT,ZT.FAILED,ZT.SKIPPED;let Z$=new Map;async function ZO(e){let{itemLogID:t}=ZC.parse(e),i=Z$.get(t);if(i)return i;let a=(async function(e){return d4.DEV.RETURN_MOCK_DATA?(await new Promise(e=>setTimeout(e,d4.DEV.MOCK_DELAY_MS)),ZD.parse(ZA)):dV({endpoint:`action-log/${e}/resend`,method:"POST",responseSchema:ZD,useEnvelope:!0})})(t).finally(()=>{Z$.delete(t)});return Z$.set(t,a),a}async function ZR(e){let t=await ZO(e);return dW.invalidateQueries({queryKey:qh.all()}),dW.invalidateQueries({queryKey:qb()}),t}var ZM=a(2052),ZL=a.n(ZM),ZN=function(e,t,i,a){var n,o=arguments.length,r=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(r=(o<3?n(r):o>3?n(t,i,r):n(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r};let ZP=class extends ld{constructor(){super(...arguments),this.isResending=!1,this.resendError=""}static{this.styles=sf`${sm(ZL())}`}willUpdate(e){lQ(this,"item",Ti.optional(),e,"uap-f-recipe-log-sidebar-item-tasks")}render(){let e=this.item;if(!e)return s3;let t=e.execution.control;return t&&0!==t.actions.length?s1` <uas-sidebar-section id="item-tasks" icon="bolt" .initialOpen=${!0} > <span slot="heading">${(0,lX.__)("Actions","uncanny-automator")}</span> <div class="item-tasks" data-test="item-tasks"> ${t.actions.includes(C6.RESEND)?s1`<uas-button data-test="item-tasks-rerun" size="sm" color="secondary" ?loading=${this.isResending} ?disabled=${this.isResending} @click=${()=>this.onRerunClick(t.item_log_id)} > <uas-icon code="repeat"></uas-icon> ${(0,lX.__)("Resend","uncanny-automator")} </uas-button>`:s3} </div> ${""!==this.resendError?s1`<uas-alert type="error" class="item-tasks__error" data-test="item-tasks-error">${this.resendError}</uas-alert>`:s3} </uas-sidebar-section> `:s3}async onRerunClick(e){if(!this.isResending){this.isResending=!0,this.resendError="";try{await ZR({itemLogID:e}),lw({element:this,eventName:VF,data:{},schema:Vj,options:{bubbles:!0,composed:!0}})}catch(e){this.resendError=e instanceof Error?e.message:String(e)}finally{this.isResending=!1}}}};ZN([l0({attribute:!1})],ZP.prototype,"item",void 0),ZN([l2()],ZP.prototype,"isResending",void 0),ZN([l2()],ZP.prototype,"resendError",void 0),ZP=ZN([lJ("uap-f-recipe-log-sidebar-item-tasks")],ZP);let Zz=cr(class extends cs{constructor(e){if(super(e),3!==e.type&&1!==e.type&&4!==e.type)throw Error("The `live` directive is not allowed on child or event bindings");if(void 0!==e.strings)throw Error("`live` bindings can only contain a single expression")}render(e){return e}update(e,[t]){if(t===s2||t===s3)return t;let i=e.element,a=e.name;if(3===e.type){if(t===i[a])return s2}else if(4===e.type){if(!!t===i.hasAttribute(a))return s2}else if(1===e.type&&i.getAttribute(a)===t+"")return s2;return $T(e),t}}),ZU=rg({recipeID:o5().int().positive(),runNumber:o5().int().positive(),logID:o5().int().positive(),nodeID:ry([o5().int().positive(),oR().min(1)]),page:o5().int().positive().default(1),perPage:o5().int().min(1).max(100).default(20),search:oR().default("")}).strict(),ZF=rv("node_type",[rg({node_type:rT([kP.BLOCK_MODIFIER]),iterations:rp(Tn).readonly(),total:o5().int().nonnegative(),totalPages:o5().int().nonnegative(),page:o5().int().positive(),perPage:o5().int().positive()}).strict(),rg({node_type:rT([kP.BLOCK]),iterations:rp(Tm).readonly(),total:o5().int().nonnegative(),totalPages:o5().int().nonnegative(),page:o5().int().positive(),perPage:o5().int().positive()}).strict(),rg({node_type:rT([kP.ITEM]),iterations:rp(Tt).readonly(),total:o5().int().nonnegative(),totalPages:o5().int().nonnegative(),page:o5().int().positive(),perPage:o5().int().positive()}).strict()]),Zj=D$.map((e,t)=>{let i=DC(t);return{iteration_index:t,iteration_label:i,execution:{status:"completed"===e||"completed-with-errors"===e||"failed"===e?Dl:Dd,tokens:{USER_EMAIL:i},fields:{EMAIL_ADDRESS:{type:"email",value:i,miscellaneous:{label:"Email address"}},DOMAIN_NAME:{type:"text",value:"automatorplugin.com",miscellaneous:{label:"Domain"}}}}}}),ZB=Zj.slice(0,20);ZF.parse({node_type:kP.BLOCK_MODIFIER,iterations:ZB,total:Zj.length,totalPages:Math.ceil(Zj.length/20),page:1,perPage:20}),ZF.parse({node_type:kP.BLOCK_MODIFIER,iterations:ZB,total:Zj.length,totalPages:Math.ceil(Zj.length/20),page:1,perPage:20});let ZH="noreply@automatorplugin.com",ZV="Uncanny Owl",Zq=Array.from({length:102},(e,t)=>{let i=DC(t),a=i.split("@")[0]??i,n={USER_EMAIL:i,USER_DISPLAYNAME:a,admin_email:ZH,site_name:ZV},o={EMAILCONTENTTYPE:{type:"select",value:"html",readable:"HTML",miscellaneous:{label:"Content type"}},EMAILFROM:{type:"email",value:ZH,miscellaneous:{label:"From"}},EMAILFROMNAME:{type:"text",value:ZV,miscellaneous:{label:"From name"}},EMAILTO:{type:"email",value:i,miscellaneous:{label:"To"}},REPLYTO:{type:"email",value:"",miscellaneous:{label:"Reply to"}},EMAILCC:{type:"email",value:"",miscellaneous:{label:"CC"}},EMAILBCC:{type:"email",value:"",miscellaneous:{label:"BCC"}},EMAILSUBJECT:{type:"text",value:"Welcome to the program",miscellaneous:{label:"Subject"}},EMAILBODY:{type:"textarea",value:`<p>Hi ${a}, welcome aboard!</p>`,miscellaneous:{label:"Body",attributes:{supports_html:!0}}}},r=1===t;return 2===t?{iteration_index:t,iteration_label:i,execution:{status:I5,date_started:"May 27, 2026 10:00 AM",runs:[{run_number:1,status:I5,date:"May 27, 2026 10:00 AM",tokens:n,fields:o,result_message:"SMTP returned 503 (mailbox_busy)."}],control:{item_log_id:`iteration-${t}-rerun`,actions:[C6.RESEND]}}}:{iteration_index:t,iteration_label:i,execution:{status:I1,date_started:"May 27, 2026 10:00 AM",runs:r?[{run_number:1,status:I5,date:"May 27, 2026 10:00 AM",tokens:n,fields:o,result_message:"SMTP returned 421 (try again later)."},{run_number:2,status:I1,date:"May 27, 2026 10:00 AM",tokens:n,fields:o}]:[{run_number:1,status:I1,date:"May 27, 2026 10:00 AM",tokens:n,fields:o}]}}}),ZZ=Array.from({length:102},(e,t)=>{let i=DC(t),a=String(t%12+1);return{iteration_index:t,iteration_label:i,execution:{status:I1,date_started:"May 27, 2026 10:00 AM",date_ended:"May 27, 2026 10:05 AM",date_elapsed:{seconds:300,human_readable:"5 minutes"},tokens:{USER_HOURS:a},fields:{DELAY_MODE:{type:"radio",value:"delay",readable:"Delay",miscellaneous:{label:"Delay mode",show_label_in_sentence:!1}},DELAY_UNIT:{type:"select",value:"hours",readable:"Hours",miscellaneous:{label:"Unit",show_label_in_sentence:!1}},DELAY_VALUE:{type:"int",value:a,miscellaneous:{label:"Amount",show_label_in_sentence:!1}}}}}});function ZW(e,t){return ZG(e.flow.entry.triggers,t)??ZG(e.flow.content,t)}function ZG(e,t){for(let i of e){if(i.id===t)return i;if(i.type!==kP.ITEM){for(let e of i.modifiers)if(e.id===t)return e;for(let e of i.paths){let i=ZG(e.content,t);if(void 0!==i)return i}}}}let ZK={all:()=>["recipe-log-iterations"],list:e=>[...ZK.all(),e.recipeID,e.runNumber,e.logID,e.nodeID,{page:e.page,perPage:e.perPage,search:e.search}]};async function ZY(e){let[,t,i,a,n,{page:o,perPage:r,search:s}]=e.queryKey,l=ZU.parse({recipeID:t,runNumber:i,logID:a,nodeID:n,page:o,perPage:r,search:s});if(d4.DEV.RETURN_MOCK_DATA)return await new Promise(e=>setTimeout(e,d4.DEV.MOCK_DELAY_MS)),function(e){var t,i;let a=ZW(DO,e.nodeID);if(!a)throw Error(`Mock iterations: unknown node id ${String(e.nodeID)}. The production endpoint would return 404 rest_node_not_found here.`);if(a.type===kP.ITEM){let i,a,n,o,r,s,l,c;return n=(a=""===(i=(t={page:e.page,perPage:e.perPage,search:e.search}).search.toLowerCase())?Zq:Zq.filter(e=>(e.iteration_label??"").toLowerCase().includes(i))).length,o=t.perPage>0?t.perPage:20,r=0===n?0:Math.ceil(n/o),l=((s=Math.max(1,Math.min(t.page,Math.max(1,r))))-1)*o,c=a.slice(l,l+o),ZF.parse({node_type:kP.ITEM,iterations:c,total:n,totalPages:r,page:s,perPage:o})}if(a.type===kP.BLOCK){let t,a,n,o,r,s,l,c;return n=(a=""===(t=(i={page:e.page,perPage:e.perPage,search:e.search}).search.toLowerCase())?ZZ:ZZ.filter(e=>(e.iteration_label??"").toLowerCase().includes(t)||Object.values(e.execution.tokens??{}).some(e=>String(e).toLowerCase().includes(t)))).length,o=i.perPage>0?i.perPage:20,r=0===n?0:Math.ceil(n/o),l=((s=Math.max(1,Math.min(i.page,Math.max(1,r))))-1)*o,c=a.slice(l,l+o),ZF.parse({node_type:kP.BLOCK,iterations:c,total:n,totalPages:r,page:s,perPage:o})}let n=e.search.toLowerCase(),o=""===n?Zj:Zj.filter(e=>(e.iteration_label??"").toLowerCase().includes(n)||Object.values(e.execution.tokens??{}).some(e=>String(e).toLowerCase().includes(n))),r=o.length,s=e.perPage>0?Math.ceil(r/e.perPage):0,l=(e.page-1)*e.perPage,c=l+e.perPage;return ZF.parse({node_type:kP.BLOCK_MODIFIER,iterations:o.slice(l,c),total:r,totalPages:s,page:e.page,perPage:e.perPage})}(l);let c=new URLSearchParams;return c.set("page",String(l.page)),c.set("per_page",String(l.perPage)),""!==l.search&&c.set("search",l.search),dV({endpoint:`recipe-log/${l.recipeID}/${l.runNumber}/${l.logID}/node/${encodeURIComponent(String(l.nodeID))}/iterations?${c.toString()}`,responseSchema:ZF,method:"GET",useEnvelope:!0})}function ZQ(e){let t=ZU.parse(e);return{queryKey:ZK.list(t),queryFn:ZY,staleTime:3e4,placeholderData:e=>e}}ry([Tm,Tn,Tt]),rg({index:o5(),isFirstOpen:re()}).strict().readonly();var ZX=a(6008),ZJ=a.n(ZX),Z1=function(e,t,i,a){var n,o=arguments.length,r=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(r=(o<3?n(r):o>3?n(t,i,r):n(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r};let Z0=class extends ld{constructor(){super(...arguments),this.recipeID=0,this.runNumber=0,this.logID=0,this.iterationKind=kP.BLOCK,this.aggregateTotal=0,this.page=1,this.search="",this.isPaginating=!1,this.isSearching=!1,this.iterationsController=new vE(this,{...ZQ({recipeID:1,runNumber:1,logID:1,nodeID:"placeholder"}),enabled:!1}),this.debouncedSearch=Ft(e=>{e!==this.search&&(this.isSearching=!0,this.search=e,this.page=1)},250),this.onSearchInput=e=>{e.target instanceof HTMLInputElement&&this.debouncedSearch(e.target.value)}}static{this.styles=sf`${sm(ZJ())}`}willUpdate(e){lQ(this,"recipeID",o5().int().nonnegative(),e,"uap-f-recipe-log-sidebar-iterations"),lQ(this,"runNumber",o5().int().nonnegative(),e,"uap-f-recipe-log-sidebar-iterations"),lQ(this,"logID",o5().int().nonnegative(),e,"uap-f-recipe-log-sidebar-iterations"),lQ(this,"iterationKind",kz,e,"uap-f-recipe-log-sidebar-iterations"),lQ(this,"nodeID",ry([o5(),oR().min(1)]).optional(),e,"uap-f-recipe-log-sidebar-iterations"),lQ(this,"aggregateTotal",o5().int().nonnegative(),e,"uap-f-recipe-log-sidebar-iterations"),this.maybeRepinController(e);let t=this.iterationsController.result;t.isPlaceholderData||t.isFetching||(this.isPaginating&&(this.isPaginating=!1),this.isSearching&&(this.isSearching=!1))}maybeRepinController(e){if(!e.has("recipeID")&&!e.has("runNumber")&&!e.has("logID")&&!e.has("nodeID")&&!e.has("page")&&!e.has("search"))return;let t=this.nodeID;if(!(rK(t)&&""!==t&&this.recipeID>0&&this.runNumber>0&&this.logID>0))return void this.iterationsController.setOptions({enabled:!1});let i=ZQ({recipeID:this.recipeID,runNumber:this.runNumber,logID:this.logID,nodeID:t,page:this.page,perPage:20,search:this.search});this.iterationsController.setOptions({...i,enabled:!0})}render(){if(void 0===this.nodeID||""===this.nodeID)return s3;let e=this.iterationsController.result;if(e.isPending&&void 0===e.data)return this.templateLoading();if(e.isError&&void 0===e.data)return this.templateError(e.error);let t=e.data??this.emptySlice();return t.node_type!==this.iterationKind?this.templateError(Error(`Unexpected node_type "${t.node_type}" for "${this.iterationKind}" iterations consumer.`)):this.templateLoaded(t)}emptySlice(){return{node_type:this.iterationKind,iterations:[],total:0,totalPages:0,page:1,perPage:20}}templateLoaded(e){let t=this.isPaginating||this.isSearching,i=""===this.search?String(e.total):(0,lX.sprintf)((0,lX._x)("%1$s of %2$s","iteration search count","uncanny-automator"),String(e.total),String(this.aggregateTotal));return s1` <uas-sidebar-section id="iterations" icon="repeat" .initialOpen=${!0} > <span slot="heading"> ${(0,lX.sprintf)((0,lX.__)("Iterations (%s)","uncanny-automator"),i)} </span> ${this.templateSearch(this.isSearching,t)} ${this.isPaginating?this.templateItemsSkeleton(e):0===e.iterations.length?this.templateNoResults():s1`<div class="iterations" data-test="iterations"> ${this.templateIterations(e.iterations)} </div>`} ${e.totalPages>1?this.templatePaginator(e,t):s3} </uas-sidebar-section> `}templateItemsSkeleton(e){let t=Array.from({length:Math.max(1,Math.min(e.perPage,8))},(e,t)=>t);return s1` <div class="iterations-loading" data-test="iterations-loading"> ${t.map(e=>s1` <div class="iterations-loading__section"> <div class="iterations-loading__section-head"> <uas-skeleton class="iterations-loading__skeleton iterations-loading__skeleton--title iterations-loading__skeleton--title-${e%3}"></uas-skeleton> <uas-skeleton class="iterations-loading__skeleton iterations-loading__skeleton--chip"></uas-skeleton> </div> </div> `)} </div> `}templateIterations(e){let t=this.renderIteration;return s1`${$A(e,e=>e.iteration_index,(e,i)=>{let a=0===i&&1===this.page&&""===this.search,n=void 0!==t?t(e,{index:i,isFirstOpen:a}):s3;return s1`${n}`})}`}templateSearch(e,t){return s1` <div class="iterations__search"> <uas-icon code="magnifying-glass" class="iterations__search-icon"></uas-icon> <input type="search" class="iterations__search-field" data-test="iterations-search" placeholder=${String((0,lX.__)("Search iterations","uncanny-automator"))} autofocus ?disabled=${t} .value=${Zz(this.search)} @input=${this.onSearchInput} /> ${e?s1`<uas-progress-linear class="iterations__progress" type="indeterminate" data-test="iterations-busy"></uas-progress-linear>`:s3} </div> `}templatePaginator(e,t){let i=(e.page-1)*e.perPage+1,a=Math.min(e.page*e.perPage,e.total);return s1` <div class="iterations__paginator" data-test="iterations-paginator"> <span class="iterations__paginator-range"> ${(0,lX.sprintf)((0,lX._x)("%1$s to %2$s of %3$s","iteration pagination range","uncanny-automator"),String(i),String(a),String(e.total))} </span> <div class="iterations__paginator-buttons"> <uas-button data-test="iterations-paginator-prev" size="xs" color="transparent" ?disabled=${t||e.page<=1} @click=${()=>this.goToPage(e.page-1)} aria-label=${String((0,lX.__)("Previous page","uncanny-automator"))} ><uas-icon code="angle-left"></uas-icon></uas-button> <span class="iterations__paginator-page" aria-current="page"> ${(0,lX.sprintf)((0,lX._x)("Page %1$s of %2$s","iteration pagination page-of-total","uncanny-automator"),String(e.page),String(e.totalPages))} </span> <uas-button data-test="iterations-paginator-next" size="xs" color="transparent" ?disabled=${t||e.page>=e.totalPages} @click=${()=>this.goToPage(e.page+1)} aria-label=${String((0,lX.__)("Next page","uncanny-automator"))} ><uas-icon code="angle-right"></uas-icon></uas-button> </div> </div> `}templateNoResults(){return s1` <div class="iterations__empty" data-test="iterations-empty"> ${(0,lX.__)("No iterations match your search.","uncanny-automator")} </div> `}templateError(e){let t=e instanceof Error?e.message:String(e);return s1` <uas-sidebar-section id="iterations-error" icon="repeat" .initialOpen=${!0}> <span slot="heading">${(0,lX.__)("Iterations","uncanny-automator")}</span> <div class="iterations__error" data-test="iterations-error"> ${(0,lX.sprintf)((0,lX.__)("Could not load iterations: %s","uncanny-automator"),t)} </div> </uas-sidebar-section> `}templateLoading(){let e=this.aggregateTotal,t=Array.from({length:Math.max(0,Math.min(e-1,4))},(e,t)=>t);return s1` <uas-sidebar-section id="iterations-loading" icon="repeat" .initialOpen=${!0} > <span slot="heading"> ${(0,lX.sprintf)((0,lX.__)("Iterations (%s)","uncanny-automator"),String(e))} </span> <div class="iterations-loading" data-test="iterations-loading"> <div class="iterations-loading__section"> <div class="iterations-loading__section-head"> <uas-skeleton class="iterations-loading__skeleton iterations-loading__skeleton--title"></uas-skeleton> <uas-skeleton class="iterations-loading__skeleton iterations-loading__skeleton--chip"></uas-skeleton> </div> <div class="iterations-loading__section-body"> <uas-skeleton class="iterations-loading__skeleton iterations-loading__skeleton--label"></uas-skeleton> <uas-skeleton class="iterations-loading__skeleton iterations-loading__skeleton--value"></uas-skeleton> <uas-skeleton class="iterations-loading__skeleton iterations-loading__skeleton--label iterations-loading__skeleton--label-short"></uas-skeleton> <uas-skeleton class="iterations-loading__skeleton iterations-loading__skeleton--value iterations-loading__skeleton--value-short"></uas-skeleton> </div> </div> ${t.map(e=>s1` <div class="iterations-loading__section"> <div class="iterations-loading__section-head"> <uas-skeleton class="iterations-loading__skeleton iterations-loading__skeleton--title iterations-loading__skeleton--title-${e%3}"></uas-skeleton> <uas-skeleton class="iterations-loading__skeleton iterations-loading__skeleton--chip"></uas-skeleton> </div> </div> `)} </div> </uas-sidebar-section> `}goToPage(e){e!==this.page&&(this.isPaginating=!0,this.page=e)}};function Z2(e){return Object.entries(e).map(([,e])=>{var t;let i,a;return i=(t=e).miscellaneous.label,a=t.value,"file"===t.type?{type:C1.FILE,label:i,value:a}:"repeater"===t.type?{type:C1.REPEATER,label:i,value:a}:"textarea"===t.type?{type:C1.TEXTAREA,label:i,value:Z3(a,t.readable),attributes:{supports_html:t.miscellaneous.attributes?.supports_html===!0,code_language:t.miscellaneous.attributes?.code_language}}:{type:C1.TEXT,label:i,value:Z3(a,t.readable)}})}function Z3(e,t){return void 0===t||""===t||t===e?e:`${e} (${t})`}Z1([l0({type:Number,attribute:"recipe-id"})],Z0.prototype,"recipeID",void 0),Z1([l0({type:Number,attribute:"run-number"})],Z0.prototype,"runNumber",void 0),Z1([l0({type:Number,attribute:"log-id"})],Z0.prototype,"logID",void 0),Z1([l0({attribute:!1})],Z0.prototype,"iterationKind",void 0),Z1([l0({attribute:!1})],Z0.prototype,"nodeID",void 0),Z1([l0({attribute:!1})],Z0.prototype,"aggregateTotal",void 0),Z1([l0({attribute:!1})],Z0.prototype,"renderIteration",void 0),Z1([l2()],Z0.prototype,"page",void 0),Z1([l2()],Z0.prototype,"search",void 0),Z1([l2()],Z0.prototype,"isPaginating",void 0),Z1([l2()],Z0.prototype,"isSearching",void 0),Z0=Z1([lJ("uap-f-recipe-log-sidebar-iterations")],Z0);var Z4=function(e,t,i,a){var n,o=arguments.length,r=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(r=(o<3?n(r):o>3?n(t,i,r):n(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r};let Z6=class extends ld{constructor(){super(...arguments),this.recipeID=0,this.runNumber=0,this.logID=0,this.renderIteration=(e,t)=>{let i=Tn.safeParse(e);if(!i.success)return s3;let a=this.modifier;if(!a)return s3;let n=i.data,o=n.iteration_label??(0,lX.sprintf)((0,lX.__)("Iteration %s","uncanny-automator"),String(n.iteration_index+1)),r=[...Z2(n.execution.fields??a.fields),...n.execution.properties??[]];return s1` <uas-sidebar-section id="iteration-${n.iteration_index}" .initialOpen=${t.isFirstOpen} > <span slot="heading">${o}</span> <span slot="actions"> <uap-f-recipe-log-status .status=${n.execution.status}></uap-f-recipe-log-status> </span> ${r.length>0?s1`<uap-f-recipe-log-sidebar-properties .properties=${r}></uap-f-recipe-log-sidebar-properties>`:s3} </uas-sidebar-section> `}}willUpdate(e){lQ(this,"modifier",To.optional(),e,"uap-f-recipe-log-sidebar-modifier-iterations"),lQ(this,"recipeID",o5().int().nonnegative(),e,"uap-f-recipe-log-sidebar-modifier-iterations"),lQ(this,"runNumber",o5().int().nonnegative(),e,"uap-f-recipe-log-sidebar-modifier-iterations"),lQ(this,"logID",o5().int().nonnegative(),e,"uap-f-recipe-log-sidebar-modifier-iterations")}render(){let e=this.modifier;if(!e||void 0===e.execution.status_breakdown)return s3;let t=e.execution.status_breakdown.reduce((e,t)=>e+t.count,0);return s1` <uap-f-recipe-log-sidebar-iterations recipe-id=${this.recipeID} run-number=${this.runNumber} log-id=${this.logID} .iterationKind=${kP.BLOCK_MODIFIER} .nodeID=${e.id} .aggregateTotal=${t} .renderIteration=${this.renderIteration} ></uap-f-recipe-log-sidebar-iterations> `}};function Z5(e,t){return[...Z2(t.fields??e.fields),...t.properties??[]]}Z4([l0({attribute:!1})],Z6.prototype,"modifier",void 0),Z4([l0({type:Number,attribute:"recipe-id"})],Z6.prototype,"recipeID",void 0),Z4([l0({type:Number,attribute:"run-number"})],Z6.prototype,"runNumber",void 0),Z4([l0({type:Number,attribute:"log-id"})],Z6.prototype,"logID",void 0),Z6=Z4([lJ("uap-f-recipe-log-sidebar-modifier-iterations")],Z6);var Z8=function(e,t,i,a){var n,o=arguments.length,r=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(r=(o<3?n(r):o>3?n(t,i,r):n(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r};let Z7=class extends ld{constructor(){super(...arguments),this.recipeID=0,this.runNumber=0,this.logID=0,this.resendStateByIndex={}}willUpdate(e){e.has("item")&&(this.resendStateByIndex={}),lQ(this,"item",Ti.optional(),e,"uap-f-recipe-log-sidebar-item-iterations"),lQ(this,"recipeID",o5().int().nonnegative(),e,"uap-f-recipe-log-sidebar-item-iterations"),lQ(this,"runNumber",o5().int().nonnegative(),e,"uap-f-recipe-log-sidebar-item-iterations"),lQ(this,"logID",o5().int().nonnegative(),e,"uap-f-recipe-log-sidebar-item-iterations")}render(){let e=this.item;if(!e||void 0===e.execution.status_breakdown)return s3;let t=e.execution.status_breakdown.reduce((e,t)=>e+t.count,0);return s1` <uap-f-recipe-log-sidebar-iterations recipe-id=${this.recipeID} run-number=${this.runNumber} log-id=${this.logID} .iterationKind=${kP.ITEM} .nodeID=${e.id} .aggregateTotal=${t} .renderIteration=${this.buildRenderIteration(e,this.resendStateByIndex)} ></uap-f-recipe-log-sidebar-iterations> `}buildRenderIteration(e,t){return(i,a)=>{let n=Tt.safeParse(i);if(!n.success)return s3;let o=n.data,r=o.iteration_label??(0,lX.sprintf)((0,lX.__)("Iteration %s","uncanny-automator"),String(o.iteration_index+1)),s=o.execution.runs,[l]=1===s.length?s:[void 0];return s1` <uas-sidebar-section id="iteration-${o.iteration_index}" .initialOpen=${a.isFirstOpen} class=${void 0===l?"iteration--flush":""} > <span slot="heading">${r}</span> <span slot="actions"> <uap-f-recipe-log-status .status=${o.execution.status}></uap-f-recipe-log-status> </span> ${this.templateResendButton(o,t)} ${void 0!==l?this.templateSingleRun(e,l):this.templateRuns(e,s)} </uas-sidebar-section> `}}templateSingleRun(e,t){let i=Z5(e,t);return s1` ${this.templateRunMessage(t)} <uap-f-recipe-log-sidebar-properties .properties=${i}></uap-f-recipe-log-sidebar-properties> `}templateRunMessage(e){return void 0===e.result_message||""===e.result_message?s3:s1`<div class="iteration__message" role="status" data-test="iteration-run-message">${e.result_message}</div>`}templateRuns(e,t){let i=t.length;return s1`${$A(t,e=>e.run_number,(t,a)=>{let n=Z5(e,t);return s1` <uas-sidebar-section id="iteration-run-${t.run_number}" .initialOpen=${0===a} > <span slot="heading"> ${(0,lX.sprintf)((0,lX._x)("Try %1$s of %2$s","iteration run-history title","uncanny-automator"),String(a+1),String(i))} </span> ${this.templateRunMessage(t)} <uap-f-recipe-log-sidebar-properties .properties=${n}></uap-f-recipe-log-sidebar-properties> </uas-sidebar-section> `})}`}templateResendButton(e,t){let i=e.execution.control;if(!i?.actions.includes(C6.RESEND))return s3;let a=t[e.iteration_index]??{isResending:!1,error:""};return s1` <div class="iteration__actions" data-test="iteration-actions"> <span class="iteration__actions-title">${(0,lX.__)("Actions","uncanny-automator")}</span> <uas-button data-test="iteration-resend-button" size="sm" color="secondary" ?loading=${a.isResending} ?disabled=${a.isResending} @click=${()=>this.onResendClick(e)} > <uas-icon code="repeat"></uas-icon> ${(0,lX.__)("Resend","uncanny-automator")} </uas-button> ${""!==a.error?s1`<uas-alert type="error" class="iteration__actions-error" data-test="iteration-resend-error">${a.error}</uas-alert>`:s3} </div> `}async onResendClick(e){let t=e.execution.control;if(!t?.actions.includes(C6.RESEND))return;let i=e.iteration_index;if(!this.resendStateByIndex[i]?.isResending){this.resendStateByIndex={...this.resendStateByIndex,[i]:{isResending:!0,error:""}};try{await ZR({itemLogID:t.item_log_id}),await dW.invalidateQueries({queryKey:ZK.all()}),this.isConnected&&lw({element:this,eventName:VF,data:{},schema:Vj,options:{bubbles:!0,composed:!0}}),this.resendStateByIndex={...this.resendStateByIndex,[i]:{isResending:!1,error:""}}}catch(t){let e=t instanceof Error?t.message:String(t);this.resendStateByIndex={...this.resendStateByIndex,[i]:{isResending:!1,error:e}}}}}};Z8([l0({attribute:!1})],Z7.prototype,"item",void 0),Z8([l0({type:Number,attribute:"recipe-id"})],Z7.prototype,"recipeID",void 0),Z8([l0({type:Number,attribute:"run-number"})],Z7.prototype,"runNumber",void 0),Z8([l0({type:Number,attribute:"log-id"})],Z7.prototype,"logID",void 0),Z8([l2()],Z7.prototype,"resendStateByIndex",void 0),Z7=Z8([lJ("uap-f-recipe-log-sidebar-item-iterations")],Z7);let Z9=rp(rg({iteration_index:C9.shape.iteration_index.optional(),iteration_label:C9.shape.iteration_label,run:C4}).strict().readonly());ry([o5(),rT(["top"])]);var We=a(4450),Wt=a.n(We),Wi=function(e,t,i,a){var n,o=arguments.length,r=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(r=(o<3?n(r):o>3?n(t,i,r):n(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r};let Wa=class extends ld{constructor(){super(...arguments),this.reversedRunsCache=new WeakMap}static{this.styles=sf`${sm(Wt())}`}willUpdate(e){lQ(this,"item",Ti.optional(),e,"uap-f-recipe-log-sidebar-run-history"),lQ(this,"runs",Z9.optional(),e,"uap-f-recipe-log-sidebar-run-history")}render(){let e=this.item,t=this.runs;if(!e||!t||0===t.length)return s3;let i=new Map;for(let e of t){let t=e.iteration_index??"top";i.set(t,(i.get(t)??0)+1)}let a=this.reversedRunsCache.get(t);return void 0===a&&(a=[...t].reverse(),this.reversedRunsCache.set(t,a)),s1` ${$A(a,(e,t)=>`${e.iteration_index??"top"}:${e.run.run_number}:${t}`,(t,a)=>{let{run:n,iteration_index:o,iteration_label:r}=t,s=void 0!==o?`run-${o}-${n.run_number}`:`run-${n.run_number}`,l=i.get(o??"top")??1,c=this.runTitle(n.run_number,l,r);return s1` <uas-sidebar-section id=${s} icon="repeat" .initialOpen=${0===a} > <span slot="heading">${c}</span> <span slot="actions" class="run__status"> <uap-f-recipe-log-status .status=${n.status}></uap-f-recipe-log-status> </span> <div class="run__body"> <div class="run__row"> <span class="run__row-label">${(0,lX.__)("Date","uncanny-automator")}</span> <time class="run__row-value" datetime=${n.date}>${n.date}</time> </div> ${n.result_message?s1` <div class="run__message" role="status">${n.result_message}</div> `:s3} ${this.templateRunProperties(e,n)} ${this.templateRunOutputs(n)} </div> </uas-sidebar-section> `})} `}runTitle(e,t,i){return void 0!==i&&""!==i?t>1?(0,lX.sprintf)((0,lX.__)("%1$s · Try %2$s of %3$s","uncanny-automator"),i,String(e),String(t)):i:t>1?(0,lX.sprintf)((0,lX.__)("Try %1$s of %2$s","uncanny-automator"),String(e),String(t)):(0,lX.__)("Run","uncanny-automator")}templateRunProperties(e,t){let i=Z5(e,t);return 0===i.length?s3:s1` <uap-f-recipe-log-sidebar-properties data-test="run-properties" .properties=${i} ></uap-f-recipe-log-sidebar-properties> `}templateRunOutputs(e){return e.outputs&&0!==e.outputs.length?s1` <div class="run__outputs" data-test="run-outputs"> <span class="run__row-label">${(0,lX.__)("Returned values","uncanny-automator")}</span> <uap-f-recipe-log-sidebar-properties .properties=${e.outputs}></uap-f-recipe-log-sidebar-properties> </div> `:s3}};Wi([l0({attribute:!1})],Wa.prototype,"item",void 0),Wi([l0({attribute:!1})],Wa.prototype,"runs",void 0),Wa=Wi([lJ("uap-f-recipe-log-sidebar-run-history")],Wa);let Wn=rg({recipeID:o5().int().positive(),runNumber:o5().int().positive(),logID:o5().int().positive()}).strict();function Wo(e,t,i){return{queryKey:["recipe-log",e,t,i],queryFn:()=>(async function(e,t,i){let a=Wn.parse({recipeID:e,runNumber:t,logID:i});return d4.DEV.RETURN_MOCK_DATA?(await new Promise(e=>setTimeout(e,d4.DEV.MOCK_DELAY_MS)),TE.parse(DO)):dV({endpoint:`recipe-log/${a.recipeID}/${a.runNumber}/${a.logID}`,responseSchema:TE,method:"GET"})})(e,t,i)}}function Wr(e,t,i){return{...Wo(e,t,i),refetchInterval:e=>{var t;return!(void 0===(t=e.state.data)||Vz(t.execution.status.phase))&&1e4}}}var Ws=a(9102),Wl=a.n(Ws);rg({}).strict();var Wc=function(e,t,i,a){var n,o=arguments.length,r=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(r=(o<3?n(r):o>3?n(t,i,r):n(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r};let Wd=class extends ld{constructor(){super(...arguments),this.logID=0,this.recipeID=0,this.runNumber=0,this.recipeLogController=new vE(this,Wo(this.recipeID,this.runNumber,this.logID))}static{this.styles=sf`${sm(Wl())}`}willUpdate(e){lQ(this,"logID",o5().int().nonnegative(),e,"uap-f-recipe-log-sidebar"),lQ(this,"recipeID",o5().int().nonnegative(),e,"uap-f-recipe-log-sidebar"),lQ(this,"runNumber",o5().int().nonnegative(),e,"uap-f-recipe-log-sidebar"),lQ(this,"nodeID",ry([o5(),oR().min(1)]).optional(),e,"uap-f-recipe-log-sidebar"),(e.has("logID")||e.has("recipeID")||e.has("runNumber"))&&this.recipeLogController.setOptions(Wo(this.recipeID,this.runNumber,this.logID))}render(){let e=this.recipeLogController.result.data;if(!e||void 0===this.nodeID||""===this.nodeID)return s3;let t=ZW(e,this.nodeID);return t?s1` <div class="sidebar" data-test="sidebar-body"> ${this.templateSummary(t)} ${this.templateItemTasks(t)} ${this.templateModifierIterations(t)} ${this.templateItemIterations(t)} ${this.templateModifierProperties(t)} ${this.templateBlockProperties(t)} ${this.templateRunHistory(e,t)} </div> `:s3}templateSummary(e){return s1` <uas-sidebar-section id="summary" icon="list" ?collapsible=${!1} > <span slot="heading">${(0,lX.__)("Summary","uncanny-automator")}</span> <uap-f-recipe-log-sidebar-summary .node=${e}></uap-f-recipe-log-sidebar-summary> </uas-sidebar-section> `}templateItemTasks(e){return e.type!==kP.ITEM?s3:s1`<uap-f-recipe-log-sidebar-item-tasks .item=${e}></uap-f-recipe-log-sidebar-item-tasks>`}templateModifierIterations(e){return e.type!==kP.BLOCK_MODIFIER?s3:s1`<uap-f-recipe-log-sidebar-modifier-iterations recipe-id=${this.recipeID} run-number=${this.runNumber} log-id=${this.logID} .modifier=${e} ></uap-f-recipe-log-sidebar-modifier-iterations>`}templateModifierProperties(e){if(e.type!==kP.BLOCK_MODIFIER)return s3;let t=void 0!==e.execution.status_breakdown,i=Object.keys(e.fields??{}).length>0;return t||!i?s3:this.templatePropertiesSection("modifier-properties",e.execution.fields??e.fields)}templateBlockProperties(e){return e.type!==kP.BLOCK||0===Object.keys(e.fields??{}).length?s3:this.templatePropertiesSection("block-properties",e.fields)}templateItemIterations(e){return e.type!==kP.ITEM||void 0===e.execution.status_breakdown?s3:s1`<uap-f-recipe-log-sidebar-item-iterations recipe-id=${this.recipeID} run-number=${this.runNumber} log-id=${this.logID} .item=${e} ></uap-f-recipe-log-sidebar-item-iterations>`}templateRunHistory(e,t){let i;if(t.type!==kP.ITEM)return s3;let a=(i=ZW(e,t.id))&&i.type===kP.ITEM&&void 0!==i.execution.runs?i.execution.runs.map(e=>({run:e})):[];return 0===a.length?s3:s1`<uap-f-recipe-log-sidebar-run-history .item=${t} .runs=${a}></uap-f-recipe-log-sidebar-run-history>`}templatePropertiesSection(e,t){let i=Z2(t);return s1` <uas-sidebar-section id=${e} icon="list" .initialOpen=${!0} > <span slot="heading">${(0,lX.__)("Properties","uncanny-automator")}</span> <uap-f-recipe-log-sidebar-properties .properties=${i}></uap-f-recipe-log-sidebar-properties> </uas-sidebar-section> `}};Wc([l0({type:Number,attribute:"log-id"})],Wd.prototype,"logID",void 0),Wc([l0({type:Number,attribute:"recipe-id"})],Wd.prototype,"recipeID",void 0),Wc([l0({type:Number,attribute:"run-number"})],Wd.prototype,"runNumber",void 0),Wc([l0({attribute:!1})],Wd.prototype,"nodeID",void 0),Wd=Wc([lJ("uap-f-recipe-log-sidebar")],Wd);let Wu=e=>{switch(e.type){case kP.ITEM:switch(e.item_type){case"trigger":return(0,lX.__)("Trigger details","uncanny-automator");case"action":return(0,lX.__)("Action details","uncanny-automator");default:return(0,lX.__)("Item details","uncanny-automator")}case kP.BLOCK:return(0,lX.__)("Block details","uncanny-automator");case kP.BLOCK_MODIFIER:return(0,lX.__)("Condition details","uncanny-automator")}},Wp=TJ.LIST,Wh=rg({view:T1}).strict();var Wg=a(3414),Wm=a.n(Wg),Wf=function(e,t,i,a){var n,o=arguments.length,r=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(r=(o<3?n(r):o>3?n(t,i,r):n(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r};let Wy=class extends ld{constructor(){super(...arguments),this.view=Wp}static{this.styles=sf`${sm(Wm())}`}willUpdate(e){lQ(this,"view",T1,e,"uap-d-recipe-view-switcher",Wp)}select(e){this.view!==e&&lw({element:this,eventName:"uap.d.recipe.view-change",data:{view:e},schema:Wh,options:{bubbles:!0,composed:!0}})}render(){return s1` <div class="switcher" role="group" aria-label=${String((0,lX.__)("Recipe view","uncanny-automator"))}> ${this.templateOption(TJ.DIAGRAM,"chart-diagram",(0,lX.__)("Diagram view","uncanny-automator"))} ${this.templateOption(TJ.LIST,"diagram-next",(0,lX.__)("List view","uncanny-automator"))} </div> `}templateOption(e,t,i){return s1` <uas-tooltip placement="bottom"> ${i} <button slot="target" type="button" class="switcher__option" data-test="view-switcher-option-${e}" aria-pressed=${this.view===e?"true":"false"} aria-label=${i} @click=${()=>this.select(e)} > <uas-icon code=${t}></uas-icon> </button> </uas-tooltip> `}};Wf([l0({type:String})],Wy.prototype,"view",void 0),Wy=Wf([lJ("uap-d-recipe-view-switcher")],Wy);let Wb=rg({view:T1,view_picked:re(),diagram_intro_dismissed:re()}).strict(),Wv=rg({preferences:T0}).strict(),W_="preference";function Ww(){return ea??=function(e){let{namespace:t,persistedQueryKeys:i,maxAge:a,force:n}=dL.parse(e);if(dq&&!n)return console.warn("Query persistence is already configured. Multiple calls to setupQueryPersistence() will override previous configurations. If you intentionally want to reconfigure, pass { force: true }."),Promise.resolve();n&&(dq?.(),dq=null);let o=function(){try{return window.localStorage}catch{return null}}();if(!o)return console.warn("Query persistence not available (no storage persister)"),Promise.resolve();let r=e=>i.some(t=>cR(e,t)),s={queryClient:dW,maxAge:a,persister:(({storage:e,key:t="REACT_QUERY_OFFLINE_CACHE",throttleTime:i=1e3,serialize:a=JSON.stringify,deserialize:n=JSON.parse,retry:o})=>{if(e){let r=async i=>{try{let n=await a(i);await e.setItem(t,n);return}catch(e){return e}};return{persistClient:function(e,{interval:t=1e3,onError:i=da}={}){if("function"!=typeof e)throw Error("argument is not function.");let a=0,n=null,o=!1,r=!1;return async(...s)=>{if(n=s,!r){for(r=!0;o;)await new Promise(e=>ck.setTimeout(e,t));for(;Date.now()<a;)await new Promise(e=>ck.setTimeout(e,a-Date.now()));r=!1,o=!0;try{await e(...n)}catch(e){try{i(e)}catch{}}a=Date.now()+t,o=!1}}}(async e=>{let t=e,i=await r(t),a=0;for(;i&&t;)a++,(t=await o?.({persistedClient:t,error:i,errorCount:a}))&&(i=await r(t))},{interval:i}),restoreClient:async()=>{let i=await e.getItem(t);if(i)return await n(i)},removeClient:()=>e.removeItem(t)}}return{persistClient:da,restoreClient:()=>Promise.resolve(void 0),removeClient:da}})({storage:{getItem:e=>o.getItem(e)??o.getItem("REACT_QUERY_OFFLINE_CACHE"),setItem:(e,t)=>o.setItem(e,t),removeItem:e=>o.removeItem(e)},key:`uas.query-cache.${dM.parse(t)}`,throttleTime:0,deserialize:e=>{let{clientState:t,...i}=JSON.parse(e);return{...i,clientState:{mutations:[],queries:t.queries.filter(e=>"success"===e.state.status&&r(e.queryKey))}}}}),dehydrateOptions:{shouldDehydrateQuery:e=>di(e)&&r(e.queryKey),shouldDehydrateMutation:()=>!1}};for(let e of i)dW.setQueryDefaults(e,{gcTime:1/0});let l="BroadcastChannel"in window?function({queryClient:e,broadcastChannel:t="tanstack-query",options:i,onBroadcastError:a}){let n=!1,o=new dD(t,{webWorkerSupport:!1,...i}),r=e.getQueryCache(),s=e=>{o.postMessage(e).catch(t=>{let i={type:e.type,queryHash:e.queryHash,queryKey:e.queryKey};if(a){let e,n=e=>{};try{e=a(t,i)}catch(e){n(e);return}e?.catch(n)}})},l=r.subscribe(e=>{if(n)return;let{query:{queryHash:t,queryKey:i,state:a,observers:o}}=e;"updated"===e.type&&"success"===e.action.type&&s({type:"updated",queryHash:t,queryKey:i,state:a}),"removed"===e.type&&o.length>0&&s({type:"removed",queryHash:t,queryKey:i}),"added"===e.type&&s({type:"added",queryHash:t,queryKey:i,state:a})});return o.onmessage=t=>{if(t?.type){n=!0;try{(()=>{let{type:i,queryHash:a,queryKey:n,state:o}=t,s=r.get(a);if("updated"===i){if(s)return s.setState(o);r.build(e,{queryKey:n,queryHash:a},o)}else if("removed"===i)s&&r.remove(s);else if("added"===i){if(s){void 0===s.state.data&&s.setState(o);return}r.build(e,{queryKey:n,queryHash:a},o)}})()}finally{n=!1}}},()=>{l(),o.close()}}({queryClient:dW,broadcastChannel:`uas.query-sync.${t}`}):null,c=!0,d=null,u=(async function({queryClient:e,persister:t,maxAge:i=864e5,buster:a="",hydrateOptions:n}){try{let r=await t.restoreClient();if(r)if(!r.timestamp)return t.removeClient();else{var o;let s,l,c,d=Date.now()-r.timestamp>i,u=r.buster!==a;if(d||u)return t.removeClient();o=r.clientState,s=e.getMutationCache(),l=e.getQueryCache(),c=n?.defaultOptions?.deserializeData??e.getDefaultOptions().hydrate?.deserializeData,o.mutations?.forEach(({state:t,...i})=>{s.build(e,{...e.getDefaultOptions().hydrate?.mutations,...n?.defaultOptions?.mutations,...i},t)}),o.queries?.forEach(({queryKey:t,state:i,queryHash:a,meta:o,promise:r,dehydratedAt:s,queryType:d})=>{let u=r?function(e){let t;if(e.then(e=>(t=e,e),cS)?.catch?.(cS),void 0!==t)return{data:t}}(r):void 0,p=void 0===i.data?u?.data:i.data,h=void 0===p?p:c?c(p):p,g=l.get(a),m=g?.state.status==="pending",f=g?.state.fetchStatus==="fetching";if(g){let e=u&&s>g.state.dataUpdatedAt;if(i.dataUpdatedAt>g.state.dataUpdatedAt||e){let{fetchStatus:e,...t}=i;g.setState({...t,data:h,..."pending"===i.status&&void 0!==h&&{status:"success",dataUpdatedAt:s,...!f&&{fetchStatus:"idle"}}})}}else g=l.build(e,{...e.getDefaultOptions().hydrate?.queries,...n?.defaultOptions?.queries,queryKey:t,queryHash:a,meta:o,_type:d},{...i,data:h,fetchStatus:"idle",status:"pending"===i.status&&void 0!==h?"success":i.status,..."pending"===i.status&&void 0!==h&&{dataUpdatedAt:s}});!r||u||m||f||!(s>g.state.dataUpdatedAt)||g.fetch(void 0,{initialPromise:Promise.resolve(r).then(c)}).catch(cS)})}}catch(e){throw await t.removeClient(),e}})(s).catch(e=>{console.warn("[setupQueryPersistence] Could not restore the persisted queries; continuing without them:",e)}).then(()=>{if(c){let e,t;ds(s),e=s.queryClient.getQueryCache().subscribe(e=>{dr(e.type)&&ds(s)}),t=s.queryClient.getMutationCache().subscribe(e=>{dr(e.type)&&ds(s)}),d=()=>{e(),t()}}});return dq=()=>{c=!1,d?.(),l?.()},u}({namespace:"automator",persistedQueryKeys:[[W_]],maxAge:31536e6})}let Wx={view:TJ.LIST,view_picked:!1,diagram_intro_dismissed:!1},Wk=[W_,"recipe-view","3.0"],WE={queryKey:Wk,queryFn:async function(){var e;return e=(await dV({endpoint:"user/preferences/recipe-view",responseSchema:Wv,method:"GET",useEnvelope:!0})).preferences,Wb.parse({view:e.view??e.default_view,view_picked:null!==e.view,diagram_intro_dismissed:e.diagram_intro_dismissed})},staleTime:1/0,retry:!1,retryOnMount:!1,refetchOnWindowFocus:!1,refetchOnReconnect:!1},WS=rg({view:T1.optional(),diagram_intro_dismissed:re().optional()}).strict().refine(e=>void 0!==e.view||void 0!==e.diagram_intro_dismissed,{message:"At least one preference must be set."}),WC=rg({preferences:T0}).strict();async function WT(e){return dV({endpoint:"user/preferences/recipe-view/update",responseSchema:WC,method:"POST",data:WS.parse(e),useEnvelope:!0})}function WI(){return{mutationFn:WT,onMutate:async e=>{let t;await dW.cancelQueries({queryKey:Wk}),t=WS.parse(e),dW.setQueryData(Wk,e=>{let i=e??Wx;return Wb.parse({...i,...t,view_picked:void 0!==t.view||i.view_picked})})}}}function WD(e,t,i){return`${Ns}/recipe/${e}/run/${t}/log/${i}`}function WA(e,t,i,a){return`${WD(e,t,i)}/node/${a}`}var W$=a(1778),WO=a.n(W$),WR=function(e,t,i,a){var n,o=arguments.length,r=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(r=(o<3?n(r):o>3?n(t,i,r):n(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r};let WM=class extends ld{constructor(){super(...arguments),this.recipeLogController=new vE(this,{...Wo(0,0,0),enabled:!1}),this.isRefreshing=!1,this.preferences=new vS(this,{...WE,schema:Wb,persistenceReady:Ww()}),this.setPreferences=new vm(this,WI()),this.routes=[{id:Vq.LOG_VIEW,path:`${Ns}/recipe/:${VB.RECIPE_ID.name}/run/:${VB.RUN_NUMBER.name}/log/:${VB.LOG_ID.name}`,schema:VH,component:e=>this.templateForRoute(e,null)},{id:Vq.LOG_VIEW_WITH_NODE,path:`${Ns}/recipe/:${VB.RECIPE_ID.name}/run/:${VB.RUN_NUMBER.name}/log/:${VB.LOG_ID.name}/node/:${VB.NODE_ID.name}`,schema:VV,component:e=>this.templateForRoute(e,e[VB.NODE_ID.name])}],this.router=new _P(this,this.routes,{onParamsChange:e=>this.onParamsChange(e)}),this.onRefreshRequest=async()=>{if(!this.isRefreshing){this.isRefreshing=!0;try{await this.recipeLogController.refetch({throwOnError:!0})}catch(e){ly({message:e instanceof Error?e.message:(0,b4.escapeHTML)((0,lX.__)("Could not refresh the log.","uncanny-automator")),color:"error",iconID:"xmark",duration:5e3})}finally{this.isRefreshing=!1}}},this.onSidebarRequest=e=>{let t=VH.safeParse(this.router.getCurrentParams());if(!t.success)return;let{[VB.RECIPE_ID.name]:i,[VB.RUN_NUMBER.name]:a,[VB.LOG_ID.name]:n}=t.data;window.location.hash=WA(i,a,n,e.detail.nodeID)},this.onCloseSidebar=()=>{let e=VH.safeParse(this.router.getCurrentParams());if(!e.success){window.location.hash="";return}let{[VB.RECIPE_ID.name]:t,[VB.RUN_NUMBER.name]:i,[VB.LOG_ID.name]:a}=e.data;window.location.hash=WD(t,i,a)},this.onCloseDialog=()=>{window.location.hash=""},this.onRunDeleted=()=>{window.location.replace("#")},this.onSideSheetChange=e=>{let{open:t,reason:i}=e.detail;t||i===Ve.API||this.onCloseSidebar()}}static{this.styles=sf`${sm(WO())}`}get projection(){return this.preferences.data?this.preferences.data.view_picked?this.preferences.data.view:TJ.LIST:this.preferences.result.errorUpdateCount>0?Wx.view:void 0}willUpdate(e){super.willUpdate(e),this.view=this.projection}onViewChange(e){let t=Wh.safeParse(e.detail);t.success&&this.setPreferences.mutate({view:t.data.view})}render(){return VH.safeParse(this.router.getCurrentParams()).success?s1` <uas-dialog size="xl" open no-header no-footer no-padding @uas.dialog.close=${this.onCloseDialog} > <div class="dialog__frame">${this.router.renderOutlet()}</div> </uas-dialog> `:s3}templateForRoute(e,t){return this.templateShell(this.recipeLogController.result.data,e,t)}onParamsChange(e){let t=VH.safeParse(e);if(!t.success){this.recipeID=void 0,this.recipeLogController.setOptions({enabled:!1});return}this.recipeID=t.data[VB.RECIPE_ID.name],this.recipeLogController.setOptions({...Wr(t.data[VB.RECIPE_ID.name],t.data[VB.RUN_NUMBER.name],t.data[VB.LOG_ID.name]),enabled:!0})}templateShell(e,t,i){if(void 0===this.projection)return s1``;if(!e)return this.recipeLogController.result.isError?this.templateErrorAlert(this.recipeLogController.result.error):this.templateSkeleton();let a=null!==i?ZW(e,i):void 0,n=void 0!==a,o=void 0!==a?Wu(a):"";return s1` <uas-side-sheet-layout class="log-shell" @uap.d.recipe-log.sidebar-request=${this.onSidebarRequest} @uap.d.recipe-log.refresh-request=${this.onRefreshRequest} @uap.d.recipe-log.deleted=${this.onRunDeleted} @uap.d.recipe.view-change=${this.onViewChange} > <div class="log-shell__main"> <div class="log log--phase-${e.execution.status.phase}"> <uap-f-recipe-log-header ?is-refreshing=${this.isRefreshing} .log=${e} > <slot name="header-actions" slot="header-actions"></slot> <uap-d-recipe-view-switcher slot="header-actions-end" class="log__view-switcher" view=${this.projection} ></uap-d-recipe-view-switcher> <slot name="header-actions-end" slot="header-actions-end"></slot> </uap-f-recipe-log-header> ${TJ.DIAGRAM===this.projection?s1`<uap-f-recipe-log-canvas .log=${e} active-node-id=${i??""} ></uap-f-recipe-log-canvas>`:s1`<uap-f-recipe-log-flow .flow=${e.flow} active-node-id=${i??""} ></uap-f-recipe-log-flow>`} </div> </div> <uas-side-sheet slot="end" placement="end" ?open=${n} @uas.side-sheet.change=${this.onSideSheetChange} > <uas-button slot="header" data-test="log-sidebar-back" class="log-shell__sidebar-back" color="transparent" size="sm" @click=${this.onCloseSidebar} aria-label=${String((0,lX.__)("Close sidebar","uncanny-automator"))} > <uas-icon code="angle-left"></uas-icon> </uas-button> <span slot="header" class="log-shell__sidebar-title">${o}</span> <uas-button slot="close" data-test="log-sidebar-close-dialog" class="log-shell__sidebar-close" color="transparent" size="sm" @click=${this.onCloseDialog} aria-label=${String((0,lX.__)("Close","uncanny-automator"))} > <uas-icon code="xmark"></uas-icon> </uas-button> ${n?s1`<uap-f-recipe-log-sidebar log-id=${t[VB.LOG_ID.name]} recipe-id=${t[VB.RECIPE_ID.name]} run-number=${t[VB.RUN_NUMBER.name]} .nodeID=${i??void 0} ></uap-f-recipe-log-sidebar>`:s3} </uas-side-sheet> </uas-side-sheet-layout> `}templateSkeleton(){return s1` <uas-side-sheet-layout class="log-shell" data-test="log-skeleton"> <div class="log-shell__main"> <div class="log log--loading"> <uap-f-recipe-log-header skeleton></uap-f-recipe-log-header> ${TJ.DIAGRAM===this.projection?s1`<uap-f-recipe-log-canvas skeleton></uap-f-recipe-log-canvas>`:s1`<uap-f-recipe-log-flow skeleton></uap-f-recipe-log-flow>`} </div> </div> </uas-side-sheet-layout> `}templateErrorAlert(e){let t=e instanceof Error?e.message:String(e);return s1` <uas-alert class="log__alert" data-test="log-error" type="error" heading=${(0,b4.escapeHTML)((0,lX.__)("Could not load this log","uncanny-automator"))} > ${t} </uas-alert> `}};WR([l2()],WM.prototype,"isRefreshing",void 0),WR([H5({context:Vy}),l2()],WM.prototype,"recipeID",void 0),WR([l0({attribute:"view",reflect:!0})],WM.prototype,"view",void 0),WM=WR([lJ("uap-f-recipe-log")],WM);let WL={SPLIT:"split",NO_SPLIT:"no-split"},WN=rT(WL),WP=WL.NO_SPLIT,Wz="uap-logs-viewer-view",WU="uap.f.page-logs-viewer.navigate",WF="uap.f.page-logs-viewer.filters-change",Wj=rg({recipeID:o5().int().positive(),runNumber:o5().int().positive(),logID:o5().int().positive(),itemLogID:oR().min(1).optional()}).strict(),WB=rg({tab:d0,selection:Wj.nullable()}).strict(),WH=rg({recipeID:$1().int().positive(),runNumber:$1().int().positive(),logID:$1().int().positive(),itemLogID:oR().min(1).optional()}),WV=oR().regex(/^[1-9]\d*$/),Wq=rg({recipe_id:oR(),user_id:oR(),status:oR(),integration:oR(),endpoint:oR(),item_code:oR(),date_from:oR(),date_to:oR(),search:oR(),sort:oR()}).strict(),WZ=Wq.keyof(),WW={RECIPE_ID:"recipe_id",USER_ID:"user_id",STATUS:"status",INTEGRATION:"integration",ENDPOINT:"endpoint",ITEM_CODE:"item_code",SORT:"sort"};rT(WW);let WG={OLDEST:"oldest",RECIPE:"recipe",USER:"user",STATUS:"status"};rT(WG);let WK={RECIPE:"recipe",USER:"user",STATUS:"status",INTEGRATION:"integration",COMPLETION_DATE:"completion-date",ENDPOINT:"endpoint",FAIL_DATE:"fail-date",TRIGGER:"trigger",ACTION:"action",SORT:"sort"},WY=rp(rT(WK)),WQ={LOADING:"loading",EMPTY:"empty",ERROR:"error",READY:"ready"},WX=rT(WQ),WJ=rp(oR().min(1)),W1=rg({filters:Wq}).strict(),W0=rg({page:o5().int().min(1)}).strict(),W2=rg({view:WN}).strict(),W3=rg({id:oR().min(1)}).strict(),W4=rg({id:oR().min(1),checked:re(),range:re()}).strict(),W6=rg({ids:WJ}).strict(),W5=rg({}).strict(),W8=rg({}).strict();var W7=a(245),W9=a.n(W7),Ge=function(e,t,i,a){var n,o=arguments.length,r=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(r=(o<3?n(r):o>3?n(t,i,r):n(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r};let Gt=[0,1,2,3,4,5],Gi=class extends ld{constructor(){super(...arguments),this.state=WQ.LOADING,this.message=""}static{this.styles=sf`${sm(W9())}`}willUpdate(e){lQ(this,"state",WX,e,"uap-f-page-logs-viewer-state",WQ.LOADING)}render(){switch(this.state){case WQ.LOADING:return s1` <div class="state state--loading"> ${Gt.map(()=>s1` <div class="state__row"> <uas-skeleton variant=${ve.CIRCLE} width="24px" height="24px"></uas-skeleton> <uas-skeleton width="70%"></uas-skeleton> <uas-skeleton width="45%"></uas-skeleton> <uas-skeleton width="55%"></uas-skeleton> </div> `)} </div> `;case WQ.EMPTY:return s1` <div class="state state--empty"> <uas-icon code="inbox" aria-hidden="true"></uas-icon> <p class="state__message">${this.message}</p> </div> `;case WQ.ERROR:return s1` <div class="state state--error"> <uas-alert type=${yQ.ERROR} heading=${(0,b4.escapeHTML)(this.message)}></uas-alert> <uas-button class="state__retry" color=${pm.SECONDARY} size=${py.SM} @click=${this.handleRetry}>${(0,lX.__)("Try again","uncanny-automator")}</uas-button> </div> `;case WQ.READY:return s3}}handleRetry(){lw({element:this,eventName:"uap.f.page-logs-viewer.retry",data:{},schema:W5,options:{bubbles:!0,composed:!0}})}};Ge([l0({type:String})],Gi.prototype,"state",void 0),Ge([l0({type:String})],Gi.prototype,"message",void 0),Gi=Ge([lJ("uap-f-page-logs-viewer-state")],Gi);let Ga=rg({client_id:oR(),type:oR(),result:oR(),date_from:oR(),date_to:oR(),search:oR()}).strict(),Gn=Ga.keyof();function Go(e,t,i,a){return{page:t,per_page:20,...Object.fromEntries(Object.entries(Ga.parse(e)).filter(([,e])=>""!==e)),orderby:i,order:a}}function Gr(e,t){return e.orderby===t?{orderby:t,order:bw.ASC===e.order?bw.DESC:bw.ASC}:{orderby:t,order:bv.OCCURRED_AT===t?bw.DESC:bw.ASC}}function Gs(e){return Math.max(1,Math.ceil(e/20))}rg({orderby:b_,order:bx}).strict();var Gl=a(9138),Gc=a.n(Gl),Gd=function(e,t,i,a){var n,o=arguments.length,r=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(r=(o<3?n(r):o>3?n(t,i,r):n(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r};let Gu={client_id:"",type:"",result:"",date_from:"",date_to:"",search:""},Gp="9999-12-31",Gh=class extends ld{constructor(){super(...arguments),this.draft={...Gu},this.filters={...Gu},this.page=1,this.sort={orderby:bv.OCCURRED_AT,order:bw.DESC},this.activityController=new vE(this,()=>{var e,t,i,a;return bN((e=this.filters,t=this.page,i=this.sort.orderby,a=this.sort.order,bk.parse(Go(e,t,i,a))))}),this.connectionsController=new vE(this,bO)}static{this.styles=sf`${sm(Gc())}`}render(){return s1` <div class="ai-activity"> ${this.templateFilters()} ${this.templateBody()} </div> `}templateFilters(){return s1` <div class="ai-activity__filters"> ${this.templateClientSelect()} <select class="ai-activity__field" name="type" aria-label=${String((0,lX.__)("Filter by activity","uncanny-automator"))} @change=${this.handleDraftInput}> <option value="" .selected=${""===this.draft.type}>${(0,lX.__)("All activity","uncanny-automator")}</option> <option value=${u9.TOOL_USE} .selected=${u9.TOOL_USE===this.draft.type}>${(0,lX.__)("Tool uses","uncanny-automator")}</option> <option value=${u9.CONNECTION} .selected=${u9.CONNECTION===this.draft.type}>${(0,lX.__)("Connections","uncanny-automator")}</option> </select> <select class="ai-activity__field" name="result" aria-label=${String((0,lX.__)("Filter by result","uncanny-automator"))} @change=${this.handleDraftInput}> <option value="" .selected=${""===this.draft.result}>${(0,lX.__)("All results","uncanny-automator")}</option> ${pi.options.map(e=>s1` <option value=${e} .selected=${e===this.draft.result}>${bF(e)}</option> `)} </select> <input class="ai-activity__field" type="date" name="date_from" max=${Gp} aria-label=${String((0,lX.__)("From date","uncanny-automator"))} .value=${this.draft.date_from} @change=${this.handleDraftInput} /> <input class="ai-activity__field" type="date" name="date_to" max=${Gp} aria-label=${String((0,lX.__)("To date","uncanny-automator"))} .value=${this.draft.date_to} @change=${this.handleDraftInput} /> <uas-button class="ai-activity__apply" color=${pm.SECONDARY} @click=${this.handleCommit}>${(0,lX.__)("Filter","uncanny-automator")}</uas-button> <form class="ai-activity__search" role="search" @submit=${this.handleSearchSubmit}> <input class="ai-activity__field" type="text" name="search" aria-label=${String((0,lX.__)("Search AI activity","uncanny-automator"))} .value=${this.draft.search} @input=${this.handleDraftInput} /> <uas-button class="ai-activity__apply" color=${pm.SECONDARY} @click=${this.handleCommit}>${(0,lX.__)("Search","uncanny-automator")}</uas-button> </form> </div> `}templateClientSelect(){let e=bB(this.connectionsController.result.data??[]);return s1` <select class="ai-activity__field" name="client_id" aria-label=${String((0,lX.__)("Filter by AI","uncanny-automator"))} @change=${this.handleDraftInput}> <option value="" .selected=${""===this.draft.client_id}>${(0,lX.__)("All AI","uncanny-automator")}</option> ${$A(e,e=>e.id,e=>s1` <option value=${e.id} .selected=${e.id===this.draft.client_id}>${e.label}</option> `)} </select> `}templateBody(){return this.activityController.result.data?this.templateLog(this.activityController.result.data):this.activityController.result.isError?s1` <uap-f-page-logs-viewer-state state=${WQ.ERROR} message=${String((0,lX.__)("Your AI activity couldn't be loaded.","uncanny-automator"))} @uap.f.page-logs-viewer.retry=${this.handleRetry} ></uap-f-page-logs-viewer-state> `:s1` <div class="ai-activity__state"> <uas-skeleton variant="rectangle" width="100%" height="320px"></uas-skeleton> </div> `}templateLog(e){return s1` <div class="ai-activity__table-frame"> <table class="ai-activity__table"> <thead>${this.templateHeadings()}</thead> <tbody> ${0===e.entries.length?s1`<tr><td class="ai-activity__empty" colspan="4">${(0,lX.__)("No AI activity yet.","uncanny-automator")}</td></tr>`:$A(e.entries,e=>e.id,e=>this.templateRow(e))} </tbody> </table> </div> ${this.templateNav(e.total)} `}templateNav(e){let t=Gs(e);return s1` <div class="ai-activity__nav"> <span class="ai-activity__count">${(0,lX.sprintf)((0,lX._n)("%d item","%d items",e,"uncanny-automator"),e)}</span> <div class="ai-activity__pagination"> <uas-button color=${pm.SECONDARY} size=${py.SM} ?disabled=${this.page<=1} @click=${this.handlePreviousPage}> <uas-icon code="angle-left" role="img" aria-label=${String((0,lX.__)("Previous page","uncanny-automator"))}></uas-icon> </uas-button> <span class="ai-activity__page">${(0,lX.sprintf)((0,lX.__)("Page %1$d of %2$d","uncanny-automator"),this.page,t)}</span> <uas-button color=${pm.SECONDARY} size=${py.SM} ?disabled=${this.page>=t} @click=${this.handleNextPage}> <uas-icon code="angle-right" role="img" aria-label=${String((0,lX.__)("Next page","uncanny-automator"))}></uas-icon> </uas-button> </div> </div> `}templateHeadings(){return s1` <tr> ${this.templateHeading(bv.SUMMARY,(0,lX.__)("Activity","uncanny-automator"))} ${this.templateHeading(bv.CLIENT,(0,lX.__)("AI","uncanny-automator"))} ${this.templateHeading(bv.RESULT,(0,lX.__)("Result","uncanny-automator"))} ${this.templateHeading(bv.OCCURRED_AT,(0,lX.__)("Date","uncanny-automator"))} </tr> `}templateHeading(e,t){let i=e===this.sort.orderby,a=i?this.sort.order:Gr(this.sort,e).order;return s1` <th class="ai-activity__heading" scope="col" aria-sort=${this.getAriaSort(e)}> <button class=${up({"ai-activity__sort":!0,"ai-activity__sort--active":i})} type="button" @click=${()=>this.handleSort(e)}> ${t} <uas-icon code=${bw.ASC===a?"arrow-up":"arrow-down"} aria-hidden="true"></uas-icon> </button> </th> `}templateRow(e){return s1` <tr class="ai-activity__row"> <td class="ai-activity__cell ai-activity__cell--summary">${e.summary}</td> <td class="ai-activity__cell ai-activity__cell--client"> <span class="ai-activity__client"> <uap-d-ai-app-logo .brand=${e.client.brand} size=${pc.SM}></uap-d-ai-app-logo> ${e.client.name} </span> </td> <td class="ai-activity__cell ai-activity__cell--result"> <uas-chip label=${bF(e.result)} color=${this.getResultColor(e.result)} filled></uas-chip> </td> <td class="ai-activity__cell ai-activity__cell--date">${e.occurred_at_display}</td> </tr> `}getResultColor(e){return bU(e)||pt.DISCONNECTED===e?pO.ERROR:pO.SUCCESS}getAriaSort(e){return e!==this.sort.orderby?"none":bw.ASC===this.sort.order?"ascending":"descending"}handleDraftInput(e){let t=e.currentTarget;(t instanceof HTMLSelectElement||t instanceof HTMLInputElement)&&(this.draft={...this.draft,[Gn.parse(t.name)]:t.value})}handleCommit(){this.reportFilterValidity()&&(this.filters={...this.draft},this.page=1,this.refetchActivity())}reportFilterValidity(){var e,t,i;let a,n=Array.from(this.fields),o=(e=this.draft,t=this.sort.orderby,i=this.sort.order,a=bk.safeParse(Go(e,1,t,i)),Gn.safeParse(a.error?.issues[0]?.path[0]).data);return n.forEach(e=>{e.setCustomValidity(o===e.name?(0,lX.__)("Enter a valid value.","uncanny-automator"):"")}),n.every(e=>e.reportValidity())}handleSearchSubmit(e){e.preventDefault(),this.handleCommit()}async refetchActivity(){await this.updateComplete,await this.activityController.result.refetch({cancelRefetch:!1})}handleRetry(){this.refetchActivity()}handleSort(e){this.sort=Gr(this.sort,e),this.page=1}handlePreviousPage(){this.page=Math.max(1,this.page-1)}handleNextPage(){this.page=Math.min(Gs(this.activityController.result.data?.total??0),this.page+1)}};Gd([l2()],Gh.prototype,"draft",void 0),Gd([l2()],Gh.prototype,"filters",void 0),Gd([l2()],Gh.prototype,"page",void 0),Gd([l2()],Gh.prototype,"sort",void 0),Gd([l6(".ai-activity__field")],Gh.prototype,"fields",void 0),Gh=Gd([lJ("uap-f-page-logs-ai-activity")],Gh);let Gg=e=>null!=e?._$litType$?.h?e._$litType$.h:e.strings,Gm=cr(class extends cs{constructor(e){super(e),this.et=new WeakMap}render(e){return[e]}update(e,[t]){let i=$k(this.it)?Gg(this.it):null,a=$k(t)?Gg(t):null;if(null!==i&&(null===a||i!==a)){let t=e._$AH.pop(),a=this.et.get(i);void 0===a&&((a=ll(s3,document.createDocumentFragment())).setConnected(!1),this.et.set(i,a)),$T(a,[t]),$E(a,void 0,t)}if(null!==a){if(null===i||i!==a){let t=this.et.get(a);if(void 0!==t){let i=t._$AH.pop();e._$AR(),$E(e,void 0,i),$T(e,[i])}}this.it=t}else this.it=void 0;return this.render(t)}});var Gf=a(9540),Gy=a.n(Gf),Gb=function(e,t,i,a){var n,o=arguments.length,r=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(r=(o<3?n(r):o>3?n(t,i,r):n(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r};let Gv=class extends ld{constructor(){super(...arguments),this.href=""}static{this.styles=sf`${sm(Gy())}`}render(){return""===this.href?s1`<slot></slot>`:s1`<a class="link" href=${this.href} @click=${this.handleClick}><slot></slot></a>`}handleClick(e){e.stopPropagation()}};Gb([l0({type:String})],Gv.prototype,"href",void 0),Gv=Gb([lJ("uap-f-page-logs-viewer-link")],Gv);let G_={RECEIVED:"received",HANDLING:"handling",HANDLED:"handled",FAILED:"failed"},Gw=rT(G_),Gx={DATE:"date",STATUS:"status"},Gk=rT(Gx),GE=rg({page:o5().int().min(1),per_page:o5().int().min(1).max(100),integration:oR().min(1).optional(),status:Gw.optional(),date_from:nO(oN,void 0).optional(),date_to:nO(oN,void 0).optional(),search:oR().min(1).max(200).optional(),orderby:Gk.optional(),order:TW.optional()}).strict(),GS=rg({entries:rp(Tz),total:o5().int().min(0),apps:rp(TU)}).strict(),GC={all:()=>["logs-viewer","app-events"],list:e=>[...GC.all(),e]};async function GT(e){let[,,t]=e.queryKey;return dV({endpoint:ql("logs/app-events",GE.parse(t)),method:"GET",responseSchema:GS,useEnvelope:!0})}function GI(e,t,i,a){return`${Nl}/${e}/recipe/${t}/run/${i}/log/${a}`}let GD=Object.freeze({recipe_id:"",user_id:"",status:"",integration:"",endpoint:"",item_code:"",date_from:"",date_to:"",search:"",sort:""}),GA=Object.freeze({page:1,per_page:1});function G$(e,t){let i=e.search.trim();return TG.parse({page:t,per_page:20,recipe_id:""===e.recipe_id?void 0:Number(e.recipe_id),user_id:""===e.user_id?void 0:Number(e.user_id),status:e.status||void 0,integration:e.integration||void 0,endpoint:e.endpoint||void 0,item_code:e.item_code||void 0,date_from:e.date_from||void 0,date_to:e.date_to||void 0,search:i||void 0,...function(e){switch(e){case WG.OLDEST:return{orderby:TV.DATE,order:TZ.ASC};case WG.RECIPE:return{orderby:TV.RECIPE,order:TZ.ASC};case WG.USER:return{orderby:TV.USER,order:TZ.ASC};case WG.STATUS:return{orderby:TV.STATUS,order:TZ.ASC};default:return{orderby:TV.DATE,order:TZ.DESC}}}(e.sort)})}function GO(e,t){return void 0===e?t?WQ.ERROR:WQ.LOADING:0===e?WQ.EMPTY:WQ.READY}function GR(e,t){return Math.max(1,Math.ceil(e/t))}function GM(e,t){return void 0===t?e:Math.min(e,GR(t,20))}let GL=rg({integration:oR(),status:oR(),date_from:oR(),date_to:oR(),search:oR()}).strict(),GN=GL.keyof();function GP(e,t,i,a){let n=GL.parse(e);return{page:t,per_page:20,...Object.fromEntries(Object.entries({...n,search:n.search.trim()}).filter(([,e])=>""!==e)),orderby:i,order:a}}function Gz(e,t){return e.orderby===t?{orderby:t,order:TZ.ASC===e.order?TZ.DESC:TZ.ASC}:{orderby:t,order:Gx.DATE===t?TZ.DESC:TZ.ASC}}rg({orderby:Gk,order:TW}).strict();var GU=a(7521),GF=a.n(GU),Gj=function(e,t,i,a){var n,o=arguments.length,r=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(r=(o<3?n(r):o>3?n(t,i,r):n(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r};let GB={integration:"",status:"",date_from:"",date_to:"",search:""},GH="9999-12-31",GV=class extends ld{constructor(){super(...arguments),this.draft={...GB},this.filters={...GB},this.page=1,this.sort={orderby:Gx.DATE,order:TZ.DESC},this.eventsController=new vE(this,()=>{var e,t,i,a,n;return e=this.filters,t=this.page,i=this.sort.orderby,a=this.sort.order,n=GE.parse(GP(e,t,i,a)),{queryKey:GC.list(n),queryFn:GT,staleTime:0,placeholderData:e=>e}}),this.filtersController=new vE(this,qv)}static{this.styles=sf`${sm(GF())}`}willUpdate(){this.page=GM(this.page,this.eventsController.result.data?.total)}get isFilterDisabled(){let{data:e,isError:t}=this.filtersController.result;return void 0===e?!t:!e.available}render(){return s1` <div class="app-events"> <div class="app-events__header"> <p class="app-events__intro">${(0,lX.__)("The events your apps sent this site in the last 15 days, and the recipe runs each one started.","uncanny-automator")}</p> ${this.templateFilters()} ${this.filtersController.result.data?.available===!1?this.templateProNote():s3} </div> ${this.templateBody()} </div> `}templateFilters(){return s1` <div class="app-events__filters"> ${this.templateAppSelect()} <select class="app-events__field" name="status" aria-label=${String((0,lX.__)("Filter by status","uncanny-automator"))} ?disabled=${this.isFilterDisabled} @change=${this.handleDraftInput}> <option value="" .selected=${""===this.draft.status}>${(0,lX.__)("All statuses","uncanny-automator")}</option> ${Gw.options.map(e=>s1` <option value=${e} .selected=${e===this.draft.status}>${(function(e){switch(e){case G_.RECEIVED:return(0,lX.__)("Received","uncanny-automator");case G_.HANDLING:return(0,lX.__)("Handling","uncanny-automator");case G_.HANDLED:return(0,lX.__)("Handled","uncanny-automator");case G_.FAILED:return(0,lX.__)("Failed","uncanny-automator")}})(e)}</option> `)} </select> <input class="app-events__field" type="date" name="date_from" max=${GH} aria-label=${String((0,lX.__)("From date","uncanny-automator"))} ?disabled=${this.isFilterDisabled} .value=${this.draft.date_from} @change=${this.handleDraftInput} /> <input class="app-events__field" type="date" name="date_to" max=${GH} aria-label=${String((0,lX.__)("To date","uncanny-automator"))} ?disabled=${this.isFilterDisabled} .value=${this.draft.date_to} @change=${this.handleDraftInput} /> <uas-button class="app-events__apply" color=${pm.SECONDARY} ?disabled=${this.isFilterDisabled} @click=${this.handleCommit}>${(0,lX.__)("Filter","uncanny-automator")}</uas-button> <form class="app-events__search" role="search" @submit=${this.handleSearchSubmit}> <input class="app-events__field" type="text" name="search" aria-label=${String((0,lX.__)("Search app events","uncanny-automator"))} .value=${this.draft.search} @input=${this.handleDraftInput} /> <uas-button class="app-events__apply" color=${pm.SECONDARY} @click=${this.handleCommit}>${(0,lX.__)("Search","uncanny-automator")}</uas-button> </form> </div> `}templateAppSelect(){return s1` <select class="app-events__field" name="integration" aria-label=${String((0,lX.__)("Filter by app","uncanny-automator"))} ?disabled=${this.isFilterDisabled} @change=${this.handleDraftInput}> <option value="" .selected=${""===this.draft.integration}>${(0,lX.__)("All apps","uncanny-automator")}</option> ${$A(this.eventsController.result.data?.apps??[],e=>e.code,e=>s1` <option value=${e.code} .selected=${e.code===this.draft.integration}>${e.name}</option> `)} </select> `}templateProNote(){return s1` <p class="app-events__note"> ${(0,lX.__)("Filters require Uncanny Automator Pro.","uncanny-automator")} <a class="app-events__note-link" href=${PO(dX.PLANS)} target="_blank" rel="noopener">${(0,lX.__)("Upgrade to Pro","uncanny-automator")}<uas-icon class="app-events__note-icon" code="arrow-up-right-from-square" size="xs"></uas-icon></a> </p> `}templateBody(){return this.eventsController.result.data?this.templateList(this.eventsController.result.data):this.eventsController.result.isError?s1` <uap-f-page-logs-viewer-state state=${WQ.ERROR} message=${String((0,lX.__)("Your app events couldn't be loaded.","uncanny-automator"))} @uap.f.page-logs-viewer.retry=${this.handleRetry} ></uap-f-page-logs-viewer-state> `:s1` <div class="app-events__state"> <uas-skeleton variant="rectangle" width="100%" height="320px"></uas-skeleton> </div> `}templateList(e){return s1` <div class="app-events__table-frame"> <table class="app-events__table"> <thead>${this.templateHeadings()}</thead> <tbody> ${0===e.entries.length?s1`<tr><td class="app-events__empty" colspan=${5}>${this.getEmptyMessage()}</td></tr>`:$A(e.entries,e=>e.id,e=>this.templateRow(e))} </tbody> </table> </div> ${this.templateNav(e.total)} `}templateNav(e){let t=GR(e,20);return s1` <div class="app-events__nav"> <span class="app-events__count">${(0,lX.sprintf)((0,lX._n)("%d item","%d items",e,"uncanny-automator"),e)}</span> <div class="app-events__pagination"> <uas-button color=${pm.SECONDARY} size=${py.SM} ?disabled=${this.page<=1} @click=${this.handlePreviousPage}> <uas-icon code="angle-left" role="img" aria-label=${String((0,lX.__)("Previous page","uncanny-automator"))}></uas-icon> </uas-button> <span class="app-events__page">${(0,lX.sprintf)((0,lX.__)("Page %1$d of %2$d","uncanny-automator"),this.page,t)}</span> <uas-button color=${pm.SECONDARY} size=${py.SM} ?disabled=${this.page>=t} @click=${this.handleNextPage}> <uas-icon code="angle-right" role="img" aria-label=${String((0,lX.__)("Next page","uncanny-automator"))}></uas-icon> </uas-button> </div> </div> `}templateHeadings(){return s1` <tr> <th class="app-events__heading" scope="col">${(0,lX.__)("Event","uncanny-automator")}</th> <th class="app-events__heading" scope="col">${(0,lX.__)("App","uncanny-automator")}</th> ${this.templateSortHeading(Gx.STATUS,(0,lX.__)("Status","uncanny-automator"))} <th class="app-events__heading" scope="col">${(0,lX.__)("Runs","uncanny-automator")}</th> ${this.templateSortHeading(Gx.DATE,(0,lX.__)("Date","uncanny-automator"))} </tr> `}templateSortHeading(e,t){let i=e===this.sort.orderby,a=i?this.sort.order:Gz(this.sort,e).order;return s1` <th class="app-events__heading" scope="col" aria-sort=${this.getAriaSort(e)}> <button class=${up({"app-events__sort":!0,"app-events__sort--active":i})} type="button" @click=${()=>this.handleSort(e)}> ${t} <uas-icon code=${TZ.ASC===a?"arrow-up":"arrow-down"} aria-hidden="true"></uas-icon> </button> </th> `}templateRow(e){return s1` <tr class="app-events__row"> <td class="app-events__cell app-events__cell--event"> <div class="app-events__stack"> <span class="app-events__summary">${e.event.summary}</span> ${e.event.items.length>0?s1`<span class="app-events__more">${e.event.items.join(", ")}</span>`:s3} </div> </td> <td class="app-events__cell app-events__cell--app"> <div class="app-events__stack"> <span class="app-events__app"> <uap-d-integrations-icon code=${e.app.code} size=${SD.XS} aria-hidden="true"></uap-d-integrations-icon> ${e.app.name} </span> ${""!==e.app.account?s1`<span class="app-events__more">${e.app.account}</span>`:s3} </div> </td> <td class="app-events__cell app-events__cell--status"> <div class="app-events__stack"> <uap-f-recipe-log-status .status=${e.status}></uap-f-recipe-log-status> ${this.templateFailure(e)} </div> </td> <td class="app-events__cell app-events__cell--runs">${this.templateRuns(e)}</td> <td class="app-events__cell app-events__cell--date"> <time datetime=${e.date_gmt} title=${e.date}>${e.date_short}</time> </td> </tr> `}templateFailure(e){return Cq.TERMINAL_FAILURE!==e.status.phase?s3:s1` ${""!==e.error?s1`<span class="app-events__more app-events__error" title=${e.error}>${e.error}</span>`:s3} <span class="app-events__more">${(0,lX.sprintf)((0,lX._n)("%d attempt","%d attempts",e.attempts,"uncanny-automator"),e.attempts)}</span> `}templateRuns(e){return 0===e.runs.length?s1`<span class="app-events__none">${(0,lX.__)("None","uncanny-automator")}</span>`:s1` <ul class="app-events__runs"> ${$A(e.runs,e=>e.log_id,e=>s1` <li><uap-f-page-logs-viewer-link href=${`#${GI(d1.RECIPE,e.recipe_id,e.run_number,e.log_id)}`}>${e.recipe_title}</uap-f-page-logs-viewer-link></li> `)} ${this.templateMoreRuns(e)} </ul> `}templateMoreRuns(e){let t=e.runs_total-e.runs.length;return t<=0?s3:s1`<li class="app-events__runs-more">${(0,lX.sprintf)((0,lX._n)("and %s more","and %s more",t,"uncanny-automator"),t.toLocaleString())}</li>`}getEmptyMessage(){var e;let t;return(e=this.filters,Object.values({...t=GL.parse(e),search:t.search.trim()}).some(e=>""!==e))?(0,lX.__)("No app events found.","uncanny-automator"):(0,lX.__)("No app events in the last 15 days.","uncanny-automator")}getAriaSort(e){return e!==this.sort.orderby?"none":TZ.ASC===this.sort.order?"ascending":"descending"}handleDraftInput(e){let t=e.currentTarget;(t instanceof HTMLSelectElement||t instanceof HTMLInputElement)&&(this.draft={...this.draft,[GN.parse(t.name)]:t.value})}handleCommit(){this.reportFilterValidity()&&(this.filters={...this.draft},this.page=1,this.refetchEvents())}reportFilterValidity(){var e,t,i;let a,n=Array.from(this.fields),o=(e=this.draft,t=this.sort.orderby,i=this.sort.order,a=GE.safeParse(GP(e,1,t,i)),GN.safeParse(a.error?.issues[0]?.path[0]).data);return n.forEach(e=>{e.setCustomValidity(o===e.name?(0,lX.__)("Enter a valid value.","uncanny-automator"):"")}),n.every(e=>e.reportValidity())}handleSearchSubmit(e){e.preventDefault(),this.handleCommit()}async refetchEvents(){await this.updateComplete,await this.eventsController.result.refetch({cancelRefetch:!1})}handleRetry(){this.refetchEvents()}handleSort(e){this.sort=Gz(this.sort,e),this.page=1}handlePreviousPage(){this.page=Math.max(1,this.page-1)}handleNextPage(){let e=this.eventsController.result.data?.total??0;this.page=Math.min(GR(e,20),this.page+1)}};Gj([l2()],GV.prototype,"draft",void 0),Gj([l2()],GV.prototype,"filters",void 0),Gj([l2()],GV.prototype,"page",void 0),Gj([l2()],GV.prototype,"sort",void 0),Gj([l6(".app-events__field")],GV.prototype,"fields",void 0),GV=Gj([lJ("uap-f-page-logs-app-events")],GV);var Gq=a(74),GZ=a.n(Gq),GW=function(e,t,i,a){var n,o=arguments.length,r=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(r=(o<3?n(r):o>3?n(t,i,r):n(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r};let GG="9999-12-31",GK=class extends ld{constructor(){super(...arguments),this.controls=[],this.values=GD,this.searchLabel="",this.filtersController=new vE(this,qv)}static{this.styles=sf`${sm(GZ())}`}willUpdate(e){lQ(this,"controls",WY,e,"uap-f-page-logs-viewer-filter-bar",[]),lQ(this,"values",Wq,e,"uap-f-page-logs-viewer-filter-bar",GD)}get isDisabled(){return this.filtersController.result.data?.available!==!0}get isDateDisabled(){let{data:e,isError:t}=this.filtersController.result;return void 0===e?!t:!e.available}render(){return s1` <div class="filter-bar"> <div class="filter-bar__top"> <form class="filter-bar__search" role="search" @submit=${this.handleSearchSubmit}> <uas-icon code="magnifying-glass" aria-hidden="true"></uas-icon> <input class="filter-bar__search-input" type="search" name="search" placeholder=${this.searchLabel} aria-label=${this.searchLabel} .value=${this.values.search} @change=${this.handleChange} /> </form> ${this.controls.includes(WK.SORT)?this.templateControl(WK.SORT):s3} </div> <div class="filter-bar__controls"> ${this.controls.filter(e=>WK.SORT!==e).map(e=>this.templateControl(e))} </div> ${this.filtersController.result.data?.available===!1?this.templateProNote():s3} </div> `}templateProNote(){return s1` <p class="filter-bar__note"> ${(0,lX.__)("Filters require Uncanny Automator Pro.","uncanny-automator")} <a class="filter-bar__note-link" href=${PO(dX.PLANS)} target="_blank" rel="noopener">${(0,lX.__)("Upgrade to Pro","uncanny-automator")}<uas-icon class="filter-bar__note-icon" code="arrow-up-right-from-square" size="xs"></uas-icon></a> </p> `}templateControl(e){let t=this.filtersController.result.data;switch(e){case WK.RECIPE:return this.templateSelect(WW.RECIPE_ID,(0,lX.__)("All recipes","uncanny-automator"),(0,lX.__)("Filter by recipe","uncanny-automator"),t?.recipes);case WK.USER:return this.templateSelect(WW.USER_ID,(0,lX.__)("All users","uncanny-automator"),(0,lX.__)("Filter by user","uncanny-automator"),t?.users);case WK.STATUS:return this.templateSelect(WW.STATUS,(0,lX.__)("All statuses","uncanny-automator"),(0,lX.__)("Filter by status","uncanny-automator"),t?.statuses);case WK.INTEGRATION:return this.templateSelect(WW.INTEGRATION,(0,lX.__)("All integrations","uncanny-automator"),(0,lX.__)("Filter by integration","uncanny-automator"),t?.integrations);case WK.TRIGGER:return this.templateSelect(WW.ITEM_CODE,(0,lX.__)("All triggers","uncanny-automator"),(0,lX.__)("Filter by trigger","uncanny-automator"),t?.triggers);case WK.ACTION:return this.templateSelect(WW.ITEM_CODE,(0,lX.__)("All actions","uncanny-automator"),(0,lX.__)("Filter by action","uncanny-automator"),t?.actions);case WK.ENDPOINT:return this.templateSelect(WW.ENDPOINT,(0,lX.__)("All endpoints","uncanny-automator"),(0,lX.__)("Filter by endpoint","uncanny-automator"),t?.endpoints);case WK.SORT:return this.templateSelect(WW.SORT,(0,lX.__)("Newest first","uncanny-automator"),(0,lX.__)("Sort the list","uncanny-automator"),this.sortOptions,!1);case WK.COMPLETION_DATE:return this.templateDates((0,lX.__)("Completion date","uncanny-automator"),(0,lX.__)("Completed from","uncanny-automator"),(0,lX.__)("Completed to","uncanny-automator"));case WK.FAIL_DATE:return this.templateDates((0,lX.__)("Fail date","uncanny-automator"),(0,lX.__)("Failed from","uncanny-automator"),(0,lX.__)("Failed to","uncanny-automator"))}}get sortOptions(){return[{value:WG.OLDEST,label:(0,lX.__)("Oldest first","uncanny-automator")},{value:WG.RECIPE,label:(0,lX.__)("Recipe name","uncanny-automator")},{value:WG.USER,label:(0,lX.__)("User name","uncanny-automator")},{value:WG.STATUS,label:(0,lX.__)("Status","uncanny-automator")}]}templateSelect(e,t,i,a=[],n=this.isDisabled){return s1` <select class="filter-bar__field" name=${e} aria-label=${i} ?disabled=${n} @change=${this.handleChange}> <option value="" .selected=${""===this.values[e]}>${t}</option> ${$A(a,e=>e.value,t=>s1` <option value=${t.value} .selected=${t.value===this.values[e]}>${t.label}</option> `)} </select> `}templateDates(e,t,i){return s1` <fieldset class="filter-bar__dates" ?disabled=${this.isDateDisabled}> <legend class="filter-bar__dates-label">${e}</legend> <input class="filter-bar__field" type="date" name="date_from" max=${GG} aria-label=${t} .value=${this.values.date_from} @change=${this.handleChange} /> <input class="filter-bar__field" type="date" name="date_to" max=${GG} aria-label=${i} .value=${this.values.date_to} @change=${this.handleChange} /> </fieldset> `}handleChange(e){let t=e.currentTarget;(t instanceof HTMLSelectElement||t instanceof HTMLInputElement)&&t.reportValidity()&&lw({element:this,eventName:WF,data:{filters:{...this.values,[WZ.parse(t.name)]:t.value}},schema:W1,options:{bubbles:!0,composed:!0}})}handleSearchSubmit(e){e.preventDefault()}};GW([l0({attribute:!1})],GK.prototype,"controls",void 0),GW([l0({attribute:!1})],GK.prototype,"values",void 0),GW([l0({type:String,attribute:"search-label"})],GK.prototype,"searchLabel",void 0),GK=GW([lJ("uap-f-page-logs-viewer-filter-bar")],GK);var GY=a(3125),GQ=a.n(GY);let GX=class extends ld{constructor(){super(...arguments),this.resizeController=new vO(this,{side:vI.RIGHT,minWidth:300,maxWidth:660,defaultWidth:392})}static{this.styles=sf`${sm(GQ())}`}render(){return s1` <div class="pane"> <div class="pane__content"><slot></slot></div> <div class="resize-handle" role="separator" aria-orientation="vertical"></div> </div> `}};GX=function(e,t,i,a){var n,o=arguments.length,r=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(r=(o<3?n(r):o>3?n(t,i,r):n(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r}([lJ("uap-f-page-logs-viewer-list-pane")],GX);var GJ=a(2306),G1=a.n(GJ),G0=function(e,t,i,a){var n,o=arguments.length,r=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(r=(o<3?n(r):o>3?n(t,i,r):n(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r};let G2=class extends ld{constructor(){super(...arguments),this.listOnly=!1}static{this.styles=sf`${sm(G1())}`}render(){return s1` <div class=${up({layout:!0,"layout--list-only":this.listOnly})}> <div class="layout__filters"><slot name="filters"></slot></div> <div class="layout__panes"> <uap-f-page-logs-viewer-list-pane class="layout__list"><slot name="list"></slot></uap-f-page-logs-viewer-list-pane> <div class="layout__detail" role="region" tabindex="-1" aria-label=${String((0,lX.__)("Details","uncanny-automator"))}><slot name="detail"></slot></div> </div> </div> `}};G0([l0({type:Boolean,attribute:"list-only"})],G2.prototype,"listOnly",void 0),G2=G0([lJ("uap-f-page-logs-viewer-layout")],G2);var G3=a(644),G4=a.n(G3),G6=function(e,t,i,a){var n,o=arguments.length,r=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(r=(o<3?n(r):o>3?n(t,i,r):n(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r};let G5=class extends ld{constructor(){super(...arguments),this.page=1,this.perPage=20,this.total=0}static{this.styles=sf`${sm(G4())}`}render(){let e=GR(this.total,this.perPage);return s1` <nav class="pagination" aria-label=${String((0,lX.__)("Pagination","uncanny-automator"))}> <span class="pagination__text">${(0,lX.sprintf)((0,lX._n)("%s item","%s items",this.total,"uncanny-automator"),this.total.toLocaleString())}</span> <div class="pagination__buttons"> <uas-button class="pagination__previous" color=${pm.SECONDARY} size=${py.SM} ?disabled=${this.page<=1} @click=${()=>this.changePage(this.page-1)}> <uas-icon code="angle-left" role="img" aria-label=${String((0,lX.__)("Previous page","uncanny-automator"))}></uas-icon> </uas-button> <span class="pagination__text">${(0,lX.sprintf)((0,lX.__)("Page %1$d of %2$d","uncanny-automator"),this.page,e)}</span> <uas-button class="pagination__next" color=${pm.SECONDARY} size=${py.SM} ?disabled=${this.page>=e} @click=${()=>this.changePage(this.page+1)}> <uas-icon code="angle-right" role="img" aria-label=${String((0,lX.__)("Next page","uncanny-automator"))}></uas-icon> </uas-button> </div> </nav> `}changePage(e){lw({element:this,eventName:"uap.f.page-logs-viewer.page-change",data:{page:e},schema:W0,options:{bubbles:!0,composed:!0}})}};G6([l0({type:Number})],G5.prototype,"page",void 0),G6([l0({type:Number,attribute:"per-page"})],G5.prototype,"perPage",void 0),G6([l0({type:Number})],G5.prototype,"total",void 0),G5=G6([lJ("uap-f-page-logs-viewer-pagination")],G5);var G8=a(1340),G7=a.n(G8),G9=function(e,t,i,a){var n,o=arguments.length,r=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(r=(o<3?n(r):o>3?n(t,i,r):n(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r};let Ke=class extends ld{constructor(){super(...arguments),this.state=WQ.LOADING,this.summary="",this.emptyMessage="",this.errorMessage="",this.page=1,this.perPage=20,this.total=0,this.selectable=!1,this.rowIDs=[],this.checkedIDs=[],this.selectAllTotal=0,this.selectingAll=!1,this.lastTotal=0}static{this.styles=sf`${sm(G7())}`}willUpdate(e){lQ(this,"state",WX,e,"uap-f-page-logs-viewer-list",WQ.LOADING),lQ(this,"rowIDs",WJ,e,"uap-f-page-logs-viewer-list",[]),lQ(this,"checkedIDs",WJ,e,"uap-f-page-logs-viewer-list",[]),WQ.READY===this.state&&(this.lastTotal=this.total)}focus(e){this.shadowRoot?.querySelector(".list__check-all")?.focus(e)}render(){let e=WQ.READY===this.state;return s1` <div class="list"> ${e?this.templateBar():s3} <div class="list__rows" @uap.f.page-logs-viewer.row-check=${this.handleRowCheck}> ${e?s1`<slot></slot>`:s1`<uap-f-page-logs-viewer-state state=${this.state} message=${this.getStateMessage()}></uap-f-page-logs-viewer-state>`} </div> ${this.templatePagination()} </div> `}templatePagination(){let e=WQ.ERROR===this.state&&this.lastTotal>0;return WQ.READY===this.state||e?s1`<uap-f-page-logs-viewer-pagination class="list__pagination" page=${this.page} per-page=${this.perPage} total=${e?this.lastTotal:this.total}></uap-f-page-logs-viewer-pagination>`:s3}templateBar(){let e=this.checkedIDs.length,t=this.rowIDs.length>0&&this.rowIDs.every(e=>this.checkedIDs.includes(e));return s1` <div class="list__bar"> ${this.selectable?s1`<input class="list__check-all" type="checkbox" aria-label=${String((0,lX.__)("Select all rows on this page","uncanny-automator"))} ?disabled=${0===this.rowIDs.length} .checked=${t} .indeterminate=${e>0&&!t} @change=${this.handleCheckAll} />`:s3} ${e>0?s1` <span class="list__selected">${(0,lX.sprintf)((0,lX.__)("%d selected","uncanny-automator"),e)}</span> ${t&&this.selectAllTotal>e?s1`<button class="list__clear" type="button" ?disabled=${this.selectingAll} @click=${this.handleSelectAll}>${(0,lX.sprintf)((0,lX.__)("Select all %d","uncanny-automator"),this.selectAllTotal)}</button>`:s3} <div class="list__bulk-actions"><slot name="bulk-actions"></slot></div> <button class="list__clear" type="button" @click=${this.handleClear}>${(0,lX.__)("Clear selection","uncanny-automator")}</button> `:s1` <span class="list__summary" role="status">${this.summary}</span> <div class="list__bulk-actions"><slot name="summary-action"></slot></div> `} </div> <slot name="notice"></slot> `}getStateMessage(){return WQ.ERROR===this.state?this.errorMessage:this.emptyMessage}handleRowCheck(e){var t,i,a;let n,o,r,s,{id:l,checked:c,range:d}=W4.parse(e.detail);this.reportChecked((t=this.rowIDs,i=this.checkedIDs,n=void 0===(a=d?this.lastCheckedID:void 0)?-1:t.indexOf(a),o=t.indexOf(l),r=n<0||o<0?[l]:t.slice(Math.min(n,o),Math.max(n,o)+1),s=i.filter(e=>!r.includes(e)),c?[...s,...r]:s)),this.lastCheckedID=l}handleCheckAll(e){var t,i,a;let n;e.currentTarget instanceof HTMLInputElement&&this.reportChecked((t=this.rowIDs,i=this.checkedIDs,a=e.currentTarget.checked,n=i.filter(e=>!t.includes(e)),a?[...n,...t]:n))}handleSelectAll(){lw({element:this,eventName:"uap.f.page-logs-viewer.select-all-matching",data:{},schema:W8,options:{bubbles:!0,composed:!0}})}handleClear(){this.reportChecked([])}reportChecked(e){lw({element:this,eventName:"uap.f.page-logs-viewer.checked-change",data:{ids:e},schema:W6,options:{bubbles:!0,composed:!0}})}};G9([l0({type:String})],Ke.prototype,"state",void 0),G9([l0({type:String})],Ke.prototype,"summary",void 0),G9([l0({type:String,attribute:"empty-message"})],Ke.prototype,"emptyMessage",void 0),G9([l0({type:String,attribute:"error-message"})],Ke.prototype,"errorMessage",void 0),G9([l0({type:Number})],Ke.prototype,"page",void 0),G9([l0({type:Number,attribute:"per-page"})],Ke.prototype,"perPage",void 0),G9([l0({type:Number})],Ke.prototype,"total",void 0),G9([l0({type:Boolean})],Ke.prototype,"selectable",void 0),G9([l0({attribute:!1})],Ke.prototype,"rowIDs",void 0),G9([l0({attribute:!1})],Ke.prototype,"checkedIDs",void 0),G9([l0({type:Number,attribute:"select-all-total"})],Ke.prototype,"selectAllTotal",void 0),G9([l0({type:Boolean,attribute:"selecting-all"})],Ke.prototype,"selectingAll",void 0),Ke=G9([lJ("uap-f-page-logs-viewer-list")],Ke);var Kt=a(1646),Ki=a.n(Kt),Ka=function(e,t,i,a){var n,o=arguments.length,r=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(r=(o<3?n(r):o>3?n(t,i,r):n(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r};let Kn=class extends ld{constructor(){super(...arguments),this.rowID="",this.active=!1,this.selectable=!1,this.checked=!1,this.checkDisabled=!1,this.checkLabel="",this.withDetails=!1,this.dense=!1,this.heading=!1}static{this.styles=sf`${sm(Ki())}`}render(){return this.heading?this.templateHeading():s1` <div class=${up({row:!0,"row--active":this.active,"row--checked":this.selectable&&this.checked,"row--dense":this.dense})}> ${this.selectable?s1`<input class="row__check" type="checkbox" aria-label=${this.checkLabel||String((0,lX.__)("Select row","uncanny-automator"))} ?disabled=${this.checkDisabled} .checked=${this.checked} @mousedown=${this.handleCheckPress} @click=${this.handleCheck} />`:s3} ${this.isTableLine?s1`<div class="row__open" aria-current=${this.active?"true":"false"} @click=${this.handleOpen}><slot></slot></div>`:s1`<button class="row__open" type="button" aria-current=${this.active?"true":"false"} @click=${this.handleOpen}><slot></slot></button>`} ${this.withDetails?s1`<uas-button class="row__details" color=${pm.TRANSPARENT} size=${py.SM} @click=${this.handleOpen}>${(0,lX.__)("See details","uncanny-automator")}<uas-icon class="row__details-icon" code="angle-right"></uas-icon></uas-button>`:s3} </div> `}get isTableLine(){return this.dense&&this.withDetails}templateHeading(){return s1` <div class="row row--heading"> <div class="row__heading"> ${this.selectable?s1`<span class="row__check row__check--space"></span>`:s3} <div class="row__open row__open--heading"><slot></slot></div> ${this.withDetails?s1`<uas-button class="row__details row__details--space" color=${pm.TRANSPARENT} size=${py.SM} aria-hidden="true" inert>${(0,lX.__)("See details","uncanny-automator")}<uas-icon class="row__details-icon" code="angle-right"></uas-icon></uas-button>`:s3} </div> </div> `}handleOpen(){lw({element:this,eventName:"uap.f.page-logs-viewer.row-select",data:{id:this.rowID},schema:W3,options:{bubbles:!0,composed:!0}})}handleCheckPress(e){e.shiftKey&&e.preventDefault()}handleCheck(e){e.currentTarget instanceof HTMLInputElement&&lw({element:this,eventName:"uap.f.page-logs-viewer.row-check",data:{id:this.rowID,checked:e.currentTarget.checked,range:e.shiftKey},schema:W4,options:{bubbles:!0,composed:!0}})}};Ka([l0({type:String,attribute:"row-id"})],Kn.prototype,"rowID",void 0),Ka([l0({type:Boolean})],Kn.prototype,"active",void 0),Ka([l0({type:Boolean})],Kn.prototype,"selectable",void 0),Ka([l0({type:Boolean})],Kn.prototype,"checked",void 0),Ka([l0({type:Boolean,attribute:"check-disabled"})],Kn.prototype,"checkDisabled",void 0),Ka([l0({type:String,attribute:"check-label"})],Kn.prototype,"checkLabel",void 0),Ka([l0({type:Boolean,attribute:"with-details"})],Kn.prototype,"withDetails",void 0),Ka([l0({type:Boolean})],Kn.prototype,"dense",void 0),Ka([l0({type:Boolean})],Kn.prototype,"heading",void 0),Kn=Ka([lJ("uap-f-page-logs-viewer-row")],Kn);var Ko=a(8281),Kr=a.n(Ko),Ks=function(e,t,i,a){var n,o=arguments.length,r=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(r=(o<3?n(r):o>3?n(t,i,r):n(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r};let Kl=class extends ld{constructor(){super(...arguments),this.label="",this.sort="",this.values=GD}static{this.styles=sf`${sm(Kr())}`}willUpdate(e){lQ(this,"values",Wq,e,"uap-f-page-logs-viewer-sort-heading",GD)}get isActive(){return this.values.sort===this.sort||void 0!==this.alternate&&this.values.sort===this.alternate}get next(){return void 0!==this.alternate&&this.values.sort===this.sort?this.alternate:this.sort}render(){let e=this.isActive?this.values.sort:this.next;return s1` <button class=${up({heading:!0,"heading--active":this.isActive})} type="button" aria-pressed=${this.isActive?"true":"false"} @click=${this.handleClick}> ${this.label} <uas-icon class="heading__arrow" code=${""===e?"arrow-down":"arrow-up"} aria-hidden="true"></uas-icon> </button> `}handleClick(){this.next!==this.values.sort&&lw({element:this,eventName:WF,data:{filters:{...this.values,sort:this.next}},schema:W1,options:{bubbles:!0,composed:!0}})}};Ks([l0({type:String})],Kl.prototype,"label",void 0),Ks([l0({type:String})],Kl.prototype,"sort",void 0),Ks([l0({type:String})],Kl.prototype,"alternate",void 0),Ks([l0({attribute:!1})],Kl.prototype,"values",void 0),Kl=Ks([lJ("uap-f-page-logs-viewer-sort-heading")],Kl);let Kc=o5().int().positive().optional(),Kd=re(),Ku=VB.NODE_ID.schema.optional();var Kp=a(3947),Kh=a.n(Kp),Kg=function(e,t,i,a){var n,o=arguments.length,r=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(r=(o<3?n(r):o>3?n(t,i,r):n(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r};let Km=class extends ld{constructor(){super(...arguments),this.skeleton=!1,this.canDelete=!0,this.openNodeID=void 0,this.isRefreshing=!1,this.preferences=new vS(this,{...WE,schema:Wb,persistenceReady:Ww()}),this.setPreferences=new vm(this,WI()),this.logController=new vE(this,{...Wo(0,0,0),enabled:!1})}static{this.styles=sf`${sm(Kh())}`}get projection(){return this.preferences.data?this.preferences.data.view:this.preferences.result.errorUpdateCount>0?Wx.view:void 0}willUpdate(e){lQ(this,"recipeID",Kc,e,"uap-f-page-logs-viewer-run-detail"),lQ(this,"runNumber",Kc,e,"uap-f-page-logs-viewer-run-detail"),lQ(this,"logID",Kc,e,"uap-f-page-logs-viewer-run-detail"),lQ(this,"focusNodeID",Ku,e,"uap-f-page-logs-viewer-run-detail"),lQ(this,"canDelete",Kd,e,"uap-f-page-logs-viewer-run-detail",!0);let t=e.has("recipeID")||e.has("runNumber")||e.has("logID");t&&this.followRun(),(t||e.has("focusNodeID"))&&(this.openNodeID=this.focusNodeID)}showFocusNode(){this.openNodeID=this.focusNodeID}followRun(){void 0===this.recipeID||void 0===this.runNumber||void 0===this.logID?this.logController.setOptions({enabled:!1}):this.logController.setOptions({...Wr(this.recipeID,this.runNumber,this.logID),enabled:!0})}render(){if(this.skeleton)return this.templateSkeleton();if(void 0===this.recipeID||void 0===this.runNumber||void 0===this.logID)return s3;let e=this.logController.result.data;return e&&void 0!==this.projection?this.templateRun(e,this.projection):this.logController.result.isError?s1` <div class="run" @uap.f.page-logs-viewer.retry=${this.handleRetry}> <uap-f-page-logs-viewer-state state=${WQ.ERROR} message=${String((0,lX.__)("Could not load this run.","uncanny-automator"))} ></uap-f-page-logs-viewer-state> </div> `:this.templateSkeleton()}templateSkeleton(){let e=TJ.DIAGRAM===this.projection;return s1` <div class="run run--${e?TJ.DIAGRAM:TJ.LIST}" data-test="run-detail-skeleton"> <div class="run__main"> <uap-f-recipe-log-header skeleton></uap-f-recipe-log-header> ${e?s1`<uap-f-recipe-log-canvas class="run__canvas" skeleton></uap-f-recipe-log-canvas>`:s1`<uap-f-recipe-log-flow class="run__flow" skeleton></uap-f-recipe-log-flow>`} </div> </div> `}templateRun(e,t){let i=void 0===this.openNodeID?void 0:ZW(e,this.openNodeID),a=void 0!==i;return s1` <div class="run run--${t}"> <uas-side-sheet-layout class="run__shell" mobile-breakpoint=${760} @uap.d.recipe-log.sidebar-request=${this.handleSidebarRequest} @uap.d.recipe-log.refresh-request=${this.handleRefreshRequest} @uap.d.recipe.view-change=${this.handleViewChange} > <div class="run__main"> <uap-f-recipe-log-header ?is-refreshing=${this.isRefreshing} ?no-delete=${!this.canDelete} .log=${e} > <uap-d-recipe-view-switcher slot="header-actions-end" view=${t}></uap-d-recipe-view-switcher> </uap-f-recipe-log-header> ${TJ.DIAGRAM===t?s1`<uap-f-recipe-log-canvas class="run__canvas" page-scroll .log=${e} active-node-id=${a?i.id:""} ></uap-f-recipe-log-canvas>`:s1`<uap-f-recipe-log-flow class="run__flow" .flow=${e.flow} active-node-id=${a?i.id:""} ></uap-f-recipe-log-flow>`} </div> <uas-side-sheet class="run__sheet" slot="end" placement="end" ?open=${a} @uas.side-sheet.change=${this.handleSheetChange} > <uas-button slot="header" data-test="run-detail-sheet-back" class="run__sheet-back" color=${pm.TRANSPARENT} size=${py.SM} @click=${this.closeSheet} aria-label=${String((0,lX.__)("Close details","uncanny-automator"))} > <uas-icon code="angle-left"></uas-icon> </uas-button> <span slot="header" class="run__sheet-title">${a?Wu(i):""}</span> <uas-button slot="close" data-test="run-detail-sheet-close" class="run__sheet-close" color=${pm.TRANSPARENT} size=${py.SM} @click=${this.closeSheet} aria-label=${String((0,lX.__)("Close details","uncanny-automator"))} > <uas-icon code="xmark"></uas-icon> </uas-button> ${a?s1`<uap-f-recipe-log-sidebar log-id=${e.log_id} recipe-id=${e.recipe_id} run-number=${e.run_number} .nodeID=${i.id} ></uap-f-recipe-log-sidebar>`:s3} </uas-side-sheet> </uas-side-sheet-layout> </div> `}handleViewChange(e){let t=Wh.safeParse(e.detail);t.success&&this.setPreferences.mutate({view:t.data.view})}handleSidebarRequest(e){this.openNodeID=e.detail.nodeID}async handleRefreshRequest(){if(!this.isRefreshing){this.isRefreshing=!0;try{await this.logController.refetch({throwOnError:!0})}catch(e){ly({message:(0,b4.escapeHTML)(e instanceof Error?e.message:(0,lX.__)("Could not refresh this run.","uncanny-automator")),color:lm.ERROR,iconID:"xmark",duration:5e3})}finally{this.isRefreshing=!1}}}handleRetry(){this.logController.refetch()}closeSheet(){this.openNodeID=void 0}handleSheetChange(e){e.detail.open||Ve.API===e.detail.reason||this.closeSheet()}};Kg([H5({context:Vy}),l0({attribute:!1})],Km.prototype,"recipeID",void 0),Kg([l0({attribute:!1})],Km.prototype,"runNumber",void 0),Kg([l0({attribute:!1})],Km.prototype,"logID",void 0),Kg([l0({type:Boolean})],Km.prototype,"skeleton",void 0),Kg([l0({attribute:!1})],Km.prototype,"focusNodeID",void 0),Kg([l0({attribute:!1})],Km.prototype,"canDelete",void 0),Kg([l2()],Km.prototype,"openNodeID",void 0),Kg([l2()],Km.prototype,"isRefreshing",void 0),Km=Kg([lJ("uap-f-page-logs-viewer-run-detail")],Km);let Kf=Object.values(pM),Ky={SM:"sm",MD:"md"},Kb=rT(Ky);var Kv=a(4193),K_=a.n(Kv),Kw=function(e,t,i,a){var n,o=arguments.length,r=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(r=(o<3?n(r):o>3?n(t,i,r):n(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r};let Kx=new Set,Kk=class extends ld{constructor(){super(...arguments),this.size=Ky.SM,this.withEmail=!1,this.linked=!1}static{this.styles=sf`${sm(K_())}`}willUpdate(e){lQ(this,"user",TT.optional(),e,"uap-f-page-logs-viewer-user"),lQ(this,"size",Kb,e,"uap-f-page-logs-viewer-user",Ky.SM)}render(){return s1` <span class="user user--${this.size}"> ${this.user?this.templatePicture(this.user):""} <span class="user__text"> <span class="user__name">${this.user?this.templateName(this.user):""}</span> ${this.withEmail&&this.user?.email?s1`<span class="user__email">${this.user.email}</span>`:""} </span> </span> `}templateName(e){return this.linked?s1`<uap-f-page-logs-viewer-link href=${e.edit_url}>${e.name}</uap-f-page-logs-viewer-link>`:e.name}templatePicture(e){var t;if(""!==e.avatar_url&&!Kx.has(e.avatar_url))return s1`<img class="user__picture" src=${e.avatar_url} alt="" @error=${this.handlePictureError} />`;let i=0===(t=e.id)?void 0:Kf[t%Kf.length],a=void 0===i?{}:{"--uap--f--page-logs-viewer-user--background":`var( --uas--color--tag-${i}-container )`,"--uap--f--page-logs-viewer-user--color":`var( --uas--color--tag-on-${i}-container )`};return s1`<span class="user__picture" style=${cd(a)} aria-hidden="true">${e.name.split(/\s+/).filter(e=>""!==e).slice(0,2).map(e=>Array.from(e)[0]).join("").toUpperCase()}</span>`}handlePictureError(e){let t=e.currentTarget instanceof HTMLImageElement?e.currentTarget.getAttribute("src"):null;t&&(Kx.add(t),this.requestUpdate())}};function KE(e,t){return null!==t&&e.run.recipe_id===t.recipeID&&e.run.run_number===t.runNumber&&e.run.log_id===t.logID&&String(e.item.id)===t.itemLogID}Kw([l0({attribute:!1})],Kk.prototype,"user",void 0),Kw([l0({type:String})],Kk.prototype,"size",void 0),Kw([l0({type:Boolean,attribute:"with-email"})],Kk.prototype,"withEmail",void 0),Kw([l0({type:Boolean})],Kk.prototype,"linked",void 0),Kk=Kw([lJ("uap-f-page-logs-viewer-user")],Kk);var KS=a(7487),KC=a.n(KS),KT=function(e,t,i,a){var n,o=arguments.length,r=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(r=(o<3?n(r):o>3?n(t,i,r):n(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r};class KI extends ld{constructor(){super(...arguments),this.selection=null,this.table=!1,this.compact=!1,this.filters={...GD},this.page=1,this.listController=new vE(this,()=>this.getListOptions(G$(this.filters,this.page)))}static{this.styles=sf`${sm(KC())}`}willUpdate(e){lQ(this,"selection",Wj.nullable(),e,this.localName,null),this.page=GM(this.page,this.listController.result.data?.total)}get filterControls(){return[WK.RECIPE,d1.TRIGGER===this.tab?WK.TRIGGER:WK.ACTION,WK.USER,WK.STATUS,WK.COMPLETION_DATE,WK.SORT]}render(){let e=this.listController.result.data?.total??0,t=this.getCopy(e);return s1` <uap-f-page-logs-viewer-layout ?list-only=${this.compact} @uap.f.page-logs-viewer.filters-change=${this.handleFiltersChange} @uap.f.page-logs-viewer.page-change=${this.handlePageChange} @uap.f.page-logs-viewer.row-select=${this.handleRowSelect} > <uap-f-page-logs-viewer-filter-bar slot="filters" search-label=${t.searchLabel} .controls=${this.filterControls} .values=${this.filters} ></uap-f-page-logs-viewer-filter-bar> <uap-f-page-logs-viewer-list slot="list" state=${GO(this.listController.result.data?.entries.length,this.listController.result.isError)} summary=${t.summary} empty-message=${t.emptyMessage} error-message=${t.errorMessage} page=${this.page} per-page=${20} total=${e} @uap.f.page-logs-viewer.retry=${this.handleRetry} > ${this.table?this.templateHeadings():s3} ${$A(this.listController.result.data?.entries??[],e=>e.id,e=>this.templateRow(e))} </uap-f-page-logs-viewer-list> ${this.templateDetail(t.detailMessage)} </uap-f-page-logs-viewer-layout> `}templateRow(e){return s1` <uap-f-page-logs-viewer-row row-id=${e.id} ?with-details=${this.compact} ?dense=${this.table} ?active=${KE(e,this.selection)}> ${this.table?this.templateCells(e):this.templateEntry(e)} </uap-f-page-logs-viewer-row> `}templateEntry(e){return s1` <span class="item-row"> <span class="item-row__top"> <uap-d-integrations-icon-stack class="item-row__integration" .codes=${[e.item.integration]}></uap-d-integrations-icon-stack> <time class="item-row__date" datetime=${e.date_gmt} title=${e.date}>${e.date_short}</time> </span> <span class="item-row__body"> <span class="item-row__title">${e.item.title}</span> <span class="item-row__recipe">${e.recipe.title}</span> <uap-f-recipe-log-status .status=${e.status}></uap-f-recipe-log-status> <uap-f-page-logs-viewer-user .user=${e.user}></uap-f-page-logs-viewer-user> </span> </span> `}templateCells(e){return s1` <span class=${"notes"in e?"line line--action":"line"}> <span class="line__main"> <uap-d-integrations-icon-stack class="line__integration" .codes=${[e.item.integration]}></uap-d-integrations-icon-stack> <span class="line__title" title=${e.item.title}>${e.item.title}</span> </span> <uap-f-recipe-log-status class="line__status" .status=${e.status}></uap-f-recipe-log-status> ${"notes"in e?s1`<span class="line__notes" title=${e.notes}>${e.notes}</span>`:s3} <span class="line__stack"> <time class="line__date" datetime=${e.date_gmt}>${e.date}</time> ${e.date_relative?s1`<span class="line__ago">${e.date_relative}</span>`:s3} </span> <span class="line__stack"> <span class="line__recipe" title=${e.recipe.title}><uap-f-page-logs-viewer-link href=${e.recipe.edit_url}>${e.recipe.title}</uap-f-page-logs-viewer-link></span> <uap-f-recipe-log-status class="line__recipe-status" .status=${e.recipe_status}></uap-f-recipe-log-status> </span> <uap-f-page-logs-viewer-user class="line__user" size=${Ky.MD} with-email linked .user=${e.user}></uap-f-page-logs-viewer-user> </span> `}templateHeadings(){let e=d1.ACTION===this.tab;return s1` <uap-f-page-logs-viewer-row heading with-details> <span class=${e?"line line--action line--headings":"line line--headings"}> <span>${e?(0,lX.__)("Action","uncanny-automator"):(0,lX.__)("Trigger","uncanny-automator")}</span> <uap-f-page-logs-viewer-sort-heading label=${String(e?(0,lX.__)("Action status","uncanny-automator"):(0,lX.__)("Trigger status","uncanny-automator"))} sort=${WG.STATUS} .values=${this.filters}></uap-f-page-logs-viewer-sort-heading> ${e?s1`<span>${(0,lX.__)("Notes","uncanny-automator")}</span>`:s3} <uap-f-page-logs-viewer-sort-heading label=${String((0,lX.__)("Completion date","uncanny-automator"))} sort="" alternate=${WG.OLDEST} .values=${this.filters}></uap-f-page-logs-viewer-sort-heading> <uap-f-page-logs-viewer-sort-heading label=${String((0,lX.__)("Recipe and status","uncanny-automator"))} sort=${WG.RECIPE} .values=${this.filters}></uap-f-page-logs-viewer-sort-heading> <uap-f-page-logs-viewer-sort-heading label=${String((0,lX.__)("User","uncanny-automator"))} sort=${WG.USER} .values=${this.filters}></uap-f-page-logs-viewer-sort-heading> </span> </uap-f-page-logs-viewer-row> `}templateDetail(e){return this.compact?s3:null===this.selection?s1`<uap-f-page-logs-viewer-state slot="detail" state=${WQ.EMPTY} message=${e}></uap-f-page-logs-viewer-state>`:s1` <uap-f-page-logs-viewer-run-detail slot="detail" .recipeID=${this.selection.recipeID} .runNumber=${this.selection.runNumber} .logID=${this.selection.logID} .focusNodeID=${this.selection.itemLogID} ></uap-f-page-logs-viewer-run-detail> `}handleFiltersChange(e){this.filters=W1.parse(e.detail).filters,this.page=1}handlePageChange(e){this.page=W0.parse(e.detail).page}handleRetry(){this.listController.refetch()}handleRowSelect(e){let{id:t}=W3.parse(e.detail),i=this.listController.result.data?.entries.find(e=>e.id===t);if(void 0!==i){if(KE(i,this.selection))return void this.renderRoot.querySelector("uap-f-page-logs-viewer-run-detail")?.showFocusNode();lw({element:this,eventName:WU,data:{tab:this.tab,selection:{recipeID:i.run.recipe_id,runNumber:i.run.run_number,logID:i.run.log_id,itemLogID:String(i.item.id)}},schema:WB,options:{bubbles:!0,composed:!0}})}}}KT([l0({attribute:!1})],KI.prototype,"selection",void 0),KT([H8({context:"uap-f-page-logs-viewer-table",subscribe:!0}),l2()],KI.prototype,"table",void 0),KT([H8({context:"uap-f-page-logs-viewer-compact",subscribe:!0}),l2()],KI.prototype,"compact",void 0),KT([l2()],KI.prototype,"filters",void 0),KT([l2()],KI.prototype,"page",void 0);let KD=class extends KI{get tab(){return d1.ACTION}getListOptions(e){return{queryKey:qd.list(e),queryFn:qu,staleTime:0,placeholderData:e=>e}}getCopy(e){return{summary:(0,lX.sprintf)((0,lX._n)("%s action","%s actions",e,"uncanny-automator"),e.toLocaleString()),searchLabel:(0,lX.__)("Search actions","uncanny-automator"),emptyMessage:(0,lX.__)("No actions found.","uncanny-automator"),errorMessage:(0,lX.__)("The actions couldn't be loaded.","uncanny-automator"),detailMessage:(0,lX.__)("Select an action to see its run here.","uncanny-automator")}}};KD=function(e,t,i,a){var n,o=arguments.length,r=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(r=(o<3?n(r):o>3?n(t,i,r):n(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r}([lJ("uap-f-page-logs-viewer-action-tab")],KD);let KA=rg({itemLogIDs:rp(ZC.shape.itemLogID).min(1)}).strict(),K$={RETRYING:"retrying",RESENT:ZT.RESENT,FAILED:ZT.FAILED,SKIPPED:ZT.SKIPPED},KO=rT(K$),KR=rg({itemLogID:ZC.shape.itemLogID,status:KO,message:oR(),reportedStatus:CQ.nullable()}).strict();function KM(e){if(e?.reportedStatus)return e.reportedStatus;switch(e?.status){case K$.RETRYING:return{code:K$.RETRYING,phase:Cq.ACTIVE,appearance:CK.NORMAL,label:(0,lX.__)("Retrying","uncanny-automator"),icon:"spinner-third",tone:CW.NEUTRAL};case K$.FAILED:return{code:K$.FAILED,phase:Cq.TERMINAL_FAILURE,appearance:CK.NORMAL,label:(0,lX.__)("Resend failed","uncanny-automator"),icon:"circle-exclamation",tone:CW.ERROR};default:return}}function KL(e){return(0,lX.sprintf)((0,lX._n)("%d prior attempt","%d prior attempts",e,"uncanny-automator"),e)}let KN=rg({itemLogID:oR().min(1)}).strict();rE(oR(),KR),CQ.extend({code:KO}).strict();var KP=a(1728),Kz=a.n(KP),KU=function(e,t,i,a){var n,o=arguments.length,r=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(r=(o<3?n(r):o>3?n(t,i,r):n(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r};let KF={[K$.RETRYING]:yQ.INFO,[K$.RESENT]:yQ.SUCCESS,[K$.FAILED]:yQ.ERROR,[K$.SKIPPED]:yQ.WARNING},Kj=class extends ld{constructor(){super(...arguments),this.skeleton=!1,this.busy=!1}static{this.styles=sf`${sm(Kz())}`}willUpdate(e){lQ(this,"entry",TM.optional(),e,"uap-f-page-logs-viewer-failed-detail"),lQ(this,"resend",KR.optional(),e,"uap-f-page-logs-viewer-failed-detail")}render(){return this.skeleton?this.templateSkeleton():this.entry?s1` <div class="detail"> <div class="detail__main"> <div class="detail__header"> <uap-d-integrations-icon class="detail__icon" code=${this.entry.item.integration} variant=${ST.CIRCLE} size=${SD.MD}></uap-d-integrations-icon> <div class="detail__heading"> <h2 class="detail__title">${this.entry.item.title}</h2> <uap-d-integrations-name class="detail__integration" code=${this.entry.item.integration} no-icon></uap-d-integrations-name> </div> ${this.templateStatus()} </div> <dl class="detail__facts"> ${this.templateFact((0,lX.__)("User","uncanny-automator"),s1`<uap-f-page-logs-viewer-user size=${Ky.MD} with-email linked .user=${this.entry.user}></uap-f-page-logs-viewer-user>`)} ${this.templateFact((0,lX.__)("Recipe","uncanny-automator"),s1`<uap-f-page-logs-viewer-link href=${this.entry.recipe.edit_url}>${this.entry.recipe.title}</uap-f-page-logs-viewer-link>`)} ${this.templateFact((0,lX.__)("Fail date","uncanny-automator"),this.entry.date)} ${this.templateFact((0,lX.__)("Run","uncanny-automator"),(0,lX.sprintf)((0,lX.__)("Run #%d","uncanny-automator"),this.entry.run.run_number))} ${this.entry.endpoint?this.templateFact((0,lX.__)("Endpoint","uncanny-automator"),this.entry.endpoint):s3} ${this.entry.http_status?this.templateFact((0,lX.__)("HTTP status","uncanny-automator"),this.entry.http_status):s3} ${this.entry.resent_count>0?this.templateFact((0,lX.__)("Resent before","uncanny-automator"),KL(this.entry.resent_count)):s3} </dl> <div class="detail__why"> <h3 class="detail__label">${(0,lX.__)("Why it failed","uncanny-automator")}</h3> <uas-alert class="detail__reason" type=${yQ.ERROR}>${this.entry.detail}</uas-alert> </div> <div class="detail__resend-status" role="status">${this.templateResendMessage()}</div> <div class="detail__actions"> ${this.templateResend(this.entry)} <uas-button class="detail__view-run" color=${pm.SECONDARY} @click=${this.handleViewRun}>${(0,lX.__)("View recipe run","uncanny-automator")}</uas-button> </div> </div> <div class="detail__guidance"> <uas-icon class="detail__guidance-icon" code="circle-info" aria-hidden="true"></uas-icon> <p class="detail__guidance-text"> ${(0,lX.__)("Resend replays the original API request. It doesn't re-run the recipe or re-resolve tokens, and it's best-effort. It can repeat the action's effect (a duplicate email or contact), and some actions can't be resent if the request wasn't logged or credentials changed.","uncanny-automator")} <strong>${(0,lX.__)("Try a single resend before resending in bulk.","uncanny-automator")}</strong> <strong>${(0,lX.__)("Keep this tab open while finding or resending.","uncanny-automator")}</strong> </p> </div> </div> `:s3}templateStatus(){let e=KM(this.resend);return e?s1`<uap-f-recipe-log-status class="detail__status" .status=${e}></uap-f-recipe-log-status>`:s3}templateSkeleton(){return s1` <div class="detail" data-test="failed-detail-skeleton" aria-busy="true"> <div class="detail__main"> <div class="detail__header"> <uas-skeleton class="detail__icon" variant=${ve.CIRCLE} width="32px" height="32px"></uas-skeleton> <div class="detail__heading"> <uas-skeleton class="detail__placeholder" width="60%"></uas-skeleton> <uas-skeleton class="detail__placeholder" width="30%"></uas-skeleton> </div> </div> <div class="detail__facts"> ${[0,1,2,3].map(()=>s1` <div> <uas-skeleton class="detail__placeholder" width="30%"></uas-skeleton> <uas-skeleton class="detail__placeholder" width="60%"></uas-skeleton> </div> `)} </div> <div class="detail__why"> <uas-skeleton class="detail__placeholder" width="96px"></uas-skeleton> <uas-skeleton class="detail__placeholder" variant=${ve.RECTANGLE} width="100%" height="54px"></uas-skeleton> </div> <div class="detail__actions"> <uas-skeleton variant=${ve.RECTANGLE} width="136px" height="34px"></uas-skeleton> <uas-skeleton variant=${ve.RECTANGLE} width="144px" height="34px"></uas-skeleton> </div> </div> </div> `}templateFact(e,t){return s1` <div class="detail__fact"> <dt class="detail__label">${e}</dt> <dd class="detail__value">${t}</dd> </div> `}templateResendMessage(){return this.resend?.message?s1`<uas-alert class="detail__resend-message" type=${KF[this.resend.status]}>${this.resend.message}</uas-alert>`:s3}templateResend(e){var t;if(!e.can_resend)return s3;let i=(t=this.resend,e.resent_count>0||K$.RESENT===t?.status);return s1` <uas-button class="detail__resend" color=${i?pm.SECONDARY:pm.PRIMARY} ?filled=${!i} ?loading=${K$.RETRYING===this.resend?.status} ?disabled=${this.busy} @click=${this.handleResend} >${i?(0,lX.__)("Resend again","uncanny-automator"):(0,lX.__)("Resend action","uncanny-automator")}</uas-button> `}handleResend(){this.entry&&lw({element:this,eventName:"uap.f.page-logs-viewer.failed-resend",data:{itemLogID:this.entry.item_log_id},schema:KN,options:{bubbles:!0,composed:!0}})}handleViewRun(){this.entry&&lw({element:this,eventName:WU,data:{tab:d1.RECIPE,selection:{recipeID:this.entry.run.recipe_id,runNumber:this.entry.run.run_number,logID:this.entry.run.log_id}},schema:WB,options:{bubbles:!0,composed:!0}})}};KU([l0({type:Boolean})],Kj.prototype,"skeleton",void 0),KU([l0({attribute:!1})],Kj.prototype,"entry",void 0),KU([l0({attribute:!1})],Kj.prototype,"resend",void 0),KU([l0({type:Boolean})],Kj.prototype,"busy",void 0),Kj=KU([lJ("uap-f-page-logs-viewer-failed-detail")],Kj);var KB=a(1537),KH=a.n(KB),KV=function(e,t,i,a){var n,o=arguments.length,r=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(r=(o<3?n(r):o>3?n(t,i,r):n(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r};let Kq=[WK.RECIPE,WK.USER,WK.INTEGRATION,WK.ENDPOINT,WK.FAIL_DATE,WK.SORT],KZ=class extends ld{constructor(){super(...arguments),this.selection=null,this.table=!1,this.compact=!1,this.filters=GD,this.page=1,this.checkedIDs=[],this.checkedEntries={},this.isSelectingAll=!1,this.isStopping=!1,this.resends={},this.walkedEntries=[],this.isWalking=!1,this.failedController=new vE(this,()=>qy(G$(this.filters,this.page))),this.linkedController=new vE(this,()=>{var e;return e=this.linkedItemLogID,{queryKey:qh.item(e),queryFn:qf,staleTime:0,enabled:void 0!==e,placeholderData:e=>e}})}static{this.styles=sf`${sm(KH())}`}get linkedItemLogID(){if(!this.failedController.result.isPending)return function(e,t){let i=TD.safeParse(t?.itemLogID);if(!(!i.success||e.some(e=>e.item_log_id===i.data)))return i.data}([...this.entries,...this.walkedEntries],this.selection)}get isReadingLinked(){var e,t,i;let{data:a,isError:n,isPlaceholderData:o,isSuccess:r}=this.linkedController.result;return e=this.linkedItemLogID,t=a?.entries,i=n||r&&!o,void 0!==e&&!i&&!(t??[]).some(t=>t.item_log_id===e)}get entries(){return this.failedController.result.data?.entries??[]}get openEntry(){if((!this.compact||null!==this.selection)&&!this.isReadingLinked)return function(e,t,i=[]){if(null===t)return e[0];let a=e.find(e=>void 0===t.itemLogID?e.run.log_id===t.logID:e.item_log_id===t.itemLogID),n=void 0===t.itemLogID?void 0:i.find(e=>e.item_log_id===t.itemLogID);return a??n??e[0]}([...this.entries,...this.walkedEntries],this.selection,this.linkedController.result.data?.entries)}get resendableEntries(){var e,t,i;return e=this.checkedIDs,t=Object.values(this.checkedEntries),i=this.resends,t.filter(t=>{let a=i[t.item_log_id]?.status;return e.includes(t.id)&&t.can_resend&&K$.RETRYING!==a&&K$.RESENT!==a})}willUpdate(e){lQ(this,"selection",Wj.nullable(),e,"uap-f-page-logs-viewer-failed-tab",null),this.page=GM(this.page,this.failedController.result.data?.total)}render(){let{data:e,isError:t}=this.failedController.result,i=GO(e?.entries.length,t),a=this.entries.filter(e=>e.can_resend).map(e=>e.id),n=this.openEntry;return s1` <uap-f-page-logs-viewer-layout ?list-only=${this.compact} @uap.f.page-logs-viewer.filters-change=${this.handleFiltersChange}> <uap-f-page-logs-viewer-filter-bar slot="filters" search-label=${String((0,lX.__)("Search failed actions","uncanny-automator"))} .controls=${Kq} .values=${this.filters} ></uap-f-page-logs-viewer-filter-bar> <uap-f-page-logs-viewer-list slot="list" state=${i} summary=${function(e,t,i,a){if(t.length<2)return(0,lX.sprintf)((0,lX._n)("%d needs attention","%d need attention",e,"uncanny-automator"),e);let n=t.map(e=>i[e]?.status),o=e=>n.filter(t=>t===e).length,r=o(K$.RESENT),s=o(K$.FAILED),l=o(K$.SKIPPED);return a?(0,lX.sprintf)((0,lX.__)("Retrying %1$d of %2$d","uncanny-automator"),Math.min(r+s+l+1,t.length),t.length):(0,lX.sprintf)((0,lX.__)("Resent %1$d, failed %2$d, skipped %3$d.","uncanny-automator"),r,s,l)}(e?.total??0,this.walkedEntries.map(e=>e.item_log_id),this.resends,this.isWalking)} empty-message=${String((0,lX.__)("No failed actions need attention.","uncanny-automator"))} error-message=${String((0,lX.__)("The failed actions could not be loaded.","uncanny-automator"))} page=${this.page} per-page=${20} total=${e?.total??0} selectable .rowIDs=${a} .checkedIDs=${this.checkedIDs} select-all-total=${(e?.total??0)>this.entries.length?e?.total??0:0} ?selecting-all=${this.isSelectingAll} @uap.f.page-logs-viewer.select-all-matching=${this.handleSelectAll} @uap.f.page-logs-viewer.row-select=${this.handleRowSelect} @uap.f.page-logs-viewer.checked-change=${this.handleCheckedChange} @uap.f.page-logs-viewer.page-change=${this.handlePageChange} @uap.f.page-logs-viewer.retry=${this.handleRetry} > ${this.table?this.templateHeadings():s3} ${$A(this.entries,e=>e.id,e=>this.templateRow(e,e===n))} <uas-button slot="bulk-actions" size=${py.SM} filled ?disabled=${this.isWalking||0===this.resendableEntries.length} @click=${this.handleBulkResend}>${(0,lX.__)("Retry","uncanny-automator")}</uas-button> ${this.templateWalkControls()} </uap-f-page-logs-viewer-list> ${this.compact?s3:this.templateDetail(n,this.isReadingLinked?WQ.LOADING:i)} </uap-f-page-logs-viewer-layout> ${this.compact?this.templateDialog(n):s3} `}templateRow(e,t){return s1` <uap-f-page-logs-viewer-row row-id=${e.id} ?active=${t} ?with-details=${this.compact} ?dense=${this.table} selectable ?check-disabled=${!e.can_resend} check-label=${String((0,lX.sprintf)((0,lX.__)("Select %1$s in %2$s","uncanny-automator"),e.item.title,e.recipe.title))} ?checked=${this.checkedIDs.includes(e.id)} > ${this.table?this.templateCells(e):this.templateEntry(e)} </uap-f-page-logs-viewer-row> `}templateEntry(e){let t=this.resends[e.item_log_id],i=KM(t);return s1` <div class="failed-row"> <div class="failed-row__top"> <uap-d-integrations-icon-stack class="failed-row__integration" .codes=${[e.item.integration]}></uap-d-integrations-icon-stack> <time class="failed-row__date" datetime=${e.date_gmt} title=${e.date}>${e.date_short}</time> </div> <div class="failed-row__action">${e.item.title}</div> <div class="failed-row__recipe">${e.recipe.title}</div> ${i?s1`<uap-f-recipe-log-status .status=${i}></uap-f-recipe-log-status>`:s3} <div class="failed-row__reason"> <span class="failed-row__reason-text" title=${e.reason}>${e.reason}</span> ${e.http_status?s1`<uas-chip class="failed-row__http" label=${e.http_status} size=${b6.SM}></uas-chip>`:s3} </div> ${e.endpoint?s1`<div class="failed-row__endpoint">${e.endpoint}</div>`:s3} <uap-f-page-logs-viewer-user with-email .user=${e.user}></uap-f-page-logs-viewer-user> ${e.resent_count>0?s1`<div class="failed-row__attempts">${KL(e.resent_count)}</div>`:s3} ${t?.message?s1`<div class="failed-row__message">${t.message}</div>`:s3} </div> `}templateCells(e){let t=this.resends[e.item_log_id],i=KM(t);return s1` <div class="line"> <div class="line__main"> <uap-d-integrations-icon-stack class="line__integration" .codes=${[e.item.integration]}></uap-d-integrations-icon-stack> <div class="line__stack"> <span class="line__title" title=${e.item.title}>${e.item.title}</span> ${i?s1`<uap-f-recipe-log-status .status=${i}></uap-f-recipe-log-status>`:s3} ${t?.message?s1`<span class="line__more">${t.message}</span>`:s3} </div> </div> <span class="line__recipe" title=${e.recipe.title}><uap-f-page-logs-viewer-link href=${e.recipe.edit_url}>${e.recipe.title}</uap-f-page-logs-viewer-link></span> <div class="line__stack"> <span class="line__reason"> <span class="line__reason-text" title=${e.reason}>${e.reason}</span> ${e.http_status?s1`<uas-chip class="line__http" label=${e.http_status} size=${b6.SM}></uas-chip>`:s3} </span> ${e.endpoint?s1`<span class="line__endpoint">${e.endpoint}</span>`:s3} </div> <uap-f-page-logs-viewer-user class="line__user" size=${Ky.MD} with-email linked .user=${e.user}></uap-f-page-logs-viewer-user> <div class="line__stack"> <time class="line__date" datetime=${e.date_gmt}>${e.date}</time> ${e.resent_count>0?s1`<span class="line__more">${KL(e.resent_count)}</span>`:s3} </div> </div> `}templateHeadings(){return s1` <uap-f-page-logs-viewer-row heading selectable with-details> <div class="line line--headings"> <span>${(0,lX.__)("Action","uncanny-automator")}</span> <uap-f-page-logs-viewer-sort-heading label=${String((0,lX.__)("Recipe","uncanny-automator"))} sort=${WG.RECIPE} .values=${this.filters}></uap-f-page-logs-viewer-sort-heading> <span>${(0,lX.__)("Why it failed","uncanny-automator")}</span> <uap-f-page-logs-viewer-sort-heading label=${String((0,lX.__)("User","uncanny-automator"))} sort=${WG.USER} .values=${this.filters}></uap-f-page-logs-viewer-sort-heading> <uap-f-page-logs-viewer-sort-heading label=${String((0,lX.__)("Fail date","uncanny-automator"))} sort="" alternate=${WG.OLDEST} .values=${this.filters}></uap-f-page-logs-viewer-sort-heading> </div> </uap-f-page-logs-viewer-row> `}templateDetail(e,t){return e?s1`<div slot="detail">${this.templateAction(e)}</div>`:WQ.LOADING===t?s1`<uap-f-page-logs-viewer-failed-detail slot="detail" skeleton></uap-f-page-logs-viewer-failed-detail>`:s1` <uap-f-page-logs-viewer-state slot="detail" state=${WQ.EMPTY} message=${String((0,lX.__)("Select a failed action to see why it failed.","uncanny-automator"))} ></uap-f-page-logs-viewer-state> `}templateWalkControls(){return!this.isWalking||this.walkedEntries.length<2?s3:s1` <uas-button slot="summary-action" color=${pm.SECONDARY} size=${py.SM} ?disabled=${this.isStopping} @click=${this.handleStop}>${(0,lX.__)("Stop","uncanny-automator")}</uas-button> <uas-alert slot="notice" class="failed-notice" type=${yQ.WARNING} heading=${String((0,lX.__)("Keep this tab open while finding or resending.","uncanny-automator"))}></uas-alert> `}templateAction(e){return s1` <uap-f-page-logs-viewer-failed-detail ?busy=${this.isWalking} .entry=${e} .resend=${this.resends[e.item_log_id]} @uap.f.page-logs-viewer.failed-resend=${this.handleResend} ></uap-f-page-logs-viewer-failed-detail> `}templateDialog(e){return e?s1` <uas-dialog size="md" open no-header no-footer no-padding @uas.dialog.close=${this.handleDialogClose} > ${this.templateAction(e)} </uas-dialog> `:s3}handleDialogClose(){lw({element:this,eventName:WU,data:{tab:d1.FAILED_ACTIONS,selection:null},schema:WB,options:{bubbles:!0,composed:!0}})}handleFiltersChange(e){this.filters=W1.parse(e.detail).filters,this.setChecked([],[]),this.showPage(1)}handlePageChange(e){this.showPage(W0.parse(e.detail).page)}showPage(e){this.page=e,this.isWalking||(this.walkedEntries=[])}handleRetry(){this.failedController.refetch()}handleCheckedChange(e){this.setChecked(W6.parse(e.detail).ids,this.entries)}setChecked(e,t){let i={...this.checkedEntries,...Object.fromEntries(t.map(e=>[e.id,e]))};this.checkedIDs=e,this.checkedEntries=Object.fromEntries(e.flatMap(e=>i[e]?[[e,i[e]]]:[]))}async handleSelectAll(){this.isSelectingAll=!0;try{let e=(await async function(e){let t=[],i=1,a=!1;for(;!a;){let n=await qg({...e,page:i,per_page:100});t.push(...n.entries),i+=1,a=0===n.entries.length||t.length>=n.total}return t}(G$(this.filters,1))).filter(e=>e.can_resend);this.setChecked(e.map(e=>e.id),e)}catch(e){ly({message:(0,b4.escapeHTML)(q$(e)??(0,lX.__)("Could not select every failed action.","uncanny-automator")),color:lm.ERROR,iconID:"xmark",duration:5e3})}finally{this.isSelectingAll=!1}}handleStop(){this.isStopping=!0}handleRowSelect(e){let{id:t}=W3.parse(e.detail),i=this.entries.find(e=>e.id===t);i&&this.open(i)}open(e){lw({element:this,eventName:WU,data:{tab:d1.FAILED_ACTIONS,selection:{recipeID:e.run.recipe_id,runNumber:e.run.run_number,logID:e.run.log_id,itemLogID:e.item_log_id}},schema:WB,options:{bubbles:!0,composed:!0}})}handleResend(e){let{itemLogID:t}=KN.parse(e.detail),i=this.openEntry;i?.item_log_id===t&&(this.selection?.itemLogID!==t&&this.open(i),this.walk([i]))}handleBulkResend(){let e=this.resendableEntries;this.isWalking||0===e.length||(this.renderRoot.querySelector("uap-f-page-logs-viewer-list")?.focus(),this.setChecked([],[]),this.walk(e))}async walk(e){if(!this.isWalking){this.isWalking=!0,this.isStopping=!1,this.walkedEntries=e;try{await async function(e,t,i=()=>!0){let a=KA.parse(e),n=[];for(let e of a.itemLogIDs){if(!i())break;t({itemLogID:e,status:K$.RETRYING,message:"",reportedStatus:null});let a=await async function(e){try{let{outcome:t,message:i,status:a}=await ZO({itemLogID:e});return{itemLogID:e,status:t,message:i,reportedStatus:a}}catch(i){let t;return{itemLogID:e,status:K$.FAILED,message:(t=q$(i))||(i instanceof Error&&i.message?i.message:(0,lX.__)("An unexpected error occurred.","uncanny-automator")),reportedStatus:null}}}(e);t(a),n.push(a)}return await Promise.all([dW.invalidateQueries({queryKey:qh.all()}),dW.invalidateQueries({queryKey:qb()}),dW.invalidateQueries({queryKey:["recipe-log"]})]),n}({itemLogIDs:e.map(e=>e.item_log_id)},e=>{this.resends={...this.resends,[e.itemLogID]:e}},()=>!this.isStopping)}finally{this.isWalking=!1,this.isStopping=!1}}}};function KW(e,t){let i=d0.safeParse(e.tab);if(!i.success)return{tab:d0.safeParse(new URLSearchParams(t).get("tab")).data??d1.RECIPE,selection:null};return{tab:i.data,selection:WH.safeParse(e).data??null}}function KG(e){return{recipeID:e.run.recipe_id,runNumber:e.run.run_number,logID:e.run.log_id}}function KK(e,t){return e.find(({run:e})=>e.recipe_id===t.recipeID&&e.run_number===t.runNumber&&e.log_id===t.logID)}KV([l0({attribute:!1})],KZ.prototype,"selection",void 0),KV([H8({context:"uap-f-page-logs-viewer-table",subscribe:!0}),l2()],KZ.prototype,"table",void 0),KV([H8({context:"uap-f-page-logs-viewer-compact",subscribe:!0}),l2()],KZ.prototype,"compact",void 0),KV([l2()],KZ.prototype,"filters",void 0),KV([l2()],KZ.prototype,"page",void 0),KV([l2()],KZ.prototype,"checkedIDs",void 0),KV([l2()],KZ.prototype,"checkedEntries",void 0),KV([l2()],KZ.prototype,"isSelectingAll",void 0),KV([l2()],KZ.prototype,"isStopping",void 0),KV([l2()],KZ.prototype,"resends",void 0),KV([l2()],KZ.prototype,"walkedEntries",void 0),KV([l2()],KZ.prototype,"isWalking",void 0),KZ=KV([lJ("uap-f-page-logs-viewer-failed-tab")],KZ);var KY=a(4880),KQ=a.n(KY),KX=function(e,t,i,a){var n,o=arguments.length,r=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(r=(o<3?n(r):o>3?n(t,i,r):n(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r};let KJ=[WK.RECIPE,WK.USER,WK.STATUS,WK.COMPLETION_DATE,WK.SORT],K1=class extends ld{constructor(){var e;super(...arguments),this.selection=null,this.table=!1,this.compact=!1,this.filters=GD,this.linkedRecipeID=(e=window.location.search,WV.safeParse(new URLSearchParams(e).get("recipe_id")).data??""),this.page=1,this.checkedIDs=[],this.isConfirmingDelete=!1,this.deleteRuns=new vm(this,qD()),this.filtersController=new vE(this,qv),this.runsController=new vE(this,()=>{var e;return{...(e=G$(this.filters,this.page),{queryKey:qw.list(e),queryFn:qx,staleTime:0,placeholderData:e=>e}),enabled:""===this.linkedRecipeID}})}static{this.styles=sf`${sm(KQ())}`}willUpdate(e){lQ(this,"selection",Wj.nullable(),e,"uap-f-page-logs-viewer-recipe-tab",null),this.settleLinkedRecipe(),this.page=GM(this.page,this.runsController.result.data?.total)}settleLinkedRecipe(){""===this.linkedRecipeID||this.filtersController.result.isPending||(this.filtersController.result.data?.available===!0&&(this.filters={...this.filters,recipe_id:this.linkedRecipeID}),this.linkedRecipeID="")}get entries(){return this.runsController.result.data?.entries??[]}get deletableEntries(){return this.entries.filter(e=>e.can_delete&&this.checkedIDs.includes(e.id))}get shownRun(){if(this.compact)return;if(this.selection)return this.selection;let[e]=this.entries;return e?KG(e):void 0}render(){let{data:e,isError:t}=this.runsController.result,i=e?.total??0,a=this.entries.filter(e=>e.can_delete).map(e=>e.id);return s1` <uap-f-page-logs-viewer-layout ?list-only=${this.compact} @uap.f.page-logs-viewer.filters-change=${this.handleFiltersChange}> <uap-f-page-logs-viewer-filter-bar slot="filters" search-label=${String((0,lX.__)("Search recipe runs...","uncanny-automator"))} .controls=${KJ} .values=${this.filters} ></uap-f-page-logs-viewer-filter-bar> <uap-f-page-logs-viewer-list slot="list" state=${GO(e?.entries.length,t)} summary=${String((0,lX.sprintf)((0,lX._n)("%s recipe run","%s recipe runs",i,"uncanny-automator"),i.toLocaleString()))} empty-message=${String((0,lX.__)("No recipe runs found.","uncanny-automator"))} error-message=${String((0,lX.__)("Could not load the recipe runs.","uncanny-automator"))} page=${this.page} per-page=${20} total=${i} selectable .rowIDs=${a} .checkedIDs=${this.checkedIDs.filter(e=>a.includes(e))} @uap.f.page-logs-viewer.checked-change=${this.handleCheckedChange} @uap.f.page-logs-viewer.row-select=${this.handleRowSelect} @uap.f.page-logs-viewer.page-change=${this.handlePageChange} @uap.f.page-logs-viewer.retry=${this.handleRetry} > ${this.table?this.templateHeadings():s3} ${$A(this.entries,e=>e.id,e=>this.templateRow(e))} <uas-button slot="bulk-actions" color=${pm.DANGER} size=${py.SM} ?disabled=${0===this.deletableEntries.length} @click=${this.handleDeleteAsk}> ${(0,lX.__)("Delete","uncanny-automator")} </uas-button> </uap-f-page-logs-viewer-list> ${this.templateDetail()} </uap-f-page-logs-viewer-layout> ${this.isConfirmingDelete?this.templateDeleteDialog():s3} `}templateRow(e){let t=this.shownRun;return s1` <uap-f-page-logs-viewer-row row-id=${e.id} selectable ?with-details=${this.compact} ?dense=${this.table} ?check-disabled=${!e.can_delete} ?checked=${this.checkedIDs.includes(e.id)} check-label=${String((0,lX.sprintf)((0,lX.__)("Select the run of %s","uncanny-automator"),e.recipe.title))} ?active=${void 0!==t&&void 0!==KK([e],t)} > ${this.table?this.templateCells(e):this.templateEntry(e)} </uap-f-page-logs-viewer-row> `}templateEntry(e){return s1` <div class="entry"> <div class="entry__top"> <uap-d-integrations-icon-stack class="entry__integrations" .codes=${e.integrations}></uap-d-integrations-icon-stack> <time class="entry__date" datetime=${e.date_gmt} title=${e.date}>${e.date_short}</time> </div> <div class="entry__recipe">${this.getRecipeName(e)}</div> <div class="entry__status"> <uap-f-recipe-log-status .status=${e.status}></uap-f-recipe-log-status> ${this.templateReplay(e)} </div> <uap-f-page-logs-viewer-user .user=${e.user}></uap-f-page-logs-viewer-user> </div> `}getRecipeName(e){return""!==e.recipe.title?e.recipe.title:(0,lX.sprintf)((0,lX.__)("Recipe #%d","uncanny-automator"),e.recipe.id)}templateReplay(e){return e.is_replay?s1`<uas-chip class="replay" label=${String((0,lX.__)("Replayed","uncanny-automator"))} icon="clock-rotate-left" size=${b6.SM}></uas-chip>`:s3}templateCells(e){return s1` <div class="line"> <div class="line__main"> <span class="line__title" title=${this.getRecipeName(e)}> <uap-f-page-logs-viewer-link href=${e.recipe.edit_url}>${this.getRecipeName(e)}</uap-f-page-logs-viewer-link> </span> <uap-d-integrations-icon-stack class="line__integrations" .codes=${e.integrations}></uap-d-integrations-icon-stack> </div> <span class="line__status"> <uap-f-recipe-log-status .status=${e.status}></uap-f-recipe-log-status> ${this.templateReplay(e)} </span> <span class="line__stack"> <time class="line__date" datetime=${e.date_gmt}>${e.date}</time> ${e.date_relative?s1`<span class="line__ago">${e.date_relative}</span>`:s3} </span> <uap-f-page-logs-viewer-user class="line__user" size=${Ky.MD} with-email linked .user=${e.user}></uap-f-page-logs-viewer-user> </div> `}templateHeadings(){return s1` <uap-f-page-logs-viewer-row heading selectable with-details> <div class="line line--headings"> <uap-f-page-logs-viewer-sort-heading label=${String((0,lX.__)("Recipe","uncanny-automator"))} sort=${WG.RECIPE} .values=${this.filters}></uap-f-page-logs-viewer-sort-heading> <uap-f-page-logs-viewer-sort-heading label=${String((0,lX.__)("Status","uncanny-automator"))} sort=${WG.STATUS} .values=${this.filters}></uap-f-page-logs-viewer-sort-heading> <uap-f-page-logs-viewer-sort-heading label=${String((0,lX.__)("Completion date","uncanny-automator"))} sort="" alternate=${WG.OLDEST} .values=${this.filters}></uap-f-page-logs-viewer-sort-heading> <uap-f-page-logs-viewer-sort-heading label=${String((0,lX.__)("User","uncanny-automator"))} sort=${WG.USER} .values=${this.filters}></uap-f-page-logs-viewer-sort-heading> </div> </uap-f-page-logs-viewer-row> `}templateDeleteDialog(){let e=this.deletableEntries.length;return s1` <uas-dialog size="sm" heading=${String((0,lX.sprintf)((0,lX._n)("Delete %d recipe run?","Delete %d recipe runs?",e,"uncanny-automator"),e))} open @uas.dialog.close=${this.handleDeleteCancel} > ${(0,lX.__)("This can't be undone. Any scheduled actions will be canceled.","uncanny-automator")} <uas-button slot="primary-action" color=${pm.DANGER} ?loading=${this.deleteRuns.result.isPending} @click=${this.handleDeleteConfirm}> ${(0,lX.__)("Delete","uncanny-automator")} </uas-button> <uas-button slot="secondary-action" color=${pm.SECONDARY} @click=${this.handleDeleteCancel}> ${(0,lX.__)("Cancel","uncanny-automator")} </uas-button> </uas-dialog> `}templateDetail(){let{data:e,isError:t}=this.runsController.result,i=this.shownRun;return this.compact?s3:i||WQ.LOADING!==GO(e?.entries.length,t)?i?s1`<uap-f-page-logs-viewer-run-detail slot="detail" .recipeID=${i.recipeID} .runNumber=${i.runNumber} .logID=${i.logID} .focusNodeID=${i.itemLogID} .canDelete=${KK(this.entries,i)?.can_delete??!0} ></uap-f-page-logs-viewer-run-detail>`:s1`<uap-f-page-logs-viewer-state slot="detail" state=${WQ.EMPTY} message=${String((0,lX.__)("No recipe run to show.","uncanny-automator"))} ></uap-f-page-logs-viewer-state>`:s1`<uap-f-page-logs-viewer-run-detail slot="detail" skeleton></uap-f-page-logs-viewer-run-detail>`}handleCheckedChange(e){this.checkedIDs=W6.parse(e.detail).ids}handleDeleteAsk(){this.isConfirmingDelete=!0}handleDeleteCancel(){this.isConfirmingDelete=!1}async handleDeleteConfirm(){try{let{deleted_log_ids:e}=await this.deleteRuns.mutateAsync({log_ids:this.deletableEntries.map(e=>e.run.log_id)});ly({message:(0,b4.escapeHTML)(String((0,lX.sprintf)((0,lX._n)("%d recipe run deleted.","%d recipe runs deleted.",e.length,"uncanny-automator"),e.length))),color:lm.DEFAULT,iconID:"check",duration:4e3}),this.selection&&e.includes(this.selection.logID)&&this.showNoRun(),this.checkedIDs=[]}catch(e){ly({message:(0,b4.escapeHTML)(q$(e)??(0,lX.__)("Could not delete the recipe runs.","uncanny-automator")),color:lm.ERROR,iconID:"xmark",duration:5e3})}this.isConfirmingDelete=!1}showNoRun(){lw({element:this,eventName:WU,data:{tab:d1.RECIPE,selection:null},schema:WB,options:{bubbles:!0,composed:!0}})}handleFiltersChange(e){this.filters=e.detail.filters,this.page=1,this.checkedIDs=[]}handlePageChange(e){this.page=e.detail.page,this.checkedIDs=[]}handleRetry(){this.runsController.refetch()}handleRowSelect(e){let t=this.entries.find(({id:t})=>t===e.detail.id);t&&lw({element:this,eventName:WU,data:{tab:d1.RECIPE,selection:KG(t)},schema:WB,options:{bubbles:!0,composed:!0}})}};KX([l0({attribute:!1})],K1.prototype,"selection",void 0),KX([H8({context:"uap-f-page-logs-viewer-table",subscribe:!0}),l2()],K1.prototype,"table",void 0),KX([H8({context:"uap-f-page-logs-viewer-compact",subscribe:!0}),l2()],K1.prototype,"compact",void 0),KX([l2()],K1.prototype,"filters",void 0),KX([l2()],K1.prototype,"linkedRecipeID",void 0),KX([l2()],K1.prototype,"page",void 0),KX([l2()],K1.prototype,"checkedIDs",void 0),KX([l2()],K1.prototype,"isConfirmingDelete",void 0),K1=KX([lJ("uap-f-page-logs-viewer-recipe-tab")],K1);let K0=class extends KI{get tab(){return d1.TRIGGER}getListOptions(e){return{queryKey:qE.list(e),queryFn:qS,staleTime:0,placeholderData:e=>e}}getCopy(e){return{summary:(0,lX.sprintf)((0,lX._n)("%s trigger","%s triggers",e,"uncanny-automator"),e.toLocaleString()),searchLabel:(0,lX.__)("Search triggers","uncanny-automator"),emptyMessage:(0,lX.__)("No triggers found.","uncanny-automator"),errorMessage:(0,lX.__)("The triggers couldn't be loaded.","uncanny-automator"),detailMessage:(0,lX.__)("Select a trigger to see its run here.","uncanny-automator")}}};K0=function(e,t,i,a){var n,o=arguments.length,r=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(r=(o<3?n(r):o>3?n(t,i,r):n(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r}([lJ("uap-f-page-logs-viewer-trigger-tab")],K0);var K2=a(4075),K3=a.n(K2),K4=function(e,t,i,a){var n,o=arguments.length,r=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(r=(o<3?n(r):o>3?n(t,i,r):n(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r};let K6={[WL.NO_SPLIT]:"list",[WL.SPLIT]:"sidebar"},K5=class extends ld{constructor(){super(...arguments),this.view=WP}static{this.styles=sf`${sm(K3())}`}willUpdate(e){lQ(this,"view",WN,e,"uap-f-page-logs-viewer-view-switcher",WP)}render(){return s1` <uas-button-dropdown class="switcher" placement="bottom-end"> <uas-button slot="trigger" class="switcher__trigger" color=${pm.TRANSPARENT} size=${py.SM} aria-label=${String((0,lX.__)("Change view","uncanny-automator"))}> <uas-icon code=${K6[this.view]}></uas-icon> <uas-icon class="switcher__caret" code="angle-down"></uas-icon> </uas-button> ${this.templateOption(WL.NO_SPLIT,(0,lX.__)("No split","uncanny-automator"))} ${this.templateOption(WL.SPLIT,(0,lX.__)("Vertical split","uncanny-automator"))} </uas-button-dropdown> `}templateOption(e,t){let i=e===this.view;return s1` <uas-button class="switcher__option" data-view=${e} aria-current=${i?"true":"false"} @click=${()=>this.pick(e)}> <span class="switcher__option-content"> <uas-icon class=${i?"switcher__check":"switcher__check switcher__check--off"} code="check"></uas-icon> ${t} </span> </uas-button> `}pick(e){e!==this.view&&lw({element:this,eventName:"uap.f.page-logs-viewer.view-change",data:{view:e},schema:W2,options:{bubbles:!0,composed:!0}})}};K4([l0({type:String})],K5.prototype,"view",void 0),K5=K4([lJ("uap-f-page-logs-viewer-view-switcher")],K5);var K8=a(14),K7=a.n(K8),K9=function(e,t,i,a){var n,o=arguments.length,r=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(r=(o<3?n(r):o>3?n(t,i,r):n(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r};let Ye=[{id:"logs-viewer-tab",path:`${Nl}/:tab`,component:()=>s1``},{id:"logs-viewer-run",path:`${Nl}/:tab/recipe/:recipeID/run/:runNumber/log/:logID`,component:()=>s1``},{id:"logs-viewer-item",path:`${Nl}/:tab/recipe/:recipeID/run/:runNumber/log/:logID/item/:itemLogID`,component:()=>s1``}],Yt=class extends ld{constructor(){super(...arguments),this.showAiActivity=!1,this.showAppEvents=!1,this.route=KW({},window.location.search),this.router=new _P(this,Ye,{onParamsChange:e=>this.handleRouteChange(e)}),this.view=function(){try{return WN.safeParse(window.localStorage.getItem(Wz)).data??WP}catch{return WP}}(),this.width=window.innerWidth,this.isNarrow=this.width<=860,this.compact=this.isNarrow||WL.NO_SPLIT===this.view,this.table=WL.NO_SPLIT===this.view&&this.width>=1e3,this.size=new vp(this,{onChange:({width:e})=>{e>0&&(this.width=e,this.applyLayout(),this.openRunInDialog())}}),this.isUnderLogDialog=!1,this.failedCountController=new vE(this,qy(GA))}static{this.styles=sf`${sm(K7())}`}willUpdate(){var e,t,i;let a,n,o=(e=this.route,t=this.showAiActivity,i=this.showAppEvents,a=d1.AI_ACTIVITY===e.tab&&!t,n=d1.APP_EVENTS===e.tab&&!i,a||n?{tab:d1.RECIPE,selection:null}:e);o!==this.route&&(this.route=o,window.location.hash.startsWith(`#${Nl}/`)&&this.show(o,!0))}firstUpdated(){this.openRunInDialog()}render(){return s1` <div class="viewer" @uap.f.page-logs-viewer.navigate=${this.handleNavigate} @uap.d.recipe-log.deleted=${this.handleRunDeleted}> <div class="viewer__header"> <uas-tabs class="viewer__tabs" value=${this.route.tab} @uas.tabs.change=${this.handleTabChange}> <uas-tab value=${d1.RECIPE}>${(0,lX.__)("Recipe","uncanny-automator")}</uas-tab> <uas-tab value=${d1.TRIGGER}>${(0,lX.__)("Trigger","uncanny-automator")}</uas-tab> <uas-tab value=${d1.ACTION}>${(0,lX.__)("Action","uncanny-automator")}</uas-tab> <uas-tab value=${d1.FAILED_ACTIONS}> ${(0,lX.__)("Failed actions","uncanny-automator")} ${this.templateFailedCount()} </uas-tab> ${this.showAppEvents?s1`<uas-tab value=${d1.APP_EVENTS}>${(0,lX.__)("App events","uncanny-automator")}</uas-tab>`:s3} ${this.showAiActivity?s1`<uas-tab value=${d1.AI_ACTIVITY}>${(0,lX.__)("AI activity","uncanny-automator")}</uas-tab>`:s3} </uas-tabs> ${this.templateViewSwitcher()} </div> <div class="viewer__panel">${Gm(this.templatePanel())}</div> </div> `}templateViewSwitcher(){return this.isNarrow||d1.APP_EVENTS===this.route.tab||d1.AI_ACTIVITY===this.route.tab?s3:s1`<uap-f-page-logs-viewer-view-switcher class="viewer__view" view=${this.view} @uap.f.page-logs-viewer.view-change=${this.handleViewChange}></uap-f-page-logs-viewer-view-switcher>`}templateFailedCount(){let e=this.failedCountController.result.data?.total??0;return 0===e?s3:s1`<uas-chip class="viewer__count" label=${e.toLocaleString()} color=${pO.ERROR} size=${b6.SM} filled></uas-chip>`}templatePanel(){switch(this.route.tab){case d1.RECIPE:return s1`<uap-f-page-logs-viewer-recipe-tab .selection=${this.route.selection}></uap-f-page-logs-viewer-recipe-tab>`;case d1.TRIGGER:return s1`<uap-f-page-logs-viewer-trigger-tab .selection=${this.route.selection}></uap-f-page-logs-viewer-trigger-tab>`;case d1.ACTION:return s1`<uap-f-page-logs-viewer-action-tab .selection=${this.route.selection}></uap-f-page-logs-viewer-action-tab>`;case d1.FAILED_ACTIONS:return s1`<uap-f-page-logs-viewer-failed-tab .selection=${this.route.selection}></uap-f-page-logs-viewer-failed-tab>`;case d1.APP_EVENTS:return s1`<uap-f-page-logs-app-events></uap-f-page-logs-app-events>`;case d1.AI_ACTIVITY:return s1`<uap-f-page-logs-ai-activity></uap-f-page-logs-ai-activity>`}}handleRouteChange(e){let t=window.location.hash.startsWith(`#${Ns}`);if(t||this.isUnderLogDialog&&0===Object.keys(e).length){this.isUnderLogDialog=t;return}this.isUnderLogDialog=!1,this.route=KW(e,window.location.search),this.openRunInDialog()}openRunInDialog(){let{tab:e,selection:t}=this.route;if(!this.compact||null===t||e===d1.FAILED_ACTIONS)return;let i=void 0===t.itemLogID?WD(t.recipeID,t.runNumber,t.logID):WA(t.recipeID,t.runNumber,t.logID,t.itemLogID);this.route={tab:e,selection:null},this.isUnderLogDialog=!0,window.location.replace(`#${i}`)}handleViewChange(e){let t=W2.safeParse(e.detail);if(!t.success)return;let{tab:i,selection:a}=this.route;WL.NO_SPLIT===t.data.view&&null!==a&&(this.route={tab:i,selection:null},this.show(this.route)),this.view=t.data.view,this.applyLayout();var n=this.view;try{window.localStorage.setItem(Wz,WN.parse(n))}catch{}}applyLayout(){this.isNarrow=this.width<=860,this.compact=this.isNarrow||WL.NO_SPLIT===this.view,this.table=WL.NO_SPLIT===this.view&&this.width>=1e3}handleTabChange(e){let t=d0.safeParse(e.detail.value);t.success&&t.data!==this.route.tab&&this.show({tab:t.data,selection:null})}handleNavigate(e){let t=WB.safeParse(e.detail);t.success&&this.show(t.data)}handleRunDeleted(e){let t=VU.safeParse(e.detail);t.success&&t.data.logID===this.route.selection?.logID&&this.show({tab:this.route.tab,selection:null},!0)}show(e,t=!1){let i=function(e){var t,i;if(!e.selection)return t=e.tab,`${Nl}/${t}`;let{recipeID:a,runNumber:n,logID:o,itemLogID:r}=e.selection;return void 0===r?GI(e.tab,a,n,o):(i=e.tab,`${GI(i,a,n,o)}/item/${encodeURIComponent(r)}`)}(e);`#${i}`!==window.location.hash&&this.router.navigate(i,{replace:t})}};K9([l0({type:Boolean,attribute:"show-ai-activity"})],Yt.prototype,"showAiActivity",void 0),K9([l0({type:Boolean,attribute:"show-app-events"})],Yt.prototype,"showAppEvents",void 0),K9([l2()],Yt.prototype,"route",void 0),K9([l2()],Yt.prototype,"view",void 0),K9([l2()],Yt.prototype,"isNarrow",void 0),K9([H5({context:"uap-f-page-logs-viewer-compact"}),l2()],Yt.prototype,"compact",void 0),K9([H5({context:"uap-f-page-logs-viewer-table"}),l2()],Yt.prototype,"table",void 0),Yt=K9([lJ("uap-f-page-logs-viewer")],Yt);let Yi={RECIPE_ID:"log_recipe_id",RUN_NUMBER:"log_run_number",LOG_ID:"log_dialog_id"},Ya=rg({page:rT([dX.LOGS]),[Yi.RECIPE_ID]:VB.RECIPE_ID.schema,[Yi.RUN_NUMBER]:VB.RUN_NUMBER.schema,[Yi.LOG_ID]:VB.LOG_ID.schema});!function(){var e;let t;if(window.location.hash)return;let i=(e=window.location.search,(t=Ya.safeParse(Object.fromEntries(new URLSearchParams(e)))).success?WD(t.data[Yi.RECIPE_ID],t.data[Yi.RUN_NUMBER],t.data[Yi.LOG_ID]):null);if(!i)return;let a=new URL(window.location.href);Object.values(Yi).forEach(e=>a.searchParams.delete(e)),window.history.replaceState(window.history.state,"",a),window.location.hash=i}();var Yn=a(2685),Yo=a.n(Yn),Yr=function(e,t,i,a){var n,o=arguments.length,r=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(r=(o<3?n(r):o>3?n(t,i,r):n(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r};let Ys=class extends ld{static{this.styles=sf`${sm(Yo())}`}#eb="";get username(){return this.#eb}set username(e){this.#eb=e}#ev="";get avatar(){return this.#ev}set avatar(e){this.#ev=e}#e_="";get integration(){return this.#e_}set integration(e){this.#e_=e}#ew="pill";get variant(){return this.#ew}set variant(e){this.#ew=e}#ex="";get status(){return this.#ex}set status(e){this.#ex=e}#ek=!1;get loading(){return this.#ek}set loading(e){this.#ek=e}#eE="";get message(){return this.#eE}set message(e){this.#eE=e}#eS="";get class(){return this.#eS}set class(e){this.#eS=e}renderAvatar(e=24){return this.avatar?s1` <img src="${this.avatar}" alt="${this.username}" width="${e}" height="${e}"> `:s1` <uap-d-integrations-icon code="${this.integration}" width="${e}" height="${e}"></uap-d-integrations-icon> `}renderUsername(e=!1){return s1` <div class="integration-account__username"> <uas-markdown allowed-tags="a" .content=${this.username}> </uas-markdown> ${e&&this.integration?s1` <uap-d-integrations-icon code="${this.integration}"></uap-d-integrations-icon> `:""} </div> `}renderMessage(){return this.message?s1` <div class="integration-account__message"> <uas-markdown allowed-tags="strong,em,a" .content=${this.message}> </uas-markdown> </div> `:s1``}renderLoadingState(){switch(this.variant){case"panel":return s1` <div class="integration-account integration-account--panel integration-account--loading"> <div class="integration-account__avatar"> <uas-skeleton width="48px" height="48px"></uas-skeleton> </div> <div class="integration-account__content"> ${this.renderUsername(!0)} ${this.message?s1` <div class="integration-account__message"> <uas-skeleton width="200px"></uas-skeleton> </div> `:""} <slot></slot> </div> </div> `;case"badge":return s1` <div class="integration-account integration-account--badge integration-account--loading"> <uas-skeleton width="80px"></uas-skeleton> </div> `;default:return s1` <div class="integration-account integration-account--pill integration-account--loading"> <uas-skeleton width="24px" height="24px"></uas-skeleton> <uas-skeleton width="100px"></uas-skeleton> ${this.message?s1` <uas-skeleton width="16px" height="16px"></uas-skeleton> `:""} <uas-skeleton width="16px" height="16px"></uas-skeleton> </div> `}}renderAccountInfo(){if(this.loading)return this.renderLoadingState();let e=`integration-account integration-account--${this.variant} ${this.class}`.trim();switch(this.variant){case"panel":return s1` <div class="${e}"> <div class="integration-account__avatar"> ${this.renderAvatar(48)} </div> <div class="integration-account__content"> ${this.renderUsername(!0)} ${this.renderMessage()} <slot></slot> </div> </div> `;case"badge":return s1` <div class="${e}" ?data-status="${this.status}"> ${this.username} ${this.renderMessage()} </div> `;default:return s1` <div class="${e}"> ${this.renderAvatar()} ${this.renderUsername()} ${this.renderMessage()} ${this.integration?s1` <uap-d-integrations-icon code="${this.integration}" size="xs"></uap-d-integrations-icon> `:""} </div> `}}render(){return this.renderAccountInfo()}};function Yl(e,t,i){let a=new CustomEvent("uap.f.page-settings.app-settings.event",{detail:{action:e,data:t,rowSubmission:i},bubbles:!0,composed:!0});document.dispatchEvent(a)}function Yc(e,t){document.addEventListener("uap.f.page-settings.app-settings.event",i=>{i.detail.action===e&&t(i)})}Yr([l0({type:String})],Ys.prototype,"username",null),Yr([l0({type:String})],Ys.prototype,"avatar",null),Yr([l0({type:String})],Ys.prototype,"integration",null),Yr([l0({type:String})],Ys.prototype,"variant",null),Yr([l0({type:String})],Ys.prototype,"status",null),Yr([l0({type:Boolean})],Ys.prototype,"loading",null),Yr([l0({type:String})],Ys.prototype,"message",null),Yr([l0({type:String})],Ys.prototype,"class",null),Ys=Yr([lJ("uo-integration-account")],Ys);var Yd=function(e,t,i,a){var n,o=arguments.length,r=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(r=(o<3?n(r):o>3?n(t,i,r):n(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r};let Yu=class extends pE{#eC=!1;get rowSubmission(){return this.#eC}set rowSubmission(e){this.#eC=e}#eT="";get integrationId(){return this.#eT}set integrationId(e){this.#eT=e}#eI="";get confirmationFields(){return this.#eI}set confirmationFields(e){this.#eI=e}async _handleClick(e){if(this.disabled||this.loading){e.preventDefault(),e.stopPropagation();return}await this.handleFormButtonClick(e)}async handleFormButtonClick(e){let t;if(this.needsConfirmation){let i=[];if(this.confirmationFields)try{i=JSON.parse(this.confirmationFields)}catch{console.warn("Invalid confirmation fields JSON:",this.confirmationFields)}let a=document.createElement("uap-app-integration-settings-confirm-dialog");document.body.appendChild(a);try{let e={heading:this.confirmationHeading,content:this.confirmationContent,confirmButtonLabel:this.confirmationButtonLabel,formFields:i},n=await a.show(e);n.formData&&(t=n.formData)}catch{e.preventDefault(),e.stopPropagation();return}finally{a.remove()}}try{let e=this.prepareEventData(t),i=!1;if(this.rowSubmission){let e=this.closest("[data-row-id]"),t=e?.getAttribute("data-row-id")||null;t&&e&&(i={rowId:t,rowElement:e})}Yl("button-click",e,i)}catch(e){console.error("Button action error:",e),Yl("button-error",{error:e},!1)}}prepareEventData(e){return{button:this,name:this.name,value:this.value,type:this.type,integrationId:this.getIntegrationId(),postValues:e}}getIntegrationId(){return this.integrationId||this.getAttribute("integration-id")||""}};Yd([l0({type:Boolean,attribute:"row-submission"})],Yu.prototype,"rowSubmission",null),Yd([l0({type:String,attribute:"integration-id"})],Yu.prototype,"integrationId",null),Yd([l0({type:String,attribute:"confirmation-fields"})],Yu.prototype,"confirmationFields",null),Yu=Yd([lJ("uap-app-integration-settings-button")],Yu);var Yp=a(77),Yh=a.n(Yp);function Yg(e){return cr(class extends cs{static{this.partType=6}render(e){return""}update(t,[i]){let a=t.element;if("object"!=typeof i||null===i)return"";for(let[t,n]of Object.entries(i)){let i=t.startsWith("data-"),o=t.startsWith("aria-");if(!(e.has(t)||i||o))continue;let r=i||o?t:this.toKebabCase(t);"boolean"==typeof n?n?(a.setAttribute(r,""),a[t]=!0):(a.removeAttribute(r),a[t]=!1):null!=n&&(a[t]=n,a.setAttribute(r,String(n)))}return""}toKebabCase(e){return e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}})}let Ym=new Set(["code","brand","size","animation","iconStyle","iconPack"]),Yf=new Set(["code","size","variant"]);function Yy(e,t={}){if(!e)return s1``;if(t.loading||"object"==typeof e&&e.loading)return s1` <uas-skeleton height="20px" width="20px" ></uas-skeleton> `;let i={..."string"==typeof e?{code:e}:e,...t};if("string"==typeof i.integration&&""!==i.integration){let{integration:e,...t}=i;return s1` <uap-d-integrations-icon ${Yg(Yf)({...t,code:e})}></uap-d-integrations-icon> `}return s1` <uas-icon ${Yg(Ym)(i)}></uas-icon> `}let Yb=new Set(["type","name","value","disabled","loading","color","size","href","target","needs-confirmation","confirmation-heading","confirmation-content","confirmation-button-label","confirmation-fields","icon","class","row-submission","integration-id"]),Yv=new Set(["id","name","checked","disabled","loading","label-on","label-off","size","label-placement","required"]),Y_=new Set(["id","name","type","value","label","placeholder","helper","required","disabled","auto-focus","copy-to-clipboard"]),Yw=new Set(["username","avatar","integration","variant","message","status","loading"]),Yx=new Set(["visible","section-type","class","state","show-when"]);var Yk=function(e,t,i,a){var n,o=arguments.length,r=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(r=(o<3?n(r):o>3?n(t,i,r):n(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r};let YE={button:function(e,t={}){let{label:i,icon:a,...n}=e,{loading:o,...r}=t;return o?s1``:s1` <uap-app-integration-settings-button ${Yg(Yb)({...n,...r})}> ${a?Yy(a):""} ${i||""} </uap-app-integration-settings-button> `},switch:function(e,t={}){return s1` <uo-field-input-switch ${Yg(Yv)({...e,...t})} > </uo-field-input-switch> `},"text-field":function(e,t={}){let{"@change":i,...a}=e,{loading:n,...o}=t;return n?s1` <uas-skeleton height="34px" width="100px"></uas-skeleton> `:s1` <uo-text-field ${Yg(Y_)({...a,...o})} @change=${i??void 0} ></uo-text-field> `},text:function(e,t={}){let i=function(e){if("string"==typeof e)return e;let t=e?.content;if("string"==typeof t)return t;let i=e?.text;return"string"==typeof i?i:""}(e);return t.loading||"object"==typeof e&&e.loading?s1` <uas-skeleton width="100px" height="20px" ></uas-skeleton> `:s1` <uas-markdown allowed-tags="strong,em,a" .content=${i}> </uas-markdown> `},icon:Yy,account:function(e,t={}){return s1` <uo-integration-account ${Yg(Yw)({...e,...t})}></uo-integration-account> `},section:function(e){let{components:t=[],...i}=e,a=Yg(Yx);return s1` <uap-app-integration-settings-section ${a(i)} > <uap-app-integration-settings-component-loader .config=${{components:t}} > </uap-app-integration-settings-component-loader> </uap-app-integration-settings-section> `}},YS=class extends ld{static{this.styles=sf`${sm(Yh())}`}createRenderRoot(){return this}#eD={components:[]};get config(){return this.#eD}set config(e){this.#eD=e}render(){let{components:e,layout:t="vertical",className:i,style:a}=this.config;if(!e||0===e.length)return s1``;let n=`component-loader component-loader--${t} ${i||""}`;return s1` <div class="${n}" style="${a||""}"> ${e.map((e,t)=>this.renderComponent(e,t))} </div> `}renderComponent(e,t){let{type:i,data:a,className:n,style:o,...r}=e,s=YE[i];if(!s)return console.warn(`Unknown component type: ${i}`),s1``;let l=`component-loader__component component-loader__component--${i} ${n||""}`;return s1` <div class="${l}" style="${o||""}" data-component-index="${t}"> ${s(a,r)} </div> `}};Yk([l0({type:Object,converter:{fromAttribute:e=>{if(!e)return{components:[]};try{return JSON.parse(e)}catch{return console.error("Failed to parse component loader configuration"),{components:[]}}}}})],YS.prototype,"config",null),YS=Yk([lJ("uap-app-integration-settings-component-loader")],YS);let YC=e=>{e.addEventListener("change",YD),YT(e),YI(e)},YT=e=>{e.querySelectorAll("uo-field-input-switch[data-state-control]").forEach(e=>{e.addEventListener("change",YD)})},YI=e=>{e.querySelectorAll("[data-state-control]").forEach(e=>{let t=e.getAttribute("data-state-control");if(!t)return;let i=YA(e);i&&Y$(t,i)})},YD=e=>{let t=e.target,i=t.getAttribute("data-state-control");if(!i)return;let a=YA(t);void 0!==a&&Y$(i,a)},YA=e=>{if(e.tagName.includes("-"))return"UO-FIELD-INPUT-RADIO"===e.tagName?e.checked?e.value:void 0:"UO-FIELD-INPUT-SWITCH"===e.tagName?e.checked?"1":"0":e.value||(e.checked?"checked":void 0);if(e instanceof HTMLInputElement){if("radio"===e.type)return e.checked?e.value:void 0;if("checkbox"===e.type)return e.checked?"checked":"unchecked"}return e.value},Y$=(e,t)=>{Yl("state-change",{state:e,value:t},!1)},YO=(e,t={})=>{let{includeHidden:i=!0,fieldFilter:a=null,rowSubmission:n=null}=t,o=[...e.querySelectorAll("input, select, textarea"),...e.querySelectorAll("uo-field-input-radio, uo-field-input-switch, uo-text-field")].filter(t=>(!a||!!a(t))&&(!n||!!n.rowElement.contains(t))&&(!!i||!!YN(t,e))),r=new FormData;return o.forEach(e=>{e.tagName.includes("-")?YR(r,e):(e instanceof HTMLInputElement||e instanceof HTMLSelectElement||e instanceof HTMLTextAreaElement)&&YL(r,e)}),n&&n.rowId&&r.set("row_id",n.rowId),r},YR=(e,t)=>{if("UO-FIELD-INPUT-RADIO"===t.tagName&&t.checked&&t.name&&e.set(t.name,t.value||""),"UO-FIELD-INPUT-SWITCH"===t.tagName){let i=t.name||t.getAttribute("name");if(i){let a=YM(t);e.set(i,a?"1":"0")}}if("UO-TEXT-FIELD"===t.tagName){let i=t.name||t.getAttribute("name");i&&e.set(i,t.value||"")}},YM=e=>{if("boolean"==typeof e.checked)return e.checked;if(e.shadowRoot){let t=e.shadowRoot.querySelector('input[type="checkbox"]');if(t&&"boolean"==typeof t.checked)return t.checked}return e.hasAttribute("checked")},YL=(e,t)=>{t instanceof HTMLInputElement?"radio"===t.type?t.checked&&e.set(t.name,t.value):"checkbox"===t.type?t.checked&&e.set(t.name,t.value||"on"):e.set(t.name,t.value):e.set(t.name,t.value)},YN=(e,t)=>{if(e instanceof HTMLElement&&("none"===e.style.display||e.hidden))return!1;let i=e.parentElement;for(;i&&i!==t;){if("UAP-APP-INTEGRATION-SETTINGS-SECTION"===i.tagName&&!1===i.visible||i.classList.contains("section")&&i instanceof HTMLElement&&"none"===i.style.display)return!1;i=i.parentElement}return!0},YP=e=>(e instanceof HTMLInputElement||e instanceof HTMLSelectElement||e instanceof HTMLTextAreaElement)&&e.checkValidity&&"function"==typeof e.checkValidity?e.checkValidity():!e.tagName.includes("-")||!e.required||!!(e.value&&""!==e.value.trim()),Yz=e=>Array.from(e.querySelectorAll("[required]")).filter(t=>!!YU(t,e)&&(t.tagName.includes("-")?!!t.checkValidity&&"function"==typeof t.checkValidity||!!t.required&&(!t.value||""===t.value.trim()):!!t.checkValidity&&"function"==typeof t.checkValidity)),YU=(e,t)=>{if(e instanceof HTMLElement&&("none"===e.style.display||e.hidden))return!1;let i=e.parentElement;for(;i&&i!==t;){if("UAP-APP-INTEGRATION-SETTINGS-SECTION"===i.tagName&&!1===i.visible||i.classList.contains("section")&&i instanceof HTMLElement&&"none"===i.style.display)return!1;i=i.parentElement}return!0};var YF=function(e,t,i,a){var n,o=arguments.length,r=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(r=(o<3?n(r):o>3?n(t,i,r):n(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r};let Yj=class extends ld{constructor(){super(...arguments),this.#eT="",this.form=null,this.isSubmitting=!1}createRenderRoot(){return this}connectedCallback(){super.connectedCallback(),this.closest("uap-d-site-auth")||console.error("uap-app-integration-settings-form: Error: <uap-app-integration-settings-form> must be used inside <uap-d-site-auth>")}#eT;get integrationId(){return this.#eT}set integrationId(e){this.#eT=e}firstUpdated(){this.form=this.querySelector("form"),this.form&&this.integrationId&&(YC(this),this.setupForm(this.form))}setupForm(e){e.checkValidity=()=>Yz(e).every(e=>YP(e)),e.reportValidity=()=>{let t=Yz(e),i=!0;return t.forEach(e=>{var t;YP(e)||(i=!1,((t=e)instanceof HTMLInputElement||t instanceof HTMLSelectElement||t instanceof HTMLTextAreaElement)&&t.reportValidity&&"function"==typeof t.reportValidity?t.reportValidity():t.tagName.includes("-")&&t.reportValidity&&"function"==typeof t.reportValidity&&t.reportValidity())}),i},Yc("button-click",this.handleFormButtonClick.bind(this)),Yc("button-error",this.handleFormButtonError.bind(this))}handleFormButtonClick(e){if(!this.form)return;let{data:t,rowSubmission:i}=e.detail;if("button-click"!==e.detail.action)return;let{integrationId:a,postValues:n}=t,o=!i;if(o&&this.isSubmitting)return;if(!this.form.checkValidity())return void this.form.reportValidity();let r=YO(this.form,{includeHidden:!1,rowSubmission:i}),{name:s,value:l}=t;if(s&&!r.has(s)&&r.append(s,l||""),n)for(let[e,t]of Object.entries(n))(Array.isArray(t)?t:[t]).forEach(t=>r.append(e,String(t)));o&&this.setSubmitting(!0,t.button);let c=!1;this.submitToRest(r,a).then(e=>{c=e}).catch(e=>{console.error("Submission error:",e),this.showAlert({type:"error",heading:"Error",content:e.message||"Action failed"})}).finally(()=>{Yl("submission-complete",{success:!0},i),o&&!c&&this.setSubmitting(!1,t.button)})}setSubmitting(e,t){this.isSubmitting=e,this.setAttribute("aria-busy",String(e)),this.form&&(this.form.inert=e),t instanceof pE&&(t.loading=e)}handleFormButtonError(e){if("button-error"!==e.detail.action)return;let t=e.detail.data;this.showAlert({type:"error",heading:"Error",content:t.error.message||"Button action failed"})}async submitToRest(e,t){let i=e.get("automator_action");if(!i)throw Error("No action specified");let a=t||this.integrationId,n={action:i,data:{}};for(let[t,i]of e.entries())"automator_action"!==t&&"automator_nonce"!==t&&(n.data[t]=i);let o=await BZ()({path:`/uap/v2/integration-settings/${a}`,method:"POST",data:n});return o.redirect_url?(window.location.href=o.redirect_url,!0):o.reload?(window.location.reload(),!0):(o.data&&Array.isArray(o.data)&&this.handleDataUpdate(o.data),o.alert&&this.showAlert(o.alert),o.notice&&this.showNotice(o.notice),!1)}handleDataUpdate(e){Yl("data-update",{data:e},!1)}showAlert(e){ly({message:e.content,color:"error"===e.type?"error":"",iconID:this.getAlertIcon(e.type),duration:5e3})}getAlertIcon(e){switch(e){case"error":return"xmark";case"warning":return"exclamation-triangle";case"success":return"check";default:return"info-circle"}}showNotice(e){let t=this.querySelector(".uap-settings-panel-content");if(!t)return void console.warn("No settings panel content found for notice insertion");let i=document.createElement("uo-alert");i.setAttribute("type",e.type),e.heading&&i.setAttribute("heading",e.heading),i.textContent=e.content,i.className="uap-spacing-bottom",t.insertBefore(i,t.firstChild),("success"===e.type||"info"===e.type)&&setTimeout(()=>{i.parentNode&&i.remove()},5e3)}render(){return s1` <slot></slot> `}};YF([l0({type:String,attribute:"integration-id"})],Yj.prototype,"integrationId",null),Yj=YF([lJ("uap-app-integration-settings-form")],Yj);class YB{constructor(e,t){this.isProcessing=!1,this.onComplete=e,this.setRowLoading=t}async processQueue(e,t,i,a,n){if(!this.isProcessing){this.isProcessing=!0;try{let a=t.filter(e=>e.queue);if(0===a.length)return;for(let t of(a.forEach(e=>{e.id&&this.setRowLoading?.(e.id,!0)}),a)){if(!t.id){console.warn("Skipping row without ID");continue}try{let a=n.renderRoot.querySelector(`[data-row-id="${t.id}"]`);if(!a){console.warn(`Row element not found for ID: ${t.id}`);continue}await this.processQueueItem(e,t,i,a)}catch(i){let e=i instanceof Error?i.message:"Unknown error";console.error(`Error processing row ${t.id}:`,e)}finally{this.setRowLoading?.(t.id,!1)}i.rateLimit&&await new Promise(e=>setTimeout(e,i.rateLimit))}}finally{this.isProcessing=!1,this.onComplete?.()}}}async processQueueItem(e,t,i,a){let n=YO(e,{includeHidden:!1,rowSubmission:{rowId:t.id,rowElement:a}});n.set("row_id",t.id),i.postValues&&Object.entries(i.postValues).forEach(([e,t])=>{n.set(e,t)}),!n.has("automator_action")&&i.postValues?.automator_action&&n.set("automator_action",i.postValues.automator_action);let o=e.closest("uap-app-integration-settings-form");if(!o)throw Error("No form component found");await o.submitToRest(n,i.integrationId)}}var YH=a(7286),YV=a.n(YH),Yq=function(e,t,i,a){var n,o=arguments.length,r=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(r=(o<3?n(r):o>3?n(t,i,r):n(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r};let YZ=class extends ld{constructor(){super(...arguments),this.#eA=[],this.#e$=[],this.#eO=!0,this.#eR="table",this.#eM=void 0,this.queueManager=new YB(()=>{Yl("queue-complete",{success:!0},!1)},(e,t)=>this.setRowLoading(e,t)),this.#eL=new Set}static{this.styles=sf`${sm(YV())}`}#eA;get columns(){return this.#eA}set columns(e){this.#eA=e}#e$;get data(){return this.#e$}set data(e){this.#e$=e}#eO;get showHeadings(){return this.#eO}set showHeadings(e){this.#eO=e}#eR;get layout(){return this.#eR}set layout(e){this.#eR=e}#eM;get queue(){return this.#eM}set queue(e){this.#eM=e}#eL;get loadingRows(){return this.#eL}set loadingRows(e){this.#eL=e}async firstUpdated(){await this.updateComplete,Yc("data-update",this.handleDataUpdate.bind(this)),Yc("button-click",this.handleRowSubmission.bind(this)),Yc("submission-complete",this.handleSubmissionComplete.bind(this)),this.queue&&this.data.some(e=>e.queue)&&requestAnimationFrame(()=>{this.startQueueProcessing()})}handleDataUpdate(e){if("data-update"!==e.detail.action)return;let{data:t}=e.detail.data;Array.isArray(t)&&(this.data=t,t.forEach(e=>{e.id&&this.setRowLoading(e.id,!1)}))}handleRowSubmission(e){this.handleRowLoadingEvent(e,!0)}handleSubmissionComplete(e){this.handleRowLoadingEvent(e,!1)}handleRowLoadingEvent(e,t){let{rowSubmission:i}=e.detail;if(i&&i.rowId){if(t){this.loadingRows.add(i.rowId),this.loadingRows=new Set(this.loadingRows);return}this.loadingRows.delete(i.rowId),this.loadingRows=new Set(this.loadingRows)}}setRowLoading(e,t){if(t){this.loadingRows.add(e),this.loadingRows=new Set(this.loadingRows);return}this.loadingRows.delete(e),this.loadingRows=new Set(this.loadingRows)}async startQueueProcessing(){let e=this.closest("form");e&&this.queue?await this.queueManager.processQueue(e,this.data,this.queue,e=>{this.data=e},this):console.warn("No form found or queue not configured")}renderCells(e,t,i=!1){return e.map(e=>{let a=t.columns?t.columns[e.key]:t[e.key],n=this.getCellType(a,e.key),o=`settings-table__cell settings-table__cell--${n}`,r=this.renderCellContent(e,t,i);return s1`<div class="${o}">${r}</div>`})}getCellType(e,t){return e&&e.options&&0!==e.options.length&&e.options[0]?.type||"text"}renderCellContent(e,t,i=!1){let a=t.columns?t.columns[e.key]:t[e.key],n=(a?.options||[]).map(e=>({...e,loading:i})),o=a?.layout||"vertical";return s1` <uap-app-integration-settings-component-loader .config=${{components:n,layout:o}}> </uap-app-integration-settings-component-loader> `}renderDescription(e,t){return s1` <div class="settings-table__description"> ${t?s1`<uas-skeleton height="14px"></uas-skeleton>`:s1` <uap-app-integration-settings-component-loader .config=${{components:[{type:"text",data:e}]}}> </uap-app-integration-settings-component-loader> `} </div> `}render(){let e=this.data.filter(e=>e&&Object.keys(e).length>0),t=`settings-table settings-table--${this.layout}`,i=this.columns.length;return s1` <div class="${t}" style="--uo-settings-table-columns: ${i};"> ${this.showHeadings?s1` <div class="settings-table__row settings-table__headings"> <div class="settings-table__content"> ${this.columns.map(e=>s1` <div class="settings-table__cell"> ${e.header||""} </div> `)} </div> </div> `:""} ${e.map(e=>{let t=this.columns,i=this.loadingRows.has(e.id||"");return s1` <div class="settings-table__row" data-row-id="${e.id||""}"> <div class="settings-table__content"> ${this.renderCells(t,e,i)} </div> ${e.description?this.renderDescription(e.description,i):""} </div> `})} </div> `}};Yq([l0({type:Array})],YZ.prototype,"columns",null),Yq([l0({type:Array,converter:{fromAttribute:e=>{if(!e)return[];try{return JSON.parse(e)}catch{return console.error("Failed to parse settings table data"),[]}}}})],YZ.prototype,"data",null),Yq([l0({type:Boolean,attribute:"show-headings",converter:e=>"yes"===e})],YZ.prototype,"showHeadings",null),Yq([l0({type:String})],YZ.prototype,"layout",null),Yq([l0({type:Object,converter:e=>{if(e)try{let t=JSON.parse(e);return!0===t?{}:t}catch{return"true"===e?{}:void 0}}})],YZ.prototype,"queue",null),Yq([l2()],YZ.prototype,"loadingRows",null),YZ=Yq([lJ("uap-app-integration-settings-list")],YZ);var YW=a(9261),YG=a.n(YW),YK=function(e,t,i,a){var n,o=arguments.length,r=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(r=(o<3?n(r):o>3?n(t,i,r):n(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r};let YY=class extends ld{static{this.styles=sf`${sm(YG())}`}#eN=!0;get visible(){return this.#eN}set visible(e){this.#eN=e}#eP="";get sectionType(){return this.#eP}set sectionType(e){this.#eP=e}#ez="";get cssClass(){return this.#ez}set cssClass(e){this.#ez=e}#eU="";get state(){return this.#eU}set state(e){this.#eU=e}#eF="";get showWhen(){return this.#eF}set showWhen(e){this.#eF=e}connectedCallback(){super.connectedCallback(),this.state&&this.showWhen&&(this.setupStateListeners(),this.checkInitialState())}disconnectedCallback(){super.disconnectedCallback(),this.state&&this.removeStateListeners()}setupStateListeners(){Yc("state-change",this.handleStateChange.bind(this))}removeStateListeners(){var e;e=this.handleStateChange.bind(this),document.removeEventListener("uap.f.page-settings.app-settings.event",t=>{"state-change"===t.detail.action&&e(t)})}checkInitialState(){let e=this.closest("form");if(!e)return;let t=YO(e,{includeHidden:!0}).get(this.state)||"";this.visible=t===this.showWhen}handleStateChange(e){if("state-change"!==e.detail.action)return;let{state:t,value:i}=e.detail.data;t===this.state&&(this.visible=i===this.showWhen)}render(){if(!this.visible)return s1``;let e=["app-integration-settings-section",this.sectionType?`app-integration-settings-section--${this.sectionType}`:"",this.cssClass].filter(Boolean).join(" ");return s1` <div class="${e}"> <slot></slot> </div> `}};YK([l0({type:Boolean})],YY.prototype,"visible",null),YK([l0({type:String,attribute:"section-type"})],YY.prototype,"sectionType",null),YK([l0({type:String,attribute:"class"})],YY.prototype,"cssClass",null),YK([l0({type:String,attribute:"state"})],YY.prototype,"state",null),YK([l0({type:String,attribute:"show-when"})],YY.prototype,"showWhen",null),YY=YK([lJ("uap-app-integration-settings-section")],YY);var YQ=a(6439),YX=a.n(YQ),YJ=function(e,t,i,a){var n,o=arguments.length,r=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(r=(o<3?n(r):o>3?n(t,i,r):n(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r};let Y1=class extends ld{constructor(){super(...arguments),this.#ej=!1,this.#eB="",this.#eH="",this.#eV="",this.#eq="",this.#eZ="",this.#eW=!1,this.handleEscapeKey=e=>{"Escape"===e.key&&(e.stopPropagation(),e.preventDefault(),this.open=!1,this.rejectPromise&&this.rejectPromise(Error("Confirmation cancelled by user.")))}}static{this.styles=sf`${sm(YX())}`}#ej;get open(){return this.#ej}set open(e){this.#ej=e}#eB;get heading(){return this.#eB}set heading(e){this.#eB=e}#eH;get content(){return this.#eH}set content(e){this.#eH=e}#eV;get confirmButtonLabel(){return this.#eV}set confirmButtonLabel(e){this.#eV=e}#eq;get cancelButtonLabel(){return this.#eq}set cancelButtonLabel(e){this.#eq=e}#eZ;get formFields(){return this.#eZ}set formFields(e){this.#eZ=e}#eW;get forceManualClose(){return this.#eW}set forceManualClose(e){this.#eW=e}parseFormFields(){if(!this.formFields)return[];try{return JSON.parse(this.formFields)}catch{return console.warn("Invalid form fields JSON:",this.formFields),[]}}createLoaderConfig(){return{components:this.parseFormFields().map(e=>({type:e.type,data:{...e},className:e.className}))}}collectFormData(){if(!this.formElement)return{};let e=YO(this.formElement),t={};for(let[i,a]of e.entries()){let e=t[i];if(!e){t[i]=a;continue}t[i]=Array.isArray(e)?[...e,a]:[e,a]}return t}handleConfirm(e){e&&(e.preventDefault(),e.stopPropagation());let t=this.collectFormData();this.open=!1,this.resolvePromise&&this.resolvePromise({confirmed:!0,formData:t})}handleCancel(e){e&&(e.preventDefault(),e.stopPropagation()),this.open=!1,this.rejectPromise&&this.rejectPromise(Error("Confirmation cancelled by user."))}handleClose(e){e.detail?.was_cancelled&&this.rejectPromise&&this.rejectPromise(Error("Confirmation cancelled by user."))}show(e={}){return this.heading=e.heading||(0,b4.escapeHTML)((0,lX.__)("Are you sure?","uncanny-automator")),this.content=e.content||"",this.confirmButtonLabel=e.confirmButtonLabel||(0,lX._x)("Confirm","Verb","uncanny-automator"),this.cancelButtonLabel=e.cancelButtonLabel||(0,lX._x)("Cancel","Verb","uncanny-automator"),this.formFields=e.formFields?JSON.stringify(e.formFields):"",this.open=!0,new Promise((e,t)=>{this.resolvePromise=e,this.rejectPromise=t})}updated(e){if(super.updated(e),e.has("open")){if(this.open){document.addEventListener("keydown",this.handleEscapeKey,{capture:!0}),this.formElement&&this.updateComplete.then(()=>{setTimeout(()=>{this.formElement&&YC(this.formElement)},50)});return}document.removeEventListener("keydown",this.handleEscapeKey,{capture:!0})}}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("keydown",this.handleEscapeKey,{capture:!0})}renderDialogContent(){let e=this.parseFormFields(),t=this.createLoaderConfig();return s1` ${this.content?s1`<div class="confirm-dialog__content">${this.content}</div>`:""} ${e.length>0?s1` <form id="confirm-fields-form" class="confirm-dialog__form"> <uap-app-integration-settings-component-loader .config=${t}></uap-app-integration-settings-component-loader> </form> `:""} `}renderDialogButtons(){return s1` <uas-button slot="primary-action" @click=${this.handleConfirm}> ${this.confirmButtonLabel} </uas-button> <uas-button slot="secondary-action" color="secondary" @click=${this.handleCancel}> ${this.cancelButtonLabel} </uas-button> `}render(){return this.open?s1` <uas-dialog .heading=${this.heading} ?force-manual-close=${this.forceManualClose} open @uas.dialog.close=${this.handleClose} > ${this.renderDialogContent()} ${this.renderDialogButtons()} </uas-dialog> `:s1``}};YJ([l0({type:Boolean})],Y1.prototype,"open",null),YJ([l0({type:String})],Y1.prototype,"heading",null),YJ([l0({type:String})],Y1.prototype,"content",null),YJ([l0({type:String})],Y1.prototype,"confirmButtonLabel",null),YJ([l0({type:String})],Y1.prototype,"cancelButtonLabel",null),YJ([l0({type:String})],Y1.prototype,"formFields",null),YJ([l0({type:Boolean,attribute:"force-manual-close"})],Y1.prototype,"forceManualClose",null),YJ([l4("#confirm-fields-form")],Y1.prototype,"formElement",void 0),Y1=YJ([lJ("uap-app-integration-settings-confirm-dialog")],Y1);var Y0=a(5793),Y2=a.n(Y0);rp(rg({id:oR({error:e=>void 0===e.input?"Upgrade banner item `id` is required.":"Upgrade banner item `id` must be a string."}).min(1,{error:"Upgrade banner item `id` cannot be empty."}),title:oR({error:e=>void 0===e.input?"Upgrade banner item `title` is required.":"Upgrade banner item `title` must be a string."}).min(1,{error:"Upgrade banner item `title` cannot be empty."}),icon:ur.optional()}));let Y3={AVAILABLE:"available",LIMITED:"limited",UNAVAILABLE:"unavailable"},Y4=rT(Y3);rg({label:oR({error:e=>void 0===e.input?"Upgrade table row `label` is required.":"Upgrade table row `label` must be a string."}).min(1,{error:"Upgrade table row `label` cannot be empty."}),icon:ur,colorVariable:oR({error:e=>void 0===e.input?"Upgrade table row `colorVariable` is required.":"Upgrade table row `colorVariable` must be a string."}).min(1,{error:"Upgrade table row `colorVariable` cannot be empty."}).refine(e=>e.startsWith("--uap-page-upgrade-table-status-"),{error:'Upgrade table row `colorVariable` must start with "--uap-page-upgrade-table-status-".'})});let Y6={[Y3.AVAILABLE]:{label:(0,lX._x)("Available","Feature status","uncanny-automator"),icon:"circle-check",colorVariable:"--uap-page-upgrade-table-status-completed"},[Y3.UNAVAILABLE]:{label:(0,lX._x)("Unavailable","Feature status","uncanny-automator"),icon:"hyphen",colorVariable:"--uap-page-upgrade-table-status-unavailable"},[Y3.LIMITED]:{label:(0,lX._x)("Limited","Feature status","uncanny-automator"),icon:"circle-exclamation",colorVariable:"--uap-page-upgrade-table-status-limited"}},Y5=rg({status:ry([re(),Y4]),text:oR({error:e=>void 0===e.input?"Upgrade table row `text` is required.":"Upgrade table row `text` must be a string."}).min(1,{error:"Upgrade table row `text` cannot be empty."}).optional()}),Y8=rg({id:oR({error:e=>void 0===e.input?"Upgrade table row `id` is required.":"Upgrade table row `id` must be a string."}).min(1,{error:"Upgrade table row `id` cannot be empty."}),name:ry([oR({error:e=>void 0===e.input?"Upgrade table row `name` is required.":"Upgrade table row `name` must be a string."}).min(1,{error:"Upgrade table row `name` cannot be empty."}),rZ(e=>$k(e),{error:"Upgrade table row `name` must be a string or TemplateResult"})]),description:ry([oR({error:e=>void 0===e.input?"Upgrade table row `description` is required.":"Upgrade table row `description` must be a string."}).min(1,{error:"Upgrade table row `description` cannot be empty."}),rZ(e=>$k(e),{error:"Upgrade table row `description` must be a string or TemplateResult"})]).optional(),learn_more:oH({error:"Upgrade table row `learn_more` must be a valid URL."}).optional(),tiers:rE(pA,Y5)}),Y7=rg({name:oR({error:e=>void 0===e.input?"Upgrade table section `name` is required.":"Upgrade table section `name` must be a string."}).min(1,{error:"Upgrade table section `name` cannot be empty."}),icon:ur,rows:rp(Y8)});rg({tiers:rp(pA),sections:rp(Y7)});var Y9=function(e,t,i,a){var n,o=arguments.length,r=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(r=(o<3?n(r):o>3?n(t,i,r):n(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r};let Qe=class extends ld{static{this.styles=sf`${sm(Y2())}`}#eG=Y3.UNAVAILABLE;get statusID(){return this.#eG}set statusID(e){this.#eG=e}#eK=!0;get hideLabel(){return this.#eK}set hideLabel(e){this.#eK=e}#eY=!0;get showTooltip(){return this.#eY}set showTooltip(e){this.#eY=e}willUpdate(e){lQ(this,"statusID",Y4,e,"uap-page-upgrade-table-status")}render(){return this.showTooltip?s1` <uas-tooltip> <span class="tooltip-nowrap">${Y6[this.statusID].label}</span> <div slot="target">${this.templateStatus()}</div> </uas-tooltip> `:this.templateStatus()}templateStatus(){return s1` <div class="status"> <span class="status__icon" style="color: var(${Y6[this.statusID].colorVariable})" > <uas-icon code="${Y6[this.statusID].icon}" icon-style="solid" ></uas-icon> </span> ${this.templateLabel()} </div> `}templateLabel(){if(!this.hideLabel)return s1`<span class="status__label">${Y6[this.statusID].label}</span>`}};Y9([l0({type:String,attribute:"status-id"})],Qe.prototype,"statusID",null),Y9([l0({type:Boolean,attribute:"hide-label"})],Qe.prototype,"hideLabel",null),Y9([l0({type:Boolean,attribute:"show-tooltip"})],Qe.prototype,"showTooltip",null),Qe=Y9([lJ("uap-page-upgrade-table-status")],Qe);let Qt=[{id:"run-now-instant-recipes",icon:"bolt",title:(0,lX._x)("Run now (instant) recipes","Upgrade","uncanny-automator")},{id:"import-csv",icon:"file-csv",title:(0,lX._x)("Import CSV","Upgrade","uncanny-automator")},{id:"import-xml",icon:"code",title:(0,lX._x)("Import XML","Upgrade","uncanny-automator")},{id:"data-formatter-generator",icon:"gear",title:(0,lX._x)("Data Formatter/Generator","Upgrade","uncanny-automator")},{id:"date-time-tools",icon:"calendar",title:(0,lX._x)("Date and Time tools","Upgrade","uncanny-automator")},{id:"conditional-actions",icon:"code-merge",title:(0,lX._x)("Conditional actions","Upgrade","uncanny-automator")},{id:"multisite-support",icon:"sitemap",title:(0,lX._x)("WordPress Multisite support","Upgrade","uncanny-automator")},{id:"scheduled-delayed-actions",icon:"clock",title:(0,lX._x)("Scheduled/delayed actions","Upgrade","uncanny-automator")},{id:"loops",icon:"repeat",title:(0,lX._x)("Loops","Upgrade","uncanny-automator")},{id:"create-users",icon:"user",title:(0,lX._x)("Create users","Upgrade","uncanny-automator")},{id:"advanced-log-filters",icon:"filter",title:(0,lX._x)("Advanced log filters","Upgrade","uncanny-automator")},{id:"magic-buttons-magic-links",icon:"wand-magic-sparkles",title:(0,lX._x)("Magic buttons and magic links","Upgrade","uncanny-automator")},{id:"run-php-and-javascript",icon:"code",title:(0,lX._x)("Run PHP and JavaScript","Upgrade","uncanny-automator")},{id:"generate-qr-codes",icon:"qrcode",title:(0,lX._x)("Generate QR Codes","Upgrade","uncanny-automator")},{id:"import-json",icon:"brackets-curly",title:(0,lX._x)("Import JSON","Upgrade","uncanny-automator")},{id:"database-query",icon:"database",title:(0,lX._x)("Database query","Upgrade","uncanny-automator")},{id:"unlimited-app-credits",icon:"share-nodes",title:(0,lX._x)("Unlimited app credits","Upgrade","uncanny-automator")},{id:"receive-webhooks",icon:"webhook",title:(0,lX._x)("Receive webhooks","Upgrade","uncanny-automator")},{id:"premium-support",icon:"heart",title:(0,lX._x)("Premium support","Upgrade","uncanny-automator")},{id:"elite-addons",icon:"gem",title:(0,lX._x)("Elite Addons","Upgrade","uncanny-automator")}],Qi={ALL:{[pD.LITE]:{status:Y3.AVAILABLE},[pD.PRO_BASIC]:{status:Y3.AVAILABLE},[pD.PRO_PLUS]:{status:Y3.AVAILABLE},[pD.PRO_ELITE]:{status:Y3.AVAILABLE}},BASIC_AND_UP:{[pD.LITE]:{status:Y3.UNAVAILABLE},[pD.PRO_BASIC]:{status:Y3.AVAILABLE},[pD.PRO_PLUS]:{status:Y3.AVAILABLE},[pD.PRO_ELITE]:{status:Y3.AVAILABLE}},PLUS_AND_UP:{[pD.LITE]:{status:Y3.UNAVAILABLE},[pD.PRO_BASIC]:{status:Y3.UNAVAILABLE},[pD.PRO_PLUS]:{status:Y3.AVAILABLE},[pD.PRO_ELITE]:{status:Y3.AVAILABLE}},ELITE_ONLY:{[pD.LITE]:{status:Y3.UNAVAILABLE},[pD.PRO_BASIC]:{status:Y3.UNAVAILABLE},[pD.PRO_PLUS]:{status:Y3.UNAVAILABLE},[pD.PRO_ELITE]:{status:Y3.AVAILABLE}}},Qa={tiers:[pD.LITE,pD.PRO_BASIC,pD.PRO_PLUS,pD.PRO_ELITE],sections:[{name:(0,lX._x)("Usage limits","Upgrade","uncanny-automator"),icon:"hand",rows:[{id:"usage-limits-ai-tool-uses",name:(0,lX._x)("Manage this site with your AI","Upgrade","uncanny-automator"),description:(0,lX._x)("Connect ChatGPT, Claude, Gemini or any AI app that supports remote MCP servers. A tool use is one thing your AI does on this site through Uncanny Automator. Lite includes up to 150 tool uses a day, 300 a day in your first week.","Upgrade","uncanny-automator"),tiers:{[pD.LITE]:{status:Y3.LIMITED,text:(0,lX._x)("Up to 150 tool uses a day","Upgrade","uncanny-automator")},[pD.PRO_BASIC]:{status:Y3.AVAILABLE,text:(0,lX._x)("Unlimited tool usage","Upgrade","uncanny-automator")},[pD.PRO_PLUS]:{status:Y3.AVAILABLE,text:(0,lX._x)("Unlimited tool usage","Upgrade","uncanny-automator")},[pD.PRO_ELITE]:{status:Y3.AVAILABLE,text:(0,lX._x)("Unlimited tool usage","Upgrade","uncanny-automator")}}},{id:"usage-limits-number-of-sites",name:(0,lX._x)("Connect sites","Upgrade","uncanny-automator"),description:(0,lX._x)("Connect your AI to as many Lite sites as you like. On a paid plan, this is the number of sites your license activates.","Upgrade","uncanny-automator"),tiers:{[pD.LITE]:{status:!1,text:(0,lX._x)("Unlimited","Upgrade","uncanny-automator")},[pD.PRO_BASIC]:{status:!1,text:"1"},[pD.PRO_PLUS]:{status:!1,text:"10"},[pD.PRO_ELITE]:{status:!1,text:"50"}}},{id:"usage-limits-number-of-recipes",name:(0,lX._x)("Unlimited recipes","Upgrade","uncanny-automator"),description:(0,lX._x)("Build as many recipes as you need. Lite recipes use the triggers and actions included with Lite. Pro recipes add every Pro trigger and action, plus schedules, delays, conditions and loops.","Upgrade","uncanny-automator"),tiers:Qi.ALL},{id:"usage-limits-number-of-recipe-runs",name:(0,lX._x)("Unlimited recipe runs","Upgrade","uncanny-automator"),description:(0,lX._x)("Run your recipes 1 or 1,000,000 times; with Uncanny Automator there are no additional costs.","Upgrade","uncanny-automator"),tiers:Qi.ALL},{id:"usage-limits-number-of-recipe-logs",name:(0,lX._x)("Unlimited detailed logging","Upgrade","uncanny-automator"),description:(0,lX._x)("Track every trigger and action with comprehensive logs. Store logs for as long as you want.","Upgrade","uncanny-automator"),tiers:Qi.ALL},{id:"usage-limits-multisite-support",name:(0,lX._x)("WordPress Multisite support","Upgrade","uncanny-automator"),description:(0,lX._x)("Use Automator in a multisite environment or send data and automate workflows between completely separate WordPress sites.","Upgrade","uncanny-automator"),learn_more:"https://automatorplugin.com/wordpress-multisite/",tiers:Qi.PLUS_AND_UP}]},{name:(0,lX._x)("Integrations","Upgrade","uncanny-automator"),icon:"grid-round-2-plus",rows:[{id:"integrations-more-recipe-items",name:(0,lX._x)("Every Pro trigger, action and token","Upgrade","uncanny-automator"),description:(0,lX._x)("Hundreds more triggers and actions for your recipes and your connected AI, including WooCommerce actions and user management.","Upgrade","uncanny-automator"),learn_more:"https://automatorplugin.com/all-triggers-and-actions/",tiers:Qi.BASIC_AND_UP},{id:"integrations-app-credits",name:(0,lX._x)("App credits","Upgrade","uncanny-automator"),description:s1` ${(0,lX._x)("Get credits for apps like:","Upgrade","uncanny-automator")} <ul> ${["FACEBOOK","INSTAGRAM","TWITTER","ZOOM","GOOGLE_CALENDAR","GOOGLESHEET","SLACK"].map(e=>s1` <li> <uap-d-integrations-name code=${e}></uap-d-integrations-name> </li> `)} </ul> ${(0,lX._x)("...and many more!","Upgrade","uncanny-automator")} `,learn_more:"https://automatorplugin.com/knowledge-base/what-are-credits/",tiers:{[pD.LITE]:{status:Y3.LIMITED,text:"250 credits"},[pD.PRO_BASIC]:{status:Y3.AVAILABLE,text:"Unlimited"},[pD.PRO_PLUS]:{status:Y3.AVAILABLE,text:"Unlimited"},[pD.PRO_ELITE]:{status:Y3.AVAILABLE,text:"Unlimited"}}}]},{name:(0,lX._x)("Core features","Upgrade","uncanny-automator"),icon:"star",rows:[{id:"core-features-filter",name:(0,lX._x)("Conditional actions","Upgrade","uncanny-automator"),description:(0,lX._x)("Apply logic to determine whether actions should run.","Upgrade","uncanny-automator"),learn_more:"https://automatorplugin.com/knowledge-base/action-filters-conditions/",tiers:Qi.BASIC_AND_UP},{id:"core-features-schedule-delay",name:(0,lX._x)("Scheduled/delayed actions","Upgrade","uncanny-automator"),description:(0,lX._x)("Set workflows to run after a delay or at a specific day and time.","Upgrade","uncanny-automator"),learn_more:"https://automatorplugin.com/knowledge-base/scheduled-actions/",tiers:Qi.BASIC_AND_UP},{id:"core-features-users-loops",name:(0,lX._x)("Users loops","Upgrade","uncanny-automator"),description:(0,lX._x)("Run actions on users in bulk (e.g., send an email to all users who purchased a product).","Upgrade","uncanny-automator"),learn_more:"https://automatorplugin.com/knowledge-base/user-loops/",tiers:Qi.BASIC_AND_UP},{id:"core-features-posts-loops",name:(0,lX._x)("Posts loops","Upgrade","uncanny-automator"),description:(0,lX._x)("Run actions on posts in bulk (e.g., change all posts by one author to another author).","Upgrade","uncanny-automator"),learn_more:"https://automatorplugin.com/knowledge-base/post-loops/",tiers:Qi.BASIC_AND_UP},{id:"core-features-token-loops",name:(0,lX._x)("Token loops","Upgrade","uncanny-automator"),description:(0,lX._x)("Run actions on multiple items in a token (e.g., import users, posts and more from CSV, JSON or XML).","Upgrade","uncanny-automator"),learn_more:"https://automatorplugin.com/knowledge-base/token-loops/",tiers:Qi.BASIC_AND_UP},{id:"core-features-create-users",name:(0,lX._x)("Create new WordPress users","Upgrade","uncanny-automator"),description:(0,lX._x)("Automatically add new users to your WordPress site based on specific triggers or conditions.","Upgrade","uncanny-automator"),learn_more:"https://automatorplugin.com/article-categories/registering-users/",tiers:Qi.BASIC_AND_UP},{id:"core-features-run-now",name:(0,lX._x)("Run now (instant) recipes","Upgrade","uncanny-automator"),description:(0,lX._x)("Run recipes with a click.","Upgrade","uncanny-automator"),learn_more:"https://automatorplugin.com/knowledge-base/run-now/",tiers:Qi.BASIC_AND_UP},{id:"core-features-schedule-recipes",name:(0,lX._x)("Scheduled recipes","Upgrade","uncanny-automator"),description:(0,lX._x)("Run recipes at a specific date and time or at specific intervals.","Upgrade","uncanny-automator"),learn_more:"https://automatorplugin.com/knowledge-base/schedule/",tiers:Qi.BASIC_AND_UP},{id:"core-features-magic-button",name:(0,lX._x)("Magic buttons and magic links","Upgrade","uncanny-automator"),description:(0,lX._x)("Create links and buttons that perform actions on users when clicked (e.g. register the user for a webinar).","Upgrade","uncanny-automator"),learn_more:"https://automatorplugin.com/knowledge-base/magic-button/",tiers:Qi.BASIC_AND_UP}]},{name:(0,lX._x)("Power features","Upgrade","uncanny-automator"),icon:"dumbbell",rows:[{id:"power-features-email-attachments",name:(0,lX._x)("Email attachments","Upgrade","uncanny-automator"),description:(0,lX._x)("Attach files directly to emails sent with Uncanny Automator.","Upgrade","uncanny-automator"),learn_more:"https://automatorplugin.com/wp-automation-stripe-membermouse/#:~:text=for%20course%20enrollment.-,Attach%20files%20to%20emails,-Another%20important%20new",tiers:Qi.ALL},{id:"power-features-custom-triggers-actions",name:(0,lX._x)("Custom triggers and actions","Upgrade","uncanny-automator"),description:(0,lX._x)("Create custom triggers and actions to integrate Automator with almost any WordPress plugin.","Upgrade","uncanny-automator"),tiers:Qi.BASIC_AND_UP},{id:"power-features-import-files",name:(0,lX._x)("Import CSV, XML, JSON","Upgrade","uncanny-automator"),description:(0,lX._x)("Import data from external sources and use it to create users, posts, custom post types and more.","Upgrade","uncanny-automator"),learn_more:"https://automatorplugin.com/automator-pro-6-0-csv-json-xml-custom-actions-more/",tiers:Qi.BASIC_AND_UP},{id:"power-features-data-formatter",name:(0,lX._x)("Data Formatter/Generator","Upgrade","uncanny-automator"),description:(0,lX._x)("Easily manipulate and generate data within your recipes.","Upgrade","uncanny-automator"),learn_more:"https://automatorplugin.com/knowledge-base/the-formatter-action/",tiers:Qi.BASIC_AND_UP},{id:"power-features-date-time",name:(0,lX._x)("Date and Time tools","Upgrade","uncanny-automator"),description:(0,lX._x)("Work with dates and times using easy-to-use tools.","Upgrade","uncanny-automator"),learn_more:"https://automatorplugin.com/integration/date-and-time/",tiers:Qi.BASIC_AND_UP},{id:"power-features-qr-codes",name:(0,lX._x)("Generate QR Codes","Upgrade","uncanny-automator"),description:(0,lX._x)("Create and send QR codes in your recipes.","Upgrade","uncanny-automator"),learn_more:"https://automatorplugin.com/automator-the-1-qr-code-generator-for-wordpress/",tiers:Qi.BASIC_AND_UP},{id:"power-features-run-code",name:(0,lX._x)("Run PHP and JavaScript","Upgrade","uncanny-automator"),description:(0,lX._x)("Execute custom code.","Upgrade","uncanny-automator"),learn_more:"https://automatorplugin.com/integration/run-code/",tiers:Qi.BASIC_AND_UP},{id:"power-features-database-query",name:(0,lX._x)("Database query","Upgrade","uncanny-automator"),description:(0,lX._x)("Run SQL queries to pull data directly from your WordPress database to use in recipes.","Upgrade","uncanny-automator"),learn_more:"https://automatorplugin.com/new-integration-database-query/",tiers:Qi.BASIC_AND_UP},{id:"power-features-automatic-cleanup",name:(0,lX._x)("Automatic data cleanup","Upgrade","uncanny-automator"),description:(0,lX._x)("Automatically prune recipe logs older than a specified age.","Upgrade","uncanny-automator"),learn_more:"https://automatorplugin.com/new-in-pro-log-options-woo-bookings-more/",tiers:Qi.BASIC_AND_UP},{id:"power-features-advanced-logging",name:(0,lX._x)("Advanced log filters","Upgrade","uncanny-automator"),description:(0,lX._x)("Filter your recipe logs by recipe, user, status and more.","Upgrade","uncanny-automator"),learn_more:"https://automatorplugin.com/knowledge-base/action-filters-conditions/",tiers:Qi.BASIC_AND_UP}]},{name:(0,lX._x)("Webhooks","Upgrade","uncanny-automator"),icon:"webhook",rows:[{id:"webhook-authentication",name:(0,lX._x)("Authentication","Upgrade","uncanny-automator"),description:(0,lX._x)("Securely authenticate your webhooks.","Upgrade","uncanny-automator"),tiers:Qi.ALL},{id:"webhook-headers",name:(0,lX._x)("Headers","Upgrade","uncanny-automator"),description:(0,lX._x)("Add custom headers to your webhook requests.","Upgrade","uncanny-automator"),tiers:Qi.ALL},{id:"webhook-encoding",name:(0,lX._x)("Multiple encoding types","Upgrade","uncanny-automator"),description:(0,lX._x)("Send data in various formats like JSON, XML, and more.","Upgrade","uncanny-automator"),tiers:Qi.ALL},{id:"webhook-nested-data",name:(0,lX._x)("Nested data","Upgrade","uncanny-automator"),description:(0,lX._x)("Easily send complex, nested data structures.","Upgrade","uncanny-automator"),tiers:Qi.ALL},{id:"webhook-send",name:(0,lX._x)("Send webhooks","Upgrade","uncanny-automator"),description:(0,lX._x)("Trigger actions in other apps by sending data from your site.","Upgrade","uncanny-automator"),learn_more:"https://automatorplugin.com/knowledge-base/send-data-to-a-webhook/",tiers:Qi.ALL},{id:"webhook-receive",name:(0,lX._x)("Receive webhooks","Upgrade","uncanny-automator"),description:(0,lX._x)("Enable other apps to send data to your site, triggering recipes remotely.","Upgrade","uncanny-automator"),learn_more:"https://automatorplugin.com/knowledge-base/webhook-triggers/",tiers:Qi.BASIC_AND_UP}]},{name:(0,lX._x)("Customer support","Upgrade","uncanny-automator"),icon:"heart",rows:[{id:"support-premium",name:(0,lX._x)("Premium support","Upgrade","uncanny-automator"),description:(0,lX._x)("Priority support to help you get your recipes up and running smoothly.","Upgrade","uncanny-automator"),tiers:Qi.BASIC_AND_UP}]},{name:(0,lX._x)("Addons","Upgrade","uncanny-automator"),icon:"plug",rows:[{id:"addon-custom-user-fields",name:(0,lX._x)("Custom User Fields","Upgrade","uncanny-automator"),description:(0,lX._x)('Add custom fields (e.g. "Job Title") to user profiles and integrate them into Automator recipes for personalized workflows.',"Upgrade","uncanny-automator"),learn_more:"https://automatorplugin.com/custom-user-fields-addon/",tiers:Qi.PLUS_AND_UP},{id:"addon-restrict-content",name:(0,lX._x)("Restrict Content","Upgrade","uncanny-automator"),description:(0,lX._x)("Restrict access to posts, pages, blocks, and shortcodes by role, access level, and profile fields to create membership sites, paywalls, and more.","Upgrade","uncanny-automator"),learn_more:"https://automatorplugin.com/restrict-content-addon/",tiers:Qi.PLUS_AND_UP},{id:"addon-user-lists",name:(0,lX._x)("User Lists","Upgrade","uncanny-automator"),description:(0,lX._x)("Manage mailing lists effortlessly to set up email newsletters and targeted campaigns. Let users manage their subscriptions with ease.","Upgrade","uncanny-automator"),learn_more:"https://automatorplugin.com/user-lists-addon/",tiers:Qi.PLUS_AND_UP},{id:"addon-user-tags",name:(0,lX._x)("User Tags","Upgrade","uncanny-automator"),description:(0,lX._x)('Create your own tags for WordPress users (e.g. "VIP" or "Needs follow-up") and let recipes add tags, remove them, and run actions for every tagged user.',"Upgrade","uncanny-automator"),learn_more:"https://automatorplugin.com/user-tags-addon/",tiers:Qi.PLUS_AND_UP},{id:"addon-dynamic-content",name:(0,lX._x)("Dynamic Content","Upgrade","uncanny-automator"),description:(0,lX._x)("Generate dynamic blocks and shortcodes controlled by recipes. Show a progress bar that updates with purchases or display AI responses after form submissions.","Upgrade","uncanny-automator"),learn_more:"https://automatorplugin.com/knowledge-base/dynamic-content/",tiers:Qi.ELITE_ONLY},{id:"addon-elite-integrations",name:(0,lX._x)("Elite Integrations","Upgrade","uncanny-automator"),description:(0,lX._x)("Connect your WordPress site to advanced platforms like Salesforce, enabling seamless data synchronization and enhanced business processes.","Upgrade","uncanny-automator"),learn_more:"https://automatorplugin.com/elite-integrations-addon/",tiers:Qi.ELITE_ONLY}]}]};var Qn=a(8627),Qo=a.n(Qn);let Qr=class extends ld{constructor(){super(...arguments),this.licenseController=new vE(this,$U)}static{this.styles=sf`${sm(Qo())}`}render(){return s1` <table> ${this.templateHeader()} ${this.templateSections()} ${this.templateFooter()} </table> `}templateHeader(){return s1` <thead> <tr class="header-row"> <th class="header-row-column-id"></th> ${Qa.tiers.map(e=>this.templateHeaderTier(e))} </tr> </thead> `}templateHeaderTier(e){let{status:t,data:i,isLoading:a,isFetching:n,isError:o}=this.licenseController.result;return a||o?this.templateHeaderTierBase(e):"success"===t&&i?i.current_plan===e?this.templateHeaderTierCurrent(e):this.templateHeaderTierBase(e):"pending"===t||n&&!i?this.templateHeaderTierBase(e):void 0}templateHeaderTierBase(e){return s1` <th class="header-row-column-tier"> <div class="header-row-column-tier-name"> <uap-d-license-tier-name tier-id=${e}></uap-d-license-tier-name> </div> </th> `}templateHeaderTierCurrent(e){return s1` <th class="header-row-column-tier"> <div class="current-plan-badge"> <div class="current-plan-badge-header"> <span class="current-plan-badge-header-desktop"> ${(0,lX.__)("Current plan","uncanny-automator")} </span> <span class="current-plan-badge-header-mobile"> ${(0,lX.__)("Current","uncanny-automator")} </span> </div> <div class="current-plan-badge-name"> <div class="header-row-column-tier-name"> <uap-d-license-tier-name tier-id=${e}></uap-d-license-tier-name> </div> </div> </div> </th> `}templateSections(){return s1` <tbody> ${Qa.sections.map(e=>this.templateSection(e))} </tbody> `}templateSection(e){return s1` <tr class="section-header"> <td colspan=${this.numberOfColumns}> <uas-icon code=${e.icon}></uas-icon> ${e.name} </td> </tr> ${e.rows.map(e=>this.templateSectionRow(e))} `}templateSectionRow(e){return s1` <tr class="section-row" data-id=${e.id} > <td class="section-row-column-id"> <div class="section-row-name">${e.name}</div> ${this.templateSectionRowDescription(e.description)} ${this.templateSectionRowLearnMore(e.id,e.learn_more)} </td> ${Qa.tiers.map(t=>this.templateSectionRowTier(e.tiers[t]))} </tr> `}templateSectionRowDescription(e){if(!(!rK(e)||"string"==typeof e&&rY(e)))return s1` <div class="section-row-description">${e}</div> `}templateSectionRowLearnMore(e,t){if(!(!rK(t)||"string"==typeof t&&rY(t)))return t=r0(t,{campaign:br.LEARN_MORE,content:`${e}-learn-more`}),s1` <a href="${t}" target="_blank" class="section-row-learn-more" > ${(0,lX.__)("Learn more","uncanny-automator")} </a> `}templateSectionRowTier(e){if(rK(e))return s1` <td class="section-row-column-tier"> ${this.templateSectionRowTierStatus(e.status)} <div class="section-row-column-tier-text"> ${e.text} </div> </td> `}templateSectionRowTierStatus(e){if(!("string"!=typeof e||rY(e)))return s1` <uap-page-upgrade-table-status status-id=${e} ></uap-page-upgrade-table-status > `}templateFooter(){return s1` <tfoot> <tr> <td colspan=${this.numberOfColumns}> <div class="cta"> ${this.templateCTAText()} ${this.templateCTAButton()} </div> </td> </tr> </tfoot> `}templateCTAText(){let{status:e,data:t,isLoading:i,isFetching:a,isError:n}=this.licenseController.result;if(i)return s1`<uas-skeleton width="15em"></uas-skeleton>`;if(!n){if("success"===e&&t)if("pro-installed-license-active-pro-elite"===t.scenario_id)return s1` <div class="cta-text"> 🎉 ${(0,lX._x)("Your plan includes every Pro feature.","Upgrade","uncanny-automator")} </div> `;else return s1` <div class="cta-text"> ${(0,lX._x)("Compare plans and see what each one adds","Upgrade","uncanny-automator")} </div> `;if("pending"===e||a&&!t)return s1`<uas-skeleton width="15em"></uas-skeleton>`}}templateCTAButton(){let{status:e,data:t,isLoading:i,isFetching:a,isError:n}=this.licenseController.result;if(i)return this.templateCTAButtonPlaceholder();if(n)return this.templateCTAButtonError();if("success"===e&&t)if("pro-installed-license-active-pro-elite"===t.scenario_id)return s1` <uas-button disabled filled > ${(0,lX._x)("See plans","Upgrade","uncanny-automator")} </uas-button> `;else{if(rY(t.cta))return;return s1`${t.cta.map(e=>this.templateSummaryCTAButton(e))}`}if("pending"===e||a&&!t)return this.templateCTAButtonPlaceholder()}templateCTAButtonPlaceholder(){return s1` <uas-button color="secondary" disabled is-placeholder > ${(0,lX._x)("Loading...","uncanny-automator")} </uas-button> `}templateCTAButtonError(){}templateSummaryCTAButton(e){return s1` <uas-button color="success" href=${e.url} > ${e.icon?s1`<uas-icon code=${e.icon}></uas-icon>`:""} ${e.label} </uas-button> `}get numberOfColumns(){return Qa.tiers.length+1}};Qr=function(e,t,i,a){var n,o=arguments.length,r=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(r=(o<3?n(r):o>3?n(t,i,r):n(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r}([lJ("uap-page-upgrade-table")],Qr);var Qs=a(1653),Ql=a.n(Qs);let Qc=class extends ld{constructor(){super(...arguments),this.licenseController=new vE(this,$U)}static{this.styles=sf`${sm(Ql())}`}render(){return s1` <div class="banner"> ${this.templateBackground()} ${this.templateContent()} </div> `}templateContent(){return s1` <div class="banner-content"> <div class="banner-content-logo"> <img src="${BV}"/> </div> <h1 class="banner-content-title" > ${(0,lX._x)("Manage and automate this site with your AI, without limits","Upgrade","uncanny-automator")} </h1> <div class="banner-content-description"> <uas-markdown allowed-tags="strong" .content=${(0,b4.escapeHTML)((0,lX._x)("Uncanny Automator is an MCP server for WordPress with a built-in automation engine. Every paid plan has **unlimited tool usage** for your connected AI, **every Pro trigger and action**, unlimited app credits and priority support.","Upgrade","uncanny-automator"))}> </uas-markdown> </div> <div class="banner-content-cta"> ${this.templateCTAButton()} </div> </div> `}templateCTAButton(){let{status:e,data:t,isLoading:i,isFetching:a,isError:n}=this.licenseController.result;if(i)return this.templateCTAButtonPlaceholder();if(n)return this.templateCTAButtonError();if("success"===e&&t)if("pro-installed-license-active-pro-elite"===t.scenario_id)return s1` <uas-button disabled filled > ${(0,lX._x)("See plans","Upgrade","uncanny-automator")} </uas-button> <div class="banner-content-cta-disclaimer"> 🎉 ${(0,lX._x)("Your plan includes every Pro feature.","Upgrade","uncanny-automator")} </div> `;else{if(rY(t.cta))return;return s1` ${$A(t.cta,(e,t)=>t,e=>this.templateSummaryCTAButton(e))} `}if("pending"===e||a&&!t)return this.templateCTAButtonPlaceholder()}templateSummaryCTAButton(e){return s1` <uas-button color="success" href=${r0(e.url,{campaign:br.UPGRADE_TO_PRO,content:"page-upgrade-banner-cta"})} filled > ${e.icon?s1`<uas-icon code=${e.icon??""}></uas-icon>`:""} ${e.label} </uas-button> `}templateCTAButtonPlaceholder(){return s1` <uas-button color="secondary" disabled is-placeholder > ${(0,lX._x)("Loading...","uncanny-automator")} </uas-button> `}templateCTAButtonError(){}templateBackground(){return s1` <div class="banner-background"> <div class="banner-background-items"> ${$A(this.bannerItems,e=>e.id,e=>this.templateBackgroundItem(e))} </div> </div> `}templateBackgroundItem(e){return s1` <div class="banner-background-item"> ${e.icon?s1` <div class="banner-background-item-icon"> <uas-icon code=${e.icon??""} icon-style="solid" ></uas-icon> </div> `:""} ${e.title} </div> `}get bannerItems(){return Qt.sort(()=>.5-Math.random())}};Qc=function(e,t,i,a){var n,o=arguments.length,r=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(r=(o<3?n(r):o>3?n(t,i,r):n(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r}([lJ("uap-page-upgrade-banner")],Qc);var Qd=a(7412),Qu=a.n(Qd);let Qp=class extends ld{static{this.styles=sf`${sm(Qu())}`}connectedCallback(){super.connectedCallback(),this.closest("uap-d-site-auth")||console.error("uap-page-upgrade: Error: <uap-page-upgrade> must be used inside <uap-d-site-auth>")}render(){return s1` <div class="page"> <div class="page-content"> <uap-page-upgrade-banner></uap-page-upgrade-banner> <div class="page-content-inner"> <uap-page-upgrade-table></uap-page-upgrade-table> </div> </div> </div> `}};Qp=function(e,t,i,a){var n,o=arguments.length,r=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(r=(o<3?n(r):o>3?n(t,i,r):n(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r}([lJ("uap-page-upgrade")],Qp);let Qh=window.wp.date;var Qg=a(428),Qm=a.n(Qg);a(5458);var Qf=["onChange","onClose","onDayCreate","onDestroy","onKeyDown","onMonthChange","onOpen","onParseConfig","onReady","onValueUpdate","onYearChange","onPreCalendarPosition"],Qy={_disable:[],allowInput:!1,allowInvalidPreload:!1,altFormat:"F j, Y",altInput:!1,altInputClass:"form-control input",animate:"object"==typeof window&&-1===window.navigator.userAgent.indexOf("MSIE"),ariaDateFormat:"F j, Y",autoFillDefaultTime:!0,clickOpens:!0,closeOnSelect:!0,conjunction:", ",dateFormat:"Y-m-d",defaultHour:12,defaultMinute:0,defaultSeconds:0,disable:[],disableMobile:!1,enableSeconds:!1,enableTime:!1,errorHandler:function(e){return"u">typeof console&&console.warn(e)},getWeek:function(e){var t=new Date(e.getTime());t.setHours(0,0,0,0),t.setDate(t.getDate()+3-(t.getDay()+6)%7);var i=new Date(t.getFullYear(),0,4);return 1+Math.round(((t.getTime()-i.getTime())/864e5-3+(i.getDay()+6)%7)/7)},hourIncrement:1,ignoredFocusElements:[],inline:!1,locale:"default",minuteIncrement:5,mode:"single",monthSelectorType:"dropdown",nextArrow:"<svg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 17 17'><g></g><path d='M13.207 8.472l-7.854 7.854-0.707-0.707 7.146-7.146-7.146-7.148 0.707-0.707 7.854 7.854z' /></svg>",noCalendar:!1,now:new Date,onChange:[],onClose:[],onDayCreate:[],onDestroy:[],onKeyDown:[],onMonthChange:[],onOpen:[],onParseConfig:[],onReady:[],onValueUpdate:[],onYearChange:[],onPreCalendarPosition:[],plugins:[],position:"auto",positionElement:void 0,prevArrow:"<svg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 17 17'><g></g><path d='M5.207 8.471l7.146 7.147-0.707 0.707-7.853-7.854 7.854-7.853 0.707 0.707-7.147 7.146z' /></svg>",shorthandCurrentMonth:!1,showMonths:1,static:!1,time_24hr:!1,weekNumbers:!1,wrap:!1},Qb={weekdays:{shorthand:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],longhand:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},months:{shorthand:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],longhand:["January","February","March","April","May","June","July","August","September","October","November","December"]},daysInMonth:[31,28,31,30,31,30,31,31,30,31,30,31],firstDayOfWeek:0,ordinal:function(e){var t=e%100;if(t>3&&t<21)return"th";switch(t%10){case 1:return"st";case 2:return"nd";case 3:return"rd";default:return"th"}},rangeSeparator:" to ",weekAbbreviation:"Wk",scrollTitle:"Scroll to increment",toggleTitle:"Click to toggle",amPM:["AM","PM"],yearAriaLabel:"Year",monthAriaLabel:"Month",hourAriaLabel:"Hour",minuteAriaLabel:"Minute",time_24hr:!1},Qv=function(e,t){return void 0===t&&(t=2),("000"+e).slice(-1*t)},Q_=function(e){return+(!0===e)};function Qw(e,t){var i;return function(){var a=this,n=arguments;clearTimeout(i),i=setTimeout(function(){return e.apply(a,n)},t)}}var Qx=function(e){return e instanceof Array?e:[e]};function Qk(e,t,i){if(!0===i)return e.classList.add(t);e.classList.remove(t)}function QE(e,t,i){var a=window.document.createElement(e);return i=i||"",a.className=t=t||"",void 0!==i&&(a.textContent=i),a}function QS(e){for(;e.firstChild;)e.removeChild(e.firstChild)}function QC(e,t){var i=QE("div","numInputWrapper"),a=QE("input","numInput "+e),n=QE("span","arrowUp"),o=QE("span","arrowDown");if(-1===navigator.userAgent.indexOf("MSIE 9.0")?a.type="number":(a.type="text",a.pattern="\\d*"),void 0!==t)for(var r in t)a.setAttribute(r,t[r]);return i.appendChild(a),i.appendChild(n),i.appendChild(o),i}function QT(e){try{if("function"==typeof e.composedPath)return e.composedPath()[0];return e.target}catch{return e.target}}var QI=function(){},QD=function(e,t,i){return i.months[t?"shorthand":"longhand"][e]},QA={D:QI,F:function(e,t,i){e.setMonth(i.months.longhand.indexOf(t))},G:function(e,t){e.setHours(12*(e.getHours()>=12)+parseFloat(t))},H:function(e,t){e.setHours(parseFloat(t))},J:function(e,t){e.setDate(parseFloat(t))},K:function(e,t,i){e.setHours(e.getHours()%12+12*Q_(RegExp(i.amPM[1],"i").test(t)))},M:function(e,t,i){e.setMonth(i.months.shorthand.indexOf(t))},S:function(e,t){e.setSeconds(parseFloat(t))},U:function(e,t){return new Date(1e3*parseFloat(t))},W:function(e,t,i){var a=parseInt(t),n=new Date(e.getFullYear(),0,2+(a-1)*7,0,0,0,0);return n.setDate(n.getDate()-n.getDay()+i.firstDayOfWeek),n},Y:function(e,t){e.setFullYear(parseFloat(t))},Z:function(e,t){return new Date(t)},d:function(e,t){e.setDate(parseFloat(t))},h:function(e,t){e.setHours(12*(e.getHours()>=12)+parseFloat(t))},i:function(e,t){e.setMinutes(parseFloat(t))},j:function(e,t){e.setDate(parseFloat(t))},l:QI,m:function(e,t){e.setMonth(parseFloat(t)-1)},n:function(e,t){e.setMonth(parseFloat(t)-1)},s:function(e,t){e.setSeconds(parseFloat(t))},u:function(e,t){return new Date(parseFloat(t))},w:QI,y:function(e,t){e.setFullYear(2e3+parseFloat(t))}},Q$={D:"",F:"",G:"(\\d\\d|\\d)",H:"(\\d\\d|\\d)",J:"(\\d\\d|\\d)\\w+",K:"",M:"",S:"(\\d\\d|\\d)",U:"(.+)",W:"(\\d\\d|\\d)",Y:"(\\d{4})",Z:"(.+)",d:"(\\d\\d|\\d)",h:"(\\d\\d|\\d)",i:"(\\d\\d|\\d)",j:"(\\d\\d|\\d)",l:"",m:"(\\d\\d|\\d)",n:"(\\d\\d|\\d)",s:"(\\d\\d|\\d)",u:"(.+)",w:"(\\d\\d|\\d)",y:"(\\d{2})"},QO={Z:function(e){return e.toISOString()},D:function(e,t,i){return t.weekdays.shorthand[QO.w(e,t,i)]},F:function(e,t,i){return QD(QO.n(e,t,i)-1,!1,t)},G:function(e,t,i){return Qv(QO.h(e,t,i))},H:function(e){return Qv(e.getHours())},J:function(e,t){return void 0!==t.ordinal?e.getDate()+t.ordinal(e.getDate()):e.getDate()},K:function(e,t){return t.amPM[Q_(e.getHours()>11)]},M:function(e,t){return QD(e.getMonth(),!0,t)},S:function(e){return Qv(e.getSeconds())},U:function(e){return e.getTime()/1e3},W:function(e,t,i){return i.getWeek(e)},Y:function(e){return Qv(e.getFullYear(),4)},d:function(e){return Qv(e.getDate())},h:function(e){return e.getHours()%12?e.getHours()%12:12},i:function(e){return Qv(e.getMinutes())},j:function(e){return e.getDate()},l:function(e,t){return t.weekdays.longhand[e.getDay()]},m:function(e){return Qv(e.getMonth()+1)},n:function(e){return e.getMonth()+1},s:function(e){return e.getSeconds()},u:function(e){return e.getTime()},w:function(e){return e.getDay()},y:function(e){return String(e.getFullYear()).substring(2)}},QR=function(e){var t=e.config,i=void 0===t?Qy:t,a=e.l10n,n=void 0===a?Qb:a,o=e.isMobile,r=void 0!==o&&o;return function(e,t,a){var o=a||n;return void 0===i.formatDate||r?t.split("").map(function(t,a,n){return QO[t]&&"\\"!==n[a-1]?QO[t](e,o,i):"\\"!==t?t:""}).join(""):i.formatDate(e,t,o)}},QM=function(e){var t=e.config,i=void 0===t?Qy:t,a=e.l10n,n=void 0===a?Qb:a;return function(e,t,a,o){if(0===e||e){var r,s=o||n;if(e instanceof Date)r=new Date(e.getTime());else if("string"!=typeof e&&void 0!==e.toFixed)r=new Date(e);else if("string"==typeof e){var l=t||(i||Qy).dateFormat,c=String(e).trim();if("today"===c)r=new Date,a=!0;else if(i&&i.parseDate)r=i.parseDate(e,l);else if(/Z$/.test(c)||/GMT$/.test(c))r=new Date(e);else{for(var d=void 0,u=[],p=0,h=0,g="";p<l.length;p++){var m=l[p],f="\\"===m,y="\\"===l[p-1]||f;if(Q$[m]&&!y){var b=new RegExp(g+=Q$[m]).exec(e);b&&(d=!0)&&u["Y"!==m?"push":"unshift"]({fn:QA[m],val:b[++h]})}else f||(g+=".")}r=i&&i.noCalendar?new Date(new Date().setHours(0,0,0,0)):new Date(new Date().getFullYear(),0,1,0,0,0,0),u.forEach(function(e){var t=e.fn,i=e.val;return r=t(r,i,s)||r}),r=d?r:void 0}}return r instanceof Date&&!isNaN(r.getTime())?(!0===a&&r.setHours(0,0,0,0),r):void i.errorHandler(Error("Invalid date provided: "+e))}}};function QL(e,t,i){return(void 0===i&&(i=!0),!1!==i)?new Date(e.getTime()).setHours(0,0,0,0)-new Date(t.getTime()).setHours(0,0,0,0):e.getTime()-t.getTime()}var QN=function(e,t,i){return 3600*e+60*t+i},QP=function(e){var t=Math.floor(e/3600),i=(e-3600*t)/60;return[t,i,e-3600*t-60*i]};function Qz(e){var t=e.defaultHour,i=e.defaultMinute,a=e.defaultSeconds;if(void 0!==e.minDate){var n=e.minDate.getHours(),o=e.minDate.getMinutes(),r=e.minDate.getSeconds();t<n&&(t=n),t===n&&i<o&&(i=o),t===n&&i===o&&a<r&&(a=e.minDate.getSeconds())}if(void 0!==e.maxDate){var s=e.maxDate.getHours(),l=e.maxDate.getMinutes();(t=Math.min(t,s))===s&&(i=Math.min(l,i)),t===s&&i===l&&(a=e.maxDate.getSeconds())}return{hours:t,minutes:i,seconds:a}}tt();var QU=function(){return(QU=Object.assign||function(e){for(var t,i=1,a=arguments.length;i<a;i++)for(var n in t=arguments[i])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}).apply(this,arguments)},QF=function(){for(var e=0,t=0,i=arguments.length;t<i;t++)e+=arguments[t].length;for(var a=Array(e),n=0,t=0;t<i;t++)for(var o=arguments[t],r=0,s=o.length;r<s;r++,n++)a[n]=o[r];return a};function Qj(e,t){for(var i=Array.prototype.slice.call(e).filter(function(e){return e instanceof HTMLElement}),a=[],n=0;n<i.length;n++){var o=i[n];try{if(null!==o.getAttribute("data-fp-omit"))continue;void 0!==o._flatpickr&&(o._flatpickr.destroy(),o._flatpickr=void 0),o._flatpickr=function(e,t){var i,a={config:QU(QU({},Qy),QB.defaultConfig),l10n:Qb};function n(){var e;return(null==(e=a.calendarContainer)?void 0:e.getRootNode()).activeElement||document.activeElement}function o(e){return e.bind(a)}function r(){var e=a.config;!1===e.weekNumbers&&1===e.showMonths||!0!==e.noCalendar&&window.requestAnimationFrame(function(){if(void 0!==a.calendarContainer&&(a.calendarContainer.style.visibility="hidden",a.calendarContainer.style.display="block"),void 0!==a.daysContainer){var t=(a.days.offsetWidth+1)*e.showMonths;a.daysContainer.style.width=t+"px",a.calendarContainer.style.width=t+(void 0!==a.weekWrapper?a.weekWrapper.offsetWidth:0)+"px",a.calendarContainer.style.removeProperty("visibility"),a.calendarContainer.style.removeProperty("display")}})}function s(e){if(0===a.selectedDates.length){var t=void 0===a.config.minDate||QL(new Date,a.config.minDate)>=0?new Date:new Date(a.config.minDate.getTime()),i=Qz(a.config);t.setHours(i.hours,i.minutes,i.seconds,t.getMilliseconds()),a.selectedDates=[t],a.latestSelectedDateObj=t}void 0!==e&&"blur"!==e.type&&function(e){e.preventDefault();var t="keydown"===e.type,i=QT(e);void 0!==a.amPM&&i===a.amPM&&(a.amPM.textContent=a.l10n.amPM[Q_(a.amPM.textContent===a.l10n.amPM[0])]);var n=parseFloat(i.getAttribute("min")),o=parseFloat(i.getAttribute("max")),r=parseFloat(i.getAttribute("step")),s=parseInt(i.value,10),l=s+r*(e.delta||(t?38===e.which?1:-1:0));if(void 0!==i.value&&2===i.value.length){var c=i===a.hourElement,d=i===a.minuteElement;l<n?(l=o+l+Q_(!c)+(Q_(c)&&Q_(!a.amPM)),d&&f(void 0,-1,a.hourElement)):l>o&&(l=i===a.hourElement?l-o-Q_(!a.amPM):n,d&&f(void 0,1,a.hourElement)),a.amPM&&c&&(1===r?l+s===23:Math.abs(l-s)>r)&&(a.amPM.textContent=a.l10n.amPM[Q_(a.amPM.textContent===a.l10n.amPM[0])]),i.value=Qv(l)}}(e);var n=a._input.value;l(),J(),a._input.value!==n&&a._debouncedChange()}function l(){if(void 0!==a.hourElement&&void 0!==a.minuteElement){var e=(parseInt(a.hourElement.value.slice(-2),10)||0)%24,t=(parseInt(a.minuteElement.value,10)||0)%60,i=void 0!==a.secondElement?(parseInt(a.secondElement.value,10)||0)%60:0;void 0!==a.amPM&&(e=e%12+12*Q_(a.amPM.textContent===a.l10n.amPM[1]));var n=void 0!==a.config.minTime||a.config.minDate&&a.minDateHasTime&&a.latestSelectedDateObj&&0===QL(a.latestSelectedDateObj,a.config.minDate,!0),o=void 0!==a.config.maxTime||a.config.maxDate&&a.maxDateHasTime&&a.latestSelectedDateObj&&0===QL(a.latestSelectedDateObj,a.config.maxDate,!0);if(void 0!==a.config.maxTime&&void 0!==a.config.minTime&&a.config.minTime>a.config.maxTime){var r=QN(a.config.minTime.getHours(),a.config.minTime.getMinutes(),a.config.minTime.getSeconds()),s=QN(a.config.maxTime.getHours(),a.config.maxTime.getMinutes(),a.config.maxTime.getSeconds()),l=QN(e,t,i);if(l>s&&l<r){var c=QP(r);e=c[0],t=c[1],i=c[2]}}else{if(o){var u=void 0!==a.config.maxTime?a.config.maxTime:a.config.maxDate;(e=Math.min(e,u.getHours()))===u.getHours()&&(t=Math.min(t,u.getMinutes())),t===u.getMinutes()&&(i=Math.min(i,u.getSeconds()))}if(n){var p=void 0!==a.config.minTime?a.config.minTime:a.config.minDate;(e=Math.max(e,p.getHours()))===p.getHours()&&t<p.getMinutes()&&(t=p.getMinutes()),t===p.getMinutes()&&(i=Math.max(i,p.getSeconds()))}}d(e,t,i)}}function c(e){var t=e||a.latestSelectedDateObj;t&&t instanceof Date&&d(t.getHours(),t.getMinutes(),t.getSeconds())}function d(e,t,i){void 0!==a.latestSelectedDateObj&&a.latestSelectedDateObj.setHours(e%24,t,i||0,0),a.hourElement&&a.minuteElement&&!a.isMobile&&(a.hourElement.value=Qv(a.config.time_24hr?e:(12+e)%12+12*Q_(e%12==0)),a.minuteElement.value=Qv(t),void 0!==a.amPM&&(a.amPM.textContent=a.l10n.amPM[Q_(e>=12)]),void 0!==a.secondElement&&(a.secondElement.value=Qv(i)))}function u(e){var t=parseInt(QT(e).value)+(e.delta||0);(t/1e3>1||"Enter"===e.key&&!/[^\d]/.test(t.toString()))&&D(t)}function p(e,t,i,n){return t instanceof Array?t.forEach(function(t){return p(e,t,i,n)}):e instanceof Array?e.forEach(function(e){return p(e,t,i,n)}):void(e.addEventListener(t,i,n),a._handlers.push({remove:function(){return e.removeEventListener(t,i,n)}}))}function h(){G("onChange")}function g(e,t){var i=void 0!==e?a.parseDate(e):a.latestSelectedDateObj||(a.config.minDate&&a.config.minDate>a.now?a.config.minDate:a.config.maxDate&&a.config.maxDate<a.now?a.config.maxDate:a.now),n=a.currentYear,o=a.currentMonth;try{void 0!==i&&(a.currentYear=i.getFullYear(),a.currentMonth=i.getMonth())}catch(e){e.message="Invalid date supplied: "+i,a.config.errorHandler(e)}t&&a.currentYear!==n&&(G("onYearChange"),x()),t&&(a.currentYear!==n||a.currentMonth!==o)&&G("onMonthChange"),a.redraw()}function m(e){var t=QT(e);~t.className.indexOf("arrow")&&f(e,t.classList.contains("arrowUp")?1:-1)}function f(e,t,i){var a=e&&QT(e),n=i||a&&a.parentNode&&a.parentNode.firstChild,o=K("increment");o.delta=t,n&&n.dispatchEvent(o)}function y(e,t,i,n){var o,r=A(t,!0),s=QE("span",e,t.getDate().toString());return s.dateObj=t,s.$i=n,s.setAttribute("aria-label",a.formatDate(t,a.config.ariaDateFormat)),-1===e.indexOf("hidden")&&0===QL(t,a.now)&&(a.todayDateElem=s,s.classList.add("today"),s.setAttribute("aria-current","date")),r?(s.tabIndex=-1,Y(t)&&(s.classList.add("selected"),a.selectedDateElem=s,"range"===a.config.mode&&(Qk(s,"startRange",a.selectedDates[0]&&0===QL(t,a.selectedDates[0],!0)),Qk(s,"endRange",a.selectedDates[1]&&0===QL(t,a.selectedDates[1],!0)),"nextMonthDay"===e&&s.classList.add("inRange")))):s.classList.add("flatpickr-disabled"),"range"===a.config.mode&&(o=t,"range"===a.config.mode&&!(a.selectedDates.length<2)&&QL(o,a.selectedDates[0])>=0&&0>=QL(o,a.selectedDates[1]))&&!Y(t)&&s.classList.add("inRange"),a.weekNumbers&&1===a.config.showMonths&&"prevMonthDay"!==e&&n%7==6&&a.weekNumbers.insertAdjacentHTML("beforeend","<span class='flatpickr-day'>"+a.config.getWeek(t)+"</span>"),G("onDayCreate",s),s}function b(e){e.focus(),"range"===a.config.mode&&L(e)}function v(e){for(var t=e>0?0:a.config.showMonths-1,i=e>0?a.config.showMonths:-1,n=t;n!=i;n+=e)for(var o=a.daysContainer.children[n],r=e>0?0:o.children.length-1,s=e>0?o.children.length:-1,l=r;l!=s;l+=e){var c=o.children[l];if(-1===c.className.indexOf("hidden")&&A(c.dateObj))return c}}function _(e,t){var i=n(),o=O(i||document.body),r=void 0!==e?e:o?i:void 0!==a.selectedDateElem&&O(a.selectedDateElem)?a.selectedDateElem:void 0!==a.todayDateElem&&O(a.todayDateElem)?a.todayDateElem:v(t>0?1:-1);void 0===r?a._input.focus():o?function(e,t){for(var i=-1===e.className.indexOf("Month")?e.dateObj.getMonth():a.currentMonth,n=t>0?a.config.showMonths:-1,o=t>0?1:-1,r=i-a.currentMonth;r!=n;r+=o)for(var s=a.daysContainer.children[r],l=i-a.currentMonth===r?e.$i+t:t<0?s.children.length-1:0,c=s.children.length,d=l;d>=0&&d<c&&d!=(t>0?c:-1);d+=o){var u=s.children[d];if(-1===u.className.indexOf("hidden")&&A(u.dateObj)&&Math.abs(e.$i-d)>=Math.abs(t))return b(u)}a.changeMonth(o),_(v(o),0)}(r,t):b(r)}function w(){if(void 0!==a.daysContainer){QS(a.daysContainer),a.weekNumbers&&QS(a.weekNumbers);for(var e=document.createDocumentFragment(),t=0;t<a.config.showMonths;t++){var i=new Date(a.currentYear,a.currentMonth,1);i.setMonth(a.currentMonth+t),e.appendChild(function(e,t){for(var i=(new Date(e,t,1).getDay()-a.l10n.firstDayOfWeek+7)%7,n=a.utils.getDaysInMonth((t-1+12)%12,e),o=a.utils.getDaysInMonth(t,e),r=window.document.createDocumentFragment(),s=a.config.showMonths>1,l=s?"prevMonthDay hidden":"prevMonthDay",c=s?"nextMonthDay hidden":"nextMonthDay",d=n+1-i,u=0;d<=n;d++,u++)r.appendChild(y("flatpickr-day "+l,new Date(e,t-1,d),d,u));for(d=1;d<=o;d++,u++)r.appendChild(y("flatpickr-day",new Date(e,t,d),d,u));for(var p=o+1;p<=42-i&&(1===a.config.showMonths||u%7!=0);p++,u++)r.appendChild(y("flatpickr-day "+c,new Date(e,t+1,p%o),p,u));var h=QE("div","dayContainer");return h.appendChild(r),h}(i.getFullYear(),i.getMonth()))}a.daysContainer.appendChild(e),a.days=a.daysContainer.firstChild,"range"===a.config.mode&&1===a.selectedDates.length&&L()}}function x(){if(!(a.config.showMonths>1)&&"dropdown"===a.config.monthSelectorType){a.monthsDropdownContainer.tabIndex=-1,a.monthsDropdownContainer.innerHTML="";for(var e,t=0;t<12;t++)if(e=t,!(void 0!==a.config.minDate&&a.currentYear===a.config.minDate.getFullYear()&&e<a.config.minDate.getMonth())&&!(void 0!==a.config.maxDate&&a.currentYear===a.config.maxDate.getFullYear()&&e>a.config.maxDate.getMonth())){var i=QE("option","flatpickr-monthDropdown-month");i.value=new Date(a.currentYear,t).getMonth().toString(),i.textContent=QD(t,a.config.shorthandCurrentMonth,a.l10n),i.tabIndex=-1,a.currentMonth===t&&(i.selected=!0),a.monthsDropdownContainer.appendChild(i)}}}function k(){QS(a.monthNav),a.monthNav.appendChild(a.prevMonthNav),a.config.showMonths&&(a.yearElements=[],a.monthElements=[]);for(var e=a.config.showMonths;e--;){var t=function(){var e,t=QE("div","flatpickr-month"),i=window.document.createDocumentFragment();a.config.showMonths>1||"static"===a.config.monthSelectorType?e=QE("span","cur-month"):(a.monthsDropdownContainer=QE("select","flatpickr-monthDropdown-months"),a.monthsDropdownContainer.setAttribute("aria-label",a.l10n.monthAriaLabel),p(a.monthsDropdownContainer,"change",function(e){var t=parseInt(QT(e).value,10);a.changeMonth(t-a.currentMonth),G("onMonthChange")}),x(),e=a.monthsDropdownContainer);var n=QC("cur-year",{tabindex:"-1"}),o=n.getElementsByTagName("input")[0];o.setAttribute("aria-label",a.l10n.yearAriaLabel),a.config.minDate&&o.setAttribute("min",a.config.minDate.getFullYear().toString()),a.config.maxDate&&(o.setAttribute("max",a.config.maxDate.getFullYear().toString()),o.disabled=!!a.config.minDate&&a.config.minDate.getFullYear()===a.config.maxDate.getFullYear());var r=QE("div","flatpickr-current-month");return r.appendChild(e),r.appendChild(n),i.appendChild(r),t.appendChild(i),{container:t,yearElement:o,monthElement:e}}();a.yearElements.push(t.yearElement),a.monthElements.push(t.monthElement),a.monthNav.appendChild(t.container)}a.monthNav.appendChild(a.nextMonthNav)}function E(){a.weekdayContainer?QS(a.weekdayContainer):a.weekdayContainer=QE("div","flatpickr-weekdays");for(var e=a.config.showMonths;e--;){var t=QE("div","flatpickr-weekdaycontainer");a.weekdayContainer.appendChild(t)}return S(),a.weekdayContainer}function S(){if(a.weekdayContainer){var e=a.l10n.firstDayOfWeek,t=QF(a.l10n.weekdays.shorthand);e>0&&e<t.length&&(t=QF(t.splice(e,t.length),t.splice(0,e)));for(var i=a.config.showMonths;i--;)a.weekdayContainer.children[i].innerHTML=` <span class='flatpickr-weekday'> `+t.join("</span><span class='flatpickr-weekday'>")+` </span> `}}function C(e,t){void 0===t&&(t=!0);var i=t?e:e-a.currentMonth;i<0&&!0===a._hidePrevMonthArrow||i>0&&!0===a._hideNextMonthArrow||(a.currentMonth+=i,(a.currentMonth<0||a.currentMonth>11)&&(a.currentYear+=a.currentMonth>11?1:-1,a.currentMonth=(a.currentMonth+12)%12,G("onYearChange"),x()),w(),G("onMonthChange"),Q())}function T(e){return a.calendarContainer.contains(e)}function I(e){if(a.isOpen&&!a.config.inline){var t=QT(e),i=T(t),n=!(t===a.input||t===a.altInput||a.element.contains(t)||e.path&&e.path.indexOf&&(~e.path.indexOf(a.input)||~e.path.indexOf(a.altInput)))&&!i&&!T(e.relatedTarget),o=!a.config.ignoredFocusElements.some(function(e){return e.contains(t)});n&&o&&(a.config.allowInput&&a.setDate(a._input.value,!1,a.config.altInput?a.config.altFormat:a.config.dateFormat),void 0!==a.timeContainer&&void 0!==a.minuteElement&&void 0!==a.hourElement&&""!==a.input.value&&void 0!==a.input.value&&s(),a.close(),a.config&&"range"===a.config.mode&&1===a.selectedDates.length&&a.clear(!1))}}function D(e){if(!(!e||a.config.minDate&&e<a.config.minDate.getFullYear()||a.config.maxDate&&e>a.config.maxDate.getFullYear())){var t=a.currentYear!==e;a.currentYear=e||a.currentYear,a.config.maxDate&&a.currentYear===a.config.maxDate.getFullYear()?a.currentMonth=Math.min(a.config.maxDate.getMonth(),a.currentMonth):a.config.minDate&&a.currentYear===a.config.minDate.getFullYear()&&(a.currentMonth=Math.max(a.config.minDate.getMonth(),a.currentMonth)),t&&(a.redraw(),G("onYearChange"),x())}}function A(e,t){void 0===t&&(t=!0);var i,n=a.parseDate(e,void 0,t);if(a.config.minDate&&n&&0>QL(n,a.config.minDate,void 0!==t?t:!a.minDateHasTime)||a.config.maxDate&&n&&QL(n,a.config.maxDate,void 0!==t?t:!a.maxDateHasTime)>0)return!1;if(!a.config.enable&&0===a.config.disable.length)return!0;if(void 0===n)return!1;for(var o=!!a.config.enable,r=null!=(i=a.config.enable)?i:a.config.disable,s=0,l=void 0;s<r.length;s++){if("function"==typeof(l=r[s])&&l(n))return o;if(l instanceof Date&&void 0!==n&&l.getTime()===n.getTime())return o;if("string"==typeof l){var c=a.parseDate(l,void 0,!0);return c&&c.getTime()===n.getTime()?o:!o}else if("object"==typeof l&&void 0!==n&&l.from&&l.to&&n.getTime()>=l.from.getTime()&&n.getTime()<=l.to.getTime())return o}return!o}function O(e){return void 0!==a.daysContainer&&-1===e.className.indexOf("hidden")&&-1===e.className.indexOf("flatpickr-disabled")&&a.daysContainer.contains(e)}function R(e){var t=e.target===a._input,i=a._input.value.trimEnd()!==X();t&&i&&!(e.relatedTarget&&T(e.relatedTarget))&&a.setDate(a._input.value,!0,e.target===a.altInput?a.config.altFormat:a.config.dateFormat)}function M(t){var i=QT(t),o=a.config.wrap?e.contains(i):i===a._input,r=a.config.allowInput,c=a.isOpen&&(!r||!o),d=a.config.inline&&o&&!r;if(13===t.keyCode&&o)if(r)return a.setDate(a._input.value,!0,i===a.altInput?a.config.altFormat:a.config.dateFormat),a.close(),i.blur();else a.open();else if(T(i)||c||d){var u=!!a.timeContainer&&a.timeContainer.contains(i);switch(t.keyCode){case 13:u?(t.preventDefault(),s(),B()):H(t);break;case 27:t.preventDefault(),B();break;case 8:case 46:o&&!a.config.allowInput&&(t.preventDefault(),a.clear());break;case 37:case 39:if(u||o)a.hourElement&&a.hourElement.focus();else{t.preventDefault();var p=n();if(void 0!==a.daysContainer&&(!1===r||p&&O(p))){var h=39===t.keyCode?1:-1;t.ctrlKey?(t.stopPropagation(),C(h),_(v(1),0)):_(void 0,h)}}break;case 38:case 40:t.preventDefault();var g=40===t.keyCode?1:-1;a.daysContainer&&void 0!==i.$i||i===a.input||i===a.altInput?t.ctrlKey?(t.stopPropagation(),D(a.currentYear-g),_(v(1),0)):u||_(void 0,7*g):i===a.currentYearElement?D(a.currentYear-g):a.config.enableTime&&(!u&&a.hourElement&&a.hourElement.focus(),s(t),a._debouncedChange());break;case 9:if(u){var m=[a.hourElement,a.minuteElement,a.secondElement,a.amPM].concat(a.pluginElements).filter(function(e){return e}),f=m.indexOf(i);if(-1!==f){var y=m[f+(t.shiftKey?-1:1)];t.preventDefault(),(y||a._input).focus()}}else!a.config.noCalendar&&a.daysContainer&&a.daysContainer.contains(i)&&t.shiftKey&&(t.preventDefault(),a._input.focus())}}if(void 0!==a.amPM&&i===a.amPM)switch(t.key){case a.l10n.amPM[0].charAt(0):case a.l10n.amPM[0].charAt(0).toLowerCase():a.amPM.textContent=a.l10n.amPM[0],l(),J();break;case a.l10n.amPM[1].charAt(0):case a.l10n.amPM[1].charAt(0).toLowerCase():a.amPM.textContent=a.l10n.amPM[1],l(),J()}(o||T(i))&&G("onKeyDown",t)}function L(e,t){if(void 0===t&&(t="flatpickr-day"),!(1!==a.selectedDates.length||e&&(!e.classList.contains(t)||e.classList.contains("flatpickr-disabled")))){for(var i=e?e.dateObj.getTime():a.days.firstElementChild.dateObj.getTime(),n=a.parseDate(a.selectedDates[0],void 0,!0).getTime(),o=Math.min(i,a.selectedDates[0].getTime()),r=Math.max(i,a.selectedDates[0].getTime()),s=!1,l=0,c=0,d=o;d<r;d+=864e5)!A(new Date(d),!0)&&(s=s||d>o&&d<r,d<n&&(!l||d>l)?l=d:d>n&&(!c||d<c)&&(c=d));Array.from(a.rContainer.querySelectorAll("*:nth-child(-n+"+a.config.showMonths+") > ."+t)).forEach(function(t){var o,r,d,u=t.dateObj.getTime(),p=l>0&&u<l||c>0&&u>c;if(p){t.classList.add("notAllowed"),["inRange","startRange","endRange"].forEach(function(e){t.classList.remove(e)});return}(!s||p)&&(["startRange","inRange","endRange","notAllowed"].forEach(function(e){t.classList.remove(e)}),void 0!==e&&(e.classList.add(i<=a.selectedDates[0].getTime()?"startRange":"endRange"),n<i&&u===n?t.classList.add("startRange"):n>i&&u===n&&t.classList.add("endRange"),u>=l&&(0===c||u<=c)&&(o=u)>Math.min(r=n,d=i)&&o<Math.max(r,d)&&t.classList.add("inRange")))})}}function N(){!a.isOpen||a.config.static||a.config.inline||F()}function P(e){return function(t){var i=a.config["_"+e+"Date"]=a.parseDate(t,a.config.dateFormat),n=a.config["_"+("min"===e?"max":"min")+"Date"];void 0!==i&&(a["min"===e?"minDateHasTime":"maxDateHasTime"]=i.getHours()>0||i.getMinutes()>0||i.getSeconds()>0),a.selectedDates&&(a.selectedDates=a.selectedDates.filter(function(e){return A(e)}),a.selectedDates.length||"min"!==e||c(i),J()),a.daysContainer&&(j(),void 0!==i?a.currentYearElement[e]=i.getFullYear().toString():a.currentYearElement.removeAttribute(e),a.currentYearElement.disabled=!!n&&void 0!==i&&n.getFullYear()===i.getFullYear())}}function z(){return a.config.wrap?e.querySelector("[data-input]"):e}function U(){"object"!=typeof a.config.locale&&void 0===QB.l10ns[a.config.locale]&&a.config.errorHandler(Error("flatpickr: invalid locale "+a.config.locale)),a.l10n=QU(QU({},QB.l10ns.default),"object"==typeof a.config.locale?a.config.locale:"default"!==a.config.locale?QB.l10ns[a.config.locale]:void 0),Q$.D="("+a.l10n.weekdays.shorthand.join("|")+")",Q$.l="("+a.l10n.weekdays.longhand.join("|")+")",Q$.M="("+a.l10n.months.shorthand.join("|")+")",Q$.F="("+a.l10n.months.longhand.join("|")+")",Q$.K="("+a.l10n.amPM[0]+"|"+a.l10n.amPM[1]+"|"+a.l10n.amPM[0].toLowerCase()+"|"+a.l10n.amPM[1].toLowerCase()+")",void 0===QU(QU({},t),JSON.parse(JSON.stringify(e.dataset||{}))).time_24hr&&void 0===QB.defaultConfig.time_24hr&&(a.config.time_24hr=a.l10n.time_24hr),a.formatDate=QR(a),a.parseDate=QM({config:a.config,l10n:a.l10n})}function F(e){if("function"==typeof a.config.position)return void a.config.position(a,e);if(void 0!==a.calendarContainer){G("onPreCalendarPosition");var t=e||a._positionElement,i=Array.prototype.reduce.call(a.calendarContainer.children,function(e,t){return e+t.offsetHeight},0),n=a.calendarContainer.offsetWidth,o=a.config.position.split(" "),r=o[0],s=o.length>1?o[1]:null,l=t.getBoundingClientRect(),c=window.innerHeight-l.bottom,d="above"===r||"below"!==r&&c<i&&l.top>i,u=window.pageYOffset+l.top+(d?-i-2:t.offsetHeight+2);if(Qk(a.calendarContainer,"arrowTop",!d),Qk(a.calendarContainer,"arrowBottom",d),!a.config.inline){var p=window.pageXOffset+l.left,h=!1,g=!1;"center"===s?(p-=(n-l.width)/2,h=!0):"right"===s&&(p-=n-l.width,g=!0),Qk(a.calendarContainer,"arrowLeft",!h&&!g),Qk(a.calendarContainer,"arrowCenter",h),Qk(a.calendarContainer,"arrowRight",g);var m=window.document.body.offsetWidth-(window.pageXOffset+l.right),f=p+n>window.document.body.offsetWidth,y=m+n>window.document.body.offsetWidth;if(Qk(a.calendarContainer,"rightMost",f),!a.config.static)if(a.calendarContainer.style.top=u+"px",f)if(y){var b=function(){for(var e=null,t=0;t<document.styleSheets.length;t++){var i=document.styleSheets[t];if(i.cssRules){try{i.cssRules}catch{continue}e=i;break}}return null!=e?e:function(){var e=document.createElement("style");return document.head.appendChild(e),e.sheet}()}();if(void 0===b)return;var v=Math.max(0,window.document.body.offsetWidth/2-n/2),_=b.cssRules.length,w="{left:"+l.left+"px;right:auto;}";Qk(a.calendarContainer,"rightMost",!1),Qk(a.calendarContainer,"centerMost",!0),b.insertRule(".flatpickr-calendar.centerMost:before,.flatpickr-calendar.centerMost:after"+w,_),a.calendarContainer.style.left=v+"px",a.calendarContainer.style.right="auto"}else a.calendarContainer.style.left="auto",a.calendarContainer.style.right=m+"px";else a.calendarContainer.style.left=p+"px",a.calendarContainer.style.right="auto"}}}function j(){a.config.noCalendar||a.isMobile||(x(),Q(),w())}function B(){a._input.focus(),-1!==window.navigator.userAgent.indexOf("MSIE")||void 0!==navigator.msMaxTouchPoints?setTimeout(a.close,0):a.close()}function H(e){e.preventDefault(),e.stopPropagation();var t=function e(t,i){return i(t)?t:t.parentNode?e(t.parentNode,i):void 0}(QT(e),function(e){return e.classList&&e.classList.contains("flatpickr-day")&&!e.classList.contains("flatpickr-disabled")&&!e.classList.contains("notAllowed")});if(void 0!==t){var i=a.latestSelectedDateObj=new Date(t.dateObj.getTime()),n=(i.getMonth()<a.currentMonth||i.getMonth()>a.currentMonth+a.config.showMonths-1)&&"range"!==a.config.mode;if(a.selectedDateElem=t,"single"===a.config.mode)a.selectedDates=[i];else if("multiple"===a.config.mode){var o=Y(i);o?a.selectedDates.splice(parseInt(o),1):a.selectedDates.push(i)}else"range"===a.config.mode&&(2===a.selectedDates.length&&a.clear(!1,!1),a.latestSelectedDateObj=i,a.selectedDates.push(i),0!==QL(i,a.selectedDates[0],!0)&&a.selectedDates.sort(function(e,t){return e.getTime()-t.getTime()}));if(l(),n){var r=a.currentYear!==i.getFullYear();a.currentYear=i.getFullYear(),a.currentMonth=i.getMonth(),r&&(G("onYearChange"),x()),G("onMonthChange")}if(Q(),w(),J(),n||"range"===a.config.mode||1!==a.config.showMonths?void 0!==a.selectedDateElem&&void 0===a.hourElement&&a.selectedDateElem&&a.selectedDateElem.focus():b(t),void 0!==a.hourElement&&void 0!==a.hourElement&&a.hourElement.focus(),a.config.closeOnSelect){var s="single"===a.config.mode&&!a.config.enableTime,c="range"===a.config.mode&&2===a.selectedDates.length&&!a.config.enableTime;(s||c)&&B()}h()}}a.parseDate=QM({config:a.config,l10n:a.l10n}),a._handlers=[],a.pluginElements=[],a.loadedPlugins=[],a._bind=p,a._setHoursFromDate=c,a._positionCalendar=F,a.changeMonth=C,a.changeYear=D,a.clear=function(e,t){if(void 0===e&&(e=!0),void 0===t&&(t=!0),a.input.value="",void 0!==a.altInput&&(a.altInput.value=""),void 0!==a.mobileInput&&(a.mobileInput.value=""),a.selectedDates=[],a.latestSelectedDateObj=void 0,!0===t&&(a.currentYear=a._initialDate.getFullYear(),a.currentMonth=a._initialDate.getMonth()),!0===a.config.enableTime){var i=Qz(a.config);d(i.hours,i.minutes,i.seconds)}a.redraw(),e&&G("onChange")},a.close=function(){a.isOpen=!1,a.isMobile||(void 0!==a.calendarContainer&&a.calendarContainer.classList.remove("open"),void 0!==a._input&&a._input.classList.remove("active")),G("onClose")},a.onMouseOver=L,a._createElement=QE,a.createDay=y,a.destroy=function(){void 0!==a.config&&G("onDestroy");for(var e=a._handlers.length;e--;)a._handlers[e].remove();if(a._handlers=[],a.mobileInput)a.mobileInput.parentNode&&a.mobileInput.parentNode.removeChild(a.mobileInput),a.mobileInput=void 0;else if(a.calendarContainer&&a.calendarContainer.parentNode)if(a.config.static&&a.calendarContainer.parentNode){var t=a.calendarContainer.parentNode;if(t.lastChild&&t.removeChild(t.lastChild),t.parentNode){for(;t.firstChild;)t.parentNode.insertBefore(t.firstChild,t);t.parentNode.removeChild(t)}}else a.calendarContainer.parentNode.removeChild(a.calendarContainer);a.altInput&&(a.input.type="text",a.altInput.parentNode&&a.altInput.parentNode.removeChild(a.altInput),delete a.altInput),a.input&&(a.input.type=a.input._type,a.input.classList.remove("flatpickr-input"),a.input.removeAttribute("readonly")),["_showTimeInput","latestSelectedDateObj","_hideNextMonthArrow","_hidePrevMonthArrow","__hideNextMonthArrow","__hidePrevMonthArrow","isMobile","isOpen","selectedDateElem","minDateHasTime","maxDateHasTime","days","daysContainer","_input","_positionElement","innerContainer","rContainer","monthNav","todayDateElem","calendarContainer","weekdayContainer","prevMonthNav","nextMonthNav","monthsDropdownContainer","currentMonthElement","currentYearElement","navigationCurrentMonth","selectedDateElem","config"].forEach(function(e){try{delete a[e]}catch{}})},a.isEnabled=A,a.jumpToDate=g,a.updateValue=J,a.open=function(e,t){if(void 0===t&&(t=a._positionElement),!0===a.isMobile){if(e){e.preventDefault();var i=QT(e);i&&i.blur()}void 0!==a.mobileInput&&(a.mobileInput.focus(),a.mobileInput.click()),G("onOpen");return}if(!a._input.disabled&&!a.config.inline){var n=a.isOpen;a.isOpen=!0,n||(a.calendarContainer.classList.add("open"),a._input.classList.add("active"),G("onOpen"),F(t)),!0!==a.config.enableTime||!0!==a.config.noCalendar||!1!==a.config.allowInput||void 0!==e&&a.timeContainer.contains(e.relatedTarget)||setTimeout(function(){return a.hourElement.select()},50)}},a.redraw=j,a.set=function(e,t){if(null!==e&&"object"==typeof e)for(var i in Object.assign(a.config,e),e)void 0!==V[i]&&V[i].forEach(function(e){return e()});else a.config[e]=t,void 0!==V[e]?V[e].forEach(function(e){return e()}):Qf.indexOf(e)>-1&&(a.config[e]=Qx(t));a.redraw(),J(!0)},a.setDate=function(e,t,i){if(void 0===t&&(t=!1),void 0===i&&(i=a.config.dateFormat),0!==e&&!e||e instanceof Array&&0===e.length)return a.clear(t);q(e,i),a.latestSelectedDateObj=a.selectedDates[a.selectedDates.length-1],a.redraw(),g(void 0,t),c(),0===a.selectedDates.length&&a.clear(!1),J(t),t&&G("onChange")},a.toggle=function(e){if(!0===a.isOpen)return a.close();a.open(e)};var V={locale:[U,S],showMonths:[k,r,E],minDate:[g],maxDate:[g],positionElement:[W],clickOpens:[function(){!0===a.config.clickOpens?(p(a._input,"focus",a.open),p(a._input,"click",a.open)):(a._input.removeEventListener("focus",a.open),a._input.removeEventListener("click",a.open))}]};function q(e,t){var i=[];if(e instanceof Array)i=e.map(function(e){return a.parseDate(e,t)});else if(e instanceof Date||"number"==typeof e)i=[a.parseDate(e,t)];else if("string"==typeof e)switch(a.config.mode){case"single":case"time":i=[a.parseDate(e,t)];break;case"multiple":i=e.split(a.config.conjunction).map(function(e){return a.parseDate(e,t)});break;case"range":i=e.split(a.l10n.rangeSeparator).map(function(e){return a.parseDate(e,t)})}else a.config.errorHandler(Error("Invalid date supplied: "+JSON.stringify(e)));a.selectedDates=a.config.allowInvalidPreload?i:i.filter(function(e){return e instanceof Date&&A(e,!1)}),"range"===a.config.mode&&a.selectedDates.sort(function(e,t){return e.getTime()-t.getTime()})}function Z(e){return e.slice().map(function(e){return"string"==typeof e||"number"==typeof e||e instanceof Date?a.parseDate(e,void 0,!0):e&&"object"==typeof e&&e.from&&e.to?{from:a.parseDate(e.from,void 0),to:a.parseDate(e.to,void 0)}:e}).filter(function(e){return e})}function W(){a._positionElement=a.config.positionElement||a._input}function G(e,t){if(void 0!==a.config){var i=a.config[e];if(void 0!==i&&i.length>0)for(var n=0;i[n]&&n<i.length;n++)i[n](a.selectedDates,a.input.value,a,t);"onChange"===e&&(a.input.dispatchEvent(K("change")),a.input.dispatchEvent(K("input")))}}function K(e){var t=document.createEvent("Event");return t.initEvent(e,!0,!0),t}function Y(e){for(var t=0;t<a.selectedDates.length;t++){var i=a.selectedDates[t];if(i instanceof Date&&0===QL(i,e))return""+t}return!1}function Q(){a.config.noCalendar||a.isMobile||!a.monthNav||(a.yearElements.forEach(function(e,t){var i=new Date(a.currentYear,a.currentMonth,1);i.setMonth(a.currentMonth+t),a.config.showMonths>1||"static"===a.config.monthSelectorType?a.monthElements[t].textContent=QD(i.getMonth(),a.config.shorthandCurrentMonth,a.l10n)+" ":a.monthsDropdownContainer.value=i.getMonth().toString(),e.value=i.getFullYear().toString()}),a._hidePrevMonthArrow=void 0!==a.config.minDate&&(a.currentYear===a.config.minDate.getFullYear()?a.currentMonth<=a.config.minDate.getMonth():a.currentYear<a.config.minDate.getFullYear()),a._hideNextMonthArrow=void 0!==a.config.maxDate&&(a.currentYear===a.config.maxDate.getFullYear()?a.currentMonth+1>a.config.maxDate.getMonth():a.currentYear>a.config.maxDate.getFullYear()))}function X(e){var t=e||(a.config.altInput?a.config.altFormat:a.config.dateFormat);return a.selectedDates.map(function(e){return a.formatDate(e,t)}).filter(function(e,t,i){return"range"!==a.config.mode||a.config.enableTime||i.indexOf(e)===t}).join("range"!==a.config.mode?a.config.conjunction:a.l10n.rangeSeparator)}function J(e){void 0===e&&(e=!0),void 0!==a.mobileInput&&a.mobileFormatStr&&(a.mobileInput.value=void 0!==a.latestSelectedDateObj?a.formatDate(a.latestSelectedDateObj,a.mobileFormatStr):""),a.input.value=X(a.config.dateFormat),void 0!==a.altInput&&(a.altInput.value=X(a.config.altFormat)),!1!==e&&G("onValueUpdate")}function ee(e){var t=QT(e),i=a.prevMonthNav.contains(t),n=a.nextMonthNav.contains(t);i||n?C(i?-1:1):a.yearElements.indexOf(t)>=0?t.select():t.classList.contains("arrowUp")?a.changeYear(a.currentYear+1):t.classList.contains("arrowDown")&&a.changeYear(a.currentYear-1)}return a.element=a.input=e,a.isOpen=!1,function(){var i=["wrap","weekNumbers","allowInput","allowInvalidPreload","clickOpens","time_24hr","enableTime","noCalendar","altInput","shorthandCurrentMonth","inline","static","enableSeconds","disableMobile"],n=QU(QU({},JSON.parse(JSON.stringify(e.dataset||{}))),t),r={};a.config.parseDate=n.parseDate,a.config.formatDate=n.formatDate,Object.defineProperty(a.config,"enable",{get:function(){return a.config._enable},set:function(e){a.config._enable=Z(e)}}),Object.defineProperty(a.config,"disable",{get:function(){return a.config._disable},set:function(e){a.config._disable=Z(e)}});var s="time"===n.mode;if(!n.dateFormat&&(n.enableTime||s)){var l=QB.defaultConfig.dateFormat||Qy.dateFormat;r.dateFormat=n.noCalendar||s?"H:i"+(n.enableSeconds?":S":""):l+" H:i"+(n.enableSeconds?":S":"")}if(n.altInput&&(n.enableTime||s)&&!n.altFormat){var c=QB.defaultConfig.altFormat||Qy.altFormat;r.altFormat=n.noCalendar||s?"h:i"+(n.enableSeconds?":S K":" K"):c+" h:i"+(n.enableSeconds?":S":"")+" K"}Object.defineProperty(a.config,"minDate",{get:function(){return a.config._minDate},set:P("min")}),Object.defineProperty(a.config,"maxDate",{get:function(){return a.config._maxDate},set:P("max")});var d=function(e){return function(t){a.config["min"===e?"_minTime":"_maxTime"]=a.parseDate(t,"H:i:S")}};Object.defineProperty(a.config,"minTime",{get:function(){return a.config._minTime},set:d("min")}),Object.defineProperty(a.config,"maxTime",{get:function(){return a.config._maxTime},set:d("max")}),"time"===n.mode&&(a.config.noCalendar=!0,a.config.enableTime=!0),Object.assign(a.config,r,n);for(var u=0;u<i.length;u++)a.config[i[u]]=!0===a.config[i[u]]||"true"===a.config[i[u]];Qf.filter(function(e){return void 0!==a.config[e]}).forEach(function(e){a.config[e]=Qx(a.config[e]||[]).map(o)}),a.isMobile=!a.config.disableMobile&&!a.config.inline&&"single"===a.config.mode&&!a.config.disable.length&&!a.config.enable&&!a.config.weekNumbers&&/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);for(var u=0;u<a.config.plugins.length;u++){var p=a.config.plugins[u](a)||{};for(var h in p)Qf.indexOf(h)>-1?a.config[h]=Qx(p[h]).map(o).concat(a.config[h]):void 0===n[h]&&(a.config[h]=p[h])}n.altInputClass||(a.config.altInputClass=z().className+" "+a.config.altInputClass),G("onParseConfig")}(),U(),(a.input=z(),a.input)?(a.input._type=a.input.type,a.input.type="text",a.input.classList.add("flatpickr-input"),a._input=a.input,a.config.altInput&&(a.altInput=QE(a.input.nodeName,a.config.altInputClass),a._input=a.altInput,a.altInput.placeholder=a.input.placeholder,a.altInput.disabled=a.input.disabled,a.altInput.required=a.input.required,a.altInput.tabIndex=a.input.tabIndex,a.altInput.type="text",a.input.setAttribute("type","hidden"),!a.config.static&&a.input.parentNode&&a.input.parentNode.insertBefore(a.altInput,a.input.nextSibling)),a.config.allowInput||a._input.setAttribute("readonly","readonly"),W()):a.config.errorHandler(Error("Invalid input element specified")),function(){a.selectedDates=[],a.now=a.parseDate(a.config.now)||new Date;var e=a.config.defaultDate||(("INPUT"===a.input.nodeName||"TEXTAREA"===a.input.nodeName)&&a.input.placeholder&&a.input.value===a.input.placeholder?null:a.input.value);e&&q(e,a.config.dateFormat),a._initialDate=a.selectedDates.length>0?a.selectedDates[0]:a.config.minDate&&a.config.minDate.getTime()>a.now.getTime()?a.config.minDate:a.config.maxDate&&a.config.maxDate.getTime()<a.now.getTime()?a.config.maxDate:a.now,a.currentYear=a._initialDate.getFullYear(),a.currentMonth=a._initialDate.getMonth(),a.selectedDates.length>0&&(a.latestSelectedDateObj=a.selectedDates[0]),void 0!==a.config.minTime&&(a.config.minTime=a.parseDate(a.config.minTime,"H:i")),void 0!==a.config.maxTime&&(a.config.maxTime=a.parseDate(a.config.maxTime,"H:i")),a.minDateHasTime=!!a.config.minDate&&(a.config.minDate.getHours()>0||a.config.minDate.getMinutes()>0||a.config.minDate.getSeconds()>0),a.maxDateHasTime=!!a.config.maxDate&&(a.config.maxDate.getHours()>0||a.config.maxDate.getMinutes()>0||a.config.maxDate.getSeconds()>0)}(),a.utils={getDaysInMonth:function(e,t){return(void 0===e&&(e=a.currentMonth),void 0===t&&(t=a.currentYear),1===e&&(t%4==0&&t%100!=0||t%400==0))?29:a.l10n.daysInMonth[e]}},a.isMobile||function(){var e=window.document.createDocumentFragment();if(a.calendarContainer=QE("div","flatpickr-calendar"),a.calendarContainer.tabIndex=-1,!a.config.noCalendar){if(e.appendChild((a.monthNav=QE("div","flatpickr-months"),a.yearElements=[],a.monthElements=[],a.prevMonthNav=QE("span","flatpickr-prev-month"),a.prevMonthNav.innerHTML=a.config.prevArrow,a.nextMonthNav=QE("span","flatpickr-next-month"),a.nextMonthNav.innerHTML=a.config.nextArrow,k(),Object.defineProperty(a,"_hidePrevMonthArrow",{get:function(){return a.__hidePrevMonthArrow},set:function(e){a.__hidePrevMonthArrow!==e&&(Qk(a.prevMonthNav,"flatpickr-disabled",e),a.__hidePrevMonthArrow=e)}}),Object.defineProperty(a,"_hideNextMonthArrow",{get:function(){return a.__hideNextMonthArrow},set:function(e){a.__hideNextMonthArrow!==e&&(Qk(a.nextMonthNav,"flatpickr-disabled",e),a.__hideNextMonthArrow=e)}}),a.currentYearElement=a.yearElements[0],Q(),a.monthNav)),a.innerContainer=QE("div","flatpickr-innerContainer"),a.config.weekNumbers){var t=function(){a.calendarContainer.classList.add("hasWeeks");var e=QE("div","flatpickr-weekwrapper");e.appendChild(QE("span","flatpickr-weekday",a.l10n.weekAbbreviation));var t=QE("div","flatpickr-weeks");return e.appendChild(t),{weekWrapper:e,weekNumbers:t}}(),i=t.weekWrapper,n=t.weekNumbers;a.innerContainer.appendChild(i),a.weekNumbers=n,a.weekWrapper=i}a.rContainer=QE("div","flatpickr-rContainer"),a.rContainer.appendChild(E()),a.daysContainer||(a.daysContainer=QE("div","flatpickr-days"),a.daysContainer.tabIndex=-1),w(),a.rContainer.appendChild(a.daysContainer),a.innerContainer.appendChild(a.rContainer),e.appendChild(a.innerContainer)}a.config.enableTime&&e.appendChild(function(){a.calendarContainer.classList.add("hasTime"),a.config.noCalendar&&a.calendarContainer.classList.add("noCalendar");var e=Qz(a.config);a.timeContainer=QE("div","flatpickr-time"),a.timeContainer.tabIndex=-1;var t=QE("span","flatpickr-time-separator",":"),i=QC("flatpickr-hour",{"aria-label":a.l10n.hourAriaLabel});a.hourElement=i.getElementsByTagName("input")[0];var n=QC("flatpickr-minute",{"aria-label":a.l10n.minuteAriaLabel});if(a.minuteElement=n.getElementsByTagName("input")[0],a.hourElement.tabIndex=a.minuteElement.tabIndex=-1,a.hourElement.value=Qv(a.latestSelectedDateObj?a.latestSelectedDateObj.getHours():a.config.time_24hr?e.hours:function(e){switch(e%24){case 0:case 12:return 12;default:return e%12}}(e.hours)),a.minuteElement.value=Qv(a.latestSelectedDateObj?a.latestSelectedDateObj.getMinutes():e.minutes),a.hourElement.setAttribute("step",a.config.hourIncrement.toString()),a.minuteElement.setAttribute("step",a.config.minuteIncrement.toString()),a.hourElement.setAttribute("min",a.config.time_24hr?"0":"1"),a.hourElement.setAttribute("max",a.config.time_24hr?"23":"12"),a.hourElement.setAttribute("maxlength","2"),a.minuteElement.setAttribute("min","0"),a.minuteElement.setAttribute("max","59"),a.minuteElement.setAttribute("maxlength","2"),a.timeContainer.appendChild(i),a.timeContainer.appendChild(t),a.timeContainer.appendChild(n),a.config.time_24hr&&a.timeContainer.classList.add("time24hr"),a.config.enableSeconds){a.timeContainer.classList.add("hasSeconds");var o=QC("flatpickr-second");a.secondElement=o.getElementsByTagName("input")[0],a.secondElement.value=Qv(a.latestSelectedDateObj?a.latestSelectedDateObj.getSeconds():e.seconds),a.secondElement.setAttribute("step",a.minuteElement.getAttribute("step")),a.secondElement.setAttribute("min","0"),a.secondElement.setAttribute("max","59"),a.secondElement.setAttribute("maxlength","2"),a.timeContainer.appendChild(QE("span","flatpickr-time-separator",":")),a.timeContainer.appendChild(o)}return a.config.time_24hr||(a.amPM=QE("span","flatpickr-am-pm",a.l10n.amPM[Q_((a.latestSelectedDateObj?a.hourElement.value:a.config.defaultHour)>11)]),a.amPM.title=a.l10n.toggleTitle,a.amPM.tabIndex=-1,a.timeContainer.appendChild(a.amPM)),a.timeContainer}()),Qk(a.calendarContainer,"rangeMode","range"===a.config.mode),Qk(a.calendarContainer,"animate",!0===a.config.animate),Qk(a.calendarContainer,"multiMonth",a.config.showMonths>1),a.calendarContainer.appendChild(e);var o=void 0!==a.config.appendTo&&void 0!==a.config.appendTo.nodeType;if((a.config.inline||a.config.static)&&(a.calendarContainer.classList.add(a.config.inline?"inline":"static"),a.config.inline&&(!o&&a.element.parentNode?a.element.parentNode.insertBefore(a.calendarContainer,a._input.nextSibling):void 0!==a.config.appendTo&&a.config.appendTo.appendChild(a.calendarContainer)),a.config.static)){var r=QE("div","flatpickr-wrapper");a.element.parentNode&&a.element.parentNode.insertBefore(r,a.element),r.appendChild(a.element),a.altInput&&r.appendChild(a.altInput),r.appendChild(a.calendarContainer)}a.config.static||a.config.inline||(void 0!==a.config.appendTo?a.config.appendTo:window.document.body).appendChild(a.calendarContainer)}(),function(){if(a.config.wrap&&["open","close","toggle","clear"].forEach(function(e){Array.prototype.forEach.call(a.element.querySelectorAll("[data-"+e+"]"),function(t){return p(t,"click",a[e])})}),a.isMobile)return function(){var e=a.config.enableTime?a.config.noCalendar?"time":"datetime-local":"date";a.mobileInput=QE("input",a.input.className+" flatpickr-mobile"),a.mobileInput.tabIndex=1,a.mobileInput.type=e,a.mobileInput.disabled=a.input.disabled,a.mobileInput.required=a.input.required,a.mobileInput.placeholder=a.input.placeholder,a.mobileFormatStr="datetime-local"===e?"Y-m-d\\TH:i:S":"date"===e?"Y-m-d":"H:i:S",a.selectedDates.length>0&&(a.mobileInput.defaultValue=a.mobileInput.value=a.formatDate(a.selectedDates[0],a.mobileFormatStr)),a.config.minDate&&(a.mobileInput.min=a.formatDate(a.config.minDate,"Y-m-d")),a.config.maxDate&&(a.mobileInput.max=a.formatDate(a.config.maxDate,"Y-m-d")),a.input.getAttribute("step")&&(a.mobileInput.step=String(a.input.getAttribute("step"))),a.input.type="hidden",void 0!==a.altInput&&(a.altInput.type="hidden");try{a.input.parentNode&&a.input.parentNode.insertBefore(a.mobileInput,a.input.nextSibling)}catch{}p(a.mobileInput,"change",function(e){a.setDate(QT(e).value,!1,a.mobileFormatStr),G("onChange"),G("onClose")})}();var e=Qw(N,50);a._debouncedChange=Qw(h,300),a.daysContainer&&!/iPhone|iPad|iPod/i.test(navigator.userAgent)&&p(a.daysContainer,"mouseover",function(e){"range"===a.config.mode&&L(QT(e))}),p(a._input,"keydown",M),void 0!==a.calendarContainer&&p(a.calendarContainer,"keydown",M),a.config.inline||a.config.static||p(window,"resize",e),void 0!==window.ontouchstart?p(window.document,"touchstart",I):p(window.document,"mousedown",I),p(window.document,"focus",I,{capture:!0}),!0===a.config.clickOpens&&(p(a._input,"focus",a.open),p(a._input,"click",a.open)),void 0!==a.daysContainer&&(p(a.monthNav,"click",ee),p(a.monthNav,["keyup","increment"],u),p(a.daysContainer,"click",H)),void 0!==a.timeContainer&&void 0!==a.minuteElement&&void 0!==a.hourElement&&(p(a.timeContainer,["increment"],s),p(a.timeContainer,"blur",s,{capture:!0}),p(a.timeContainer,"click",m),p([a.hourElement,a.minuteElement],["focus","click"],function(e){return QT(e).select()}),void 0!==a.secondElement&&p(a.secondElement,"focus",function(){return a.secondElement&&a.secondElement.select()}),void 0!==a.amPM&&p(a.amPM,"click",function(e){s(e)})),a.config.allowInput&&p(a._input,"blur",R)}(),(a.selectedDates.length||a.config.noCalendar)&&(a.config.enableTime&&c(a.config.noCalendar?a.latestSelectedDateObj:void 0),J(!1)),r(),i=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),!a.isMobile&&i&&F(),G("onReady"),a}(o,t||{}),a.push(o._flatpickr)}catch(e){console.error(e)}}return 1===a.length?a[0]:a}"u">typeof HTMLElement&&"u">typeof HTMLCollection&&"u">typeof NodeList&&(HTMLCollection.prototype.flatpickr=NodeList.prototype.flatpickr=function(e){return Qj(this,e)},HTMLElement.prototype.flatpickr=function(e){return Qj([this],e)});var QB=function(e,t){return"string"==typeof e?Qj(window.document.querySelectorAll(e),t):e instanceof Node?Qj([e],t):Qj(e,t)};QB.defaultConfig={},QB.l10ns={en:QU({},Qb),default:QU({},Qb)},QB.localize=function(e){QB.l10ns.default=QU(QU({},QB.l10ns.default),e)},QB.setDefaults=function(e){QB.defaultConfig=QU(QU({},QB.defaultConfig),e)},QB.parseDate=QM({}),QB.formatDate=QR({}),QB.compareDates=QL,"u">typeof jQuery&&void 0!==jQuery.fn&&(jQuery.fn.flatpickr=function(e){return Qj(this,e)}),Date.prototype.fp_incr=function(e){return new Date(this.getFullYear(),this.getMonth(),this.getDate()+("string"==typeof e?parseInt(e,10):e))},"u">typeof window&&(window.flatpickr=QB);let QH=(e=null,t=null,i=null,a=null)=>{rK(e)?(t=Qm().extend(!0,t,{action:e,nonce:BZ().nonceMiddleware.nonce}),Qm().ajax({method:"POST",dataType:"json",url:ajaxurl,data:t,success:e=>{rK(e.status)&&"auth-failed"==e.status?rK(a)&&a(e):rK(i)&&i(e,t)},error:e=>{rK(a)&&a(e)}})):d4.DEV.SHOW_CONSOLE_MESSAGES&&console.error("We cannot do this AJAX request. {action} is not defined.")},QV=(e=null,t=null,i=null,a=null)=>{if(!rK(e)||!rK(e?.id)||!rK(e?.data)){d4.DEV.SHOW_CONSOLE_MESSAGES&&console.error("RESTOptionsRequest: remote_data.id or remote_data.data is not defined.");return}let n=`/uap/v2/remote-data/${e.id}/${e.data}`;BZ()({path:n,method:"POST",data:t}).then(e=>{rK(i)&&i(e,t)}).catch(e=>{rK(a)&&a(e)})},Qq=e=>{e.remote_data&&"object"==typeof e.remote_data&&e.remote_data.data&&(e.remote_type="default",e.ajax=Object.assign({},e.ajax||{},e.remote_data.event?{event:e.remote_data.event}:{},Array.isArray(e.remote_data.listen_fields)?{listenFields:e.remote_data.listen_fields}:{},Array.isArray(e.remote_data.clear_on_change_fields)?{clearOnChangeFields:e.remote_data.clear_on_change_fields}:{},e.remote_data.mapping_column?{mappingColumn:e.remote_data.mapping_column}:{})),e.remote_type=e.remote_type||"legacy"},QZ=({itemType:e,itemID:t,field:i})=>{let a={};if("loop-filter"===e)if(rK(t)){let e=document.querySelector(`uap-builder-item-legacy-form[item-id="${t}"]`);if(e)return e.unsavedFieldValues}else{let e=document.querySelector("uap-builder-item-loop-filter-edit-dialog uap-builder-item-legacy-form:not([item-id])");if(e)return e.unsavedFieldValues}if("condition"===e)if(rK(t)){let e=document.querySelector(`.uap-conditions-options-fields uap-builder-item-legacy-form[item-id="${t}"]`);if(e)return e.unsavedFieldValues}else{let e=document.querySelector(".uap-conditions-options-fields uap-builder-item-legacy-form:not([item-id])");if(e)return e.unsavedFieldValues}if("block-modifier"===e){let e=i?.$wrapper?.get?.(0)?.closest?.("uap-builder-item-legacy-form");return!rK(e)&&rK(t)&&(e=document.querySelector(`uap-builder-item-legacy-form[item-id="${t}"]`)),e?.unsavedFieldValues??a}if(["action","trigger","closure"].includes(e)){let e=null;try{e=i?.$wrapper?.get(0)?.closest("uap-builder-item-legacy-form")}catch(e){d4.DEV.SHOW_CONSOLE_MESSAGES&&console.error(e)}!rK(e)&&rK(t)&&(e=document.querySelector(`uap-builder-item-legacy-form[item-id="${t}"]`)),rK(e)&&rK(e.fields)&&Object.values(e.fields).forEach(e=>{let t=e.getFieldID(),i=e.getValue();rK(i)||(i=e.getAttributes().currentValue),"select"==e.getAttributes().fieldType&&QK(i)&&(a[`${t}_custom`]=e.getSelectCustomValue()),a[t]=i,rY(i)||"select"!=e.getAttributes().fieldType||(a[`${t}_readable`]=e.getReadableValue())})}return a},QW=(e,t,i)=>{let a;if(["loop-filter","publish-setting","condition","block","block-modifier","action","trigger","closure","run-as"].includes(i)){let a;if(rK(e))a=document.querySelector(`uap-builder-item-legacy-form[item-id="${e}"]`);else{let e="uap-builder-item-loop-filter-edit-dialog";"publish-setting"===i&&(e="uap-f-recipe-builder-setting-edit-dialog"),"run-as"===i&&(e="uap-f-recipe-builder-flow-run-as-edit-dialog"),("block"===i||"block-modifier"===i)&&(e="uap-f-recipe-builder-edit-node"),a=Array.from(document.querySelectorAll(`${e} uap-builder-item-legacy-form:not([item-id])`)).find(e=>rK(e.fields?.[t]))}return a&&rK(a.fields[t])?a.fields[t]:void 0}let n=document.querySelector(`[name="${t}"]:not([data-item-id])`);return rK(n)&&rK(n.fieldInstance)&&(a=n.fieldInstance),a},QG=(e,t)=>Array.isArray(e)?e.every(e=>t.includes(e)):t.includes(e),QK=e=>{let t="automator_custom_value";if(e===t||Array.isArray(e)&&e.includes(t))return!0;if("string"==typeof e)try{let i=JSON.parse(e);if(Array.isArray(i)&&i.includes(t))return!0}catch{}return!1},QY=["select","textarea","text","url","email","int","float","checkbox","radio","date","time","repeater","file"];function QQ(e){let t=new RegExp(/\{\{(.*?)\}\}/gm);return String(e).match(t)||[]}function QX(e){return"string"==typeof e&&"[DELETE]"===e.trim()}let QJ="uap.d.recipe.token-selector.close",Q1=rg({}).strict();function Q0(e,t){if(null==t)return!1;for(let i of e.flow.content)if(Ir(i)&&function e(t,i,a){let n=function(e){if("loop"!==e.block_type)return!1;let t=e.fields.LOOP_TYPE;return void 0!==t&&"users"===t.value}(t),o=a||n;if(String(t.id)===String(i)&&o)return!0;for(let a of t.paths)for(let t of a.content)if(Ir(t)){if(e(t,i,o))return!0}else{var r,s,l;if(r=t,s=i,l=o,String(r.id)===String(s)&&l)return!0}return!1}(i,t,!1))return!0;return!1}function Q2(e,t,i){return void 0!==t&&e.recipe_type===CN.ANONYMOUS&&pP(t)&&!Q0(e,i)}let Q3=rg({nodeId:ry([o5(),oR().min(1)]),tokens:rp(Cn),status:DF}).strict(),Q4=rg({integrationCode:oR().min(1),tokens:rp(EL)}).strict();function Q6(e){if(0===e.tokens.length||e.availability.status===Cc.UNAVAILABLE)return;let t=T8(e)&&!e.is_item_on?DU.SOURCE_OFF:DU.RESOLVABLE;return{nodeId:e.id,tokens:[...e.tokens],status:t}}rg({recipeGroups:rp(Q3),globalGroups:rp(Q4)}).strict();let Q5={GROUPED:"grouped",SEARCH:"search"},Q8=rT(Q5),Q7={GLOBAL:"global",PREVIOUS_STEPS:"previous-steps"},Q9=rT(Q7),Xe=rp(Q9),Xt=rv("tab",[Q4.extend({tab:rT([Q7.GLOBAL]),id:oR().min(1),title:oR(),tokens:rp(DB)}),Q3.extend({tab:rT([Q7.PREVIOUS_STEPS]),id:oR().min(1),title:oR(),customName:oR().min(1).optional(),integrationCode:oR().min(1).optional(),blockType:E1.optional(),sentenceTemplate:oR().optional(),fields:k4.optional(),tokens:rp(Dq)})]),Xi=rp(Xt),Xa=rp(oR()),Xn=rg({recipeID:rV({input:[],output:o5().optional()}),targetNodeId:rV({input:[],output:ry([o5(),oR().min(1)]).optional()}),query:rV({input:[],output:oR()}),dataTypeFilter:rV({input:[],output:E$.optional()}),activeTab:rV({input:[],output:Q9}),unsupportedTokens:rV({input:[],output:Xa.optional()}),onlyLoopableTokens:rV({input:[],output:re()})}),Xo=rg({title:oR().min(1),customName:oR().min(1).optional(),integrationCode:oR().min(1).optional(),blockType:E1.optional(),sentenceTemplate:oR().optional(),fields:k4.optional()}).strict(),Xr=rp(oR().min(1)).readonly();rg({query:oR(),dataTypeFilter:E$.optional(),activeTab:Q9,unsupportedTokens:Xa.optional(),loopableTokenIds:Xr.optional(),resolveNodeHeader:rV({input:[ry([o5(),oR()])],output:Xo})}),rg({sections:Xi,viewMode:Q8,availableTabs:Xe}).strict();let Xs={threshold:.4,ignoreLocation:!0};class Xl{constructor(e,t){this.options=Xn.parse(t),this.integrationsQuery=new vE(e,SS),this.recipeQuery=new vE(e,()=>{let e=this.options.recipeID();return{...Ai(e??-1),enabled:void 0!==e}}),this.blocksQuery=new vE(e,Ac),this.accountSummaryQuery=new vE(e,$K)}get userDataUnavailable(){let e=this.recipeQuery.result.data,t=this.options.targetNodeId();return void 0!==e&&void 0!==t&&Q2(e,this.accountSummaryQuery.result.data?.license_scenario,t)}get loading(){return this.integrationsQuery.result.isLoading||this.recipeQuery.result.isLoading||this.blocksQuery.result.isLoading}get error(){return this.integrationsQuery.result.error??this.recipeQuery.result.error??this.blocksQuery.result.error??null}get result(){let e,t=this.integrationsQuery.result.data,i=this.recipeQuery.result.data,a=this.blocksQuery.result.data,n=this.options.targetNodeId(),o=this.options.query(),r=this.options.dataTypeFilter(),s=this.options.activeTab(),l=this.options.unsupportedTokens(),c=this.options.onlyLoopableTokens(),d=[t,i,a,n,o,r,s,l,c];if(void 0!==this.lastBuildResult&&void 0!==this.lastBuildInputs&&this.lastBuildInputs.every((e,t)=>e===d[t]))return this.lastBuildResult;let u=void 0===t||void 0===i||void 0===a||void 0===n?{sections:[],viewMode:Q5.GROUPED,availableTabs:[]}:function(e,t,i){let a=i.query.trim(),n=a.length>=3,o=e=>void 0===i.dataTypeFilter||e===i.dataTypeFilter||EO.includes(e)&&EO.includes(i.dataTypeFilter),r=n?function(e,t){let i=new Set;for(let t of e.globalGroups)for(let e of t.tokens)i.add(e.name);for(let t of e.recipeGroups)for(let e of t.tokens)i.add(e.name);let a=new Set(new jm([...i],Xs).search(t).map(e=>e.item));return e=>a.has(e)}(e,a):()=>!0,s=new Set(i.unsupportedTokens??[]),l=void 0!==i.loopableTokenIds?new Set(i.loopableTokenIds):void 0,c=(e,t)=>!s.has(e)&&(void 0!==l?l.has(e):t!==EA.ARRAY),d=[];for(let i of e.globalGroups){let e=i.tokens.filter(e=>c(e.code,e.data_type)&&o(e.data_type)&&r(e.name)).map(e=>({source:Dz.INTEGRATION,id:e.code,displayName:e.name,token:e}));if(0===e.length)continue;let a=t[i.integrationCode];d.push({tab:Q7.GLOBAL,id:i.integrationCode,integrationCode:i.integrationCode,title:void 0!==a?a.name:i.integrationCode,tokens:e})}let u=[];for(let t of e.recipeGroups){let e=i.resolveNodeHeader(t.nodeId),a=e.blockType,n=t.tokens.filter(e=>c(e.id,e.data_type)&&o(e.data_type)&&r(e.name)).map(e=>void 0!==a?{source:Dz.BLOCK,id:e.id,displayName:e.name,token:e,blockType:a}:{source:Dz.ITEM,id:e.id,displayName:e.name,token:e,status:t.status});0!==n.length&&u.push({tab:Q7.PREVIOUS_STEPS,id:String(t.nodeId),nodeId:t.nodeId,status:t.status,title:e.title,customName:e.customName,integrationCode:e.integrationCode,blockType:e.blockType,sentenceTemplate:e.sentenceTemplate,fields:e.fields,tokens:n})}let p=n?[...u,...d]:i.activeTab===Q7.GLOBAL?d:u,h=[];return u.length>0&&h.push(Q7.PREVIOUS_STEPS),d.length>0&&h.push(Q7.GLOBAL),{sections:p,viewMode:n?Q5.SEARCH:Q5.GROUPED,availableTabs:h}}(function(e,t,i){let a=[];for(let t of e.flow.entry.triggers){let e=Q6(t);void 0!==e&&a.push(e)}let n=function e(t,i){let a=[],n=String(i);for(let o of t){if(String(o.id)===n)return a;if(Ir(o)){if(o.modifiers.some(e=>String(e.id)===n)){let e=Q6(o);return void 0!==e?[...a,e]:a}for(let t of o.paths){let n=e(t.content,i);if(void 0!==n){let e=Q6(o);return void 0!==e?[...a,e,...n]:[...a,...n]}}continue}let t=Q6(o);void 0!==t&&a.push(t)}}(e.flow.content,i)??[];return{recipeGroups:[...a,...n],globalGroups:function(e){let t=[];for(let i of Object.values(e)){let e=Object.values(i.tokens??{});0!==e.length&&t.push({integrationCode:i.code,tokens:[...e]})}return t}(t)}}(i,t,n),t,{query:o,dataTypeFilter:r,activeTab:s,unsupportedTokens:l,loopableTokenIds:c?void 0!==(e=R0(i,n))&&Ir(e)?e.loopable_token_ids??[]:[]:void 0,resolveNodeHeader:e=>(function(e,t,i,a){let n=function(e,t){for(let i of t.flow.entry.triggers)if(i.id===e)return i;return function e(t,i){for(let a of t){if(a.id===i)return a;if(a.type===kP.BLOCK)for(let t of a.paths){let a=e(t.content,i);if(void 0!==a)return a}}}(t.flow.content,e)}(e,t);if(void 0===n)return{title:String(e)};if(n.type===kP.ITEM){let e=n.custom_name?.trim(),t=void 0!==e&&e.length>0?e:void 0,a=i[n.integration_code]?.items?.[n.item_type]?.[n.code]?.sentence?.dynamic??"";return{title:t??(n.last_known_integration_name.length>0?n.last_known_integration_name:String(n.id)),customName:t,integrationCode:n.integration_code,sentenceTemplate:a,fields:n.fields}}let o=a[n.block_type];return void 0===o?{title:n.block_type}:{title:o.name,customName:o.name,blockType:n.block_type}})(e,i,t,a)});return this.lastBuildInputs=d,this.lastBuildResult=u,u}get sections(){return this.result.sections}get viewMode(){return this.result.viewMode}get availableTabs(){return this.result.availableTabs}}function Xc(e){if(e.source!==Dz.UNKNOWN)return e.source===Dz.INTEGRATION?{id:e.id,dataType:e.token.data_type,requiresConfig:void 0!==e.token.config,requiresUserData:e.token.requires_user_data}:{id:e.id,dataType:e.token.data_type,requiresConfig:!1,requiresUserData:!1}}function Xd(e,t){if(t&&Xc(e)?.requiresUserData===!0)return(0,lX.__)("This token needs a WordPress user. In a recipe that runs for everyone, choosing that user requires Uncanny Automator Pro.","uncanny-automator")}let Xu=rg({}).strict(),Xp="uap.d.recipe.token-selector-panel.token-group-selected",Xh=rp(rg({id:oR().min(1),name:oR(),requiresUserData:re()}).strict()),Xg=rg({tokens:Xh.min(1)}).strict(),Xm="uap.d.recipe.token-selector-panel.token-selected",Xf=rg({id:oR().min(1),dataType:E$,requiresConfig:re(),requiresUserData:re()}).strict();var Xy=a(5806),Xb=a.n(Xy),Xv=function(e,t,i,a){var n,o=arguments.length,r=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(r=(o<3?n(r):o>3?n(t,i,r):n(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r};let X_=class extends ld{static{this.styles=sf`${sm(Xb())}`}focus(e){this.buttonElement?.focus(e)}willUpdate(e){lQ(this,"token",DZ,e,"uap-d-recipe-token-selector-token-row")}render(){if(void 0!==this.token&&this.token.source!==Dz.UNKNOWN)return s1` <button type="button" class="row ${void 0===this.unavailableReason?"":"row--unavailable"}" aria-disabled=${(void 0===this.unavailableReason?void 0:"true")??s3} @click=${this.handleSelect} > <span class="row__name">${this.token.displayName}</span> ${this.templateTags()} ${this.templateUnavailableReason()} </button> `}templateTags(){return void 0===this.token||this.token.source===Dz.UNKNOWN||0===this.token.token.tags.length?s3:s1`<span class="row__tags">${this.token.token.tags.map(e=>s1` <uap-d-integrations-tag type=${e.type} scenario-id=${e.scenario_id} label=${e.label} icon=${e.icon??s3} color=${e.color??s3} helper=${e.helper??s3} size="sm" outlined ></uap-d-integrations-tag>`)}</span>`}templateUnavailableReason(){return void 0===this.unavailableReason?s3:s1` <span class="row__reason"> <uas-icon code="lock" size="xs"></uas-icon> <span>${this.unavailableReason}</span> </span> `}handleSelect(){if(void 0===this.token||void 0!==this.unavailableReason)return;let e=Xc(this.token);void 0!==e&&lw({element:this,eventName:Xm,data:e,schema:Xf,options:{bubbles:!0,composed:!0}})}};Xv([l0({type:Object})],X_.prototype,"token",void 0),Xv([l0({type:String,attribute:"unavailable-reason"})],X_.prototype,"unavailableReason",void 0),Xv([l4("button")],X_.prototype,"buttonElement",void 0),X_=Xv([lJ("uap-d-recipe-token-selector-token-row")],X_);let Xw=rg({query:oR()}).strict();var Xx=a(3932),Xk=a.n(Xx),XE=function(e,t,i,a){var n,o=arguments.length,r=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(r=(o<3?n(r):o>3?n(t,i,r):n(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r};let XS=class extends ld{constructor(){super(...arguments),this.value="",this.emitQuery=Ft(e=>{lw({element:this,eventName:"uap.d.recipe.token-selector-search.query-change",data:{query:e},schema:Xw,options:{bubbles:!0,composed:!0}})},200)}static{this.styles=sf`${sm(Xk())}`}disconnectedCallback(){super.disconnectedCallback(),this.emitQuery.clear()}focus(e){this.inputElement?.focus(e)}handleInput(e){let t=e.target;t instanceof HTMLInputElement&&(this.value=t.value,this.emitQuery(t.value))}render(){return s1` <div class="search"> <uas-icon class="search__icon" code="magnifying-glass"></uas-icon> <input class="search__input" type="search" .value=${this.value} placeholder=${String((0,lX.__)("Search tokens","uncanny-automator"))} @input=${this.handleInput} /> </div> `}};XE([l0({type:String})],XS.prototype,"value",void 0),XE([l4(".search__input")],XS.prototype,"inputElement",void 0),XS=XE([lJ("uap-d-recipe-token-selector-search")],XS);var XC=a(2646),XT=a.n(XC),XI=function(e,t,i,a){var n,o=arguments.length,r=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(r=(o<3?n(r):o>3?n(t,i,r):n(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r};let XD="search",XA=class extends ld{constructor(){super(...arguments),this.query="",this.suppressFocus=!1,this.onlyLoopableTokens=!1,this.activeTab=Q7.PREVIOUS_STEPS,this.dataTypeOnly=!1,this.controller=new Xl(this,{recipeID:()=>this.resolvedRecipeID,targetNodeId:()=>this.resolvedTargetNodeId,query:()=>this.query,dataTypeFilter:()=>this.dataTypeOnly?this.dataType:void 0,activeTab:()=>this.activeTab,unsupportedTokens:()=>this.unsupportedTokens,onlyLoopableTokens:()=>this.onlyLoopableTokens})}static{this.styles=sf`${sm(XT())}`}get resolvedRecipeID(){return void 0!==this.recipeID&&Number.isFinite(this.recipeID)?this.recipeID:void 0}get resolvedTargetNodeId(){return""===this.targetNodeId?void 0:this.targetNodeId}willUpdate(e){if(lQ(this,"dataType",E$,e,"uap-d-recipe-token-selector-panel"),lQ(this,"unsupportedTokens",Xa,e,"uap-d-recipe-token-selector-panel"),this.controller.viewMode===Q5.GROUPED){let e=this.controller.availableTabs[0];void 0===e||this.controller.availableTabs.includes(this.activeTab)||(this.activeTab=e)}}firstUpdated(){if(this.suppressFocus)return;let e=this.searchElement;void 0!==e&&e.updateComplete.then(()=>e.focus({preventScroll:!0}))}focusTokens(){let e=Array.from(this.rowElements).find(e=>null!==e.offsetParent);void 0!==e?e.focus():this.searchElement?.focus()}render(){return s1` <div class="token-selector" @keydown=${this.handleKeydown}> <div class="token-selector__header"> <uap-d-recipe-token-selector-search class="token-selector__search" .value=${this.query} @uap.d.recipe.token-selector-search.query-change=${this.handleQueryChange} ></uap-d-recipe-token-selector-search> ${this.templateFilter()} </div> ${this.templateTabs()} <div class="token-selector__body"> ${this.templateBody()} </div> </div> `}templateFilter(){return void 0===this.dataType||this.dataType===EA.TEXT?s3:s1` <span class="token-selector__filter"> <label class="token-selector__filter-control"> <input type="checkbox" role="switch" class="token-selector__filter-switch" .checked=${this.dataTypeOnly} @change=${this.handleFilterToggle} /> <span class="token-selector__filter-label">${this.filterLabel()}</span> </label> <uas-tooltip class="token-selector__filter-help" min-width="200"> ${(0,lX.__)("Show only the tokens compatible with this field.","uncanny-automator")} <span slot="target"><uas-icon code="circle-question"></uas-icon></span> </uas-tooltip> </span> `}templateTabs(){if(this.controller.viewMode===Q5.SEARCH)return s1` <uas-tabs class="token-selector__tabs" value=${XD} size="sm" > <uas-tab value=${XD}> <uas-icon code="magnifying-glass"></uas-icon> ${(0,lX.__)("Search results","uncanny-automator")} </uas-tab> </uas-tabs> `;let e=this.controller.loading?[Q7.PREVIOUS_STEPS,Q7.GLOBAL]:this.controller.availableTabs;return 0===e.length?s3:s1` <uas-tabs class="token-selector__tabs" value=${this.activeTab} @uas.tabs.change=${this.handleTabChange} size="sm" > ${e.map(e=>this.templateTab(e))} </uas-tabs> `}templateTab(e){return e===Q7.GLOBAL?s1` <uas-tab value=${Q7.GLOBAL}> <uas-icon code="globe"></uas-icon> ${(0,lX.__)("Global","uncanny-automator")} </uas-tab> `:s1` <uas-tab value=${Q7.PREVIOUS_STEPS}> <uas-icon code="diagram-predecessor"></uas-icon> ${(0,lX.__)("From previous steps","uncanny-automator")} </uas-tab> `}templateBody(){if(void 0===this.resolvedRecipeID||void 0===this.resolvedTargetNodeId||this.controller.loading)return this.templateLoading();if(null!==this.controller.error)return s1`<uas-alert type="error">${(0,lX.__)("Something went wrong loading tokens.","uncanny-automator")}</uas-alert>`;let e=this.controller.sections;if(0===e.length)return this.templateEmpty();let t=this.controller.viewMode===Q5.SEARCH;return s1` <uas-accordion exclusive class="token-selector__accordion"> ${$A(e,e=>e.id,e=>this.templateAccordionItem(e,t))} </uas-accordion> `}templateAccordionItem(e,t){let i=e.tab===Q7.PREVIOUS_STEPS?e.status:DU.RESOLVABLE;return s1` <uas-accordion-item ?open=${t} @click=${t=>this.handleSectionClick(t,e)}> <div slot="summary" class="section-header"> ${this.templateSectionIcon(e)} ${this.templateSummary(e)} </div> <div class="section__rows"> ${this.templateStatusNotice(i)} ${e.tokens.map(e=>this.templateRow(e))} </div> </uas-accordion-item> `}templateSectionIcon(e){return e.tab===Q7.PREVIOUS_STEPS&&void 0!==e.blockType?s1`<uap-d-recipe-block-icon class="section-header__icon" code=${e.blockType} variant="box" size="xs"></uap-d-recipe-block-icon>`:void 0!==e.integrationCode?s1`<uap-d-integrations-icon class="section-header__icon" code=${e.integrationCode} size="xs"></uap-d-integrations-icon>`:s3}templateStatusNotice(e){return e===DU.SOURCE_OFF?this.templateSourceOffNotice():s3}templateSourceOffNotice(){return s1` <uas-alert type="warning" class="section__source-off-notice"> ${(0,lX.__)("This step is off, so its tokens resolve to nothing. Turn the step on to use them.","uncanny-automator")} </uas-alert> `}templateSummary(e){return e.tab!==Q7.PREVIOUS_STEPS?s1`<span class="section-header__title">${e.title}</span>`:void 0!==e.customName&&e.customName.length>0?s1`<span class="section-header__title">${e.customName}</span>`:void 0!==e.sentenceTemplate&&e.sentenceTemplate.length>0?s1`<uap-d-recipe-sentence class="section-header__title-sentence" template=${e.sentenceTemplate??s3} .fields=${e.fields??{}} recipe-id=${this.recipeID??s3} size="sm" ></uap-d-recipe-sentence>`:s1`<span class="section-header__title">${e.title}</span>`}templateRow(e){return s1`<uap-d-recipe-token-selector-token-row .token=${e} unavailable-reason=${Xd(e,this.controller.userDataUnavailable)??s3} ></uap-d-recipe-token-selector-token-row>`}templateEmpty(){let e=this.dataTypeOnly?`- ${(0,b4.escapeHTML)((0,lX.__)('Disable the **"%s tokens only"** filter.',"uncanny-automator")).replace("%s",()=>$_(this.dataType))} `:"",t=(0,b4.escapeHTML)((0,lX.__)(`No worries! Why not give one of these a try? %1$s - **Search for something new.** - Are you a developer? **Build your own token**. [Learn more](%2$s) - **Have a great idea?** We'd love to hear it! [Request a new feature](%3$s)`,"uncanny-automator")).replace("%1$s",()=>e).replace("%2$s",()=>r0("https://developer.automatorplugin.com/",{campaign:br.DOCUMENTATION,content:"recipe-builder-token-selector-developer-docs"})).replace("%3$s",()=>r0("https://automatorplugin.com/automator-support/",{campaign:br.SUPPORT,content:"recipe-builder-token-selector-support"}));return s1` <uas-alert type="info" size="sm" heading=${(0,b4.escapeHTML)((0,lX.__)("Hmm, we couldn't find anything","uncanny-automator"))} no-radius > <uas-markdown allowed-tags="strong,ul,li,a,p" .content=${t} ></uas-markdown> </uas-alert> `}templateLoading(){return s1` <div class="token-selector__loading"> <uas-skeleton height="1.5em"></uas-skeleton> <uas-skeleton height="1.5em"></uas-skeleton> <uas-skeleton height="1.5em"></uas-skeleton> </div> `}filterLabel(){return(0,lX.sprintf)((0,lX.__)("%s tokens only","uncanny-automator"),$_(this.dataType))}handleQueryChange(e){this.query=e.detail.query}handleFilterToggle(e){this.dataTypeOnly=e.target instanceof HTMLInputElement&&e.target.checked}handleTabChange(e){let t=Q9.safeParse(e.detail.value);this.activeTab=t.success?t.data:Q7.PREVIOUS_STEPS}handleSectionClick(e,t){if(!e.shiftKey||e.composedPath().some(e=>e instanceof HTMLElement&&e.classList.contains("section__rows")))return;let i=this.controller.userDataUnavailable,a=function(e){let t=[];for(let i of e){if(i.source===Dz.UNKNOWN)continue;let e=Xc(i);void 0===e||e.requiresConfig||t.push({id:e.id,name:i.displayName,requiresUserData:e.requiresUserData})}if(0!==t.length)return{tokens:t}}(t.tokens.filter(e=>void 0===Xd(e,i)));void 0!==a&&lw({element:this,eventName:Xp,data:a,schema:Xg,options:{bubbles:!0,composed:!0}})}handleKeydown(e){"Escape"===e.key?lw({element:this,eventName:"uap.d.recipe.token-selector-panel.close",data:{},schema:Xu,options:{bubbles:!0,composed:!0}}):"/"===e.key&&e.target!==this.searchElement&&(e.preventDefault(),this.searchElement?.focus())}};XI([l0({type:Number,attribute:"recipe-id"})],XA.prototype,"recipeID",void 0),XI([l0({attribute:"target-node-id"})],XA.prototype,"targetNodeId",void 0),XI([l0({attribute:"data-type"})],XA.prototype,"dataType",void 0),XI([l0({type:String})],XA.prototype,"query",void 0),XI([l0({type:Boolean,attribute:"suppress-focus"})],XA.prototype,"suppressFocus",void 0),XI([l0({attribute:!1})],XA.prototype,"unsupportedTokens",void 0),XI([l0({type:Boolean,attribute:"only-loopable-tokens"})],XA.prototype,"onlyLoopableTokens",void 0),XI([l2()],XA.prototype,"activeTab",void 0),XI([l2()],XA.prototype,"dataTypeOnly",void 0),XI([l4("uap-d-recipe-token-selector-search")],XA.prototype,"searchElement",void 0),XI([l6("uap-d-recipe-token-selector-token-row")],XA.prototype,"rowElements",void 0),XA=XI([lJ("uap-d-recipe-token-selector-panel")],XA);var X$=a(9300),XO=a.n(X$),XR=function(e,t,i,a){var n,o=arguments.length,r=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(r=(o<3?n(r):o>3?n(t,i,r):n(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r};let XM=class extends ld{constructor(){super(...arguments),this.suppressFocus=!1,this.onlyLoopableTokens=!1,this.open=!1,this.handleToggle=e=>{if(e instanceof ToggleEvent){if("open"===e.newState){this.open=!0;return}this.open=!1,lw({element:this,eventName:QJ,data:{},schema:Q1,options:{bubbles:!0,composed:!0}})}}}static{this.styles=sf`${sm(XO())}`}focusPanel(){this.panelElement?.focusTokens()}connectedCallback(){super.connectedCallback(),this.hasAttribute("popover")||this.setAttribute("popover","auto"),this.addEventListener("toggle",this.handleToggle)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("toggle",this.handleToggle)}willUpdate(e){lQ(this,"dataType",E$,e,"uap-d-recipe-token-selector")}render(){return this.open?s1` <div class="popover"> <uap-d-recipe-token-selector-panel recipe-id=${this.recipeID??s3} target-node-id=${this.targetNodeId??s3} data-type=${this.dataType??s3} query=${this.query??s3} ?suppress-focus=${this.suppressFocus} ?only-loopable-tokens=${this.onlyLoopableTokens} .unsupportedTokens=${this.unsupportedTokens} @uap.d.recipe.token-selector-panel.token-selected=${this.handleTokenSelected} @uap.d.recipe.token-selector-panel.token-group-selected=${this.handleTokenSelected} @uap.d.recipe.token-selector-panel.close=${this.handlePanelClose} ></uap-d-recipe-token-selector-panel> </div> `:s1``}handleTokenSelected(){this.matches(":popover-open")&&this.hidePopover()}handlePanelClose(){this.matches(":popover-open")&&this.hidePopover()}};XR([l0({type:Number,attribute:"recipe-id"})],XM.prototype,"recipeID",void 0),XR([l0({attribute:"target-node-id"})],XM.prototype,"targetNodeId",void 0),XR([l0({attribute:"data-type"})],XM.prototype,"dataType",void 0),XR([l0({type:String})],XM.prototype,"query",void 0),XR([l0({type:Boolean,attribute:"suppress-focus"})],XM.prototype,"suppressFocus",void 0),XR([l0({attribute:!1})],XM.prototype,"unsupportedTokens",void 0),XR([l0({type:Boolean,attribute:"only-loopable-tokens"})],XM.prototype,"onlyLoopableTokens",void 0),XR([l0({type:Boolean,reflect:!0})],XM.prototype,"open",void 0),XR([l4("uap-d-recipe-token-selector-panel")],XM.prototype,"panelElement",void 0),XM=XR([lJ("uap-d-recipe-token-selector")],XM),rg({integrationCode:oR().min(1),token:EL}).strict();let XL="uap.f.recipe-builder.token-config-dialog.save",XN=rg({id:oR().min(1)}).strict(),XP="uap.f.recipe-builder.token-config-dialog.close",Xz=rg({}).strict();var XU=function(e,t,i,a){var n,o=arguments.length,r=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(r=(o<3?n(r):o>3?n(t,i,r):n(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r};let XF=class extends ld{constructor(){super(...arguments),this.fields={},this.isDirty=!1,this.integrationsQuery=new vE(this,SS)}createRenderRoot(){return this}render(){let e=this.findToken();return void 0===e||void 0===e.token.config?s1``:s1` <uap-d-fields-edit-shell integration-code=${e.integrationCode} .recipeID=${this.recipeID} heading=${e.token.name} sentence-template=${e.token.config.name_template} .fields=${this.fields} ?is-dirty=${this.isDirty} @uap.d.fields-edit-shell.save=${this.onSave} @uap.d.fields-edit-shell.close=${this.onClose} > <uap-builder-item-legacy-form slot="body" .recipeID=${this.recipeID} .itemID=${this.targetNodeId} .fieldsDirectory=${e.token.config.fields.map(e=>({...e,item_type:"token",show_label_in_sentence:!1}))} return-format="token" @uap.f.recipe-builder.legacy-form.change=${this.onLegacyFormChange} ></uap-builder-item-legacy-form> </uap-d-fields-edit-shell> `}findToken(){let e=this.integrationsQuery.result.data;if(void 0!==this.tokenId&&void 0!==e)for(let t of Object.values(e)){let e=t.tokens[this.tokenId];if(void 0!==e)return{integrationCode:t.code,token:e}}}onLegacyFormChange(e){this.fields=e.detail.unsavedFieldValues,e.detail.isUserEdit&&(this.isDirty=!0)}onSave(){var e;let t=this.findToken();if(void 0===t||void 0===t.token.config||rY(this.$legacyForm)||!this.$legacyForm.areFieldsValid)return;let i=k4.parse(this.$legacyForm.unsavedFieldValues),a={};for(let e of t.token.config.fields)a[e.option_code]=i[e.option_code]?.value??"";lw({element:this,eventName:XL,data:{id:(e=t.token.config.id_template,lV(e).map(t=>{let i=An(t);if(void 0===i)return t;let n=a[i];if(void 0===n)throw Error(`composeFieldTokenId: missing value for placeholder "${i}" in id_template "${e}".`);return n}).join(":"))},schema:XN,options:{bubbles:!0,composed:!0}}),this.remove()}onClose(){lw({element:this,eventName:XP,data:{},schema:Xz,options:{bubbles:!0,composed:!0}}),this.remove()}};XU([l0({type:String,attribute:"token-id"})],XF.prototype,"tokenId",void 0),XU([l0({type:Number,attribute:"recipe-id"})],XF.prototype,"recipeID",void 0),XU([l0({attribute:"target-node-id"})],XF.prototype,"targetNodeId",void 0),XU([l2()],XF.prototype,"fields",void 0),XU([l4("uap-builder-item-legacy-form")],XF.prototype,"$legacyForm",void 0),XU([l2()],XF.prototype,"isDirty",void 0),XF=XU([lJ("uap-f-recipe-builder-token-config-dialog")],XF);let Xj={fields:[{option_code:"SOURCE",show_label_in_sentence:!1,input_type:"radio",label:(0,b4.escapeHTML)((0,lX.__)("Run actions as","uncanny-automator")),required:!0,supports_tokens:!1,options_show_id:!1,options:[{value:"existing-user",text:(0,b4.escapeHTML)((0,lX.__)("An existing user","uncanny-automator"))},{value:"new-user",text:(0,b4.escapeHTML)((0,lX.__)("A new user","uncanny-automator"))}]},{option_code:"UNIQUE_FIELD",show_label_in_sentence:!1,input_type:"select",label:(0,b4.escapeHTML)((0,lX.__)("Match by","uncanny-automator")),required:!0,supports_tokens:!1,options_show_id:!1,options:[{value:"email",text:(0,b4.escapeHTML)((0,lX.__)("Email","uncanny-automator"))},{value:"id",text:(0,b4.escapeHTML)((0,lX.__)("User ID","uncanny-automator"))},{value:"username",text:(0,b4.escapeHTML)((0,lX.__)("Username","uncanny-automator"))}],dynamic_visibility:{default_state:"hidden",visibility_rules:[{operator:"AND",rule_conditions:[{option_code:"SOURCE",compare:"==",value:"existing-user"}],resulting_visibility:"show"}]}},{option_code:"UNIQUE_FIELD_VALUE",show_label_in_sentence:!1,input_type:"text",label:(0,b4.escapeHTML)((0,lX.__)("Value","uncanny-automator")),description:(0,b4.escapeHTML)((0,lX.__)("The value to look the existing user up by. Supports tokens.","uncanny-automator")),required:!0,supports_tokens:!0,dynamic_visibility:{default_state:"hidden",visibility_rules:[{operator:"AND",rule_conditions:[{option_code:"SOURCE",compare:"==",value:"existing-user"}],resulting_visibility:"show"}]}},{option_code:"NEW_USER_EMAIL",show_label_in_sentence:!1,input_type:"email",label:(0,b4.escapeHTML)((0,lX.__)("Email","uncanny-automator")),required:!0,supports_tokens:!0,dynamic_visibility:{default_state:"hidden",visibility_rules:[{operator:"AND",rule_conditions:[{option_code:"SOURCE",compare:"==",value:"new-user"}],resulting_visibility:"show"}]}},{option_code:"NEW_USER_USERNAME",show_label_in_sentence:!1,input_type:"text",label:(0,b4.escapeHTML)((0,lX.__)("Username","uncanny-automator")),required:!0,supports_tokens:!0,dynamic_visibility:{default_state:"hidden",visibility_rules:[{operator:"AND",rule_conditions:[{option_code:"SOURCE",compare:"==",value:"new-user"}],resulting_visibility:"show"}]}},{option_code:"NEW_USER_FIRST_NAME",show_label_in_sentence:!1,input_type:"text",label:(0,b4.escapeHTML)((0,lX.__)("First name","uncanny-automator")),required:!1,supports_tokens:!0,dynamic_visibility:{default_state:"hidden",visibility_rules:[{operator:"AND",rule_conditions:[{option_code:"SOURCE",compare:"==",value:"new-user"}],resulting_visibility:"show"}]}},{option_code:"NEW_USER_LAST_NAME",show_label_in_sentence:!1,input_type:"text",label:(0,b4.escapeHTML)((0,lX.__)("Last name","uncanny-automator")),required:!1,supports_tokens:!0,dynamic_visibility:{default_state:"hidden",visibility_rules:[{operator:"AND",rule_conditions:[{option_code:"SOURCE",compare:"==",value:"new-user"}],resulting_visibility:"show"}]}},{option_code:"NEW_USER_DISPLAY_NAME",show_label_in_sentence:!1,input_type:"text",label:(0,b4.escapeHTML)((0,lX.__)("Display name","uncanny-automator")),required:!1,supports_tokens:!0,dynamic_visibility:{default_state:"hidden",visibility_rules:[{operator:"AND",rule_conditions:[{option_code:"SOURCE",compare:"==",value:"new-user"}],resulting_visibility:"show"}]}},{option_code:"NEW_USER_PASSWORD",show_label_in_sentence:!1,input_type:"text",label:(0,b4.escapeHTML)((0,lX.__)("Password","uncanny-automator")),description:(0,b4.escapeHTML)((0,lX.__)("If left empty, the user will need to reset their password to log in.","uncanny-automator")),required:!1,supports_tokens:!0,dynamic_visibility:{default_state:"hidden",visibility_rules:[{operator:"AND",rule_conditions:[{option_code:"SOURCE",compare:"==",value:"new-user"}],resulting_visibility:"show"}]}},{option_code:"NEW_USER_ROLE",show_label_in_sentence:!1,input_type:"select",label:(0,b4.escapeHTML)((0,lX.__)("Role","uncanny-automator")),required:!1,supports_tokens:!1,options_show_id:!1,options:[{value:"subscriber",text:(0,b4.escapeHTML)((0,lX.__)("Subscriber","uncanny-automator"))},{value:"contributor",text:(0,b4.escapeHTML)((0,lX.__)("Contributor","uncanny-automator"))},{value:"author",text:(0,b4.escapeHTML)((0,lX.__)("Author","uncanny-automator"))},{value:"editor",text:(0,b4.escapeHTML)((0,lX.__)("Editor","uncanny-automator"))}],dynamic_visibility:{default_state:"hidden",visibility_rules:[{operator:"AND",rule_conditions:[{option_code:"SOURCE",compare:"==",value:"new-user"}],resulting_visibility:"show"}]}},{option_code:"EXISTING_USER_FALLBACK",show_label_in_sentence:!1,input_type:"radio",label:(0,b4.escapeHTML)((0,lX.__)("If the user doesn't exist","uncanny-automator")),required:!0,supports_tokens:!1,options_show_id:!1,options:[{value:"create-new-user",text:(0,b4.escapeHTML)((0,lX.__)("Create a new user","uncanny-automator"))},{value:"do-nothing",text:(0,b4.escapeHTML)((0,lX.__)("Skip the action","uncanny-automator"))}],dynamic_visibility:{default_state:"hidden",visibility_rules:[{operator:"AND",rule_conditions:[{option_code:"SOURCE",compare:"==",value:"existing-user"}],resulting_visibility:"show"}]}},{option_code:"CREATE_USER_EMAIL",show_label_in_sentence:!1,input_type:"email",label:(0,b4.escapeHTML)((0,lX.__)("Email","uncanny-automator")),required:!0,supports_tokens:!0,dynamic_visibility:{default_state:"hidden",visibility_rules:[{operator:"AND",rule_conditions:[{option_code:"SOURCE",compare:"==",value:"existing-user"},{option_code:"EXISTING_USER_FALLBACK",compare:"==",value:"create-new-user"}],resulting_visibility:"show"}]}},{option_code:"CREATE_USER_USERNAME",show_label_in_sentence:!1,input_type:"text",label:(0,b4.escapeHTML)((0,lX.__)("Username","uncanny-automator")),required:!0,supports_tokens:!0,dynamic_visibility:{default_state:"hidden",visibility_rules:[{operator:"AND",rule_conditions:[{option_code:"SOURCE",compare:"==",value:"existing-user"},{option_code:"EXISTING_USER_FALLBACK",compare:"==",value:"create-new-user"}],resulting_visibility:"show"}]}},{option_code:"CREATE_USER_FIRST_NAME",show_label_in_sentence:!1,input_type:"text",label:(0,b4.escapeHTML)((0,lX.__)("First name","uncanny-automator")),required:!1,supports_tokens:!0,dynamic_visibility:{default_state:"hidden",visibility_rules:[{operator:"AND",rule_conditions:[{option_code:"SOURCE",compare:"==",value:"existing-user"},{option_code:"EXISTING_USER_FALLBACK",compare:"==",value:"create-new-user"}],resulting_visibility:"show"}]}},{option_code:"CREATE_USER_LAST_NAME",show_label_in_sentence:!1,input_type:"text",label:(0,b4.escapeHTML)((0,lX.__)("Last name","uncanny-automator")),required:!1,supports_tokens:!0,dynamic_visibility:{default_state:"hidden",visibility_rules:[{operator:"AND",rule_conditions:[{option_code:"SOURCE",compare:"==",value:"existing-user"},{option_code:"EXISTING_USER_FALLBACK",compare:"==",value:"create-new-user"}],resulting_visibility:"show"}]}},{option_code:"CREATE_USER_DISPLAY_NAME",show_label_in_sentence:!1,input_type:"text",label:(0,b4.escapeHTML)((0,lX.__)("Display name","uncanny-automator")),required:!1,supports_tokens:!0,dynamic_visibility:{default_state:"hidden",visibility_rules:[{operator:"AND",rule_conditions:[{option_code:"SOURCE",compare:"==",value:"existing-user"},{option_code:"EXISTING_USER_FALLBACK",compare:"==",value:"create-new-user"}],resulting_visibility:"show"}]}},{option_code:"CREATE_USER_PASSWORD",show_label_in_sentence:!1,input_type:"text",label:(0,b4.escapeHTML)((0,lX.__)("Password","uncanny-automator")),description:(0,b4.escapeHTML)((0,lX.__)("If left empty, the user will need to reset their password to log in.","uncanny-automator")),required:!1,supports_tokens:!0,dynamic_visibility:{default_state:"hidden",visibility_rules:[{operator:"AND",rule_conditions:[{option_code:"SOURCE",compare:"==",value:"existing-user"},{option_code:"EXISTING_USER_FALLBACK",compare:"==",value:"create-new-user"}],resulting_visibility:"show"}]}},{option_code:"CREATE_USER_ROLE",show_label_in_sentence:!1,input_type:"select",label:(0,b4.escapeHTML)((0,lX.__)("Role","uncanny-automator")),required:!1,supports_tokens:!1,options_show_id:!1,options:[{value:"subscriber",text:(0,b4.escapeHTML)((0,lX.__)("Subscriber","uncanny-automator"))},{value:"contributor",text:(0,b4.escapeHTML)((0,lX.__)("Contributor","uncanny-automator"))},{value:"author",text:(0,b4.escapeHTML)((0,lX.__)("Author","uncanny-automator"))},{value:"editor",text:(0,b4.escapeHTML)((0,lX.__)("Editor","uncanny-automator"))}],dynamic_visibility:{default_state:"hidden",visibility_rules:[{operator:"AND",rule_conditions:[{option_code:"SOURCE",compare:"==",value:"existing-user"},{option_code:"EXISTING_USER_FALLBACK",compare:"==",value:"create-new-user"}],resulting_visibility:"show"}]}},{option_code:"LOG_USER_IN",show_label_in_sentence:!1,input_type:"checkbox",is_toggle:!0,label:(0,b4.escapeHTML)((0,lX.__)("Log the new user in","uncanny-automator")),dynamic_visibility:{default_state:"hidden",visibility_rules:[{operator:"AND",rule_conditions:[{option_code:"SOURCE",compare:"==",value:"new-user"}],resulting_visibility:"show"},{operator:"AND",rule_conditions:[{option_code:"SOURCE",compare:"==",value:"existing-user"},{option_code:"EXISTING_USER_FALLBACK",compare:"==",value:"create-new-user"}],resulting_visibility:"show"}]}},{option_code:"NEW_USER_FALLBACK",show_label_in_sentence:!1,input_type:"radio",label:(0,b4.escapeHTML)((0,lX.__)("If the user already exists","uncanny-automator")),description:(0,b4.escapeHTML)((0,lX.__)("What to do when a user with the same email or username already exists.","uncanny-automator")),required:!0,supports_tokens:!1,options_show_id:!1,options:[{value:"select-existing-user",text:(0,b4.escapeHTML)((0,lX.__)("Use the existing user","uncanny-automator"))},{value:"do-nothing",text:(0,b4.escapeHTML)((0,lX.__)("Skip the action","uncanny-automator"))}],dynamic_visibility:{default_state:"hidden",visibility_rules:[{operator:"AND",rule_conditions:[{option_code:"SOURCE",compare:"==",value:"new-user"}],resulting_visibility:"show"}]}},{option_code:"PRIORITIZED_FIELD",show_label_in_sentence:!1,input_type:"select",label:(0,b4.escapeHTML)((0,lX.__)("Match the existing user by","uncanny-automator")),description:(0,b4.escapeHTML)((0,lX.__)("If one user matches the email and a different user matches the username, the user matching this field is used.","uncanny-automator")),required:!0,supports_tokens:!1,options_show_id:!1,options:[{value:"email",text:(0,b4.escapeHTML)((0,lX.__)("Email","uncanny-automator"))},{value:"username",text:(0,b4.escapeHTML)((0,lX.__)("Username","uncanny-automator"))}],dynamic_visibility:{default_state:"hidden",visibility_rules:[{operator:"AND",rule_conditions:[{option_code:"SOURCE",compare:"==",value:"new-user"},{option_code:"NEW_USER_FALLBACK",compare:"==",value:"select-existing-user"}],resulting_visibility:"show"}]}}],sentence:{default:(0,b4.escapeHTML)((0,lX.__)("Actions run as the user that triggered the recipe","uncanny-automator")),variants:[{when:[{field:"SOURCE",equals:"existing-user"},{field:"EXISTING_USER_FALLBACK",equals:"create-new-user"}],template:(0,b4.escapeHTML)((0,lX.__)("An existing user matching {{Match by:UNIQUE_FIELD}} {{Value:UNIQUE_FIELD_VALUE}}, otherwise create a new user with email {{Email:CREATE_USER_EMAIL}}","uncanny-automator"))},{when:[{field:"SOURCE",equals:"existing-user"}],template:(0,b4.escapeHTML)((0,lX.__)("An existing user matching {{Match by:UNIQUE_FIELD}} {{Value:UNIQUE_FIELD_VALUE}}","uncanny-automator"))},{when:[{field:"SOURCE",equals:"new-user"},{field:"NEW_USER_FALLBACK",equals:"select-existing-user"}],template:(0,b4.escapeHTML)((0,lX.__)("A new user with email {{Email:NEW_USER_EMAIL}}, otherwise the existing user matching {{Match by:PRIORITIZED_FIELD}}","uncanny-automator"))},{when:[{field:"SOURCE",equals:"new-user"}],template:(0,b4.escapeHTML)((0,lX.__)("A new user with email {{Email:NEW_USER_EMAIL}}","uncanny-automator"))}]}},XB={SOURCE:{type:"radio",value:"existing-user",readable:(0,b4.escapeHTML)((0,lX.__)("An existing user","uncanny-automator")),miscellaneous:{show_label_in_sentence:!1,label:(0,b4.escapeHTML)((0,lX.__)("Run actions as","uncanny-automator"))}},UNIQUE_FIELD:{type:"select",value:"email",readable:(0,b4.escapeHTML)((0,lX.__)("Email","uncanny-automator")),miscellaneous:{show_label_in_sentence:!1,label:(0,b4.escapeHTML)((0,lX.__)("Match by","uncanny-automator"))}},UNIQUE_FIELD_VALUE:{type:"text",value:"",miscellaneous:{show_label_in_sentence:!1,label:(0,b4.escapeHTML)((0,lX.__)("Value","uncanny-automator"))}},EXISTING_USER_FALLBACK:{type:"radio",value:"do-nothing",readable:(0,b4.escapeHTML)((0,lX.__)("Skip the action","uncanny-automator")),miscellaneous:{show_label_in_sentence:!1,label:(0,b4.escapeHTML)((0,lX.__)("If the user doesn't exist","uncanny-automator"))}}};async function XH(e,t){let i=await async function(e){let t=o5().int().positive().parse(e);return dW.fetchQuery(Ai(t))}(e);"anonymous"!==i.recipe_type||null!==i.flow.run_as||i.miscellaneous.run_as_availability.status!==Cc.USABLE||Q0(i,t)||await async function(e){await dK(NH(),e)}({recipeID:e,runAs:{fields:XB}})}let XV=e=>(["repeater"].includes((e=Xq(e=JSON.parse(JSON.stringify(e)))).fieldType)&&(e.fields=e.fields.map(t=>Object.assign(Xq(t),{itemType:e.itemType}))),e),Xq=e=>{let t={required:"isRequired",read_only:"isReadOnly",supports_tinymce:"supportsTinyMCE",supports_markdown:"supportsMarkdown",allowed_html_tags:"allowedHtmlTags",supports_media:"supportsMedia",supports_fullpage_editing:"supportsFullPageEditing",copy_to_clipboard:"supportsCopyToClipboard",is_ajax:"isAjax",option_code:"optionCode",input_type:"fieldType",is_hidden:"isHidden",token_name:"tokenName",unsupported_tokens:"unsupportedTokens",default_value:"defaultValue",current_value:"currentValue",max_length:"maxLength",relevant_tokens:"customFieldTokens",date_format:"dateFormat",date_alt_format:"dateAltFormat",supports_range:"supportsRange",min_number:"minNumber",max_number:"maxNumber",min_date:"minDate",max_date:"maxDate",minute_increment:"minuteIncrement",time_format:"timeFormat",supports_tokens:"supportsTokens",time_alt_format:"timeAltFormat",min_time:"minTime",max_time:"maxTime",hide_actions:"hideActions",supports_custom_value:"supportsCustomValue",supports_multiple_values:"supportsMultipleValues",custom_value_description:"customValueDescription",fill_values_in:"targetField",add_row_button:"addRowButtonLabel",remove_row_button:"removeRowButtonLabel",item_type:"itemType",can_sort_rows:"canSortRows",is_toggle:"isToggle",options_show_id:"optionsShowID",ajax:"ajax",listen_fields:"listenFields",clear_on_change_fields:"clearOnChangeFields",show_label_in_sentence:"showLabelInSentence",mapping_column:"mappingColumn",exclude_default_token:"excludeDefaultToken",only_loopable_tokens:"onlyLoopableTokens",clear_when_adding_token:"clearWhenAddingToken",file_types:"fileTypes",parent_id:"parentID"};return Object.entries(e).forEach(([i,a])=>{if(rK(t[i])){e[t[i]]=a;try{if("object"!=typeof a)throw Error();Object.entries(a).forEach(([a,n])=>{rK(t[a])&&(e[t[i]][t[a]]=n,delete e[t[i]][a])})}catch{}i!==t[i]&&delete e[i]}}),e};class XZ{constructor(e,t){this.attributes=e,this.tinyMCEStyles=t}generate(){return this.attributes.allowedHtmlTags?this.buildRestrictedConfig():this.buildDefaultConfig()}buildRestrictedConfig(){let e=this.generateTagConfig(this.attributes.allowedHtmlTags||[]),t=this.getRestrictedModeOptions();return{mediaButtons:!1,tinymce:{plugins:e.plugins.join(" "),toolbar1:e.toolbar.join(" "),height:"350",content_css:this.tinyMCEStyles.join(","),valid_elements:e.validElements||void 0,formats:e.formats,...t},quicktags:!0}}buildDefaultConfig(){let e=["charmap","colorpicker","hr","lists","paste","tabfocus","textcolor","fullscreen","link"];return this.attributes.supportsFullPageEditing&&e.push("fullpage"),{mediaButtons:!1!==this.attributes.supportsMedia,tinymce:{plugins:e.join(" "),toolbar1:"formatselect bold italic bullist numlist blockquote alignleft aligncenter alignright link unlink wp_more strikethrough hr forecolor pastetext removeformat visualchars outdent indent undo redo",height:"350",content_css:this.tinyMCEStyles.join(",")},quicktags:!0}}getRestrictedModeOptions(){return{forced_root_block:"",force_br_newlines:!0,force_p_newlines:!1,keep_styles:!1,valid_children:"+body[style]"}}generateTagConfig(e){let t={plugins:["paste"],toolbar:[],formats:{},validElements:null};return e&&Array.isArray(e)&&0!==e.length&&((e.includes("b")||e.includes("strong"))&&(t.toolbar.push("bold"),t.formats.bold={inline:"b"}),(e.includes("i")||e.includes("em"))&&(t.toolbar.push("italic"),t.formats.italic={inline:"i"}),(e.includes("u")||e.includes("ins"))&&(t.toolbar.push("underline"),t.formats.underline={inline:"u"}),(e.includes("s")||e.includes("strike")||e.includes("del"))&&(t.toolbar.push("strikethrough"),t.formats.strikethrough={inline:"s"}),e.includes("a")&&(t.toolbar.push("link","unlink"),t.plugins.push("link")),e.includes("blockquote")&&t.toolbar.push("blockquote"),(e.includes("ul")||e.includes("ol"))&&(t.toolbar.push("bullist","numlist"),t.plugins.push("lists")),t.toolbar.push("removeformat","undo","redo"),t.validElements=this.buildValidElements(e)),t}buildValidElements(e){let t=[...e];t.includes("ins")||t.push("ins"),t.includes("span")||t.push("span"),t.includes("img")||t.push("img");let i=t.join(",");return this.addElementAttributes(i)}addElementAttributes(e){return e.includes("a")&&(e=e.replace("a","a[href]")),e=(e=(e=e.replace("ins","ins[contenteditable]")).replace("span","span[class|contenteditable|data-token-id]")).replace("img","img[src|alt|class]")}}let XW="data-token-id",XG="uap-token",XK=` .${XG} { display: inline-block; padding: 1px 8px; border: 1px solid #d5dae2; border-radius: 999px; background: #eef1f6; color: #1e2a3a; font-size: 13px; font-weight: 600; line-height: 1.6; white-space: nowrap; cursor: default; } `;function XY(e,t){let i,a=document.createElement("span");return a.className=XG,a.setAttribute(XW,e),a.setAttribute("contenteditable","false"),a.textContent=void 0===(i=Ao(e,void 0!==t?dW.getQueryData(Ae.detail(t)):void 0,dW.getQueryData(Sk)))?e:i.source===Dz.UNKNOWN?(0,lX.__)("Unknown token","uncanny-automator"):i.displayName,a}function XQ(e,t){let i=document.createElement("div");return i.innerHTML=e,!function e(t,i){for(let a of Array.from(t.childNodes)){if(a instanceof Element){a.hasAttribute(XW)||e(a,i);continue}if(a.nodeType!==Node.TEXT_NODE)continue;let t=a.nodeValue??"",n=lH(t);0!==n.length&&a.replaceWith(...function(e,t,i){let a=[],n=0;return t.forEach(t=>{let o=`{{${t}}}`,r=e.indexOf(o,n);-1!==r&&(r>n&&a.push(e.slice(n,r)),a.push(XY(t,i)),n=r+o.length)}),n<e.length&&a.push(e.slice(n)),a}(t,n,i))}}(i,t),i.innerHTML}function XX(e){let t=document.createElement("div");for(let i of(t.innerHTML=e,Array.from(t.querySelectorAll(`[${XW}]`)))){let e=i.getAttribute(XW)??"";i.replaceWith(`{{${e}}}`)}return t.innerHTML}let XJ={TABLE:"table",LINES:"lines",INLINE:"inline"};rT(XJ);let X1="padding: 12px; text-align: left; border: 1px solid #dddddd; word-wrap: break-word; overflow-wrap: break-word;",X0=`${X1} background-color: #f2f2f2;`,X2=["int","float","date","time"];function X3(e,t){return e.line-t.line||e.ch-t.ch}let X4=0;class X6{constructor(e){this.Field=e,this.editor=null,this.trigger=null,this.popover=null,this.pills=[],this.listenersBound=!1,this.slashPos=null,this.pendingSlashRange=null,this.pendingRequiresUserData=!1,this.onCmReady=this.onCmReady.bind(this),this.rerenderPills=this.rerenderPills.bind(this),this.onTokenSelected=this.onTokenSelected.bind(this),this.onTokenGroupSelected=this.onTokenGroupSelected.bind(this),this.onConfigDialogSave=this.onConfigDialogSave.bind(this),this.onEditorInput=this.onEditorInput.bind(this),this.onEditorActivity=this.onEditorActivity.bind(this),this.onEditorChanges=this.onEditorChanges.bind(this),this.syncPillSelection=this.syncPillSelection.bind(this),this.onEditorKeydown=this.onEditorKeydown.bind(this),this.onPopoverClose=this.onPopoverClose.bind(this),this.onTinyMceTextView=this.onTinyMceTextView.bind(this),this.onEditorPaste=()=>{setTimeout(this.rerenderPills,100)},this.buildTrigger(),this.Field.getField().on("ua-codemirror-ready",this.onCmReady),this.Field.getField().on("ua-tinymce-activate-text-view",this.onTinyMceTextView)}onTinyMceTextView(){requestAnimationFrame(this.rerenderPills)}get recipeId(){let e=Number(this.Field.attributes.recipeId);return Number.isFinite(e)?e:void 0}onCmReady(){this.editor=this.Field.fieldCM,rK(this.editor)&&(this.renderPills(),this.listenersBound||(this.listenersBound=!0,this.editor.on("blur",this.rerenderPills),this.editor.on("paste",this.onEditorPaste),this.editor.on("inputRead",this.onEditorInput),this.editor.on("cursorActivity",this.onEditorActivity),this.editor.on("cursorActivity",this.syncPillSelection),this.editor.on("changes",this.onEditorChanges),this.editor.on("keydown",this.onEditorKeydown)))}onEditorChanges(e,t){t.some(e=>"setValue"===e.origin)&&this.renderPills()}buildTrigger(){rK(this.trigger)||!0===this.buildQueued||(this.buildQueued=!0,queueMicrotask(()=>{this.buildQueued=!1,this.buildTriggerNow()}))}buildTriggerNow(){if(rK(this.trigger))return;let e=this.toNode(this.Field.fieldContainer);if(!rK(e)||!e.isConnected)return;let t=e.closest(".form-input--token, .form-textarea--token");if(!rK(t))return;let i=t.querySelector(".form-element__input-cm"),a=rK(i)?i:t,n=`uap-token-popover-${++X4}`,o=`--${n}`;this.trigger=document.createElement("button"),this.trigger.type="button",this.trigger.className="uap-token-trigger",this.trigger.innerHTML='<uas-icon code="asterisk"></uas-icon>',this.trigger.setAttribute("popovertarget",n),this.trigger.setAttribute("popovertargetaction","toggle"),this.trigger.style.setProperty("anchor-name",o),a.appendChild(this.trigger),this.popover=document.createElement("uap-d-recipe-token-selector"),this.popover.id=n,this.popover.style.setProperty("position-anchor",o),rK(this.recipeId)&&(this.popover.recipeID=this.recipeId),this.popover.targetNodeId=this.Field.attributes.itemId??this.recipeId,rK(this.popover.recipeID)&&rK(this.popover.targetNodeId)||console.error("[field-token-popover] token selector mounted without recipeId/targetNodeId; the panel will stay in its loading state",{recipeId:this.recipeId,itemId:this.Field.attributes.itemId}),this.popover.dataType=function(e){switch(e){case"int":return EA.INTEGER;case"textarea":default:return EA.TEXT;case"text":case"email":case"url":case"float":case"date":case"time":return e}}(this.Field.attributes.fieldType),this.popover.unsupportedTokens=this.resolveUnsupportedTokens(),this.popover.onlyLoopableTokens=!0===this.Field.attributes.onlyLoopableTokens,this.popover.addEventListener(Xm,this.onTokenSelected,!0),this.popover.addEventListener(Xp,this.onTokenGroupSelected,!0),this.popover.addEventListener(QJ,this.onPopoverClose),t.appendChild(this.popover)}resolveUnsupportedTokens(){let e=this.Field.attributes.unsupportedTokens;if(Array.isArray(e)&&e.length>0)return e;let t=this.Field.attributes.unsupported_tokens;if(Array.isArray(t)&&t.length>0)return t}toNode(e){if(rK(e))return rK(e[0])?e[0]:e}openSlashPopover(e){this.popover.suppressFocus=!0,this.popover.query=e,this.popover.matches(":popover-open")||this.popover.showPopover()}onEditorInput(e,t){if(rK(this.slashPos)||!rK(this.trigger)||1!==t.text.length||"/"!==t.text[0])return;let i=t.from;if(0===i.line&&0===i.ch){if(!X2.includes(this.Field.attributes.fieldType))return}else if(i.ch>0){let t=e.getRange({line:i.line,ch:i.ch-1},i);if(!/\s/.test(t))return}this.slashPos={line:i.line,ch:i.ch},this.openSlashPopover("")}onEditorActivity(){if(!rK(this.slashPos)||!rK(this.editor))return;let e=this.editor.getCursor(),t=this.slashPos;e.line!==t.line||e.ch<=t.ch||"/"!==this.editor.getRange(t,{line:t.line,ch:t.ch+1})?this.endSlashSession():rK(this.popover)&&(this.popover.query=this.editor.getRange({line:t.line,ch:t.ch+1},e))}onEditorKeydown(e,t){rK(this.slashPos)&&"Escape"===t.key&&(t.preventDefault(),this.endSlashSession())}onPopoverClose(){this.endSlashSession()}endSlashSession(){rK(this.slashPos)&&(this.slashPos=null,rK(this.popover)&&(this.popover.suppressFocus=!1,this.popover.query="",this.popover.matches(":popover-open")&&this.popover.hidePopover()))}onTokenSelected(e){(this.pendingRequiresUserData=!0===e.detail.requiresUserData,e.detail.requiresConfig)?this.openConfigDialog(e.detail.id):this.insertTokenId(e.detail.id)}onTokenGroupSelected(e){if(["date","time"].includes(this.Field.attributes.fieldType))return void this.endSlashSession();let{tokens:t}=e.detail,i=function(e,t){if(t===XJ.TABLE){let t,i;return t=[(0,lX.__)("Name","uncanny-automator"),(0,lX.__)("ID","uncanny-automator"),(0,lX.__)("Value","uncanny-automator")].map(e=>`<th style="${X0}">${(0,b4.escapeHTML)(e)}</th>`).join(""),i=e.map(e=>{let t=[e.name,e.id,`{{${e.id}}}`].map(e=>`<td style="${X1}">${(0,b4.escapeHTML)(e)}</td>`).join("");return`<tr>${t}</tr>`}).join(""),`<table style="width: 100%; table-layout: fixed; border-collapse: collapse; margin: 20px 0;"><thead><tr>${t}</tr></thead><tbody>${i}</tbody></table>`}return e.map(e=>`${e.name} (${e.id}) : {{${e.id}}}`).join(t===XJ.LINES?` `:" | ")}(t,this.tokenGroupFormat()),a=t.map(e=>e.id),n=()=>this.removeInsertedTokenGroup(i,a);this.pendingRequiresUserData=t.some(e=>e.requiresUserData);let o=this.Field.fieldTinyMCE;if(rK(o)&&!o.hidden){this.endSlashSession(),o.insertContent(XQ(i,this.recipeId)),o.focus(),this.Field.getField().trigger("change input"),this.maybeTriggerRunAs(n);return}rK(this.editor)&&(this.removeSlashRun(),this.Field.attributes.clearWhenAddingToken&&this.Field.setValue("",!1),this.editor.doc.replaceRange(i,this.editor.doc.getCursor()),this.renderPills(),this.editor.focus(),this.maybeTriggerRunAs(n))}tokenGroupFormat(){return"textarea"!==this.Field.attributes.fieldType?XJ.INLINE:this.Field.attributes.supportsTinyMCE?XJ.TABLE:XJ.LINES}openConfigDialog(e){this.pendingSlashRange=rK(this.slashPos)&&rK(this.editor)?{from:this.slashPos,to:this.editor.getCursor()}:null;let t=document.createElement("uap-f-recipe-builder-token-config-dialog");t.tokenId=e,rK(this.recipeId)&&(t.recipeID=this.recipeId),t.targetNodeId=this.Field.attributes.itemId??this.recipeId,t.addEventListener(XL,this.onConfigDialogSave),t.addEventListener(XP,()=>{this.pendingSlashRange=null}),document.body.appendChild(t)}onConfigDialogSave(e){let t=this.pendingSlashRange;this.pendingSlashRange=null,this.insertTokenId(e.detail.id,t)}insertTokenId(e,t=null){let i=`{{${e}}}`,a=this.Field.attributes.fieldType,n=this.Field.fieldTinyMCE;if(rK(n)&&!n.hidden){this.endSlashSession(),n.insertContent(XY(e,this.recipeId).outerHTML),n.focus(),this.Field.getField().trigger("change input"),this.maybeTriggerRunAs(()=>this.removeInsertedToken(e));return}if(rK(this.editor)){if(this.removeSlashRun(t),this.Field.attributes.clearWhenAddingToken&&this.Field.setValue("",!1),["date","time"].includes(a)){this.editor.setValue(""),this.editor.doc.replaceRange(i,this.editor.doc.getCursor()),this.renderPills(),this.Field.setValue(i),this.maybeTriggerRunAs(()=>this.removeInsertedToken(e));return}this.editor.doc.replaceRange(i,this.editor.doc.getCursor()),this.renderPills(),this.editor.focus(),this.maybeTriggerRunAs(()=>this.removeInsertedToken(e))}}removeSlashRun(e=null){let t=this.slashPos??e?.from,i=rK(this.slashPos)?this.editor.getCursor():e?.to;this.endSlashSession(),rK(t)&&rK(i)&&this.editor.replaceRange("",t,i)}maybeTriggerRunAs(e){!0===this.pendingRequiresUserData&&rK(this.recipeId)&&(this.pendingRequiresUserData=!1,XH(this.recipeId,this.Field.attributes.itemId).catch(()=>{e(),ly({message:(0,b4.escapeHTML)((0,lX.__)("We could not set up the user selector automatically. Please try again.","uncanny-automator")),color:"error"})}))}removeInsertedToken(e){let t=`{{${e}}}`,i=this.Field.fieldTinyMCE;if(rK(i)&&!i.hidden){try{let t=rK(i.getBody)?i.getBody():void 0;if(rK(t)){let i;t.querySelectorAll("[data-token-id]").forEach(t=>{t.getAttribute("data-token-id")===e&&(i=t)}),rK(i)&&(i.remove(),this.Field.getField().trigger("change input"))}}catch(e){d4.DEV.SHOW_CONSOLE_MESSAGES&&console.error(e)}return}if(!rK(this.editor))return;let a=this.editor.getValue().lastIndexOf(t);-1!==a&&(this.editor.replaceRange("",this.editor.posFromIndex(a),this.editor.posFromIndex(a+t.length)),["date","time"].includes(this.Field.attributes.fieldType)&&this.Field.setValue("",!1),this.renderPills())}removeInsertedTokenGroup(e,t){let i=this.Field.fieldTinyMCE;if(rK(i)&&!i.hidden){try{let e=rK(i.getBody)?i.getBody():void 0;if(rK(e)){let i;e.querySelectorAll("table").forEach(e=>{let a=Array.from(e.querySelectorAll("[data-token-id]")).map(e=>e.getAttribute("data-token-id"));a.length===t.length&&a.every((e,i)=>e===t[i])&&(i=e)}),rK(i)&&(i.remove(),this.Field.getField().trigger("change input"))}}catch(e){d4.DEV.SHOW_CONSOLE_MESSAGES&&console.error(e)}return}if(!rK(this.editor))return;let a=this.editor.getValue().lastIndexOf(e);-1!==a&&(this.editor.replaceRange("",this.editor.posFromIndex(a),this.editor.posFromIndex(a+e.length)),this.renderPills())}rerenderPills(){rK(this.editor)&&this.renderPills()}renderPills(){this.clearMarkers();let e=this.editor.getValue(),t=lH(e),i=this.recipeId,a=0;t.forEach(t=>{let n=`{{${t}}}`,o=e.indexOf(n,a);if(-1===o)return;let r=o+n.length;a=r;let s=document.createElement("uap-d-recipe-token");s.setAttribute("code",t),rK(i)&&s.setAttribute("recipe-id",String(i)),s.setAttribute("size","sm");let l=this.editor.markText(this.editor.posFromIndex(o),this.editor.posFromIndex(r),{replacedWith:s,atomic:!0});this.pills.push({marker:l,pill:s}),s.addEventListener("mousedown",e=>{let t=l.find();rK(t)&&rK(this.editor)&&(e.preventDefault(),this.editor.focus(),this.editor.setSelection(t.from,t.to))})});let n=this.editor;requestAnimationFrame(()=>{rK(n)&&n.refresh()})}syncPillSelection(){if(!rK(this.editor))return;let e=this.editor.getCursor("from"),t=this.editor.getCursor("to");this.pills.forEach(({marker:i,pill:a})=>{let n=i.find(),o=rK(n)&&0>=X3(e,n.from)&&0>=X3(n.to,t);a.classList.toggle("form-element__token--selected",o)})}clearMarkers(){this.pills.forEach(({marker:e})=>{e.clear()}),this.pills=[]}destroy(){this.clearMarkers(),this.slashPos=null,this.pendingSlashRange=null,this.pendingRequiresUserData=!1,this.Field.getField().off("ua-codemirror-ready",this.onCmReady),this.Field.getField().off("ua-tinymce-activate-text-view",this.onTinyMceTextView),rK(this.editor)&&this.listenersBound&&(this.editor.off("blur",this.rerenderPills),this.editor.off("paste",this.onEditorPaste),this.editor.off("inputRead",this.onEditorInput),this.editor.off("cursorActivity",this.onEditorActivity),this.editor.off("cursorActivity",this.syncPillSelection),this.editor.off("changes",this.onEditorChanges),this.editor.off("keydown",this.onEditorKeydown),this.listenersBound=!1),rK(this.trigger)&&(this.trigger.remove(),this.trigger=null),rK(this.popover)&&(this.popover.remove(),this.popover=null),this.editor=null}}let X5={IDLE:"idle",COPIED:"copied"};rT(X5);let X8={COPY:"copy",CHECK:"check",ERROR:"xmark"},X7=rT(X8),X9={SUCCESS:"success"};rg({color:rT(X9).optional(),icon:X7});var Je=a(4161),Jt=a.n(Je),Ji=function(e,t,i,a){var n,o=arguments.length,r=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(r=(o<3?n(r):o>3?n(t,i,r):n(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r};let Ja=class extends ld{constructor(){super(...arguments),this.buttonState=X5.IDLE,this.isShowingSnackbar=!1}static{this.styles=sf`${sm(Jt())}`}disconnectedCallback(){this.clearResetTimer(),super.disconnectedCallback()}render(){let{color:e,icon:t}=this.getButtonStyle();return s1` <uo-tooltip> <span class="nowrap">${this.getTooltipText()}</span> <span slot="target"> <uas-button @click="${this.handleClick}" color=${e??s3} size="small" > <uas-icon code="${t}"></uas-icon> </uas-button> </span> </uo-tooltip> `}getButtonStyle(){return this.buttonState===X5.COPIED?{color:X9.SUCCESS,icon:X8.CHECK}:{icon:X8.COPY}}getTooltipText(){return this.tooltip?this.tooltip:this.contentName?(0,b4.escapeHTML)((0,lX.sprintf)((0,lX.__)("Copy %s to clipboard","uncanny-automator"),this.contentName)):(0,b4.escapeHTML)((0,lX.__)("Click to copy","uncanny-automator"))}async handleClick(){let e=this.getContent;if("function"!=typeof e)return void this.showError((0,b4.escapeHTML)((0,lX.__)("Copy failed: No content available","uncanny-automator")),"uo-click-to-copy: getContent must be a function");let t=e();"string"!=typeof t||0===t.trim().length?this.showError((0,b4.escapeHTML)((0,lX.__)("Copy failed: No content available","uncanny-automator")),"uo-click-to-copy: getContent must return a non-empty string"):await this.copyToClipboard(t)}async copyToClipboard(e){if(!navigator.clipboard?.writeText)return void this.showError((0,b4.escapeHTML)((0,lX.__)("Copy failed: Clipboard not available","uncanny-automator")),"Clipboard API not available in this browser/context.");try{await navigator.clipboard.writeText(e),this.showSuccess()}catch(e){this.showError((0,b4.escapeHTML)((0,lX.__)("Copy failed: Unable to copy to clipboard","uncanny-automator")),`Clipboard copy failed: ${e}`)}}getSuccessMessage(){return this.contentName?(0,b4.escapeHTML)((0,lX.sprintf)((0,lX.__)('"%s" copied to clipboard',"uncanny-automator"),this.contentName)):(0,b4.escapeHTML)((0,lX.__)("Copied to clipboard","uncanny-automator"))}showSuccess(){this.isShowingSnackbar||(this.buttonState=X5.COPIED,this.flashNotice({iconID:X8.CHECK,message:this.getSuccessMessage()},3e3))}showError(e,t){t&&console.error(t),this.buttonState=X5.IDLE,this.flashNotice({iconID:X8.ERROR,message:e,color:"error"},5e3)}flashNotice(e,t){this.clearResetTimer(),this.isShowingSnackbar=!0,ly({...e,duration:t}),this.resetTimer=setTimeout(()=>{this.buttonState=X5.IDLE,this.isShowingSnackbar=!1,this.resetTimer=void 0},t)}clearResetTimer(){void 0!==this.resetTimer&&(clearTimeout(this.resetTimer),this.resetTimer=void 0)}};Ji([l0({attribute:!1})],Ja.prototype,"getContent",void 0),Ji([l0({type:String,attribute:"content-name"})],Ja.prototype,"contentName",void 0),Ji([l0({type:String})],Ja.prototype,"tooltip",void 0),Ji([l2()],Ja.prototype,"buttonState",void 0),Ji([l2()],Ja.prototype,"isShowingSnackbar",void 0),Ja=Ji([lJ("uo-click-to-copy")],Ja),Qm().fn.uapSelect2=Qm().fn.select2;let Jn=null,Jo=0,Jr="remote-data",Js=class e{constructor(e,t,i=!0,a=null){this.type=e,this.attributes=this.setAttributes(t),this.createDOMelements=i,this.customValidationFunction=a,i&&this.createFormElement()}createFormElement(t=!0){let i=null,a=this.type,n=this.attributes;if(QG(a,QY)){let o,r,s,l=Qm()("<div/>",{class:"form-element"});l.attr("data-integration-id",n.integrationID),l.attr("data-field-code",n.optionCode),rK(n.formElementClass)&&l.addClass(n.formElementClass);let c={name:n.optionCode,id:n.uniqueFieldID,"data-isajax":n.isAjax,"data-targetfield":n.targetField,"data-integrationid":n.integrationID,"data-endPoint":n.endPoint,"data-supportsTokens":n.supportsTokens,"data-excludeDefaultToken":n.excludeDefaultToken,"data-supportsTinymce":n.supportsTinyMCE,"data-required":n.isRequired,"data-item_type":n.itemType,"data-item-id":n.itemId,"data-option-group":n.groupId,"data-is-hidden":n.isHidden,"data-is-child-field":n.isChildField};switch("textarea"===this.type&&(c["data-supportsfullpageediting"]=n.supportsFullPageEditing,c["data-allowed-html-tags"]=n.allowedHtmlTags?JSON.stringify(n.allowedHtmlTags):null,c["data-supports-media"]=n.supportsMedia),a){case"select":o=Qm()("<div/>",{class:"form-select"}),this.fieldContainer=o,r=Qm()("<select/>",Qm().extend({},c,{"data-type":"select",class:"form-element__select","data-supports-custom-value":n.supportsCustomValue})),n.supportsMultipleValues&&(r.prop("multiple","multiple"),n.supportsCustomValue&&rY(n.currentValue)&&(n.repeaterOptionCode&&n.hasValue&&(n.hasDefaultValue=!1),n.currentValue=[],n.hasValue=!1)),this.field=r;let d=!1,u=0,p,h;n.hasDefaultValue&&(p=rY(n.defaultValue.option_value)||rY(n.defaultValue.option_name)?n.defaultValue:n.defaultValue.option_value);let g=Qm()('<optgroup class="form-element__select-normal-options"></optgroup>');if(n.options=n.options.filter(e=>!QK(e.value)),Qm().each(n.options,function(e,t){let i=Qm()("<option/>",{value:t.value,text:t.text});n.hasDefaultValue&&p==t.value&&(h=!0,n.hasValue||(i.prop("selected",!0),d=!0)),n.hasValue&&n.currentValue==t.value&&(i.prop("selected",!0),d=!0),i.appendTo(g),u++}),g.appendTo(r),n.supportsMultipleValues){if(!rY(n.currentValue))try{r.val(n.currentValue)}catch(e){d4.DEV.SHOW_CONSOLE_MESSAGES&&console.warn(e)}rY(r.val())||(d=!0)}if(n.hasDefaultValue&&!h&&!rY(n.defaultValue.option_value)&&!rY(n.defaultValue.option_name)){let e=Qm()("<option/>",{value:n.defaultValue.option_value,text:n.defaultValue.option_name});n.hasValue||n.defaultValue.option_value==n.currentValue||(e.prop("selected",!0),d=!0),e.prependTo(r),u++}if(n.hasPlaceholder&&(r.prepend("<option></option>"),n.hasDefaultValue||n.hasValue||r.find("option:selected").prop("selected",!1)),n.hasValue&&!QK(n.currentValue)&&rK(n.ajax)&&rK(n.ajax.event)&&"search_options"===n.ajax.event&&([...Array.isArray(n.currentValue)?n.currentValue:[n.currentValue]].reverse().forEach(e=>{let t=g.children().filter((t,i)=>i.value===String(e));if(t.length)return void t.prop("selected",!0).prependTo(g);let i=rK(n.currentReadable)&&""!==String(n.currentReadable).trim()?String(n.currentReadable).trim():String(e);try{i=this._helperFindMultiselectLabel(i,e)}catch{}g.get(0).prepend(new Option(i,e,!0,!0)),u++}),d=!0),n.supportsCustomValue){let t=n.customValue,i=Qm()(` <optgroup label="${(0,b4.escapeHTML)((0,lX.__)("Other options","uncanny-automator"))}"> <option value="automator_custom_value">${(0,b4.escapeHTML)((0,lX.__)("Use a token/custom value","uncanny-automator"))}</option> </optgroup> `);r.append(i),n.hasValue&&QK(n.currentValue)&&(i.find("option").attr("selected",!0),d=!0),n.hasValue&&!d&&(i.find("option").attr("selected",!0),d=!0,t=n.currentValue),this.customValueField=new e("text",{parentID:n.parentID,recipeId:n.recipeId,itemId:n.itemId,itemType:n.itemType,isRequired:n.isRequired,isReadOnly:!1,supportsTinyMCE:!1,supportsCopyToClipboard:!1,supportsTokens:n.supportsTokens,isAjax:!1,fieldType:"text",optionCode:`${n.optionCode}_custom`,label:"",description:n.hasCustomValueDescription?n.customValueDescription:void 0,placeholder:"",isHidden:!1,tokenName:(0,lX.sprintf)((0,b4.escapeHTML)((0,lX.__)("%s (custom value)","uncanny-automator")),n.label),defaultValue:null,currentValue:t,isChildField:!0,parentOptionCode:n.optionCode})}if(this.selectHasSelectedOption=d,n.ajax?.event!=="search_options"&&0==u){let e=!n.supportsMultipleValues,t=Qm()(new Option((0,b4.escapeHTML)((0,lX.__)("No results found","uncanny-automator")),"",e,e));t.prop("disabled",!0),this.field.find(".form-element__select-normal-options").append(t),this.attributes.supportsCustomValue||this.field.prop("disabled",!0)}r.on("change",function(e,t){l.trigger("automator:field:change",t)});break;case"text":case"url":case"email":case"int":case"float":case"date":case"time":let m=`form-input form-input--${a}`;if(o=Qm()("<div/>",{class:m}),this.$fakeCodemirrorField=Qm()("<div/>",{class:"form-element__input-cm"}),o.append(this.$fakeCodemirrorField),this.fieldContainer=o,r=Qm()("<input/>",Qm().extend({},c,{class:"form-element__input",type:"text","data-type":a})),rK(n.maxLength)&&r.prop("maxlength",n.maxLength),this.field=r,n.supportsTokens&&o.addClass("form-input--token"),n.hasPlaceholder&&r.prop("placeholder",n.placeholder),n.hasValue?r.prop("value",n.currentValue):n.hasDefaultValue&&r.prop("value",n.defaultValue),["date","time"].includes(n.fieldType)){let e=Qm()(` <div class="form-element__input-clear" role="button" tabindex="0" aria-label="${(0,b4.escapeHTML)((0,lX.__)("Clear","uncanny-automator"))}" title="${(0,b4.escapeHTML)((0,lX.__)("Clear","uncanny-automator"))}"> <uas-icon code="xmark"></uas-icon> </div> `);o.addClass("form-input--has-clear"),rY(r.val())||o.addClass("form-input--has-value"),this.$fakeCodemirrorField.append(e),e.on("click",()=>{this.clearValue()}),e.on("keydown",e=>{["Enter"," "].includes(e.key)&&(e.preventDefault(),this.clearValue())})}if(["int","float"].includes(n.fieldType)&&(rY(n.minNumber)||r.get(0).setAttribute("data-min",n.minNumber),rY(n.maxNumber)||r.get(0).setAttribute("data-max",n.maxNumber)),rK(n.supportsCopyToClipboard)&&n.supportsCopyToClipboard){o.addClass("form-input--has-copy");let e=document.createElement("uo-click-to-copy");e.getContent=()=>this.getValue(),rK(n.label)&&!rY(n.label)&&e.setAttribute("content-name",n.label),this.$fakeCodemirrorField.append(e)}r.on("input",function(){l.trigger("automator:field:change")});break;case"textarea":o=Qm()("<div/>",{class:"form-textarea"}),this.fieldContainer=o,r=Qm()("<textarea/>",Qm().extend(!0,c,{"data-type":"textarea",class:"form-element__textarea","data-item_type":n.itemType})),rK(n.maxLength)&&r.prop("maxlength",n.maxLength),this.field=r,n.supportsTokens&&o.addClass("form-textarea--token"),n.hasPlaceholder&&r.prop("placeholder",n.placeholder),this.$fakeCodemirrorField=Qm()("<div/>",{class:"form-element__input-cm"}),o.append(this.$fakeCodemirrorField),n.hasValue?r.text(n.currentValue):n.hasDefaultValue&&r.text(n.defaultValue),r.on("input",function(){l.trigger("automator:field:change")});break;case"checkbox":o=Qm()("<div/>",{class:"form-checkbox"}),this.fieldContainer=o;let f=Qm()("<label/>",{class:"form-checkbox__container"}),y=Qm()("<div/>",{class:"checkbox--show"});if(r=Qm()("<input/>",Qm().extend({},c,{type:"checkbox","data-type":"checkbox",class:"checkbox--hidden checkbox--primary"})),n.hasValue&&n.currentValue&&r.prop("checked",!0),this.field=r,n.hasLabel&&(rK(n.isToggle)&&n.isToggle?o[0].insertAdjacentHTML("afterBegin",` <label for="${c.id}" class="form-element__label" > ${n.label} </label> `):f[0].innerHTML=n.label),o.append(f),f.append(r),f.append(y),rK(n.isToggle)&&n.isToggle){o.addClass("form-checkbox--toggle"),rK(n.toggle)||(n.toggle={on:(0,b4.escapeHTML)((0,lX.__)("Yes","uncanny-automator")),off:(0,b4.escapeHTML)((0,lX.__)("No","uncanny-automator"))});let e=Qm()("<span/>",{class:"checkbox-label checkbox-label--on"}).text(n.toggle.on);f.append(e);let t=Qm()("<span/>",{class:"checkbox-label checkbox-label--off"}).text(n.toggle.off);f.append(t)}if(rK(n.color))if(QG(n.color,["gutenberg","green"]))switch(n.color){case"gutenberg":o.addClass("form-checkbox--toggle-gutenberg");break;case"green":o.addClass("form-checkbox--toggle-green")}else console.error(`The color ${n.color} does not exists. Default color will be used instead.`);rK(n.align)&&(QG(n.align,["left","right"])?"right"==n.align&&o.addClass("form-checkbox--toggle-right"):console.error(`The alignment ${n.align} does not exists. "left" will be used instead.`)),r.on("change",function(e,t){l.trigger("automator:field:change",t)}),r=f;break;case"radio":o=Qm()("<div/>",{class:"form-radio"}),this.fieldContainer=o;let b=Qm()(),v=Qm()();Qm().each(n.options,function(e,t){let i=Qm()("<label/>",{class:"form-radio__container"});i.html(t.text);let a=Qm()("<input/>",Qm().extend({},c,{type:"radio","data-type":"radio",class:"radio--hidden radio--primary",value:t.value,name:c.id}));b=b.add(a);let o=Qm()("<div/>",{class:"radio--show"});i.append(a),i.append(o),n.hasValue&&n.currentValue==t.value?a.prop("checked",!0):!n.hasValue&&n.hasDefaultValue&&n.defaultValue==t.value&&a.prop("checked",!0),v=v.add(i)}),this.field=v,r=v,b.on("change",(e,t)=>{l.trigger("automator:field:change",t)});break;case"file":o=Qm()("<div/>",{class:"form-file"}),this.fieldContainer=o,r=Qm()("<uo-field-input-file/>",{multiple:n.supportsMultipleValues,required:n.isRequired,value:n.currentValue}),n.fileTypes&&r.prop("fileTypes",n.fileTypes),this.field=r,this.field.on("change",(e,t)=>{l.trigger("automator:field:change",t)})}if(o.append(r),"checkbox"!=a&&(n.hasLabel||n.isRequired)&&(s=Qm()("<label/>",{class:"form-element__label",for:n.uniqueFieldID}),n.hasLabel&&s.html(n.label)),n.isRequired){if(o.addClass("form-element--required"),"checkbox"==n.fieldType){if(r.find("input").prop("required",!0),n.hasLabel){let e=Qm()("<span/>",{class:"form-element-label__required"});r.append(e)}}else if(r.prop("required",!0),n.hasLabel){let e=Qm()("<span/>",{class:"form-element-label__required"});s.append(e)}}rK(n.isReadOnly)&&n.isReadOnly&&(["date","time"].includes(this.attributes.fieldType)||o.addClass("form-element--readonly"),"select"==n.fieldType?r.prop("disabled",!0):["checkbox","radio"].includes(n.fieldType)?r.find("input").prop("disabled",!0):r.prop("readonly",!0)),(n.hasLabel||n.isRequired)&&o.prepend(s);let _=Qm()("<div/>",{class:"form-element__error"});if(o.append(_),this.fieldContainer=o,n.hasDescription){let e=Qm()("<div/>",{class:"description"}),t=Qm()("<uas-markdown/>",{"allowed-tags":"strong,em,a",content:n.description});e.append(t),o.append(e)}rK(n.ajax)&&rK(n.ajax.event)&&["parent_fields_change","on_load"].includes(n.ajax.event)&&s.get(0).insertAdjacentHTML("beforeEnd",` <uas-button color="secondary" size="xs" class="form-element-ajax-refresh-btn" > <uas-icon code="rotate"></uas-icon> ${"select"===this.type?(0,b4.escapeHTML)((0,lX.__)("Refresh options","uncanny-automator")):(0,b4.escapeHTML)((0,lX.__)("Refresh","uncanny-automator"))} </uas-button> `),n.isHidden&&o.addClass("form-element--hidden"),l.append(o),"select"==n.fieldType&&rK(this.customValueField)&&(this.customValueFieldContainer=Qm()(`<div class="form-select-custom"> <div class="form-element-children"></div> </div>`),this.customValueFieldContainer.find(".form-element-children").append(this.customValueField.createFormElement()),l.append(this.customValueFieldContainer),n.supportsMultipleValues&&o.addClass("form-multi-select-custom"),QK(this.getValue())?this.customValueFieldContainer.addClass("form-select-custom--visible"):this.customValueFieldContainer.removeClass("form-select-custom--visible")),this.field.get(0).fieldInstance=this,i=l,this.formElement=l,t&&this.initLibraries(),this.handleAJAX(),this.onChange(),this.onFocus()}else console.error(`The field type "${a}" is invalid. The valid ones are ${QY.join(", ")}`);return i}setAttributes(e){if(e.fieldType=this.type,Qq(e),e.uniqueFieldID=`${e.optionCode}__${lq()}`,"checkbox"==e.fieldType&&!rY(e.currentValue)&&["true","false"].includes(e.currentValue)&&(e.currentValue="true"==e.currentValue,e.currentValue?e.hasValue=!0:e.hasValue=!1),e.supportsMultipleValues&&e.repeaterOptionCode&&Array.isArray(e.currentValue)&&(e.hasValue=!0),rK(e.hasValue)||(rY(e.currentValue)?e.hasValue=!1:e.hasValue=!0),rY(e.placeholder)&&"select"===this.type&&rK(e.ajax)&&rK(e.ajax.event)&&"search_options"===e.ajax.event&&(e.placeholder=(0,b4.escapeHTML)((0,lX.__)("Search...","uncanny-automator"))),rK(e.hasPlaceholder)||(rY(e.placeholder)?e.hasPlaceholder=!1:e.hasPlaceholder=!0),rK(e.hasDefaultValue)||(rY(e.defaultValue)?e.hasDefaultValue=!1:e.hasDefaultValue=!0),rK(e.hasLabel)||(rY(e.label)?e.hasLabel=!1:e.hasLabel=!0),rK(e.showLabelInSentence)||(e.showLabelInSentence=!0),rK(e.hasDescription)||(rY(e.description)?e.hasDescription=!1:e.hasDescription=!0),rY(e.tokenName)&&(e.tokenName=e.label),rK(e.supportsCopyToClipboard)||(e.supportsCopyToClipboard=!1),rK(e.isRequired)||(e.isRequired=!1),rK(e.isChildField)||(e.isChildField=!1),rK(e.isReadOnly)||(e.isReadOnly=!1),rK(e.supportsMultipleValues)||(e.supportsMultipleValues=!1),"file"!==this.type||rK(e.fileTypes)||(e.fileTypes=[]),"select"==e.fieldType){if(e.supportsMultipleValues?rK(e.supportsCustomValue)||(e.supportsCustomValue=!1):rK(e.supportsCustomValue)||(["condition","action","closure","loop-filter","block-modifier"].includes(e.itemType)?e.supportsCustomValue=!0:e.supportsCustomValue=!1),e.supportsMultipleValues&&"string"==typeof e.currentValue)try{e.currentValue=JSON.parse(e.currentValue)}catch(e){d4.DEV.SHOW_CONSOLE_MESSAGES&&console.warn(e)}e.hasCustomValueDescription=!rY(e.customValueDescription)}if(["radio","select"].includes(e.fieldType)&&!rK(e.options)&&(e.options=[]),["int","float"].includes(e.fieldType)){if(!rY(e.minNumber)){let t=parseFloat(e.minNumber);isNaN(t)||(e.minNumber=t)}if(!rY(e.maxNumber)){let t=parseFloat(e.maxNumber);isNaN(t)||(e.maxNumber=t)}}if("date"==e.fieldType&&(e.isReadOnly=!0,rK(e.dateFormat)||(e.dateFormat="Y-m-d"),rK(e.dateAltFormat)||(e.dateAltFormat=(0,Qh.getSettings)().formats.date),rK(e.minDate)&&(e.minDate=e.minDate),rK(e.maxDate)&&(e.maxDate=e.maxDate),rK(e.supportsRange)||(e.supportsRange=!1)),rK(e.clearWhenAddingToken)||(e.clearWhenAddingToken=!1),"time"==e.fieldType){e.isReadOnly=!0,rK(e.timeFormat)||(e.timeFormat="h:i K"),rK(e.timeAltFormat)||(e.timeAltFormat=(0,Qh.getSettings)().formats.time);let t={a:"K",A:"K",B:"",G:"H",g:"h",h:"g"};try{e.timeAltFormat=e.timeAltFormat.replace(RegExp(Object.keys(t).join("|"),"g"),e=>t[e])}catch{e.timeAltFormat=e.timeFormat}rK(e.minTime)&&(e.minTime=e.minTime),rK(e.maxTime)&&(e.maxTime=e.maxTime)}return rK(e.supportsMarkdown)||(e.supportsMarkdown=!1),rK(e.supportsTinyMCE)||(e.supportsTinyMCE=!1),e.supportsTinyMCE&&(rK(e.supportsFullPageEditing)||(e.supportsFullPageEditing=!1),rK(e.allowedHtmlTags)||(e.allowedHtmlTags=null),rK(e.supportsMedia)||(e.supportsMedia=!0)),!rK(e.isToggle)&&rK(e.toggle)&&(e.isToggle=!0),rK(e.isAjax)||(e.isAjax=!1),rK(e.ajax)&&rK(e.ajax.event)&&(e.ajax.firstLoadDone=!1),rK(e.isHidden)||(e.isHidden=!1),rK(e.unsupportedTokens)||(e.unsupportedTokens=[]),rK(e.onlyLoopableTokens)||(e.onlyLoopableTokens=!1),"trigger"==e.itemType&&(e.supportsTokens=!1),rK(e.supportsTokens)||(["text","textarea","int","float","email","url","select","date","time"].includes(e.fieldType)&&["condition","action","closure","loop-filter","block-modifier"].includes(e.itemType)&&!e.isReadOnly?e.supportsTokens=!0:e.supportsTokens=!1),e.supportsTokens&&"select"==e.fieldType&&!["condition","action","closure","loop-filter","block-modifier"].includes(e.itemType)&&(e.supportsTokens=!1),e}getAjaxRequestData({fieldToListenToCode:e}){return{recipe_id:this.attributes.recipeId,parent_id:this.attributes.parentID,item_id:this.attributes.itemId,group_id:this.attributes.groupId,field_id:this.attributes.optionCode,triggered_by:e,values:QZ({itemType:this.attributes.itemType,itemID:this.attributes.itemId,field:this})}}handleAJAX(){if(!rK(this.attributes.ajax)||!rK(this.attributes.ajax.event))return;let e=({fieldToListenToCode:e="",onComplete:t=()=>{},extraAttributes:i={}})=>{let a=QZ({itemType:this.attributes.itemType,itemID:this.attributes.itemId,field:this}),n={...this.getAjaxRequestData({fieldToListenToCode:e}),...i};this.clearError();let o="default"===this.attributes.remote_type,r=o?this.attributes.remote_data:this.attributes.ajax.endpoint;(o?QV:QH)(r,n,e=>{this.attributes.ajax.firstLoadDone=!0;try{t()}catch{}let i={updateCodemirror:!0,source:Jr};if(rK(e.success)&&!e.success){rY(e.error)||this.setError(e.error),"select"===this.type&&this.setSelectOptions([],!1),this.setValue("",!0,i);return}rK(e.options)&&this.setSelectOptions(e.options,!1),rK(e.value)?this.setValue(e.value,!0,i):["loop-filter","block-modifier"].includes(this.attributes.itemType)?rK(a[this.attributes.optionCode])&&rK(a[this.attributes.optionCode].value)&&QK(a[this.attributes.optionCode].value)?this.setValue(a[`${this.attributes.optionCode}`].custom,!0,i):this.attributes.supportsMultipleValues||rK(a[this.attributes.optionCode])&&this.field.get(0).querySelector(`option[value="${a[this.attributes.optionCode].value}"]`)?this.setValue(a[this.attributes.optionCode].value,!0,i):this.setValue("",!0,i):QK(a[this.attributes.optionCode])?(this.setValue(a[this.attributes.optionCode],!0,i),this.setCustomValue(a[`${this.attributes.optionCode}_custom`],!0,Jr)):this.setValue(a[this.attributes.optionCode],!0,i)},()=>{try{t()}catch{}this.setError((0,b4.escapeHTML)((0,lX.__)("Could not load options. Please try again.","uncanny-automator")))})};if("parent_fields_change"===this.attributes.ajax.event){if(!rK(this.attributes.ajax.listenFields)&&Array.isArray(this.attributes.ajax.listenFields))return;this.attributes.ajax.listenFields.forEach(t=>{let i=QW(this.attributes.itemId,t,this.attributes.itemType),a=0;i||(a=1e3),setTimeout(()=>{if(!(i=QW(this.attributes.itemId,t,this.attributes.itemType)))return;let a=1e3*!["date","time","select","radio","checkbox","file"].includes(i.type);i.formElement.on("automator:field:change",Ft((t,a)=>{rK(a)&&rK(a.source)&&"getFormElement"===a.source||(i.startLoadingAnimation(),this.startLoadingAnimation(),e({extraAttributes:{context:"parent-field-changed"},fieldToListenToCode:i.attributes.optionCode,onComplete:()=>{i.stopLoadingAnimation(),this.stopLoadingAnimation()}}))},a)),"select"===i.type&&i.attributes.supportsCustomValue&&i.customValueField.formElement.on("automator:field:change",Ft((t,a)=>{rK(a)&&rK(a.source)&&"getFormElement"===a.source||(i.startLoadingAnimation(),i.customValueField.startLoadingAnimation(),this.startLoadingAnimation(),e({extraAttributes:{context:"parent-field-changed"},fieldToListenToCode:i.attributes.optionCode,onComplete:()=>{i.stopLoadingAnimation(),i.customValueField.stopLoadingAnimation(),this.stopLoadingAnimation()}}))},1e3)),rK(i.attributes.ajax)||i.field.trigger("automator:field:change",{source:Jr})},a)}),this.$ajaxRefreshBtn&&this.$ajaxRefreshBtn.addEventListener("click",()=>{this.startLoadingAnimation(),e({extraAttributes:{context:"refresh-button"},fieldToListenToCode:this.attributes.optionCode,onComplete:()=>{this.stopLoadingAnimation()}})})}"on_load"===this.attributes.ajax.event&&(this.startLoadingAnimation(),e({extraAttributes:{context:"on-load"},fieldToListenToCode:this.attributes.optionCode,onComplete:()=>{this.stopLoadingAnimation()}}),this.$ajaxRefreshBtn&&this.$ajaxRefreshBtn.addEventListener("click",()=>{this.startLoadingAnimation(),e({extraAttributes:{context:"refresh-button"},fieldToListenToCode:this.attributes.optionCode,onComplete:()=>{this.stopLoadingAnimation()}})})),"search_options"===this.attributes.ajax.event&&rK(this.attributes.ajax.clearOnChangeFields)&&Array.isArray(this.attributes.ajax.clearOnChangeFields)&&this.attributes.ajax.clearOnChangeFields.forEach(e=>{let t=QW(this.attributes.itemId,e,this.attributes.itemType),i=1e3*!["date","time","select","radio","file","checkbox"].includes(t.type);t.formElement.on("automator:field:change",Ft((e,t)=>{this.setValue("")},i)),"select"===t.type&&t.attributes.supportsCustomValue&&t.customValueField.formElement.on("automator:field:change",Ft((e,t)=>{this.setValue("")},1e3))})}updateAttributes(e,t={}){this.type=e;let i={...this.attributes,...t,fieldType:e},a=this.getFormElement();this.attributes=this.setAttributes(i),this.createFormElement(),a.replaceWith(this.formElement),this.initLibraries(),this.initTokenSelector(),this.initFlatpickr(),this.initCodeMirror()}_helperFindMultiselectLabel(e,t){let i=JSON.parse(e).map(e=>e.split("::")).find(e=>e[0]==t);return i&&(e=i[1]),e}validate(e=!0){this.attributes.dynamic_visibility&&this.applyDynamicVisibility();let t=null,i;e?(t=this.getFieldContainer(),i=this.getValue()):i=this.attributes.currentValue,this.type;let a={supportsTokens:this.attributes.supportsTokens,required:this.attributes.isRequired,isHidden:this.attributes.isHidden,supportsCustomValue:this.attributes.supportsCustomValue};return"textarea"===this.type&&(a.supportsFullPageEditing=this.attributes.supportsFullPageEditing),["int","float"].includes(this.type)&&(rK(this.attributes.minNumber)&&(a.minNumber=this.attributes.minNumber),rK(this.attributes.maxNumber)&&(a.maxNumber=this.attributes.maxNumber)),function e(t,i,a,n={supportsTokens:!1,required:!1,supportsFullPageEditing:!1,isHidden:!1},o){let r={isValid:!1,message:""},s={select:{empty:(0,b4.escapeHTML)((0,lX.__)("Please select a value from the dropdown list.","uncanny-automator")),invalid:(0,b4.escapeHTML)((0,lX.__)("Please select a valid option.","uncanny-automator"))},text:{empty:(0,b4.escapeHTML)((0,lX.__)("Please fill out this field.","uncanny-automator")),invalid:(0,b4.escapeHTML)((0,lX.__)("Please fill out this field with a valid value.","uncanny-automator"))},textarea:{empty:(0,b4.escapeHTML)((0,lX.__)("Please fill out this field.","uncanny-automator")),invalid:(0,b4.escapeHTML)((0,lX.__)("Please fill out this field with a valid value.","uncanny-automator"))},int:{empty:(0,b4.escapeHTML)((0,lX.__)("Please enter a number.","uncanny-automator")),invalid:(0,b4.escapeHTML)((0,lX.__)("Please enter a valid whole number (no decimal places).","uncanny-automator")),multipleTokens:(0,b4.escapeHTML)((0,lX.__)("This field only supports one token at a time.","uncanny-automator")),minValue:(0,b4.escapeHTML)((0,lX.__)("Value must be greater than or equal to %1$s","uncanny-automator")),maxValue:(0,b4.escapeHTML)((0,lX.__)("Value must be less than or equal to %1$s","uncanny-automator"))},float:{empty:(0,b4.escapeHTML)((0,lX.__)("Please enter a number.","uncanny-automator")),invalid:(0,b4.escapeHTML)((0,lX.__)("Please enter a valid number.","uncanny-automator")),multipleTokens:(0,b4.escapeHTML)((0,lX.__)("This field only supports one token at a time.","uncanny-automator")),minValue:(0,b4.escapeHTML)((0,lX.__)("Value must be greater than or equal to %1$s","uncanny-automator")),maxValue:(0,b4.escapeHTML)((0,lX.__)("Value must be less than or equal to %1$s","uncanny-automator"))},email:{empty:(0,b4.escapeHTML)((0,lX.__)("Please enter an email address.","uncanny-automator")),single:{invalid:(0,b4.escapeHTML)((0,lX.__)("Please enter a valid email address.","uncanny-automator")),multipleTokens:(0,b4.escapeHTML)((0,lX.__)("This field only supports one token per email.","uncanny-automator"))},multiple:{invalid:(0,b4.escapeHTML)((0,lX.__)("Please enter a list of valid email addresses.","uncanny-automator")),multipleTokens:(0,b4.escapeHTML)((0,lX.__)("This field only supports one token per email.","uncanny-automator"))}},url:{empty:(0,b4.escapeHTML)((0,lX.__)("Please enter a URL.","uncanny-automator")),invalid:(0,b4.escapeHTML)((0,lX.__)("Please enter a valid URL.","uncanny-automator"))},checkbox:{empty:(0,b4.escapeHTML)((0,lX.__)("Please check this checkbox.","uncanny-automator")),invalid:(0,b4.escapeHTML)((0,lX.__)("Please select valid options.","uncanny-automator"))},radio:{empty:(0,b4.escapeHTML)((0,lX.__)("Please select one option.","uncanny-automator")),invalid:(0,b4.escapeHTML)((0,lX.__)("Please select a valid option.","uncanny-automator"))},date:{empty:(0,b4.escapeHTML)((0,lX.__)("Please enter a date.","uncanny-automator")),invalid:(0,b4.escapeHTML)((0,lX.__)("Please enter a valid date.","uncanny-automator"))},time:{empty:(0,b4.escapeHTML)((0,lX.__)("Please enter a time.","uncanny-automator")),invalid:(0,b4.escapeHTML)((0,lX.__)("Please enter a valid time.","uncanny-automator"))},file:{empty:(0,b4.escapeHTML)((0,lX.__)("Please select a file.","uncanny-automator"))},invalidType:(0,b4.escapeHTML)((0,lX.__)("Invalid field type.","uncanny-automator"))};if(n.isHidden)return r.isValid=!0,r;try{if("textarea"==i&&!rY(t)&&t.is(":not(:visible)")){let e=t.closest(".form-element");e.find(".switch-html").trigger("click"),a=t.val(),e.find(".switch-tmce").trigger("click")}}catch(e){d4.DEV.SHOW_CONSOLE_MESSAGES&&console.warn(e)}if(QG(i,QY)){if("checkbox"==i&&!rY(a)&&["true","false"].includes(a)&&(a="true"==a),n.required&&(rY(a)||"checkbox"==i&&!1===a))r.message=s[i].empty;else if(!n.required&&rY(a))r.isValid=!0;else if(""!=a){let l;switch(i){case"select":if(r.isValid=!0,n.supportsCustomValue&&QK(a)&&!rY(t)){let i=t.closest(".form-element").find(".form-element-children");1==i.length&&(r.isValid=function(t,i=!1){let a={isValid:!1},n=t.find(` input.form-element__input[data-is-child-field="${i?"true":"false"}"], textarea.form-element__textarea[data-is-child-field="${i?"true":"false"}"], select.form-element__select[data-is-child-field="${i?"true":"false"}"], .form-checkbox input, .form-radio, uo-field-input-file`),o=!0;return n.each(function(){let i=Qm()(this);i.data("type");let a={};if(i.hasClass("form-radio")){let e=i.find("input").first(),t=i.find("input:checked");a={field_type:"radio",value:t.length>0?t.val():"",attributes:{supportsTokens:e.data("supportstokens"),required:e.data("required")}}}else i.hasClass("form-element__select")?a={field_type:"select",value:i.val(),attributes:{supportsTokens:i.data("supportstokens"),required:i.data("required"),supportsCustomValue:i.data("supports-custom-value")}}:i.is("uo-field-input-file")?a={field_type:"file",value:i.get(0).value,attributes:{supportsMultipleValues:i.get(0).multiple,fileTypes:i.get(0).fileTypes,required:i.get(0).required}}:("textarea"===(a={field_type:i.data("type"),value:i.val(),attributes:{supportsTokens:i.data("supportstokens"),required:i.data("required")}}).field_type&&(a.attributes.supportsFullPageEditing=i.data("supportsfullpageediting")),["int","float"].includes(a.field_type)&&(rY(i.data("min"))||isNaN(parseFloat(i.data("min")))||(a.attributes.minNumber=parseFloat(i.data("min"))),rY(i.data("max"))||isNaN(parseFloat(i.data("max")))||(a.attributes.maxNumber=parseFloat(i.data("max")))));a.attributes.isHidden=i.closest(".form-element--hidden").length>0,"checkbox"==a.field_type&&(a.value=i.is(":checked")),e(i,a.field_type,a.value,a.attributes).isValid||(o=!1,t.addClass("item-options--error"))}),a.isValid=o,a}(i,!0).isValid)}if(r.isValid&&rK(o)){let e=o(a);r.isValid=e.isValid,e.isValid||(r.message=e.message)}break;case"text":case"textarea":if(r.isValid=!0,n.required&&"textarea"===i&&n.supportsFullPageEditing){let e=document.createElement("div");if(e.innerHTML=a,rY("string"==typeof e.innerText?e.innerText.trim():"")){r.isValid=!1,r.message=s[i].empty;break}}if(rK(o)){let e=o(a);r.isValid=e.isValid,e.isValid||(r.message=e.message)}break;case"int":let c;if(QX(a)){r.isValid=!0;break}let d=new RegExp(/^([+-]?[1-9]\d*|0)$/gm);if(l=QQ(a),n.supportsTokens&&l.length>0?1==l.length?r.isValid=!0:r.message=s.int.multipleTokens:(d.test(a)?r.isValid=!0:r.message=s.int.invalid,a=parseInt(a),!rY(n.minNumber)&&a<parseFloat(n.minNumber)&&(r.isValid=!1,r.message=(0,lX.sprintf)(s.int.minValue,n.minNumber)),!rY(n.maxNumber)&&a>parseFloat(n.maxNumber)&&(r.isValid=!1,r.message=(0,lX.sprintf)(s.int.maxValue,n.maxNumber))),r.isValid&&rK(o)){let e=o(a,c);r.isValid=e.isValid,e.isValid||(r.message=e.message)}break;case"float":let u;if(QX(a)){r.isValid=!0;break}let p=new RegExp(/^[+-]?((\d+(\.|\,)?\d*)|(\.\d+))$/gm);if(l=QQ(a),n.supportsTokens&&l.length>0?1==l.length?r.isValid=!0:r.message=s.float.multipleTokens:(p.test(a)?r.isValid=!0:r.message=s.float.invalid,a=parseFloat(a),!rY(n.minNumber)&&a<parseFloat(n.minNumber)&&(r.isValid=!1,r.message=(0,lX.sprintf)(s.int.minValue,n.minNumber)),!rY(n.maxNumber)&&a>parseFloat(n.maxNumber)&&(r.isValid=!1,r.message=(0,lX.sprintf)(s.int.maxValue,n.maxNumber))),r.isValid&&rK(o)){let e=o(a,u);r.isValid=e.isValid,e.isValid||(r.message=e.message)}break;case"email":let h,g=new RegExp(/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/),m=[];a.includes(",")?(m=a.split(","),Qm().each(m,function(e,t){m[e]="string"==typeof t?t.trim():""})):m.push("string"==typeof a?a.trim():""),l=QQ(a);let f=!0,y=m.length>1;if(n.supportsTokens&&l.length>0){let e=!1;Qm().each(m,function(t,i){if(!((l=QQ(i)).length<=1))return e=!0,!1}),f&&!e?r.isValid=!0:e?y?r.message=s.email.multiple.multipleTokens:r.message=s.email.single.multipleTokens:y?r.message=s.email.multiple.invalid:r.message=s.email.single.invalid}else Qm().each(m,function(e,t){g.test(t)||(f=!1)}),f?r.isValid=!0:y?r.message=s.email.multiple.invalid:r.message=s.email.single.invalid;if(r.isValid&&rK(o)){let e=o(a,h);r.isValid=e.isValid,e.isValid||(r.message=e.message)}break;case"url":if(r.isValid=!0,r.isValid&&rK(o)){let e=o(a);r.isValid=e.isValid,e.isValid||(r.message=e.message)}break;case"checkbox":if(r.isValid=!0,rK(o)){let e=o(a);r.isValid=e.isValid,e.isValid||(r.message=e.message)}break;case"radio":if(r.isValid=!0,rK(o)){let e=o(a);r.isValid=e.isValid,e.isValid||(r.message=e.message)}break;case"date":if(r.isValid=!0,rK(o)){let e=o(a);r.isValid=e.isValid,e.isValid||(r.message=e.message)}break;case"time":if(r.isValid=!0,rK(o)){let e=o(a);r.isValid=e.isValid,e.isValid||(r.message=e.message)}break;case"file":if(r.isValid=!0,rK(o)){let e=o(a);r.isValid=e.isValid,e.isValid||(r.message=e.message)}break;default:r.isValid=!1,r.message=""}}}else r.message=s.invalidType;if(!rY(t)){let e=t.closest(".form-element"),i=e.find(".form-element__error").filter(function(){return Qm()(this).closest(".form-element").is(e)});r.isValid?(e.removeClass("form-element--error"),e.addClass("form-element--success")):(e.removeClass("form-element--success"),e.addClass("form-element--error")),""!=r.message?(i.addClass("form-element__error--show"),i.text(r.message)):(i.removeClass("form-element__error--show"),i.text(""))}return r}(t,this.type,i,a,this.customValidationFunction)}setError(e=""){rY(e)||this.field&&(this.$errorWrapper.innerHTML=e,this.formElement.get(0).classList.add("form-element--error"))}clearError(){this.field&&(this.$errorWrapper.innerHTML="",this.formElement.get(0).classList.remove("form-element--error"))}get $errorWrapper(){return this.formElement.get(0).querySelector(".form-element__error")}onChange(){this.formElement.on("automator:field:change",(e,t)=>{if(rK(this.fieldContainer)&&(rY(this.getValue())?this.fieldContainer.removeClass("form-input--has-value"):this.fieldContainer.addClass("form-input--has-value")),"select"==this.attributes.fieldType&&this.attributes.supportsCustomValue){let e=this.attributes.supportsMultipleValues,t=!1,i=this.getValue(),a=QK(i);e&&a&&i.length>1&&(i=["automator_custom_value"],t=!0),a?(this.customValueFieldContainer.addClass("form-select-custom--visible"),e&&(this.field.prop("disabled")||this.field.prop("disabled",!0),this.fieldContainer.addClass("form-multi-select-custom--visible"),this.fieldContainer.off("click",".select2-selection__clear"),this.fieldContainer.on("click",".select2-selection__clear",()=>{this.field.prop("disabled",!1).val(null).trigger("change")}),t&&setTimeout(()=>{this.setValue(["automator_custom_value"],!0)},0))):(this.customValueFieldContainer.removeClass("form-select-custom--visible"),e&&(this.field.prop("disabled")&&this.field.prop("disabled",!1),this.fieldContainer.removeClass("form-multi-select-custom--visible")))}let i=()=>{if(this.attributes.isAjax&&this.attributes.targetField!==this.attributes.optionCode&&this.doAJAX(),rK(this.attributes.isChildField)&&this.attributes.isChildField&&rK(this.attributes.parentOptionCode)){let e=QW(this.attributes.itemId,this.attributes.parentOptionCode,this.attributes.itemType);rK(e)&&e.doAJAX()}};if(this.attributes.isAjax&&rK(this.attributes.targetField)&&this.attributes.targetField!==this.attributes.optionCode&&(this.attributes.completedFirstLoad||rY(this.attributes.currentValue)&&!this.attributes.hasDefaultValue&&!this.attributes.completedFirstLoad)){let e=QW(this.attributes.itemId,this.attributes.targetField,this.attributes.itemType);rK(e)&&!e.attributes.supportsMultipleValues&&(e.setValue(null,!1),e.setCustomValue(null,!1))}return["select","radio","checkbox","file"].includes(this.attributes.fieldType)?i():(rK(this.onChangeTimeout)&&clearTimeout(this.onChangeTimeout),this.onChangeTimeout=setTimeout(()=>{i()},1500)),!1})}onFocus(){this.field.on("focusin",e=>{this.attributes.isReadOnly&&Qm()(e.currentTarget).select()}),this.field.on("focusout",()=>{})}doAJAX(){if(rK(this.getValue())&&this.getValue(),this.attributes.isAjax){let e=this;if(this.attributes.optionCode!=this.attributes.targetField&&(e=QW(this.attributes.itemId,this.attributes.targetField,this.attributes.itemType)),rK(e)&&!rY(this.attributes.integrationId)&&!rY(this.attributes.endpoint)){e.clearError(),this.startLoadingAnimation(),e.startLoadingAnimation();let t=this.getValue(),i=rK(e.getValue())?e.getValue():void 0;QH(this.attributes.endpoint,{recipe_id:this.attributes.recipeId,integration_id:this.attributes.integrationId,item_id:this.attributes.itemId,group_id:this.attributes.groupId,field_id:this.attributes.optionCode,target_field:this.attributes.targetField,value:t,values:QZ({itemType:this.attributes.itemType,itemID:this.attributes.itemId,field:this})},t=>{this.stopLoadingAnimation(),e.stopLoadingAnimation();let a={updateCodemirror:!0,source:Jr};if("select"==e.getAttributes().fieldType&&Array.isArray(t)){if(this.attributes.isAjax&&!this.attributes.supportsMultipleValues&&rK(this.attributes.targetField)&&this.attributes.targetField!==this.attributes.optionCode&&(this.attributes.completedFirstLoad||rY(this.attributes.currentValue)&&!this.attributes.hasDefaultValue&&!this.attributes.completedFirstLoad)&&(i=null),!this.attributes.completedFirstLoad&&rY(i)&&(i=e.attributes.currentValue),QK(i)){let t=e.getSelectCustomValue();i=rY(t)?null:t}e.setSelectOptions(t,!1),e.setValue(i,!0,a)}else e.setValue(t,!0,a);this.attributes.completedFirstLoad=!0},()=>{this.stopLoadingAnimation(),e.stopLoadingAnimation(),e.setError((0,b4.escapeHTML)((0,lX.__)("Could not load options. Please try again.","uncanny-automator")))})}}}getFormElement(){return this.formElement}get $wrapper(){return this.getFormElement()}getFieldContainer(){return this.fieldContainer}getFieldID(){return this.attributes.optionCode}get id(){return this.getFieldID()}get $ajaxRefreshBtn(){return this.formElement.get(0).querySelector(".form-element-ajax-refresh-btn")}getField(){return this.field}getFieldCM(){return this.$fakeCodemirrorField}getAttributes(){return this.attributes}getValue(){let e=null;if(rK(this.field))switch(this.type){case"select":e=!rK(this.attributes.ajax)||this.attributes.ajax.firstLoadDone||this.showsItsSelectionBeforeLoad()?this.field.val():this.valueFromMeta;break;case"text":case"url":case"email":case"int":case"float":case"date":case"time":e=this.field.val();break;case"textarea":e=this.field.val();try{rK(this.fieldTinyMCE)&&!this.fieldTinyMCE.hidden&&(e=XX(this.fieldTinyMCE.getContent({format:"raw"})))}catch{}break;case"checkbox":e=this.field.is(":checked");break;case"radio":e=this.field.find("input:checked").val();break;case"file":e=this.field.get(0).value}return rK(e)||(e=this.valueFromMeta),e}get value(){return this.getValue()}get customValue(){return this.customValueField.value}showsItsSelectionBeforeLoad(){let{ajax:e,supportsMultipleValues:t,repeaterOptionCode:i}=this.attributes;return"search_options"===e.event&&!!(t&&i)}get valueFromMeta(){let e=null;return this.attributes.hasValue?e=this.attributes.currentValue:this.attributes.hasDefaultValue&&(e=this.attributes.defaultValue),e}get valueStandardFormat(){let e={type:this.type,value:this.value??(this.attributes.supportsMultipleValues?[]:"")};return("select"===this.type||"radio"===this.type)&&(e.readable=this.readableValue,QK(e.value)&&this.attributes.supportsCustomValue&&this.customValueField&&(e.custom=this.customValue,e.readable=this.customValue)),e.miscellaneous={label:this.attributes.label,show_label_in_sentence:this.attributes.showLabelInSentence},"select"===this.type&&(e.miscellaneous.supports_custom_value=this.attributes.supportsCustomValue,e.miscellaneous.supports_multiple_values=this.attributes.supportsMultipleValues),"textarea"===this.type&&(e.miscellaneous.supports_tinymce=this.attributes.supportsTinyMCE,e.miscellaneous.supports_fullpage_editing=this.attributes.supportsFullPageEditing,e.miscellaneous.supports_markdown=this.attributes.supportsMarkdown,this.attributes.supportsTinyMCE&&(Array.isArray(this.attributes.allowedHtmlTags)&&this.attributes.allowedHtmlTags.length&&(e.miscellaneous.allowed_html_tags=this.attributes.allowedHtmlTags),e.miscellaneous.supports_media=this.attributes.supportsMedia)),e}get valueLegacyMeta(){let e={[this.attributes.optionCode]:this.value};("select"==this.type||"file"==this.type)&&("automator_custom_value"===this.value?(e[`${this.attributes.optionCode}_custom`]=this.getSelectCustomValue(),e[`${this.attributes.optionCode}_readable`]=e[`${this.attributes.optionCode}_custom`]):e[`${this.attributes.optionCode}_readable`]=this.readableValue);try{this.attributes.showLabelInSentence&&(e[`${this.attributes.optionCode}_label`]=this.attributes.label)}catch(e){d4.DEV.SHOW_CONSOLE_MESSAGES&&console.warn(e)}return e}getReadableValue(){let e=null,t=this.getValue();switch(this.type){case"select":if(rK(this.field))if(this.attributes.supportsMultipleValues&&Array.isArray(t))try{e=t.map(e=>this.getSelectOptionByValue(e).text).join(`${(0,b4.escapeHTML)((0,lX.__)(",","uncanny-automator"))} `)}catch{e=JSON.stringify(t)}else e=this.field.find(`option[value="${t}"]`).text();else if(this.attributes.supportsMultipleValues&&Qm().isArray(t))try{e=t.map(e=>this.getSelectOptionByValue(e).text).join(`${(0,b4.escapeHTML)((0,lX.__)(",","uncanny-automator"))} `)}catch(e){d4.DEV.SHOW_CONSOLE_MESSAGES&&console.warn(e)}else try{e=this.getSelectOptionByValue(t).text}catch{d4.DEV.SHOW_CONSOLE_MESSAGES}break;case"text":case"url":case"email":case"int":case"float":case"textarea":case"date":case"time":t=Qm()("<p/>").html(t).text();break;case"checkbox":e=t?(0,b4.escapeHTML)((0,lX.__)("True","uncanny-automator")):(0,b4.escapeHTML)((0,lX.__)("False","uncanny-automator"));break;case"radio":if(rK(this.field)){let t=this.field.find("input:checked");if(1==t.length){let i=t.closest(".form-radio__container").text();e="string"==typeof i?i.trim():""}}else try{e=this.getSelectOptionByValue(t).text}catch(e){d4.DEV.SHOW_CONSOLE_MESSAGES&&console.warn(e)}break;case"file":e=t.map(e=>e.title).join(", ")}return e}get readableValue(){return this.getReadableValue()}getSelectCustomValue(){let e=null;return"select"==this.attributes.fieldType&&this.attributes.supportsCustomValue&&QK(this.getValue())&&rK(this.customValueField)&&(e=this.customValueField.getValue()),e}get selectCustomValue(){return this.type,this.getSelectCustomValue()}get label(){return this.attributes.label}getSelectOptionByValue(e=""){let t={text:e,value:e},{options:i,supportsCustomValue:a}=this.attributes;if(a&&i.push({value:"automator_custom_value",text:(0,b4.escapeHTML)((0,lX.__)("Use a token/custom value","uncanny-automator"))}),rY(i)||i.forEach(i=>{e==i.value&&(t=i)}),rY(i)&&this.attributes.ajax?.firstLoadDone){let i=Array.from(this.field[0].querySelectorAll("option")).filter(t=>t.value==e);i.length>0&&(t={value:i[0].value,text:i[0].textContent})}return t}setValue(e,t=!0,i={updateCodemirror:!0}){let a={manuallySet:!1,source:i.source};if(rK(this.field))switch(this.type){case"select":rK(e)||(e=this.attributes.supportsMultipleValues?[]:"");let n=this.field.find("option");if(this.attributes.supportsMultipleValues)n.prop("selected",!1),Qm().isArray(e)&&!rY(e)&&(e.forEach(e=>{let t=this.field.find(`option[value="${e}"]`);t.length>0&&t.prop("selected",!0)}),t&&this.field.trigger("change",a));else{let i=this.field.find(`option[value="${e}"]`);i.length>0?(n.prop("selected",!1),i.prop("selected",!0)):(n.prop("selected",!1),this.attributes.supportsCustomValue&&!rY(e)&&this.setCustomValue(e,!1)),t&&this.field.trigger("change",a)}break;case"text":case"url":case"email":case"int":case"float":if(rK(i.updateCodemirror)&&i.updateCodemirror&&rK(this.fieldCM))try{this.fieldCM.setValue(e)}catch{this.field.val(e)}else this.field.val(e);t&&this.field.trigger("automator:field:change",a);break;case"textarea":if(this.field.val(e),rK(this.fieldTinyMCE)&&this.fieldTinyMCE.setContent(e),rK(i.updateCodemirror)&&i.updateCodemirror&&rK(this.fieldCM))try{this.fieldCM.setValue(e)}catch{this.field.val(e)}else this.field.val(e);t&&this.field.trigger("automator:field:change",a);break;case"checkbox":let o=e,r=this.getValue();o&&!r&&this.field.prop("checked",!0),!o&&r&&this.field.prop("checked",!1),t&&(o&&!r||!o&&r)&&this.field.trigger("automator:field:change",a);break;case"radio":this.field.filter(`[name="${e}"]`).prop("checked",!0),t&&this.field.trigger("automator:field:change",a);break;case"date":case"time":this.field.val(e),t&&this.field.trigger("automator:field:change",a)}}clearValue(){this.setValue("",!0);try{this.fieldCM.setValue("")}catch(e){d4.DEV.SHOW_CONSOLE_MESSAGES&&console.warn(e)}if(["date","time"].includes(this.attributes.fieldType))try{this.flatpickrInstance.clear()}catch(e){d4.DEV.SHOW_CONSOLE_MESSAGES&&console.warn(e)}}setCustomValue(e,t=!0,i){"select"==this.attributes.fieldType&&rK(this.customValueField)&&(this.field.val("automator_custom_value"),this.customValueField.setValue(e,t,{updateCodemirror:!0,source:i}),t&&this.field.trigger("change",{manuallySet:!1,source:i}))}hasSelectedOption(){return this.selectHasSelectedOption}setSelectOptions(e,t=!0){this.removeSelectOptions();try{e=e.filter(e=>rK(e.value)&&rK(e.text))}catch(e){d4.DEV.SHOW_CONSOLE_MESSAGES&&console.warn(e)}if(rK(this.field)){let i=this.field.find(".form-element__select-normal-options");if(e.length>0){this.field.prop("disabled",!1);let t=rK(this.getValue())?this.getValue():void 0,a=[];Qm().each(e,(e,t)=>{let n=new Option(t.text,t.value,!1,!1);i.append(n),a.push(n)}),rY(t)||Qm().each(this.field.find("option"),(e,i)=>{i.value==t&&Qm()(i).prop("selected",!0)})}else{let e=!this.attributes.supportsCustomValue&&!this.attributes.supportsMultipleValues,t=Qm()(new Option((0,b4.escapeHTML)((0,lX.__)("No results found","uncanny-automator")),"",e,e));t.prop("disabled",!0),i.append(t),this.attributes.supportsCustomValue||this.field.prop("disabled",!0)}t&&this.field.trigger("change"),this.rerenderSelect2()}}removeSelectOptions(){rK(this.field)&&this.field.find(".form-element__select-normal-options").empty()}isLoading(){return this.formElement.hasClass("form-element--loading")}startLoadingAnimation(){let e="form-element--loading";rK(this.formElement)&&!this.formElement.hasClass(e)&&(this.formElement.addClass(e),"checkbox"!=this.type||rK(this.attributes.isToggle)||this.fieldContainer.addClass("form-checkbox--loading-inline"),this.formElement.trigger("automator:field:loading"))}stopLoadingAnimation(){let e="form-element--loading";rK(this.formElement)&&this.formElement.hasClass(e)&&(this.formElement.removeClass(e),this.fieldContainer.removeClass("form-checkbox--loading-inline"),this.formElement.trigger("automator:field:loading"))}initLibraries(){"select"===this.type&&this.initSelect2(this.field),this.attributes.dynamic_visibility&&(this.applyDynamicVisibility(),this.setupVisibilityChangeListener())}parseSelect2Response(e=[]){let t=[],i=[];return e.forEach(e=>i.push({id:rK(e.id)?e.id:e.value,text:e.text})),t.push({text:"",children:i}),this.attributes.supportsCustomValue&&t.push({text:(0,b4.escapeHTML)((0,lX.__)("Other options","uncanny-automator")),children:[{id:"automator_custom_value",text:(0,b4.escapeHTML)((0,lX.__)("Use a token/custom value","uncanny-automator"))}]}),{results:t}}getSelect2Settings(){let e=e=>{let t=this.attributes.optionsShowID;return!0===t||!1===t?t:/^\d+$/.test(e)},t=t=>{let i=t.text;if(!rY(t.id)&&e(`${t.id}`)&&!QK(t.id)&&"-1"!=t.id){let e=`${t.id}`,a=e.length>10;i=`<span class="uap-select2-item__meta ${a?"uap-select2-item__meta--long":""}">(${(0,lX.sprintf)((0,b4.escapeHTML)((0,lX.__)("ID: %1$s","uncanny-automator")),e.replace("-objectkey",""))})</span> ${i}`}return rY(t.id)||(i=`<span data-value="${t.id}">${i}</span>`),i},i={theme:"uap-select2",language:{noResults:function(){return(0,b4.escapeHTML)((0,lX.__)("No results found","uncanny-automator"))}},templateResult:t,templateSelection:t,escapeMarkup:function(e){return e}};if(rK(this.attributes.ajax)&&rK(this.attributes.ajax.event)&&"search_options"===this.attributes.ajax.event&&(rK(this.attributes.ajax.endpoint)||"default"===this.attributes.remote_type)){let e=this.parseSelect2Response([]);i.searchInputPlaceholder=(0,b4.escapeHTML)((0,lX._x)("Search","Verb","uncanny-automator"));let t="default"===this.attributes.remote_type;i.ajax={method:"POST",dataType:"json",url:t?`/uap/v2/remote-data/${this.attributes.remote_data.id}/${this.attributes.remote_data.data}`:ajaxurl,cache:!0,delay:250,data:e=>{let i={...this.getAjaxRequestData({fieldToListenToCode:this.attributes.optionCode}),q:e.term};return t||(i.action=this.attributes.ajax.endpoint,i.nonce=BZ().nonceMiddleware.nonce),i},...t&&{transport:(e,t,i)=>{BZ()({path:e.url,method:"POST",data:e.data}).then(t).catch(i)}},processResults:(e,t)=>(this.attributes.ajax.firstLoadDone=!0,rK(e.results)&&!rK(e.success))?this.parseSelect2Response(e.results):!e.success||rY(e.options)||!Array.isArray(e.options)?this.parseSelect2Response([]):this.parseSelect2Response(e.options)},i.dataAdapter=Jn||Qm().fn.uapSelect2.amd.require("select2/data/extended-ajax"),i.defaultResults=e}return this.attributes.hasPlaceholder&&(i.placeholder=this.attributes.placeholder),this.attributes.customClass&&(i.customClass=this.attributes.customClass),this.attributes.supportsMultipleValues&&this.attributes.supportsCustomValue&&(i.allowClear=!0),i}initSelect2(e){if(e.hasClass("select2-hidden-accessible"))return;let t=this.getSelect2Settings();e.uapSelect2(t),e.on("select2:opening.uap-dropdown-parent",()=>{let t=e.closest("uap-builder-item-legacy-form");if(!t.length)return;let i=e.data("select2");i?.dropdown&&(i.dropdown.$dropdownParent=t)}),e.on("select2:open.uap-dropdown-popover",()=>{let t=e.data("select2"),i=t?.dropdown?.$dropdownContainer?.get(0),a=t?.$container?.get(0);i?.isConnected&&a&&CSS.supports("anchor-name","--a")&&(a.style.getPropertyValue("anchor-name")||a.style.setProperty("anchor-name",`--uap-select2-anchor-${++Jo}`),i.style.setProperty("position-anchor",a.style.getPropertyValue("anchor-name")),i.setAttribute("popover","manual"),i.matches(":popover-open")||i.showPopover(),t.$container.parents().off(`scroll.select2.${t.id}`))}),e.on("select2:open.uap-select-focus",()=>{e.closest(".form-element").find(".select2-search__field").focus()}),e.on("select2:open.uap-select-focus",()=>{document.dispatchEvent(new CustomEvent("uap.f.recipe-builder.legacy-field.select-opened",{detail:{fieldID:this.attributes.itemId,fieldCode:this.attributes.optionCode,fieldType:this.attributes.fieldType,integrationCode:this.attributes.integrationCode,itemID:this.attributes.itemId,value:this.value}}))}),e.on("select2:close.uap-select-focus",()=>{document.dispatchEvent(new CustomEvent("uap.f.recipe-builder.legacy-field.select-closed",{detail:{fieldID:this.attributes.itemId,fieldCode:this.attributes.optionCode,fieldType:this.attributes.fieldType,integrationCode:this.attributes.integrationCode,itemID:this.attributes.itemId,value:this.value}}))}),e.on("change.uap-select-change",()=>{document.dispatchEvent(new CustomEvent("uap.f.recipe-builder.legacy-field.change",{detail:{fieldID:this.attributes.itemId,fieldCode:this.attributes.optionCode,fieldType:this.attributes.fieldType,integrationCode:this.attributes.integrationCode,itemID:this.attributes.itemId,value:this.value}}))}),e.attr("multiple")&&e.on("select2:open",function(){let t=e.closest(".form-element").find(".select2-search__field");Qm()(t).off("keydown").on("keydown",function(i){if("Backspace"!==i.key&&"Delete"!==i.key||8!==i.keyCode&&46!==i.keyCode||""!==Qm()(t).val())return;i.preventDefault();let a=e.uapSelect2("data");if(0===a.length)return;let n=a[a.length-1],o=e.val();if(!n||!o)return;let r=o.filter(e=>e!==n.id);return e.val(r).trigger("change"),e.uapSelect2("open"),!1})})}initFlatpickr(){if(!rK(this.field))return;let e=this.field;if(!["date","time"].includes(this.type))return;let t=this.getValue(),i=t&&t.includes("{{");this.destroyFlatPickr();let a={allowInput:!0,altInput:!0,clickOpens:!1,static:!0,locale:{weekdays:{shorthand:[(0,b4.escapeHTML)((0,lX._x)("Sun","Date format","uncanny-automator")),(0,b4.escapeHTML)((0,lX._x)("Mon","Date format","uncanny-automator")),(0,b4.escapeHTML)((0,lX._x)("Tue","Date format","uncanny-automator")),(0,b4.escapeHTML)((0,lX._x)("Wed","Date format","uncanny-automator")),(0,b4.escapeHTML)((0,lX._x)("Thu","Date format","uncanny-automator")),(0,b4.escapeHTML)((0,lX._x)("Fri","Date format","uncanny-automator")),(0,b4.escapeHTML)((0,lX._x)("Sat","Date format","uncanny-automator"))],longhand:[(0,b4.escapeHTML)((0,lX._x)("Sunday","Date format","uncanny-automator")),(0,b4.escapeHTML)((0,lX._x)("Monday","Date format","uncanny-automator")),(0,b4.escapeHTML)((0,lX._x)("Tuesday","Date format","uncanny-automator")),(0,b4.escapeHTML)((0,lX._x)("Wednesday","Date format","uncanny-automator")),(0,b4.escapeHTML)((0,lX._x)("Thursday","Date format","uncanny-automator")),(0,b4.escapeHTML)((0,lX._x)("Friday","Date format","uncanny-automator")),(0,b4.escapeHTML)((0,lX._x)("Saturday","Date format","uncanny-automator"))]},months:{shorthand:[(0,b4.escapeHTML)((0,lX._x)("Jan","Date format","uncanny-automator")),(0,b4.escapeHTML)((0,lX._x)("Feb","Date format","uncanny-automator")),(0,b4.escapeHTML)((0,lX._x)("Mar","Date format","uncanny-automator")),(0,b4.escapeHTML)((0,lX._x)("Apr","Date format","uncanny-automator")),(0,b4.escapeHTML)((0,lX._x)("May","Date format","uncanny-automator")),(0,b4.escapeHTML)((0,lX._x)("Jun","Date format","uncanny-automator")),(0,b4.escapeHTML)((0,lX._x)("Jul","Date format","uncanny-automator")),(0,b4.escapeHTML)((0,lX._x)("Aug","Date format","uncanny-automator")),(0,b4.escapeHTML)((0,lX._x)("Sep","Date format","uncanny-automator")),(0,b4.escapeHTML)((0,lX._x)("Oct","Date format","uncanny-automator")),(0,b4.escapeHTML)((0,lX._x)("Nov","Date format","uncanny-automator")),(0,b4.escapeHTML)((0,lX._x)("Dec","Date format","uncanny-automator"))],longhand:[(0,b4.escapeHTML)((0,lX._x)("January","Date format","uncanny-automator")),(0,b4.escapeHTML)((0,lX._x)("February","Date format","uncanny-automator")),(0,b4.escapeHTML)((0,lX._x)("March","Date format","uncanny-automator")),(0,b4.escapeHTML)((0,lX._x)("April","Date format","uncanny-automator")),(0,b4.escapeHTML)((0,lX._x)("May","Date format","uncanny-automator")),(0,b4.escapeHTML)((0,lX._x)("June","Date format","uncanny-automator")),(0,b4.escapeHTML)((0,lX._x)("July","Date format","uncanny-automator")),(0,b4.escapeHTML)((0,lX._x)("August","Date format","uncanny-automator")),(0,b4.escapeHTML)((0,lX._x)("September","Date format","uncanny-automator")),(0,b4.escapeHTML)((0,lX._x)("October","Date format","uncanny-automator")),(0,b4.escapeHTML)((0,lX._x)("November","Date format","uncanny-automator")),(0,b4.escapeHTML)((0,lX._x)("December","Date format","uncanny-automator"))]},rangeSeparator:` ${(0,b4.escapeHTML)((0,lX._x)("to","Date format","uncanny-automator"))} `,firstDayOfWeek:parseInt((0,b4.escapeHTML)((0,lX._x)("1","Date format","uncanny-automator")))>=1&&7>=parseInt((0,b4.escapeHTML)((0,lX._x)("1","Date format","uncanny-automator")))?parseInt((0,b4.escapeHTML)((0,lX._x)("1","Date format","uncanny-automator")))-1:0,weekAbbreviation:` ${(0,b4.escapeHTML)((0,lX._x)("Wk","Date format","uncanny-automator"))} `,scrollTitle:(0,b4.escapeHTML)((0,lX.__)("Scroll to increment","uncanny-automator")),toggleTitle:(0,b4.escapeHTML)((0,lX.__)("Click to toggle","uncanny-automator")),amPM:[(0,b4.escapeHTML)((0,lX._x)("AM","Date format","uncanny-automator")),(0,b4.escapeHTML)((0,lX._x)("PM","Date format","uncanny-automator"))],yearAriaLabel:(0,b4.escapeHTML)((0,lX._x)("Year","Date format","uncanny-automator")),monthAriaLabel:(0,b4.escapeHTML)((0,lX._x)("Month","Date format","uncanny-automator")),hourAriaLabel:(0,b4.escapeHTML)((0,lX._x)("Hour","Date format","uncanny-automator")),minuteAriaLabel:(0,b4.escapeHTML)((0,lX._x)("Minute","Date format","uncanny-automator"))},parseDate:(e,t)=>{if(!rY(e)&&!e.includes("}}"))return QB.parseDate(e,t)},errorHandler:e=>{!this.getValue().includes("}}")&&d4.DEV.SHOW_CONSOLE_MESSAGES&&console.warn(e)},onReady:(e,t,a)=>{try{let e=()=>{i||this.fieldCM.getValue()==a.altInput.value||this.fieldCM.setValue(a.altInput.value)};rK(this.fieldCM)?e():this.field.on("ua-codemirror-ready",()=>{e()})}catch(e){d4.DEV.SHOW_CONSOLE_MESSAGES&&console.warn(e)}},onChange:(e,t,i)=>{try{let e=()=>{this.fieldCM.setValue(i.altInput.value)};rK(this.fieldCM)?e():this.field.on("ua-codemirror-ready",()=>{e()})}catch(e){d4.DEV.SHOW_CONSOLE_MESSAGES&&console.warn(e)}}};if("date"==this.attributes.fieldType&&(a=Qm().extend(a,{dateFormat:this.attributes.dateFormat,altFormat:this.attributes.dateAltFormat}),this.attributes.supportsRange&&(a.mode="range"),rK(this.attributes.minDate)&&(a.minDate=this.attributes.minDate),rK(this.attributes.maxDate)&&(a.maxDate=this.attributes.maxDate)),"time"==this.attributes.fieldType){let e=this.attributes.timeAltFormat.includes("K");a=Qm().extend(a,{enableTime:!0,noCalendar:!0,dateFormat:this.attributes.timeFormat,altFormat:this.attributes.timeAltFormat,time_24hr:!e}),rK(this.attributes.minuteIncrement)&&(a.minuteIncrement=this.attributes.minuteIncrement),rK(this.attributes.minTime)&&(a.minTime=this.attributes.minTime),rK(this.attributes.manTime)&&(a.manTime=this.attributes.manTime)}this.flatpickrInstance=QB(e.get(0),a),"time"==this.attributes.fieldType&&i&&(this.flatpickrInstance.input.value=t)}destroyFlatPickr(){rK(this.flatpickrInstance)&&this.flatpickrInstance.destroy()}initCodeMirror(){if(["text","url","email","int","float","date","time","textarea"].includes(this.attributes.fieldType)){this.destroyCodeMirror();let e={lineNumbers:!1,tabSize:4,value:this.getValue(),mode:"default",dragDrop:!1,viewportMargin:1/0,lineWrapping:!0,autoRefresh:!0,direction:(0,lX.isRTL)()?"rtl":"ltr",noNewlines:!0,scrollbarStyle:null,readOnly:this.attributes.isReadOnly};"textarea"==this.attributes.fieldType&&(e=Object.assign(e,{scrollbarStyle:"native",noNewlines:!1}),this.attributes.supportsTinyMCE&&(e=Object.assign(e,{lineNumbers:!0,mode:"htmlmixed",verify_html:!1,inline_styles:!0}))),e.extraKeys={Tab:()=>{if(this.focusTokenSelectorIfOpen())return!1;let e=this.getSiblingField(1);return rK(e)&&e.focus(),!1},"Shift-Tab":()=>{if(this.focusTokenSelectorIfOpen())return!1;let e=this.getSiblingField(-1);return rK(e)&&e.focus(),!1}},this.fieldCM=CodeMirror(this.$fakeCodemirrorField[0],e),this.attributes.hasPlaceholder&&this.fieldCM.setOption("placeholder",this.attributes.placeholder),this.fieldCM.on("changes",(e,t)=>{["date","time"].includes(this.attributes.fieldType)||this.setValue(this.fieldCM.getValue(),"setValue"!==t[0].origin,{updateCodemirror:!1})}),this.fieldCM.on("focus",()=>{if(["date","time"].includes(this.attributes.fieldType)&&!this.getValue().includes("}}"))try{setTimeout(()=>{this.flatpickrInstance.open()},50)}catch(e){d4.DEV.SHOW_CONSOLE_MESSAGES&&console.warn(e)}}),this.field.on("focus",()=>{this.fieldCM.focus()}),this.field.trigger("ua-codemirror-ready")}"select"==this.attributes.fieldType&&rK(this.customValueField)&&this.customValueField.initCodeMirror()}focusTokenSelectorIfOpen(){let e=this.tokenSelector?.popover;return!!rK(e)&&!!e.matches(":popover-open")&&(e.focusPanel(),!0)}getSiblingField(e){let t=this.field?.get(0);if(!rK(t))return null;let i=Array.from((t.closest("uap-builder-item-legacy-form, form")??document.body).querySelectorAll("*")).filter(e=>rK(e.fieldInstance)),a=i.indexOf(t);if(-1===a)return null;let n=i[a+e];return rK(n)?n.fieldInstance:null}focus(){if(rK(this.field))switch(this.type){case"select":try{this.field.uapSelect2("focus")}catch{this.field.focus()}break;case"text":case"url":case"email":case"int":case"float":case"date":case"time":rK(this.fieldCM)?this.fieldCM.focus():this.field.focus();break;case"textarea":if(rK(this.fieldTinyMCE))if(this.field.is(":visible"))this.field.focus();else try{this.fieldTinyMCE.focus()}catch(e){d4.DEV.SHOW_CONSOLE_MESSAGES&&console.warn(e)}else this.field.focus();break;case"checkbox":case"radio":this.field.focus()}}destroyCodeMirror(){if(rK(this.fieldCM))try{let e=this.fieldCM.getWrapperElement();e.parentNode.removeChild(e),this.fieldCM=null}catch(e){d4.DEV.SHOW_CONSOLE_MESSAGES&&console.warn(e)}}rerenderSelect2(){let e=this.getSelect2Settings();!rY(this.field)&&this.field.hasClass("select2-hidden-accessible")&&this.field.uapSelect2("destroy").uapSelect2(e)}initTokenSelector(){this.attributes.supportsTokens&&(this.destroyTokenSelector(),this.tokenSelector=new X6(this)),"select"==this.attributes.fieldType&&rK(this.customValueField)&&this.customValueField.initTokenSelector()}destroyTokenSelector(){rK(this.tokenSelector)&&this.tokenSelector.destroy()}initTinyMCE(){if(this.field,rK(this.field)&&"textarea"==this.attributes.fieldType&&this.attributes.supportsTinyMCE){let e=this.field.prop("id"),t=tinymce.get(e);rK(t)&&wp.editor.remove(e);let i=document.getElementById("uap-admin-css"),a=i?[i.href]:[];try{a.push(wp.editor.getDefaultSettings().tinymce.content_css)}catch{d4.DEV.SHOW_CONSOLE_MESSAGES&&console.warn("Field: Couldn't load WordPress's custom assets for TinyMCE")}let n=new XZ(this.attributes,a).generate();n.tinymce.content_style=[n.tinymce.content_style,XK].filter(Boolean).join(` `);let o=Number.isFinite(Number(this.attributes.recipeId))?Number(this.attributes.recipeId):void 0;wp.editor.initialize(e,n),(t=tinymce.get(e)).hidden?this.fieldContainer.addClass("form-textarea--tinymce-text"):this.fieldContainer.addClass("form-textarea--tinymce-visual"),this.formElement.find(".switch-tmce").on("click",()=>{this.field.trigger("ua-tinymce-activate-visual-view"),this.fieldContainer.removeClass("form-textarea--tinymce-text").addClass("form-textarea--tinymce-visual")}),this.formElement.find(".switch-html").on("click",()=>{this.field.trigger("ua-tinymce-activate-text-view"),this.fieldContainer.removeClass("form-textarea--tinymce-visual").addClass("form-textarea--tinymce-text");try{this.fieldCM.setValue(XX(t.getContent({format:"raw"})))}catch{this.field.val(XX(t.getContent({format:"raw"})))}this.fieldCM.refresh()}),this.fieldTinyMCE=t,t.on("BeforeSetContent",e=>{e.content&&(e.content=XQ(e.content,o))}),t.on("init",()=>{let e=t.getContent({format:"raw"}),i=XQ(e,o);i!==e&&t.setContent(i),this.field.trigger("ua-tinymce-ready")})}}applyDynamicVisibility(){let e=this.attributes.dynamic_visibility,t="visible"===e.default_state;e.visibility_rules.forEach(e=>{this.evaluateVisibilityRule(e)&&(t="show"===e.resulting_visibility)}),this.updateFieldVisibility(t)}evaluateVisibilityRule(e){return e.rule_conditions["AND"===e.operator?"every":"some"](e=>{let t=QW(this.attributes.itemId,e.option_code,this.attributes.itemType);if(!t)return!1;let i=t.getValue();return this.compareValues(i,e.value,e.compare)})}updateFieldVisibility(e){this.attributes.isHidden=!e;try{e?this.fieldContainer.removeClass("form-element--hidden"):this.fieldContainer.addClass("form-element--hidden")}catch{}}compareValues(e,t,i){switch(i){case"==":return e==t;case"!=":return e!=t;default:return!1}}setupVisibilityChangeListener(){this.attributes.dynamic_visibility.visibility_rules.forEach(e=>{e.rule_conditions.forEach(e=>{let t=QW(this.attributes.itemId,e.option_code,this.attributes.itemType);t&&t.field.on("change",()=>{this.applyDynamicVisibility()})})})}};Qm().fn.uapSelect2.amd.define("select2/data/extended-ajax",["./ajax","./tags","../utils","module","jquery"],function(e,t,i,a,n){function o(e,t){this.minimumInputLength=t.get("minimumInputLength"),this.defaultResults=t.get("defaultResults"),o.__super__.constructor.call(this,e,t)}i.Extend(o,e);var r=e.prototype.query;return(o.prototype.query=function(e,t){var i="function"==typeof this.defaultResults?this.defaultResults.call(this):this.defaultResults;i&&i.length&&(!e.term||e.term.length<this.minimumInputLength)&&e._type&&"query"==e._type?t(this.processResults({results:i},e)):r.call(this,e,t)},a.config().tags)?i.Decorate(o,t):o});try{Jn=Qm().fn.uapSelect2.amd.require("select2/data/extended-ajax")}catch{Jn=null}let Jl=class{constructor(e,t=!0,i=null){this.setAttributes(e),this.createFields()}setAttributes(e){rK(e.hasLabel)||(rY(e.label)?e.hasLabel=!1:e.hasLabel=!0),rK(e.hasDescription)||(rY(e.description)?e.hasDescription=!1:e.hasDescription=!0),rY(e.tokenName)&&(e.tokenName=e.label),rK(e.canSortRows)||(e.canSortRows=!0),rK(e.layout)||(e.layout="default"),rK(e.hide_header)||(e.hide_header=!1),Qq(e),this.attributes=e}createFields(){let e=this.attributes.fields,t=[];if(Array.isArray(this.attributes.currentValue)&&this.attributes.currentValue.length>0)this.attributes.currentValue.forEach(i=>{let a=JSON.parse(JSON.stringify(e));a=rK(this.attributes.ajax)&&rY(e)?Object.entries(i).filter(([e])=>!e.endsWith("_readable")).map(([e,t])=>({fieldType:"text",optionCode:e,currentValue:t,itemId:this.attributes.itemId,isReadOnly:!0})):a.map(e=>(rK(i[e.optionCode])?(e.currentValue=i[e.optionCode],rK(i[`${e.optionCode}_readable`])&&(e.currentReadable=i[`${e.optionCode}_readable`]),QK(e.currentValue)&&rK(i[`${e.optionCode}_custom`])&&(e.customValue=i[`${e.optionCode}_custom`])):e.currentValue="",e)),t.push(a)});else if(this.attributes.isRequired){let i=JSON.parse(JSON.stringify(e));i.currentValue="",t.push(i)}t=t.map((e,t)=>e=e.map(e=>{e.description="",e.itemId=this.attributes.itemId,e.parentID=this.attributes.parentID,"text"===e.fieldType&&Array.isArray(e.currentValue)&&(e.fieldType="select");let i=new Js(e.fieldType,{...e,...{repeaterOptionCode:this.attributes.optionCode,repeaterRowIndex:t,itemType:this.attributes.itemType,itemId:this.attributes.itemId,recipeId:this.attributes.recipeId}});return i.isMappingColumn=rK(this.attributes.ajax)&&rK(this.attributes.ajax.mappingColumn)&&i.getFieldID()===this.attributes.ajax.mappingColumn,i})),this.fieldRows=t}createFormElement(e=!1){let t=null,i=Qm()('<div class="form-repeater"></div>');if(this.attributes.hasLabel){let e=Qm()(` <div class="form-repeater__label"> ${this.attributes.label} ${this.attributes.isRequired?'<span class="form-repeater__label-required"></span>':""} </div> `);rK(this.attributes.ajax)&&rK(this.attributes.ajax.event)&&["parent_fields_change","on_load"].includes(this.attributes.ajax.event)&&e.get(0).insertAdjacentHTML("beforeEnd",` <uas-button color="secondary" size="xs" class="form-element-ajax-refresh-btn" > <uas-icon code="rotate"></uas-icon> ${(0,b4.escapeHTML)((0,lX.__)("Refresh","uncanny-automator"))} </uas-button> `),i.append(e)}let a=this.getFieldsTable();if(i.append(a),a.append(Qm()('<div class="form-element__error"></div>')),this.attributes.hasDescription){let e=Qm()(`<div class="form-repeater__description">${this.attributes.description}</div>`);i.append(e)}return this.formElement=i,t=i,this.listenSave(),this.handleAJAX({isRerendering:e}),this.attributes.dynamic_visibility&&(this.applyDynamicVisibility(),this.setupVisibilityChangeListener()),t}getAjaxRequestData({fieldToListenToCode:e}){return{recipe_id:this.attributes.recipeId,parent_id:this.attributes.parentID,item_id:this.attributes.itemId,group_id:this.attributes.groupId,field_id:this.attributes.optionCode,triggered_by:e,values:QZ({itemType:this.attributes.itemType,itemID:this.attributes.itemId,field:this})}}getMergedValuesWithMappingColumn(e,t){if(!rK(this.attributes.ajax.mappingColumn))return t;let i={};return e.forEach(e=>{let t=e[this.attributes.ajax.mappingColumn];rY(t)||(delete e[this.attributes.ajax.mappingColumn],i[t]=e)}),t=t.map(e=>{let t=rK(i[e[this.attributes.ajax.mappingColumn]])?i[e[this.attributes.ajax.mappingColumn]]:{};return{...e,...t}})}get ajaxMappingColumn(){if(rK(this.attributes.ajax)&&rK(this.attributes.ajax.mappingColumn))return this.attributes.ajax.mappingColumn}handleAJAX({isRerendering:e}){if(!rK(this.attributes.ajax)||!rK(this.attributes.ajax.event))return;let t=({fieldToListenToCode:e="",onSuccess:t=()=>{},extraAttributes:i={}})=>{let a=this.getValue({includeReadOnly:!1}),n={...this.getAjaxRequestData({fieldToListenToCode:e}),...i};this.clearError();let o="default"===this.attributes.remote_type,r=o?this.attributes.remote_data:this.attributes.ajax.endpoint;(o?QV:QH)(r,n,e=>{this.attributes.ajax.firstLoadDone=!0;try{t()}catch{}if(rK(e.success)&&!e.success){this.setValue([]),rY(e.error)||this.setError(e.error);return}rK(e.field_properties)&&(rK(e.field_properties.fields)&&(e.field_properties.fields=e.field_properties.fields.map(e=>(Qq(e=XV(e)),e))),this.updateAttributes(e.field_properties,!1)),rK(e.rows)&&this.setValue(this.getMergedValuesWithMappingColumn(a,e.rows),!1),this.reRender()})};if("parent_fields_change"===this.attributes.ajax.event){let i=`automator:field:change.handle-ajax-${this.attributes.optionCode}`;if(!rK(this.attributes.ajax.listenFields)&&Array.isArray(this.attributes.ajax.listenFields))return;this.attributes.ajax.listenFields.forEach(a=>{let n=QW(this.attributes.itemId,a,this.attributes.itemType),o=1e3*!["date","time","select","radio","checkbox","file"].includes(n.type);n.formElement.off(i),n.formElement.on(i,Ft((e,i)=>{rK(i)&&rK(i.source)&&"getFormElement"===i.source||(n.startLoadingAnimation(),this.startLoadingAnimation(),t({extraAttributes:{context:"parent-field-changed"},fieldToListenToCode:n.attributes.optionCode,onSuccess:()=>{n.stopLoadingAnimation(),this.stopLoadingAnimation()}}))},o)),"select"===n.type&&n.attributes.supportsCustomValue&&(n.customValueField.formElement.off(i),n.customValueField.formElement.on("automator:field:change",Ft((e,i)=>{rK(i)&&rK(i.source)&&"getFormElement"===i.source||(n.startLoadingAnimation(),n.customValueField.startLoadingAnimation(),this.startLoadingAnimation(),t({extraAttributes:{context:"parent-field-changed"},fieldToListenToCode:n.attributes.optionCode,onSuccess:()=>{n.stopLoadingAnimation(),n.customValueField.stopLoadingAnimation(),this.stopLoadingAnimation()}}))},1e3))),!e&&!rK(n.attributes.ajax)&&rK(n.field)&&n.field.trigger("automator:field:change",{source:Jr})}),this.$ajaxRefreshBtn&&this.$ajaxRefreshBtn.addEventListener("click",()=>{this.startLoadingAnimation(),t({extraAttributes:{context:"refresh-button"},fieldToListenToCode:this.attributes.optionCode,onSuccess:()=>{this.stopLoadingAnimation()}})})}"on_load"===this.attributes.ajax.event&&(e||(this.startLoadingAnimation(),t({extraAttributes:{context:"on-load"},fieldToListenToCode:this.attributes.optionCode,onSuccess:()=>{this.stopLoadingAnimation()}})),this.$ajaxRefreshBtn&&this.$ajaxRefreshBtn.addEventListener("click",()=>{this.startLoadingAnimation(),t({extraAttributes:{context:"refresh-button"},fieldToListenToCode:this.attributes.optionCode,onSuccess:()=>{this.stopLoadingAnimation()}})}))}listenSave(){this.formElement.on("saved",e=>{this.updateAttributesFieldsFromRow()})}updateAttributesFieldsFromRow(){let e=[];this.fieldRows.forEach(t=>{let i=[];t.forEach(e=>{i.push(e.attributes)}),e.push(i)}),this.attributes.fields=e}updateAttributes(e={},t=!0){let i={...this.attributes,...e};this.setAttributes(i),t&&this.reRender()}getFieldsTable(){let e=["form-repeater-fields",`form-repeater-fields--${this.attributes.layout}`];this.attributes.hide_header&&e.push("form-repeater-fields--hide-header"),this.attributes.hideActions&&e.push("form-repeater-fields--hide-actions"),rK(this.attributes.ajax)&&e.push("form-repeater-fields--ajax"),0===this.attributes.fields.length&&e.push("form-repeater-fields--no-fields");let t=Qm()(` <div class="${e.join(" ")}" data-id="${this.attributes.optionCode}"> <table class="form-repeater-fields__table"> <thead class="form-repeater-fields__table-heading"></thead> <tbody class="form-repeater-fields__table-rows"></tbody> </table> </div> `);this.attributes.hideActions||t.append(Qm()('<div class="form-repeater-fields__actions"></div>'));let i="default"===this.attributes.layout?this.tableMatrix:this._transposeMatrix(this.tableMatrix);if(this.attributes.hide_header||t.find(".form-repeater-fields__table-heading").append(this._templateHeader(i[0])),t.find(".form-repeater-fields__table-rows").append(this._templateRows(i.slice(1))),!this.getAttributes().hideActions){let e=Qm()(` <div class="uap-btn uap-btn--primary uap-btn--small"> ${(0,b4.escapeHTML)((0,lX.__)("Add row","uncanny-automator"))} </div> `);rK(this.attributes.addRowButtonLabel)&&e.text(this.attributes.addRowButtonLabel),e.on("click",()=>{e.addClass("uap-btn--loading"),this.addRow()}),t.find(".form-repeater-fields__actions").append(e)}return t}getValue(e={}){e={includeReadOnly:!0,...e};let t=[];return this.fieldRows.forEach(i=>{let a={};i.forEach(t=>{if(!e.includeReadOnly&&t.attributes.isReadOnly&&!t.isMappingColumn)return;let i=t.getValue();if(a[t.getFieldID()]=i,"select"==t.type&&(a[`${t.getFieldID()}_readable`]=t.readableValue),"select"==t.type&&QK(i))try{a[`${t.getFieldID()}_custom`]=t.getSelectCustomValue(),a[`${t.getFieldID()}_readable`]=a[`${t.getFieldID()}_custom`]}catch{console.warn("Couldn't save the custom value")}}),t.push(a)}),t}get value(){return this.getValue()}get valueFromMeta(){let e=null;return this.attributes.hasValue?e=this.attributes.currentValue:this.attributes.hasDefaultValue&&(e=this.attributes.defaultValue),e}setValue(e=[],t=!0){this.fieldRows=[],e.forEach((e,t)=>{this.addRow(e,!1)}),t&&this.reRender()}addRow(e={},t=!0){let i=JSON.parse(JSON.stringify(this.attributes.fields));i=i.map(t=>{rK(e[t.optionCode])&&(t.currentValue=e[t.optionCode]);let i=new Js(t.fieldType,{...t,...{parentID:this.attributes.parentID,itemId:this.attributes.itemId,itemType:this.attributes.itemType,repeaterOptionCode:this.attributes.optionCode}});return i.isMappingColumn=i.getFieldID()===this.ajaxMappingColumn,i}),this.fieldRows.push(i),t&&this.reRender(!0)}reRender(e=!1){this._needsFieldRecreation()?this.createFields():this.fieldRows=this._createFieldRowsFromValues(this.value);let t=this.formElement,i=this.createFormElement(!0);if(t.replaceWith(i),this.initFlatpickr(),this.initTokenSelector(),this.initCodeMirror(),e){let e=this.fieldRows[this.fieldRows.length-1];if(rK(e)){let t=e[0];rK(t)&&t.focus()}}}_needsFieldRecreation(){return this.attributes.fields.length>0&&0===this.fieldRows.length&&this.attributes.hideActions}_createFieldRowsFromValues(e){return e.map((e,t)=>{let i=JSON.parse(JSON.stringify(this.attributes.fields));return i.map(i=>this._createFieldInstance(i,e,t))})}_createFieldInstance(e,t,i){let a="textarea"===e.fieldType,n=this.attributes.currentValue?.[i],o=a&&rK(n)?n[e.optionCode]:t[e.optionCode],r=`${e.optionCode}_custom`,s=rK(t[r])?t[r]:void 0,l=new Js(e.fieldType,{...e,...{currentValue:o,customValue:s,parentID:this.attributes.parentID,itemId:this.attributes.itemId,itemType:this.attributes.itemType,recipeId:this.attributes.recipeId,repeaterOptionCode:this.attributes.optionCode,repeaterRowIndex:i}});return l.isMappingColumn=l.getFieldID()===this.ajaxMappingColumn,l}deleteRow(e){rK(this.fieldRows[e])&&this.fieldRows.splice(e,1),this.formElement.replaceWith(this.createFormElement(!0))}setError(e=""){rY(e)||(this.$errorWrapper.innerHTML=e,this.formElement.get(0).classList.add("form-element--error"))}clearError(){this.$errorWrapper.innerHTML="",this.formElement.get(0).classList.remove("form-element--error")}startLoadingAnimation(){let e="form-element--loading";rK(this.formElement)&&!this.formElement.hasClass(e)&&(this.formElement.addClass(e),this.formElement.trigger("automator:field:loading"))}stopLoadingAnimation(){let e="form-element--loading";rK(this.formElement)&&this.formElement.hasClass(e)&&(this.formElement.removeClass(e),this.fieldContainer.removeClass("form-checkbox--loading-inline"),this.formElement.trigger("automator:field:loading"))}get $errorWrapper(){return this.formElement.get(0).querySelector(".form-element__error")}get $ajaxRefreshBtn(){return this.formElement.get(0).querySelector(".form-element-ajax-refresh-btn")}getFormElement(){return this.attributes.completedFirstLoad=!1,this.formElement}get $wrapper(){return this.getFormElement()}get valueStandardFormat(){return{type:this.attributes.fieldType,value:this.value,miscellaneous:{label:this.attributes.label,show_label_in_sentence:this.attributes.showLabelInSentence}}}get valueLegacyMeta(){return{[this.attributes.optionCode]:this.value}}getAttributes(){return this.attributes}getFieldID(){return this.attributes.optionCode}validate(e=!0){this.attributes.dynamic_visibility&&this.applyDynamicVisibility();let t={isValid:!0,message:""},i=[];return this.fieldRows.forEach(a=>{let n={};a.forEach(i=>{n[i.getFieldID()]=i.validate(e),t.isValid=t.isValid&&n[i.getFieldID()].isValid}),i.push(n)}),t}initTokenSelector(){this.fieldRows.forEach(e=>{e.forEach(e=>{e.initTokenSelector()})})}destroyTokenSelector(){this.fieldRows.forEach(e=>{e.forEach(e=>{e.destroyTokenSelector()})})}initFlatpickr(){this.fieldRows.forEach(e=>{e.forEach(e=>{e.initFlatpickr()})})}destroyFlatpickr(){this.fieldRows.forEach(e=>{e.forEach(e=>{e.destroyFlatpickr()})})}initCodeMirror(){this.fieldRows.forEach(e=>{e.forEach(e=>{e.initCodeMirror()})})}destroyCodeMirror(){this.fieldRows.forEach(e=>{e.forEach(e=>{e.destroyCodeMirror()})})}_templateHeader(e){let t=Qm()("<tr></tr>");return e.forEach(e=>{let i=Qm()(`<th class="form-repeater-fields__table-heading-cell ${e.attributes?.isHidden?"form-repeater-fields__table-heading-cell--hidden":""}" data-id="${e.attributes?.id}" ></th>`);i.append(e.node),t.append(i)}),t}_templateHeadingCell(e){let t=Qm()(`<div data-id="${e.id}"></div>`);return rY(e.title)?rY(this.attributes.ajax)||t.append(Qm()(` <div class="form-repeater-fields__table-heading-cell-title"> <span class="uap-placeholder-text" data-placeholder="Label"></span> <span class="uap-placeholder-text" data-placeholder="Second"></span> </div> `)):t.append(Qm()(` <div class="form-repeater-fields__table-heading-cell-title"> ${e.title} ${e.isRequired?'<span class="form-repeater-fields__table-heading-cell-required"></span>':""} </div> `)),rY(e.description)||t.append(Qm()(` <div class="form-repeater-fields__table-heading-cell-description"> ${e.description} </div> `)),t}_templateRows(e){let t=[];return e.forEach((e,i)=>{let a=Qm()(`<tr data-order="${i}"></tr>`);e.forEach(e=>{let t=Qm()(`<td class="form-repeater-fields__table-rows-cell ${e.attributes.isHidden?"form-repeater-fields__table-rows-cell--hidden":""}" data-id="${e.attributes.id}" ></td>`);return t.append(e.node),a.append(t)}),t.push(a)}),t}_templateCell(e){let t=Qm()(`<div data-id="${e.attributes.optionCode}"></div>`),i=e.getFormElement();return e.initLibraries(),t.append(i),t}applyDynamicVisibility(){let e=this.attributes.dynamic_visibility,t="visible"===e.default_state;e.visibility_rules.forEach(e=>{this.evaluateVisibilityRule(e)&&(t="show"===e.resulting_visibility)}),this.updateFieldVisibility(t)}evaluateVisibilityRule(e){return e.rule_conditions["AND"===e.operator?"every":"some"](e=>{let t=QW(this.attributes.itemId,e.option_code,this.attributes.itemType).getValue();return this.compareValues(t,e.value,e.compare)})}updateFieldVisibility(e){this.attributes.isHidden=!e;try{e?this.formElement.removeClass("form-element--hidden"):this.formElement.addClass("form-element--hidden")}catch{}}compareValues(e,t,i){switch(i){case"==":return e==t;case"!=":return e!=t;default:return!1}}setupVisibilityChangeListener(){this.attributes.dynamic_visibility.visibility_rules.forEach(e=>{e.rule_conditions.forEach(e=>{let t=QW(this.attributes.itemId,e.option_code,this.attributes.itemType);t&&t.field.on("change",()=>{this.applyDynamicVisibility()})})})}get headers(){let e=Qm()('<div data-id="_AUTOMATOR_ROW_NUMBER">#</div>'),t=Qm()('<div data-id="_AUTOMATOR_TABLE_ACTIONS"></div>'),i=[{type:"heading",attributes:{id:"_AUTOMATOR_ROW_NUMBER",title:"#"},node:e},...rK(this.attributes.ajax)&&rY(this.attributes.fields)&&!rY(this.fieldRows)?this.fieldRows[0].filter(e=>!e.attributes.optionCode.endsWith("_readable")).map((e,t)=>{let i={title:"",id:e.attributes.optionCode};return{type:"heading",attributes:i,node:this._templateHeadingCell(i)}}):this.attributes.fields.map(e=>{let t={title:rK(e.label)?e.label:"",description:rK(e.description)?e.description:"",isRequired:!!rK(e.isRequired)&&e.isRequired,isHidden:!!rK(e.isHidden)&&e.isHidden,id:e.optionCode};return{type:"heading",attributes:t,node:this._templateHeadingCell(t)}})];return this.attributes.hideActions||i.push({type:"heading",attributes:{id:"_AUTOMATOR_TABLE_ACTIONS",title:""},node:t}),i}get rows(){return[...this.fieldRows.map((e,t)=>this.getRow(e,t))]}getRow(e,t){let i=Qm()(`<div data-id="_AUTOMATOR_ROW_NUMBER">${t+1}</div>`),a=Qm()('<div data-id="_AUTOMATOR_TABLE_ACTIONS"></div>'),n=this.fieldRows.length,o=this.getAttributes();if(0!=t||0==t&&(!this.attributes.isRequired||n>1)){let e=Qm()('<div class="form-repeater-fields__table-rows-cell-remove"><span></span></div>');e.on("click",()=>{this.deleteRow(t)}),o.hideActions||a.append(e)}let r=[{type:"row-cell",attributes:{id:"_AUTOMATOR_ROW_NUMBER",title:t+1},node:i},...e.map(e=>({type:"row-cell",attributes:{id:e.attributes.optionCode,isHidden:e.attributes.isHidden},node:this._templateCell(e)}))];return this.attributes.hideActions||r.push({type:"row-cell",attributes:{id:"_AUTOMATOR_TABLE_ACTIONS",title:""},node:a}),r}get tableMatrix(){return[[...this.headers],...this.rows]}_transposeMatrix(e){return e[0].map((t,i)=>e.map(e=>e[i]))}},Jc=rg({}).strict();rg({unsavedFieldValues:k4,isUserEdit:re()}).strict();let Jd="recipe-builder-templates";class Ju extends ld{static{({e:[eo,er,es,el,ec,ed,eu,ep,eh,eg,em,ef,ey,eb,ev,e_],c:[ew,en]}=Fg(this,[lJ("uap-builder-item-legacy-form")],[[l0({type:String,attribute:"recipe-id"}),1,"recipeID"],[l0({type:String,attribute:"parent-id"}),1,"parentID"],[l0({type:String,attribute:"item-id"}),1,"itemID"],[l0({type:String,attribute:"item-type"}),1,"itemType"],[l0({type:String,attribute:"integration-code"}),1,"integrationCode"],[l0({type:Array,attribute:!1}),1,"fieldsDirectory"],[l0({type:Object,attribute:!1}),1,"fieldsValues"],[l0({type:String,attribute:"return-format"}),1,"returnFormat"]],0,void 0,ld))}#ed=eo(this);get recipeID(){return this.#ed}set recipeID(e){this.#ed=e}#eu=(er(this),es(this));get parentID(){return this.#eu}set parentID(e){this.#eu=e}#ep=(el(this),ec(this));get itemID(){return this.#ep}set itemID(e){this.#ep=e}#eh=(ed(this),eu(this));get itemType(){return this.#eh}set itemType(e){this.#eh=e}#eg=(ep(this),eh(this));get integrationCode(){return this.#eg}set integrationCode(e){this.#eg=e}#em=(eg(this),em(this));get fieldsDirectory(){return this.#em}set fieldsDirectory(e){this.#em=e}#ef=(ef(this),ey(this));get fieldsValues(){return this.#ef}set fieldsValues(e){this.#ef=e}#ey=(eb(this),ev(this,"legacy-meta"));get returnFormat(){return this.#ey}set returnFormat(e){this.#ey=e}_renderFailed=(e_(this),!1);_hasPendingUserEdit=!1;createRenderRoot(){return this}firstUpdated(){rK(this.fields)&&(Object.values(this.fields).forEach(e=>{"textarea"===e.attributes.fieldType&&e.attributes.supportsTinyMCE&&e.initTinyMCE()}),this.loadLegacyAjaxOptions())}loadLegacyAjaxOptions(){let e=Object.values(this.fields).filter(e=>e.attributes.isAjax),t=e.filter(e=>e.attributes.targetField!==e.attributes.optionCode).map(e=>e.attributes.targetField);e.filter(e=>!t.includes(e.attributes.optionCode)).filter(e=>e.attributes.targetField===e.attributes.optionCode||!rY(e.getValue())).forEach(e=>e.doAJAX())}render(){if(this._renderFailed)return this.templateRenderError();try{return s1` <div class="uap uap-legacy-form"> ${$A(Object.values(this.fields),e=>e.id,e=>{let t=Ft(this.triggerChangeEvent);return e.formElement.off("automator:field:change.legacy-form").on("automator:field:change.legacy-form",(e,i)=>{Jr!==i?.source&&(this._hasPendingUserEdit=!0),t()}),s1`${e.$wrapper.get(0)}`})} </div> <uap-d-fields-overlay-layer></uap-d-fields-overlay-layer> `}catch(e){return this._renderFailed=!0,console.error("uap-builder-item-legacy-form: Failed to render fields.",e),this.templateRenderError()}}templateRenderError(){return s1` <uas-alert type="error"> <p>${(0,b4.escapeHTML)((0,lX.__)("Failed to load fields. Close the dialog and try again.","uncanny-automator"))}</p> </uas-alert> `}triggerChangeEvent=()=>{let e=this._hasPendingUserEdit;this._hasPendingUserEdit=!1,this.dispatchEvent(new CustomEvent("uap.f.recipe-builder.legacy-form.change",{bubbles:!0,composed:!0,detail:{unsavedFieldValues:this.unsavedFieldValues,isUserEdit:e}}))};get fields(){return rK(this._fields)?this._fields:rK(this.fieldsDirectory)?(this._fields={},this.fieldsDirectory.forEach(e=>{let t=Object.assign({fieldType:e.type,supportsTokens:!0,itemType:this.itemType},XV(e));t.recipeId=this.recipeID,t.itemId=this.itemID,t.parentID=this.parentID,t.isAjax&&(t.integrationId=this.integrationCode,rY(t.targetField)&&(t.targetField=t.optionCode));let i={};if("legacy-meta"===this.returnFormat){i={value:this.fieldsValues?.[e.option_code||e.optionCode]};let t=this.fieldsValues?.[(e.option_code||e.optionCode)+"_custom"];t&&(i.custom=t);let a=this.fieldsValues?.[(e.option_code||e.optionCode)+"_readable"];a&&(i.readable=a)}else i=this.fieldsValues?.[e.option_code||e.optionCode];("legacy-meta"===this.returnFormat?rK(i.value):rK(i))?(t.currentValue=i.value,t.hasDefaultValue=!1,rK(i.readable)&&(t.currentReadable=i.readable),"repeater"===t.fieldType&&"string"==typeof t.currentValue&&(t.currentValue=function(e){let t;if(""===e)return[];try{t=JSON.parse(e)}catch{return[]}let i=k0.safeParse(t);return i.success?i.data:[]}(t.currentValue)),"automator_custom_value"===t.currentValue&&(t.customValue=i.custom)):t.currentValue=t.defaultValue;let a="repeater"===t.fieldType?new Jl(t,!1):new Js(t.fieldType,t,!1);this._fields[t.optionCode]=a}),Object.entries(this._fields).forEach(([e,t])=>{t.createFormElement(),t.initTokenSelector(),t.initFlatpickr(),t.initCodeMirror()}),this._fields):null}get unsavedFieldValues(){let e={};return(Object.entries(this.fields).forEach(([t,i])=>{let a="checkbox"===i.type;if(!(i.attributes.isRequired&&!a&&rY(i.value))){if(["loop","token","standard"].includes(this.returnFormat)){var n;let a=i.valueStandardFormat;e[t]={...a,value:"boolean"==typeof(n=a.value)?n?"true":"false":Array.isArray(n)?JSON.stringify(n):n}}"legacy-meta"===this.returnFormat&&(e[t]=i.valueLegacyMeta)}}),"legacy-meta"===this.returnFormat)?Object.values(e).reduce((e,t)=>({...e,...t}),{}):e}get areFieldsValid(){return Object.values(this.fields).every(e=>e.validate().isValid)}static{en()}}let Jp=Symbol("recipeID"),Jh=Symbol("recipeTitle"),Jg=Symbol("recipeSortableGroup");class Jm{constructor(e){this.host=e,this.host.addController(this)}hostConnected(){let e,t,i,a;this.disable??=(e=!1,t=e=>{e.preventDefault(),e.returnValue=""},i=()=>{let i=dW.getMutationCache().getAll().some(e=>"pending"===e.state.status&&LI(e));i!==e&&(i?window.addEventListener("beforeunload",t):window.removeEventListener("beforeunload",t),e=i)},a=dW.getMutationCache().subscribe(i),i(),()=>{a(),e&&(window.removeEventListener("beforeunload",t),e=!1)})}hostDisconnected(){this.disable?.(),this.disable=void 0}}class Jf{constructor(e){this.started=!1,e.addController(this)}hostConnected(){this.started||(this.started=!0,this.preload())}async preload(){return d4.DEV.SHOW_CONSOLE_MESSAGES&&console.log("Recipe builder - Preloading integrations, scoped integrations, blocks, and modifiers..."),Promise.all([async function(){await dW.prefetchQuery(SS)}(),...Object.values(kM).map(e=>(async function(e){let t=kL.safeParse(e);if(!t.success){d4.DEV.SHOW_CONSOLE_MESSAGES&&console.error(`preloadIntegrationsScoped: Invalid scope provided: "${String(e)}".`);return}let i=$u(t.data);await dW.prefetchQuery(i)})(e)),async function(){await dW.prefetchQuery(Ac)}()]).then(()=>{d4.DEV.SHOW_CONSOLE_MESSAGES&&console.log("Recipe builder - Integrations, scoped integrations, and blocks preloaded successfully.")}).catch(e=>{d4.DEV.SHOW_CONSOLE_MESSAGES&&console.error("Recipe builder - Error preloading data:",e)})}}let Jy=rg({recipe:rZ(),catalogs:rE(oR(),rZ()),blocks:rZ().optional()}).strict(),Jb=rg({code:EP.shape.code,dependencies:rp(kO),licenses:rp(kO)}).strict();function Jv(e,t){e.some(e=>e.scenario_id===t.scenario_id)||e.push(t)}function J_(e,t,i){for(let a of i){if(void 0===t||a.type===kv.LICENSE){Jv(e.licenses,a),void 0!==t&&Jv(t.licenses,a);continue}!function(e,t){e.some(e=>e.id===t.id)||e.push(t)}(t.dependencies,a)}}function Jw(e,t,i,a,n){e.scopes.includes(i)||e.scopes.push(i);let o=function(e,t){let i=e.integrations.find(e=>e.code===t);if(i)return i;let a={code:t,dependencies:[],licenses:[]};return e.integrations.push(a),a}(e,a),r=t[i],s=r?.[a];if(!s)return;J_(e,o,s.dependencies.items);let l=s.items?.[i]?.[n]??s.block_modifiers?.[i]?.[n];J_(e,o,l?.dependencies.items??[])}function Jx(e,t,i){for(let a of i){if(!Ir(a)){Jw(e,t.catalogs,a.item_type,a.integration_code,a.code);continue}for(let i of(J_(e,void 0,t.blocks?.[a.block_type]?.dependencies.items??[]),a.modifiers))Jw(e,t.catalogs,i.block_modifier_type,i.integration_code,i.code);for(let i of a.paths)Jx(e,t,i.content)}}function Jk(e){let t=Jy.parse(e),i={licenses:[],integrations:[],scopes:[]};return Jx(i,t,t.recipe.flow.entry.triggers),Jx(i,t,t.recipe.flow.content),i}rg({licenses:rp(kO),integrations:rp(Jb),scopes:rp(oR())}).strict();var JE=a(8846),JS=a.n(JE),JC=function(e,t,i,a){var n,o=arguments.length,r=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(r=(o<3?n(r):o>3?n(t,i,r):n(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r};let JT=class extends ld{constructor(){super(...arguments),this.integrationCodes=[],this.catalogControllers=new Map,this.blocksController=new vE(this,Ac)}static{this.styles=sf`${sm(JS())}`}willUpdate(e){if(lQ(this,"integrationCodes",rp(oR()),e,"uap-f-recipe-template-requires"),lQ(this,"recipe",Il.optional(),e,"uap-f-recipe-template-requires"),e.has("recipe")&&this.recipe)for(let e of Jk({recipe:this.recipe,catalogs:{}}).scopes)this.catalogControllers.has(e)||this.catalogControllers.set(e,new vE(this,$u(e)))}render(){let e=this.loadedRequirements(),t=e?.integrations??[],i=this.templateSummary([...t.flatMap(e=>e.dependencies),...e?.licenses??[]]),a=this.integrationCodes.at(-1),n=e=>{let i=t.find(t=>t.code===e);return this.templateIntegration(e,i?.dependencies??[],i?.licenses??[])};return s1` <div class="requires"> <span class="requires__label">${(0,lX.__)("Requires","uncanny-automator")}</span> <div class="requires__list"> ${$A(this.integrationCodes.slice(0,-1),e=>e,n)} ${void 0===a?i:s1`<span class="requires__tail">${n(a)}${i}</span>`} </div> </div> `}templateSummary(e){if(0===e.length)return s3;let t=e.every(e=>e.is_met);return s1` <uas-tooltip min-width="150"> ${t?(0,lX.__)("Everything this template needs is set up on this site.","uncanny-automator"):(0,lX.__)("A few things this template needs aren't set up on this site yet. Add the template and it walks you through setting each one up.","uncanny-automator")} <span slot="target" class="requires__summary"> <uas-icon class="requires__status requires__status--${t?"met":"unmet"}" code=${t?"circle-check":"circle-exclamation"} icon-style="solid" ></uas-icon> </span> </uas-tooltip> `}templateIntegration(e,t,i){return 0===t.length&&i.length>0?s1` <uas-tooltip min-width="150"> ${$A(i,e=>e.id,e=>s1`<div class="requires__line">${(0,lX.sprintf)((0,lX.__)("Included with %s.","uncanny-automator"),e.name)}</div>`)} <span slot="target" class="requires__item requires__item--described"> <uap-d-integrations-name code=${e}></uap-d-integrations-name> </span> </uas-tooltip> `:0===t.length?s1` <span class="requires__item"> <uap-d-integrations-name code=${e}></uap-d-integrations-name> </span> `:s1` <uas-tooltip min-width="150"> ${$A(t,e=>e.id,e=>this.templateDependency(e))} <span slot="target" class="requires__item requires__item--described"> <uap-d-integrations-name code=${e}></uap-d-integrations-name> </span> </uas-tooltip> `}templateDependency(e){return s1` <div class="requires__line"> ${e.is_met?(0,lX.sprintf)((0,lX.__)("%s is set up.","uncanny-automator"),e.name):s1`<uas-markdown allowed-tags="strong,em" .content=${e.description}></uas-markdown>`} </div> `}loadedRequirements(){let e=[...this.catalogControllers.entries()],t=this.blocksController.result.data;if(!this.recipe||void 0===t||0===e.length||e.some(([,e])=>void 0===e.result.data))return null;let i=Object.fromEntries(e.flatMap(([e,t])=>t.result.data?[[e,t.result.data]]:[]));return Jk({recipe:this.recipe,catalogs:i,blocks:t})}};JC([l0({attribute:!1})],JT.prototype,"integrationCodes",void 0),JC([l0({attribute:!1})],JT.prototype,"recipe",void 0),JT=JC([lJ("uap-f-recipe-template-requires")],JT);var JI=a(7358),JD=a.n(JI),JA=function(e,t,i,a){var n,o=arguments.length,r=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(r=(o<3?n(r):o>3?n(t,i,r):n(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r};let J$=class extends ld{constructor(){super(...arguments),this.loading=!1,this.integrationsController=new vE(this,{...SS,enabled:!1})}static{this.styles=sf`${sm(JD())}`}willUpdate(e){if(e.has("code")){let e=rK(this.code)&&!rY(this.code);this.integrationsController.options.enabled!==e&&this.integrationsController.setOptions({enabled:e})}}render(){if(this.loading)return this.templatePlaceholder();if(rY(this.code))return s3;let{status:e,data:t,error:i,isLoading:a,isFetching:n,isError:o}=this.integrationsController.result;if(a)return this.templatePlaceholder();if(o)return d4.DEV.SHOW_CONSOLE_MESSAGES&&console.error(`Error fetching integration card (integration: ${this.code}):`,i),this.templateError();if("success"===e&&t){let e=t[this.code];if(!e)return this.templateError();let i=e.details.short_description??e.details.description;return s1` <div class="card"> <uap-d-integrations-icon class="card__icon" code=${this.code} variant="circle" size="md"></uap-d-integrations-icon> <div class="card__body"> <div class="card__name">${e.name}</div> ${i?s1`<div class="card__description">${i}</div>`:s3} </div> </div> `}return"pending"===e||n&&!t?this.templatePlaceholder():s3}templatePlaceholder(){return s1` <div class="card"> <uas-skeleton class="card__icon" variant="circle" width="32px" height="32px"></uas-skeleton> <div class="card__body"> <div class="card__name"><uas-skeleton text="WordPress"></uas-skeleton></div> <div class="card__description"><uas-skeleton text="Powerful task automation"></uas-skeleton></div> </div> </div> `}templateError(){return s1` <div class="card card--error"> ${(0,lX.__)("Integration not found","uncanny-automator")} </div> `}};JA([l0({type:String})],J$.prototype,"code",void 0),JA([l0({type:Boolean})],J$.prototype,"loading",void 0),J$=JA([lJ("uap-d-integrations-card")],J$);var JO=a(3399),JR=a.n(JO),JM=function(e,t,i,a){var n,o=arguments.length,r=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(r=(o<3?n(r):o>3?n(t,i,r):n(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r};let JL=class extends ld{constructor(){super(...arguments),this.popup=null,this.loading=!1,this.boundMessageHandler=e=>{e.data?.type==="UAP_DEPENDENCY_RESOLVED"&&this.popup&&(this.popup.close(),this.loading=!1)}}willUpdate(e){lQ(this,"cta",km,e,"uap-f-recipe-builder-node-selector-dependency-cta-button-open-and-wait")}render(){if(this.cta)return s1` <uas-button color="secondary" size="sm" @click=${this.handleOpenAndWait} ?loading=${this.loading} > ${this.cta.icon?s1`<uas-icon code=${this.cta.icon}></uas-icon>`:""} ${this.cta.label} </uas-button> `}disconnectedCallback(){super.disconnectedCallback(),window.removeEventListener("message",this.boundMessageHandler)}handleOpenAndWait(){window.removeEventListener("message",this.boundMessageHandler),window.addEventListener("message",this.boundMessageHandler),this.popup=lG({url:this.cta.url,title:this.cta.label,w:500,h:600,onClose:()=>{window.removeEventListener("message",this.boundMessageHandler),this.popup=null,this.loading=!1,lw({element:this,eventName:"uap.f.recipe-builder.node-selector.dependency-maybe-resolved",options:{bubbles:!0,composed:!0}})}}),this.popup||(window.removeEventListener("message",this.boundMessageHandler),this.loading=!1)}};JM([l0({type:Object})],JL.prototype,"cta",void 0),JM([l2()],JL.prototype,"loading",void 0),JL=JM([lJ("uap-f-recipe-builder-node-selector-dependency-cta-button-open-and-wait")],JL);var JN=function(e,t,i,a){var n,o=arguments.length,r=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(r=(o<3?n(r):o>3?n(t,i,r):n(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r};let JP=class extends ld{constructor(){super(...arguments),this.loading=!1,this.handleClick=async()=>{if(this.cta){this.loading=!0;try{await u3({addonID:this.cta.addon_id,action:this.cta.addon_action}),lw({element:this,eventName:"uap.f.recipe-builder.node-selector.dependency-maybe-resolved",options:{bubbles:!0,composed:!0}})}catch(e){d4.DEV.SHOW_CONSOLE_MESSAGES&&console.error(e),ly({message:(0,b4.escapeHTML)((0,lX.__)("The plugin could not be installed. Please try again.","uncanny-automator")),color:"error",duration:5e3,iconID:"circle-exclamation"})}finally{this.loading=!1}}}}willUpdate(e){lQ(this,"cta",ky,e,"uap-f-recipe-builder-node-selector-dependency-cta-button-fetch")}render(){if(this.cta)return s1` <uas-button color="secondary" size="sm" ?loading=${this.loading} @click=${this.handleClick} > ${this.cta.icon?s1`<uas-icon code=${this.cta.icon}></uas-icon>`:""} ${this.cta.label} </uas-button> `}};JN([l0({type:Object})],JP.prototype,"cta",void 0),JN([l2()],JP.prototype,"loading",void 0),JP=JN([lJ("uap-f-recipe-builder-node-selector-dependency-cta-button-fetch")],JP);var Jz=function(e,t,i,a){var n,o=arguments.length,r=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(r=(o<3?n(r):o>3?n(t,i,r):n(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r};let JU=class extends ld{constructor(){super(...arguments),this.loading=!1,this.onWindowFocus=()=>{lw({element:this,eventName:"uap.f.recipe-builder.node-selector.dependency-maybe-resolved",options:{bubbles:!0,composed:!0}})}}static{this.styles=sf`${sm(JR())}`}disconnectedCallback(){super.disconnectedCallback(),window.removeEventListener("focus",this.onWindowFocus)}willUpdate(e){lQ(this,"cta",kb,e,"uap-f-recipe-builder-node-selector-dependency-cta")}render(){if(this.cta)return s1` <div class="dependency-cta"> ${this.templateButton()} </div> `}templateButton(){if(this.cta)return this.cta.type===kh.LINK_OPEN_AND_WAIT?s1` <uap-f-recipe-builder-node-selector-dependency-cta-button-open-and-wait .cta=${this.cta} ></uap-f-recipe-builder-node-selector-dependency-cta-button-open-and-wait> `:this.cta.type===kh.FETCH?this.templateFetch():s1` <uas-button color="secondary" size="sm" href=${this.cta.url} target="_blank" @click=${this.onExternalLinkClick} > ${this.cta.icon?s1`<uas-icon code=${this.cta.icon}></uas-icon>`:""} ${this.cta.label} </uas-button> `}onExternalLinkClick(){window.addEventListener("focus",this.onWindowFocus)}templateFetch(){if(this.cta&&this.cta.type===kh.FETCH)return s1` <uap-f-recipe-builder-node-selector-dependency-cta-button-fetch .cta=${this.cta} ></uap-f-recipe-builder-node-selector-dependency-cta-button-fetch> `}};Jz([l0({type:Object})],JU.prototype,"cta",void 0),Jz([l2()],JU.prototype,"loading",void 0),JU=Jz([lJ("uap-f-recipe-builder-node-selector-dependency-cta")],JU);var JF=a(1499),Jj=a.n(JF),JB=function(e,t,i,a){var n,o=arguments.length,r=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(r=(o<3?n(r):o>3?n(t,i,r):n(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r};let JH=class extends ld{static{this.styles=sf`${sm(Jj())}`}willUpdate(e){lQ(this,"dependency",kO,e,"uap-f-recipe-builder-node-selector-dependency"),lQ(this,"blockingDependencyName",kD.shape.name,e,"uap-f-recipe-builder-node-selector-dependency")}render(){if(!this.dependency)return;let e=this.dependency.is_disabled?"dependency--disabled":"";return this.dependency.is_met?s1` <div class="dependency dependency--met ${e}"> ${this.templateIcon()} <div class="dependency-content"> ${this.templateName()} ${this.templateTags()} </div> ${this.templateStatus()} </div> `:s1` <div class="dependency dependency--not-met ${e}"> ${this.templateIcon()} <div class="dependency-content"> ${this.templateName()} ${this.templateTags()} ${this.templateDescription()} ${this.templateMetadata()} ${this.dependency.is_disabled?this.templateBlocked():this.templateCta()} </div> ${this.templateStatus()} </div> `}templateName(){return s1` <div class="dependency-name">${this.dependency.name}</div> `}templateDescription(){return s1` <div class="dependency-description"> <uas-markdown allowed-tags="p,ul,ol,li,strong,em" .content=${this.dependency.description} ></uas-markdown> </div> `}templateMetadata(){let e=[];return(this.dependency.type===kv.INSTALLABLE&&e.push({icon:"user",value:(0,b4.escapeHTML)((0,lX.sprintf)((0,lX.__)("Developed by %1$s","uncanny-automator"),`[${this.dependency.developer.name}](${this.dependency.developer.site})`))}),0===e.length)?s1``:s1` <div class="dependency-metadata"> ${e.map(e=>s1` <div class="dependency-metadata-item"> <uas-icon code=${e.icon} class="dependency-metadata-item-icon" ></uas-icon> <uas-markdown allowed-tags="strong,em,a" .content=${e.value} class="dependency-metadata-item-value" ></uas-markdown> </div> `)} </div> `}templateCta(){return s1` <div class="dependency-cta"> <uap-f-recipe-builder-node-selector-dependency-cta .cta=${this.dependency.cta} ></uap-f-recipe-builder-node-selector-dependency-cta> </div> `}templateBlocked(){let e=void 0===this.blockingDependencyName?(0,lX.__)("Complete the other dependencies first","uncanny-automator"):(0,lX.sprintf)((0,lX.__)('Complete "%s" first',"uncanny-automator"),this.blockingDependencyName);return s1` <div class="dependency-blocked"> <uas-alert type=${yQ.WARNING} size=${yJ.SM} > ${e} </uas-alert> </div> `}templateIcon(){return this.dependency.type===kv.LICENSE?s1` <div class="dependency-icon"> <uas-icon brand="uncanny-automator"></uas-icon> </div> `:s1` <div class="dependency-icon"> <img src="${this.dependency.icon}" alt="${this.dependency.name}" /> </div> `}templateStatus(){return this.dependency.is_met?s1` <div class="dependency-status"> <uas-icon code="circle-check" icon-style="solid" size="lg" ></uas-icon> </div> `:s1` <div class="dependency-status"> <uas-icon code="circle-exclamation" icon-style="solid" size="lg" ></uas-icon> </div> `}templateTags(){return s1` <div class="dependency-tags"> ${this.dependency.tags.map(e=>s1` <uap-d-integrations-dependency-tag scenario-id=${e.scenario_id} label=${e.label} icon=${e.icon??s3} size="xs" ></uap-d-integrations-dependency-tag> `)} </div> `}};function JV(e,t){return e.dependencies.map(e=>t.find(t=>t.id===e)).find(e=>void 0!==e&&!e.is_met)}JB([l0({type:Object})],JH.prototype,"dependency",void 0),JB([l0({type:String})],JH.prototype,"blockingDependencyName",void 0),JH=JB([lJ("uap-f-recipe-builder-node-selector-dependency")],JH);let Jq=rg({search:oR(),category:oR(),integrations:rp(oR())}).strict(),JZ=Jq.partial(),JW={search:"",category:"",integrations:[]},JG={READY_TO_USE:"ready_to_use"},JK=rT(JG),JY=rp(JK),JQ=rg({name:JK,templateIDs:rp(o5().int())}).strict(),JX=rp(JQ),JJ="search",J1="category",J0="integration",J2={TEMPLATE_ID:{name:"templateID",schema:$1().int().positive()}},J3="recipe-template-view",J4=rg({[J2.TEMPLATE_ID.name]:J2.TEMPLATE_ID.schema}),J6="uap.f.recipe-template.filter-change",J5=rg({filter:JZ,templateIDs:rp(o5().int()).optional()}).strict(),J8="uap.f.recipe-template.base-filter-change",J7=rg({active:rp(JK)}).strict(),J9=rg({}).strict(),eee=rg({recipeID:o5().int().positive()}).strict(),eet=rg({}).strict(),eei=rg({done:o5().int().nonnegative(),total:o5().int().nonnegative()}).strict(),eea=o5().int().positive().optional(),een=rT([Nc,No]),eeo={[Nc]:"",[No]:No};var eer=a(4478),ees=a.n(eer),eel=function(e,t,i,a){var n,o=arguments.length,r=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(r=(o<3?n(r):o>3?n(t,i,r):n(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r};let eec=class extends ld{constructor(){super(...arguments),this.blocksController=new vE(this,Ac),this.catalogControllers=new Map}static{this.styles=sf`${sm(ees())}`}willUpdate(e){if(lQ(this,"recipe",Il.optional(),e,"uap-f-recipe-template-requirements"),e.has("recipe")&&this.recipe)for(let e of Jk({recipe:this.recipe,catalogs:{}}).scopes)this.catalogControllers.has(e)||this.catalogControllers.set(e,new vE(this,$u(e)))}render(){if(!this.recipe)return this.templateSkeleton();if(this.hasError())return this.progress={done:0,total:0},s3;if(this.isLoading())return this.templateSkeleton();let e=Jk({recipe:this.recipe,catalogs:this.loadedCatalogs(),blocks:this.blocksController.result.data}),t=[...e.licenses,...e.integrations.flatMap(e=>e.dependencies)].filter((e,t,i)=>i.findIndex(t=>t.id===e.id)===t);return(this.progress={done:t.filter(e=>e.is_met).length,total:t.length},0===t.length)?s1` <p class="requirements__empty"> ${(0,lX.__)("This template needs no additional integrations.","uncanny-automator")} </p> `:s1` <div class="requirements" @uap.f.recipe-builder.node-selector.dependency-maybe-resolved=${this.onMaybeResolved}> ${$A(t,e=>e.id,e=>this.templateDependency(e,t))} </div> `}updated(e){super.updated(e);let t=this.progress;void 0!==t&&(t.done!==this.reportedProgress?.done||t.total!==this.reportedProgress?.total)&&(this.reportedProgress=t,lw({element:this,eventName:"uap.f.recipe-template.setup-progress",data:t,schema:eei,options:{bubbles:!0,composed:!0}}))}templateDependency(e,t){return s1` <uap-f-recipe-builder-node-selector-dependency .dependency=${e} .blockingDependencyName=${JV(e,t)?.name} ></uap-f-recipe-builder-node-selector-dependency> `}templateSkeleton(){return s1` <div class="requirements"> <uap-d-integrations-card loading></uap-d-integrations-card> <uap-d-integrations-card loading></uap-d-integrations-card> </div> `}isLoading(){return this.blocksController.result.isPending||[...this.catalogControllers.values()].some(e=>e.result.isPending)}hasError(){return[this.blocksController,...this.catalogControllers.values()].some(e=>e.result.isError&&void 0===e.result.data)}loadedCatalogs(){return Object.fromEntries([...this.catalogControllers.entries()].flatMap(([e,t])=>t.result.data?[[e,t.result.data]]:[]))}onMaybeResolved(){dW.invalidateQueries({queryKey:$c.all()}),dW.invalidateQueries({queryKey:As}),dW.invalidateQueries({queryKey:Sk}),dW.invalidateQueries({queryKey:Ae.all(),predicate:e=>{let t=e.queryKey[1];return"number"==typeof t&&t>0}})}};eel([l0({type:Object})],eec.prototype,"recipe",void 0),eec=eel([lJ("uap-f-recipe-template-requirements")],eec);let eed="uap.f.recipe-builder.flow.entity-duplicated",eeu=rg({entityID:ry([o5(),oR()])}).strict(),eep=!1,eeh=new Set;function eeg(e){if(e!==eep)for(let t of(eep=e,document.documentElement.classList.toggle("is-uap-recipe-dragging",e),Array.from(eeh)))t(e)}let eem=rg({container:rZ(e=>e instanceof HTMLElement,{message:"container must be an HTMLElement"}),getRecipe:rZ(e=>"function"==typeof e,{message:"getRecipe must be a function"}),getBlocks:rZ(e=>"function"==typeof e,{message:"getBlocks must be a function"}),getIntegrations:rZ(e=>"function"==typeof e,{message:"getIntegrations must be a function"}),parentID:ry([o5(),oR().min(1)]),pathCode:oR().min(1).optional(),slot:R3,mutate:rZ(e=>"function"==typeof e,{message:"mutate must be a function"}),group:rZ(e=>e instanceof x2,{message:"group must be a SortableGroup instance"}).optional(),drawsDeferredLast:re().optional()}).strict().readonly();function eef(e){return"number"==typeof e?e:/^\d+$/.test(e)?parseInt(e,10):e}function eey(e,t,i,a){if(i===R2.CONTENT)return e.flow.content;let n=R0(e,t);if(!n||!Ir(n))return;let o=n.paths.find(e=>e.path_code===a);return o?.content}rg({slot:R3,pathCode:oR().optional()}).strict().readonly();let eeb=new x2({id:"recipe-builder"});function eev(e,t){return String(e.containerId)===String(t.containerId)&&e.slot===t.slot}function ee_(e,t,i){if(String(t)===String(e.recipe_id))return{slot:R2.CONTENT};if("modifiers"===i)return{slot:R2.MODIFIERS};if(void 0===i)return;let a=R0(e,t);if(a&&Ir(a)&&void 0!==a.paths.find(e=>e.path_code===i))return{slot:R2.ITEMS,pathCode:i}}function eew(e,t,i,a,n,o){if(void 0===o)return!0;let r=Lb(e,i,n??"");if(void 0===r)return!0;let s=Ir(t)?{entity_type:SY.BLOCK,entity_code:t.block_type}:It(t)?{entity_type:SY.ITEM,entity_code:t.block_modifier_type}:{entity_type:SY.ITEM,entity_code:t.item_type},l=Lk(t);return void 0===L_(r,o,{entity_type:s.entity_type,entity_code:s.entity_code,required_block_ancestors:l.required_block_ancestors,unsupported_block_ancestors:l.unsupported_block_ancestors},a)}function eex(e,t,i){if(t===R2.CONTENT)return!1;let a=R0(e,i);return void 0!==a&&Ir(a)&&a.availability.status===Cc.UNAVAILABLE}function eek(e,t,i,a){let n=t.indexOf(i);if(-1!==n){for(let i=n-1;i>=0;i--){let n=e.findIndex(e=>String(e.id)===t[i]),o=e[n];if(void 0!==o&&!OC(o,a))return n+1}return 0}}function eeE(e,t,i){if(!0!==i.drawsDeferredLast)return;let a=String(t.dragged.entityId),n=e.find(e=>String(e.id)===a),o=e.filter(e=>String(e.id)!==a),r=eek(o,t.orderedIdsInTarget,a,i.getBlocks());if(void 0===n||void 0===r)return;let s=o.map(e=>e.id);return s.splice(r,0,n.id),s}let eeS=rp(rg({container:rZ(e=>e instanceof HTMLElement,{message:"container must be an HTMLElement"}),parentID:ry([o5(),oR().min(1)]),slot:R3,pathCode:oR().min(1).optional(),drawsDeferredLast:re().optional()}).strict().readonly()).readonly(),eeC=rg({getRecipe:rZ(e=>"function"==typeof e,{message:"getRecipe must be a function"}),getAnchors:rZ(e=>"function"==typeof e,{message:"getAnchors must be a function"}),getGroup:rZ(e=>"function"==typeof e,{message:"getGroup must be a function"}).optional()}).strict().readonly();class eeT{constructor(e,t){this.installed=new Map,this.liveRecipeReader=()=>{let e=this.options.getRecipe();if(void 0===e)throw Error("RecipeSortableBindingsController: recipe is undefined at drag time");return e},this.dispatchMutate=e=>{this.mutation.mutate(e)},this.host=e,this.blocksController=new vE(e,Ac),this.integrationsController=new vE(e,SS),this.options=eeC.parse(t),this.mutation=new vm(e,LX()),e.addController(this)}hostUpdated(){if(void 0===this.options.getRecipe())return;let e=eeS.parse(this.options.getAnchors()),t=this.options.getGroup?.(),i=new Set;for(let a of e){if(i.add(a.container),this.installed.has(a.container))continue;let e=function(e,t){return new x3(e,{container:(t=eem.parse(t)).container,identity:{containerId:t.parentID,slot:t.pathCode??t.slot},dragMode:"preview",group:t.group??eeb,handle:"[data-uap-drag-handle]",surface:"[data-uap-drag-surface]",ignore:"[data-uap-drag-ignore]",dragThreshold:6,renderPreview:e=>(function(e,t,i,a){let n=R0(t,eef(e.entityId));if(Ir(n)){let e=document.createElement("uap-d-recipe-block-drag-preview");e.recipeID=t.recipe_id,e.blockType=n.block_type;let a=i?.[n.block_type];return e.sentenceTemplate=RG(a?.sentence,n.fields),e.fields=n.fields,e}if(It(n)){let e=document.createElement("uap-d-recipe-block-modifier-drag-preview");return e.recipeID=t.recipe_id,e.integrationCode=n.integration_code,e.sentenceTemplate=$v(a,n.integration_code,n.block_modifier_type,n.code),e.fields=n.fields,e.customName=n.custom_name??"",e}if(T8(n)){let e=document.createElement("uap-d-recipe-item-drag-preview");return e.recipeID=t.recipe_id,e.integrationCode=n.integration_code,e.sentenceTemplate=$y(a,n.integration_code,n.item_type,n.code),e.fields=n.fields,e.customName=n.custom_name??"",e}throw Error(`renderPreview: dragged entity ${e.entityId} (${e.entityType}) is not in the recipe cache; the source row should not have been draggable`)})(e,t.getRecipe(),t.getBlocks(),t.getIntegrations()),canDrop:e=>{if(eev(e.from,e.to))return!0;let i=t.getRecipe(),a=eef(e.to.containerId),n=ee_(i,a,e.to.slot);if(void 0===n||eex(i,n.slot,a))return!1;let o=R0(i,eef(e.dragged.entityId));if(void 0===o)return!1;let r=n.slot===R2.MODIFIERS?Ox.MODIFIERS:Ox.ITEMS,s=n.slot===R2.CONTENT?i.recipe_id:a;return eew(i,o,s,r,n.pathCode,t.getBlocks())},onCommit:e=>{let i=t.getRecipe();eev(e.from,e.to)?function(e,t,i){let a=e.orderedIdsInTarget.map(eef);if(i.slot===R2.CONTENT){let n=eey(t,i.parentID,R2.CONTENT,i.pathCode);if(void 0===n||"number"!=typeof i.parentID)return;i.mutate({kind:R5.SLOT,recipeID:i.parentID,parentKind:R4.RECIPE,parentID:i.parentID,slot:R2.CONTENT,order:LG(n,eeE(n,e,i)??a)});return}if(i.slot===R2.ITEMS){if(void 0===i.pathCode)return;let n=eey(t,i.parentID,R2.ITEMS,i.pathCode);if(void 0===n)return;i.mutate({kind:R5.SLOT,recipeID:t.recipe_id,parentKind:R4.BLOCK,parentID:i.parentID,slot:R2.ITEMS,pathCode:i.pathCode,order:LG(n,eeE(n,e,i)??a)});return}let n=function(e,t){let i=R0(e,t);if(i&&Ir(i))return i.modifiers}(t,i.parentID);void 0!==n&&i.mutate({kind:R5.SLOT,recipeID:t.recipe_id,parentKind:R4.BLOCK,parentID:i.parentID,slot:R2.MODIFIERS,order:function(e,t){let i=new Map;for(let t of e)i.set(t.id,t);let a=[];for(let e of t){let t=i.get(e);void 0!==t&&LV(t.id)&&a.push({id:t.id,kind:R6.MODIFIER,block_modifier_type:t.block_modifier_type})}return a}(n,a)})}(e,i,t):function(e,t,i){let a=eef(e.to.containerId),n=ee_(t,a,e.to.slot);if(void 0===n)return;let o=eef(e.dragged.entityId),r=n.slot===R2.CONTENT?t.recipe_id:a;i.mutate({kind:R5.MOVE,recipeID:t.recipe_id,entityID:o,toParentID:r,toPathCode:n.pathCode,toIndex:function(e,t,i,a,n){if(!0!==n.drawsDeferredLast||a.slot===R2.MODIFIERS)return;let o=eey(t,i,a.slot,a.pathCode);if(void 0!==o)return eek(o,e.orderedIdsInTarget,String(e.dragged.entityId),n.getBlocks())}(e,t,a,n,i)??e.toIndex})}(e,i,t)},evaluateDropAllowed:e=>{let i="modifier"===e.entityType,a=t.slot===R2.MODIFIERS;if(i!==a)return!1;let n=t.getRecipe(),o=R0(n,eef(e.entityId));if(void 0===o||eex(n,t.slot,t.parentID))return!1;let r=t.slot===R2.CONTENT?n.recipe_id:t.parentID;return eew(n,o,r,a?Ox.MODIFIERS:Ox.ITEMS,t.pathCode,t.getBlocks())},onDragStart:()=>{eeg(!0)},onDragEnd:()=>{eeg(!1)},animateCommit:!0,awaitRendered:()=>e.updateComplete.then(()=>void 0)})}(this.host,{container:a.container,getRecipe:this.liveRecipeReader,getBlocks:()=>this.blocksController.result.data,getIntegrations:()=>this.integrationsController.result.data,parentID:a.parentID,slot:a.slot,...void 0!==a.pathCode?{pathCode:a.pathCode}:{},...!0===a.drawsDeferredLast?{drawsDeferredLast:!0}:{},mutate:this.dispatchMutate,...void 0!==t?{group:t}:{}});this.installed.set(a.container,e)}for(let[e,t]of this.installed)i.has(e)||(t.hostDisconnected(),this.installed.delete(e))}}let eeI=rg({block_id:ry([o5(),oR()]),recipe:CV}).strict(),eeD=rg({recipeID:CH.shape.recipe_id,blockType:E1,blockID:ry([o5(),oR()]),temporaryID:T2}).strict();function eeA(e,t){let i=(t.violations??[]).map(e=>e.message);0!==i.length&&e.push({nodeType:t.type,id:t.id,messages:i})}function ee$(e,t=""){let i=""===t?`${e.nodeType} ${e.id}`:`${e.nodeType} ${e.id} ("${t}")`;return e.messages.map(e=>`- ${i}: ${e}`)}function eeO(e,t){return`${e} ${(0,lX.__)("Errors to fix:","uncanny-automator")} ${t}`}function eeR(e){return(0,lX.sprintf)((0,lX.__)("Help me fix the following errors in the recipe (ID %d).","uncanny-automator"),e)}function eeM(e){var t;let i=[...(t=function(e){let t=[];for(let i of e.flow.entry.triggers)eeA(t,i);return!function e(t,i){for(let a of i)if(eeA(t,a),Ir(a)){for(let e of a.modifiers)eeA(t,e);for(let i of a.paths)e(t,i.content)}}(t,e.flow.content),{root:(e.violations??[]).map(e=>e.message),nodes:t}}(e)).root.map(e=>`- ${e}`),...t.nodes.flatMap(e=>ee$(e))].join(` `);return eeO(e.title?(0,lX.sprintf)((0,lX.__)("Help me fix the following errors in the recipe %1$s (ID %2$d).","uncanny-automator"),String(e.title),e.recipe_id):eeR(e.recipe_id),i)}function eeL(e,t,i=""){return eeO(eeR(t),ee$(e,i).join(` `))}function eeN(e){let t=0;for(let i of e.paths)for(let e of i.content)t+=1,Ir(e)&&(t+=eeN(e));return t}rg({previousRecipe:Il,temporaryBlockID:oR()}).strict().readonly();let eeP={KEEP_CONTENT:"keep-content",DELETE_CONTENT:"delete-content"};rT(eeP);let eez=rp(rg({name:oR().min(1),stepsInside:o5().int().nonnegative(),requiredAncestorName:oR().min(1).optional()}).strict()).readonly(),eeU=rg({deleteContent:re()}).strict(),eeF=rg({}).strict(),eej={NORMAL:"normal",LOCKED:"locked",INHERITED:"inherited"};function eeB(e){return e.availability.status===Cc.UNAVAILABLE?eej.LOCKED:e.withinLockedAncestor?eej.INHERITED:eej.NORMAL}rT(eej),rg({availability:Cd,withinLockedAncestor:re()});let eeH=rg({block_modifier_id:ry([o5(),oR()]),recipe:CV}).strict(),eeV=rg({recipeID:CH.shape.recipe_id,modifierType:EE,modifierID:ry([o5(),oR()]),temporaryID:T2}).strict();rg({previousRecipe:Il,temporaryBlockModifierID:oR()}).strict().readonly();var eeq=a(1428),eeZ=a.n(eeq);let eeW=class extends ld{static{this.styles=sf`${sm(eeZ())}`}render(){return s1` <uas-button class="button" size="sm" color="transparent"> <uas-icon code="copy"></uas-icon> ${(0,lX.__)("Duplicate","uncanny-automator")} </uas-button> `}};eeW=function(e,t,i,a){var n,o=arguments.length,r=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(r=(o<3?n(r):o>3?n(t,i,r):n(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r}([lJ("uap-f-recipe-builder-flow-action-duplicate")],eeW);var eeG=a(1334),eeK=a.n(eeG);let eeY=class extends ld{static{this.styles=sf`${sm(eeK())}`}render(){return s1` <uas-button class="remove" size="sm" color="transparent"> <uas-icon code="trash"></uas-icon> ${(0,lX.__)("Delete","uncanny-automator")} </uas-button> `}};eeY=function(e,t,i,a){var n,o=arguments.length,r=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(r=(o<3?n(r):o>3?n(t,i,r):n(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r}([lJ("uap-f-recipe-builder-flow-action-delete")],eeY);var eeQ=a(9525),eeX=a.n(eeQ),eeJ=function(e,t,i,a){var n,o=arguments.length,r=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(r=(o<3?n(r):o>3?n(t,i,r):n(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r};let ee1=class extends ld{static{this.styles=sf`${sm(eeX())}`}render(){if(!this.recipeID||!this.entityID||!this.referenceName)return s3;let e=this.recipeTitle?(0,lX.sprintf)((0,lX.__)('Could you help me with "%1$s" (ID %2$s) from recipe "%3$s" (ID %4$d)?',"uncanny-automator"),String(this.referenceName),String(this.entityID),String(this.recipeTitle),this.recipeID):(0,lX.sprintf)((0,lX.__)('Could you help me with "%1$s" (ID %2$s) from recipe ID %3$d?',"uncanny-automator"),String(this.referenceName),String(this.entityID),this.recipeID);return s1` <uaai-f-agent-button size="sm" color="transparent" class="button" prompt=${String(e)} label=${String((0,lX.__)("Ask Uncanny Agent","uncanny-automator"))} ></uaai-f-agent-button> `}};eeJ([l0({attribute:!1})],ee1.prototype,"entityID",void 0),eeJ([l0({type:String,attribute:"reference-name"})],ee1.prototype,"referenceName",void 0),eeJ([H8({context:Jp})],ee1.prototype,"recipeID",void 0),eeJ([H8({context:Jh,subscribe:!0})],ee1.prototype,"recipeTitle",void 0),ee1=eeJ([lJ("uap-f-recipe-builder-flow-action-ai-help")],ee1);let ee0=["node-selector"],ee2={includeScore:!0,includeMatches:!1,threshold:.4,minMatchCharLength:3,keys:[{name:"code",weight:4},{name:"name",weight:3},{name:"details.description",weight:.5},{name:"details.short_description",weight:.5},{name:"details.taxonomies.tags",weight:2},{name:"sentence.short",weight:3},{name:"description",weight:.5}]},ee3={"INTEGRATION-UNMET-DEPENDENCIES":"integration-unmet-dependencies","INTEGRATION-READY":"integration-ready","INTEGRATION-IDOR-ATTACK-UNMET-DEPENDENCIES":"integration-idor-attack-unmet-dependencies","INTEGRATION-IDOR-ATTACK-UNSUPPORTED":"integration-idor-attack-unsupported"},ee4=rT(ee3),ee6={"ITEM-INTEGRATION-UNMET-DEPENDENCIES":"item-integration-unmet-dependencies","ITEM-UNMET-DEPENDENCIES":"item-unmet-dependencies","ITEM-READY":"item-ready"},ee5=rT(ee6),ee8={"BLOCK-UNMET-DEPENDENCIES":"block-unmet-dependencies","BLOCK-READY":"block-ready"},ee7=rT(ee8),ee9=rg({entity_type:SQ,can_perform_action:re()}),ete=rv("entity_type",[ee9.extend({entity_type:rT([SY.INTEGRATION]),scenario_id:ee4,integration_code:oR()}),ee9.extend({entity_type:rT([SY.ITEM]),scenario_id:ee5,integration_code:oR(),item_code:oR()}),ee9.extend({entity_type:rT([SY.BLOCK]),scenario_id:ee7,block_type:E1})],{error:"Event data does not match any of the required event structures. Please verify the entity_type property and its associated fields."}),ett=Ev.partial({has_status_toggle:!0}).extend({integration_code:oR(),entity_type:rT([SY.ITEM]),sortable_name:oR()}),eti=EW.and(rg({entity_type:rT([SY.INTEGRATION]),sortable_name:oR()})),eta=Ce.and(rg({entity_type:rT([SY.BLOCK]),sortable_name:oR()}));rg({integrations:rp(eti),items:rp(ett),blocks:rp(eta)}),rg({entity_type:SQ,entity_code:oR(),reason:oR()}).readonly();let etn=rg({scope:rV({input:[],output:kL.optional()}),searchQuery:rV({input:[],output:oR().optional()}),readyToUseOnly:rV({input:[],output:re()}),integrationCode:rV({input:[],output:oR().optional()}),parentItemID:rV({input:[],output:ry([o5(),oR()]).optional()}),parentPathCode:rV({input:[],output:oR().optional()}),recipeID:rV({input:[],output:o5().optional()})}),eto=rg({key:oR().optional(),value:rn().optional(),indices:rp(rx([o5(),o5()])).readonly()}),etr=rg({score:o5().min(0).max(1).optional(),match:rp(eto).readonly().optional(),unsupported:oR().min(1,"Item `unsupported` cannot be empty.").optional()});rv("entity_type",[rg({entity_type:rT([SY.BLOCK]),data:eta}).extend(etr.shape),rg({entity_type:rT([SY.INTEGRATION]),data:eti}).extend(etr.shape),rg({entity_type:rT([SY.ITEM]),data:ett}).extend(etr.shape)]);let ets={INTEGRATIONS:"integrations",SEARCH:"search"};rT(ets),rg({id:oR(),title:oR(),integrations:rp(eti),blocks:rp(eta),is_autogenerated:re().default(!1)});let etl=rg({scope:rV({input:[],output:kL.optional()}),entityType:rV({input:[],output:SQ.optional()}),integrationCode:rV({input:[],output:oR().optional()}),blockType:rV({input:[],output:E1.optional()}),itemCode:rV({input:[],output:oR().optional()})});class etc{constructor(e,t){this.host=e,this.options=etl.parse(t),e.addController(this),this.integrationsController=new vE(e,{...$u(kM.ACTION),enabled:!1}),this.blocksController=new vE(e,{...Ac,enabled:!1})}hostUpdate(){let e=this.options.scope(),t=this.options.entityType(),i=this.options.blockType(),a=t===SY.BLOCK&&rK(i)&&!rY(i);if(this.blocksController.options.enabled!==a&&this.blocksController.setOptions({enabled:a}),(t===SY.ITEM||t===SY.INTEGRATION)&&rK(e)&&!rY(e)){let t=this.integrationsController.options.queryKey,i=$c.detail(e),a=JSON.stringify(t)!==JSON.stringify(i);(!this.integrationsController.options.enabled||a)&&this.integrationsController.setOptions({...$u(e),enabled:!0})}else this.integrationsController.options.enabled&&this.integrationsController.setOptions({enabled:!1})}get result(){let e=this.options.entityType();return e===SY.BLOCK?this.blocksController.result:e===SY.ITEM||e===SY.INTEGRATION?this.integrationsController.result:void 0}get dependencies(){let e=this.options.entityType();if(e===SY.BLOCK){let e=this.blocksController.result.data,t=this.options.blockType();if(!t||!e)return;let i=e[t];return i?.dependencies}let t=this.integrationsController.result.data,i=this.options.integrationCode();if(!i||!t)return;let a=t[i];if(!a)return;if(e===SY.INTEGRATION)return a.dependencies;let n=this.options.itemCode(),o=this.options.scope();if(e===SY.ITEM&&n&&o){let e=a.items?.[o]??a.block_modifiers?.[o];if(!e)return;let t=e[n];if(!t)return;return t.dependencies}}get integrationItems(){if(this.options.entityType()!==SY.INTEGRATION)return;let e=this.integrationsController.result.data,t=this.options.integrationCode();if(!t||!e)return;let i=e[t];if(!i)return;let a=this.options.scope();if(!a)return;let n=i.items?.[a]??i.block_modifiers?.[a];if(n)return Object.values(n)}maybeAdvanceToNextStep(e){let t=this.options.entityType();if(!t)return;let i=this.dependencies;if(!i?.all_met)return;let a=this.nextStepEventData(t);!a||"u">typeof window&&lw({element:e,eventName:"uap.f.recipe-builder.node-selector.step-request-change",data:a,schema:ete,options:{bubbles:!0,composed:!0}})}nextStepEventData(e){return e===SY.INTEGRATION?this.nextStepEventDataIntegration():e===SY.ITEM?this.nextStepEventDataItem():e===SY.BLOCK?this.nextStepEventDataBlock():void 0}nextStepEventDataIntegration(){let e=this.options.integrationCode();if(e)return{can_perform_action:!0,entity_type:SY.INTEGRATION,scenario_id:ee3["INTEGRATION-READY"],integration_code:e}}nextStepEventDataItem(){let e=this.options.integrationCode();if(!e)return;let t=this.options.itemCode();if(t)return{can_perform_action:!0,entity_type:SY.ITEM,scenario_id:ee6["ITEM-READY"],integration_code:e,item_code:t}}nextStepEventDataBlock(){let e=this.options.blockType();if(e)return{can_perform_action:!0,entity_type:SY.BLOCK,scenario_id:ee8["BLOCK-READY"],block_type:e}}refetch(){let e=this.options.entityType();return(dW.invalidateQueries({queryKey:ee0}),e===SY.BLOCK)?this.blocksController.refetch():e===SY.ITEM||e===SY.INTEGRATION?this.integrationsController.refetch():void 0}}var etd=a(1405),etu=a.n(etd),etp=function(e,t,i,a){var n,o=arguments.length,r=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(r=(o<3?n(r):o>3?n(t,i,r):n(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r};let eth=class extends ld{constructor(){super(...arguments),this.message="",this.readOnly=!1,this.integrationDependencies=new etc(this,{scope:()=>this.scope,entityType:()=>this.readOnly||this.entityType!==SY.ITEM?void 0:SY.INTEGRATION,integrationCode:()=>this.integrationCode,blockType:()=>void 0,itemCode:()=>void 0}),this.nodeDependencies=new etc(this,{scope:()=>this.scope,entityType:()=>this.readOnly?void 0:this.entityType,integrationCode:()=>this.integrationCode,blockType:()=>this.blockType,itemCode:()=>this.itemCode})}static{this.styles=sf`${sm(etu())}`}willUpdate(e){lQ(this,"entityType",SQ,e,"uap-f-recipe-builder-flow-lock-reason"),lQ(this,"scope",kL,e,"uap-f-recipe-builder-flow-lock-reason"),lQ(this,"integrationCode",EP.shape.code,e,"uap-f-recipe-builder-flow-lock-reason"),lQ(this,"itemCode",Eb.shape.code,e,"uap-f-recipe-builder-flow-lock-reason"),lQ(this,"blockType",E1,e,"uap-f-recipe-builder-flow-lock-reason")}render(){return s1` <uas-alert type="error" size="xs"> ${this.templateContent()} </uas-alert> `}templateContent(){let e;if(this.integrationDependencies.result?.isPending||this.nodeDependencies.result?.isPending)return s1`<uas-skeleton width="12em"></uas-skeleton>`;let t=[this.integrationDependencies.dependencies,this.nodeDependencies.dependencies],i=[...new Set(t.flatMap(e=>e?.items??[]).filter(e=>!e.is_met).map(e=>e.name))];return 0===i.length?s1`<uas-markdown allowed-tags="p,ul,ol,li,strong,em,a" .content=${this.message}></uas-markdown>`:this.message&&(e=t.flatMap(e=>e?.items??[]).filter(e=>!e.is_met)).length>0&&e.every(e=>e.type===kv.LICENSE&&String(e.scenario_id).startsWith("license-requires-pro-installed-license-"))?this.templateResolvable(this.message,"p,strong,em,a"):this.templateResolvable(function(e,t=function(e="u"<typeof document?"":document.documentElement.lang){let t=e.split("-");for(;t.length>0;)try{return Intl.getCanonicalLocales(t.join("-"))[0]}catch{t.pop()}}()){let i=new Intl.ListFormat(t,{style:"long",type:"conjunction"}).format(e.map(e=>`**${e}**`));return(0,lX.sprintf)((0,lX.__)("Needs %s to run.","uncanny-automator"),i)}(i),"strong")}templateResolvable(e,t){return s1` <div class="lock-reason"> <uas-markdown class="lock-reason__sentence" allowed-tags=${t} .content=${e} ></uas-markdown> <uas-button color="secondary" size="xs" @click=${this.onResolveClick}> ${(0,lX._x)("Resolve dependencies","Recipe node availability","uncanny-automator")} </uas-button> </div> `}onResolveClick(){var e,t;let i;if(this.entityType===SY.BLOCK&&this.blockType){window.location.hash=(e=this.blockType,`${Nr}/block/${encodeURIComponent(e)}`);return}this.scope&&this.integrationCode&&this.itemCode&&(window.location.hash=(t=this.scope,i=[t,this.integrationCode,this.itemCode].map(encodeURIComponent).join("/"),`${Nr}/item/${i}`))}};etp([l0({type:String})],eth.prototype,"entityType",void 0),etp([l0({type:String})],eth.prototype,"scope",void 0),etp([l0({type:String})],eth.prototype,"integrationCode",void 0),etp([l0({type:String})],eth.prototype,"itemCode",void 0),etp([l0({type:String})],eth.prototype,"blockType",void 0),etp([l0({type:String})],eth.prototype,"message",void 0),etp([l0({type:Boolean,attribute:"read-only"})],eth.prototype,"readOnly",void 0),eth=etp([lJ("uap-f-recipe-builder-flow-lock-reason")],eth);var etg=a(2869),etm=a.n(etg),etf=function(e,t,i,a){var n,o=arguments.length,r=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(r=(o<3?n(r):o>3?n(t,i,r):n(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r};let ety=class extends ld{constructor(){super(...arguments),this.withinLockedAncestor=!1,this.readOnly=!1,this.hasDragHandle=!1,this.deleteMutation=new vm(this,NR()),this.duplicateMutation=new vm(this,{meta:{recipeSave:!0},mutationFn:async e=>{var t,i;let a=eeV.parse(e);return t=a.recipeID,i=a.modifierType,dV({endpoint:`recipe/${t}/block-modifier/${i}/duplicate`,responseSchema:eeH,eventName:"uap.d.recipe.block-modifier.duplicated",method:"POST",data:{block_modifier_id:a.modifierID},useEnvelope:!0})},onMutate:async e=>{let{parsed:t,previousRecipe:i,queryKey:a}=await LA(eeV,e),n=R0(i,t.modifierID);if(!n||!It(n))throw Error(`duplicateBlockModifier: modifier ${t.modifierID} not found in recipe`);let o=Lm(n,t.temporaryID),r=LT(i,t.modifierID,o);return dW.setQueryData(a,r),{previousRecipe:i,temporaryBlockModifierID:t.temporaryID}},onError:(e,t,i)=>{let a=eeV.parse(t),n=Ae.detail(a.recipeID);if(i?.temporaryBlockModifierID){let e=i.temporaryBlockModifierID;dW.setQueryData(n,t=>t?L$(t,e):i.previousRecipe)}console.error("[duplicateBlockModifier] Mutation failed, rolled back optimistic duplicate:",e)},onSuccess:(e,t,i)=>{let a=eeV.parse(t),n=Ae.detail(a.recipeID),o=i?.temporaryBlockModifierID;dW.setQueryData(n,t=>{if(!t||!o)return e.recipe;let i=R0(e.recipe,e.block_modifier_id);return i?LD(LL(t,o,i),e.recipe):e.recipe}),console.log(`[duplicateBlockModifier] Modifier duplicated successfully with ID: ${e.block_modifier_id}`)},onSettled:(e,t,i,a)=>{dW.invalidateQueries({queryKey:Ae.detail(i.recipeID)})}}),this.integrationsController=new vE(this,SS)}static{this.styles=sf`${sm(etm())}`}get lockState(){return this.blockModifier?eeB({availability:this.blockModifier.availability,withinLockedAncestor:this.withinLockedAncestor}):eej.NORMAL}get unavailableMessage(){return this.blockModifier&&this.blockModifier.availability.status===Cc.UNAVAILABLE?this.blockModifier.availability.message:""}get canDuplicate(){return void 0!==this.blockModifier&&!T3(this.blockModifier.id)&&this.lockState!==eej.LOCKED}onDuplicateClick(){if(!this.blockModifier||!this.recipeID||T3(this.blockModifier.id)||this.readOnly)return;let e=Mm();this.duplicateMutation.mutateAsync({recipeID:this.recipeID,modifierType:this.blockModifier.block_modifier_type,modifierID:this.blockModifier.id,temporaryID:e}).catch(e=>{console.error("[uap-f-recipe-builder-flow-block-modifier] duplicate mutation failed:",e)}),lw({element:this,eventName:eed,data:{entityID:e},schema:eeu,options:{bubbles:!0,composed:!0}})}render(){if(!this.blockModifier)return s1`<div class="flow-block-modifier flow-block-modifier--empty"></div>`;let e=this.lockState,t=[e===eej.LOCKED?"flow-block-modifier--locked":e===eej.INHERITED?"flow-block-modifier--inherited":"",this.readOnly?"flow-block-modifier--readonly":""].join(" ");return s1` <div class="flow-block-modifier ${t}" data-type="${this.blockModifier.block_modifier_type}" ?data-uap-drag-surface=${this.hasDragHandle} > <slot name="drag-handle" class="flow-block-modifier__drag-handle" @slotchange=${this.onDragHandleSlotChange} ></slot> <button type="button" class="flow-block-modifier__trigger" ?disabled=${e===eej.LOCKED||this.readOnly} @click=${this.onEditClick} > ${this.templateIcon()} ${this.templateSentence()} </button> ${this.templateOptions()} ${this.templateNotices()} </div> `}onDragHandleSlotChange(e){e.target instanceof HTMLSlotElement&&(this.hasDragHandle=e.target.assignedElements().length>0)}templateIcon(){return this.blockModifier?s1` <uap-d-integrations-icon class="flow-block-modifier__icon" code=${this.blockModifier.integration_code} size="xs" ></uap-d-integrations-icon> `:s3}templateSentence(){return this.blockModifier?this.integrationsController.result.isPending?s1` <div class="flow-block-modifier__sentence"> <div class="flow-block-modifier__chips"> <uas-skeleton width="5em"></uas-skeleton> </div> <uap-d-recipe-sentence is-loading></uap-d-recipe-sentence> </div> `:s1` <div class="flow-block-modifier__sentence"> ${this.templateChips()} ${this.templateSentenceBody()} </div> `:s3}templateChips(){let e=this.integrationDisplayName,t=this.blockModifier?.tags??[];return""===e&&0===t.length?s3:s1` <div class="flow-block-modifier__chips"> ${""!==e?s1`<uas-chip size="xs" label=${e} filled></uas-chip>`:s3} ${t.map(e=>s1` <uap-d-integrations-tag .type=${e.type} .scenarioID=${e.scenario_id} .label=${e.label} .icon=${e.icon} .color=${e.color} .helper=${e.helper} size="xs" ></uap-d-integrations-tag> `)} </div> `}get integrationDisplayName(){if(!this.blockModifier)return"";let e=this.integrationsController.result.data?.[this.blockModifier.integration_code]?.name;return void 0!==e&&""!==e?e:this.blockModifier.last_known_integration_name??""}templateSentenceBody(){if(!this.blockModifier)return s3;let e=this.blockModifier.custom_name??"",t=""!==e;return""===this.catalogSentenceTemplate?t?s1`<span class="flow-block-modifier__custom-name">${e}</span>`:s3:t?s1` <span class="flow-block-modifier__custom-name">${e}</span> <div class="flow-block-modifier__sub-sentence"> <uap-d-recipe-sentence size="xs" .recipeID=${this.recipeID} .template=${this.catalogSentenceTemplate} .fields=${this.blockModifier.fields} ></uap-d-recipe-sentence> </div> `:s1` <uap-d-recipe-sentence .recipeID=${this.recipeID} .template=${this.catalogSentenceTemplate} .fields=${this.blockModifier.fields} ></uap-d-recipe-sentence> `}templateNotices(){let e=this.templateLockReason(),t=this.templateViolationNotices();return e===s3&&t===s3?s3:s1` <div class="flow-block-modifier__notices" data-uap-drag-ignore> ${e} ${t} </div> `}templateLockReason(){return this.blockModifier&&this.lockState===eej.LOCKED?s1` <uap-f-recipe-builder-flow-lock-reason class="flow-block-modifier__lock-reason" .entityType=${SY.ITEM} .scope=${this.blockModifier.block_modifier_type} .integrationCode=${this.blockModifier.integration_code} .itemCode=${this.blockModifier.code} .message=${this.unavailableMessage} ?read-only=${this.readOnly} ></uap-f-recipe-builder-flow-lock-reason> `:s3}templateViolationNotices(){return this.blockModifier&&void 0!==this.blockModifier.violations&&0!==this.blockModifier.violations.length?s1` ${this.blockModifier.violations.map(e=>s1` <uas-alert class="flow-block-modifier__violation-reason" type="error" size="xs"> <div class="flow-block-modifier__violation-row"> <uas-markdown allowed-tags="strong,em,a" .content=${e.message}></uas-markdown> ${this.templateViolationAgentButton()} </div> </uas-alert> `)} `:s3}templateViolationAgentButton(){if(!this.blockModifier||void 0===this.recipeID||void 0===this.blockModifier.violations)return s3;let e=this.blockModifier.custom_name??"",t=""!==e?e:this.integrationDisplayName,i=eeL({nodeType:this.blockModifier.type,id:this.blockModifier.id,messages:this.blockModifier.violations.map(e=>e.message)},this.recipeID,t);return s1` <uaai-f-agent-button size="xs" color="secondary" prompt=${String(i)} label=${String((0,lX.__)("Fix with Uncanny Agent","uncanny-automator"))} ></uaai-f-agent-button> `}templateOptions(){if(!this.blockModifier||this.readOnly)return s3;let e=this.blockModifier.custom_name??"",t=""!==e?e:this.integrationDisplayName;return s1` <div class="flow-block-modifier__actions"> <uas-button-dropdown placement="bottom-end" class="dropdown" data-uap-drag-ignore> <uas-button slot="trigger" class="flow-block-modifier__options-trigger" color="transparent" size="sm" aria-label=${String((0,lX.__)("Modifier options","uncanny-automator"))} > <uas-icon code="ellipsis-vertical"></uas-icon> </uas-button> <div class="buttons"> <uap-f-recipe-builder-flow-action-ai-help .entityID=${this.blockModifier.id} .referenceName=${t} ></uap-f-recipe-builder-flow-action-ai-help> ${this.canDuplicate?s1` <uap-f-recipe-builder-flow-action-duplicate @click=${this.onDuplicateClick} ></uap-f-recipe-builder-flow-action-duplicate> `:s3} <uap-f-recipe-builder-flow-action-delete @click=${this.onDeleteClick} ></uap-f-recipe-builder-flow-action-delete> </div> </uas-button-dropdown> </div> `}get catalogItem(){if(this.blockModifier)return $b(this.integrationsController.result.data,this.blockModifier.integration_code,this.blockModifier.block_modifier_type,this.blockModifier.code)}get catalogSentenceTemplate(){return this.catalogItem?.sentence?.dynamic??""}onEditClick(e){!this.blockModifier||!this.recipeID||this.readOnly||this.lockState===eej.LOCKED||T3(this.blockModifier.id)||(window.location.hash=Nf(this.blockModifier.type,this.blockModifier.id))}async onDeleteClick(e){if(this.blockModifier&&this.recipeID&&void 0!==this.parentBlockID&&!this.readOnly){try{await lp({heading:(0,b4.escapeHTML)((0,lX.__)("Delete modifier","uncanny-automator")),content:(0,lX.__)("This removes the modifier from the block.","uncanny-automator"),confirmButtonLabel:(0,lX.__)("Delete","uncanny-automator")})}catch{return}this.blockModifier&&this.recipeID&&void 0!==this.parentBlockID&&this.deleteMutation.mutateAsync({recipeID:this.recipeID,modifierType:this.blockModifier.block_modifier_type,modifierID:this.blockModifier.id,parentBlockID:this.parentBlockID})}}};etf([l0({attribute:!1})],ety.prototype,"blockModifier",void 0),etf([l0({type:Number,attribute:"recipe-id"})],ety.prototype,"recipeID",void 0),etf([l0({attribute:!1})],ety.prototype,"parentBlockID",void 0),etf([l0({type:Boolean,attribute:"within-locked-ancestor"})],ety.prototype,"withinLockedAncestor",void 0),etf([l0({type:Boolean,attribute:"read-only"})],ety.prototype,"readOnly",void 0),etf([l2()],ety.prototype,"hasDragHandle",void 0),ety=etf([lJ("uap-f-recipe-builder-flow-block-modifier")],ety);var etb=a(1426),etv=a.n(etb),et_=function(e,t,i,a){var n,o=arguments.length,r=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(r=(o<3?n(r):o>3?n(t,i,r):n(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r};let etw=class extends ld{constructor(){super(...arguments),this.stepCount=0,this.deletedAnywaySteps=[],this.mode=eeP.KEEP_CONTENT}static{this.styles=sf`${sm(etv())}`}get deletedAnywayCount(){return this.deletedAnywaySteps.reduce((e,t)=>e+1+t.stepsInside,0)}get movedCount(){return Math.max(this.stepCount-this.deletedAnywayCount,0)}render(){if(void 0===this.catalogBlock)return s1``;let e=(0,lX.sprintf)((0,lX.__)("Delete %s?","uncanny-automator"),this.catalogBlock.name);return s1` <uas-dialog heading=${(0,b4.escapeHTML)(e)} size="lg" open @uas.dialog.close=${this.onDialogClose} @keydown=${this.onKeydown} > <div class="block-delete-dialog"> <p class="block-delete-dialog__intro"> ${(0,lX.sprintf)((0,lX._n)("It has %d step inside. What should happen to it?","It has %d steps inside. What should happen to them?",this.stepCount,"uncanny-automator"),this.stepCount)} </p> <div class="block-delete-dialog__options" role="radiogroup" aria-label=${String(e)} > ${this.templateOption(eeP.KEEP_CONTENT)} ${this.templateOption(eeP.DELETE_CONTENT)} </div> ${this.templateDeletedAnywayNotice()} </div> <uas-button slot="primary-action" color=${(this.mode===eeP.DELETE_CONTENT?"danger":void 0)??s3} @click=${this.onConfirmClick} > ${this.confirmLabel()} </uas-button> <uas-button slot="secondary-action" dialog-action="close" color="secondary" > ${(0,lX.__)("Cancel","uncanny-automator")} </uas-button> </uas-dialog> `}templateOption(e){let t,i=e===eeP.KEEP_CONTENT;return s1` <label class="block-delete-dialog__option block-delete-dialog__option--${i?"keep":"delete"}"> <input class="block-delete-dialog__option-input" type="radio" name="block-delete-mode" .value=${e} .checked=${this.mode===e} @change=${()=>this.onModeChange(e)} > <span class="block-delete-dialog__option-illustration" aria-hidden="true"> ${t=e===eeP.KEEP_CONTENT,s0` <svg class="illustration illustration--${t?"keep":"delete"}" viewBox="-2 -2 278 100" width="278" height="100" focusable="false" > <g class="illustration__panel illustration__panel--before"> <rect class="illustration__card" x="0" y="0" width="116" height="18" rx="5" /> <rect class="illustration__block" x="0" y="24" width="116" height="72" rx="8" /> <rect class="illustration__card" x="9" y="40" width="98" height="18" rx="5" /> <rect class="illustration__card" x="9" y="66" width="98" height="18" rx="5" /> </g> <path class="illustration__arrow" d="M128 48 H146 M139.5 41.5 L146 48 L139.5 54.5" /> <g class="illustration__panel illustration__panel--after"> <rect class="illustration__card" x="158" y="0" width="116" height="18" rx="5" /> <g class="illustration__moving illustration__moving--${t?"arriving":"leaving"}"> <rect class="illustration__card" x="158" y="26" width="116" height="18" rx="5" /> <rect class="illustration__card" x="158" y="52" width="116" height="18" rx="5" /> </g> </g> </svg> `} </span> <span class="block-delete-dialog__option-title"> ${i?(0,lX._n)("Keep the step inside","Keep the steps inside",this.stepCount,"uncanny-automator"):(0,lX._n)("Delete the step inside","Delete the steps inside",this.stepCount,"uncanny-automator")} </span> <span class="block-delete-dialog__option-description"> ${i?this.keepDescription():this.deleteDescription()} </span> ${i?this.templatePathNote():s3} </label> `}keepDescription(){let e=this.catalogBlock?.name??"";return 0===this.deletedAnywayCount?(0,lX.sprintf)((0,lX._n)("The %1$s is removed and its %2$d step moves up to where it was.","The %1$s is removed and its %2$d steps move up to where it was.",this.stepCount,"uncanny-automator"),e,this.stepCount):0===this.movedCount?(0,lX.sprintf)((0,lX._n)("The %1$s is removed and its %2$d step is deleted too.","The %1$s is removed and all %2$d of its steps are deleted too.",this.stepCount,"uncanny-automator"),e,this.stepCount):(0,lX.sprintf)((0,lX._n)("The %1$s is removed and %2$d of its %3$d steps moves up to where it was.","The %1$s is removed and %2$d of its %3$d steps move up to where it was.",this.movedCount,"uncanny-automator"),e,this.movedCount,this.stepCount)}deleteDescription(){return(0,lX.sprintf)((0,lX._n)("The %1$s and the %2$d step inside it are removed from the recipe.","The %1$s and all %2$d steps inside it are removed from the recipe.",this.stepCount,"uncanny-automator"),this.catalogBlock?.name??"",this.stepCount)}templatePathNote(){return(this.catalogBlock?.paths.length??0)<2||0===this.movedCount?s3:s1` <span class="block-delete-dialog__path-note"> ${(0,lX.__)("The paths are merged, so all their steps run one after the other, every time.","uncanny-automator")} </span> `}templateDeletedAnywayNotice(){if(this.mode!==eeP.KEEP_CONTENT||0===this.deletedAnywaySteps.length)return s3;let e=(0,lX.sprintf)((0,lX._n)("%d step will be deleted anyway","%d steps will be deleted anyway",this.deletedAnywayCount,"uncanny-automator"),this.deletedAnywayCount);return s1` <uas-alert class="block-delete-dialog__notice" type="warning" heading=${(0,b4.escapeHTML)(e)}> <ul> ${this.deletedAnywaySteps.map(e=>s1` <li>${this.deletedStepSentence(e)}</li> `)} </ul> </uas-alert> `}deletedStepSentence(e){let t=e.requiredAncestorName;return void 0===t?0===e.stepsInside?(0,lX.sprintf)((0,lX.__)("%1$s will be deleted because it cannot be used where the %2$s is.","uncanny-automator"),e.name,this.catalogBlock?.name??""):(0,lX.sprintf)((0,lX._n)("%1$s and the %2$d step inside it will be deleted because it cannot be used where the %3$s is.","%1$s and the %2$d steps inside it will be deleted because it cannot be used where the %3$s is.",e.stepsInside,"uncanny-automator"),e.name,e.stepsInside,this.catalogBlock?.name??""):0===e.stepsInside?(0,lX.sprintf)((0,lX.__)("%1$s will be deleted because it can only be used inside a %2$s.","uncanny-automator"),e.name,t):(0,lX.sprintf)((0,lX._n)("%1$s and the %2$d step inside it will be deleted because it can only be used inside a %3$s.","%1$s and the %2$d steps inside it will be deleted because it can only be used inside a %3$s.",e.stepsInside,"uncanny-automator"),e.name,e.stepsInside,t)}confirmLabel(){let e=this.catalogBlock?.name??"";return this.mode===eeP.KEEP_CONTENT?(0,lX.sprintf)((0,lX.__)("Delete %s","uncanny-automator"),e):(0,lX.sprintf)((0,lX._n)("Delete %1$s and its %2$d step","Delete %1$s and its %2$d steps",this.stepCount,"uncanny-automator"),e,this.stepCount)}onModeChange(e){this.mode=e}onConfirmClick(){lw({element:this,eventName:"uap.f.recipe-builder.flow.block.delete-dialog.confirm",data:{deleteContent:this.mode===eeP.DELETE_CONTENT},schema:eeU,options:{bubbles:!0,composed:!0}})}onDialogClose(){lw({element:this,eventName:"uap.f.recipe-builder.flow.block.delete-dialog.close",data:{},schema:eeF,options:{bubbles:!0,composed:!0}})}onKeydown(e){"Enter"===e.key&&(e.preventDefault(),this.dialogElement?.cancel())}};et_([l0({attribute:!1})],etw.prototype,"catalogBlock",void 0),et_([l0({type:Number,attribute:"step-count"})],etw.prototype,"stepCount",void 0),et_([l0({attribute:!1})],etw.prototype,"deletedAnywaySteps",void 0),et_([l2()],etw.prototype,"mode",void 0),et_([l4("uas-dialog")],etw.prototype,"dialogElement",void 0),etw=et_([lJ("uap-f-recipe-builder-flow-block-delete-dialog")],etw);let etx=rg({item_id:ry([o5(),oR()]),recipe:CV}).strict(),etk=rg({recipeID:CH.shape.recipe_id,itemType:kL,itemID:ry([o5(),oR()]),temporaryID:T2}).strict();rg({previousRecipe:Il,temporaryItemID:oR()}).strict().readonly();var etE=a(1670),etS=a.n(etE),etC=function(e,t,i,a){var n,o=arguments.length,r=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(r=(o<3?n(r):o>3?n(t,i,r):n(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r};let etT=class extends ld{constructor(){super(...arguments),this.loading=!1,this.allowDuplicate=!0,this.withinLockedAncestor=!1,this.readOnly=!1,this.preview=!1,this.hasDragHandle=!1,this.integrationsController=new vE(this,SS),this.setStatusMutation=new vm(this,{meta:{recipeSave:!0},mutationFn:async e=>{let t=L9.parse(e);return async function(e,t,i,a){try{return await dV({endpoint:`recipe/${e}/item/${t}/set-status`,responseSchema:L7,eventName:"uap.d.recipe.item.status-changed",method:"POST",data:{item_id:i,is_item_on:a},useEnvelope:!0})}catch(t){let e=LB(t);if(void 0!==e)throw e;throw t}}(t.recipeID,t.itemType,t.itemID,t.isItemOn)},onMutate:async e=>{var t,i;let{parsed:a,previousRecipe:n,queryKey:o}=await LA(L9,e),r=R0(n,a.itemID),s=r&&!Ir(r)&&r.type===kP.ITEM?r:void 0,l=(t=a.itemID,i=a.isItemOn,Lh(n,e=>{for(let a of e.flow.entry.triggers)if(a?.id===t)return void LP(a,i);if(!function e(t,i,a){for(let n of t)if(n){if(Ir(n)){for(let t of n.paths)if(e(t.content,i,a))return!0;continue}if(n.id===i)return LP(n,a),!0}return!1}(e.flow.content,t,i))throw Error(`setItemStatusByID: item with ID ${t} not found in recipe`)}));return dW.setQueryData(o,l),{previousRecipe:n,originalItem:s}},onError:(e,t,i)=>{let a=L9.parse(t),n=Ae.detail(a.recipeID);if(e instanceof Lj)return void dW.setQueryData(n,t=>{let n=Il.parse(e.recipe);return t?Lz(LD(i?.originalItem&&R0(t,a.itemID)?LL(t,a.itemID,i.originalItem):t,n),e.violations):Lz(n,e.violations)});if(!i?.originalItem)return void console.error("[setItemStatus] Mutation failed; nothing to roll back:",e);let o=i.originalItem,r=a.itemID;dW.setQueryData(n,e=>e?R0(e,r)?LL(e,r,o):e:i.previousRecipe),console.error("[setItemStatus] Mutation failed, rolled back optimistic update:",e)},onSuccess:(e,t,i)=>{let a=L9.parse(t),n=Ae.detail(a.recipeID),o=a.itemID;dW.setQueryData(n,t=>{if(!t)return e.recipe;let i=R0(e.recipe,o);return i?LD(LL(t,o,i),e.recipe):e.recipe}),console.log(`[setItemStatus] Item status updated successfully: ${o} -> ${a.isItemOn}`)},onSettled:(e,t,i,a)=>{t instanceof Lj||dW.invalidateQueries({queryKey:Ae.detail(i.recipeID)})}}),this.deleteMutation=new vm(this,L8()),this.duplicateMutation=new vm(this,{meta:{recipeSave:!0},mutationFn:async e=>{var t,i;let a=etk.parse(e);return t=a.recipeID,i=a.itemType,dV({endpoint:`recipe/${t}/item/${i}/duplicate`,responseSchema:etx,eventName:"uap.d.recipe.item.duplicated",method:"POST",data:{item_id:a.itemID},useEnvelope:!0})},onMutate:async e=>{let{parsed:t,previousRecipe:i,queryKey:a}=await LA(etk,e),n=R0(i,t.itemID);if(!n||!T8(n))throw Error(`duplicateItem: item ${t.itemID} not found in recipe`);let o=Lm(n,t.temporaryID),r=LT(i,t.itemID,o);return dW.setQueryData(a,r),{previousRecipe:i,temporaryItemID:t.temporaryID}},onError:(e,t,i)=>{let a=etk.parse(t),n=Ae.detail(a.recipeID);if(i?.temporaryItemID){let e=i.temporaryItemID;dW.setQueryData(n,t=>t?L$(t,e):i.previousRecipe)}console.error("[duplicateItem] Mutation failed, rolled back optimistic duplicate:",e)},onSuccess:(e,t,i)=>{let a=etk.parse(t),n=Ae.detail(a.recipeID),o=i?.temporaryItemID;dW.setQueryData(n,t=>{if(!t||!o)return e.recipe;let i=R0(e.recipe,e.item_id);return i?LD(LL(t,o,i),e.recipe):e.recipe}),console.log(`[duplicateItem] Item duplicated successfully with ID: ${e.item_id}`)},onSettled:(e,t,i,a)=>{dW.invalidateQueries({queryKey:Ae.detail(i.recipeID)})}})}static{this.styles=sf`${sm(etS())}`}get lockState(){return this.item?eeB({availability:this.item.availability,withinLockedAncestor:this.withinLockedAncestor}):eej.NORMAL}get unavailableMessage(){return this.item&&this.item.availability.status===Cc.UNAVAILABLE?this.item.availability.message:""}get canDuplicate(){return this.allowDuplicate&&void 0!==this.item&&!T3(this.item.id)&&this.lockState!==eej.LOCKED}get hasStatusToggle(){return this.catalogItem?.has_status_toggle!==!1}get isLive(){return!!this.item&&(this.item.is_item_on||!this.hasStatusToggle)}onDuplicateClick(){if(!this.item||!this.recipeID||T3(this.item.id)||this.readOnly)return;let e=Mm();this.duplicateMutation.mutateAsync({recipeID:this.recipeID,itemType:this.item.item_type,itemID:this.item.id,temporaryID:e}).catch(e=>{console.error("[uap-f-recipe-builder-flow-item] duplicate mutation failed:",e)}),lw({element:this,eventName:eed,data:{entityID:e},schema:eeu,options:{bubbles:!0,composed:!0}})}render(){if(this.loading)return this.templateSkeleton();if(!this.item)return s1`<div class="flow-item flow-item--empty"></div>`;let e=this.lockState,t=[e===eej.LOCKED?"flow-item--locked":e===eej.INHERITED?"flow-item--inherited":this.isLive||this.preview?"":"flow-item--muted",this.readOnly?"flow-item--readonly":""].join(" ");return s1` <div class="flow-item ${t}" data-type="${this.item.item_type}" ?data-uap-drag-surface=${this.hasDragHandle} > <slot name="drag-handle" class="flow-item__drag-handle" @slotchange=${this.onDragHandleSlotChange} ></slot> <button type="button" class="flow-item__trigger" ?disabled=${e===eej.LOCKED||this.readOnly} @click=${this.onEditClick} > ${this.templateIcon()} ${this.templateSentence()} </button> <div class="flow-item__controls"> ${this.templateOptions()} ${this.templateStatusToggle()} </div> ${this.templateNotices()} </div> `}onDragHandleSlotChange(e){e.target instanceof HTMLSlotElement&&(this.hasDragHandle=e.target.assignedElements().length>0)}templateSkeleton(){return s1` <div class="flow-item flow-item--loading" aria-hidden="true"> <div class="flow-item__trigger"> <uas-skeleton class="flow-item__icon" variant="circle" width="32px" height="32px"></uas-skeleton> <div class="flow-item__sentence"> <div class="flow-item__chips"> <uas-skeleton width="5em"></uas-skeleton> </div> <uap-d-recipe-sentence is-loading></uap-d-recipe-sentence> </div> </div> <div class="flow-item__controls"> <uas-skeleton variant="rectangle" width="2.5em" height="1em"></uas-skeleton> </div> </div> `}templateStatusToggle(){if(!this.item||this.readOnly||!this.hasStatusToggle)return s3;let e=T3(this.item.id),t=this.setStatusMutation.result.isPending,i=this.integrationsController.result.isPending,a=this.lockState,n=a===eej.LOCKED&&!this.item.is_item_on,o=e||t||i||a===eej.INHERITED||n,r=s1` <button type="button" role="switch" class="flow-item__status" data-uap-drag-ignore aria-checked=${this.item.is_item_on?"true":"false"} ?disabled=${o} @click=${this.onStatusToggle} > <span class="flow-item__status-track" aria-hidden="true"> <span class="flow-item__status-thumb"></span> </span> <span class="flow-item__status-label">${this.item.is_item_on?(0,lX.__)("On","uncanny-automator"):(0,lX.__)("Off","uncanny-automator")}</span> </button> `;return e?this.templateStatusTooltip(r,(0,lX.__)("This item is still saving. You can switch it on once saving finishes.","uncanny-automator")):n?this.templateStatusTooltip(r,(0,lX.__)("Resolve this item's dependencies to switch it on.","uncanny-automator")):r}templateStatusTooltip(e,t){return s1` <uas-tooltip placement="top"> <span class="flow-item__status-anchor" slot="target">${e}</span> ${t} </uas-tooltip> `}templateIcon(){return this.item?s1` <uap-d-integrations-icon class="flow-item__icon" code=${this.item.integration_code} variant="circle" size="md" ></uap-d-integrations-icon> `:s3}templateSentence(){return this.item?this.integrationsController.result.isPending?s1` <div class="flow-item__sentence"> <div class="flow-item__chips"> <uas-skeleton width="5em"></uas-skeleton> </div> <uap-d-recipe-sentence is-loading></uap-d-recipe-sentence> </div> `:s1` <div class="flow-item__sentence"> ${this.templateChips()} ${this.templateSentenceBody()} </div> `:s3}templateChips(){let e=this.integrationDisplayName,t=this.visibleTags;return""===e&&0===t.length?s3:s1` <div class="flow-item__chips"> ${""!==e?s1`<uas-chip size="xs" label=${e}></uas-chip>`:s3} ${t.map(e=>s1` <uap-d-integrations-tag .type=${e.type} .scenarioID=${e.scenario_id} .label=${e.label} .icon=${e.icon} .color=${e.color} .helper=${e.helper} size="xs" outlined ></uap-d-integrations-tag> `)} </div> `}get visibleTags(){return this.item?this.isLive||this.preview?this.item.tags:this.item.tags.filter(e=>e.type!==k5.TESTS):[]}get integrationDisplayName(){if(!this.item)return"";let e=this.integrationsController.result.data?.[this.item.integration_code]?.name;return void 0!==e&&""!==e?e:this.item.last_known_integration_name??""}templateSentenceBody(){if(!this.item)return s3;let e=this.item.custom_name??"",t=""!==e;return""===this.catalogSentenceTemplate?t?s1`<span class="flow-item__custom-name">${e}</span>`:s3:t?s1` <span class="flow-item__custom-name">${e}</span> <div class="flow-item__sub-sentence"> <uap-d-recipe-sentence size="xs" .recipeID=${this.recipeID} .template=${this.catalogSentenceTemplate} .fields=${this.item.fields} ></uap-d-recipe-sentence> </div> `:s1` <uap-d-recipe-sentence .recipeID=${this.recipeID} .template=${this.catalogSentenceTemplate} .fields=${this.item.fields} ></uap-d-recipe-sentence> `}templateNotices(){let e=this.templateLockReason(),t=this.templateViolationNotices();return e===s3&&t===s3?s3:s1` <div class="flow-item__notices" data-uap-drag-ignore> ${e} ${t} </div> `}templateLockReason(){return this.item&&this.lockState===eej.LOCKED?s1` <uap-f-recipe-builder-flow-lock-reason class="flow-item__lock-reason" .entityType=${SY.ITEM} .scope=${this.item.item_type} .integrationCode=${this.item.integration_code} .itemCode=${this.item.code} .message=${this.unavailableMessage} ?read-only=${this.readOnly} ></uap-f-recipe-builder-flow-lock-reason> `:s3}templateViolationNotices(){return this.item&&void 0!==this.item.violations&&0!==this.item.violations.length?s1` ${this.item.violations.map(e=>s1` <uas-alert class="flow-item__violation-reason" type="error" size="xs"> <div class="flow-item__violation-row"> <uas-markdown allowed-tags="strong,em,a" .content=${e.message}></uas-markdown> ${this.templateViolationAgentButton()} </div> </uas-alert> `)} `:s3}templateViolationAgentButton(){if(!this.item||void 0===this.recipeID||void 0===this.item.violations)return s3;let e=rY(this.item.custom_name)?this.catalogItem?.sentence?.short??"":this.item.custom_name,t=eeL({nodeType:this.item.type,id:this.item.id,messages:this.item.violations.map(e=>e.message)},this.recipeID,e);return s1` <uaai-f-agent-button size="xs" color="secondary" prompt=${String(t)} label=${String((0,lX.__)("Fix with Uncanny Agent","uncanny-automator"))} ></uaai-f-agent-button> `}templateOptions(){return!this.item||this.readOnly?s3:s1` <div class="flow-item__actions"> <uas-button-dropdown placement="bottom-end" class="dropdown" data-uap-drag-ignore> <uas-button slot="trigger" class="flow-item__options-trigger" color="transparent" size="sm" aria-label=${String((0,lX.__)("Item options","uncanny-automator"))} > <uas-icon code="ellipsis-vertical"></uas-icon> </uas-button> <div class="buttons"> <uap-f-recipe-builder-flow-action-ai-help .entityID=${this.item.id} .referenceName=${!rY(this.item.custom_name)?this.item.custom_name:this.catalogItem?.sentence?.short??""} ></uap-f-recipe-builder-flow-action-ai-help> ${this.canDuplicate?s1` <uap-f-recipe-builder-flow-action-duplicate @click=${this.onDuplicateClick} ></uap-f-recipe-builder-flow-action-duplicate> `:s3} <uap-f-recipe-builder-flow-action-delete @click=${this.onDeleteClick} ></uap-f-recipe-builder-flow-action-delete> </div> </uas-button-dropdown> </div> `}get catalogItem(){if(this.item)return $f(this.integrationsController.result.data,this.item.integration_code,this.item.item_type,this.item.code)}get catalogSentenceTemplate(){return this.catalogItem?.sentence?.dynamic??""}onEditClick(){!this.item||!this.recipeID||this.readOnly||T3(this.item.id)||this.lockState!==eej.LOCKED&&(window.location.hash=Nf(this.item.type,this.item.id))}async onDeleteClick(){if(this.item&&this.recipeID&&!this.readOnly){try{await lp({heading:(0,b4.escapeHTML)((0,lX.__)("Delete item","uncanny-automator")),content:(0,lX.__)("This removes the item from the recipe.","uncanny-automator"),confirmButtonLabel:(0,lX.__)("Delete","uncanny-automator")})}catch{return}this.item&&this.recipeID&&this.deleteMutation.mutateAsync({recipeID:this.recipeID,itemType:this.item.item_type,itemID:this.item.id,parentID:this.parentID??this.recipeID})}}onStatusToggle(){if(!this.item||!this.recipeID||this.readOnly||T3(this.item.id)||this.integrationsController.result.isPending)return;let e=this.lockState;e!==eej.INHERITED&&(e!==eej.LOCKED||this.item.is_item_on)&&this.hasStatusToggle&&(this.setStatusMutation.result.isPending||this.setStatusMutation.mutateAsync({recipeID:this.recipeID,itemType:this.item.item_type,itemID:this.item.id,isItemOn:!this.item.is_item_on}).catch(e=>{e instanceof Lj?ly({message:(0,b4.escapeHTML)((0,lX.__)("This item can't be switched on yet.","uncanny-automator")),color:"error",iconID:"xmark",duration:5e3}):console.error("[uap-f-recipe-builder-flow-item] setStatus mutation failed:",e)}))}};function etI(e,t,i,a){let n=`${Ni}/${e}/${encodeURIComponent(String(t))}`,o=void 0===i?n:`${n}/path/${encodeURIComponent(i)}`;return void 0===a?o:`${o}/at/${encodeURIComponent(String(a))}`}etC([l0({attribute:!1})],etT.prototype,"item",void 0),etC([l0({type:Number,attribute:"recipe-id"})],etT.prototype,"recipeID",void 0),etC([l0({attribute:!1})],etT.prototype,"parentID",void 0),etC([l0({type:Boolean,reflect:!0})],etT.prototype,"loading",void 0),etC([l0({type:Boolean})],etT.prototype,"allowDuplicate",void 0),etC([l0({type:Boolean,attribute:"within-locked-ancestor"})],etT.prototype,"withinLockedAncestor",void 0),etC([l0({type:Boolean,attribute:"read-only"})],etT.prototype,"readOnly",void 0),etC([l0({type:Boolean})],etT.prototype,"preview",void 0),etC([l2()],etT.prototype,"hasDragHandle",void 0),etT=etC([lJ("uap-f-recipe-builder-flow-item")],etT);var etD=function(e,t,i,a){var n,o=arguments.length,r=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(r=(o<3?n(r):o>3?n(t,i,r):n(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r};let etA=class extends ld{constructor(){super(...arguments),this.size=py.XS,this.color=pm.SECONDARY,this.disabled=!1}render(){if(this.scope&&this.parentItemID)return s1` <uas-button size=${this.size??s3} color=${this.color??s3} ?disabled=${this.disabled} @click=${this.handleClick} > <slot>${(0,lX.__)("Add","uncanny-automator")}</slot> </uas-button> `}handleClick(){!this.disabled&&this.scope&&this.parentItemID&&(document.dispatchEvent(new CustomEvent("uap.f.recipe-builder.node-selector.open",{detail:{scope:this.scope,parentItemID:this.parentItemID,pathCode:this.pathCode}})),window.location.hash=etI(this.scope,this.parentItemID,this.pathCode))}};etD([l0({type:String})],etA.prototype,"scope",void 0),etD([l0({attribute:"parent-item-id"})],etA.prototype,"parentItemID",void 0),etD([l0({attribute:"path-code"})],etA.prototype,"pathCode",void 0),etD([l0({type:String})],etA.prototype,"size",void 0),etD([l0({type:String})],etA.prototype,"color",void 0),etD([l0({type:Boolean})],etA.prototype,"disabled",void 0),etA=etD([lJ("uap-f-recipe-builder-node-selector-add-button")],etA);var et$=a(2464),etO=a.n(et$),etR=function(e,t,i,a){var n,o=arguments.length,r=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(r=(o<3?n(r):o>3?n(t,i,r):n(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r};let etM=class extends ld{constructor(){super(...arguments),this.withinLockedAncestor=!1,this.readOnly=!1,this.preview=!1,this.hasDragHandle=!1,this.headOnly=!1,this.frameHead=!1,this.isDeleteDialogOpen=!1,this.deleteStepCount=0,this.deleteDialogDeletedSteps=[],this.deleteMutation=new vm(this,NC()),this.duplicateMutation=new vm(this,{meta:{recipeSave:!0},mutationFn:async e=>{var t,i;let a=eeD.parse(e);return t=a.recipeID,i=a.blockType,dV({endpoint:`recipe/${t}/block/${i}/duplicate`,responseSchema:eeI,eventName:"uap.d.recipe.block.duplicated",method:"POST",data:{block_id:a.blockID},useEnvelope:!0})},onMutate:async e=>{let{parsed:t,previousRecipe:i,queryKey:a}=await LA(eeD,e),n=R0(i,t.blockID);if(!n||!Ir(n))throw Error(`duplicateBlock: block ${t.blockID} not found in recipe`);let o=Lm(n,t.temporaryID),r=LT(i,t.blockID,o);return dW.setQueryData(a,r),{previousRecipe:i,temporaryBlockID:t.temporaryID}},onError:(e,t,i)=>{let a=eeD.parse(t),n=Ae.detail(a.recipeID);if(i?.temporaryBlockID){let e=i.temporaryBlockID;dW.setQueryData(n,t=>t?L$(t,e):i.previousRecipe)}console.error("[duplicateBlock] Mutation failed, rolled back optimistic duplicate:",e)},onSuccess:(e,t,i)=>{let a=eeD.parse(t),n=Ae.detail(a.recipeID),o=i?.temporaryBlockID;dW.setQueryData(n,t=>{if(!t||!o)return e.recipe;let i=R0(e.recipe,e.block_id);return i?LD(LL(t,o,i),e.recipe):e.recipe}),console.log(`[duplicateBlock] Block duplicated successfully with ID: ${e.block_id}`)},onSettled:(e,t,i,a)=>{dW.invalidateQueries({queryKey:Ae.detail(i.recipeID)})}}),this.blocksController=new vE(this,Ac),this.integrationsController=new vE(this,SS),this.recipeController=new vE(this,{...Ai(-1),enabled:!1}),this.bindingsController=new eeT(this,{getGroup:()=>this.sortableGroup,getRecipe:()=>this.recipeController.result.data,getAnchors:()=>{if(void 0===this.block||void 0===this.recipeID||this.readOnly)return[];let e=this.block.id,t=[];for(let i of Array.from(this.pathContainers))t.push({container:i,parentID:e,slot:R2.ITEMS,pathCode:i.getAttribute("data-slot")??""});return null!==this.modifiersContainer&&t.push({container:this.modifiersContainer,parentID:e,slot:R2.MODIFIERS}),t}})}static{this.styles=sf`${sm(etO())}`}get canDuplicate(){return void 0!==this.block&&!T3(this.block.id)&&this.lockState!==eej.LOCKED}get lockState(){return this.block?eeB({availability:this.block.availability,withinLockedAncestor:this.withinLockedAncestor}):eej.NORMAL}get unavailableMessage(){return this.block&&this.block.availability.status===Cc.UNAVAILABLE?this.block.availability.message:""}get childWithinLocked(){return this.withinLockedAncestor||this.lockState===eej.LOCKED}onDuplicateClick(){if(!this.block||!this.recipeID||T3(this.block.id)||this.readOnly)return;let e=Mm();this.duplicateMutation.mutateAsync({recipeID:this.recipeID,blockType:this.block.block_type,blockID:this.block.id,temporaryID:e}).catch(e=>{console.error("[uap-f-recipe-builder-flow-block] duplicate mutation failed:",e)}),lw({element:this,eventName:eed,data:{entityID:e},schema:eeu,options:{bubbles:!0,composed:!0}})}willUpdate(e){e.has("recipeID")&&(void 0===this.recipeID?this.recipeController.options.enabled&&this.recipeController.setOptions({enabled:!1}):this.recipeController.setOptions({...Ai(this.recipeID),enabled:!0}))}render(){if(!this.block)return s1`<div class="flow-block flow-block--empty"></div>`;if(!this.catalogBlock)return this.lockState===eej.LOCKED?this.templateDegradedLockedBlock():this.templateUnknownBlock();let e=this.lockState,t=[e===eej.LOCKED?"flow-block--locked":e===eej.INHERITED?"flow-block--inherited":"",this.readOnly?"flow-block--readonly":"",this.frameHead?"flow-block--frame-head":""].join(" "),i=this.catalogBlock.details.primary_color,a=e===eej.LOCKED?{"--flow-block-color":"var( --uas--color--status-neutral-container )"}:{"--flow-block-color":`var( --uas--color--tag-${i}-container )`,"--flow-block-ink":`var( --uas--color--tag-on-${i}-container )`};return s1` <div class="flow-block ${t}" data-block-type="${this.block.block_type}" style=${cd(a)} > ${this.templateHead(this.catalogBlock)} ${this.templateModifiers(this.catalogBlock)} ${this.headOnly?s3:s1`<div class="flow-block__body">${this.templatePaths(this.catalogBlock)}</div>`} ${this.templateDeleteDialog()} </div> `}templateHead(e){return s1` <div class="flow-block__head" ?data-uap-drag-surface=${this.hasDragHandle}> <slot name="drag-handle" class="flow-block__drag-handle" @slotchange=${this.onDragHandleSlotChange}></slot> ${this.templateHeadTrigger(e)} ${this.templateHeadActions()} ${this.templateNotices()} </div> `}onDragHandleSlotChange(e){e.target instanceof HTMLSlotElement&&(this.hasDragHandle=e.target.assignedElements().length>0)}templateNotices(){let e=this.templateLockReason(),t=this.templateViolationNotices();return e===s3&&t===s3?s3:s1` <div class="flow-block__notices" data-uap-drag-ignore> ${e} ${t} </div> `}templateViolationNotices(){return this.block&&void 0!==this.block.violations&&0!==this.block.violations.length?s1` ${this.block.violations.map(e=>s1` <uas-alert class="flow-block__violation-reason" type="error" size="xs"> <div class="flow-block__violation-row"> <uas-markdown allowed-tags="strong,em,a" .content=${e.message}></uas-markdown> ${this.templateViolationAgentButton()} </div> </uas-alert> `)} `:s3}templateViolationAgentButton(){if(!this.block||void 0===this.recipeID||void 0===this.block.violations)return s3;let e=this.catalogBlock?.name??"",t=eeL({nodeType:this.block.type,id:this.block.id,messages:this.block.violations.map(e=>e.message)},this.recipeID,e);return s1` <uaai-f-agent-button size="xs" color="secondary" prompt=${String(t)} label=${String((0,lX.__)("Fix with Uncanny Agent","uncanny-automator"))} ></uaai-f-agent-button> `}templateHeadTrigger(e){return this.block?s1` <button type="button" class="flow-block__head-trigger" ?disabled=${this.lockState===eej.LOCKED||this.readOnly} @click=${this.onHeadClick} > <div class="flow-block__head-row"> <uap-d-recipe-block-icon code="${this.block.block_type}" variant="box" size="xs"></uap-d-recipe-block-icon> <uap-d-recipe-block-name code="${this.block.block_type}" no-icon></uap-d-recipe-block-name> ${this.templateChips()} </div> ${this.templateHeadSentence(e)} </button> `:s1``}templateChips(){let e=this.block?.tags??[];return 0===e.length?s3:s1` <div class="flow-block__chips"> ${e.map(e=>s1` <uap-d-integrations-tag .type=${e.type} .scenarioID=${e.scenario_id} .label=${e.label} .icon=${e.icon} .color=${e.color} .helper=${e.helper} size="xs" ></uap-d-integrations-tag> `)} </div> `}templateLockReason(){return this.lockState!==eej.LOCKED?s3:s1` <uap-f-recipe-builder-flow-lock-reason class="flow-block__lock-reason" .entityType=${SY.BLOCK} .blockType=${this.block?.block_type} .message=${this.unavailableMessage} ?read-only=${this.readOnly} ></uap-f-recipe-builder-flow-lock-reason> `}templateHeadSentence(e){let t=RG(e.sentence,this.block?.fields??{});return""===t?s3:s1` <div class="flow-block__head-sentence"> <uap-d-recipe-sentence .recipeID=${this.recipeID} .template=${t} .fields=${this.block?.fields??{}} ></uap-d-recipe-sentence> </div> `}templateHeadActions(){return this.readOnly?s3:s1` <div class="flow-block__head-actions"> <uas-button-dropdown placement="bottom-end" class="dropdown" data-uap-drag-ignore> <uas-button slot="trigger" class="flow-block__options-trigger" color="transparent" size="sm" aria-label=${String((0,lX.__)("Block options","uncanny-automator"))} > <uas-icon code="ellipsis-vertical"></uas-icon> </uas-button> <div class="buttons"> <uap-f-recipe-builder-flow-action-ai-help .entityID=${this.block?.id} .referenceName=${this.catalogBlock?.name??""} ></uap-f-recipe-builder-flow-action-ai-help> ${this.canDuplicate?s1` <uap-f-recipe-builder-flow-action-duplicate @click=${this.onDuplicateClick} ></uap-f-recipe-builder-flow-action-duplicate> `:s3} <uap-f-recipe-builder-flow-action-delete @click=${this.onDeleteClick} ></uap-f-recipe-builder-flow-action-delete> </div> </uas-button-dropdown> </div> `}templateModifiers(e){if(void 0===e.modifiers)return s3;let t=this.block?.modifiers??[],i=(e.modifiers?.types?.length??0)>0;if(0===t.length&&!i)return s3;let a=0===t.length,n=this.templateAddModifier(e),o=a&&this.headOnly;return s1` <div class="flow-block__modifiers"> <div class="${a?"flow-block__modifiers-list flow-block__modifiers-list--empty":"flow-block__modifiers-list"}" data-container-id="${this.block?.id??""}" data-slot="modifiers" > ${a?s1` <span class="flow-block__modifiers-empty-label"> ${(0,lX.__)("No modifiers in this block","uncanny-automator")} </span> ${o&&n!==s3?s1`<div class="flow-block__modifiers-empty-add">${n}</div>`:s3} `:$A(t,e=>e.id,e=>s1` <uap-f-recipe-builder-flow-block-modifier data-entity-id="${e.id}" data-entity-type="modifier" data-entity-code="${e.block_modifier_type}" .blockModifier=${e} .recipeID=${this.recipeID} .parentBlockID=${this.block?.id} ?within-locked-ancestor=${this.childWithinLocked} ?read-only=${this.readOnly} > ${this.readOnly||e.availability.status===Cc.UNAVAILABLE?s3:this.templateDragHandle()} </uap-f-recipe-builder-flow-block-modifier> `)} </div> ${o?s3:s1`<div class="flow-block__add-modifier">${n}</div>`} </div> `}templateAddModifier(e){let t=e.modifiers?.types?.[0]?.id;return void 0===t||!this.block||this.lockState!==eej.NORMAL||this.readOnly?s3:s1` <uap-f-recipe-builder-node-selector-add-button scope=${t} parent-item-id=${this.block.id} > ${(0,lX.__)("Add modifier","uncanny-automator")} </uap-f-recipe-builder-node-selector-add-button> `}templatePaths(e){let t=e.paths??[];if(0===t.length)return s3;let i=this.groupItemsByPath(e),a=1===t.length;return s1` <div class="flow-block__paths"> ${$A(t,e=>e.path_code,e=>this.templatePath(e,i.get(e.path_code)??[],a))} </div> `}templatePath(e,t,i){return s1` <section class="flow-block__path ${i?"flow-block__path--bare":""}" data-path-code="${e.path_code}" data-direction="${e.direction}" style=${i?s3:cd({"--flow-block-path-color":e.primary_color?`var(--uas--color--tag-${e.primary_color}-container, currentColor)`:"currentColor"})} > ${i?s3:s1` <header class="flow-block__path-header"> <span class="flow-block__path-name">${e.name}</span> </header> `} ${this.templatePathItems(t,e.path_code)} ${this.templateAddPathItem(e.path_code)} </section> `}templatePathItems(e,t){let i=0===e.length;return s1` <div class="${i?"flow-block__path-items flow-block__path-items--empty":"flow-block__path-items"}" data-container-id="${this.block?.id??""}" data-slot="${t}" > ${i?s1` <span class="flow-block__path-empty-label"> ${(0,lX.__)("No items in this path yet","uncanny-automator")} </span> `:$A(e,e=>e.id,e=>Ir(e)?s1` <uap-f-recipe-builder-flow-block data-entity-id="${e.id}" data-entity-type="block" data-entity-code="${e.block_type}" .block=${e} .recipeID=${this.recipeID} .parentID=${this.block?.id} ?within-locked-ancestor=${this.childWithinLocked} ?read-only=${this.readOnly} ?preview=${this.preview} > ${this.readOnly||e.availability.status===Cc.UNAVAILABLE?s3:this.templateDragHandle()} </uap-f-recipe-builder-flow-block> `:s1` <uap-f-recipe-builder-flow-item data-entity-id="${e.id}" data-entity-type="item" data-entity-code="${e.item_type}" .item=${e} .recipeID=${this.recipeID} .parentID=${this.block?.id} ?within-locked-ancestor=${this.childWithinLocked} ?read-only=${this.readOnly} ?preview=${this.preview} > ${this.readOnly||e.availability.status===Cc.UNAVAILABLE?s3:this.templateDragHandle()} </uap-f-recipe-builder-flow-item> `)} </div> `}templateAddPathItem(e){return!this.block||this.lockState!==eej.NORMAL||this.readOnly?s3:s1` <uap-f-recipe-builder-node-selector-add-button scope=${kM.ACTION} parent-item-id=${this.block.id} path-code=${e} > ${(0,lX.__)("Add","uncanny-automator")} </uap-f-recipe-builder-node-selector-add-button> `}groupItemsByPath(e){let t=new Map;for(let i of e.paths??[])t.set(i.path_code,[]);if(!this.block)return t;for(let e of this.block.paths)t.has(e.path_code)&&t.set(e.path_code,e.content);return t}templateUnknownBlock(){let e=this.block?.block_type??"",t=(0,lX.sprintf)((0,lX.__)("Unknown block type: %s. The catalog returned no definition for this code.","uncanny-automator"),e);return s1` <div class="flow-block flow-block--unknown" data-block-type="${e}"> <header class="flow-block__head"> <span class="flow-block__type">${e}</span> </header> <p class="flow-block__unknown-warning">${t}</p> </div> `}templateDegradedLockedBlock(){let e=this.block?.block_type??"";return s1` <div class="flow-block flow-block--locked" data-block-type="${e}" style=${cd({"--flow-block-color":"var( --uas--color--status-neutral-container )"})} > <div class="flow-block__head" ?data-uap-drag-surface=${this.hasDragHandle}> <slot name="drag-handle" class="flow-block__drag-handle" @slotchange=${this.onDragHandleSlotChange}></slot> <button type="button" class="flow-block__head-trigger" disabled> <div class="flow-block__head-row"> <span class="flow-block__type">${e}</span> ${this.templateChips()} </div> </button> ${this.templateHeadActions()} ${this.templateNotices()} </div> <div class="flow-block__body"> ${this.templateDegradedModifiers()} ${this.headOnly?s3:this.templateDegradedPaths()} </div> </div> `}templateDegradedModifiers(){let e=this.block?.modifiers??[];return 0===e.length?s3:s1` <div class="flow-block__modifiers"> <div class="flow-block__modifiers-list" data-container-id="${this.block?.id??""}" data-slot="modifiers" > ${$A(e,e=>e.id,e=>s1` <uap-f-recipe-builder-flow-block-modifier data-entity-id="${e.id}" data-entity-type="modifier" data-entity-code="${e.block_modifier_type}" .blockModifier=${e} .recipeID=${this.recipeID} .parentBlockID=${this.block?.id} ?within-locked-ancestor=${this.childWithinLocked} ?read-only=${this.readOnly} > ${this.readOnly||e.availability.status===Cc.UNAVAILABLE?s3:this.templateDragHandle()} </uap-f-recipe-builder-flow-block-modifier> `)} </div> </div> `}templateDegradedPaths(){let e=this.block?.paths??[];return 0===e.length?s3:s1` <div class="flow-block__paths"> ${$A(e,e=>e.path_code,e=>s1` <section class="flow-block__path flow-block__path--bare" data-path-code="${e.path_code}"> ${this.templatePathItems(e.content,e.path_code)} </section> `)} </div> `}get catalogBlock(){let e=this.blocksController.result.data;return e?.[this.block?.block_type??""]}templateDragHandle(){return s1`<button type="button" slot="drag-handle" data-uap-drag-handle aria-label=${String((0,lX.__)("Drag to reorder","uncanny-automator"))} > <uas-icon code="grip-dots-vertical"></uas-icon> </button>`}onHeadClick(){this.recipeID&&this.block&&this.catalogBlock&&this.lockState!==eej.LOCKED&&!this.readOnly&&(T3(this.block.id)||(window.location.hash=Nf(this.block.type,this.block.id)))}async onDeleteClick(){if(!this.recipeID||!this.block||this.readOnly)return;let e=eeN(this.block);if(0===e)return void this.runDeleteMutation(!0);if(void 0===this.catalogBlock)return void await this.confirmAndDelete((0,b4.escapeHTML)((0,lX.__)("Delete block","uncanny-automator")),(0,lX.__)("This removes the block and everything inside it.","uncanny-automator"));let t=this.recipeController.result.data,i=this.blocksController.result.data;if(void 0===t||void 0===i)return;let a=LC(t,this.block.id);void 0!==a&&(this.deleteStepCount=e,this.deleteDialogDeletedSteps=function(e,t,i,a){let n=[];for(let o of t.deletedSteps){let t=R0(e,o.stepID);if(void 0===t||!Ir(t)&&!T8(t))continue;let r=o.requiredAncestor,s=void 0===r?void 0:i[r.entity_code]?.name??r.entity_code;if(Ir(t)){n.push({name:i[t.block_type]?.name??t.block_type,stepsInside:eeN(t),requiredAncestorName:s});continue}n.push({name:function(e,t){if(!rY(e.custom_name))return e.custom_name;let i=($f(t,e.integration_code,e.item_type,e.code)?.sentence?.short??"").replace(/\{\{|\}\}/g,"").trim();return""===i?e.code:i}(t,a),stepsInside:0,requiredAncestorName:s})}return eez.parse(n)}(t,a,i,this.integrationsController.result.data),this.isDeleteDialogOpen=!0)}async confirmAndDelete(e,t){try{await lp({heading:e,content:t,confirmButtonLabel:(0,lX.__)("Delete","uncanny-automator")})}catch{return}this.runDeleteMutation(!0)}runDeleteMutation(e){this.recipeID&&this.block&&!this.readOnly&&this.deleteMutation.mutateAsync({recipeID:this.recipeID,blockType:this.block.block_type,blockID:this.block.id,parentID:this.parentID??this.recipeID,deleteContent:e})}onDeleteDialogConfirm(e){this.isDeleteDialogOpen=!1,this.runDeleteMutation(e.detail.deleteContent)}onDeleteDialogClose(){this.isDeleteDialogOpen=!1}templateDeleteDialog(){return this.isDeleteDialogOpen&&void 0!==this.catalogBlock?s1` <uap-f-recipe-builder-flow-block-delete-dialog .catalogBlock=${this.catalogBlock} .stepCount=${this.deleteStepCount} .deletedAnywaySteps=${this.deleteDialogDeletedSteps} @uap.f.recipe-builder.flow.block.delete-dialog.confirm=${this.onDeleteDialogConfirm} @uap.f.recipe-builder.flow.block.delete-dialog.close=${this.onDeleteDialogClose} ></uap-f-recipe-builder-flow-block-delete-dialog> `:s3}};etR([l0({attribute:!1})],etM.prototype,"block",void 0),etR([l0({type:Number,attribute:"recipe-id"})],etM.prototype,"recipeID",void 0),etR([l0({attribute:!1})],etM.prototype,"parentID",void 0),etR([l0({type:Boolean,attribute:"within-locked-ancestor"})],etM.prototype,"withinLockedAncestor",void 0),etR([l0({type:Boolean,attribute:"read-only"})],etM.prototype,"readOnly",void 0),etR([l0({type:Boolean})],etM.prototype,"preview",void 0),etR([l2()],etM.prototype,"hasDragHandle",void 0),etR([l0({type:Boolean,attribute:"head-only"})],etM.prototype,"headOnly",void 0),etR([l0({type:Boolean,attribute:"frame-head"})],etM.prototype,"frameHead",void 0),etR([l2()],etM.prototype,"isDeleteDialogOpen",void 0),etR([l2()],etM.prototype,"deleteStepCount",void 0),etR([l2()],etM.prototype,"deleteDialogDeletedSteps",void 0),etR([l6('[data-slot]:not([data-slot="modifiers"])')],etM.prototype,"pathContainers",void 0),etR([l4('[data-slot="modifiers"]')],etM.prototype,"modifiersContainer",void 0),etR([H8({context:Jg})],etM.prototype,"sortableGroup",void 0),etM=etR([lJ("uap-f-recipe-builder-flow-block")],etM);var etL=function(e,t,i,a){var n,o=arguments.length,r=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(r=(o<3?n(r):o>3?n(t,i,r):n(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r};let etN=class extends ld{constructor(){super(...arguments),this.fields={},this.availability={status:Cc.USABLE},this.isDirty=!1,this.updateMutation=new vm(this,NH())}createRenderRoot(){return this}willUpdate(e){lQ(this,"availability",Cd,e,"uap-f-recipe-builder-flow-run-as-edit-dialog")}get isUnavailable(){return this.availability.status===Cc.UNAVAILABLE}render(){if(!this.recipeID)return s1``;let e=RG(Xj.sentence,this.fields);return s1` <uap-d-fields-edit-shell .recipeID=${this.recipeID} heading=${(0,b4.escapeHTML)((0,lX.__)("Run actions as","uncanny-automator"))} .sentenceTemplate=${e} .fields=${this.fields} ?is-dirty=${this.isDirty} ?save-disabled=${this.isUnavailable} @uap.d.fields-edit-shell.save=${this.onSave} @uap.d.fields-edit-shell.close=${this.onClose} > ${this.templateUnavailable()} <uap-builder-item-legacy-form slot="body" .recipeID=${this.recipeID} .fieldsDirectory=${Xj.fields.map(e=>({...e,item_type:"run-as",read_only:this.isUnavailable}))} .fieldsValues=${this.fields} return-format="standard" @uap.f.recipe-builder.legacy-form.change=${this.onLegacyFormChange} ></uap-builder-item-legacy-form> </uap-d-fields-edit-shell> `}templateUnavailable(){return this.availability.status!==Cc.UNAVAILABLE?s3:s1` <uas-alert slot="body" type="error" size="sm"> <uas-markdown allowed-tags="strong,em,a" .content=${this.availability.message}></uas-markdown> </uas-alert> `}onLegacyFormChange(e){this.fields=e.detail.unsavedFieldValues,e.detail.isUserEdit&&(this.isDirty=!0)}async onSave(){if(!this.recipeID||this.isUnavailable||rY(this.$legacyForm)||!this.$legacyForm.areFieldsValid)return;let e=k4.parse(this.$legacyForm.unsavedFieldValues);await this.updateMutation.mutateAsync({recipeID:this.recipeID,runAs:{fields:e}}),this.removeDialog()}onClose(){this.removeDialog()}removeDialog(){this.remove()}};etL([l0({type:Number,attribute:"recipe-id"})],etN.prototype,"recipeID",void 0),etL([l0({type:Object})],etN.prototype,"fields",void 0),etL([l0({attribute:!1})],etN.prototype,"availability",void 0),etL([l4("uap-builder-item-legacy-form")],etN.prototype,"$legacyForm",void 0),etL([l2()],etN.prototype,"isDirty",void 0),etN=etL([lJ("uap-f-recipe-builder-flow-run-as-edit-dialog")],etN);var etP=a(2499),etz=a.n(etP),etU=function(e,t,i,a){var n,o=arguments.length,r=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(r=(o<3?n(r):o>3?n(t,i,r):n(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r};let etF=class extends ld{constructor(){super(...arguments),this.readOnly=!1,this.availability={status:Cc.USABLE}}static{this.styles=sf`${sm(etz())}`}willUpdate(e){lQ(this,"availability",Cd,e,"uap-f-recipe-builder-flow-run-as")}render(){let e=this.runAs.fields,t=function(e){let t=AR(e,"SOURCE");if("existing-user"===t){if(""===AR(e,"UNIQUE_FIELD")||""===AR(e,"UNIQUE_FIELD_VALUE"))return!1;let t=AR(e,"EXISTING_USER_FALLBACK");return"create-new-user"===t?""!==AR(e,"CREATE_USER_EMAIL")||""!==AR(e,"CREATE_USER_USERNAME"):"do-nothing"===t}if("new-user"===t){if(""===AR(e,"NEW_USER_EMAIL")&&""===AR(e,"NEW_USER_USERNAME"))return!1;let t=AR(e,"NEW_USER_FALLBACK");return"select-existing-user"===t?""!==AR(e,"PRIORITIZED_FIELD"):"do-nothing"===t}return!1}(e),i=t?RG(Xj.sentence,e):"";return s1` <div class="card ${this.readOnly?"card--readonly":""}" role=${(this.readOnly?void 0:"button")??s3} tabindex=${(this.readOnly?void 0:"0")??s3} @click=${this.onCardClick} @keydown=${this.onCardKeydown} > <span class="card__icon"> <uas-icon code="user" icon-pack="duotone"></uas-icon> </span> <div class="card__body"> ${t?s1` <span class="card__summary"> <uap-d-recipe-sentence .recipeID=${this.recipeID} .template=${i} .fields=${e} ></uap-d-recipe-sentence> </span> `:s1`<span class="card__summary card__summary--placeholder">${(0,lX.__)("Choose which user the recipe runs as","uncanny-automator")}</span>`} </div> </div> ${this.templateNotice(t)} `}templateNotice(e){return this.availability.status===Cc.UNAVAILABLE?s1` <uas-alert class="card__alert" type="error" size="xs"> <uas-markdown allowed-tags="strong,em,a" .content=${this.availability.message}></uas-markdown> </uas-alert> `:e||this.readOnly?s3:s1` <uas-alert class="card__alert" type="warning" size="sm" heading=${(0,b4.escapeHTML)((0,lX.__)("User data needed","uncanny-automator"))} > ${(0,lX.__)("One or more elements in this recipe need user data. Click the card above to finish setting up the user selector.","uncanny-automator")} </uas-alert> `}onCardClick(){this.openDialog()}onCardKeydown(e){("Enter"===e.key||" "===e.key)&&(e.preventDefault(),this.openDialog())}openDialog(){if(!this.recipeID||this.readOnly||null!==document.body.querySelector("uap-f-recipe-builder-flow-run-as-edit-dialog"))return;let e=document.createElement("uap-f-recipe-builder-flow-run-as-edit-dialog");e.recipeID=this.recipeID,e.fields=this.runAs.fields,e.availability=this.availability,document.body.appendChild(e)}};etU([l0({type:Number,attribute:!1})],etF.prototype,"recipeID",void 0),etU([l0({attribute:!1})],etF.prototype,"runAs",void 0),etU([l0({type:Boolean,attribute:"read-only"})],etF.prototype,"readOnly",void 0),etU([l0({attribute:!1})],etF.prototype,"availability",void 0),etF=etU([lJ("uap-f-recipe-builder-flow-run-as")],etF);var etj=a(3710),etB=a.n(etj),etH=function(e,t,i,a){var n,o=arguments.length,r=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(r=(o<3?n(r):o>3?n(t,i,r):n(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r};let etV=class extends ld{constructor(){super(...arguments),this.operator="all",this.readOnly=!1}static{this.styles=sf`${sm(etB())}`}get currentLabel(){return"any"===this.operator?(0,lX._x)("Any","Triggers logic","uncanny-automator"):(0,lX._x)("All","Triggers logic","uncanny-automator")}get currentTrail(){return"any"===this.operator?(0,lX._x)("of the triggers is completed","Triggers logic","uncanny-automator"):(0,lX._x)("of the triggers are completed","Triggers logic","uncanny-automator")}render(){return s1` <div class="trigger-logic" dir="auto"> <span class="trigger-logic__lead"> ${(0,lX._x)("Run recipe when","Triggers logic","uncanny-automator")} </span> ${this.readOnly?s1`<span class="trigger-logic__static">${this.currentLabel}</span>`:this.templateDropdown()} <span class="trigger-logic__trail"> ${this.currentTrail} </span> </div> `}templateDropdown(){return s1` <uas-button-dropdown placement="bottom-start" class="trigger-logic__dropdown"> <uas-button slot="trigger" color="secondary" size="xs" aria-label=${String((0,lX.__)("Change trigger logic","uncanny-automator"))} > ${this.currentLabel} <uas-icon code="angle-down"></uas-icon> </uas-button> <uas-button ?disabled=${"any"===this.operator} @click=${()=>this.onPick("any")} > ${(0,lX._x)("Any","Triggers logic","uncanny-automator")} </uas-button> <uas-button ?disabled=${"all"===this.operator} @click=${()=>this.onPick("all")} > ${(0,lX._x)("All","Triggers logic","uncanny-automator")} </uas-button> </uas-button-dropdown> `}onPick(e){void 0===this.recipeID||this.readOnly||this.operator!==e&&(async function(e){await dK({meta:{recipeSave:!0},mutationFn:Ps,onMutate:async e=>{let{parsed:t,previousRecipe:i,queryKey:a}=await LA(Po,e);return dW.setQueryData(a,{...i,flow:{...i.flow,entry:{...i.flow.entry,operator:t.triggerLogic}}}),{previousRecipe:i}},onError:(e,t,i)=>{i?.previousRecipe&&dW.setQueryData(Ae.detail(t.recipeID),i.previousRecipe)},onSettled:(e,t,i,a)=>{dW.invalidateQueries({queryKey:Ae.detail(i.recipeID)})}},e)})({recipeID:this.recipeID,triggerLogic:e}).catch(e=>{d4.DEV.SHOW_CONSOLE_MESSAGES&&console.error(e)})}};etH([l0({attribute:!1})],etV.prototype,"recipeID",void 0),etH([l0({attribute:!1})],etV.prototype,"operator",void 0),etH([l0({type:Boolean,attribute:"read-only"})],etV.prototype,"readOnly",void 0),etV=etH([lJ("uap-f-recipe-builder-flow-trigger-logic")],etV);var etq=a(8105),etZ=a.n(etq),etW=function(e,t,i,a){var n,o=arguments.length,r=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(r=(o<3?n(r):o>3?n(t,i,r):n(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r};let etG=class extends ld{constructor(){super(...arguments),this.loading=!1,this.preview=!1,this.bindingsController=new eeT(this,{getRecipe:()=>this.recipe,getAnchors:()=>void 0===this.recipe||null===this.contentContainer||this.readOnly?[]:[{container:this.contentContainer,parentID:this.recipe.recipe_id,slot:R2.CONTENT}]}),this.onEntityDuplicated=e=>{if(!(e instanceof CustomEvent))return;let t=eeu.safeParse(e.detail);t.success&&this.scrollEntityIntoView(t.data.entityID)}}static{this.styles=sf`${sm(etZ())}`}get readOnly(){return this.recipe?.can_edit===!1}connectedCallback(){super.connectedCallback(),this.addEventListener(eed,this.onEntityDuplicated)}disconnectedCallback(){this.removeEventListener(eed,this.onEntityDuplicated),super.disconnectedCallback()}async scrollEntityIntoView(e){for(let t=0;t<5;t++){await this.updateComplete;let t=this.findEntityRow(this.shadowRoot,e);if(null!==t)return void t.scrollIntoView({behavior:"smooth",block:"center"});await new Promise(e=>{requestAnimationFrame(()=>e())})}}findEntityRow(e,t){if(null===e)return null;let i=e.querySelector(`[data-entity-id="${t}"]`);if(i instanceof HTMLElement)return i;for(let i of e.querySelectorAll("*")){let e=this.findEntityRow(i.shadowRoot,t);if(null!==e)return e}return null}render(){return this.recipe?s1` <div class="flow"> ${this.templateEntry()} ${this.templateRunAs()} ${this.templateContent()} </div> `:this.loading?this.templateSkeleton():s1`<div class="flow flow--empty"></div>`}templateSkeleton(){return s1` <div class="flow flow--loading" data-test="flow-skeleton" aria-busy="true"> <section class="flow-section flow-section--triggers"> <div class="flow-section__header"> <h2 class="flow-section__heading">${(0,lX.__)("Triggers","uncanny-automator")}</h2> </div> <div class="flow-section__items"> <uap-f-recipe-builder-flow-item loading></uap-f-recipe-builder-flow-item> <uas-skeleton class="flow-add-placeholder" width="6em"></uas-skeleton> </div> </section> <section class="flow-section flow-section--content"> <h2 class="flow-section__heading">${(0,lX.__)("Actions","uncanny-automator")}</h2> <div class="flow-section__items"> <uap-f-recipe-builder-flow-item loading></uap-f-recipe-builder-flow-item> </div> <uas-skeleton class="flow-add-placeholder" width="3.5em"></uas-skeleton> </section> </div> `}templateRunAs(){return this.recipe&&null!==this.recipe.flow.run_as?s1` <section class="flow-section flow-section--run-as"> <h2 class="flow-section__heading">${(0,lX.__)("Run recipe as","uncanny-automator")}</h2> <uap-f-recipe-builder-flow-run-as .recipeID=${this.recipe.recipe_id} .runAs=${this.recipe.flow.run_as} .availability=${this.recipe.miscellaneous.run_as_availability} ?read-only=${this.readOnly} ></uap-f-recipe-builder-flow-run-as> </section> `:s3}templateEntry(){let e=this.recipe?.flow.entry.triggers??[],t=!!this.recipe&&e.length>=2&&this.recipe.recipe_type===CN.USER;return s1` <section class="flow-section flow-section--triggers"> <div class="flow-section__header"> <h2 class="flow-section__heading">${(0,lX.__)("Triggers","uncanny-automator")}</h2> ${t?s1`<uap-f-recipe-builder-flow-trigger-logic .recipeID=${this.recipe.recipe_id} .operator=${this.recipe.flow.entry.operator} ?read-only=${this.readOnly} ></uap-f-recipe-builder-flow-trigger-logic>`:s3} </div> <div class="flow-section__items"> ${0===e.length?s1`<div class="flow-empty">${(0,lX.__)("No triggers yet.","uncanny-automator")}</div>`:$A(e,e=>e.id,e=>s1` <uap-f-recipe-builder-flow-item data-entity-id="${e.id}" data-entity-type="item" data-entity-code="${e.item_type}" .item=${e} .recipeID=${this.recipe?.recipe_id} .allowDuplicate=${this.recipe?.recipe_type!==CN.ANONYMOUS} ?read-only=${this.readOnly} ?preview=${this.preview} ></uap-f-recipe-builder-flow-item> `)} <div class="flow-section__footer-actions">${this.templateAddTrigger()}</div> </div> </section> `}templateAddTrigger(){return!this.recipe||this.readOnly?s3:this.recipe.recipe_type===CN.USER||0===this.recipe.flow.entry.triggers.length?s1` <uap-f-recipe-builder-node-selector-add-button scope=${kM.TRIGGER} parent-item-id=${this.recipe.recipe_id} > ${(0,lX.__)("Add trigger","uncanny-automator")} </uap-f-recipe-builder-node-selector-add-button> `:s1` <uas-tooltip> <span>${(0,lX.__)("The current trigger cannot be used in combination with any other triggers.","uncanny-automator")}</span> <uas-button slot="target" size="xs" color="secondary" disabled > ${(0,lX.__)("Add trigger","uncanny-automator")} </uas-button> </uas-tooltip> `}templateContent(){let e=this.recipe?.flow.content??[];return s1` <section class="flow-section flow-section--content"> <h2 class="flow-section__heading">${(0,lX.__)("Actions","uncanny-automator")}</h2> <div class="flow-section__items" data-container-id="${this.recipe?.recipe_id??""}" data-slot="content" > ${0===e.length?s1`<div class="flow-empty">${(0,lX.__)("No actions yet.","uncanny-automator")}</div>`:$A(e,e=>e.id,e=>this.templateContentChild(e))} </div> <div class="flow-section__footer-actions">${this.templateAddAction()}</div> </section> `}templateAddAction(){return!this.recipe||this.readOnly?s3:s1` <uap-f-recipe-builder-node-selector-add-button scope=${kM.ACTION} parent-item-id=${this.recipe.recipe_id} > ${(0,lX.__)("Add","uncanny-automator")} </uap-f-recipe-builder-node-selector-add-button> `}templateContentChild(e){let t=this.readOnly||e.availability.status===Cc.UNAVAILABLE?s3:this.templateDragHandle();return Ir(e)?s1`<uap-f-recipe-builder-flow-block data-entity-id="${e.id}" data-entity-type="block" data-entity-code="${e.block_type}" .recipeID=${this.recipe?.recipe_id} .block=${e} ?read-only=${this.readOnly} ?preview=${this.preview} >${t}</uap-f-recipe-builder-flow-block>`:s1`<uap-f-recipe-builder-flow-item data-entity-id="${e.id}" data-entity-type="item" data-entity-code="${e.item_type}" .item=${e} .recipeID=${this.recipe?.recipe_id} ?read-only=${this.readOnly} ?preview=${this.preview} >${t}</uap-f-recipe-builder-flow-item>`}templateDragHandle(){return s1`<button type="button" slot="drag-handle" data-uap-drag-handle aria-label=${String((0,lX.__)("Drag to reorder","uncanny-automator"))} > <uas-icon code="grip-dots-vertical"></uas-icon> </button>`}};etW([l0({attribute:!1})],etG.prototype,"recipe",void 0),etW([l0({type:Boolean})],etG.prototype,"loading",void 0),etW([l0({type:Boolean})],etG.prototype,"preview",void 0),etW([l4(".flow-section--content .flow-section__items")],etG.prototype,"contentContainer",void 0),etG=etW([lJ("uap-f-recipe-builder-flow")],etG),ry([Io,T5]),rp(rg({id:oR(),at:x4,parentID:ry([o5(),oR()]),pathCode:oR().nullable(),index:o5().int().nonnegative(),label:oR()}).readonly()).readonly();let etK=[Ni,Na],etY=rg({block_id:Nx.shape.block_id});function etQ(e,t){let i=t?.[e.block_type]?.paths,a=t?.[e.block_type]?.name??e.block_type;if(void 0===i)return e.paths.map(t=>({parentID:e.id,pathCode:t.path_code,content:t.content,label:(0,lX.sprintf)((0,lX.__)("Add inside %s","uncanny-automator"),a),standingAdd:!1}));let n=i.length>1;return i.map(t=>({parentID:e.id,pathCode:t.path_code,content:e.paths.find(e=>e.path_code===t.path_code)?.content??[],label:n?(0,lX.sprintf)((0,lX.__)("Add inside %1$s: %2$s","uncanny-automator"),a,t.name):(0,lX.sprintf)((0,lX.__)("Add inside %s","uncanny-automator"),a),standingAdd:!1}))}let etX={SET_UP:"edit-node-set-up",TEST:"edit-node-test",ROOT:"edit-node-root"},etJ=rT(etX),et1={NODE_KIND:{name:"node_kind",schema:ry([Ng,kz])},NODE_ID:{name:"node_id",schema:ry([$1().int(),oR().min(1)]).transform(e=>{if("string"!=typeof e)return e;try{return decodeURIComponent(e)}catch{return e}})}},et0=rg({[et1.NODE_KIND.name]:et1.NODE_KIND.schema,[et1.NODE_ID.name]:et1.NODE_ID.schema}),et2=rE(oR(),CA),et3={NO_TESTS:"no-tests",SET_UP_WITH_TESTS:"set-up-with-tests",TEST_LOCKED:"test-locked",TEST_READY:"test-ready"},et4=rT(et3),et6="uap.f.recipe-builder.flow.item.edit.saved",et5=rg({recipeID:o5().int().positive(),itemID:ry([o5(),oR()]),fields:k4}).strict(),et8="uap.f.recipe-builder.flow.block.edit.saved",et7=rg({recipeID:o5().int().positive(),blockID:ry([o5(),oR()]),fields:k4}).strict(),et9="uap.f.recipe-builder.flow.block-modifier.edit.saved",eie=rg({recipeID:o5().int().positive(),modifierID:ry([o5(),oR()]),fields:k4}).strict(),eit="uap.f.recipe-builder.edit-node.added-node-kept",eii=rg({nodeID:ry([o5(),oR()])}).strict(),eia="uas.canvas.insert-requested",ein=rg({id:oR()}).strict(),eio=sf`:host{display:block}.insert{--uas--button--size-custom-height: var(--uas--canvas-insert--size);--uas--button--size-custom-padding-top: 0;--uas--button--size-custom-padding-right: 0;--uas--button--size-custom-padding-bottom: 0;--uas--button--size-custom-padding-left: 0;--uas--button--size-custom-font-size: var(--uas--canvas-insert--font-size);--uas--button--size-custom-line-height: 1;--uas--button--custom-border-radius: 50%;display:flex;position:relative;inline-size:var(--uas--canvas-insert--size);margin-block-start:calc(var(--uas--canvas-insert--size)/-2);margin-inline-start:calc(var(--uas--canvas-insert--size)/-2);opacity:0;transform:scale(0.7);transition:opacity .1s,transform .1s;pointer-events:none}.insert--active{opacity:1;transform:scale(1);pointer-events:auto}.insert__label{position:absolute;inset-inline-start:var(--uas--canvas-insert--label-offset);inset-block-start:50%;transform:translateY(-50%);padding:5px 9px;border-radius:var(--uas--base--border-radius-xs);font-family:var(--uas--typography--font--family);font-weight:400;background:var(--uas--canvas-insert--label-background);color:var(--uas--canvas-insert--label-color);font-size:11px;line-height:1.3;white-space:nowrap;opacity:0;transition:opacity .1s;pointer-events:none}.insert--active .insert__label{opacity:1}`;var eir=function(e,t,i,a){var n,o=arguments.length,r=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(r=(o<3?n(r):o>3?n(t,i,r):n(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r};class eis extends ld{constructor(){super(...arguments),this.insertId="",this.label="",this.active=!1}render(){return""===this.insertId?s3:s1` <uas-button class="insert ${this.active?"insert--active":""}" size="xs" data-test="canvas-insert" data-insert-id=${this.insertId} aria-label=${this.label} ?disabled=${!this.active} @click=${this.onClick} > <uas-icon code="plus" aria-hidden="true"></uas-icon> <span class="insert__label" aria-hidden="true">${this.label}</span> </uas-button> `}onClick(){""!==this.insertId&&this.active&&lw({element:this,eventName:eia,options:{bubbles:!0,composed:!0},data:{id:this.insertId},schema:ein})}}eis.styles=eio,eir([l0({type:String,attribute:"insert-id"})],eis.prototype,"insertId",void 0),eir([l0({type:String})],eis.prototype,"label",void 0),eir([l0({type:Boolean})],eis.prototype,"active",void 0),"u">typeof customElements&&!customElements.get("uas-canvas-insert")&&customElements.define("uas-canvas-insert",eis);var eil=a(4391),eic=a.n(eil),eid=function(e,t,i,a){var n,o=arguments.length,r=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(r=(o<3?n(r):o>3?n(t,i,r):n(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r};let eiu=class extends ld{constructor(){super(...arguments),this.runAs=null,this.runAsAvailability={status:Cc.USABLE},this.operator=CM.ALL,this.triggerCount=0,this.recipeType=null,this.readOnly=!1}static{this.styles=sf`${sm(eic())}`}get showsOperator(){return this.triggerCount>=2&&this.recipeType===CN.USER}render(){return s1` <div class="band"> ${this.templatePill()} <div class="band__strip" data-test="canvas-band-strip" data-canvas-port="band"> ${this.templateInlineOperator()} ${this.templateRunAs()} </div> </div> `}templatePill(){return this.showsOperator&&this.operator===CM.ALL?s1` <div class="band__pill" data-test="canvas-operator-pill" data-canvas-port="operator-pill"> ${this.templateTriggerLogic()} </div> `:s3}templateInlineOperator(){return this.showsOperator&&this.operator!==CM.ALL?s1` <div class="band__operator" data-test="canvas-operator-inline"> ${this.templateTriggerLogic()} </div> `:s3}templateTriggerLogic(){return s1` <uap-f-recipe-builder-flow-trigger-logic .recipeID=${this.recipeID} .operator=${this.operator} ?read-only=${this.readOnly} ></uap-f-recipe-builder-flow-trigger-logic> `}templateRunAs(){return null===this.runAs?s3:s1` <div class="band__run-as" data-test="canvas-band-run-as"> <h2 class="band__heading">${(0,lX.__)("Run recipe as","uncanny-automator")}</h2> <uap-f-recipe-builder-flow-run-as class="band__card" .recipeID=${this.recipeID} .runAs=${this.runAs} .availability=${this.runAsAvailability} ?read-only=${this.readOnly} ></uap-f-recipe-builder-flow-run-as> </div> `}};eid([l0({attribute:!1})],eiu.prototype,"recipeID",void 0),eid([l0({attribute:!1})],eiu.prototype,"runAs",void 0),eid([l0({attribute:!1})],eiu.prototype,"runAsAvailability",void 0),eid([l0({attribute:!1})],eiu.prototype,"operator",void 0),eid([l0({attribute:!1})],eiu.prototype,"triggerCount",void 0),eid([l0({attribute:!1})],eiu.prototype,"recipeType",void 0),eid([l0({type:Boolean,attribute:"read-only"})],eiu.prototype,"readOnly",void 0),eiu=eid([lJ("uap-f-recipe-builder-canvas-trigger-band")],eiu);var eip=a(9889),eih=a.n(eip),eig=function(e,t,i,a){var n,o=arguments.length,r=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(r=(o<3?n(r):o>3?n(t,i,r):n(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r};let eim=class extends RH{constructor(){super(...arguments),this.loading=!1,this.preview=!1,this.sortableGroup=new x2({id:"recipe-builder-canvas",autoScroll:{edgeZone:90,maxSpeed:14,panCurve:xz.FLAT,panBounds:()=>this.viewportElement?.panelBounds()??null,pan:e=>{this.viewportElement?.viewportController.panBy(e)}}}),this.bindingsController=new eeT(this,{getGroup:()=>this.sortableGroup,getRecipe:()=>this.recipe,getAnchors:()=>this.anchors()}),this.dragging=!1,this.inserts=[],this.activeInsertID=null,this.pointerAt=null,this.viewport=ke,this.unsubscribeFromDragState=null,this.pendingAddedBlock=null,this.pendingAddedBlockKept=!1,this.onRecipeDragStateChange=e=>{this.dragging=e,this.syncActiveInsert()},this.onPointerTrack=e=>{let t=this.viewportElement?.getBoundingClientRect();void 0!==t&&(this.pointerAt={x:e.clientX-t.left,y:e.clientY-t.top},this.syncActiveInsert())},this.onPointerLeave=()=>{this.pointerAt=null,this.syncActiveInsert()},this.onViewportChange=e=>{if(e instanceof CustomEvent){let t=e.detail;this.viewport=t,this.syncActiveInsert()}},this.onInsertRequested=e=>{if(!(e instanceof CustomEvent))return;let t=e.detail,i=this.inserts.find(e=>e.id===t.id);i&&(window.location.hash=etI(kM.ACTION,i.parentID,i.pathCode??void 0,i.index))},this.onEntityDuplicated=e=>{if(!(e instanceof CustomEvent))return;let t=eeu.safeParse(e.detail);t.success&&this.requestNodeBodyReveal(t.data.entityID)},this.onBlockAdded=e=>{if(!(e instanceof CustomEvent))return;let t=etY.safeParse(e.detail);t.success&&(this.pendingAddedBlock=t.data.block_id,this.pendingAddedBlockKept=!1,this.revealAddedBlock())},this.onAddedNodeKept=e=>{if(!(e instanceof CustomEvent)||null===this.pendingAddedBlock)return;let t=eii.safeParse(e.detail);t.success&&String(t.data.nodeID)===String(this.pendingAddedBlock)&&(this.pendingAddedBlockKept=!0,this.revealAddedBlock())},this.onHashChange=()=>{this.revealAddedBlock()}}static{this.styles=[RH.styles,sf`${sm(eih())}`]}connectedCallback(){var e;super.connectedCallback(),this.dragging=eep,this.unsubscribeFromDragState=(e=this.onRecipeDragStateChange,eeh.add(e),()=>{eeh.delete(e)}),this.addEventListener("pointermove",this.onPointerTrack),this.addEventListener("pointerleave",this.onPointerLeave),this.addEventListener(Rt,this.onViewportChange),this.addEventListener(eia,this.onInsertRequested),this.addEventListener(eed,this.onEntityDuplicated),document.addEventListener(Nw,this.onBlockAdded),document.addEventListener(eit,this.onAddedNodeKept),window.addEventListener("hashchange",this.onHashChange)}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromDragState?.(),this.unsubscribeFromDragState=null,this.removeEventListener("pointermove",this.onPointerTrack),this.removeEventListener("pointerleave",this.onPointerLeave),this.removeEventListener(Rt,this.onViewportChange),this.removeEventListener(eia,this.onInsertRequested),this.removeEventListener(eed,this.onEntityDuplicated),document.removeEventListener(Nw,this.onBlockAdded),document.removeEventListener(eit,this.onAddedNodeKept),window.removeEventListener("hashchange",this.onHashChange),this.pendingAddedBlock=null,this.pendingAddedBlockKept=!1}willUpdate(e){super.willUpdate(e),(e.has("ports")||e.has("recipe"))&&(this.inserts=void 0===this.recipe||this.readOnly?[]:function(e,t,i){let a=[],n=e=>{let o=sa(e.parentID,e.pathCode??OY),r=(t,i)=>{a.push({id:`${o}@${i}`,at:t,parentID:e.parentID,pathCode:e.pathCode,index:i,label:e.label})},s=OZ(e.content,i),l=s[0];if(void 0===l)return;let c=t.get(String(l.id));if(void 0!==c){let e=r5(c);r({x:e.x,y:e.y-28},0)}let d=t.get(o);s.forEach((a,o)=>{let l=s[o+1],c=void 0===l?void 0:t.get(String(l.id)),u=OK(a,t,i,void 0!==c?r5(c).x:void 0!==d?r5(d).x:void 0),p=e.standingAdd&&void 0===l,h=OC(a,i);void 0===u||p||h||r({x:u.x,y:u.y+28},e.content.indexOf(a)+1),Ir(a)&&!h&&etQ(a,i).forEach(n)})};for(let{block:t}of(n({parentID:e.recipe_id,pathCode:null,content:e.flow.content,label:(0,lX.__)("Add to the flow","uncanny-automator"),standingAdd:!0}),OG(e.flow.content,i)))etQ(t,i).forEach(n);return a}(this.recipe,this.ports,this.catalog),this.syncActiveInsert())}get flow(){return this.recipe?.flow}get rootID(){return this.recipe?.recipe_id}get busy(){return this.loading}get stageDragging(){return this.dragging}get readOnly(){return this.recipe?.can_edit===!1}get allowsDuplicate(){return this.recipe?.recipe_type!==CN.ANONYMOUS}get showsOperator(){return(this.recipe?.flow.entry.triggers.length??0)>=2&&this.recipe?.recipe_type===CN.USER}syncActiveInsert(){this.activeInsertID=this.resolveActiveInsert()}resolveActiveInsert(){if(null===this.pointerAt||this.dragging)return null;let{x:e,y:t,zoom:i}=this.viewport;return function(e,t,i){let a,n=Number.isFinite(i)&&i>0?i:1,o=1/0;for(let i of e){let e=Math.hypot(i.at.x-t.x,i.at.y-t.y);e<o&&(o=e,a=i)}return void 0===a||o*n>=110?null:a.id}(this.inserts,{x:(this.pointerAt.x-e)/i,y:(this.pointerAt.y-t)/i},i)}anchors(){if(void 0===this.recipe||this.readOnly)return[];let e=[],t=this.laneIndex(),i=t.get(this.laneKey(this.recipe.recipe_id,R2.CONTENT))??null;for(let a of(null!==i&&e.push({container:i,parentID:this.recipe.recipe_id,slot:R2.CONTENT,drawsDeferredLast:!0}),this.blocksOf(this.recipe.flow.content)))for(let i of a.paths){let n=t.get(this.laneKey(a.id,i.path_code))??null;null!==n&&e.push({container:n,parentID:a.id,slot:R2.ITEMS,pathCode:i.path_code,drawsDeferredLast:!0})}return e}laneIndex(){let e=new Map;for(let t of Array.from(this.lanes))e.set(this.laneKey(t.getAttribute("data-container-id")??"",t.getAttribute("data-slot")??""),t);return e}laneKey(e,t){return`${e}:${t}`}blocksOf(e){let t=[];for(let i of e)Ir(i)&&t.push(i,...i.paths.flatMap(e=>this.blocksOf(e.content)));return t}revealAddedBlock(){var e;let t;null===this.pendingAddedBlock||(t=(e=window.location.hash).startsWith("#")?e.slice(1):e,etK.some(e=>t===e||t.startsWith(`${e}/`)))||(this.pendingAddedBlockKept&&this.requestNodeBodyReveal(this.pendingAddedBlock),this.pendingAddedBlock=null,this.pendingAddedBlockKept=!1)}onAddToBranch(e,t){window.location.hash=etI(kM.ACTION,e,t)}onAddAction(){this.recipe&&(window.location.hash=etI(kM.ACTION,this.recipe.recipe_id))}onAddTrigger(){this.recipe&&(window.location.hash=etI(kM.TRIGGER,this.recipe.recipe_id))}templateItemCard(e,t){return s1`<uap-f-recipe-builder-flow-item .item=${e} .recipeID=${this.recipe?.recipe_id} .parentID=${this.parentIDOf(t)} .allowDuplicate=${this.allowsDuplicate} ?within-locked-ancestor=${this.withinLocked(t)} ?read-only=${this.readOnly} ?preview=${this.preview} >${e.item_type===kM.TRIGGER?s3:this.templateDragHandle(e)}</uap-f-recipe-builder-flow-item>`}templateSkeletonCard(){return s1`<uap-f-recipe-builder-flow-item loading></uap-f-recipe-builder-flow-item>`}templateLaneTail(e,t){return!this.recipe||this.readOnly?s3:s1` <uas-button class="stage__typed-add" size="sm" data-test="canvas-add-branch-action" data-container-id=${e} data-slot=${t} @click=${()=>this.onAddToBranch(e,t)} > <uas-icon code="plus"></uas-icon> ${(0,lX.__)("Add","uncanny-automator")} </uas-button> `}templateBlockHead(e,t,i,a){return s1`<uap-f-recipe-builder-flow-block head-only ?frame-head=${a} .block=${e} .recipeID=${this.recipe?.recipe_id} .parentID=${this.parentIDOf(t)} ?within-locked-ancestor=${this.withinLocked(t)} ?read-only=${this.readOnly} >${i===OL.LANE?this.templateDragHandle(e):s3}</uap-f-recipe-builder-flow-block>`}templateBlockMarker(e,t,i){return s1`<uap-d-recipe-block-marker code=${e.block_type} .fields=${e.fields} .recipeID=${this.recipe?.recipe_id} .contents=${Oj(e)} >${i}</uap-d-recipe-block-marker>`}templateBand(){return this.recipe&&(null!==this.recipe.flow.run_as||this.showsOperator)?s1` <uap-f-recipe-builder-canvas-trigger-band class="stage__band" data-test="canvas-band" .recipeID=${this.recipe.recipe_id} .runAs=${this.recipe.flow.run_as} .runAsAvailability=${this.recipe.miscellaneous.run_as_availability} .operator=${this.recipe.flow.entry.operator} .triggerCount=${this.recipe.flow.entry.triggers.length} .recipeType=${this.recipe.recipe_type} ?read-only=${this.readOnly} ></uap-f-recipe-builder-canvas-trigger-band> `:s3}templateEntryTail(){return!this.recipe||this.readOnly||this.recipe.recipe_type!==CN.USER&&this.recipe.flow.entry.triggers.length>0?s3:s1` <uas-button class="stage__typed-add" size="sm" data-test="canvas-add-trigger" data-canvas-port=${OQ} @click=${this.onAddTrigger} > <uas-icon code="plus"></uas-icon> ${(0,lX.__)("Add trigger","uncanny-automator")} </uas-button> `}templateContentTail(){return!this.recipe||this.readOnly?s3:s1` <uas-button class="stage__typed-add stage__typed-add--disc" size="xs" data-test="canvas-add-action" data-canvas-port=${OX} aria-label=${String((0,lX.__)("Add action","uncanny-automator"))} @click=${this.onAddAction} > <uas-icon code="plus" aria-hidden="true"></uas-icon> </uas-button> `}templateOverlays(){return this.readOnly?s3:s1`${$A(this.inserts,e=>e.id,e=>s1`<uas-canvas-insert insert-id=${e.id} label=${e.label} ?active=${e.id===this.activeInsertID} style=${cd({left:`${e.at.x}px`,top:`${e.at.y}px`})} ></uas-canvas-insert>`)}`}templateDragHandle(e){return this.readOnly||e.availability.status===Cc.UNAVAILABLE?s3:s1`<button type="button" slot="drag-handle" data-uap-drag-handle aria-label=${String((0,lX.__)("Drag to reorder","uncanny-automator"))} > <uas-icon code="grip-dots-vertical"></uas-icon> </button>`}parentIDOf(e){return e[e.length-1]?.id??this.recipe?.recipe_id}frameColors(e){let t=this.catalog?.[e.block_type]?.details.primary_color;return void 0===t||e.availability.status===Cc.UNAVAILABLE?{}:{"--uap--f--recipe-builder--canvas--frame-color":`var( --uas--color--tag-${t}-container )`,"--uap--f--recipe-builder--canvas--frame-ink":`var( --uas--color--tag-on-${t}-container )`}}withinLocked(e){return e.some(e=>e.availability.status===Cc.UNAVAILABLE)}};eig([l0({attribute:!1})],eim.prototype,"recipe",void 0),eig([l0({type:Boolean})],eim.prototype,"loading",void 0),eig([l0({type:Boolean})],eim.prototype,"preview",void 0),eig([l6('[data-test="canvas-content"], [data-test="canvas-branch-lane"]')],eim.prototype,"lanes",void 0),eig([H5({context:Jg})],eim.prototype,"sortableGroup",void 0),eig([l2()],eim.prototype,"dragging",void 0),eig([l2()],eim.prototype,"inserts",void 0),eig([l2()],eim.prototype,"activeInsertID",void 0),eim=eig([lJ("uap-f-recipe-builder-canvas")],eim);let eif=rg({recipe:CV}).strict(),eiy={all:()=>["template-library","recipe"],detail:e=>[...eiy.all(),e]};async function eib(e){let[,,t]=e.queryKey,i=o5().int().positive().parse(t);if(d4.DEV.RETURN_MOCK_DATA){await new Promise(e=>setTimeout(e,d4.DEV.MOCK_DELAY_MS));let e=CV.parse({...IT,recipe_id:-i,can_edit:!1});return Il.parse(e)}let a=await dV({endpoint:`recipe-template/${i}/preview`,responseSchema:eif,method:"GET",useEnvelope:!0});return Il.parse(a.recipe)}let eiv=e=>({queryKey:eiy.detail(e),queryFn:eib,staleTime:1/0}),ei_=rg({template_id:o5().int().positive(),recipe_id:o5().int().positive().optional()}).strict(),eiw=rg({redirect:oH(),recipe_id:o5().int().positive()}).strict(),eix={RECIPE_NOT_FOUND:"recipe_not_found",RECIPE_NOT_BLANK:"recipe_not_blank",RECIPE_NOT_DRAFT:"recipe_not_draft",RECIPE_FILL_UNVERIFIED:"recipe_fill_unverified"},eik=rT(eix),eiE=qA.extend({code:eik}),eiS={redirect:"https://site.test/wp-admin/post.php?post=123&action=edit",recipe_id:123};function eiC(e,t=Nc){return`${t}/template/${e}`}function eiT(e){if(!e)return;let t=Object.values(e).map(e=>e.readable??e.value).filter(e=>e.trim().length>0);return t.length>0?t.join(", "):void 0}eix.RECIPE_NOT_FOUND,eix.RECIPE_NOT_BLANK,eix.RECIPE_NOT_DRAFT,eix.RECIPE_FILL_UNVERIFIED,Pm.POST;var eiI=a(8672),eiD=a.n(eiI),eiA=function(e,t,i,a){var n,o=arguments.length,r=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(r=(o<3?n(r):o>3?n(t,i,r):n(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r};let ei$={mutationFn:async function(e){let t=ei_.parse(e);return d4.DEV.RETURN_MOCK_DATA?(await new Promise(e=>setTimeout(e,d4.DEV.MOCK_DELAY_MS)),eiw.parse(eiS)):dV({endpoint:"recipe-template/import",responseSchema:eiw,method:"POST",data:t,useEnvelope:!0})},onSuccess:async(e,t)=>{void 0!==t.recipe_id&&await $2(e.recipe_id)}},eiO=class extends ld{constructor(){super(...arguments),this.ready=!1,this.closedOnLoadFailure=!1,this.categories=[],this.recipeController=new vE(this,{...eiv(0),enabled:!1}),this.blocksController=new vE(this,Ac),this.preferences=new vS(this,{...WE,schema:Wb,persistenceReady:Ww()}),this.importMutation=new vm(this,{...ei$,onSuccess:async(e,t,...i)=>{await ei$.onSuccess?.(e,t,...i),this.onImported(e,t)}}),this.onSetupProgress=e=>{let t=void 0===this.setupProgress;this.setupProgress=e.detail,t&&e.detail.done===e.detail.total&&this.onClose()}}static{this.styles=sf`${sm(eiD())}`}get projection(){return this.preferences.data?this.preferences.data.view:this.preferences.result.errorUpdateCount>0?Wx.view:void 0}willUpdate(e){lQ(this,"template",TK.optional(),e,"uap-f-recipe-template-template"),lQ(this,"importIntoRecipeID",eea,e,"uap-f-recipe-template-template"),lQ(this,"categories",rp(TY),e,"uap-f-recipe-template-template"),e.has("template")&&void 0!==this.template&&this.recipeController.setOptions({...eiv(this.template.id),enabled:!0}),void 0!==this.recipeController.result.data&&function(e){if(e.recipe_id>=0)return;let t=Ae.detail(e.recipe_id),i=dW.getQueryState(t);(i?.data!==e||i.isInvalidated||"error"===i.status)&&dW.setQueryData(t,e)}(this.recipeController.result.data)}render(){return void 0===this.template?this.templateShell(s3,s1`<uas-skeleton text="Automated course completion email workflow"></uas-skeleton>`,s1`<p class="detail__description"><uas-skeleton text="Automate enrollment notifications across connected integrations"></uas-skeleton></p>`,!0):this.templateShell(this.templateTags(),s1`${this.template.title}`,this.template.description?s1`<p class="detail__description">${this.template.description}</p>`:s3,!1)}templateShell(e,t,i,a){return s1` <div class="detail"> <uas-button class="detail__close" color="transparent" size="sm" @click=${this.onClose} aria-label=${String((0,lX.__)("Close","uncanny-automator"))} > <uas-icon code="xmark"></uas-icon> </uas-button> <div class="detail__layout"> <header class="detail__intro"> ${e} <h2 class="detail__title">${t}</h2> ${i} <div class="detail__facts"> ${this.templateSettings()} ${this.templateRequires()} </div> ${this.templateRequiresNote()} </header> ${this.ready?s1` <div class="detail__preview detail__preview--setup" @uap.f.recipe-template.setup-progress=${this.onSetupProgress}> ${this.templateSetup()} </div> `:s1` <div class="detail__preview ${this.projection===TJ.DIAGRAM?"detail__preview--diagram":""}"> ${this.templatePreview()} </div> `} ${this.ready?this.templateProgress():s1`<div class="detail__actions"> <uas-button class="detail__import" color="primary" size="lg" filled ?disabled=${a} ?loading=${this.importMutation.result.isPending} @click=${this.onImport} > ${void 0===this.importIntoRecipeID?(0,lX.__)("Import recipe to your site","uncanny-automator"):(0,lX.__)("Use this template","uncanny-automator")} </uas-button> </div>`} </div> </div> `}templateProgress(){let e=this.setupProgress;if(void 0===e)return s3;let t=e.done===e.total,i=0===e.total?100:Math.round(e.done/e.total*100);return s1` <div class="detail__actions detail__progress ${t?"detail__progress--complete":""}" role="status"> <div class="detail__progress-head"> <span class="detail__progress-label">${t?(0,lX.__)("All set","uncanny-automator"):(0,lX.__)("Setup progress","uncanny-automator")}</span> <span class="detail__progress-count"> ${(0,lX.sprintf)((0,lX._n)("%1$d of %2$d step done","%1$d of %2$d steps done",e.total,"uncanny-automator"),e.done,e.total)} </span> </div> <uas-progress-linear value=${i}></uas-progress-linear> <p class="detail__progress-note"> ${t?(0,lX.__)("Your recipe requirements are all met. Check each step's values before you take it live.","uncanny-automator"):(0,lX.__)("Each step ticks off here as you finish it.","uncanny-automator")} </p> </div> `}templateSetup(){return s1` <section class="detail__setup" aria-labelledby="detail-setup-title"> <h3 id="detail-setup-title" class="detail__setup-title">${(0,lX.__)("Required to use this recipe","uncanny-automator")}</h3> <uap-f-recipe-template-requirements .recipe=${this.recipeController.result.data}></uap-f-recipe-template-requirements> </section> `}templateSettings(){if(void 0===this.template||this.recipeController.result.isLoading)return this.templateSettingsSkeleton();let e=this.recipeController.result.data?.recipe_type,t=e===CN.ANONYMOUS?(0,lX.__)("Everyone","uncanny-automator"):(0,lX.__)("Logged-in users","uncanny-automator"),i=this.recipeController.result.data?.settings,a=eiT(i?.[Cw.RECIPE_TOTAL_TIMES]),n=eiT(i?.[Cw.RECIPE_TIMES_PER_USER]),o=[{label:(0,lX.__)("User type","uncanny-automator"),value:t},...a?[{label:(0,lX.__)("Total runs","uncanny-automator"),value:a}]:[],...n&&e!==CN.ANONYMOUS?[{label:(0,lX.__)("Runs per user","uncanny-automator"),value:n}]:[]];return s1` <dl class="detail__settings"> ${$A(o,e=>e.label,e=>s1` <div class="detail__setting"> <dt class="detail__setting-label">${e.label}</dt> <dd class="detail__setting-value">${e.value}</dd> </div> `)} </dl> `}templateSettingsSkeleton(){let e=(0,lX.__)("User type","uncanny-automator"),t=(0,lX.__)("Logged-in users","uncanny-automator");return s1` <dl class="detail__settings"> <div class="detail__setting"> <dt class="detail__setting-label"><uas-skeleton text=${String(e)}></uas-skeleton></dt> <dd class="detail__setting-value"><uas-skeleton text=${String(t)}></uas-skeleton></dd> </div> </dl> `}templatePreview(){let{data:e,isLoading:t,isError:i}=this.recipeController.result;if(i)return s1` <uas-alert type="error"> ${(0,lX.__)("The template preview could not be loaded. Please try again.","uncanny-automator")} </uas-alert> `;let a=t||this.blocksController.result.isLoading;return this.projection===TJ.DIAGRAM?s1` <uap-f-recipe-builder-canvas .recipe=${e} ?loading=${a} preview ></uap-f-recipe-builder-canvas> `:s1` <uap-f-recipe-builder-flow .recipe=${e} ?loading=${a||void 0===this.projection} preview ></uap-f-recipe-builder-flow> `}templateTags(){return void 0===this.template||0===this.template.tags.length&&0===this.categories.length?s3:s1` <div class="detail__tags"> ${this.template.tags.map(e=>s1` <uap-d-integrations-tag class="detail__tag" .type=${e.type} .scenarioID=${e.scenario_id} .label=${e.label} .color=${e.color} .icon=${e.icon} .helper=${e.helper} size="md" ></uap-d-integrations-tag> `)} ${$A(this.categories,e=>e.id,e=>s1`<uas-chip class="detail__category" label=${e.name} color="neutral" size="md" filled></uas-chip>`)} </div> `}templateRequires(){if(void 0===this.template)return s1` <div class="detail__requires"> <span class="detail__requires-label">${(0,lX.__)("Requires","uncanny-automator")}</span> <uas-skeleton text="WordPress Core"></uas-skeleton> </div> `;let e=this.template.integration_codes??[];return 0===e.length?s3:s1` <uap-f-recipe-template-requires class="detail__requires" .integrationCodes=${e} .recipe=${this.recipeController.result.data} ></uap-f-recipe-template-requires> `}templateRequiresNote(){return void 0===this.template||0===(this.template.integration_codes??[]).length||this.template.dependencies_met||this.ready?s3:s1` <p class="detail__requires-note"> ${(0,lX.__)("Missing something? No problem. Once you import the recipe, it walks you through setting up anything your site still needs.","uncanny-automator")} </p> `}onImport(){if(void 0===this.template||this.importMutation.result.isPending)return;let e=void 0===this.importIntoRecipeID?{template_id:this.template.id}:{template_id:this.template.id,recipe_id:this.importIntoRecipeID};this.importMutation.mutate(e,{onError:t=>{d4.DEV.SHOW_CONSOLE_MESSAGES&&console.error("[uap-f-recipe-template-template] import failed:",t);let i=void 0!==e.recipe_id&&t instanceof dH?eiE.safeParse(t.body).data:void 0;ly({message:(0,b4.escapeHTML)(i?.message??(0,lX.__)("The template could not be imported. Please try again.","uncanny-automator")),color:"error",iconID:"xmark",duration:5e3}),void 0!==i&&void 0!==e.recipe_id&&$2(e.recipe_id)}})}onImported(e,t){var i;let a=(i=t.template_id,`${eiC(i)}/ready`);if(e.recipe_id!==t.recipe_id){let i=new URL(e.redirect,window.location.href);i.hash=a,void 0===t.recipe_id?window.location.assign(i.toString()):window.location.replace(i.toString());return}lw({element:this,eventName:"uap.f.recipe-template.imported",data:{recipeID:e.recipe_id},schema:eee,options:{bubbles:!0,composed:!0}}),window.location.hash=a}updated(){let{isError:e,data:t}=this.recipeController.result;this.ready&&e&&void 0===t&&!this.closedOnLoadFailure&&(this.closedOnLoadFailure=!0,this.onClose())}onClose(){lw({element:this,eventName:"uap.f.recipe-template.detail-close",data:{},schema:J9,options:{bubbles:!0,composed:!0}})}};function eiR(e,t){return t.filter(t=>"all"!==t.slug&&t.template_ids.includes(e))}eiA([l0({attribute:!1})],eiO.prototype,"template",void 0),eiA([l0({type:Number,attribute:"import-into-recipe-id"})],eiO.prototype,"importIntoRecipeID",void 0),eiA([l0({type:Boolean,reflect:!0})],eiO.prototype,"ready",void 0),eiA([l2()],eiO.prototype,"setupProgress",void 0),eiA([l0({attribute:!1})],eiO.prototype,"categories",void 0),eiO=eiA([lJ("uap-f-recipe-template-template")],eiO);let eiM={all:()=>["template-library"],feed:()=>[...eiM.all(),"feed"]};async function eiL(e){return d4.DEV.RETURN_MOCK_DATA?(await new Promise(e=>setTimeout(e,d4.DEV.MOCK_DELAY_MS)),TQ.parse(DW)):dV({endpoint:"recipe-template/get",responseSchema:TQ,method:"GET",useEnvelope:!0})}let eiN=()=>({queryKey:eiM.feed(),queryFn:eiL,staleTime:1/0});var eiP=a(6502),eiz=a.n(eiP),eiU=function(e,t,i,a){var n,o=arguments.length,r=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(r=(o<3?n(r):o>3?n(t,i,r):n(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r};let eiF=class extends ld{constructor(){super(...arguments),this.detailRoutePrefix=Nc,this.feedController=new vE(this,{...eiN(),enabled:!1}),this.routes=this.detailRoutes(),this.router=new _P(this,this.routes,{onParamsChange:e=>this.onParamsChange(e)}),this.onClose=()=>{window.location.hash=eeo[this.detailRoutePrefix]}}static{this.styles=sf`${sm(eiz())}`}detailRoutes(){let e=()=>`${this.detailRoutePrefix}/template/:${J2.TEMPLATE_ID.name}`;return[{id:J3,get path(){return e()},component:e=>this.templateForRoute(e)},{id:`${J3}-ready`,get path(){return`${e()}/ready`},component:e=>this.templateForRoute(e,!0)}]}willUpdate(e){lQ(this,"detailRoutePrefix",een,e,"uap-f-recipe-template-dialog",Nc),lQ(this,"importIntoRecipeID",eea,e,"uap-f-recipe-template-dialog")}render(){return J4.safeParse(this.router.getCurrentParams()).success?s1` <uas-dialog size="xl" open no-header no-footer no-padding @uas.dialog.close=${this.onClose} @uap.f.recipe-template.detail-close=${this.onClose} > ${this.router.renderOutlet()} </uas-dialog> `:s3}templateForRoute(e,t=!1){let i=J4.safeParse(e);if(!i.success)return s1``;let{data:a,isError:n}=this.feedController.result;if(n)return this.templateState(yQ.ERROR,(0,lX.__)("This template could not be loaded. Please try again.","uncanny-automator"));if(void 0===a)return s1`<uap-f-recipe-template-template import-into-recipe-id=${this.importIntoRecipeID??s3} ?ready=${t}></uap-f-recipe-template-template>`;let o=a.templates.find(e=>e.id===i.data.templateID);return void 0===o?this.templateState(yQ.WARNING,(0,lX.__)("This template is no longer available.","uncanny-automator")):s1` <uap-f-recipe-template-template .template=${o} import-into-recipe-id=${this.importIntoRecipeID??s3} .categories=${eiR(o.id,a.categories)} ?ready=${t} ></uap-f-recipe-template-template> `}templateState(e,t){return s1` <div class="dialog__state"> <uas-alert type=${e}>${t}</uas-alert> </div> `}onParamsChange(e){let t=J4.safeParse(e).success;this.feedController.setOptions({...eiN(),enabled:t})}};eiU([l0({attribute:"detail-route-prefix"})],eiF.prototype,"detailRoutePrefix",void 0),eiU([l0({type:Number,attribute:"import-into-recipe-id"})],eiF.prototype,"importIntoRecipeID",void 0),eiF=eiU([lJ("uap-f-recipe-template-dialog")],eiF);var eij=a(7837),eiB=a.n(eij),eiH=function(e,t,i,a){var n,o=arguments.length,r=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(r=(o<3?n(r):o>3?n(t,i,r):n(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r};let eiV=class extends ld{constructor(){super(...arguments),this.hasAutoOpenedLog=!1,this.isLogOpen=this.isRecipeLogRouteActive(),this.isRecheckingLock=!1,this.recipeController=new vE(this,{...Ai(-1),enabled:!1}),this.onHashChange=()=>{let e=this.isRecipeLogRouteActive(),t=this.isLogOpen&&!e;this.isLogOpen=e,t&&this.isLocked&&this.recheckLock()}}static{this.styles=sf`${sm(eiB())}`}connectedCallback(){super.connectedCallback(),window.addEventListener("hashchange",this.onHashChange),this.isLogOpen=this.isRecipeLogRouteActive()}disconnectedCallback(){window.removeEventListener("hashchange",this.onHashChange),super.disconnectedCallback()}willUpdate(e){if(!e.has("recipeID"))return;let t=this.recipeID,i=void 0!==t&&t>0;this.recipeController.setOptions({...Ai(i?t:-1),enabled:i})}updated(){this.maybeAutoOpenLog()}get recipe(){return this.recipeController.result.data}get isLocked(){return this.recipe?.can_edit===!1}get logViewHref(){let e=this.recipe?.miscellaneous.latest_recipe_log_id??null,t=this.recipe?.miscellaneous.latest_run_number??null;return null===e||null===t||void 0===this.recipeID?"":`#${WD(this.recipeID,t,e)}`}isRecipeLogRouteActive(){return window.location.hash.startsWith(`#${Ns}/`)}maybeAutoOpenLog(){this.isLocked&&!this.hasAutoOpenedLog&&""!==this.logViewHref&&(this.hasAutoOpenedLog=!0,this.isLogOpen=!0,window.location.hash=this.logViewHref)}async recheckLock(){if(!this.isRecheckingLock){this.isRecheckingLock=!0;try{await this.recipeController.refetch()}finally{this.isRecheckingLock=!1}}}render(){return this.isLocked?s1` <div class="lock-overlay" data-test="recipe-builder-lock-overlay"></div> ${this.isLogOpen?s3:this.templateDialog()} `:s3}templateDialog(){return s1` <uas-dialog open no-footer force-manual-close ?loading=${this.isRecheckingLock} heading=${(0,b4.escapeHTML)((0,lX.__)("This recipe is running","uncanny-automator"))} > <uas-markdown class="locked-recipe-dialog__text" allowed-tags="strong" .content=${(0,b4.escapeHTML)((0,lX.__)("**You can't make changes while this recipe is running.** You can watch its progress in the logs, and cancel any actions that haven't run yet.","uncanny-automator"))} ></uas-markdown> ${this.logViewHref?s1`<div class="locked-recipe-dialog__view-log"> <uas-button size="sm" data-test="locked-recipe-dialog-view-log" href=${this.logViewHref} > ${(0,lX.__)("View log entry","uncanny-automator")} </uas-button> </div>`:s3} <uas-markdown class="locked-recipe-dialog__text" allowed-tags="strong" .content=${(0,b4.escapeHTML)((0,lX.__)("To edit it, **duplicate this recipe** to get an editable copy.","uncanny-automator"))} ></uas-markdown> <div class="locked-recipe-dialog__actions"> ${this.recipe?.miscellaneous.url_all_recipes?s1`<uas-button size="sm" color="secondary" target="_blank" data-test="locked-recipe-dialog-all-recipes" href=${this.recipe.miscellaneous.url_all_recipes} > ${(0,lX.__)("Return to recipe list","uncanny-automator")} </uas-button>`:s3} <uas-button size="sm" color="secondary" target="_blank" data-test="locked-recipe-dialog-duplicate" href=${this.recipe?.miscellaneous.url_duplicate_recipe??s3} > ${(0,lX.__)("Duplicate this recipe","uncanny-automator")} </uas-button> </div> </uas-dialog> `}};eiH([l0({type:Number,attribute:"recipe-id"})],eiV.prototype,"recipeID",void 0),eiH([l2()],eiV.prototype,"isLogOpen",void 0),eiH([l2()],eiV.prototype,"isRecheckingLock",void 0),eiV=eiH([lJ("uap-d-recipe-locked-recipe-dialog")],eiV);let eiq=cr(class extends cs{constructor(){super(...arguments),this.key=s3}render(e,t){return this.key=e,t}update(e,[t,i]){return t!==this.key&&($T(e),this.key=t),i}}),eiZ=sf`:host{display:block;box-sizing:border-box;color:inherit}:host([sticky]){position:sticky;inset-block-start:0;z-index:var(--uas--top-bar--custom-z-index, var(--uas--top-bar--z-index))}.root{box-sizing:border-box;display:grid;grid-template-columns:var(--uas--top-bar--custom-grid-template-columns, 1fr auto 1fr);align-items:center;column-gap:var(--uas--top-bar--custom-gap, var(--uas--top-bar--gap));inline-size:100%;min-block-size:var(--uas--top-bar--custom-height, var(--uas--top-bar--height));padding-inline:var(--uas--top-bar--custom-padding-x, var(--uas--top-bar--padding-x));background:var(--uas--top-bar--custom-bg, var(--uas--top-bar--bg));border-block-end:1px solid var(--uas--top-bar--custom-border-color, var(--uas--top-bar--border-color))}.region{display:flex;align-items:center;gap:var(--uas--top-bar--custom-gap, var(--uas--top-bar--gap));min-inline-size:0}.start{justify-content:flex-start}.center{justify-content:center}.end{justify-content:flex-end}.root:not(.has-start){grid-template-columns:var(--uas--top-bar--custom-grid-template-columns, 0 auto 1fr)}.root:not(.has-end){grid-template-columns:var(--uas--top-bar--custom-grid-template-columns, 1fr auto 0)}.root:not(.has-start):not(.has-end){grid-template-columns:var(--uas--top-bar--custom-grid-template-columns, 0 auto 0)}`;var eiW=function(e,t,i,a){var n,o=arguments.length,r=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(r=(o<3?n(r):o>3?n(t,i,r):n(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r};class eiG extends ld{constructor(){super(...arguments),this.sticky=!1,this._hasStart=!1,this._hasEnd=!1}render(){let e=["root",this._hasStart?"has-start":"",this._hasEnd?"has-end":""].filter(Boolean).join(" ");return s1` <div class=${e} part="root"> <div class="region start" part="start"> <slot name="start" @slotchange=${this._handleStartSlotChange}></slot> </div> <div class="region center" part="center"> <slot></slot> </div> <div class="region end" part="end"> <slot name="end" @slotchange=${this._handleEndSlotChange}></slot> </div> </div> `}_handleStartSlotChange(){this._hasStart=this._startElements.length>0}_handleEndSlotChange(){this._hasEnd=this._endElements.length>0}}function eiK(e,t){return+(""!==e.category)+e.integrations.length+t.length}eiG.styles=eiZ,eiW([l0({type:Boolean,reflect:!0})],eiG.prototype,"sticky",void 0),eiW([l2()],eiG.prototype,"_hasStart",void 0),eiW([l2()],eiG.prototype,"_hasEnd",void 0),eiW([l5({slot:"start"})],eiG.prototype,"_startElements",void 0),eiW([l5({slot:"end"})],eiG.prototype,"_endElements",void 0),"u">typeof customElements&&!customElements.get("uas-top-bar")&&customElements.define("uas-top-bar",eiG);let eiY={SEARCH:"search",CATEGORY:"category",INTEGRATION:"integration"},eiQ=rg({type:rT(eiY),value:oR().trim().min(1)}).strict(),eiX=ri(),eiJ=new Set;function ei1(e,t){let i=t.trim(),a=`${e}:${i.toLowerCase()}`;""===i||eiJ.has(a)||(eiJ.add(a),(async function(e){let t=eiQ.parse(e);d4.DEV.RETURN_MOCK_DATA||await dV({endpoint:"recipe-template/usage-event",responseSchema:eiX,method:"POST",data:t,useEnvelope:!1})})({type:e,value:i}).catch(()=>void 0))}rg({templates:rp(TK),categoryScopeIDs:rp(o5().int())}).strict();var ei0=a(9882),ei2=a.n(ei0),ei3=function(e,t,i,a){var n,o=arguments.length,r=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(r=(o<3?n(r):o>3?n(t,i,r):n(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r};let ei4=class extends ld{constructor(){super(...arguments),this.filter=JW,this.activeBaseFilters=[],this.categories=[],this.clearAll=()=>{(""!==this.filter.category||this.filter.integrations.length>0)&&this.changeFilter({category:"",integrations:[]}),this.activeBaseFilters.length>0&&lw({element:this,eventName:J8,data:{active:[]},schema:J7,options:{bubbles:!0,composed:!0}})}}static{this.styles=sf`${sm(ei2())}`}willUpdate(e){lQ(this,"filter",Jq,e,"uap-f-recipe-template-active-filters"),lQ(this,"activeBaseFilters",rp(JK),e,"uap-f-recipe-template-active-filters"),lQ(this,"categories",rp(TY),e,"uap-f-recipe-template-active-filters")}render(){return 0===eiK(this.filter,this.activeBaseFilters)?s3:s1` <div class="active-filters"> ${this.templateCategoryChip()} ${this.filter.integrations.map(e=>this.templateChip(s1`<uap-d-integrations-name code=${e} no-icon></uap-d-integrations-name>`,()=>this.changeFilter({integrations:this.filter.integrations.filter(t=>t!==e)}),e))} ${this.activeBaseFilters.map(e=>this.templateChip(function(e){if(e===JG.READY_TO_USE)return(0,lX.__)("Ready-to-use","uncanny-automator")}(e),()=>this.removeBaseFilter(e),void 0,e===JG.READY_TO_USE))} <button type="button" class="active-filters__clear" @click=${this.clearAll}> ${(0,lX.__)("Clear all","uncanny-automator")} </button> </div> `}templateCategoryChip(){if(""===this.filter.category)return s3;let e=this.categories.find(e=>e.slug===this.filter.category)?.name??this.filter.category;return this.templateChip(e,()=>this.changeFilter({category:""}))}templateChip(e,t,i,a=!1){return s1` <button type="button" class="active-filters__chip ${a?"active-filters__chip--ready":""}" title=${"string"==typeof e?e:i??""} aria-label=${String((0,lX.sprintf)((0,lX.__)("Remove filter: %s","uncanny-automator"),"string"==typeof e?e:i??""))} @click=${t} > <span class="active-filters__label">${e}</span> <uas-icon code="xmark" size="sm"></uas-icon> </button> `}changeFilter(e){lw({element:this,eventName:J6,data:{filter:e},schema:J5,options:{bubbles:!0,composed:!0}})}removeBaseFilter(e){lw({element:this,eventName:J8,data:{active:this.activeBaseFilters.filter(t=>t!==e)},schema:J7,options:{bubbles:!0,composed:!0}})}};ei3([l0({attribute:!1})],ei4.prototype,"filter",void 0),ei3([l0({attribute:!1})],ei4.prototype,"activeBaseFilters",void 0),ei3([l0({attribute:!1})],ei4.prototype,"categories",void 0),ei4=ei3([lJ("uap-f-recipe-template-active-filters")],ei4);var ei6=a(2503),ei5=a.n(ei6),ei8=function(e,t,i,a){var n,o=arguments.length,r=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(r=(o<3?n(r):o>3?n(t,i,r):n(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r};let ei7={[JG.READY_TO_USE]:{label:(0,lX.__)("Ready-to-use","uncanny-automator"),description:(0,lX.__)("Templates whose plugins and apps are already set up on this site.","uncanny-automator")}},ei9=class extends ld{constructor(){super(...arguments),this.baseFilters=[],this.active=[],this.disabled=!1}static{this.styles=sf`${sm(ei5())}`}willUpdate(e){lQ(this,"baseFilters",JX,e,"uap-f-recipe-template-base-filters"),lQ(this,"active",JY,e,"uap-f-recipe-template-base-filters")}render(){let e=this.disabled?Object.values(JG):this.baseFilters.map(e=>e.name);return s1` <div class="base-filters"> ${$A(e,e=>e,e=>this.templateFilter(e))} </div> `}templateFilter(e){return s1` <div class="base-filters__filter"> <label class="base-filters__label"> <input type="checkbox" class="base-filters__checkbox" value=${e} .checked=${!this.disabled&&this.active.includes(e)} ?disabled=${this.disabled} @change=${()=>this.onToggle(e)} /> <span class="base-filters__name">${ei7[e].label}</span> </label> <div class="base-filters__description">${ei7[e].description}</div> </div> `}onToggle(e){this.disabled||lw({element:this,eventName:J8,data:{active:this.active.includes(e)?this.active.filter(t=>t!==e):[...this.active,e]},schema:J7,options:{bubbles:!0,composed:!0}})}};ei8([l0({attribute:!1})],ei9.prototype,"baseFilters",void 0),ei8([l0({attribute:!1})],ei9.prototype,"active",void 0),ei8([l0({type:Boolean})],ei9.prototype,"disabled",void 0),ei9=ei8([lJ("uap-f-recipe-template-base-filters")],ei9);var eae=a(9220),eat=a.n(eae),eai=function(e,t,i,a){var n,o=arguments.length,r=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(r=(o<3?n(r):o>3?n(t,i,r):n(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r};let eaa=["8em","6em","9em","7em","5em","8em"],ean=class extends ld{constructor(){super(...arguments),this.categories=[],this.scopeTemplateIDs=[],this.activeSlug="",this.loading=!1}static{this.styles=sf`${sm(eat())}`}render(){if(this.loading)return this.templateLoading();let e=this.menuEntries();if(0===e.length)return s3;let t=e.find(e=>"all"===e.category.slug),i=e.filter(e=>"all"!==e.category.slug);return s1` <nav class="menu" aria-label=${String((0,lX.__)("Template categories","uncanny-automator"))}> ${void 0!==t?this.templateEntry(t):s3} ${$A(i,e=>e.category.slug,e=>this.templateEntry(e))} </nav> `}templateEntry(e){let t=this.activeSlug===e.category.slug;return s1` <uas-button class="menu__item ${t?"menu__item--active":""}" color="transparent" ?filled=${t} @click=${()=>this.onPick(e.category)} > <span class="menu__item-inner"> <span class="menu__item-name">${e.category.name}</span> <span class="menu__item-count">${e.count}</span> </span> </uas-button> `}templateLoading(){return s1` <div class="menu" aria-busy="true" data-test="category-menu-skeleton"> ${eaa.map(e=>s1` <uas-button class="menu__item" color="transparent" disabled aria-hidden="true"> <span class="menu__item-inner"> <span class="menu__item-name"><uas-skeleton width=${e}></uas-skeleton></span> <uas-skeleton class="menu__item-count" width="1.25em"></uas-skeleton> </span> </uas-button> `)} </div> `}menuEntries(){let e=new Set(this.scopeTemplateIDs);return this.categories.map(t=>({category:t,count:"all"===t.slug?e.size:t.template_ids.filter(t=>e.has(t)).length})).filter(e=>"all"===e.category.slug||e.count>0||e.category.slug===this.activeSlug)}onPick(e){"all"!==e.slug&&ei1(eiY.CATEGORY,e.name),lw({element:this,eventName:J6,data:{filter:{category:"all"===e.slug?"":e.slug}},schema:J5,options:{bubbles:!0,composed:!0}})}};eai([l0({attribute:!1})],ean.prototype,"categories",void 0),eai([l0({attribute:!1})],ean.prototype,"scopeTemplateIDs",void 0),eai([l0({type:String,attribute:"active-slug"})],ean.prototype,"activeSlug",void 0),eai([l0({type:Boolean})],ean.prototype,"loading",void 0),ean=eai([lJ("uap-f-recipe-template-category-menu")],ean);var eao=a(2992),ear=a.n(eao),eas=function(e,t,i,a){var n,o=arguments.length,r=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(r=(o<3?n(r):o>3?n(t,i,r):n(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r};let eal=["7em","9em","6em","8em","5em","7em"],eac=class extends ld{constructor(){super(...arguments),this.templates=[],this.scopeTemplateIDs=[],this.activeCodes=[],this.loading=!1,this.integrationsController=new vE(this,SS),this.pendingUsageCodes=new Set}static{this.styles=sf`${sm(ear())}`}updated(e){if(super.updated(e),0===this.pendingUsageCodes.size||!this.integrationsController.result.data)return;let t=[...this.pendingUsageCodes];this.pendingUsageCodes.clear(),t.forEach(e=>this.recordPick(e))}render(){if(this.loading)return this.templateLoading();let e=this.menuEntries();return 0===e.length?s3:s1` <nav class="menu" aria-label=${String((0,lX.__)("Template integrations","uncanny-automator"))}> ${$A(e,e=>e.code,e=>this.templateEntry(e))} </nav> `}templateEntry(e){let t=this.activeCodes.includes(e.code);return s1` <uas-button class="menu__item ${t?"menu__item--active":""}" color="transparent" ?filled=${t} @click=${()=>this.onPick(e.code)} > <span class="menu__item-inner"> <uap-d-integrations-name class="menu__item-name" code=${e.code}></uap-d-integrations-name> <span class="menu__item-count">${e.count}</span> </span> </uas-button> `}templateLoading(){return s1` <div class="menu" aria-busy="true" data-test="integration-menu-skeleton"> ${eal.map(e=>s1` <uas-button class="menu__item" color="transparent" disabled aria-hidden="true"> <span class="menu__item-inner"> <span class="menu__item-name menu__item-name--loading"> <uas-skeleton width="1em" height="1em"></uas-skeleton> <uas-skeleton width=${e}></uas-skeleton> </span> <uas-skeleton class="menu__item-count" width="1.25em"></uas-skeleton> </span> </uas-button> `)} </div> `}menuEntries(){let e=new Set(this.scopeTemplateIDs),t=new Map(this.activeCodes.map(e=>[e,0]));for(let i of this.templates)if(e.has(i.id))for(let e of i.integration_codes)t.set(e,(t.get(e)??0)+1);return[...t.entries()].map(([e,t])=>({code:e,count:t})).sort((e,t)=>Number(this.activeCodes.includes(t.code))-Number(this.activeCodes.includes(e.code))||t.count-e.count||e.code.localeCompare(t.code))}onPick(e){let t=!this.activeCodes.includes(e);t&&this.recordPick(e),lw({element:this,eventName:J6,data:{filter:{integrations:t?[...this.activeCodes,e]:this.activeCodes.filter(t=>t!==e)}},schema:J5,options:{bubbles:!0,composed:!0}})}recordPick(e){let t=this.integrationsController.result.data;if(!t)return void this.pendingUsageCodes.add(e);let i=t[e]?.name;i&&ei1(eiY.INTEGRATION,i)}};eas([l0({attribute:!1})],eac.prototype,"templates",void 0),eas([l0({attribute:!1})],eac.prototype,"scopeTemplateIDs",void 0),eas([l0({attribute:!1})],eac.prototype,"activeCodes",void 0),eas([l0({type:Boolean})],eac.prototype,"loading",void 0),eac=eas([lJ("uap-f-recipe-template-integration-menu")],eac);var ead=a(3092),eau=a.n(ead),eap=function(e,t,i,a){var n,o=arguments.length,r=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(r=(o<3?n(r):o>3?n(t,i,r):n(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r};let eah=class extends ld{constructor(){super(...arguments),this.filter=JW,this.baseFilters=[],this.activeBaseFilters=[],this.categoryScopeIDs=[],this.integrationScopeIDs=[],this.loading=!1}static{this.styles=sf`${sm(eau())}`}render(){return this.loading?this.templateLoading():this.templateContent()}templateContent(){return s1` <uas-sidebar class="rail" surface="flat" width="auto"> <uas-sidebar-section id="requirements" > <span slot="heading">${(0,lX.__)("Requirements","uncanny-automator")}</span> <uap-f-recipe-template-base-filters .baseFilters=${this.baseFilters} .active=${this.activeBaseFilters} ></uap-f-recipe-template-base-filters> </uas-sidebar-section> <uas-sidebar-section id="categories" > <span slot="heading">${(0,lX.__)("Categories","uncanny-automator")}</span> <uap-f-recipe-template-category-menu .categories=${this.library?.categories??[]} .scopeTemplateIDs=${this.categoryScopeIDs} active-slug=${""===this.filter.category?"all":this.filter.category} ></uap-f-recipe-template-category-menu> </uas-sidebar-section> <uas-sidebar-section id="integrations" > <span slot="heading">${(0,lX.__)("Integrations","uncanny-automator")}</span> <uap-f-recipe-template-integration-menu .templates=${this.library?.templates??[]} .scopeTemplateIDs=${this.integrationScopeIDs} .activeCodes=${this.filter.integrations} ></uap-f-recipe-template-integration-menu> </uas-sidebar-section> </uas-sidebar> `}templateLoading(){return s1` <uas-sidebar class="rail" surface="flat" aria-busy="true" data-test="sidebar-skeleton" width="auto"> <uas-sidebar-section id="requirements" > <span slot="heading">${(0,lX.__)("Requirements","uncanny-automator")}</span> <uap-f-recipe-template-base-filters disabled></uap-f-recipe-template-base-filters> </uas-sidebar-section> <uas-sidebar-section id="categories" > <span slot="heading">${(0,lX.__)("Categories","uncanny-automator")}</span> <uap-f-recipe-template-category-menu loading></uap-f-recipe-template-category-menu> </uas-sidebar-section> <uas-sidebar-section id="integrations" > <span slot="heading">${(0,lX.__)("Integrations","uncanny-automator")}</span> <uap-f-recipe-template-integration-menu loading></uap-f-recipe-template-integration-menu> </uas-sidebar-section> </uas-sidebar> `}};eap([l0({attribute:!1})],eah.prototype,"library",void 0),eap([l0({attribute:!1})],eah.prototype,"filter",void 0),eap([l0({attribute:!1})],eah.prototype,"baseFilters",void 0),eap([l0({attribute:!1})],eah.prototype,"activeBaseFilters",void 0),eap([l0({attribute:!1})],eah.prototype,"categoryScopeIDs",void 0),eap([l0({attribute:!1})],eah.prototype,"integrationScopeIDs",void 0),eap([l0({type:Boolean})],eah.prototype,"loading",void 0),eah=eap([lJ("uap-f-recipe-template-sidebar")],eah);let eag={loop:"loop loops",filter:"filter filters condition conditions",delay_schedule:"delay delays schedule scheduled wait"};function eam(e){return e.normalize("NFD").replace(/[̀-ͯ]/g,"").toLowerCase().split(/[^\p{L}\p{N}]+/u).filter(e=>""!==e)}function eaf(e,t){return e.some(e=>e.startsWith(t))}var eay=a(2486),eab=a.n(eay),eav=function(e,t,i,a){var n,o=arguments.length,r=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(r=(o<3?n(r):o>3?n(t,i,r):n(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r};let ea_=class extends ld{constructor(){super(...arguments),this.templates=[],this.query="",this.disabled=!1,this.searchIndex=null,this.indexedIntegrations=void 0,this.integrationsController=new vE(this,SS),this.lastDispatchedQuery=null,this.debouncedSearch=Ft(e=>this.runSearch(e),400),this.lastTypedQuery=null,this.debouncedRecord=Ft(e=>ei1(eiY.SEARCH,e),2e3)}static{this.styles=sf`${sm(eab())}`}disconnectedCallback(){super.disconnectedCallback(),this.debouncedRecord.clear()}updated(e){e.has("templates")&&(this.searchIndex=null),e.has("query")&&this.query!==this.lastTypedQuery&&this.debouncedRecord.clear(),null===this.lastDispatchedQuery&&""!==this.query&&this.templates.length>0&&this.runSearch(this.query)}render(){return s1` <div class="search"> <uas-icon class="search__icon" code="magnifying-glass"></uas-icon> <input class="search__input" type="search" .value=${this.query} placeholder=${String((0,lX.__)("Search templates","uncanny-automator"))} aria-label=${String((0,lX.__)("Search templates","uncanny-automator"))} ?disabled=${this.disabled} @input=${this.onInput} /> </div> `}onInput(e){!this.disabled&&e.target instanceof HTMLInputElement&&(this.lastTypedQuery=e.target.value,this.debouncedSearch(e.target.value),this.debouncedRecord(e.target.value))}runSearch(e){if(this.lastDispatchedQuery=e,""===e.trim())return void lw({element:this,eventName:J6,data:{filter:{search:""}},schema:J5,options:{bubbles:!0,composed:!0}});let t=this.search(e);lw({element:this,eventName:J6,data:{filter:{search:e},templateIDs:t},schema:J5,options:{bubbles:!0,composed:!0}})}search(e){var t,i,a;let n,o=this.integrationsController.result.data;return(null===this.searchIndex||this.indexedIntegrations!==o)&&(this.searchIndex=(t=this.templates,i=e=>o?.[e]?.name,t.map(e=>{let t=eam(e.title),a=e.integration_codes.map(e=>i(e)??"").join(" "),n=[e.description,e.integration_codes.join(" "),a,...e.blocks.map(e=>eag[e]??e)].join(" ");return{id:e.id,titleWords:t,words:[...new Set([...t,...eam(n)])],integrationWords:[...new Set(eam(a).filter(e=>e.length>=3))]}})),this.indexedIntegrations=o),a=this.searchIndex,0===(n=eam(e)).length?[]:a.filter(e=>n.every(t=>eaf(e.words,t)||e.integrationWords.some(e=>t.startsWith(e)))).map(e=>({id:e.id,titleScore:n.filter(t=>eaf(e.titleWords,t)).length})).sort((e,t)=>t.titleScore-e.titleScore).map(e=>e.id)}};eav([l0({attribute:!1})],ea_.prototype,"templates",void 0),eav([l0({type:String})],ea_.prototype,"query",void 0),eav([l0({type:Boolean})],ea_.prototype,"disabled",void 0),ea_=eav([lJ("uap-f-recipe-template-search")],ea_);function eaw(e,t,i,a){var n,o=arguments.length,r=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(r=(o<3?n(r):o>3?n(t,i,r):n(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r}class eax extends Event{constructor(e){super(eax.eventName,{bubbles:!1}),this.first=e.first,this.last=e.last}}eax.eventName="rangeChanged";class eak extends Event{constructor(e){super(eak.eventName,{bubbles:!1}),this.first=e.first,this.last=e.last}}eak.eventName="visibilityChanged";class eaE extends Event{constructor(){super(eaE.eventName,{bubbles:!1})}}eaE.eventName="unpinned";class eaS{constructor(e){this._element=null;let t=e??window;this._node=t,e&&(this._element=e)}get element(){return this._element||document.scrollingElement||document.documentElement}get scrollTop(){return this.element.scrollTop||window.scrollY}get scrollLeft(){return this.element.scrollLeft||window.scrollX}get scrollHeight(){return this.element.scrollHeight}get scrollWidth(){return this.element.scrollWidth}get viewportHeight(){return this._element?this._element.getBoundingClientRect().height:window.innerHeight}get viewportWidth(){return this._element?this._element.getBoundingClientRect().width:window.innerWidth}get maxScrollTop(){return this.scrollHeight-this.viewportHeight}get maxScrollLeft(){return this.scrollWidth-this.viewportWidth}}class eaC extends eaS{constructor(e,t){super(t),this._clients=new Set,this._retarget=null,this._end=null,this.__destination=null,this.correctingScrollError=!1,this._checkForArrival=this._checkForArrival.bind(this),this._updateManagedScrollTo=this._updateManagedScrollTo.bind(this),this.scrollTo=this.scrollTo.bind(this),this.scrollBy=this.scrollBy.bind(this);let i=this._node;this._originalScrollTo=i.scrollTo,this._originalScrollBy=i.scrollBy,this._originalScroll=i.scroll,this._attach(e)}get _destination(){return this.__destination}get scrolling(){return null!==this._destination}scrollTo(e,t){this._scrollTo("number"==typeof e&&"number"==typeof t?{left:e,top:t}:e)}scrollBy(e,t){let i="number"==typeof e&&"number"==typeof t?{left:e,top:t}:e;void 0!==i.top&&(i.top+=this.scrollTop),void 0!==i.left&&(i.left+=this.scrollLeft),this._scrollTo(i)}_nativeScrollTo(e){this._originalScrollTo.bind(this._element||window)(e)}_scrollTo(e,t=null,i=null){null!==this._end&&this._end(),"smooth"===e.behavior?(this._setDestination(e),this._retarget=t,this._end=i):this._resetScrollState(),this._nativeScrollTo(e)}_setDestination(e){let{top:t,left:i}=e;return t=void 0===t?void 0:Math.max(0,Math.min(t,this.maxScrollTop)),i=void 0===i?void 0:Math.max(0,Math.min(i,this.maxScrollLeft)),(null===this._destination||i!==this._destination.left||t!==this._destination.top)&&(this.__destination={top:t,left:i,behavior:"smooth"},!0)}_resetScrollState(){this.__destination=null,this._retarget=null,this._end=null}_updateManagedScrollTo(e){this._destination&&this._setDestination(e)&&this._nativeScrollTo(this._destination)}managedScrollTo(e,t,i){return this._scrollTo(e,t,i),this._updateManagedScrollTo}correctScrollError(e){this.correctingScrollError=!0,requestAnimationFrame(()=>requestAnimationFrame(()=>this.correctingScrollError=!1)),this._nativeScrollTo(e),this._retarget&&this._setDestination(this._retarget()),this._destination&&this._nativeScrollTo(this._destination)}_checkForArrival(){if(null!==this._destination){let{scrollTop:e,scrollLeft:t}=this,{top:i,left:a}=this._destination;i=Math.min(i||0,this.maxScrollTop);let n=Math.abs((a=Math.min(a||0,this.maxScrollLeft))-t);1>Math.abs(i-e)&&n<1&&(this._end&&this._end(),this._resetScrollState())}}detach(e){return this._clients.delete(e),0===this._clients.size&&(this._node.scrollTo=this._originalScrollTo,this._node.scrollBy=this._originalScrollBy,this._node.scroll=this._originalScroll,this._node.removeEventListener("scroll",this._checkForArrival)),null}_attach(e){this._clients.add(e),1===this._clients.size&&(this._node.scrollTo=this.scrollTo,this._node.scrollBy=this.scrollBy,this._node.scroll=this.scrollTo,this._node.addEventListener("scroll",this._checkForArrival))}}let eaT="u">typeof window?window.ResizeObserver:void 0,eaI=Symbol("virtualizerRef"),eaD="virtualizer-sizer";class eaA{constructor(e){if(this._benchmarkStart=null,this._layout=null,this._clippingAncestors=[],this._scrollSize=null,this._scrollError=null,this._childrenPos=null,this._childMeasurements=null,this._toBeMeasured=new Map,this._rangeChanged=!0,this._itemsChanged=!0,this._visibilityChanged=!0,this._scrollerController=null,this._isScroller=!1,this._sizer=null,this._hostElementRO=null,this._childrenRO=null,this._mutationObserver=null,this._scrollEventListeners=[],this._scrollEventListenerOptions={passive:!0},this._loadListener=this._childLoaded.bind(this),this._scrollIntoViewTarget=null,this._updateScrollIntoViewCoordinates=null,this._items=[],this._first=-1,this._last=-1,this._firstVisible=-1,this._lastVisible=-1,this._scheduled=new WeakSet,this._measureCallback=null,this._measureChildOverride=null,this._layoutCompletePromise=null,this._layoutCompleteResolver=null,this._layoutCompleteRejecter=null,this._pendingLayoutComplete=null,this._layoutInitialized=null,this._connected=!1,!e)throw Error("Virtualizer constructor requires a configuration object");if(e.hostElement)this._init(e);else throw Error('Virtualizer configuration requires the "hostElement" property')}set items(e){Array.isArray(e)&&e!==this._items&&(this._itemsChanged=!0,this._items=e,this._schedule(this._updateLayout))}_init(e){this._isScroller=!!e.scroller,this._initHostElement(e);let t=e.layout||{};this._layoutInitialized=this._initLayout(t)}_initObservers(){this._mutationObserver=new MutationObserver(this._finishDOMUpdate.bind(this)),this._hostElementRO=new eaT(()=>this._hostElementSizeChanged()),this._childrenRO=new eaT(this._childrenSizeChanged.bind(this))}_initHostElement(e){let t=this._hostElement=e.hostElement;this._applyVirtualizerStyles(),t[eaI]=this}connected(){this._initObservers();let e=this._isScroller;this._clippingAncestors=function(e,t=!1){let i=!1;return(function(e,t=!1){let i=[],a=t?e:eaO(e);for(;null!==a;)i.push(a),a=eaO(a);return i})(e,t).filter(e=>{if(i)return!1;let t=getComputedStyle(e);return i="fixed"===t.position,"visible"!==t.overflow})}(this._hostElement,e),this._scrollerController=new eaC(this,this._clippingAncestors[0]),this._schedule(this._updateLayout),this._observeAndListen(),this._connected=!0}_observeAndListen(){this._mutationObserver.observe(this._hostElement,{childList:!0}),this._hostElementRO.observe(this._hostElement),this._scrollEventListeners.push(window),window.addEventListener("scroll",this,this._scrollEventListenerOptions),this._clippingAncestors.forEach(e=>{e.addEventListener("scroll",this,this._scrollEventListenerOptions),this._scrollEventListeners.push(e),this._hostElementRO.observe(e)}),this._hostElementRO.observe(this._scrollerController.element),this._children.forEach(e=>this._childrenRO.observe(e)),this._scrollEventListeners.forEach(e=>e.addEventListener("scroll",this,this._scrollEventListenerOptions))}disconnected(){this._scrollEventListeners.forEach(e=>e.removeEventListener("scroll",this,this._scrollEventListenerOptions)),this._scrollEventListeners=[],this._clippingAncestors=[],this._scrollerController?.detach(this),this._scrollerController=null,this._mutationObserver?.disconnect(),this._mutationObserver=null,this._hostElementRO?.disconnect(),this._hostElementRO=null,this._childrenRO?.disconnect(),this._childrenRO=null,this._rejectLayoutCompletePromise("disconnected"),this._connected=!1}_applyVirtualizerStyles(){let e=this._hostElement.style;e.display=e.display||"block",e.position=e.position||"relative",e.contain=e.contain||"size layout",this._isScroller&&(e.overflow=e.overflow||"auto",e.minHeight=e.minHeight||"150px")}_getSizer(){let e=this._hostElement;if(!this._sizer){let t=e.querySelector(`[${eaD}]`);t||((t=document.createElement("div")).setAttribute(eaD,""),e.appendChild(t)),Object.assign(t.style,{position:"absolute",margin:"-2px 0 0 0",padding:0,visibility:"hidden",fontSize:"2px"}),t.textContent=" ",t.setAttribute(eaD,""),this._sizer=t}return this._sizer}async updateLayoutConfig(e){await this._layoutInitialized;let t=e.type||ex;if("function"==typeof t&&this._layout instanceof t){let t={...e};return delete t.type,this._layout.config=t,!0}return!1}async _initLayout(e){let t,i;if("function"==typeof e.type){i=e.type;let a={...e};delete a.type,t=a}else t=e;void 0===i&&(ex=i=(await Promise.resolve().then(()=>a(5896))).FlowLayout),this._layout=new i(e=>this._handleLayoutMessage(e),t),this._layout.measureChildren&&"function"==typeof this._layout.updateItemSizes&&("function"==typeof this._layout.measureChildren&&(this._measureChildOverride=this._layout.measureChildren),this._measureCallback=this._layout.updateItemSizes.bind(this._layout)),this._layout.listenForChildLoadEvents&&this._hostElement.addEventListener("load",this._loadListener,!0),this._schedule(this._updateLayout)}startBenchmarking(){null===this._benchmarkStart&&(this._benchmarkStart=window.performance.now())}stopBenchmarking(){if(null!==this._benchmarkStart){let e=window.performance.now(),t=e-this._benchmarkStart,i=performance.getEntriesByName("uv-virtualizing","measure").filter(t=>t.startTime>=this._benchmarkStart&&t.startTime<e).reduce((e,t)=>e+t.duration,0);return this._benchmarkStart=null,{timeElapsed:t,virtualizationTime:i}}return null}_measureChildren(){let e={},t=this._children,i=this._measureChildOverride||this._measureChild;for(let a=0;a<t.length;a++){let n=t[a],o=this._first+a;(this._itemsChanged||this._toBeMeasured.has(n))&&(e[o]=i.call(this,n,this._items[o]))}this._childMeasurements=e,this._schedule(this._updateLayout),this._toBeMeasured.clear()}_measureChild(e){var t;let i,{width:a,height:n}=e.getBoundingClientRect();return Object.assign({width:a,height:n},(t=e,{marginTop:ea$((i=window.getComputedStyle(t)).marginTop),marginRight:ea$(i.marginRight),marginBottom:ea$(i.marginBottom),marginLeft:ea$(i.marginLeft)}))}async _schedule(e){this._scheduled.has(e)||(this._scheduled.add(e),await Promise.resolve(),this._scheduled.delete(e),e.call(this))}async _updateDOM(e){this._scrollSize=e.scrollSize,this._adjustRange(e.range),this._childrenPos=e.childPositions,this._scrollError=e.scrollError||null;let{_rangeChanged:t,_itemsChanged:i}=this;this._visibilityChanged&&(this._notifyVisibility(),this._visibilityChanged=!1),(t||i)&&(this._notifyRange(),this._rangeChanged=!1),this._finishDOMUpdate()}_finishDOMUpdate(){this._connected&&(this._children.forEach(e=>this._childrenRO.observe(e)),this._checkScrollIntoViewTarget(this._childrenPos),this._positionChildren(this._childrenPos),this._sizeHostElement(this._scrollSize),this._correctScrollError(),this._benchmarkStart&&"mark"in window.performance&&window.performance.mark("uv-end"))}_updateLayout(){this._layout&&this._connected&&(this._layout.items=this._items,this._updateView(),null!==this._childMeasurements&&(this._measureCallback&&this._measureCallback(this._childMeasurements),this._childMeasurements=null),this._layout.reflowIfNeeded(),this._benchmarkStart&&"mark"in window.performance&&window.performance.mark("uv-end"))}_handleScrollEvent(){if(this._benchmarkStart&&"mark"in window.performance){try{window.performance.measure("uv-virtualizing","uv-start","uv-end")}catch(e){console.warn("Error measuring performance data: ",e)}window.performance.mark("uv-start")}!1===this._scrollerController.correctingScrollError&&this._layout?.unpin(),this._schedule(this._updateLayout)}handleEvent(e){"scroll"===e.type?(e.currentTarget===window||this._clippingAncestors.includes(e.currentTarget))&&this._handleScrollEvent():console.warn("event not handled",e)}_handleLayoutMessage(e){"stateChanged"===e.type?this._updateDOM(e):"visibilityChanged"===e.type?(this._firstVisible=e.firstVisible,this._lastVisible=e.lastVisible,this._notifyVisibility()):"unpinned"===e.type&&this._hostElement.dispatchEvent(new eaE)}get _children(){let e=[],t=this._hostElement.firstElementChild;for(;t;)t.hasAttribute(eaD)||e.push(t),t=t.nextElementSibling;return e}_updateView(){let e=this._hostElement,t=this._scrollerController?.element,i=this._layout;if(e&&t&&i){let a,n,o,r,s=e.getBoundingClientRect();a=0,n=0,o=window.innerHeight,r=window.innerWidth;let l=this._clippingAncestors.map(e=>e.getBoundingClientRect());for(let e of(l.unshift(s),l))a=Math.max(a,e.top),n=Math.max(n,e.left),o=Math.min(o,e.bottom),r=Math.min(r,e.right);let c=t.getBoundingClientRect(),d={left:s.left-c.left,top:s.top-c.top},u={width:t.scrollWidth,height:t.scrollHeight},p=a-s.top+e.scrollTop,h=n-s.left+e.scrollLeft;i.viewportSize={width:Math.max(0,r-n),height:Math.max(0,o-a)},i.viewportScroll={top:p,left:h},i.totalScrollSize=u,i.offsetWithinScroller=d}}_sizeHostElement(e){let t=e&&null!==e.width?Math.min(82e5,e.width):0,i=e&&null!==e.height?Math.min(82e5,e.height):0;if(this._isScroller)this._getSizer().style.transform=`translate(${t}px, ${i}px)`;else{let e=this._hostElement.style;e.minWidth=t?`${t}px`:"100%",e.minHeight=i?`${i}px`:"100%"}}_positionChildren(e){e&&e.forEach(({top:e,left:t,width:i,height:a,xOffset:n,yOffset:o},r)=>{let s=this._children[r-this._first];s&&(s.style.position="absolute",s.style.boxSizing="border-box",s.style.transform=`translate(${t}px, ${e}px)`,void 0!==i&&(s.style.width=i+"px"),void 0!==a&&(s.style.height=a+"px"),s.style.left=void 0===n?null:n+"px",s.style.top=void 0===o?null:o+"px")})}async _adjustRange(e){let{_first:t,_last:i,_firstVisible:a,_lastVisible:n}=this;this._first=e.first,this._last=e.last,this._firstVisible=e.firstVisible,this._lastVisible=e.lastVisible,this._rangeChanged=this._rangeChanged||this._first!==t||this._last!==i,this._visibilityChanged=this._visibilityChanged||this._firstVisible!==a||this._lastVisible!==n}_correctScrollError(){if(this._scrollError){let{scrollTop:e,scrollLeft:t}=this._scrollerController,{top:i,left:a}=this._scrollError;this._scrollError=null,this._scrollerController.correctScrollError({top:e-i,left:t-a})}}element(e){return 1/0===e&&(e=this._items.length-1),this._items?.[e]===void 0?void 0:{scrollIntoView:(t={})=>this._scrollElementIntoView({...t,index:e})}}_scrollElementIntoView(e){if(e.index>=this._first&&e.index<=this._last)this._children[e.index-this._first].scrollIntoView(e);else if(e.index=Math.min(e.index,this._items.length-1),"smooth"===e.behavior){let t=this._layout.getScrollIntoViewCoordinates(e),{behavior:i}=e;this._updateScrollIntoViewCoordinates=this._scrollerController.managedScrollTo(Object.assign(t,{behavior:i}),()=>this._layout.getScrollIntoViewCoordinates(e),()=>this._scrollIntoViewTarget=null),this._scrollIntoViewTarget=e}else this._layout.pin=e}_checkScrollIntoViewTarget(e){let{index:t}=this._scrollIntoViewTarget||{};t&&e?.has(t)&&this._updateScrollIntoViewCoordinates(this._layout.getScrollIntoViewCoordinates(this._scrollIntoViewTarget))}_notifyRange(){this._hostElement.dispatchEvent(new eax({first:this._first,last:this._last}))}_notifyVisibility(){this._hostElement.dispatchEvent(new eak({first:this._firstVisible,last:this._lastVisible}))}get layoutComplete(){return this._layoutCompletePromise||(this._layoutCompletePromise=new Promise((e,t)=>{this._layoutCompleteResolver=e,this._layoutCompleteRejecter=t})),this._layoutCompletePromise}_rejectLayoutCompletePromise(e){null!==this._layoutCompleteRejecter&&this._layoutCompleteRejecter(e),this._resetLayoutCompleteState()}_scheduleLayoutComplete(){this._layoutCompletePromise&&null===this._pendingLayoutComplete&&(this._pendingLayoutComplete=requestAnimationFrame(()=>requestAnimationFrame(()=>this._resolveLayoutCompletePromise())))}_resolveLayoutCompletePromise(){null!==this._layoutCompleteResolver&&this._layoutCompleteResolver(),this._resetLayoutCompleteState()}_resetLayoutCompleteState(){this._layoutCompletePromise=null,this._layoutCompleteResolver=null,this._layoutCompleteRejecter=null,this._pendingLayoutComplete=null}_hostElementSizeChanged(){this._schedule(this._updateLayout)}_childLoaded(){}_childrenSizeChanged(e){if(this._layout?.measureChildren){for(let t of e)this._toBeMeasured.set(t.target,t.contentRect);this._measureChildren()}this._scheduleLayoutComplete(),this._itemsChanged=!1,this._rangeChanged=!1}}function ea$(e){let t=e?parseFloat(e):0/0;return Number.isNaN(t)?0:t}function eaO(e){if(null!==e.assignedSlot)return e.assignedSlot;if(null!==e.parentElement)return e.parentElement;let t=e.parentNode;return t&&t.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&t.host||null}let eaR=e=>e,eaM=(e,t)=>s1`${t}: ${JSON.stringify(e,null,2)}`,eaL=cr(class extends Fx{constructor(e){if(super(e),this._virtualizer=null,this._first=0,this._last=-1,this._renderItem=(e,t)=>eaM(e,t+this._first),this._keyFunction=(e,t)=>eaR(e,this._first),this._items=[],2!==e.type)throw Error("The virtualize directive can only be used in child expressions")}render(e){e&&this._setFunctions(e);let t=[];if(this._first>=0&&this._last>=this._first)for(let e=this._first;e<=this._last;e++)t.push(this._items[e]);return $A(t,this._keyFunction,this._renderItem)}update(e,[t]){this._setFunctions(t);let i=this._items!==t.items;return this._items=t.items||[],this._virtualizer?this._updateVirtualizerConfig(e,t):this._initialize(e,t),i?s2:this.render()}async _updateVirtualizerConfig(e,t){if(!await this._virtualizer.updateLayoutConfig(t.layout||{})){let i=e.parentNode;this._makeVirtualizer(i,t)}this._virtualizer.items=this._items}_setFunctions(e){let{renderItem:t,keyFunction:i}=e;t&&(this._renderItem=(e,i)=>t(e,i+this._first)),i&&(this._keyFunction=(e,t)=>i(e,t+this._first))}_makeVirtualizer(e,t){this._virtualizer&&this._virtualizer.disconnected();let{layout:i,scroller:a,items:n}=t;this._virtualizer=new eaA({hostElement:e,layout:i,scroller:a}),this._virtualizer.items=n,this._virtualizer.connected()}_initialize(e,t){let i=e.parentNode;i&&1===i.nodeType&&(i.addEventListener("rangeChanged",e=>{this._first=e.first,this._last=e.last,this.setValue(this.render())}),this._makeVirtualizer(i,t))}disconnected(){this._virtualizer?.disconnected()}reconnected(){this._virtualizer?.connected()}});class eaN extends ld{constructor(){super(...arguments),this.items=[],this.renderItem=eaM,this.keyFunction=eaR,this.layout={},this.scroller=!1}createRenderRoot(){return this}render(){let{items:e,renderItem:t,keyFunction:i,layout:a,scroller:n}=this;return s1`${eaL({items:e,renderItem:t,keyFunction:i,layout:a,scroller:n})}`}element(e){return this[eaI]?.element(e)}get layoutComplete(){return this[eaI]?.layoutComplete}scrollToIndex(e,t="start"){this.element(e)?.scrollIntoView({block:t})}}eaw([l0({attribute:!1})],eaN.prototype,"items",void 0),eaw([l0()],eaN.prototype,"renderItem",void 0),eaw([l0()],eaN.prototype,"keyFunction",void 0),eaw([l0({attribute:!1})],eaN.prototype,"layout",void 0),eaw([l0({reflect:!0,type:Boolean})],eaN.prototype,"scroller",void 0),customElements.define("lit-virtualizer",eaN);var eaP=a(5896),eaz=a(8357),eaU=a.n(eaz),eaF=function(e,t,i,a){var n,o=arguments.length,r=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(r=(o<3?n(r):o>3?n(t,i,r):n(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r};let eaj=class extends ld{constructor(){super(...arguments),this.categories=[],this.loading=!1,this.detailRoutePrefix=Nc}static{this.styles=sf`${sm(eaU())}`}willUpdate(e){lQ(this,"detailRoutePrefix",een,e,"uap-f-recipe-template-card",Nc),lQ(this,"categories",rp(TY),e,"uap-f-recipe-template-card")}render(){return this.loading?this.templateLoading():void 0===this.template?s3:s1` <button type="button" class="card" @click=${this.onOpen}> <span class="card__title">${this.template.title}</span> ${this.templateTags()} ${this.templateRequires()} </button> `}templateLoading(){return s1` <div class="card card--loading" aria-busy="true" data-test="card-skeleton"> <div class="card__title-skeleton"> <uas-skeleton width="90%"></uas-skeleton> <uas-skeleton width="55%"></uas-skeleton> </div> <div class="card__tags"> <uas-skeleton width="3em"></uas-skeleton> <uas-skeleton width="5em"></uas-skeleton> </div> <div class="card__requires"> <uas-skeleton width="4em"></uas-skeleton> <uas-skeleton width="7em"></uas-skeleton> <uas-skeleton width="9em"></uas-skeleton> </div> </div> `}templateRequires(){let e=this.template?.integration_codes??[];return 0===e.length?s3:s1` <span class="card__requires"> <span class="card__requires-label">${(0,lX.__)("Requires","uncanny-automator")}</span> <span class="card__requires-list" role="list"> ${e.map(e=>s1` <uap-d-integrations-name class="card__requires-item" role="listitem" code=${e}></uap-d-integrations-name> `)} </span> </span> `}templateTags(){return void 0===this.template||0===this.categories.length&&0===this.template.tags.length?s3:s1` <span class="card__tags"> ${this.template.tags.map(e=>s1` <uas-chip class="card__tag" label=${e.label} icon=${e.icon??s3} color=${e.color??s3} size="sm" filled></uas-chip> `)} ${$A(this.categories,e=>e.id,e=>s1`<uas-chip class="card__category" label=${e.name} color="neutral" size="sm" filled></uas-chip>`)} </span> `}onOpen(){void 0!==this.template&&(window.location.hash=eiC(this.template.id,this.detailRoutePrefix))}};eaF([l0({attribute:!1})],eaj.prototype,"template",void 0),eaF([l0({attribute:!1})],eaj.prototype,"categories",void 0),eaF([l0({type:Boolean})],eaj.prototype,"loading",void 0),eaF([l0({attribute:"detail-route-prefix"})],eaj.prototype,"detailRoutePrefix",void 0),eaj=eaF([lJ("uap-f-recipe-template-card")],eaj),ry([rT(["lead"]),TK]);var eaB=a(8062),eaH=a.n(eaB),eaV=function(e,t,i,a){var n,o=arguments.length,r=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(r=(o<3?n(r):o>3?n(t,i,r):n(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r};let eaq=class extends ld{constructor(){super(...arguments),this.templates=[],this.categories=[],this.showCreateCard=!1,this.hideCreateCard=!1,this.detailRoutePrefix=Nc,this.sizeController=new vp(this)}static{this.styles=sf`${sm(eaH())}`}get columns(){var e;return(e=this.sizeController.width)<=0?1:Math.max(1,Math.floor((e+16)/296))}willUpdate(e){lQ(this,"detailRoutePrefix",een,e,"uap-f-recipe-template-grid",Nc)}cells(){return this.showCreateCard?["lead",...this.templates]:[...this.templates]}render(){if(0===this.templates.length)return s1` ${this.hideCreateCard?s3:s1` <div class="grid grid--empty"> ${this.templateCreateCard()} </div> `} <div class="grid__empty-message"> ${(0,lX.__)("No templates match the current filters.","uncanny-automator")} </div> `;let e=this.columns,t=function(e,t){let i=Math.max(1,t),a=[];for(let t=0;t<e.length;t+=i)a.push(e.slice(t,t+i));return a}(this.cells(),e);return s1` <lit-virtualizer class="grid" .layout=${(0,eaP.flow)()} .items=${t} .keyFunction=${(e,t)=>t} .renderItem=${(i,a)=>this.templateRow(t[a]??[],e)} ></lit-virtualizer> `}templateRow(e,t){return s1` <div class="grid__row" style=${cd({"grid-template-columns":`repeat( ${t}, minmax( 0, 1fr ) )`})} > ${e.map(e=>this.templateCell(e))} </div> `}templateCell(e){return"lead"===e?this.templateCreateCard():s1` <div class="grid__cell"> <uap-f-recipe-template-card .template=${e} .categories=${eiR(e.id,this.categories)} detail-route-prefix=${this.detailRoutePrefix} ></uap-f-recipe-template-card> </div> `}templateCreateCard(){return s1` <div class="grid__cell"> <div class="create-card"> <uas-icon class="create-card__icon" code="wand-magic-sparkles" icon-style="regular" icon-pack="duotone"></uas-icon> <div class="create-card__heading"> ${(0,lX.__)("Build your own recipe","uncanny-automator")} </div> <div class="create-card__description"> ${(0,lX.__)("Create powerful workflows to streamline your tasks","uncanny-automator")} </div> <uas-button class="create-card__button" color="transparent" href=${"post-new.php?post_type=uo-recipe"}> ${(0,lX.__)("Create a recipe","uncanny-automator")} </uas-button> </div> </div> `}};eaV([l0({attribute:!1})],eaq.prototype,"templates",void 0),eaV([l0({attribute:!1})],eaq.prototype,"categories",void 0),eaV([l0({type:Boolean,attribute:"show-create-card"})],eaq.prototype,"showCreateCard",void 0),eaV([l0({type:Boolean,attribute:"hide-create-card"})],eaq.prototype,"hideCreateCard",void 0),eaV([l0({attribute:"detail-route-prefix"})],eaq.prototype,"detailRoutePrefix",void 0),eaq=eaV([lJ("uap-f-recipe-template-grid")],eaq);var eaZ=a(8488),eaW=a.n(eaZ),eaG=function(e,t,i,a){var n,o=arguments.length,r=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(r=(o<3?n(r):o>3?n(t,i,r):n(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r};let eaK=class extends ld{constructor(){super(...arguments),this.filter=JW,this.activeBaseFilters=[],this.searchTemplateIDs=null,this.filtersOpen=!1,this.libraryController=new vE(this,eiN()),this.cachedBaseFilters=null,this.onClose=()=>{lw({element:this,eventName:"uap.f.recipe-template.close",data:{},schema:eet,options:{bubbles:!0,composed:!0}})},this.onToggleFilters=()=>{this.$sidebarSheet.toggleSideSheet()},this.onFiltersChange=e=>{this.filtersOpen=e.detail.open},this.onFilterChange=e=>{let{filter:t,templateIDs:i}=e.detail;this.filter={...this.filter,...t},void 0!==t.search&&(this.searchTemplateIDs=""===t.search.trim()?null:i??[]),this.isImportMode||this.syncURL()},this.onBaseFilterChange=e=>{this.activeBaseFilters=e.detail.active}}static{this.styles=sf`${sm(eaW())}`}get isImportMode(){return void 0!==this.importIntoRecipeID}get detailRoutePrefix(){return this.isImportMode?No:Nc}willUpdate(e){let t,i;lQ(this,"importIntoRecipeID",eea,e,"uap-f-recipe-template"),this.hasUpdated||this.isImportMode||(this.filter=(t=lZ(J1)??"",i=(lZ(J0)??"").split(",").map(e=>e.trim()).filter(e=>""!==e),{search:lZ(JJ)??"",category:"all"===t?"":t,integrations:[...new Set(i)]}))}render(){return s1` ${this.templateBody()} ${eiq(this.detailRoutePrefix,s1` <uap-f-recipe-template-dialog detail-route-prefix=${this.detailRoutePrefix} import-into-recipe-id=${this.importIntoRecipeID??s3} ></uap-f-recipe-template-dialog> `)} `}templateBody(){var e,t,i,a,n;let o,r,s,l,c,d,{data:u,isLoading:p,isError:h}=this.libraryController.result;if(h)return this.templateError();if(p||void 0===u)return this.templateLoading();let g=this.baseFilters(u),m=this.baseTemplateIDs(u,g),f=""===this.filter.search.trim()?null:this.searchTemplateIDs??[],y=(e=this.filter,r=new Set(m),s=null===f?null:new Set(f),l=u.templates.filter(t=>r.has(t.id)&&(null===s||s.has(t.id))&&e.integrations.every(e=>t.integration_codes.includes(e))),t=u,d=null===(c=""===(i=e.category)||"all"===i?null:new Set(t.categories.find(e=>e.slug===i)?.template_ids??[]))?l:l.filter(e=>c.has(e.id)),{templates:null===f?[...d].sort((e,t)=>e.title.localeCompare(t.title,void 0,{sensitivity:"base"})||e.id-t.id):(a=d,n=f,o=new Map(a.map(e=>[e.id,e])),n.map(e=>o.get(e)).filter(e=>void 0!==e)),categoryScopeIDs:l.map(e=>e.id)});return this.templateShell(s1` <uap-f-recipe-template-search .templates=${u.templates} query=${this.filter.search} ></uap-f-recipe-template-search> `,s1` <uap-f-recipe-template-sidebar .library=${u} .filter=${this.filter} .baseFilters=${g} .activeBaseFilters=${this.activeBaseFilters} .categoryScopeIDs=${y.categoryScopeIDs} .integrationScopeIDs=${y.templates.map(e=>e.id)} ></uap-f-recipe-template-sidebar> `,s1` <uap-f-recipe-template-grid .templates=${y.templates} .categories=${u.categories} ?show-create-card=${!this.isImportMode&&this.isUnfiltered} ?hide-create-card=${this.isImportMode} detail-route-prefix=${this.detailRoutePrefix} ></uap-f-recipe-template-grid> `,!1,u.categories)}templateShell(e,t,i,a=!1,n=null){return s1` <div class="library" @uap.f.recipe-template.filter-change=${this.onFilterChange} @uap.f.recipe-template.base-filter-change=${this.onBaseFilterChange} > <uas-top-bar class="library__bar"> ${this.templateFiltersTrigger()} <div class="library__search">${e}</div> ${this.templateClose()} </uas-top-bar> <uas-side-sheet-layout class="shell"> <uas-side-sheet slot="start" placement="start" default-open no-header class="shell__sidebar" @uas.side-sheet.change=${this.onFiltersChange} > ${t} </uas-side-sheet> <main class="shell__main" aria-busy=${a?"true":"false"}> ${this.templateActiveFilters(n)} ${i} </main> </uas-side-sheet-layout> </div> `}templateClose(){return this.isImportMode?s1` <uas-button slot="end" class="library__close" data-test="templates-dialog-close" color="transparent" size="sm" aria-label=${String((0,lX.__)("Close","uncanny-automator"))} @click=${this.onClose} > <uas-icon code="xmark"></uas-icon> </uas-button> `:s3}templateActiveFilters(e){return null===e||0===eiK(this.filter,this.activeBaseFilters)?s3:s1` <uap-f-recipe-template-active-filters class="shell__active-filters" .filter=${this.filter} .activeBaseFilters=${this.activeBaseFilters} .categories=${e} ></uap-f-recipe-template-active-filters> `}templateFiltersTrigger(){let e=eiK(this.filter,this.activeBaseFilters);return s1` <uas-button slot="start" class="shell__filters-trigger" color="secondary" size="sm" ?filled=${this.filtersOpen} aria-expanded=${this.filtersOpen?"true":"false"} aria-label=${(e>0?String((0,lX.sprintf)((0,lX._n)("Filters, %d active","Filters, %d active",e,"uncanny-automator"),e)):void 0)??s3} @click=${this.onToggleFilters} > <uas-icon code="bars-filter"></uas-icon> <span class="shell__filters-label">${(0,lX.__)("Filters","uncanny-automator")}</span> ${e>0?s1`<span class="shell__filters-count" aria-hidden="true">${e}</span>`:s3} </uas-button> `}templateLoading(){return this.templateShell(s1`<uap-f-recipe-template-search disabled></uap-f-recipe-template-search>`,s1`<uap-f-recipe-template-sidebar loading></uap-f-recipe-template-sidebar>`,s1` <div class="shell__skeleton-grid"> ${Array.from({length:9},()=>s1` <uap-f-recipe-template-card loading></uap-f-recipe-template-card> `)} </div> `,!0)}templateError(){return this.templateShell(s1`<uap-f-recipe-template-search disabled></uap-f-recipe-template-search>`,s1`<uap-f-recipe-template-sidebar></uap-f-recipe-template-sidebar>`,s1` <uas-alert type="error"> ${(0,lX.__)("The template library could not be loaded. Please reload the page.","uncanny-automator")} </uas-alert> `)}baseFilters(e){if(this.cachedBaseFilters?.library===e)return this.cachedBaseFilters.filters;let t=[{name:JG.READY_TO_USE,templateIDs:e.templates.filter(e=>e.dependencies_met).map(e=>e.id)}];return this.cachedBaseFilters={library:e,filters:t},t}baseTemplateIDs(e,t){let i=t.filter(e=>this.activeBaseFilters.includes(e.name));return 0===i.length?e.templates.map(e=>e.id):i.map(e=>new Set(e.templateIDs)).reduce((e,t)=>e.filter(e=>t.has(e)),e.templates.map(e=>e.id))}get isUnfiltered(){return""===this.filter.search&&""===this.filter.category&&0===this.filter.integrations.length}syncURL(){var e;e={[JJ]:this.filter.search,[J1]:this.filter.category,[J0]:this.filter.integrations.join(",")},rQ(window.location.href,e,{setAsURL:!0,refresh:!1})}};function eaY(e){return e.replace(/\{\{\s*(.+?)\s*\}\}/g,"**$1**")}eaG([l0({type:Number,attribute:"import-into-recipe-id"})],eaK.prototype,"importIntoRecipeID",void 0),eaG([l2()],eaK.prototype,"filter",void 0),eaG([l2()],eaK.prototype,"activeBaseFilters",void 0),eaG([l2()],eaK.prototype,"searchTemplateIDs",void 0),eaG([l2()],eaK.prototype,"filtersOpen",void 0),eaG([l4("uas-side-sheet.shell__sidebar")],eaK.prototype,"$sidebarSheet",void 0),eaK=eaG([lJ("uap-f-recipe-template")],eaK);var eaQ=a(8318),eaX=a.n(eaQ),eaJ=function(e,t,i,a){var n,o=arguments.length,r=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(r=(o<3?n(r):o>3?n(t,i,r):n(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r};let ea1=class extends ld{constructor(){super(...arguments),this.dependenciesController=new etc(this,{scope:()=>this.scope,entityType:()=>this.entityType,integrationCode:()=>this.integrationCode,blockType:()=>this.blockType,itemCode:()=>this.itemCode}),this.lastDependenciesAllMet=void 0}static{this.styles=sf`${sm(eaX())}`}willUpdate(e){lQ(this,"scope",kL,e,"uap-f-recipe-builder-node-selector-dependencies"),lQ(this,"entityType",SQ,e,"uap-f-recipe-builder-node-selector-dependencies"),lQ(this,"integrationCode",EP.shape.code,e,"uap-f-recipe-builder-node-selector-dependencies"),lQ(this,"blockType",E1,e,"uap-f-recipe-builder-node-selector-dependencies"),lQ(this,"itemCode",Eb.shape.code,e,"uap-f-recipe-builder-node-selector-dependencies")}updated(){let e=this.dependenciesController.dependencies,t=e?.all_met??!1;t&&!0!==this.lastDependenciesAllMet&&queueMicrotask(()=>{this.dependenciesController.maybeAdvanceToNextStep(this)}),this.lastDependenciesAllMet=t}render(){let e=this.dependenciesController.result;if(!e)return;let{status:t,data:i,error:a,isLoading:n,isFetching:o,isError:r}=e;if(n)return this.templatePlaceholder();if(r)return d4.DEV.SHOW_CONSOLE_MESSAGES&&console.error(`Error fetching dependencies (entityType: ${this.entityType}, integrationCode: ${this.integrationCode}, blockType: ${this.blockType}, itemCode: ${this.itemCode}):`,a),this.templateError();if(("success"===t||o)&&i){let e=this.dependenciesController.dependencies;return e?this.templateDependencies(e,o):this.templateError()}if("pending"===t||o&&!i)return this.templatePlaceholder()}templateDependencies(e,t){let i=e.items.filter(e=>e.is_met),a=e.items.filter(e=>!e.is_met);return s1` <div class="dependencies"> <div class="dependencies-content"> <div class="list"> ${t?s1`<uas-progress-linear type="indeterminate"></uas-progress-linear>`:""} <div class="list-heading"> ${this.templateDependenciesHeading()} </div> ${this.templateDependenciesGroup((0,lX._nx)("Unmet dependency","Unmet dependencies",a.length,"Dependencies","uncanny-automator"),a,e.items)} ${this.templateDependenciesGroup((0,lX._nx)("Met dependency","Met dependencies",i.length,"Dependencies","uncanny-automator"),i,e.items)} </div> ${this.templateIntegrationItems()} </div> ${this.templateKeyboardShortcuts()} </div> `}templateKeyboardShortcuts(){return s1` <div class="keyboard-shortcuts"> <div class="keyboard-shortcuts-item"> <uas-chip size="xs" .label=${s1`<code>tab</code>`} filled ></uas-chip> ${(0,lX.__)("to navigate","uncanny-automator")} </div> </div> `}templateDependenciesHeading(){return this.entityType===SY.INTEGRATION?(0,lX._x)("Required dependencies to use this integration:","Dependencies","uncanny-automator"):this.entityType===SY.ITEM?(0,lX._x)("Required dependencies to use this item:","Dependencies","uncanny-automator"):this.entityType===SY.BLOCK?(0,lX._x)("Required dependencies to use this block:","Dependencies","uncanny-automator"):void 0}templateDependenciesGroup(e,t,i){if(0!==t.length)return s1` <div class="list-group"> <div class="list-group-heading"> ${e} <uas-chip label="${t.length}" size="xs" filled></uas-chip> </div> <div class="list-group-items"> ${t.map(e=>this.templateDependency(e,i))} </div> </div> `}templateDependency(e,t){return s1` <uap-f-recipe-builder-node-selector-dependency .dependency=${e} .blockingDependencyName=${JV(e,t)?.name} @uap.f.recipe-builder.node-selector.dependency-maybe-resolved=${this.handleDependencyMaybeResolved} ></uap-f-recipe-builder-node-selector-dependency> `}handleDependencyMaybeResolved(){this.dependenciesController.refetch()}templateIntegrationItems(){if(this.entityType!==SY.INTEGRATION)return;let e=this.dependenciesController.integrationItems;if(e&&0!==e.length)return s1` <div class="integration-entities"> <div class="integration-entities-heading"> ${(0,lX._x)("Activating this integration will enable the following for use in your recipes","Dependencies","uncanny-automator")} </div> <div class="integration-entities-items"> ${e.map(e=>this.templateIntegrationItem(e))} </div> </div> `}templateIntegrationItem(e){return s1` <div class="integration-entities-item"> <uas-markdown allowed-tags="strong" content=${eaY(e.sentence.short)} ></uas-markdown> <div class="integration-entities-item-tags"> ${e.tags.map(e=>s1` <uap-d-integrations-tag .type=${e.type} .scenarioID=${e.scenario_id} .label=${e.label} .helper=${e.helper} .color=${e.color} .icon=${e.icon} size="xs" ></uap-d-integrations-tag> `)} </div> </div> `}templatePlaceholder(){return s1` <div class="list"> <div class="list-heading"> <uas-skeleton width="4em"></uas-skeleton> <uas-skeleton width="6em"></uas-skeleton> <uas-skeleton width="1em"></uas-skeleton> <uas-skeleton width="3em"></uas-skeleton> <uas-skeleton width="2em"></uas-skeleton> <uas-skeleton width="4em"></uas-skeleton> </div> <div class="list-group"> <div class="list-group-heading"> <uas-skeleton width="2em"></uas-skeleton> <uas-skeleton width="6em"></uas-skeleton> <uas-skeleton width="1em"></uas-skeleton> </div> <div class="list-group-items"> <div class="dependency"> <div class="dependency-icon"> <uas-skeleton width="32px" height="32px"></uas-skeleton> </div> <div class="dependency-content"> <div class="dependency-name"> <uas-skeleton width="15em"></uas-skeleton> <uas-skeleton width="7em"></uas-skeleton> </div> <div class="dependency-tags"> <uas-skeleton width="2em"></uas-skeleton> <uas-skeleton width="8em"></uas-skeleton> </div> <div class="dependency-description"> <uas-skeleton width="3em"></uas-skeleton> <uas-skeleton width="6em"></uas-skeleton> <uas-skeleton width="2em"></uas-skeleton> <uas-skeleton width="10em"></uas-skeleton> <uas-skeleton width="7em"></uas-skeleton> <uas-skeleton width="12em"></uas-skeleton> </div> <div class="dependency-metadata"> <uas-skeleton width="5em"></uas-skeleton> <uas-skeleton width="10em"></uas-skeleton> <uas-skeleton width="4em"></uas-skeleton> </div> <div class="dependency-cta"> <uas-skeleton width="10em"></uas-skeleton> </div> </div> </div> </div> </div> </div> `}templateError(){return s1` <div class="list"> <uas-alert type="error" heading=${(0,b4.escapeHTML)((0,lX._x)("Unable to load dependencies","Dependencies","uncanny-automator"))} > ${(0,lX._x)("There was an issue retrieving the dependencies. Please reload the page to try again.","Dependencies","uncanny-automator")} </uas-alert> </div> `}};async function ea0(e){await Promise.all([$2(e),dW.invalidateQueries({queryKey:Sk}),dW.invalidateQueries({queryKey:$c.all()}),dW.invalidateQueries({queryKey:As})])}eaJ([l0({type:String})],ea1.prototype,"scope",void 0),eaJ([l0({type:String})],ea1.prototype,"entityType",void 0),eaJ([l0({type:String})],ea1.prototype,"integrationCode",void 0),eaJ([l0({type:String})],ea1.prototype,"blockType",void 0),eaJ([l0({type:String})],ea1.prototype,"itemCode",void 0),ea1=eaJ([lJ("uap-f-recipe-builder-node-selector-dependencies")],ea1);let ea2=rg({scope:kL,integration_code:EP.shape.code,item_code:Eb.shape.code}),ea3=rg({block_type:E1});var ea4=a(2042),ea6=a.n(ea4),ea5=function(e,t,i,a){var n,o=arguments.length,r=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(r=(o<3?n(r):o>3?n(t,i,r):n(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r};let ea8=class extends ld{constructor(){super(...arguments),this.showItemStep=!1,this.refreshing=!1,this.resolutionAttempted=!1,this.routes=[{path:"/",component:()=>s1``},{path:`${Nr}/item/:scope/:integration_code/:item_code`,component:e=>this.templateItemRoute(e)},{path:`${Nr}/block/:block_type`,component:e=>this.templateBlockRoute(e)}],this.router=new _P(this,this.routes,{onParamsChange:()=>{this.showItemStep=!1,this.resolutionAttempted=!1}}),this.itemDependencies=new etc(this,{scope:()=>this.itemParams?.scope,entityType:()=>this.itemParams?SY.ITEM:void 0,integrationCode:()=>this.itemParams?.integration_code,blockType:()=>void 0,itemCode:()=>this.itemParams?.item_code})}static{this.styles=sf`${sm(ea6())}`}get itemParams(){let e=ea2.safeParse(this.router.getCurrentParams());return e.success?e.data:void 0}render(){return s1`${this.router.renderOutlet()}`}templateItemRoute(e){let t=ea2.safeParse(e);if(!t.success)return s1``;let i=this.showItemStep?SY.ITEM:SY.INTEGRATION;return this.templateDialog(eiq(i,s1` <uap-f-recipe-builder-node-selector-dependencies .scope=${t.data.scope} .entityType=${i} .integrationCode=${t.data.integration_code} .itemCode=${this.showItemStep?t.data.item_code:void 0} @uap.f.recipe-builder.node-selector.dependency-maybe-resolved=${this.onDependencyMaybeResolved} @uap.f.recipe-builder.node-selector.step-request-change=${this.showItemStep?this.onResolved:this.onIntegrationResolved} ></uap-f-recipe-builder-node-selector-dependencies> `))}templateBlockRoute(e){let t=ea3.safeParse(e);return t.success?this.templateDialog(s1` <uap-f-recipe-builder-node-selector-dependencies .entityType=${SY.BLOCK} .blockType=${t.data.block_type} @uap.f.recipe-builder.node-selector.dependency-maybe-resolved=${this.onDependencyMaybeResolved} @uap.f.recipe-builder.node-selector.step-request-change=${this.onResolved} ></uap-f-recipe-builder-node-selector-dependencies> `):s1``}templateDialog(e){return s1` <uas-dialog size="lg" open no-header no-footer no-padding ?loading=${this.refreshing} @uas.dialog.close=${this.onDismiss} > <div class="resolve-dependencies"> <div class="resolve-dependencies__step"> ${e} </div> <div class="resolve-dependencies__actions"> <uas-button color="secondary" @click=${this.onDismiss}> ${(0,lX.__)("Cancel","uncanny-automator")} </uas-button> </div> </div> </uas-dialog> `}onDependencyMaybeResolved(){this.resolutionAttempted=!0}onIntegrationResolved(){if(this.itemDependencies.dependencies?.all_met===!1){this.showItemStep=!0;return}this.onResolved()}async onResolved(){let e=window.location.hash;void 0!==this.recipeID&&(this.refreshing=!0,await ea0(this.recipeID),this.refreshing=!1),window.location.hash===e&&(window.location.hash="")}onDismiss(){this.resolutionAttempted&&void 0!==this.recipeID&&ea0(this.recipeID),window.location.hash=""}};function ea7(e){return null===e.recipe_type&&0===e.flow.entry.triggers.length&&0===e.flow.content.length}ea5([l0({attribute:!1})],ea8.prototype,"recipeID",void 0),ea5([l2()],ea8.prototype,"showItemStep",void 0),ea5([l2()],ea8.prototype,"refreshing",void 0),ea8=ea5([lJ("uap-f-recipe-builder-resolve-dependencies-dialog")],ea8);var ea9=a(2755),ene=a.n(ea9);let ent=Symbol("isRecipeReady"),eni=rg({scope:kL,parentItemID:o5().or(oR()),recipeID:o5()}).strict(),ena={SCOPE:{name:"scope",schema:kL},PARENT_ITEM_ID:{name:"parent_item_id",schema:ry([$1().int(),oR()])},PATH_CODE:{name:"path_code",schema:oR().min(1)},INSERT_INDEX:{name:"insert_index",schema:$1().int().nonnegative()},INTEGRATION_CODE:{name:"integration_code",schema:oR()},BLOCK_TYPE:{name:"block_type",schema:E1},ITEM_CODE:{name:"item_code",schema:oR()}},enn=rg({[ena.SCOPE.name]:ena.SCOPE.schema,[ena.PARENT_ITEM_ID.name]:ena.PARENT_ITEM_ID.schema,[ena.BLOCK_TYPE.name]:ena.BLOCK_TYPE.schema}),eno=rg({[ena.SCOPE.name]:ena.SCOPE.schema,[ena.PARENT_ITEM_ID.name]:ena.PARENT_ITEM_ID.schema,[ena.INTEGRATION_CODE.name]:ena.INTEGRATION_CODE.schema,[ena.ITEM_CODE.name]:ena.ITEM_CODE.schema.optional()}),enr=rg({[ena.SCOPE.name]:ena.SCOPE.schema,[ena.PARENT_ITEM_ID.name]:ena.PARENT_ITEM_ID.schema,[ena.PATH_CODE.name]:ena.PATH_CODE.schema.optional(),[ena.INSERT_INDEX.name]:ena.INSERT_INDEX.schema.optional()}),ens=rg({[ena.SCOPE.name]:ena.SCOPE.schema,[ena.PARENT_ITEM_ID.name]:ena.PARENT_ITEM_ID.schema,[ena.INTEGRATION_CODE.name]:ena.INTEGRATION_CODE.schema,[ena.ITEM_CODE.name]:ena.ITEM_CODE.schema}),enl=rg({[ena.SCOPE.name]:ena.SCOPE.schema,[ena.PARENT_ITEM_ID.name]:ena.PARENT_ITEM_ID.schema,[ena.INTEGRATION_CODE.name]:ena.INTEGRATION_CODE.schema}),enc={STEP_1_INTEGRATION:"step-1-integration",STEP_1_INTEGRATION_WITH_PATH:"step-1-integration-with-path",STEP_1_INTEGRATION_AT_INDEX:"step-1-integration-at-index",STEP_1_INTEGRATION_WITH_PATH_AT_INDEX:"step-1-integration-with-path-at-index",STEP_1_5_INTEGRATION_DEPENDENCIES:"step-1-5-integration-dependencies",STEP_1_5_BLOCK_DEPENDENCIES:"step-1-5-block-dependencies",STEP_2_INTEGRATION_ITEMS:"step-2-integration-items",STEP_2_5_INTEGRATION_ITEM_DEPENDENCIES:"step-2-5-integration-item-dependencies"};rT(enc);let end=rT([enc.STEP_1_INTEGRATION,enc.STEP_1_INTEGRATION_WITH_PATH,enc.STEP_1_INTEGRATION_AT_INDEX,enc.STEP_1_INTEGRATION_WITH_PATH_AT_INDEX]);var enu=a(6115),enp=a.n(enu);function enh(e,t){if(void 0===e)return Ox.ITEMS;let i=t?.modifiers?.types;return i&&i.some(t=>t.id===e)?Ox.MODIFIERS:Ox.ITEMS}let eng={[SY.BLOCK]:0,[SY.INTEGRATION]:1,[SY.ITEM]:2};function enm(e,t){return eng[e.entity_type]-eng[t.entity_type]}function enf(e){return e.entity_type===SY.BLOCK?e.type:e.code}class eny extends vE{constructor(e,t){let i=etn.parse(t),a=i.scope();super(e,{queryKey:eny.buildQueryKey(a),queryFn:()=>eny.buildQueryFn(a),enabled:void 0!==a,select:e=>eny.transformData(e,i.scope())}),this.unsupportedItemsList=[],this.fuse=null,this.unsupportedItems={},this.viewMode=ets.INTEGRATIONS,this.integrationsOut=[],this.searchOut=[],this.featuredOut=[],this.controllerOptions=i,this.recipeQuery=new vE(e,()=>{let e=i.recipeID();return{...Ai(e??-1),enabled:void 0!==e}}),this.blocksQuery=new vE(e,Ac),this.integrationsScopedQuery=new vE(e,()=>{let e=i.scope();return{...void 0===e?{queryKey:[...$c.all(),"disabled"],queryFn:()=>Promise.reject(Error("scope undefined"))}:$u(e),enabled:void 0!==e}}),this.accountSummaryQuery=new vE(e,$K)}static buildQueryKey(e){return void 0===e?[...ee0,"disabled"]:[...ee0,{integrationsKey:$c.detail(e),blocksKey:As}]}static buildQueryFn(e){return void 0===e?Promise.reject(Error("Query called without scope.")):Promise.all([async function(e){let t=kL.safeParse(e);if(!t.success){let i=t.error.issues.map(e=>e.message).join(", ");throw Error(`getIntegrationsScoped: Scope is invalid. Received: "${String(e)}". Issues: ${i}`)}let i=t.data,a=$c.detail(i);return dW.fetchQuery({queryKey:a,queryFn:$d,staleTime:1/0})}(e),Ad()])}static transformData([e,t],i){if(void 0===i)return{integrations:[],items:[],blocks:[]};let a=kL.parse(i),n=Object.values(t).filter(e=>void 0!==e&&e.supported_scopes.includes(a)).map(e=>({...e,entity_type:SY.BLOCK,sortable_name:e.name})),o=lY(Object.values(e).filter(e=>{let t=e.items?.[a]??e.block_modifiers?.[a];return!!t&&Object.values(t).some(e=>!1===e.is_deprecated)}).map(e=>({...e,entity_type:SY.INTEGRATION,sortable_name:e.name})),"sortable_name"),r=o.flatMap(e=>{let t=e.items?.[a]??e.block_modifiers?.[a];return t?Object.values(t).filter(e=>!1===e.is_deprecated).map(t=>({...t,entity_type:SY.ITEM,integration_code:e.code,sortable_name:t.sentence.short})):[]});return{integrations:o,items:r,blocks:n}}hostUpdate(){let e=this.controllerOptions.scope(),t=(this.controllerOptions.searchQuery()??"").trim(),i=this.controllerOptions.readyToUseOnly(),a=this.controllerOptions.integrationCode(),n=function(e,t,i,a,n,o){if(void 0===e||void 0===t||void 0===a||a===i)return[];let r=R0(e,a);if(!r||!Ir(r))return[];let s=enh(o,t[r.block_type]),l=Lb(e,a,n??r.paths[0]?.path_code??"");if(void 0===l)return[];let c=[];for(let e of Object.values(t)){if(!e)continue;let i=L_(l,t,{entity_type:SY.BLOCK,entity_code:e.type},s);i&&c.push(i)}return c}(this.recipeQuery.result.data,this.blocksQuery.result.data,this.controllerOptions.recipeID()??-1,this.controllerOptions.parentItemID(),this.controllerOptions.parentPathCode(),e),o=function(e,t,i,a,n,o,r){if(void 0===e||void 0===t||void 0===i||void 0===n)return[];let s=[],l=Ox.ITEMS;if(n!==a){let i=R0(e,n);if(!i||!Ir(i))return[];let a=o??i.paths[0]?.path_code??"";if(l=enh(r,t[i.block_type]),void 0===(s=Lb(e,n,a)))return[]}let c=[];for(let e of Object.values(i)){if(void 0===e)continue;if(l===Ox.MODIFIERS){let i=void 0===r?void 0:e.block_modifiers?.[r];if(!i)continue;for(let e of Object.values(i)){if(void 0===e)continue;let i=Mc(s,t,{entity_type:SY.ITEM,entity_code:e.code,required_block_ancestors:e.required_block_ancestors,unsupported_block_ancestors:e.unsupported_block_ancestors});void 0!==i&&c.push(i)}continue}let i=void 0===r?void 0:e.items?.[r];if(i)for(let e of Object.values(i)){if(void 0===e)continue;let i=L_(s,t,{entity_type:SY.ITEM,entity_code:e.code,required_block_ancestors:e.required_block_ancestors,unsupported_block_ancestors:e.unsupported_block_ancestors},l);void 0!==i&&c.push(i)}}return c}(this.recipeQuery.result.data,this.blocksQuery.result.data,this.integrationsScopedQuery.result.data,this.controllerOptions.recipeID()??-1,this.controllerOptions.parentItemID(),this.controllerOptions.parentPathCode(),e),r=function(e,t,i){if(void 0===e||null===e.recipe_type||void 0===t||i!==kM.TRIGGER)return[];let a=e.recipe_type===CN.USER,n=a?(0,lX.__)("This trigger runs for everyone and cannot be used in a recipe for logged-in users.","uncanny-automator"):(0,lX.__)("This trigger requires a logged-in user and cannot be used in a recipe that runs for everyone.","uncanny-automator"),o=[];for(let e of Object.values(t)){if(void 0===e)continue;let t=e.items[kM.TRIGGER];if(!t)continue;let i=Object.values(t).filter(e=>void 0!==e),r=0;for(let e of i)e.requires_user_data!==a&&(r+=1,o.push({entity_type:SY.ITEM,entity_code:e.code,reason:n}));i.length>0&&r===i.length&&o.push({entity_type:SY.INTEGRATION,entity_code:e.code,reason:n})}return o}(this.recipeQuery.result.data,this.integrationsScopedQuery.result.data,e),s=function(e,t,i,a,n){if(void 0===e||void 0===t||void 0===i||i===kM.TRIGGER||!Q2(e,a,n))return[];let o=(0,lX.__)("This needs a WordPress user. In a recipe that runs for everyone, choosing that user requires Uncanny Automator Pro.","uncanny-automator"),r=(0,lX.__)("Everything this integration offers here needs a WordPress user. In a recipe that runs for everyone, choosing that user requires Uncanny Automator Pro.","uncanny-automator"),s=[];for(let e of Object.values(t)){if(void 0===e)continue;let t=e.items[i]??e.block_modifiers[i];if(!t)continue;let a=Object.values(t).filter(e=>void 0!==e),n=0;for(let e of a)e.requires_user_data&&(n+=1,s.push({entity_type:SY.ITEM,entity_code:e.code,reason:o}));a.length>0&&n===a.length&&s.push({entity_type:SY.INTEGRATION,entity_code:e.code,reason:r})}return s}(this.recipeQuery.result.data,this.integrationsScopedQuery.result.data,e,this.accountSummaryQuery.result.data?.license_scenario,this.controllerOptions.parentItemID());switch(this.unsupportedItemsList=[...n,...o,...r,...s],this.unsupportedItems=function(e=[]){let t={};for(let i of e)t[`${i.entity_type}:${i.entity_code}`]=i.reason;return t}([...this.unsupportedItemsList]),this.lastScope!==e&&(this.setOptions({queryKey:eny.buildQueryKey(e),queryFn:()=>eny.buildQueryFn(e),enabled:void 0!==e}),this.lastScope=e),this.lastDataRef!==this.result.data&&(this.fuse=null,this.lastDataRef=this.result.data),this.viewMode=a||t.length>=3?ets.SEARCH:ets.INTEGRATIONS,this.viewMode){case ets.INTEGRATIONS:this.computeIntegrationsOut();break;case ets.SEARCH:this.computeSearchOut(t,a,i)}}computeIntegrationsOut(){let e=this.controllerOptions.readyToUseOnly(),t=this.getBrowsableIntegrations();this.integrationsOut=this.maybeFilterByReadyToUse(SY.INTEGRATION,t,e),this.buildFeatured(e)}computeSearchOut(e,t,i){let a=e.length>=3,n=this.result.data?.items??[];if(!a&&!t){this.searchOut=[];return}a&&!this.fuse&&this.buildFuse();let o=a&&this.fuse?this.fuse.search(e,{limit:100}).map(e=>{let t=this.getUnsupported(e.item.entity_type,enf(e.item));switch(e.item.entity_type){case SY.INTEGRATION:case SY.ITEM:case SY.BLOCK:return this.createPartialResult(e.item,t,e.score,e.matches)}}):n.map(e=>this.createPartialResult(e,this.getUnsupported(e.entity_type,enf(e))));if(t&&(o=o.filter(e=>e.entity_type===SY.ITEM&&e.data.integration_code===t)),i){let e=new Set(this.getBrowsableIntegrations().map(e=>e.code)),t=this.getIntegrationsWithReadyItem();o=o.filter(i=>i.data.dependencies?.all_met&&!i.unsupported&&(i.entity_type!==SY.INTEGRATION||e.has(i.data.code)&&t.has(i.data.code)))}this.searchOut=a?o.sort(enm):lY(o,"sortable_name")}buildFuse(){let e=this.result.data?.blocks??[],t=this.result.data?.integrations??[],i=this.result.data?.items??[];this.fuse=new jm([...e,...t,...i],ee2)}buildFeatured(e){let t=this.maybeFilterByReadyToUse(SY.INTEGRATION,this.getBrowsableIntegrations(),e),i=this.result.data?.blocks??[],a=t.filter(e=>e.usage.last_used>0).sort((e,t)=>t.usage.last_used-e.usage.last_used).slice(0,5),n=new Set(a.map(e=>e.code)),o=t.filter(e=>e.usage.count>0&&!n.has(e.code)).sort((e,t)=>t.usage.count-e.usage.count||t.usage.last_used-e.usage.last_used).slice(0,5),r=[{id:"recently-used",title:(0,lX._x)("Recently used integrations","Featured Integrations Group","uncanny-automator"),integrations:a,blocks:[],is_autogenerated:!0},{id:"recipe-blocks",title:(0,lX._x)("Recipe blocks","Featured Integrations Group","uncanny-automator"),integrations:[],blocks:this.maybeFilterByReadyToUse(SY.BLOCK,lY(i,"name"),e),is_autogenerated:!0},{id:"most-used",title:(0,lX._x)("Most used integrations","Featured Integrations Group","uncanny-automator"),integrations:o,blocks:[],is_autogenerated:!0}];this.featuredOut=r.filter(e=>e.integrations.length||e.blocks.length)}isReadyToUse(e,t){return t.dependencies?.all_met&&!this.getUnsupported(e,enf(t))}getBrowsableIntegrations(){let e=new Set;for(let t of this.result.data?.items??[])this.getUnsupported(SY.ITEM,enf(t))||e.add(t.integration_code);return(this.result.data?.integrations??[]).filter(t=>e.has(t.code)&&!this.getUnsupported(SY.INTEGRATION,t.code))}getIntegrationsWithReadyItem(){let e=new Set;for(let t of this.result.data?.items??[])this.isReadyToUse(SY.ITEM,t)&&e.add(t.integration_code);return e}maybeFilterByReadyToUse(e,t,i){if(!i)return t;let a=e===SY.INTEGRATION?this.getIntegrationsWithReadyItem():void 0;return t.filter(t=>this.isReadyToUse(e,t)&&(!a||a.has(enf(t))))}createPartialResult(e,t,i=0,a=[]){switch(e.entity_type){case SY.INTEGRATION:case SY.ITEM:case SY.BLOCK:return{entity_type:e.entity_type,data:e,unsupported:t,match:a,score:i}}}getUnsupported(e,t){return this.unsupportedItems[`${e}:${t}`]}getIntegration(e){return(this.result.data?.integrations??[]).find(t=>t.code===e)}getItem(e,t){return(this.result.data?.items??[]).find(i=>i.integration_code===e&&i.code===t)}}let enb=rg({readyToUseOnly:re()}).strict(),env={readyToUseOnly:!0},en_={queryKey:[W_,"recipe-node-selector","1.0"],queryFn:async function(){return enb.parse(env)},staleTime:1/0};var enw=a(2315),enx=a.n(enw),enk=function(e,t,i,a){var n,o=arguments.length,r=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(r=(o<3?n(r):o>3?n(t,i,r):n(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r};let enE=class extends ld{constructor(){super(...arguments),this.preferences=new vS(this,{...en_,schema:enb,persistenceReady:Ww()}),this.lastModifiedDateTimestamp=new Date().getTime(),this.viewerController=new eny(this,{scope:()=>this.scope,searchQuery:()=>this.searchQuery??"",readyToUseOnly:()=>this.readyToUseOnly,integrationCode:()=>this.integrationCode,parentItemID:()=>this.parentItemID,parentPathCode:()=>this.parentPathCode,recipeID:()=>this.recipeID}),this.keyboardController=new vg(this,[{shortcut:"/",handler:()=>{this.$searchField?.focus()}}]),this.debouncedUpdate=Ft(e=>this.searchQuery=e,50)}static{this.styles=sf`${sm(enx())}`}get readyToUseOnly(){return this.preferences.data?.readyToUseOnly??env.readyToUseOnly}get unsupportedItems(){return this.viewerController.unsupportedItemsList}willUpdate(e){lQ(this,"scope",kL,e,"uap-f-recipe-builder-node-selector-viewer")}render(){if(!this.scope||!this.parentItemID||!this.recipeID||!this.lastModifiedDateTimestamp)return d4.DEV.SHOW_CONSOLE_MESSAGES&&console.error(`${this.recipeID}/uap-f-recipe-builder-node-selector-viewer: Critical data is missing. Make sure the scope, parent item ID, recipe ID, and last modified date timestamp are available for this component. Scope: ${this.scope} Parent item ID: ${this.parentItemID} Recipe ID: ${this.recipeID} Last modified date timestamp: ${this.lastModifiedDateTimestamp}`),s1``;let e=this.viewerController,t=this.templateControls(e.result.isLoading||e.result.isError||void 0===this.preferences.data),i=this.templateAiEntitySuggestionsForIntegrationsView();return s1` <div class="viewer"> ${t} ${i} <div class="viewer-content"> ${this.templateContent()} </div> ${this.templateKeyboardShortcuts()} </div> `}requestChange(e){lw({element:this,eventName:"uap.f.recipe-builder.node-selector.step-request-change",data:e,schema:ete,options:{bubbles:!0,composed:!0}})}handleClickIntegration(e,t){if(t)throw Error(`Integration ${e.code} is unsupported`);e.dependencies.all_met?this.requestChange({entity_type:SY.INTEGRATION,scenario_id:ee3["INTEGRATION-READY"],can_perform_action:!0,integration_code:e.code}):this.requestChange({entity_type:SY.INTEGRATION,scenario_id:ee3["INTEGRATION-UNMET-DEPENDENCIES"],can_perform_action:!1,integration_code:e.code})}handleClickItem(e,t){if(t)throw Error(`Item ${e.code} is unsupported`);let i=this.viewerController.getIntegration(e.integration_code);if(!i)throw Error(`Integration ${e.integration_code} not found`);i.dependencies.all_met?e.dependencies.all_met?this.requestChange({entity_type:SY.ITEM,scenario_id:ee6["ITEM-READY"],can_perform_action:!0,integration_code:i.code,item_code:e.code}):this.requestChange({entity_type:SY.ITEM,scenario_id:ee6["ITEM-UNMET-DEPENDENCIES"],can_perform_action:!1,integration_code:i.code,item_code:e.code}):this.requestChange({entity_type:SY.ITEM,scenario_id:ee6["ITEM-INTEGRATION-UNMET-DEPENDENCIES"],can_perform_action:!1,integration_code:i.code,item_code:e.code})}handleClickBlock(e,t){if(t)throw Error(`Block ${e.type} is unsupported`);e.dependencies.all_met?this.requestChange({entity_type:SY.BLOCK,scenario_id:ee8["BLOCK-READY"],can_perform_action:!0,block_type:e.type}):this.requestChange({entity_type:SY.BLOCK,scenario_id:ee8["BLOCK-UNMET-DEPENDENCIES"],can_perform_action:!1,block_type:e.type})}templateContent(){let e=this.viewerController;return e.result.isLoading?this.templatePlaceholder():e.result.isError?s1` <uas-alert type="error" size="sm" heading=${(0,b4.escapeHTML)((0,lX.__)("We're having trouble loading your items right now.","uncanny-automator"))} > ${(0,lX.__)("Please refresh or try again in a few minutes.","uncanny-automator")} </uas-alert> `:e.viewMode===ets.INTEGRATIONS?this.templateViewIntegrations():e.viewMode===ets.SEARCH?this.templateViewSearch():void 0}templatePlaceholder(){return this.viewerController.viewMode===ets.INTEGRATIONS?this.templatePlaceholderViewIntegrations():this.templatePlaceholderViewSearch()}templatePlaceholderViewIntegrations(){let e=Object.keys(Im).length;return s1` <div class="viewer-groups viewer-groups--two-columns"> <div class="viewer-group"> <div class="viewer-group-title"> <uas-skeleton width="3em"></uas-skeleton> <uas-skeleton width="4em"></uas-skeleton> <uas-skeleton width="4em"></uas-skeleton> </div> <div class="viewer-group-items"> ${Array.from({length:5}).map(()=>this.templateEntityPlaceholder())} </div> </div> <div class="viewer-group"> <div class="viewer-group-title"> <uas-skeleton width="4em"></uas-skeleton> <uas-skeleton width="4em"></uas-skeleton> </div> <div class="viewer-group-items"> ${Array.from({length:e}).map(()=>this.templateEntityPlaceholder())} </div> </div> <div class="viewer-group"> <div class="viewer-group-title"> <uas-skeleton width="3em"></uas-skeleton> <uas-skeleton width="4em"></uas-skeleton> <uas-skeleton width="4em"></uas-skeleton> </div> <div class="viewer-group-items"> ${Array.from({length:5}).map(()=>this.templateEntityPlaceholder())} </div> </div> </div> <details class="viewer-group-togglable viewer-group-togglable--all-integrations" open> <summary class="viewer-group-togglable-summary"> <div class="viewer-group-togglable-summary-title"> <uas-skeleton width="8em"></uas-skeleton> <uas-skeleton width="1em" height="1em" class="viewer-group-togglable-summary-icon" ></uas-skeleton> </div> <div class="viewer-controls-filter"> <uas-skeleton width="3em"></uas-skeleton> <uas-skeleton width="8em"></uas-skeleton> <uas-skeleton width="1em"></uas-skeleton> </div> </summary> </details> `}templatePlaceholderViewSearch(){return s1` <div class="viewer-groups viewer-groups--two-columns"> <div class="viewer-group"> <div class="viewer-group-title"> <uas-skeleton width="8em"></uas-skeleton> <uas-skeleton width="1em"></uas-skeleton> </div> <div class="viewer-group-items"> ${Array.from({length:3}).map(()=>this.templateEntityPlaceholder())} </div> </div> </div> `}templateViewIntegrations(){return s1` ${this.templateFeaturedGroups(this.viewerController.featuredOut)} ${this.templateAllIntegrations()} `}templateViewSearch(){let e=this.viewerController,t={blocks:e.searchOut.filter(e=>e.entity_type===SY.BLOCK),integrations:e.searchOut.filter(e=>e.entity_type===SY.INTEGRATION),items:e.searchOut.filter(e=>e.entity_type===SY.ITEM)};if(this.integrationCode){let t=e.getIntegration(this.integrationCode),i=e.getUnsupported(SY.INTEGRATION,t.code);if(i)return this.requestChange({entity_type:SY.INTEGRATION,scenario_id:ee3["INTEGRATION-IDOR-ATTACK-UNSUPPORTED"],can_perform_action:!1,integration_code:t.code}),s1` <uas-alert type="error" size="sm" heading=${(0,b4.escapeHTML)((0,lX.sprintf)((0,lX.__)("%1$s is not supported.","uncanny-automator"),t.name))} > ${i} </uas-alert> `;if(!t.dependencies.all_met)return this.requestChange({entity_type:SY.INTEGRATION,scenario_id:ee3["INTEGRATION-IDOR-ATTACK-UNMET-DEPENDENCIES"],can_perform_action:!1,integration_code:t.code}),s1` <uas-alert type="error" size="sm" heading=${(0,b4.escapeHTML)((0,lX.sprintf)((0,lX.__)("%1$s has unmet dependencies.","uncanny-automator"),t.name))} > ${(0,lX.sprintf)((0,lX.__)("%1$s has unresolved dependencies that must be satisfied before you can add any of its items.","uncanny-automator"),t.name)} </uas-alert> `}if(!t.blocks.length&&!t.integrations.length&&!t.items.length){let e=this.readyToUseOnly?`- ${(0,lX.__)('Disable the **"Ready-to-use only"** filter.',"uncanny-automator")} `:"";return s1` <uas-alert type="info" size="sm" heading=${(0,b4.escapeHTML)((0,lX.__)("Hmm, we couldn't find anything","uncanny-automator"))} > <uas-markdown allowed-tags="strong,ul,li,a,p" .content=${(0,b4.escapeHTML)((0,lX.sprintf)((0,lX.__)(`No worries! Why not give one of these a try? %1$s - **Search for something new.** - Are you a developer? **Build your own integration**. [Learn more](%2$s) - **Have a great idea?** We'd love to hear it! [Request a new feature](%3$s)`,"uncanny-automator"),e,r0("https://developer.automatorplugin.com/",{campaign:br.DOCUMENTATION,content:"recipe-builder-node-selector-developer-docs"}),r0("https://automatorplugin.com/automator-support/",{campaign:br.SUPPORT,content:"recipe-builder-node-selector-support"})))} ></uas-markdown> </uas-alert> `}return s1` <div class="viewer-groups"> ${Object.entries(eng).sort(([e,t],[i,a])=>t-a).map(([e,i])=>{switch(e){case SY.BLOCK:return this.templateSearchGroup((0,lX.__)("Blocks","uncanny-automator"),t.blocks.length,s1`${t.blocks.map(e=>this.templateBlock(e.data,e.unsupported))}`);case SY.INTEGRATION:return this.templateSearchGroup((0,lX.__)("Integrations","uncanny-automator"),t.integrations.length,s1`${t.integrations.map(e=>this.templateIntegration(e.data,e.unsupported))}`);case SY.ITEM:return this.templateSearchGroup((0,lX.__)("Items","uncanny-automator"),t.items.length,s1`${t.items.map(e=>this.templateItem(e.data,e.unsupported,!this.integrationCode))}`)}}).filter(Boolean)} </div> `}templateControls(e){return s1` <div class="viewer-controls" @click=${e=>{e.target instanceof HTMLElement&&e.target.closest(".viewer-controls-filter")||this.$searchField?.focus()}} > ${this.templateSearchField(e)} ${this.templateFilterReadyToUseOnly(e)} </div> `}templateSearchField(e){return s1` <div class="viewer-controls-search"> <uas-icon code="magnifying-glass" class="viewer-controls-search-icon" ></uas-icon> <input type="text" placeholder="${String((0,lX.__)("Search integrations, apps, recipe blocks and items","uncanny-automator"))}" .value=${Zz(this.searchQuery??"")} ?autofocus=${!e} ?disabled=${e} @input=${e=>{e.target instanceof HTMLInputElement&&this.debouncedUpdate(e.target.value)}} class="viewer-controls-search-field" /> </div> `}templateFilterReadyToUseOnly(e){return s1` <div class="viewer-controls-filter"> <uo-field-input-switch ?checked=${this.readyToUseOnly} label-on=${String((0,lX.__)("Ready-to-use only","uncanny-automator"))} label-off=${String((0,lX.__)("Ready-to-use only","uncanny-automator"))} .processChangeRequest=${async e=>(this.preferences.update({readyToUseOnly:e}),!0)} ?disabled=${e} ></uo-field-input-switch> <uas-tooltip min-width="200"> ${(0,lX.__)("Turn on this setting to show only integrations, blocks, apps or items you can use in your recipe right away, with no extra installs or account connections.","uncanny-automator")} <div slot="target"> <uas-icon code="circle-info" class="viewer-controls-filter-help" ></uas-icon> </div> </uas-tooltip> </div> `}get aiEntityKind(){if(this.scope)return[kM.TRIGGER,kM.ACTION].includes(this.scope)?$3.ITEM:$3.BLOCK_MODIFIER}templateAiEntitySuggestionsForIntegrationsView(){if(this.viewerController.viewMode===ets.INTEGRATIONS)return s1` <div class="viewer-ai-entity-suggestions"> <uap-d-recipe-ai-entity-suggestions recipe-id=${this.recipeID??s3} last-modified-date-timestamp=${this.lastModifiedDateTimestamp??s3} kind=${this.aiEntityKind??s3} scope=${this.scope??s3} parent-item-id=${this.parentItemID??s3} parent-path-code=${this.parentPathCode??s3} @uap.d.recipe.ai-entity-suggestions.selected=${this.handleClickAiEntitySuggestion} ></uap-d-recipe-ai-entity-suggestions> </div> `}handleClickAiEntitySuggestion(e){let{integrationCode:t,code:i}=e.detail;if(!t||!i)return;let a=this.viewerController.getItem(t,i);if(!a)return;let n=this.viewerController.getUnsupported(SY.ITEM,a.code);this.handleClickItem(a,n)}templateFeaturedGroups(e){if(e.length)return s1` <div class="viewer-groups viewer-groups--two-columns"> ${e.map(e=>this.templateFeaturedGroup(e))} </div> `}templateFeaturedGroup(e){return s1` <div class="viewer-group"> <div class="viewer-group-title">${e.title}</div> <div class="viewer-group-items"> ${Object.entries(eng).sort(([e,t],[i,a])=>t-a).map(([t,i])=>{switch(t){case SY.BLOCK:return s1` ${e.blocks.map(e=>this.templateBlock(e,this.viewerController.getUnsupported(SY.BLOCK,e.type)))}`;case SY.INTEGRATION:return s1` ${e.integrations.map(e=>this.templateIntegration(e,this.viewerController.getUnsupported(SY.INTEGRATION,e.code)))}`}}).filter(Boolean)} </div> </div> `}templateAllIntegrations(){let e=this.rowsOfIntegrations(this.viewerController.integrationsOut);return s1` <details class="viewer-group-togglable viewer-group-togglable--all-integrations" open> <summary class="viewer-group-togglable-summary"> <div class="viewer-group-togglable-summary-title"> ${(0,lX.__)("All integrations","uncanny-automator")} <uas-icon code="angle-down" class="viewer-group-togglable-summary-icon"></uas-icon> </div> ${this.templateFilterReadyToUseOnly(!1)} </summary> <div class="viewer-group-togglable-content"> <lit-virtualizer class="viewer-group-togglable-content-virtualizer" .layout=${(0,eaP.flow)()} .items=${e} .renderItem=${(t,i)=>this.templateAllIntegrationsRow(e[i]??[])} ></lit-virtualizer> </div> </details> `}rowsOfIntegrations(e){let t=[];for(let i=0;i<e.length;i+=2)t.push(e.slice(i,i+2));return t}templateAllIntegrationsRow(e){return s1` <div class="viewer-group-togglable-content--two-columns"> ${e.map(e=>s1` <div class="viewer-group-togglable-content-item"> ${this.templateIntegration(e,this.viewerController.getUnsupported(SY.INTEGRATION,e.code))} </div> `)} </div> `}templateSearchGroup(e,t,i){if(0!==t)return s1` <div class="viewer-group"> <div class="viewer-group-title"> ${e} <div class="viewer-group-title-count"> ${t} </div> </div> <div class="viewer-group-items"> ${i} </div> </div> `}templateUnsupportedEntity(e,t,i){return i===ets.SEARCH?s1` <div class="viewer-unsupported-entity"> ${e} <div class="viewer-unsupported-entity-reason"> <uas-icon code="lock" size="xs"></uas-icon> <span>${t}</span> </div> </div> `:s1` <div class="viewer-unsupported-entity"> <uas-tooltip> ${t} <div slot="target"> ${e} </div> </uas-tooltip> </div> `}templateIntegration(e,t){let i=this.viewerController.viewMode,a=s1` <uas-button color="transparent" size="sm" @click=${()=>this.handleClickIntegration(e,t)} ?disabled=${!!t} class="viewer-integration viewer-integration--view-${i}" data-integration-code=${e.code} > ${this.templateIntegrationContent(e,t)} </uas-button> `;return t?this.templateUnsupportedEntity(a,t,i):a}templateEntityPlaceholder(){let e=this.viewerController.viewMode;return s1` <uas-button color="transparent" size="sm" disabled class="viewer-integration viewer-integration--view-${e} viewer-integration--placeholder" > ${this.templateEntityContentPlaceholder()} </uas-button> `}templateIntegrationContent(e,t){return s1` <div class="viewer-integration-content"> <img class="viewer-integration-icon" src=${e.details.icon} /> <div class="viewer-integration-name"> ${e.name} </div> <div class="viewer-integration-tags"> ${t?this.createUnsupportedTag():e.tags.map(e=>s1` <uap-d-integrations-tag .type=${e.type} .scenarioID=${e.scenario_id} .label=${e.label} .helper=${e.helper} .color=${e.color} .icon=${e.icon} size="xs" ></uap-d-integrations-tag> `)} </div> </div> `}templateEntityContentPlaceholder(){let e=8+6*Math.random()|0;return s1` <div class="viewer-integration-content"> <uas-skeleton width="1em" height="1em" class="viewer-integration-icon"></uas-skeleton> <uas-skeleton width="${e}em" class="viewer-integration-name"></uas-skeleton> </div> `}templateItem(e,t,i=!1){let a=this.viewerController.viewMode,n=s1` <uas-button color="transparent" size="sm" @click=${()=>this.handleClickItem(e,t)} ?disabled=${!!t} class="viewer-item viewer-item--view-${a}" data-integration-code=${e.integration_code} data-item-code=${e.code} > ${this.templateItemContent(e,t,i)} </uas-button> `;return t&&a===ets.SEARCH?n:t?this.templateUnsupportedEntity(n,t,a):n}templateItemContent(e,t,i=!1){let a=this.viewerController.getIntegration(e.integration_code),n=t&&this.viewerController.viewMode===ets.SEARCH;return s1` <div class="viewer-item-content"> ${this.templateItemContentIntegration(a,i)} <div class="viewer-item-name"> <uas-markdown allowed-tags="strong" content=${eaY(e.sentence.short)} ></uas-markdown> <div class="viewer-item-name-tags"> ${t?this.createUnsupportedTag():e.tags.map(e=>s1` <uap-d-integrations-tag .type=${e.type} .scenarioID=${e.scenario_id} .label=${e.label} .helper=${e.helper} .color=${e.color} .icon=${e.icon} size="xs" ></uap-d-integrations-tag> `)} </div> </div> ${e.description?s1` <div class="viewer-item-description"> <uas-markdown allowed-tags="strong, em, a" .content=${e.description} ></uas-markdown> </div> `:null} ${n?s1` <div class="viewer-unsupported-entity-reason"> <uas-icon code="lock" size="xs"></uas-icon> <span>${t}</span> </div> `:null} </div> `}templateItemContentIntegration(e,t=!1){if(!t)return;let i=this.viewerController.getUnsupported(SY.INTEGRATION,e.code);return s1` <div class="viewer-item-integration"> <img class="viewer-item-integration-icon" src=${e.details.icon} /> <div class="viewer-item-integration-tags"> <uas-chip label=${e.name} size="xs" filled ></uas-chip> ${i?this.createUnsupportedTag():e.tags.map(e=>s1` <uap-d-integrations-tag .type=${e.type} .scenarioID=${e.scenario_id} .label=${e.label} .helper=${e.helper} .color=${e.color} .icon=${e.icon} size="xs" ></uap-d-integrations-tag> `)} </div> </div> `}templateBlock(e,t){let i=this.viewerController.viewMode,a=s1` <uas-button color="transparent" size="sm" @click=${()=>this.handleClickBlock(e,t)} ?disabled=${!!t} class="viewer-block viewer-block--view-${i}" data-block-code=${e.type} > ${this.templateBlockContent(e,t)} </uas-button> `;return t?this.templateUnsupportedEntity(a,t,i):a}templateBlockContent(e,t){return s1` <div class="viewer-block-content"> ${e.details.icon?s1`<uap-d-recipe-block-icon code=${e.type} variant=${Au.FLAT} size=${Ah.XS} ></uap-d-recipe-block-icon>`:null} <div class="viewer-block-name"> ${e.name} </div> <div class="viewer-block-tags"> ${t?this.createUnsupportedTag():e.tags.map(e=>s1` <uap-d-integrations-tag .type=${e.type} .scenarioID=${e.scenario_id} .label=${e.label} .helper=${e.helper} .color=${e.color} .icon=${e.icon} size="xs" ></uap-d-integrations-tag> `)} </div> </div> `}templateKeyboardShortcuts(){return s1` <div class="viewer-keyboard-shortcuts"> <div class="viewer-keyboard-shortcuts-item"> <uas-chip size="xs" .label=${s1`<uas-icon code="slash-forward"></uas-icon>`} filled ></uas-chip> ${(0,lX.__)("to search","uncanny-automator")} </div> <div class="viewer-keyboard-shortcuts-item"> <uas-chip size="xs" .label=${s1`<code>tab</code>`} filled ></uas-chip> ${(0,lX.__)("to navigate","uncanny-automator")} </div> <div class="viewer-keyboard-shortcuts-item"> <uas-chip size="xs" .label=${s1`<uas-icon code="arrow-turn-down-left"></uas-icon>`} filled ></uas-chip> ${(0,lX.__)("to select","uncanny-automator")} </div> </div> `}createUnsupportedTag(){let e={type:Eu.AVAILABILITY,scenario_id:Er.UNSUPPORTED,label:(0,lX.__)("Unsupported","uncanny-automator"),icon:"ban",color:"error"};return s1` <uap-d-integrations-tag .tag=${e} size="xs" ></uap-d-integrations-tag> `}};enk([l0({type:String})],enE.prototype,"scope",void 0),enk([l0({attribute:"parent-item-id"})],enE.prototype,"parentItemID",void 0),enk([l0({attribute:"parent-path-code"})],enE.prototype,"parentPathCode",void 0),enk([l0({type:String,attribute:"integration-code"})],enE.prototype,"integrationCode",void 0),enk([l0({type:String})],enE.prototype,"searchQuery",void 0),enk([H8({context:Jp,subscribe:!0})],enE.prototype,"recipeID",void 0),enk([l0({type:Number,attribute:"last-modified-date-timestamp"})],enE.prototype,"lastModifiedDateTimestamp",void 0),enk([l4(".viewer-controls-search-field")],enE.prototype,"$searchField",void 0),enE=enk([lJ("uap-f-recipe-builder-node-selector-viewer")],enE);var enS=function(e,t,i,a){var n,o=arguments.length,r=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(r=(o<3?n(r):o>3?n(t,i,r):n(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r};let enC=class extends ld{constructor(){super(...arguments),this.isRecipeReady=!1,this.requires_dependencies_integration=!1,this.requires_dependencies_block=!1,this.requires_dependencies_item=!1,this.lastModifiedDateTimestamp=new Date().getTime(),this.routes=[{id:enc.STEP_1_INTEGRATION,path:`${Ni}/:${ena.SCOPE.name}/:${ena.PARENT_ITEM_ID.name}`,schema:enr,component:e=>this.renderStep1(e)},{id:enc.STEP_1_INTEGRATION_WITH_PATH,path:`${Ni}/:${ena.SCOPE.name}/:${ena.PARENT_ITEM_ID.name}/path/:${ena.PATH_CODE.name}`,schema:enr,component:e=>this.renderStep1(e)},{id:enc.STEP_1_INTEGRATION_AT_INDEX,path:`${Ni}/:${ena.SCOPE.name}/:${ena.PARENT_ITEM_ID.name}/at/:${ena.INSERT_INDEX.name}`,schema:enr,component:e=>this.renderStep1(e)},{id:enc.STEP_1_INTEGRATION_WITH_PATH_AT_INDEX,path:`${Ni}/:${ena.SCOPE.name}/:${ena.PARENT_ITEM_ID.name}/path/:${ena.PATH_CODE.name}/at/:${ena.INSERT_INDEX.name}`,schema:enr,component:e=>this.renderStep1(e)},{id:enc.STEP_1_5_INTEGRATION_DEPENDENCIES,path:`${Ni}/:${ena.SCOPE.name}/:${ena.PARENT_ITEM_ID.name}/integration/:${ena.INTEGRATION_CODE.name}/dependencies/:${ena.ITEM_CODE.name}?`,schema:eno,component:e=>{let{[ena.SCOPE.name]:t,[ena.INTEGRATION_CODE.name]:i,[ena.ITEM_CODE.name]:a}=e,n=kL.parse(t);return this.selected_integration_code=i,this.selected_block_type=void 0,this.requires_dependencies_integration=!0,this.requires_dependencies_block=!1,this.requires_dependencies_item=!1,s1` <uap-f-recipe-builder-node-selector-dependencies .scope=${n} .entityType=${SY.INTEGRATION} .integrationCode=${i} @uap.f.recipe-builder.node-selector.step-request-change=${this.handleRequestStepChange} ></uap-f-recipe-builder-node-selector-dependencies> `}},{id:enc.STEP_1_5_BLOCK_DEPENDENCIES,path:`${Ni}/:${ena.SCOPE.name}/:${ena.PARENT_ITEM_ID.name}/block/:${ena.BLOCK_TYPE.name}/dependencies`,schema:enn,component:e=>{let{[ena.SCOPE.name]:t,[ena.BLOCK_TYPE.name]:i}=e,a=kL.parse(t);return this.selected_block_type=i,this.selected_integration_code=void 0,this.requires_dependencies_block=!0,this.requires_dependencies_integration=!1,this.requires_dependencies_item=!1,s1` <uap-f-recipe-builder-node-selector-dependencies .scope=${a} .entityType=${SY.BLOCK} .blockType=${i} @uap.f.recipe-builder.node-selector.step-request-change=${this.handleRequestStepChange} ></uap-f-recipe-builder-node-selector-dependencies> `}},{id:enc.STEP_2_INTEGRATION_ITEMS,path:`${Ni}/:${ena.SCOPE.name}/:${ena.PARENT_ITEM_ID.name}/integration/:${ena.INTEGRATION_CODE.name}`,schema:enl,component:e=>{let{[ena.SCOPE.name]:t,[ena.PARENT_ITEM_ID.name]:i,[ena.INTEGRATION_CODE.name]:a}=e;return this.selected_integration_code=a,this.selected_block_type=void 0,this.requires_dependencies_item=!1,s1` <uap-f-recipe-builder-node-selector-viewer .scope=${t} .parentItemID=${i} .parentPathCode=${this.parentPathCode} .integrationCode=${a} .lastModifiedDateTimestamp=${this.lastModifiedDateTimestamp} @uap.f.recipe-builder.node-selector.step-request-change=${this.handleRequestStepChange} ></uap-f-recipe-builder-node-selector-viewer> `}},{id:enc.STEP_2_5_INTEGRATION_ITEM_DEPENDENCIES,path:`${Ni}/:${ena.SCOPE.name}/:${ena.PARENT_ITEM_ID.name}/integration/:${ena.INTEGRATION_CODE.name}/item/:${ena.ITEM_CODE.name}/dependencies`,schema:ens,component:e=>{let{[ena.SCOPE.name]:t,[ena.INTEGRATION_CODE.name]:i,[ena.ITEM_CODE.name]:a}=e,n=kL.parse(t);return this.selected_integration_code=i,this.selected_block_type=void 0,this.requires_dependencies_item=!0,s1` <uap-f-recipe-builder-node-selector-dependencies .scope=${n} .entityType=${SY.ITEM} .integrationCode=${i} .itemCode=${a} @uap.f.recipe-builder.node-selector.step-request-change=${this.handleRequestStepChange} ></uap-f-recipe-builder-node-selector-dependencies> `}}],this.router=new _P(this,this.routes),this.recipeController=new vE(this,()=>({...Ai(this.recipeID??-1),enabled:void 0!==this.recipeID})),this.blocksController=new vE(this,Ac),this.addItem=new vm(this,{meta:{recipeSave:!0},mutationFn:async e=>{var t,i,a,n,o,r;let s,l=R1.parse(e);return t=l.recipeID,i=l.parentID,a=l.integrationCode,n=l.itemType,o=l.itemCode,r=l.pathCode,s={parent_id:i,integration_code:a,item_code:o},void 0!==r&&(s.path_code=r),dV({endpoint:`recipe/${t}/item/${n}/add`,responseSchema:RJ,eventName:"uap.d.recipe.item.added",method:"POST",data:s,useEnvelope:!0})},onMutate:async e=>{var t,i,a,n;let o,{parsed:r,previousRecipe:s,queryKey:l}=await LA(R1,e),c=(t=r.temporaryID,i=r.itemType,a=r.integrationCode,n=r.itemCode,r.parentID,o={},T4.parse({type:kP.ITEM,item_type:i,id:t,integration_code:a,code:n,is_item_on:!1,custom_name:null,fields:o,last_known_integration_name:"",tokens:[],availability:{status:Cc.USABLE},tags:[]})),d=Lx(s,r.parentID,c,r.pathCode,r.insertIndex);return dW.setQueryData(l,d),{previousRecipe:s,temporaryItemID:c.id}},onError:(e,t,i)=>{L3(t.temporaryID);let a=R1.parse(t),n=Ae.detail(a.recipeID);if(i?.temporaryItemID){let e=i.temporaryItemID;dW.setQueryData(n,t=>t?L$(t,e):i.previousRecipe)}console.error("[addItem] Mutation failed, rolled back optimistic update:",e)},onSuccess:async(e,t,i)=>{let a=R1.parse(t),n=Ae.detail(a.recipeID),o=i?.temporaryItemID;L2(a.temporaryID,e.item_id),dW.setQueryData(n,t=>{if(!t||!o)return e.recipe;let i=R0(e.recipe,e.item_id);return i&&R0(t,o)?LD(LL(t,o,i),e.recipe):e.recipe}),console.log(`[addItem] Item added successfully with ID: ${e.item_id}`),await LJ(a)},onSettled:(e,t,i,a)=>{dW.invalidateQueries({queryKey:Ae.detail(i.recipeID)})}}),this.addBlock=new vm(this,{meta:{recipeSave:!0},mutationFn:async e=>{var t,i,a,n,o;let r,s=Nk.parse(e);return t=s.recipeID,i=s.parentID,a=s.blockType,n=s.fields,o=s.pathCode,r={parent_id:i},void 0!==o&&(r.path_code=o),void 0!==n&&(r.fields=JSON.stringify(n)),dV({endpoint:`recipe/${t}/block/${a}/add`,responseSchema:Nx,eventName:Nw,method:"POST",data:r,useEnvelope:!0})},onMutate:async e=>{let{parsed:t,previousRecipe:i,queryKey:a}=await LA(Nk,e),n=dW.getQueryData(As),o=n?n[t.blockType]:void 0,r=function(e,t,i={}){let a=i.catalogBlock,n={...function(e){if(!e)return{};let t={};for(let i of e.fields){let e=function(e){if(void 0===e.default_value||null===e.default_value)return;let t=typeof e.default_value;if("string"!==t&&"number"!==t&&"boolean"!==t)return;let i=String(e.default_value),a={type:e.input_type,value:i,miscellaneous:{label:e.label}};return("radio"===e.input_type||"select"===e.input_type)&&(a.readable=function(e,t){let i=e.options;if(i){for(let e of i)if(e.value===t)return e.text}}(e,i)??i),a}(i);e&&(t[i.option_code]=e)}return t}(a),...i.fieldOverrides??{}},o=(a?.paths??[]).map(e=>({path_code:e.path_code,content:[]})),r={type:kP.BLOCK,block_type:t,id:e,fields:n,modifiers:[],paths:o,tokens:[],availability:{status:Cc.USABLE},tags:[]};return In.parse(r)}(t.temporaryID,t.blockType,{catalogBlock:o}),s=In.parse({...r,modifiers:Mf(void 0,r)}),l=Lx(i,t.parentID,s,t.pathCode,t.insertIndex);return dW.setQueryData(a,l),{previousRecipe:i,temporaryBlockID:s.id}},onError:(e,t,i)=>{if(L3(t.temporaryID),console.error("[addBlock] Mutation failed:",e),!i||!i.temporaryBlockID)return;let a=Ae.detail(t.recipeID);dW.setQueryData(a,e=>e?L$(e,i.temporaryBlockID):i.previousRecipe)},onSuccess:async(e,t,i)=>{let a=Nk.parse(t),n=Ae.detail(a.recipeID);L2(a.temporaryID,e.block_id),dW.setQueryData(n,t=>{if(!t)return e.recipe;let a=R0(e.recipe,e.block_id),n=a&&Ir(a)?a:void 0;if(!n)return e.recipe;let o=i?.temporaryBlockID;return o&&!R0(t,o)?e.recipe:LD(o?LL(t,o,n):t,e.recipe)}),await LJ(a)},onSettled:(e,t,i,a)=>{dW.invalidateQueries({queryKey:Ae.detail(i.recipeID)})}}),this.addBlockModifier=new vm(this,{meta:{recipeSave:!0},mutationFn:async e=>{var t,i,a,n;let o=NA.parse(e);return t=o.recipeID,i=o.parentBlockID,a=o.integrationCode,n=o.modifierType,dV({endpoint:`recipe/${t}/block-modifier/${n}/add`,responseSchema:ND,eventName:"uap.d.recipe.block-modifier.added",method:"POST",data:{parent_id:i,integration_code:a,modifier_code:o.modifierCode},useEnvelope:!0})},onMutate:async e=>{let{parsed:t,previousRecipe:i,queryKey:a}=await LA(NA,e),n=Ml(t.temporaryID,t.modifierType,t.integrationCode,t.modifierCode),o=Lx(i,t.parentBlockID,n);return dW.setQueryData(a,o),{previousRecipe:i,temporaryBlockModifierID:n.id}},onError:(e,t,i)=>{L3(t.temporaryID);let a=NA.parse(t),n=Ae.detail(a.recipeID);if(i?.temporaryBlockModifierID){let e=i.temporaryBlockModifierID;dW.setQueryData(n,t=>t?L$(t,e):i.previousRecipe)}console.error("[addBlockModifier] Mutation failed, rolled back optimistic update:",e)},onSuccess:(e,t,i)=>{let a=NA.parse(t),n=Ae.detail(a.recipeID),o=i?.temporaryBlockModifierID;L2(a.temporaryID,e.block_modifier_id),dW.setQueryData(n,t=>{if(!t||!o)return e.recipe;let i=R0(e.recipe,e.block_modifier_id);return i&&R0(t,o)?LD(LL(t,o,i),e.recipe):e.recipe}),console.log(`[addBlockModifier] Modifier added successfully with ID: ${e.block_modifier_id}`)},onSettled:(e,t,i,a)=>{dW.invalidateQueries({queryKey:Ae.detail(i.recipeID)})}})}static{this.styles=sf`${sm(enp())}`}firstUpdated(){this.scope&&this.parentItemID&&this.recipeID&&lw({element:this,eventName:"uap.f.recipe-builder.node-selector.ready",options:{bubbles:!0,composed:!0},data:{scope:this.scope,parentItemID:this.parentItemID,recipeID:this.recipeID},schema:eni})}render(){if(!this.scope||!this.recipeID||!this.lastModifiedDateTimestamp)return;let e=this.router;return s1` <div class="node-selector"> <div class="node-selector-steps"> <uas-steps .steps=${this.steps} .router=${e} back-button-label=${String((0,lX._x)("Back","Item Selector","uncanny-automator"))} ></uas-steps> </div> <div class="node-selector-content"> ${this.router.renderOutlet()} </div> </div> `}renderStep1(e){let{[ena.SCOPE.name]:t,[ena.PARENT_ITEM_ID.name]:i,[ena.PATH_CODE.name]:a,[ena.INSERT_INDEX.name]:n}=e;return this.parentPathCode=a??this.parentPathCode,this.parentInsertIndex=n??this.parentInsertIndex,this.selected_integration_code=void 0,this.selected_block_type=void 0,this.requires_dependencies_integration=!1,this.requires_dependencies_block=!1,this.requires_dependencies_item=!1,s1` <uap-f-recipe-builder-node-selector-viewer .scope=${t} .parentItemID=${i} .parentPathCode=${this.parentPathCode} .lastModifiedDateTimestamp=${this.lastModifiedDateTimestamp} @uap.f.recipe-builder.node-selector.step-request-change=${this.handleRequestStepChange} ></uap-f-recipe-builder-node-selector-viewer> `}handleRequestStepChange(e){if(!this.scope||!this.parentItemID)return;let t=e.detail,i=ete.parse(t),{entity_type:a,scenario_id:n}=i;switch(a){case SY.INTEGRATION:{let{integration_code:e}=i;switch(n){case ee3["INTEGRATION-UNMET-DEPENDENCIES"]:case ee3["INTEGRATION-IDOR-ATTACK-UNMET-DEPENDENCIES"]:{let t={[ena.SCOPE.name]:this.scope,[ena.PARENT_ITEM_ID.name]:this.parentItemID,[ena.INTEGRATION_CODE.name]:e};this.router.navigateById(enc.STEP_1_5_INTEGRATION_DEPENDENCIES,t);break}case ee3["INTEGRATION-IDOR-ATTACK-UNSUPPORTED"]:{let e={[ena.SCOPE.name]:this.scope,[ena.PARENT_ITEM_ID.name]:this.parentItemID};this.showUnsupportedError(SY.INTEGRATION),this.router.navigateById(enc.STEP_1_INTEGRATION,e);break}case ee3["INTEGRATION-READY"]:{let t={[ena.SCOPE.name]:this.scope,[ena.PARENT_ITEM_ID.name]:this.parentItemID,[ena.INTEGRATION_CODE.name]:e};this.router.navigateById(enc.STEP_2_INTEGRATION_ITEMS,t)}}break}case SY.ITEM:{let{integration_code:e,item_code:t}=i;switch(n){case ee6["ITEM-INTEGRATION-UNMET-DEPENDENCIES"]:{let i={[ena.SCOPE.name]:this.scope,[ena.PARENT_ITEM_ID.name]:this.parentItemID,[ena.INTEGRATION_CODE.name]:e,[ena.ITEM_CODE.name]:t};this.router.navigateById(enc.STEP_1_5_INTEGRATION_DEPENDENCIES,i);break}case ee6["ITEM-UNMET-DEPENDENCIES"]:{let i={[ena.SCOPE.name]:this.scope,[ena.PARENT_ITEM_ID.name]:this.parentItemID,[ena.INTEGRATION_CODE.name]:e,[ena.ITEM_CODE.name]:t};this.router.navigateById(enc.STEP_2_5_INTEGRATION_ITEM_DEPENDENCIES,i);break}case ee6["ITEM-READY"]:this.addItemToRecipe(e,t)}break}case SY.BLOCK:{let{block_type:e}=i;switch(n){case ee8["BLOCK-UNMET-DEPENDENCIES"]:{let t={[ena.SCOPE.name]:this.scope,[ena.PARENT_ITEM_ID.name]:this.parentItemID,[ena.BLOCK_TYPE.name]:e};this.router.navigateById(enc.STEP_1_5_BLOCK_DEPENDENCIES,t);break}case ee8["BLOCK-READY"]:this.addBlockToRecipe(e)}}}}async addItemToRecipe(e,t){if(!this.recipeID||!this.parentItemID||!this.scope)return void console.error(`${this.recipeID}/node-selector: Cannot add item: missing required data`,{recipeID:this.recipeID,parentItemID:this.parentItemID,scope:this.scope});let i=this.recipeID,a=this.parentItemID,n=this.scope;if(!this.isRecipeReady){console.error(`${this.recipeID}/node-selector: Cannot add item: the recipe data is not available yet. It's either because the user clicked this too fast, or because the initial Zod validation against the LocalRecipe schema failed during page load. If this error appears, wait a moment and retry.`),ly({message:(0,b4.escapeHTML)((0,lX._x)("Whoa! You're faster than our data. Wait a moment and try again.","Item Selector","uncanny-automator")),color:"error",iconID:"face-fearful",duration:5e3});return}if(this.isModifierScope(a,n))return void await this.addBlockModifierToRecipe(e,t,n,a,i);let o=await async function(e,t){let i=(await SC())[e];if(!i)throw Error(`Integration not found: ${e}`);let a=Object.values(i.items).flatMap(e=>Object.values(e)).find(e=>e.code===t);if(!a)throw Error(`Item not found: ${t}`);return a}(e,t),r=Mm(),s=this.addItem.mutateAsync({recipeID:i,parentID:a,pathCode:this.parentPathCode,insertIndex:this.parentInsertIndex,integrationCode:e,itemType:n,itemCode:t,temporaryID:r});this.openEditDialog(kP.ITEM,r);try{await s,d4.DEV.SHOW_CONSOLE_MESSAGES&&console.log(`%c${this.recipeID}/node-selector: Successfully added item to recipe`,"color: green; font-weight: bold",{integrationCode:e,itemCode:t,recipeID:i}),await this.maybeAutoTriggerRunAs(i,o.requires_user_data,a)}catch(e){console.error(`${i}/node-selector: Failed to add item to recipe:`,e),ly({message:(0,b4.escapeHTML)((0,lX._x)("Failed to add item. Please try again.","Item Selector","uncanny-automator")),color:"error",iconID:"xmark",duration:5e3})}}async maybeAutoTriggerRunAs(e,t,i){if(t)try{await XH(e,i)}catch(t){console.error(`${e}/node-selector: Auto-trigger of run-as configuration failed:`,t),ly({message:(0,b4.escapeHTML)((0,lX._x)("We could not set up the user selector automatically. Please try again.","Item Selector","uncanny-automator")),color:"error",iconID:"triangle-exclamation",duration:5e3})}}openEditDialog(e,t){L0.set(t,{status:L1.PENDING}),window.location.hash=Nf(e,t)}async addBlockModifierToRecipe(e,t,i,a,n){let o=await $p(e,t),r=Mm(),s=this.addBlockModifier.mutateAsync({recipeID:n,parentBlockID:a,integrationCode:e,modifierType:i,modifierCode:t,temporaryID:r});this.openEditDialog(kP.BLOCK_MODIFIER,r);try{await s,d4.DEV.SHOW_CONSOLE_MESSAGES&&console.log(`%c${this.recipeID}/node-selector: Successfully added block-modifier to recipe`,"color: green; font-weight: bold",{integrationCode:e,modifierCode:t,recipeID:n}),await this.maybeAutoTriggerRunAs(n,o.requires_user_data,a)}catch(e){console.error(`${n}/node-selector: Failed to add block-modifier to recipe:`,e),ly({message:(0,b4.escapeHTML)((0,lX._x)("Failed to add modifier. Please try again.","Item Selector","uncanny-automator")),color:"error",iconID:"xmark",duration:5e3})}}isModifierScope(e,t){if(e===this.recipeID)return!1;let i=this.recipeController.result.data,a=this.blocksController.result.data;if(!i||!a)return!1;let n=R0(i,e);if(!n||!Ir(n))return!1;let o=a[n.block_type],r=o?.modifiers?.types;return void 0!==r&&r.some(e=>e.id===t)}async addBlockToRecipe(e){if(!this.recipeID||!this.parentItemID||!this.scope)return void console.error(`${this.recipeID}/node-selector: Cannot add block: missing required data`,{recipeID:this.recipeID,parentItemID:this.parentItemID,scope:this.scope});let t=this.recipeID,i=this.parentItemID;if(d4.DEV.SHOW_CONSOLE_MESSAGES&&(console.log(`%c${this.recipeID}/node-selector: Add block to the recipe.`,"color: green;"),console.log({scope:this.scope,parentItemID:i,blockType:e,recipeID:t})),!this.isRecipeReady){console.error(`${this.recipeID}/node-selector: Cannot add block: the recipe data is not available yet. It's either because the user clicked this too fast, or because the initial Zod validation against the LocalRecipe schema failed during page load. If this error appears, wait a moment and retry.`),ly({message:(0,b4.escapeHTML)((0,lX._x)("Whoa! You're faster than our data. Wait a moment and try again.","Item Selector","uncanny-automator")),color:"error",iconID:"face-fearful",duration:5e3});return}if(!await async function(e){return(await Ad())[e]}(e))return;let a=Mm(),n=this.addBlock.mutateAsync({recipeID:t,parentID:i,pathCode:this.parentPathCode,insertIndex:this.parentInsertIndex,blockType:e,temporaryID:a});this.openEditDialog(kP.BLOCK,a);try{await n,d4.DEV.SHOW_CONSOLE_MESSAGES&&console.log(`%c${this.recipeID}/node-selector: Successfully added block to recipe`,"color: green; font-weight: bold",{blockType:e,recipeID:t})}catch(e){console.error(`${t}/node-selector: Failed to add block to recipe:`,e),ly({message:(0,b4.escapeHTML)((0,lX._x)("Failed to add block. Please try again.","Item Selector","uncanny-automator")),color:"error",iconID:"xmark",duration:5e3})}}showUnsupportedError(e){let t={[SY.INTEGRATION]:(0,lX._x)("The integration is not supported in this context. Please try again with a different integration.","Item Selector","uncanny-automator"),[SY.ITEM]:(0,lX._x)("The item is not supported in this context. Please try again with a different item.","Item Selector","uncanny-automator"),[SY.BLOCK]:(0,lX._x)("The block is not supported in this context. Please try again with a different block.","Item Selector","uncanny-automator")}[e];ly({message:(0,b4.escapeHTML)(t),color:"error",iconID:"xmark",duration:5e3})}get steps(){let e=[],t=this.router.getCurrentRouteId()||enc.STEP_1_INTEGRATION,i=end.safeParse(t);if(e.push({id:i.success?i.data:enc.STEP_1_INTEGRATION,label:this.step1Label}),this.requires_dependencies_integration&&e.push({id:enc.STEP_1_5_INTEGRATION_DEPENDENCIES,label:(0,lX._x)("Dependencies","Item Selector","uncanny-automator")}),this.requires_dependencies_block&&e.push({id:enc.STEP_1_5_BLOCK_DEPENDENCIES,label:(0,lX._x)("Dependencies","Item Selector","uncanny-automator")}),this.scope){let t=kN[this.scope]??s1`<uap-d-recipe-block-modifier-name code=${this.scope}></uap-d-recipe-block-modifier-name>`;e.push({id:enc.STEP_2_INTEGRATION_ITEMS,label:t})}return this.requires_dependencies_item&&e.push({id:enc.STEP_2_5_INTEGRATION_ITEM_DEPENDENCIES,label:(0,lX._x)("Dependencies","Item Selector","uncanny-automator")}),{current_step_id:t,steps:e}}get scope(){let e=this.router.getCurrentParams()[ena.SCOPE.name];if(e)return kL.parse(e)}get parentItemID(){let e=this.router.getCurrentParams()[ena.PARENT_ITEM_ID.name];if(e)return ena.PARENT_ITEM_ID.schema.parse(e)}get step1Label(){return this.selected_integration_code?s1`<uap-d-integrations-name code=${this.selected_integration_code}></uap-d-integrations-name>`:this.selected_block_type?s1`<uap-d-recipe-block-name type=${this.selected_block_type}></uap-d-recipe-block-name>`:(0,lX._x)("Integration","Item Selector","uncanny-automator")}};function enT(e){return e instanceof Error&&!rY(e.message)?e.message:(0,lX.__)("An unknown error occurred.","uncanny-automator")}enS([H8({context:Jp,subscribe:!0})],enC.prototype,"recipeID",void 0),enS([H5({context:ent}),l0({type:Boolean,attribute:!1})],enC.prototype,"isRecipeReady",void 0),enS([l0({type:String,attribute:!1})],enC.prototype,"selected_integration_code",void 0),enS([l0({type:String,attribute:!1})],enC.prototype,"selected_block_type",void 0),enS([l0({type:String,attribute:!1})],enC.prototype,"parentPathCode",void 0),enS([l0({type:Number,attribute:!1})],enC.prototype,"parentInsertIndex",void 0),enS([l0({type:Boolean,attribute:!1})],enC.prototype,"requires_dependencies_integration",void 0),enS([l0({type:Boolean,attribute:!1})],enC.prototype,"requires_dependencies_block",void 0),enS([l0({type:Boolean,attribute:!1})],enC.prototype,"requires_dependencies_item",void 0),enS([l0({type:Number,attribute:"last-modified-date-timestamp"})],enC.prototype,"lastModifiedDateTimestamp",void 0),enC=enS([lJ("uap-f-recipe-builder-node-selector")],enC);let enI=rg({hasTests:re(),currentStepID:etJ,allRequiredPassed:re()}).strict();rg({getRecipeID:rZ(e=>"function"==typeof e),getEntity:rZ(e=>"function"==typeof e),finishClose:rZ(e=>"function"==typeof e)});let enD=rv("eventName",[rg({eventName:rT([et6]),detail:et5}).strict(),rg({eventName:rT([et9]),detail:eie}).strict(),rg({eventName:rT([et8]),detail:et7}).strict()]),enA=new Map,en$=rg({result:CA}).strict(),enO=rg({recipeID:o5().int().positive(),nodeType:kz,nodeID:ry([o5(),oR().min(1)]),testID:oR().min(1)}),enR={all:()=>["recipe-node-test-run-status"],detail:(e,t,i,a)=>[...enR.all(),e,t,i,a]};async function enM(e){let[,t,i,a,n]=e.queryKey,o=enO.parse({recipeID:t,nodeType:i,nodeID:a,testID:n});if(d4.DEV.RETURN_MOCK_DATA){var r;let e;return await new Promise(e=>setTimeout(e,d4.DEV.MOCK_DELAY_MS)),en$.parse({result:(r=o.testID,void 0===(e=enA.get(r))||Date.now()-e<15e3?DX:DJ)}).result}return(await dV({endpoint:`recipe/${o.recipeID}/node-tests/${Nm(o.nodeType)}/${encodeURIComponent(String(o.nodeID))}/test/${encodeURIComponent(o.testID)}/run-status`,responseSchema:en$,method:"GET",useEnvelope:!0})).result}let enL=rg({recipeID:o5().int().positive(),nodeType:kz,nodeID:ry([o5(),oR().min(1)]),testID:oR().min(1),node_values:k4,test_values:k4}).strict(),enN=rg({result:CA}).strict();async function enP(e){let t=enL.parse(e);if(d4.DEV.RETURN_MOCK_DATA){var i,a;return(await new Promise(e=>setTimeout(e,d4.DEV.MOCK_DELAY_MS)),i=t.testID,DK.some(e=>e.id===i&&e.run_mode===CC.LISTEN))?(a=t.testID,enA.set(a,Date.now()),enN.parse({result:DX})):enN.parse({result:DQ})}return dV({endpoint:`recipe/${t.recipeID}/node-tests/${Nm(t.nodeType)}/${encodeURIComponent(String(t.nodeID))}/test/${encodeURIComponent(t.testID)}/run`,responseSchema:enN,method:"POST",data:{node_values:t.node_values,test_values:t.test_values},useEnvelope:!0})}let enz={CANCELLED:"cancelled",TIMED_OUT:"timed_out"},enU=rT(enz),enF=rg({recipeID:o5().int().positive(),nodeType:kz,nodeID:ry([o5(),oR().min(1)]),testID:oR().min(1),reason:enU}).strict(),enj=rg({result:CA}).strict();async function enB(e){let t=enF.parse(e);if(d4.DEV.RETURN_MOCK_DATA){var i;return(await new Promise(e=>setTimeout(e,d4.DEV.MOCK_DELAY_MS)),i=t.testID,enA.delete(i),t.reason===enz.TIMED_OUT)?enj.parse({result:D1}):enj.parse({result:{status:CT.NOT_RUN}})}return dV({endpoint:`recipe/${t.recipeID}/node-tests/${Nm(t.nodeType)}/${encodeURIComponent(String(t.nodeID))}/test/${encodeURIComponent(t.testID)}/run`,responseSchema:enj,method:"DELETE",data:{reason:t.reason},useEnvelope:!0})}rg({getRecipeID:rZ(e=>"function"==typeof e),getParams:rZ(e=>"function"==typeof e),getHasTests:rZ(e=>"function"==typeof e),isNodeResolved:rZ(e=>"function"==typeof e),getNodeFields:rZ(e=>"function"==typeof e),getIsDirty:rZ(e=>"function"==typeof e)});class enH{constructor(e,t){this.runsOverlay={},this.polling=null,this.cancelling=null,this.pollArmedAt=0,this.pollNode=null,this.host=e,this.accessors=t,e.addController(this),this.testsController=new vE(e,{queryKey:Nv.detail(0,kP.ITEM,0),queryFn:()=>Promise.resolve([]),staleTime:1/0,enabled:!1}),this.runStatusController=new vE(e,{queryKey:["recipe-node-test-run-status",0,kP.ITEM,0,""],queryFn:()=>Promise.reject(Error("poll not armed")),staleTime:0,enabled:!1}),this.runController=new vm(e,{mutationFn:enP,onSuccess:async(e,t)=>{(e.result.status===CT.PASSED||e.result.status===CT.FAILED)&&await dW.invalidateQueries({queryKey:Nv.detail(t.recipeID,t.nodeType,t.nodeID)})}}),this.cancelController=new vm(e,{mutationFn:enB,onSuccess:async(e,t)=>{await dW.invalidateQueries({queryKey:Nv.detail(t.recipeID,t.nodeType,t.nodeID)})}})}get listenDeadlineMS(){if(null===this.polling)return;let e=this.findTest(this.polling);if(!rY(e)&&e.run_mode===CC.LISTEN)return this.pollArmedAt+e.poll.timeout_ms}get tests(){return this.testsController.result.data??[]}get isTestsPending(){return this.testsController.result.isPending}get isTestsError(){return this.testsController.result.isError}get runs(){return this.runsOverlay}get pollingTestID(){return this.polling}get cancellingTestID(){return this.cancelling}get anyTestRunning(){return Object.values(this.runsOverlay).some(e=>e.status===CT.RUNNING)}get allRequiredPassed(){var e,t;return e=this.tests,t=this.runs,CR.parse(e).filter(e=>e.required).every(e=>CT.PASSED===t[e.id]?.status)}hostUpdate(){this.syncTestsQuery(),this.maybeSeedRuns(),this.advancePoll()}hostDisconnected(){null!==this.polling&&this.cancel(this.polling,enz.CANCELLED).catch(()=>void 0)}refetchTests(){this.testsController.refetch()}async run(e,t){let i=this.accessors.getRecipeID(),a=this.accessors.getParams();if(!(!rK(i)||rY(a))){this.runsOverlay={...this.runsOverlay,[e]:{status:CT.RUNNING}},this.host.requestUpdate();try{let n=await this.runController.mutateAsync({recipeID:i,nodeType:a.node_kind,nodeID:a.node_id,testID:e,node_values:k4.parse(this.accessors.getNodeFields()),test_values:k4.parse(t)});this.writeRun(e,n.result),n.result.status===CT.RUNNING&&this.armPoll(e)}catch(i){let t;this.writeRun(e,{status:CT.FAILED,output:(t=i instanceof dH&&!rY(i.message)?i.message:(0,b4.escapeHTML)(enT(i)),{heading:(0,b4.escapeHTML)((0,lX.__)("The test could not run. Please try again.","uncanny-automator")),content:t})})}}}async cancel(e,t){if(this.cancelling===e)return;let i=this.accessors.getRecipeID(),a=this.pollNode;if(this.disarmPoll(),!(!rK(i)||rY(a))){this.cancelling=e,this.host.requestUpdate();try{let n=await this.cancelController.mutateAsync({recipeID:i,nodeType:a.node_kind,nodeID:a.node_id,testID:e,reason:t});this.writeRun(e,n.result)}catch{this.writeRun(e,{status:CT.NOT_RUN}),t===enz.CANCELLED&&ly({message:(0,b4.escapeHTML)((0,lX.__)("The test could not be stopped. Please try again.","uncanny-automator")),color:"error",duration:5e3,iconID:"circle-exclamation"})}finally{this.cancelling=null,this.host.requestUpdate()}}}reset(){rY(this.tests)||(this.runsOverlay=function(e){let t=CR.parse(e),i={};for(let e of t)i[e.id]={status:CT.NOT_RUN};return i}(this.tests),this.host.requestUpdate())}clear(){this.runsOverlay={},this.host.requestUpdate()}syncTestsQuery(){var e,t;let i,a=this.accessors.getRecipeID(),n=this.accessors.getParams();if(!(rK(a)&&this.accessors.isNodeResolved()&&rK(n)&&this.accessors.getHasTests())||!rK(a)||!rK(n)){this.testsController.options.enabled&&this.testsController.setOptions({enabled:!1});return}this.testsController.setOptions({...(e=n.node_kind,t=n.node_id,i=Nb.parse({recipeID:a,nodeType:e,nodeID:t}),{queryKey:Nv.detail(i.recipeID,i.nodeType,i.nodeID),queryFn:N_,staleTime:1/0}),enabled:!0})}maybeSeedRuns(){let e=this.testsController.result.data;rY(e)||!rY(this.runsOverlay)||this.accessors.getIsDirty()||(this.runsOverlay=function(e){let t=CR.parse(e),i={};for(let e of t)i[e.id]=e.last_result??{status:CT.NOT_RUN};return i}(e),this.host.requestUpdate())}armPoll(e){let t=this.accessors.getRecipeID(),i=this.accessors.getParams(),a=this.findTest(e);if(!(!rK(t)||rY(i)||rY(a))&&a.run_mode===CC.LISTEN){var n,o;let r;dW.removeQueries({queryKey:enR.detail(t,i.node_kind,i.node_id,e),exact:!0}),this.polling=e,this.pollArmedAt=Date.now(),this.pollNode=i,this.runStatusController.setOptions({...(n=i.node_kind,o=i.node_id,r=enO.parse({recipeID:t,nodeType:n,nodeID:o,testID:e}),{queryKey:enR.detail(r.recipeID,r.nodeType,r.nodeID,r.testID),queryFn:enM,staleTime:0}),refetchInterval:a.poll.interval_ms,enabled:!0})}}disarmPoll(){null!==this.polling&&(this.polling=null,this.pollArmedAt=0,this.pollNode=null,this.runStatusController.setOptions({enabled:!1}),this.host.requestUpdate())}advancePoll(){let e=this.polling;if(null===e)return;let t=this.findTest(e);if(rY(t)||t.run_mode!==CC.LISTEN)return void this.disarmPoll();if(Date.now()-this.pollArmedAt>=t.poll.timeout_ms)return void this.cancel(e,enz.TIMED_OUT);let{data:i,isError:a}=this.runStatusController.result;if(a)return void this.cancel(e,enz.TIMED_OUT);if(!rY(i)&&(this.writeRun(e,i),i.status!==CT.RUNNING)){let e=this.accessors.getRecipeID(),t=this.pollNode;this.disarmPoll(),rK(e)&&!rY(t)&&dW.invalidateQueries({queryKey:Nv.detail(e,t.node_kind,t.node_id)})}}writeRun(e,t){this.runsOverlay={...this.runsOverlay,[e]:t},this.host.requestUpdate()}findTest(e){return(this.testsController.result.data??[]).find(t=>t.id===e)}}function enV(e,t,i){return T8(e)?{eventName:et6,detail:{recipeID:t,itemID:e.id,fields:i}}:It(e)?{eventName:et9,detail:{recipeID:t,modifierID:e.id,fields:i}}:{eventName:et8,detail:{recipeID:t,blockID:e.id,fields:i}}}class enq{constructor(e,t){this.saveInFlight=!1,this.pendingBlockFields=null,this.pendingClearModifierIDs=[],this.host=e,this.accessors=t,e.addController(this),this.updateItemController=new vm(e,{meta:{recipeSave:!0},mutationFn:async e=>{var t,i;let a=Nt.parse(e);return t=a.recipeID,i=a.itemType,dV({endpoint:`recipe/${t}/item/${i}/update`,responseSchema:Ne,eventName:"uap.d.recipe.item.updated",method:"POST",data:{item_id:a.itemID,fields:a.fields},useEnvelope:!0})},onMutate:async e=>{var t,i;let{parsed:a,previousRecipe:n,queryKey:o}=await LA(Nt,e),r=R0(n,a.itemID),s=r&&!Ir(r)?r:void 0,l=(t=a.itemID,i={fields:a.fields},Lh(n,e=>{for(let a of e.flow.entry.triggers)if(a?.id===t)return void LN(a,i);if(!function e(t,i,a){for(let n of t)if(n){if(n.type===kP.BLOCK){for(let t of n.paths)if(e(t.content,i,a))return!0;continue}if(n.id===i)return LN(n,a),!0}return!1}(e.flow.content,t,i))throw Error(`updateItemByID: item with ID ${t} not found in recipe`)}));return dW.setQueryData(o,l),{previousRecipe:n,originalItem:s}},onError:(e,t,i)=>{let a=Nt.parse(t),n=Ae.detail(a.recipeID);if(!i?.originalItem)return void console.error("[updateItem] Mutation failed; nothing to roll back:",e);let o=i.originalItem,r=a.itemID;dW.setQueryData(n,e=>e?R0(e,r)?LL(e,r,o):e:i.previousRecipe),console.error("[updateItem] Mutation failed, rolled back optimistic update:",e)},onSuccess:(e,t,i)=>{let a=Nt.parse(t),n=Ae.detail(a.recipeID),o=a.itemID;dW.setQueryData(n,t=>{if(!t)return e.recipe;let i=R0(e.recipe,o);return i?LD(LL(t,o,i),e.recipe):e.recipe}),console.log(`[updateItem] Item updated successfully: ${o}`)},onSettled:(e,t,i,a)=>{dW.invalidateQueries({queryKey:Ae.detail(i.recipeID)}),dW.invalidateQueries({queryKey:Nv.detail(i.recipeID,kP.ITEM,i.itemID)})}}),this.updateBlockController=new vm(e,{meta:{recipeSave:!0},mutationFn:async e=>{let t=NI.parse(e);return async function(e,t,i,a){if(d4.DEV.RETURN_MOCK_DATA){await new Promise(e=>setTimeout(e,d4.DEV.MOCK_DELAY_MS));let t=dW.getQueryData(Ae.detail(e));return NT.parse({recipe:t??IC})}return dV({endpoint:`recipe/${e}/block/${t}/update`,responseSchema:NT,eventName:"uap.d.recipe.block.updated",method:"POST",data:{block_id:i,fields:JSON.stringify(a)},useEnvelope:!0})}(t.recipeID,t.blockType,t.blockID,t.fields)},onMutate:async e=>{var t,i;let{parsed:a,previousRecipe:n,queryKey:o}=await LA(NI,e),r=R0(n,a.blockID),s=r&&Ir(r)?r:void 0,l=(t=a.blockID,i={fields:a.fields},Lh(n,e=>{if(!function e(t,i,a){for(let n of t)if(n&&Ir(n)){if(n.id===i)return Object.assign(n,a),!0;for(let t of n.paths)if(e(t.content,i,a))return!0}return!1}(e.flow.content,t,i))throw Error(`updateBlockByID: block with ID ${t} not found in recipe`)})),c=(a.clearModifierIDs??[]).reduce((e,t)=>L$(e,t),l);return dW.setQueryData(o,function(e,t,i){let a=R0(e,i);if(void 0===t||!a||!Ir(a))return e;let n=Mf(t,a);return 0===n.length?e:LL(e,i,Io.parse({...a,modifiers:[...a.modifiers,...n]}))}(c,s,a.blockID)),{previousRecipe:n,originalBlock:s}},onError:(e,t,i)=>{let a=NI.parse(t),n=Ae.detail(a.recipeID);if(!i?.originalBlock)return void console.error("[updateBlock] Mutation failed; nothing to roll back:",e);let o=i.originalBlock,r=a.blockID;dW.setQueryData(n,e=>{if(!e)return i.previousRecipe;let t=R0(e,r);return t&&Ir(t)?LL(e,r,o):e}),console.error("[updateBlock] Mutation failed, rolled back optimistic update:",e)},onSuccess:(e,t,i)=>{let a=NI.parse(t),n=Ae.detail(a.recipeID),o=a.blockID;dW.setQueryData(n,t=>{if(!t)return e.recipe;let i=R0(e.recipe,o),a=i&&Ir(i)?i:void 0;return a?LD(LL(t,o,a),e.recipe):e.recipe})},onSettled:(e,t,i,a)=>{dW.invalidateQueries({queryKey:Ae.detail(i.recipeID)}),dW.invalidateQueries({queryKey:Nv.detail(i.recipeID,kP.BLOCK,i.blockID)}),dW.invalidateQueries({queryKey:$7.all()})}}),this.updateModifierController=new vm(e,{meta:{recipeSave:!0},mutationFn:async e=>{var t,i;let a=NL.parse(e);return t=a.recipeID,i=a.modifierType,dV({endpoint:`recipe/${t}/block-modifier/${i}/update`,responseSchema:NM,eventName:"uap.d.recipe.block-modifier.updated",method:"POST",data:{block_modifier_id:a.modifierID,fields:a.fields},useEnvelope:!0})},onMutate:async e=>{let{parsed:t,previousRecipe:i,queryKey:a}=await LA(NL,e),n=R0(i,t.modifierID),o=void 0!==n&&It(n)?n:void 0,r=function(e,t,i){let a=!1,n=!1,o=Lh(e,e=>{let o=function e(t,i,a){for(let n of t)if(n){if(!Ir(n)){if(n.id===i)return{found:!1,matchedNonModifier:!0};continue}for(let e of n.modifiers)if(e?.id===i)return e.fields=a.fields,{found:!0,matchedNonModifier:!1};for(let t of n.paths){let n=e(t.content,i,a);if(n.found||n.matchedNonModifier)return n}}return{found:!1,matchedNonModifier:!1}}(e.flow.content,t,i);a=o.matchedNonModifier,n=o.found});if(a)throw Error(`updateBlockModifierByID: ID ${t} resolved to an entity that is not a block modifier`);if(!n)throw Error(`updateBlockModifierByID: block-modifier with ID ${t} not found in recipe`);return o}(i,t.modifierID,{fields:t.fields});return dW.setQueryData(a,r),{previousRecipe:i,originalBlockModifier:o}},onError:(e,t,i)=>{let a=NL.parse(t),n=Ae.detail(a.recipeID);if(!i?.originalBlockModifier)return void console.error("[updateBlockModifier] Mutation failed; nothing to roll back:",e);let o=i.originalBlockModifier,r=a.modifierID;dW.setQueryData(n,e=>e?R0(e,r)?LL(e,r,o):e:i.previousRecipe),console.error("[updateBlockModifier] Mutation failed, rolled back optimistic update:",e)},onSuccess:(e,t)=>{let i=NL.parse(t),a=Ae.detail(i.recipeID),n=i.modifierID;dW.setQueryData(a,t=>{if(!t)return e.recipe;let i=R0(e.recipe,n);return i?LD(LL(t,n,i),e.recipe):e.recipe}),console.log(`[updateBlockModifier] Modifier updated successfully: ${n}`)},onSettled:(e,t,i,a)=>{dW.invalidateQueries({queryKey:Ae.detail(i.recipeID)}),dW.invalidateQueries({queryKey:Nv.detail(i.recipeID,kP.BLOCK_MODIFIER,i.modifierID)})}})}get saving(){return this.saveInFlight}get pendingClearIDs(){return this.pendingClearModifierIDs}get hasPendingConfirmation(){return null!==this.pendingBlockFields}hostDisconnected(){}async save(e,t){if(!this.saveInFlight){if(T8(e))return void await this.saveItem(e,t);if(It(e))return void await this.saveModifier(e,t);await this.beginBlockSave(e,t)}}async confirmClear(){let e=this.accessors.getEntity(),t=this.pendingBlockFields,i=this.pendingClearModifierIDs;this.pendingBlockFields=null,this.pendingClearModifierIDs=[],this.host.requestUpdate(),!rY(e)&&Ir(e)&&null!==t&&await this.commitBlockSave(e,t,i)}cancelClear(){this.pendingBlockFields=null,this.pendingClearModifierIDs=[],this.host.requestUpdate()}async saveItem(e,t){let i=this.accessors.getRecipeID();if(rK(i)){this.saveInFlight=!0,this.host.requestUpdate();try{await this.updateItemController.mutateAsync({recipeID:i,itemType:e.item_type,itemID:e.id,fields:t});let a=enV(e,i,t);document.dispatchEvent(new CustomEvent(a.eventName,{detail:a.detail})),this.accessors.finishClose()}catch(e){this.showSaveFailure(e)}finally{this.saveInFlight=!1,this.host.requestUpdate()}}}async saveModifier(e,t){let i=this.accessors.getRecipeID();if(rK(i)){this.saveInFlight=!0,this.host.requestUpdate();try{await this.updateModifierController.mutateAsync({recipeID:i,modifierType:e.block_modifier_type,modifierID:e.id,fields:t});let a=enV(e,i,t);document.dispatchEvent(new CustomEvent(a.eventName,{detail:a.detail})),this.accessors.finishClose()}catch(e){this.showSaveFailure(e)}finally{this.saveInFlight=!1,this.host.requestUpdate()}}}async beginBlockSave(e,t){let i=this.accessors.getRecipeID();if(rK(i)){this.saveInFlight=!0,this.host.requestUpdate();try{let a=await async function(e,t,i){var a;let n,o=dW.getQueryData(Ae.detail(e));if(void 0===o)return[];let r=R0(o,t);if(!r||!Ir(r)||0===r.modifiers.length)return[];let s=dW.getQueryData(As)??{},l=Io.parse({...r,fields:i}),c=await Promise.all(r.modifiers.map(e=>$p(e.integration_code,e.code).catch(()=>void 0)));return(a=e=>{let t=c[r.modifiers.findIndex(t=>t.id===e.id)];if(void 0!==t)return{entity_type:SY.ITEM,entity_code:e.code,required_block_ancestors:t.required_block_ancestors,unsupported_block_ancestors:t.unsupported_block_ancestors}},n=[{block:l,pathCode:"MODIFIER"}],l.modifiers.filter(e=>{let t=a(e);return void 0!==t&&void 0!==Mc(n,s,t)})).map(e=>e.id)}(i,e.id,t);if(a.length>0){this.pendingBlockFields=t,this.pendingClearModifierIDs=a,this.host.requestUpdate();return}await this.commitBlockSave(e,t,[])}catch(e){this.showSaveFailure(e)}finally{this.saveInFlight=!1,this.host.requestUpdate()}}}async commitBlockSave(e,t,i){let a=this.accessors.getRecipeID();if(rK(a)){this.saveInFlight=!0,this.host.requestUpdate();try{await this.updateBlockController.mutateAsync({recipeID:a,blockType:e.block_type,blockID:e.id,fields:t,clearModifierIDs:[...i]});let n=enV(e,a,t);document.dispatchEvent(new CustomEvent(n.eventName,{detail:n.detail})),this.accessors.finishClose()}catch(e){this.showSaveFailure(e)}finally{this.saveInFlight=!1,this.host.requestUpdate()}}}showSaveFailure(e){ly({message:(0,b4.escapeHTML)(q$(e)??(0,lX.__)("Could not save your changes. Please try again.","uncanny-automator")),color:"error",duration:5e3,iconID:"circle-exclamation"})}}let enZ=rg({}).strict();var enW=function(e,t,i,a){var n,o=arguments.length,r=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(r=(o<3?n(r):o>3?n(t,i,r):n(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r};let enG=class extends ld{constructor(){super(...arguments),this.fieldsDirectory=[],this.fieldsValues={},this.notifiedFieldsReady=!1}createRenderRoot(){return this}updated(){!this.notifiedFieldsReady&&rK(this.$legacyForm)&&(this.notifiedFieldsReady=!0,lw({element:this,eventName:"uap.f.recipe-builder.edit-node.step-set-up.fields-ready",data:{},schema:enZ,options:{bubbles:!0,composed:!0}}))}scrollFirstInvalidFieldIntoView(){this.querySelector(".form-element--error")?.scrollIntoView({behavior:"smooth",block:"center"})}get areFieldsValid(){return rK(this.$legacyForm)&&this.$legacyForm.areFieldsValid}get areOpeningFieldsValid(){return!!rK(this.$legacyForm)&&Object.values(this.$legacyForm.fields).every(e=>e.validate(!1).isValid)}get unsavedFieldValues(){return this.$legacyForm?.unsavedFieldValues}render(){return s1` <div class="step-set-up"> <uap-builder-item-legacy-form .fieldsDirectory=${this.fieldsDirectory} .fieldsValues=${this.fieldsValues} recipe-id=${this.recipeID??""} item-type=${this.itemType??s3} item-id=${this.itemID??s3} integration-code=${this.integrationCode??s3} return-format="standard" ></uap-builder-item-legacy-form> </div> `}};enW([l0({attribute:!1})],enG.prototype,"fieldsDirectory",void 0),enW([l0({attribute:!1})],enG.prototype,"fieldsValues",void 0),enW([l0({type:Number,attribute:"recipe-id"})],enG.prototype,"recipeID",void 0),enW([l0({attribute:"item-type"})],enG.prototype,"itemType",void 0),enW([l0({attribute:"item-id"})],enG.prototype,"itemID",void 0),enW([l0({attribute:"integration-code"})],enG.prototype,"integrationCode",void 0),enW([l4("uap-builder-item-legacy-form")],enG.prototype,"$legacyForm",void 0),enG=enW([lJ("uap-f-recipe-builder-edit-node-step-set-up")],enG);let enK=rg({testID:oR().min(1),testValues:k4}).strict(),enY=rg({testID:oR().min(1)}).strict(),enQ={OPTIONAL:"optional",NOT_RUN:"not-run",RUNNING:"running",PASSED:"passed",FAILED:"failed"};rT(enQ);let enX={NOT_RUN:"not-run",RUNNING:"running",SUCCESS:"success",ERROR:"error",WARNING:"warning"},enJ=rT(enX);var en1=function(e,t,i,a){var n,o=arguments.length,r=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(r=(o<3?n(r):o>3?n(t,i,r):n(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r};let en0=class extends ld{constructor(){super(...arguments),this.index=0,this.total=0,this.anyTestRunning=!1,this.cancelling=!1,this.status=enX.NOT_RUN}createRenderRoot(){return this}willUpdate(e){var t;lQ(this,"test",CO,e,"uap-f-recipe-builder-edit-node-test-card"),lQ(this,"run",CA,e,"uap-f-recipe-builder-edit-node-test-card"),e.has("run")&&(this.status=(t=this.run,t?.status===CT.RUNNING?enX.RUNNING:t?.status===CT.PASSED?enX.SUCCESS:t?.status===CT.FAILED?enX.ERROR:enX.NOT_RUN)),lQ(this,"status",enJ,e,"uap-f-recipe-builder-edit-node-test-card")}updated(){let e=this.isListening()&&"number"==typeof this.listenDeadlineMS&&this.listenDeadlineMS>Date.now();e&&void 0===this.listenTickerID&&(this.listenTickerID=window.setInterval(()=>this.requestUpdate(),1e3)),e||void 0===this.listenTickerID||(window.clearInterval(this.listenTickerID),this.listenTickerID=void 0)}disconnectedCallback(){super.disconnectedCallback(),void 0!==this.listenTickerID&&(window.clearInterval(this.listenTickerID),this.listenTickerID=void 0)}isListening(){return this.test?.run_mode===CC.LISTEN&&this.run?.status===CT.RUNNING}render(){var e,t;let i;return rY(this.test)||rY(this.run)?s3:s1` <uas-accordion class="test-card-accordion"> <uas-accordion-item class="test-card" open> <div class="test-card__header" slot="summary" status=${this.status}> <span class="test-card__title"> ${(0,lX.sprintf)((0,lX.__)("%1$d/%2$d · %3$s","uncanny-automator"),this.index+1,this.total,this.test.name)} </span> <span class="test-card__chips"> ${(e=this.test,t=this.run,i=[],!e.required&&i.push(enQ.OPTIONAL),t.status===CT.RUNNING?i.push(enQ.RUNNING):t.status===CT.PASSED?i.push(enQ.PASSED):t.status===CT.FAILED?i.push(enQ.FAILED):e.required&&i.push(enQ.NOT_RUN),i).map(e=>this.templateChip(e))} </span> ${this.templateHeaderDate()} </div> <div class="test-card__body"> ${this.templateDescription()} ${this.templateFields()} ${this.templateAction()} ${this.templateResult()} </div> </uas-accordion-item> </uas-accordion> `}templateHeaderDate(){let e=this.run?.completed_at;return void 0===e?rY(this.run?.formatted_date)?s3:s1` <span class="test-card__date"> <uas-icon code="clock" aria-hidden="true"></uas-icon> ${this.run?.formatted_date} </span> `:s1` <span class="test-card__date" title=${this.run?.formatted_date??s3}> <uas-icon code="clock" aria-hidden="true"></uas-icon> <uas-timer .timestamp=${e}></uas-timer> </span> `}templateChip(e){switch(e){case enQ.OPTIONAL:return this.templateChipRow((0,lX.__)("Optional","uncanny-automator"),pO.NEUTRAL,void 0);case enQ.RUNNING:return this.templateChipRow((0,lX.__)("Running","uncanny-automator"),pO.INFO,"circle-info");case enQ.PASSED:return this.templateChipRow((0,lX.__)("Test passed","uncanny-automator"),pO.SUCCESS,"circle-check");case enQ.FAILED:return this.templateChipRow((0,lX.__)("Test failed","uncanny-automator"),pO.ERROR,"circle-xmark");case enQ.NOT_RUN:return this.templateChipRow((0,lX.__)("Test hasn't run yet","uncanny-automator"),pO.WARNING,"circle-exclamation")}}templateChipRow(e,t,i){return s1` <uas-chip size=${b6.XS} color=${t} label=${String(e)} icon=${i??s3} ></uas-chip> `}templateDescription(){return rY(this.test?.description)?s3:s1` <uas-markdown class="test-card__description" allowed-tags="em,strong,br,p,a,code,pre" .content=${this.test?.description??""} ></uas-markdown> `}templateFields(){return rY(this.test)||0===this.test.fields.length?s3:s1` <uap-builder-item-legacy-form .fieldsDirectory=${this.test.fields.map(e=>({...e,supports_tokens:!1}))} .fieldsValues=${{}} return-format="standard" recipe-id=${this.recipeID??""} ></uap-builder-item-legacy-form> `}templateAction(){if(rY(this.test)||rY(this.run))return s3;let e=this.run.status===CT.RUNNING;return this.isListening()?s1` <div class="test-card__action"> <uas-button color="secondary" size="sm" ?loading=${this.cancelling} @click=${this.onCancel}> ${(0,lX.__)("Stop listening","uncanny-automator")} </uas-button> ${this.templateListenCountdown()} </div> `:s1` <div class="test-card__action"> <uas-button color="primary" size="sm" ?loading=${e} ?disabled=${this.anyTestRunning} @click=${this.onRun}> ${this.test.button_label} </uas-button> </div> `}templateListenCountdown(){let e=this.listenDeadlineMS;if("number"!=typeof e||!Number.isFinite(e))return s3;let t=Math.ceil((e-Date.now())/1e3);if(t<=0)return s3;let i=Math.floor(t/60),a=String(t%60).padStart(2,"0");return s1` <span class="test-card__listen-countdown" role="timer" aria-label=${String((0,lX.__)("Time remaining before the test stops listening","uncanny-automator"))} > <uas-icon code="hourglass-half" aria-hidden="true"></uas-icon> ${i}:${a} </span> `}templateResult(){let e=this.run?.output;if(rY(this.run)||void 0===e)return s3;let t=this.run.status===CT.PASSED?yQ.SUCCESS:yQ.ERROR;return s1` <uas-alert type=${t} heading=${e.heading}> ${rY(e.content)?s3:s1` <uas-markdown class="test-card__result-content" allowed-tags="em,strong,p,br,a,code,pre,blockquote,ul,ol,li,table,tr,td,th,sup" .content=${e.content??""} ></uas-markdown> `} </uas-alert> `}onRun(){if(rY(this.test))return;let e=this.test.fields.length>0;if(e&&(rY(this.$legacyForm)||!this.$legacyForm.areFieldsValid))return;let t=e&&!rY(this.$legacyForm)?k4.parse(this.$legacyForm.unsavedFieldValues):{};lw({element:this,eventName:"uap.f.recipe-builder.edit-node.test-run-requested",data:{testID:this.test.id,testValues:t},schema:enK,options:{bubbles:!0,composed:!0}})}onCancel(){rY(this.test)||lw({element:this,eventName:"uap.f.recipe-builder.edit-node.test-cancel-requested",data:{testID:this.test.id},schema:enY,options:{bubbles:!0,composed:!0}})}};en1([l0({type:Object})],en0.prototype,"test",void 0),en1([l0({type:Object})],en0.prototype,"run",void 0),en1([l0({type:Number})],en0.prototype,"index",void 0),en1([l0({type:Number})],en0.prototype,"total",void 0),en1([l0({type:Number,attribute:"recipe-id"})],en0.prototype,"recipeID",void 0),en1([l0({type:Number,attribute:"listen-deadline-ms"})],en0.prototype,"listenDeadlineMS",void 0),en1([l0({type:Boolean,attribute:"any-test-running"})],en0.prototype,"anyTestRunning",void 0),en1([l0({type:Boolean})],en0.prototype,"cancelling",void 0),en1([l4("uap-builder-item-legacy-form")],en0.prototype,"$legacyForm",void 0),en1([l2()],en0.prototype,"status",void 0),en0=en1([lJ("uap-f-recipe-builder-edit-node-test-card")],en0);let en2=rg({}).strict();var en3=function(e,t,i,a){var n,o=arguments.length,r=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(r=(o<3?n(r):o>3?n(t,i,r):n(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r};let en4=class extends ld{constructor(){super(...arguments),this.tests=[],this.runs={},this.isLoading=!1,this.isError=!1,this.anyTestRunning=!1}createRenderRoot(){return this}willUpdate(e){lQ(this,"tests",CR,e,"uap-f-recipe-builder-edit-node-step-test"),lQ(this,"runs",et2,e,"uap-f-recipe-builder-edit-node-step-test")}render(){return this.isLoading?this.templateLoading():this.isError?this.templateError():s1` <div class="step-test-list"> ${this.tests.map((e,t)=>s1` <uap-f-recipe-builder-edit-node-test-card .test=${e} .run=${this.runs[e.id]??{status:CT.NOT_RUN}} index=${t} total=${this.tests.length} recipe-id=${this.recipeID??""} listen-deadline-ms=${this.listenDeadlineMS??s3} ?cancelling=${e.id===this.cancellingTestID} ?any-test-running=${this.anyTestRunning} ></uap-f-recipe-builder-edit-node-test-card> `)} </div> `}templateLoading(){return s1` <div class="step-test-list"> ${Array.from({length:3},()=>s1` <div class="step-test-list__skeleton"> <div class="step-test-list__skeleton-header"> <uas-skeleton width="14em" height="1.25em"></uas-skeleton> </div> <div class="step-test-list__skeleton-body"> <uas-skeleton width="100%" height="1em"></uas-skeleton> <uas-skeleton width="55%" height="1em"></uas-skeleton> <uas-skeleton width="9em" height="2em"></uas-skeleton> </div> </div> `)} </div> `}templateError(){return s1` <uas-alert type="error"> <p>${(0,lX.__)("The tests could not be loaded.","uncanny-automator")}</p> <uas-button size="sm" color="secondary" @click=${this.onRetry}> ${(0,lX.__)("Try again","uncanny-automator")} </uas-button> </uas-alert> `}onRetry(){lw({element:this,eventName:"uap.f.recipe-builder.edit-node.tests-retry-requested",data:{},schema:en2,options:{bubbles:!0,composed:!0}})}};en3([l0({type:Array})],en4.prototype,"tests",void 0),en3([l0({type:Object})],en4.prototype,"runs",void 0),en3([l0({type:Number,attribute:"recipe-id"})],en4.prototype,"recipeID",void 0),en3([l0({type:Number,attribute:"listen-deadline-ms"})],en4.prototype,"listenDeadlineMS",void 0),en3([l0({type:String,attribute:"cancelling-test-id"})],en4.prototype,"cancellingTestID",void 0),en3([l0({type:Boolean,attribute:"is-loading"})],en4.prototype,"isLoading",void 0),en3([l0({type:Boolean,attribute:"is-error"})],en4.prototype,"isError",void 0),en3([l0({type:Boolean,attribute:"any-test-running"})],en4.prototype,"anyTestRunning",void 0),en4=en3([lJ("uap-f-recipe-builder-edit-node-step-test")],en4);let en6=rg({}).strict(),en5=rg({}).strict(),en8=rg({}).strict(),en7=rg({}).strict(),en9={CANCEL:"cancel",SAVE:"save",SAVE_WITHOUT_TESTING:"save-without-testing",CONTINUE_TO_TESTING:"continue-to-testing",SAVE_CHANGES:"save-changes",SAVE_CHANGES_LOCKED:"save-changes-locked"};rT(en9);var eoe=a(4467),eot=a.n(eoe),eoi=function(e,t,i,a){var n,o=arguments.length,r=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(r=(o<3?n(r):o>3?n(t,i,r):n(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r};let eoa=class extends ld{constructor(){super(...arguments),this.variant=et3.NO_TESTS,this.saving=!1,this.anyTestRunning=!1,this.fieldsReady=!1}static{this.styles=sf`${sm(eot())}`}willUpdate(e){lQ(this,"variant",et4,e,"uap-f-recipe-builder-edit-node-footer")}render(){return s1` <div class="footer"> <div class="footer-actions"> ${(function(e){switch(e){case et3.NO_TESTS:return[en9.CANCEL,en9.SAVE];case et3.SET_UP_WITH_TESTS:return[en9.CANCEL,en9.CONTINUE_TO_TESTING,en9.SAVE];case et3.TEST_LOCKED:return[en9.CANCEL,en9.SAVE_WITHOUT_TESTING,en9.SAVE_CHANGES_LOCKED];case et3.TEST_READY:return[en9.CANCEL,en9.SAVE_CHANGES]}})(this.variant).map(e=>this.templateButton(e))} </div> ${this.templateKeyboardShortcuts()} </div> `}templateButton(e){switch(e){case en9.CANCEL:return s1` <uas-button color="secondary" @click=${this.onCancel}> ${(0,lX.__)("Cancel","uncanny-automator")} </uas-button> `;case en9.SAVE:return this.templateSaveButton("primary",(0,lX.__)("Save","uncanny-automator"),!1);case en9.SAVE_WITHOUT_TESTING:return this.templateSaveButton("secondary",(0,lX.__)("Save without testing","uncanny-automator"),!1,this.onSaveWithoutTesting);case en9.SAVE_CHANGES:return this.templateSaveButton("primary",(0,lX.__)("Save changes","uncanny-automator"),!1);case en9.SAVE_CHANGES_LOCKED:return this.templateSaveButton("primary",(0,lX.__)("Save changes (pass tests first)","uncanny-automator"),!0);case en9.CONTINUE_TO_TESTING:return s1` <uas-button color="secondary" ?disabled=${!this.fieldsReady} @click=${()=>{this.fieldsReady&&this.onContinueToTesting()}} > <uas-icon code=${"flask"} aria-hidden="true"></uas-icon> ${(0,lX.__)("Test","uncanny-automator")} </uas-button> `}}templateSaveButton(e,t,i,a=this.onSave){let n=i||this.anyTestRunning||this.saving||!this.fieldsReady;return s1` <uas-button color=${e} ?disabled=${n} ?loading=${this.saving} @click=${()=>{n||a.call(this)}} > <!-- aria-hidden: the icon is decorative; its glyph otherwise leaks into the button's accessible name. --> <uas-icon code="floppy-disk" aria-hidden="true"></uas-icon> ${t} </uas-button> `}templateKeyboardShortcuts(){return s1` <div class="footer-keyboard-shortcuts"> ${this.variant!==et3.TEST_LOCKED&&this.variant!==et3.TEST_READY?s1` <div class="footer-keyboard-shortcuts-item"> <uas-chip size="xs" .label=${s1`<code>tab</code>`} filled ></uas-chip> ${(0,lX.__)("to go to the next fields","uncanny-automator")} </div> `:""} <div class="footer-keyboard-shortcuts-item"> <uas-chip size="xs" .label=${s1`<code>esc</code>`} filled ></uas-chip> ${(0,lX.__)("to cancel unsaved changes","uncanny-automator")} </div> </div> `}onCancel(){lw({element:this,eventName:"uap.f.recipe-builder.edit-node.cancel-requested",data:{},schema:en6,options:{bubbles:!0,composed:!0}})}onSave(){lw({element:this,eventName:"uap.f.recipe-builder.edit-node.save-requested",data:{},schema:en5,options:{bubbles:!0,composed:!0}})}onSaveWithoutTesting(){lw({element:this,eventName:"uap.f.recipe-builder.edit-node.save-without-testing-requested",data:{},schema:en8,options:{bubbles:!0,composed:!0}})}onContinueToTesting(){lw({element:this,eventName:"uap.f.recipe-builder.edit-node.continue-to-testing-requested",data:{},schema:en7,options:{bubbles:!0,composed:!0}})}};eoi([l0({type:String})],eoa.prototype,"variant",void 0),eoi([l0({type:Boolean})],eoa.prototype,"saving",void 0),eoi([l0({type:Boolean,attribute:"any-test-running"})],eoa.prototype,"anyTestRunning",void 0),eoi([l0({type:Boolean,attribute:"fields-ready"})],eoa.prototype,"fieldsReady",void 0),eoa=eoi([lJ("uap-f-recipe-builder-edit-node-footer")],eoa);let eon=rg({}).strict();var eoo=function(e,t,i,a){var n,o=arguments.length,r=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(r=(o<3?n(r):o>3?n(t,i,r):n(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r};let eor=class extends ld{constructor(){super(...arguments),this.routes=[{path:"/",component:()=>s1``},{id:"edit-node-dialog",path:`${Na}/*`,component:()=>this.templateDialog()}],this.router=new _P(this,this.routes)}createRenderRoot(){return this}render(){return s1`${this.router.renderOutlet()}`}templateDialog(){return s1` <uas-dialog size="lg" open no-header no-footer no-padding no-backdrop-close @uas.dialog.close=${this.onDismiss} > <uap-f-recipe-builder-edit-node recipe-id=${this.recipeID??s3} @uap.f.recipe-builder.edit-node.close=${this.onDismiss} ></uap-f-recipe-builder-edit-node> </uas-dialog> `}onDismiss(){window.location.hash=""}};eoo([l0({type:Number,attribute:"recipe-id"})],eor.prototype,"recipeID",void 0),eor=eoo([lJ("uap-f-recipe-builder-edit-node-dialog")],eor);let eos=rg({temporaryID:T2}).loose();var eol=function(e,t,i,a){var n,o=arguments.length,r=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(r=(o<3?n(r):o>3?n(t,i,r):n(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r};let eoc=(0,lX.__)("Back to setting up fields","uncanny-automator"),eod=class extends ld{constructor(){super(...arguments),this.unsavedFieldValues={},this.isDirty=!1,this.beforeUnloadAttached=!1,this.lastNodeIdentity=null,this.addedNodeID=null,this.lastLoggedStepLoadError=null,this.lastOutletRefreshKey=null,this.fieldsReady=!1,this.routes=[{id:etX.ROOT,path:`${Na}/:${et1.NODE_KIND.name}/:${et1.NODE_ID.name}`,schema:et0,component:()=>s1``},{id:etX.SET_UP,path:`${Na}/:${et1.NODE_KIND.name}/:${et1.NODE_ID.name}/set-up`,schema:et0,component:()=>this.templateStepSetUp()},{id:etX.TEST,path:`${Na}/:${et1.NODE_KIND.name}/:${et1.NODE_ID.name}/test`,schema:et0,component:()=>this.templateStepTest()}],this.router=new _P(this,this.routes),this.recipeController=new vE(this,{queryKey:Ae.detail(0),queryFn:()=>Promise.reject(Error("recipe id not set")),staleTime:1/0,enabled:!1}),this.integrationsController=new vE(this,SS),this.blocksController=new vE(this,Ac),this.fieldsDirectoryController=new vE(this,()=>this.fieldsDirectoryOptions()),this.testRun=new enH(this,{getRecipeID:()=>this.recipeID,getParams:()=>this.params,getHasTests:()=>this.hasTests,isNodeResolved:()=>rK(this.entity)&&!T3(this.params?.node_id),getNodeFields:()=>this.nodeFields,getIsDirty:()=>this.isDirty}),this.saver=new enq(this,{getRecipeID:()=>this.recipeID,getEntity:()=>this.entity,finishClose:()=>{this.detachBeforeUnload(),this.requestClose()}}),this.handleNodeSaved=e=>{let t=function(e){if(!(e instanceof CustomEvent))return;let t=enD.safeParse({eventName:e.type,detail:e.detail});if(t.success)return t.data.eventName===et6?t.data.detail.itemID:t.data.eventName===et9?t.data.detail.modifierID:t.data.detail.blockID}(e);void 0!==t&&this.isAddedNode(t)&&this.keepAddedNode(t)},this.handleBeforeUnload=e=>{e.preventDefault(),e.returnValue=""}}fieldsDirectoryOptions(){let e=this.entity;if(rY(e)||Ir(e))return{queryKey:$m.detail("","action",""),queryFn:()=>Promise.resolve([]),staleTime:1/0,enabled:!1};if(It(e)){let t=$g.detail(e.integration_code,e.block_modifier_type,e.code);return{queryKey:t,queryFn:e=>(async function(e){let[,t,i,a]=e.queryKey;return d4.DEV.RETURN_MOCK_DATA?(await new Promise(e=>setTimeout(e,d4.DEV.MOCK_DELAY_MS)),kK.parse($h)):await dV({endpoint:`integrations/${t}/block-modifiers/${i}/${a}/fields`,responseSchema:kK,method:"GET",useEnvelope:!1})})({...e,queryKey:t}),staleTime:1/0,enabled:!0}}let t=$m.detail(e.integration_code,e.item_type,e.code);return{queryKey:t,queryFn:e=>(async function(e){let[,t,i,a]=e.queryKey;return d4.DEV.RETURN_MOCK_DATA?(await new Promise(e=>setTimeout(e,d4.DEV.MOCK_DELAY_MS)),kK.parse($h)):await dV({endpoint:`integrations/${t}/items/${i}/${a}/fields`,responseSchema:kK,method:"GET",useEnvelope:!1})})({...e,queryKey:t}),staleTime:1/0,enabled:!0}}createRenderRoot(){return this}willUpdate(e){e.has("recipeID")&&this.syncRecipeQuery(),this.maybeAdoptResolvedNode(),this.syncNodeIdentity(),this.maybeRedirectTestlessRoute(),this.maybeLogStepLoadError()}maybeLogStepLoadError(){let e=this.recipeController.result.error??this.blocksController.result.error??this.fieldsDirectoryController.result.error;rK(e)&&e!==this.lastLoggedStepLoadError&&(this.lastLoggedStepLoadError=e,console.error("[uap-f-recipe-builder-edit-node] a load the edit surface depends on failed; the step cannot render",{recipeID:this.recipeID,nodeKind:this.params?.node_kind,nodeID:this.params?.node_id,error:e}))}firstUpdated(){let e=this.router.getCurrentRouteId();(e===etX.ROOT||e===etX.TEST)&&this.router.navigateById(etX.SET_UP,this.stepNavigationParams(),{replace:!0})}updated(){let e=this.router.getCurrentRouteId(),t=e===etX.SET_UP||e===etX.TEST,i=this.entity;if(!t||rY(i))return;let a=`${e}:${i.type}:${i.id}`;null===this.querySelector("uap-f-recipe-builder-edit-node-step-set-up, uap-f-recipe-builder-edit-node-step-test")&&this.lastOutletRefreshKey!==a&&(this.lastOutletRefreshKey=a,queueMicrotask(()=>{this.isConnected&&this.requestUpdate()}))}connectedCallback(){super.connectedCallback(),document.addEventListener(et6,this.handleNodeSaved),document.addEventListener(et8,this.handleNodeSaved),document.addEventListener(et9,this.handleNodeSaved)}disconnectedCallback(){super.disconnectedCallback(),this.detachBeforeUnload(),document.removeEventListener(et6,this.handleNodeSaved),document.removeEventListener(et8,this.handleNodeSaved),document.removeEventListener(et9,this.handleNodeSaved),this.discardUnsavedAddedNode()}syncRecipeQuery(){rK(this.recipeID)?this.recipeController.setOptions({...Ai(this.recipeID),enabled:!0}):this.recipeController.setOptions({enabled:!1})}syncNodeIdentity(){let e=this.params;if(rY(e))return;let t=this.lastNodeIdentity;(this.lastNodeIdentity={kind:e.node_kind,id:e.node_id},null===t)?this.trackAddedNode(e.node_id):(t.kind!==e.node_kind||t.id!==e.node_id)&&(this.isAddedNode(e.node_id)||(this.discardUnsavedAddedNode(),this.trackAddedNode(e.node_id)),null!==this.testRun.pollingTestID&&this.testRun.cancel(this.testRun.pollingTestID,enz.CANCELLED).catch(()=>void 0),this.unsavedFieldValues={},this.isDirty=!1,this.saver.cancelClear(),this.fieldsReady=!1,this.testRun.clear(),this.detachBeforeUnload())}trackAddedNode(e){this.addedNodeID=T3(e)&&rK(L4(e))?e:null}isAddedNode(e){if(null===this.addedNodeID)return!1;if(e===this.addedNodeID)return!0;let t=L4(this.addedNodeID);return t?.status===L1.RESOLVED&&t.node_id===e}discardUnsavedAddedNode(){let e=this.addedNodeID;this.addedNodeID=null,null!==e&&rK(this.recipeID)&&async function(e,t){let i=await async function(e){var t;let i;if(!T3(e))return e;await (t=e,(i=()=>dW.isMutating({predicate:e=>{let i=eos.safeParse(e.state.variables);return i.success&&i.data.temporaryID===t}})>0)()?new Promise(e=>{let t=dW.getMutationCache().subscribe(()=>{i()||(t(),e())})}):Promise.resolve());let a=L4(e);return a?.status===L1.RESOLVED?a.node_id:void 0}(t);if(void 0===i)return;let a=dW.getQueryData(Ae.detail(e));if(void 0===a)return;let n=R0(a,i),o=Ly(a,i);if(n&&void 0!==o)try{if(Ir(n))return void await dK(NC(),{recipeID:e,blockType:n.block_type,blockID:i,parentID:o,deleteContent:!0});if(It(n))return void await dK(NR(),{recipeID:e,modifierType:n.block_modifier_type,modifierID:i,parentBlockID:o});T8(n)&&await dK(L8(),{recipeID:e,itemType:n.item_type,itemID:i,parentID:o})}catch(e){console.error("[discardAddedNode] The added node could not be removed:",e)}}(this.recipeID,e)}keepAddedNode(e){this.addedNodeID=null,lw({element:document,eventName:eit,data:{nodeID:e},schema:eii})}maybeAdoptResolvedNode(){let e=this.params?.node_id;if(!T3(e))return;let t=L4(e);if(t?.status!==L1.RESOLVED)return;let i=this.router.getCurrentRouteId()===etX.TEST?etX.TEST:etX.SET_UP;this.router.navigateById(i,this.stepNavigationParams(t.node_id),{replace:!0})}maybeRedirectTestlessRoute(){if(this.router.getCurrentRouteId()!==etX.TEST)return;let e=this.entity;rY(e)||(Ir(e)?rK(this.blocksController.result.data):rK(this.integrationsController.result.data))&&!this.hasTests&&this.router.navigateById(etX.SET_UP,this.stepNavigationParams(),{replace:!0})}get params(){let e=this.router.getCurrentParams(),t=et0.safeParse(e);return t.success?t.data:void 0}stepNavigationParams(e){let t=this.params;return rY(t)?{}:{[et1.NODE_KIND.name]:Nm(t.node_kind),[et1.NODE_ID.name]:encodeURIComponent(String(e??t.node_id))}}get entity(){let e=this.recipeController.result.data,t=this.params;if(rY(e)||rY(t))return;let i=R0(e,t.node_id);if(!rY(i))return(Ir(i)?kP.BLOCK:It(i)?kP.BLOCK_MODIFIER:kP.ITEM)===t.node_kind?i:void 0}get isTrackingTemporaryNode(){let e=this.params?.node_id;return T3(e)&&rK(L4(e))}get hasTests(){let e=this.entity;if(rY(e))return!1;if(Ir(e))return this.blocksController.result.data?.[e.block_type]?.has_tests??!1;let t=this.integrationsController.result.data;return It(e)?$b(t,e.integration_code,e.block_modifier_type,e.code)?.has_tests??!1:$f(t,e.integration_code,e.item_type,e.code)?.has_tests??!1}get nodeFields(){return this.isDirty?{...this.entity?.fields??{},...this.unsavedFieldValues}:this.entity?.fields??{}}get sentenceTemplate(){let e=this.entity;if(rY(e))return"";if(Ir(e))return RG(this.blocksController.result.data?.[e.block_type]?.sentence,this.nodeFields);let t=this.integrationsController.result.data;return T8(e)?$y(t,e.integration_code,e.item_type,e.code):It(e)?$v(t,e.integration_code,e.block_modifier_type,e.code):""}get steps(){let e=this.router.getCurrentRouteId()||etX.SET_UP,t=[{id:etX.SET_UP,label:(0,lX.__)("Set up","uncanny-automator")}];return this.hasTests&&t.push({id:etX.TEST,label:(0,lX.__)("Test","uncanny-automator")}),{current_step_id:e===etX.TEST&&this.hasTests?etX.TEST:etX.SET_UP,steps:t}}render(){if(rK(this.recipeController.result.data)&&rK(this.params)&&rY(this.entity)&&!this.isTrackingTemporaryNode)return window.location.hash="",s1``;let e=this.router;return s1` <div class="edit-node"> <div class="edit-node-steps"> <uas-steps .steps=${this.steps} .router=${e} back-button-label=${String(eoc)} ></uas-steps> </div> ${this.templateSummary()} <div class="edit-node-content"> ${this.router.renderOutlet()} </div> <div class="edit-node-footer"> ${this.templateFooter()} </div> ${this.templateClearConfirm()} </div> `}templateSummary(){let e=this.entity;if(rY(e))return s3;let t=Ir(e)?this.blocksController.result.isPending:this.integrationsController.result.isPending;return s1` <div class="edit-node-summary"> ${this.templateSummaryProgress()} <div class="edit-node-summary-chips"> ${this.templateSummaryChips(e)} ${this.templateTags(e.tags)} </div> <uap-d-recipe-sentence .recipeID=${this.recipeID} .template=${this.sentenceTemplate} .fields=${this.nodeFields} ?is-loading=${t} ></uap-d-recipe-sentence> </div> `}templateSummaryChips(e){return Ir(e)?s1` <uap-d-recipe-block-icon code=${e.block_type} variant="box" size="xs"></uap-d-recipe-block-icon> <uas-chip size="xs" .label=${s1`<uap-d-recipe-block-name code=${e.block_type} no-icon></uap-d-recipe-block-name>`} ></uas-chip> `:s1` <uap-d-integrations-icon code=${e.integration_code} size="xs"></uap-d-integrations-icon> <uas-chip size="xs" .label=${s1`<uap-d-integrations-name code=${e.integration_code} no-icon></uap-d-integrations-name>`} ></uas-chip> `}templateSummaryProgress(){return this.testRun.anyTestRunning?s1`<uas-progress-linear type="indeterminate"></uas-progress-linear>`:s3}templateTags(e){return rY(e)?s3:s1` <div class="edit-node-summary-tags"> ${e.map(e=>s1` <uap-d-integrations-tag .type=${e.type} .scenarioID=${e.scenario_id} .label=${e.label} .icon=${e.icon} .color=${e.color} .helper=${e.helper} size="xs" outlined ></uap-d-integrations-tag> `)} </div> `}templateStepSetUp(){if(T3(this.params?.node_id))return this.templateStepSkeleton();let e=this.entity;if(rY(e))return this.recipeController.result.isError?this.templateStepLoadError(this.recipeController.result.error,()=>{this.recipeController.refetch()}):this.templateStepSkeleton();if(Ir(e)){if(this.blocksController.result.isError)return this.templateStepLoadError(this.blocksController.result.error,()=>{this.blocksController.refetch()});let t=this.blocksController.result.data;return rY(t)?this.templateStepSkeleton():this.templateSetUpForm(e,(t[e.block_type]?.fields??[]).map(e=>({...e,item_type:"block"})))}let{isPending:t,isError:i,data:a,error:n}=this.fieldsDirectoryController.result;return i?this.templateStepLoadError(n,()=>{this.fieldsDirectoryController.refetch()}):t?this.templateStepSkeleton():this.templateSetUpForm(e,a??[])}templateStepSkeleton(){return s1` <div class="edit-node-status"> <uap-d-fields-skeleton></uap-d-fields-skeleton> </div> `}templateSetUpForm(e,t){let i=T8(e),a=It(e),n=i?e.item_type:a?"block-modifier":void 0,o=i||a?e.integration_code:void 0;return s1`${eiq(`${e.type}:${e.id}`,s1` <uap-f-recipe-builder-edit-node-step-set-up .fieldsDirectory=${t} .fieldsValues=${this.nodeFields} recipe-id=${this.recipeID??""} item-type=${n??s3} item-id=${e.id} integration-code=${o??s3} @uap.f.recipe-builder.legacy-form.change=${this.onLegacyFormChange} @uap.f.recipe-builder.edit-node.step-set-up.fields-ready=${this.onFieldsReady} ></uap-f-recipe-builder-edit-node-step-set-up> `)}`}templateStepLoadError(e,t){return s1` <div class="edit-node-status"> <uas-alert type=${yQ.ERROR} heading=${(0,b4.escapeHTML)((0,lX.__)("This step could not be loaded.","uncanny-automator"))}> <p>${enT(e)}</p> <uas-button size="sm" color="secondary" @click=${t}> ${(0,lX.__)("Try again","uncanny-automator")} </uas-button> </uas-alert> </div> `}templateStepTest(){return s1` <uap-f-recipe-builder-edit-node-step-test .tests=${this.testRun.tests} .runs=${this.testRun.runs} recipe-id=${this.recipeID??""} listen-deadline-ms=${this.testRun.listenDeadlineMS??s3} cancelling-test-id=${this.testRun.cancellingTestID??void 0??s3} ?is-loading=${this.testRun.isTestsPending} ?is-error=${this.testRun.isTestsError} ?any-test-running=${this.testRun.anyTestRunning} @uap.f.recipe-builder.edit-node.test-run-requested=${this.onTestRunRequested} @uap.f.recipe-builder.edit-node.test-cancel-requested=${this.onTestCancelRequested} @uap.f.recipe-builder.edit-node.tests-retry-requested=${this.onTestsRetryRequested} ></uap-f-recipe-builder-edit-node-step-test> `}templateFooter(){if(rY(this.entity))return s3;let e=this.router.getCurrentRouteId()===etX.TEST?etX.TEST:etX.SET_UP,t=function(e){let{hasTests:t,currentStepID:i,allRequiredPassed:a}=enI.parse(e);return t?etX.SET_UP===i||etX.ROOT===i?et3.SET_UP_WITH_TESTS:a?et3.TEST_READY:et3.TEST_LOCKED:et3.NO_TESTS}({hasTests:this.hasTests,currentStepID:e,allRequiredPassed:this.testRun.allRequiredPassed});return s1` <uap-f-recipe-builder-edit-node-footer variant=${t} ?saving=${this.saver.saving} ?any-test-running=${this.testRun.anyTestRunning} ?fields-ready=${this.fieldsReady} @uap.f.recipe-builder.edit-node.cancel-requested=${this.onCancelRequested} @uap.f.recipe-builder.edit-node.save-requested=${this.onSaveRequested} @uap.f.recipe-builder.edit-node.save-without-testing-requested=${this.onSaveWithoutTestingRequested} @uap.f.recipe-builder.edit-node.continue-to-testing-requested=${this.onContinueToTestingRequested} ></uap-f-recipe-builder-edit-node-footer> `}templateClearConfirm(){if(!this.saver.hasPendingConfirmation||0===this.saver.pendingClearIDs.length)return s3;let e=this.saver.pendingClearIDs.length;return s1` <uas-dialog heading=${(0,b4.escapeHTML)((0,lX.__)("Some modifiers will be removed","uncanny-automator"))} size="sm" force-manual-close open @uas.dialog.close=${this.onConfirmDialogClose} > ${(0,lX.sprintf)((0,lX._n)("%d modifier on this block only applies to its current settings, so this change will remove it. Continue?","%d modifiers on this block only apply to its current settings, so this change will remove them. Continue?",e,"uncanny-automator"),e)} <uas-button slot="primary-action" @click=${()=>{this.saver.confirmClear()}} > ${(0,lX._x)("Remove and continue","Verb","uncanny-automator")} </uas-button> <uas-button slot="secondary-action" dialog-action="close" color="secondary" > ${(0,lX._x)("Cancel","Verb","uncanny-automator")} </uas-button> </uas-dialog> `}onLegacyFormChange(e){this.unsavedFieldValues=e.detail.unsavedFieldValues,e.detail.isUserEdit&&(this.isDirty=!0,this.attachBeforeUnload(),this.testRun.reset())}onFieldsReady(e){this.fieldsReady=!0;let t=this.params?.node_id;rK(t)&&this.isAddedNode(t)&&this.$stepSetUp?.areOpeningFieldsValid===!0&&this.keepAddedNode(t)}onTestsRetryRequested(e){this.testRun.refetchTests()}async onTestRunRequested(e){await this.testRun.run(e.detail.testID,e.detail.testValues)}async onTestCancelRequested(e){await this.testRun.cancel(e.detail.testID,enz.CANCELLED)}async onCancelRequested(e){null!==this.testRun.pollingTestID&&await this.testRun.cancel(this.testRun.pollingTestID,enz.CANCELLED),this.detachBeforeUnload(),this.requestClose()}async onSaveRequested(e){await this.submitSave()}async onSaveWithoutTestingRequested(e){await this.submitSave()}onContinueToTestingRequested(e){this.validateFields()&&(this.unsavedFieldValues=k4.parse(this.$stepSetUp?.unsavedFieldValues??this.unsavedFieldValues),this.router.navigateById(etX.TEST,this.stepNavigationParams()))}validateFields(){if(!rK(this.$stepSetUp))return!0;let e=this.$stepSetUp.areFieldsValid;return e||this.$stepSetUp.scrollFirstInvalidFieldIntoView(),e}nextFields(){return rK(this.$stepSetUp)?k4.parse(this.$stepSetUp.unsavedFieldValues):k4.parse(this.unsavedFieldValues)}async submitSave(){let e=this.entity;!(!rK(this.recipeID)||rY(e))&&this.validateFields()&&await this.saver.save(e,this.nextFields())}onConfirmDialogClose(e){e.stopPropagation(),this.saver.cancelClear()}requestClose(){lw({element:this,eventName:"uap.f.recipe-builder.edit-node.close",data:{},schema:eon,options:{bubbles:!0,composed:!0}})}attachBeforeUnload(){this.beforeUnloadAttached||(window.addEventListener("beforeunload",this.handleBeforeUnload),this.beforeUnloadAttached=!0)}detachBeforeUnload(){this.beforeUnloadAttached&&(window.removeEventListener("beforeunload",this.handleBeforeUnload),this.beforeUnloadAttached=!1)}};eol([l0({type:Number,attribute:"recipe-id"})],eod.prototype,"recipeID",void 0),eol([l2()],eod.prototype,"unsavedFieldValues",void 0),eol([l2()],eod.prototype,"isDirty",void 0),eol([l4("uap-f-recipe-builder-edit-node-step-set-up")],eod.prototype,"$stepSetUp",void 0),eol([l2()],eod.prototype,"fieldsReady",void 0),eod=eol([lJ("uap-f-recipe-builder-edit-node")],eod);var eou=a(3281),eop=a.n(eou),eoh=function(e,t,i,a){var n,o=arguments.length,r=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(r=(o<3?n(r):o>3?n(t,i,r):n(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r};let eog=class extends ld{static{this.styles=sf`${sm(eop())}`}render(){if(this.recipe?.violations===void 0)return s3;let e=eeM(this.recipe),t=this.recipe.miscellaneous.has_run_now?(0,lX.__)("This recipe can't be run yet","uncanny-automator"):(0,lX.__)("This recipe can't go live yet","uncanny-automator");return s1` <uas-alert class="violations" data-test="recipe-violations" type="error" heading=${(0,b4.escapeHTML)(t)} > ${this.recipe.violations.map(e=>s1` <div class="violations__reason"> <uas-markdown allowed-tags="strong,em,a" .content=${e.message}></uas-markdown> </div> `)} <uaai-f-agent-button size="sm" color="secondary" prompt=${String(e)} label=${String((0,lX.__)("Fix with Uncanny Agent","uncanny-automator"))} ></uaai-f-agent-button> </uas-alert> `}};eoh([l0({attribute:!1})],eog.prototype,"recipe",void 0),eog=eoh([lJ("uap-f-recipe-builder-violations")],eog);var eom=a(9482),eof=a.n(eom),eoy=function(e,t,i,a){var n,o=arguments.length,r=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(r=(o<3?n(r):o>3?n(t,i,r):n(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r};let eob=class extends ld{static{this.styles=sf`${sm(eof())}`}willUpdate(e){lQ(this,"notices",Ck.optional(),e,"uap-f-recipe-builder-notices")}render(){return void 0===this.notices?s3:s1` <div class="notices"> ${this.notices.map(e=>s1` <uas-alert class="notices__notice" data-test="recipe-notice" data-notice-code=${e.code} type=${e.type} heading=${(void 0===e.heading?void 0:(0,b4.escapeHTML)(e.heading))??s3} > <uas-markdown allowed-tags="strong,em,a" .content=${e.message}></uas-markdown> </uas-alert> `)} </div> `}};eoy([l0({attribute:!1})],eob.prototype,"notices",void 0),eob=eoy([lJ("uap-f-recipe-builder-notices")],eob);var eov=a(7140),eo_=a.n(eov),eow=function(e,t,i,a){var n,o=arguments.length,r=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(r=(o<3?n(r):o>3?n(t,i,r):n(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r};let eox=class extends ld{constructor(){super(...arguments),this.fields={},this.fieldsDirectory=[]}createRenderRoot(){return this}render(){return this.settingID?s1` <uas-dialog heading=${(0,b4.escapeHTML)((0,lX.__)("Edit setting","uncanny-automator"))} force-manual-close open @uas.dialog.close=${this.handleDialogClose} > <uap-builder-item-legacy-form .fieldsDirectory=${this.fieldsDirectory.map(e=>({...e,item_type:"publish-setting"}))} .fieldsValues=${this.fields} recipe-id=${this.recipeID??""} return-format="standard" @uap.f.recipe-builder.legacy-form.change=${e=>{this.fields=e.detail.unsavedFieldValues}} ></uap-builder-item-legacy-form> <uas-button slot="primary-action" @click=${this.handleConfirmEdit} > ${(0,lX.__)("Confirm","uncanny-automator")} </uas-button> <uas-button slot="secondary-action" dialog-action="close" color="secondary" > ${(0,lX.__)("Cancel","uncanny-automator")} </uas-button> </uas-dialog> `:s1``}handleConfirmEdit(){if(!this.settingID||!this.unsavedFields||!this.$optionsForm?.areFieldsValid||void 0===this.recipeID)return;let e=Cx.parse(this.settingID),t=this.unsavedFields,i=this.recipeID;this.handleDialogClose(),(async function(e){await dK({meta:{recipeSave:!0},mutationFn:NZ,onMutate:async e=>{let{parsed:t,previousRecipe:i,queryKey:a}=await LA(NV,e);return dW.setQueryData(a,{...i,settings:{...i.settings,[t.settingID]:t.fields}}),{previousRecipe:i}},onSuccess:(e,t)=>{dW.setQueryData(Ae.detail(t.recipeID),i=>i?{...i,settings:{...i.settings,[t.settingID]:e.settings[t.settingID]},miscellaneous:e.miscellaneous,notices:e.notices}:e)},onError:(e,t,i)=>{i?.previousRecipe&&dW.setQueryData(Ae.detail(t.recipeID),i.previousRecipe)}},e)})({recipeID:i,settingID:e,fields:t}).catch(e=>{d4.DEV.SHOW_CONSOLE_MESSAGES&&console.error(e),ly({message:(0,b4.escapeHTML)((0,lX.__)("Could not save the setting. Please try again.","uncanny-automator")),color:"error",duration:5e3,iconID:"circle-exclamation"})})}get unsavedFields(){if(rY(this.$optionsForm))return;let e=k4.safeParse(this.$optionsForm.unsavedFieldValues);return e.success?e.data:void 0}handleDialogClose(){this.remove()}};eow([l0({type:Object})],eox.prototype,"fields",void 0),eow([l0({type:Array})],eox.prototype,"fieldsDirectory",void 0),eow([l0({type:String,attribute:"setting-id"})],eox.prototype,"settingID",void 0),eow([l0({type:Number,attribute:!1})],eox.prototype,"recipeID",void 0),eow([l4("uap-builder-item-legacy-form")],eox.prototype,"$optionsForm",void 0),eox=eow([lJ("uap-f-recipe-builder-setting-edit-dialog")],eox);var eok=a(8900),eoE=a.n(eok),eoS=function(e,t,i,a){var n,o=arguments.length,r=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(r=(o<3?n(r):o>3?n(t,i,r):n(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r};let eoC=(e=>{class t extends e{constructor(){super(...arguments),this.icon="gear",this.fieldsDirectory=[]}static{this.styles=sf`${sm(eoE())}`}get recipeIsPending(){return void 0===this.fields}render(){if(this.shouldRender)return s1` <div class="setting"> ${this.templateIcon()} <div class="setting-content"> ${this.templateLabel()} ${this.templateReadableValue()} ${this.templateHelper()} ${this.templateEditButton()} </div> </div> `}templateIcon(){return s1` <div class="setting-icon"> <uas-icon code="${this.icon}"></uas-icon> </div> `}templateLabel(){return s1` <div class="setting-label"> ${this.label}: </div> `}templateReadableValue(){return s1` <div class="setting-value"> ${this.recipeIsPending?this.templateSkeleton():this.readableValue} </div> `}templateSkeleton(){return s1`<uas-skeleton width="60px"></uas-skeleton>`}templateHelper(){if(!rY(this.helper))return s1` <div class="setting-helper"> <uas-tooltip> ${this.helper} <uas-button slot="target" @click=${this.helperCallback} size="xs" color="transparent" > <uas-icon code="circle-question"></uas-icon> </uas-button> </uas-tooltip> </div> `}templateEditButton(){if(!rY(this.fieldsDirectory)&&!this.recipeIsPending)return s1` <div class="setting-edit-button"> <uas-button @click=${this.editButtonCallback} size="xs" color="transparent" > ${(0,lX.__)("Edit","uncanny-automator")} </uas-button> </div> `}createEditFieldsDialog(){if(!this.settingID)return;let e=document.createElement("div");document.body.append(e),ll(s1` <uap-f-recipe-builder-setting-edit-dialog setting-id=${this.settingID} .recipeID=${this.recipeID} .fields=${this.fields??{}} .fieldsDirectory=${this.fieldsDirectory} ></uap-f-recipe-builder-setting-edit-dialog> `,e)}helperCallback(){}editButtonCallback(){this.createEditFieldsDialog()}getFieldValue(e){return this.fields?.[e]?.value}get readableValue(){return JSON.stringify(this.fields??{})}get shouldRender(){return!0}}return eoS([l0({type:String,attribute:"setting-id"})],t.prototype,"settingID",void 0),eoS([l0({type:Number,attribute:!1})],t.prototype,"recipeID",void 0),eoS([l0({type:String})],t.prototype,"icon",void 0),eoS([l0({type:String})],t.prototype,"label",void 0),eoS([l0({type:Object})],t.prototype,"fields",void 0),eoS([l0({type:Array})],t.prototype,"fieldsDirectory",void 0),eoS([l0({type:String})],t.prototype,"helper",void 0),t})(ld);var eoT=function(e,t,i,a){var n,o=arguments.length,r=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(r=(o<3?n(r):o>3?n(t,i,r):n(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r};let eoI=class extends eoC{constructor(){super(),this.settingID="recipe_throttle",this.label=(0,lX.__)("Throttle","uncanny-automator"),this.icon="gauge-max",this.helper=(0,lX.__)("Runs this recipe only once per specified period, even if triggered multiple times.","uncanny-automator")}willUpdate(e){this.fieldsDirectory=this.buildFieldsDirectory()}buildFieldsDirectory(){let e={option_code:"ENABLED",input_type:"checkbox",is_toggle:!0,label:(0,lX.__)("Enable throttling","uncanny-automator"),description:(0,lX.__)('When enabled, this recipe will only run once within the defined time period, even if triggered multiple times. For example, if set to "1 day," the recipe will run only once per day, regardless of how many times it is triggered.',"uncanny-automator")},t="user"===this.recipeType?[{option_code:"PER_RECIPE_OR_USER",input_type:"select",label:(0,lX.__)("Throttle scope","uncanny-automator"),description:(0,lX.__)("Define whether the limit applies globally or per user.","uncanny-automator"),options_show_id:!1,options:[{value:"recipe",text:(0,lX.__)("Per recipe - Shared limit for all users","uncanny-automator")},{value:"user",text:(0,lX.__)("Per user - Each user has their own independent limit","uncanny-automator")}],required:!0,dynamic_visibility:{default_state:"hidden",visibility_rules:[{operator:"AND",rule_conditions:[{option_code:"ENABLED",compare:"==",value:!0}],resulting_visibility:"show"}]}}]:[],i={option_code:"NUMBER",input_type:"int",label:(0,lX.__)("Throttle duration","uncanny-automator"),description:(0,lX.__)("Set how long the throttle lasts (used with the time unit below).","uncanny-automator"),placeholder:(0,lX.__)("e.g. 30","uncanny-automator"),min_number:1,supports_tokens:!1,required:!0,dynamic_visibility:{default_state:"hidden",visibility_rules:[{operator:"AND",rule_conditions:[{option_code:"ENABLED",compare:"==",value:!0}],resulting_visibility:"show"}]}},a={option_code:"UNIT",input_type:"select",label:(0,lX.__)("Duration unit","uncanny-automator"),description:(0,lX.__)("Select the unit of time (seconds, minutes, hours, days, weeks, months, or years).","uncanny-automator"),supports_tokens:!1,options_show_id:!1,required:!0,options:[{value:"seconds",text:(0,lX.__)("Seconds","uncanny-automator")},{value:"minutes",text:(0,lX.__)("Minutes","uncanny-automator")},{value:"hours",text:(0,lX.__)("Hours","uncanny-automator")},{value:"days",text:(0,lX.__)("Days","uncanny-automator")},{value:"weeks",text:(0,lX.__)("Weeks","uncanny-automator")},{value:"months",text:(0,lX.__)("Months","uncanny-automator")},{value:"years",text:(0,lX.__)("Years","uncanny-automator")}],dynamic_visibility:{default_state:"hidden",visibility_rules:[{operator:"AND",rule_conditions:[{option_code:"ENABLED",compare:"==",value:!0}],resulting_visibility:"show"}]}};return[e,...t,i,a]}get readableValue(){var e;if(!("boolean"==typeof(e=this.getFieldValue("ENABLED"))?e:"number"==typeof e?1===e:"string"==typeof e&&SU.has(e.trim().toLowerCase())))return(0,lX.__)("Unlimited","uncanny-automator");let t="user"===this.recipeType?this.getFieldValue("PER_RECIPE_OR_USER"):"recipe",i=$1().safeParse(this.getFieldValue("NUMBER")),a=lE.safeParse(this.getFieldValue("UNIT"));if(!i.success||!a.success)return(0,lX.__)("Unlimited","uncanny-automator");let n=i.data,o=a.data;return"recipe"===t?lC(o,n,!0):(0,lX.sprintf)((0,lX.__)("%1$s, per user","uncanny-automator"),lC(o,n,!0))}helperCallback(){lG({url:r0("https://automatorplugin.com/knowledge-base/",{campaign:br.DOCUMENTATION,content:"publish-metabox-throttle"}),title:(0,lX.__)("Automator Help","uncanny-automator"),w:450})}};eoT([l0({type:String,attribute:"recipe-type"})],eoI.prototype,"recipeType",void 0),eoI=eoT([lJ("uap-f-recipe-builder-setting-throttle")],eoI);var eoD=function(e,t,i,a){var n,o=arguments.length,r=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(r=(o<3?n(r):o>3?n(t,i,r):n(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r};let eoA=class extends eoC{constructor(){super(),this.settingID="recipe_times_per_user",this.icon="repeat",this.label=(0,lX.__)("Times per user","uncanny-automator"),this.helper=(0,lX.__)("Maximum number of times each user can trigger this recipe.","uncanny-automator"),this.fieldsDirectory=[{option_code:"TIMES",input_type:"int",label:(0,lX.__)("Allowed runs per user","uncanny-automator"),placeholder:(0,lX.__)("Unlimited","uncanny-automator"),description:(0,lX.__)("Sets the maximum number of times each user can trigger this recipe. Leave empty for unlimited triggers per user.","uncanny-automator"),min_number:1,supports_tokens:!1}]}get readableValue(){let e=this.getFieldValue("TIMES");return void 0===e||""===e||-1===e||"-1"===e?(0,lX.__)("Unlimited","uncanny-automator"):$1().parse(e)}get shouldRender(){return"anonymous"!=this.recipeType}helperCallback(){lG({url:r0("https://automatorplugin.com/knowledge-base/creating-a-recipe/#additional-settings:~:text=exactly%20as%20expected.-,Additional%20settings,-Before%20taking%20a",{campaign:br.DOCUMENTATION,content:"publish-metabox-times-per-user"}),title:(0,lX.__)("Automator Help","uncanny-automator"),w:450})}};eoD([l0({type:String,attribute:"recipe-type"})],eoA.prototype,"recipeType",void 0),eoA=eoD([lJ("uap-f-recipe-builder-setting-times-per-user")],eoA);let eo$=class extends eoC{constructor(){super(),this.settingID="recipe_total_times",this.icon="hashtag",this.label=(0,lX.__)("Total times","uncanny-automator"),this.helper=(0,lX.__)("The total number of times this recipe can run, regardless of the user.","uncanny-automator"),this.fieldsDirectory=[{option_code:"TIMES",input_type:"int",label:(0,lX.__)("Total allowed runs","uncanny-automator"),description:(0,lX.__)("Sets the maximum number of times this recipe can run overall, regardless of the user. Leave empty for unlimited runs.","uncanny-automator"),placeholder:(0,lX.__)("Unlimited","uncanny-automator"),min_number:1,supports_tokens:!1}]}get readableValue(){let e=this.getFieldValue("TIMES");return void 0===e||""===e||-1===e||"-1"===e?(0,lX.__)("Unlimited","uncanny-automator"):$1().parse(e)}helperCallback(){lG({url:r0("https://automatorplugin.com/knowledge-base/creating-a-recipe/#additional-settings:~:text=exactly%20as%20expected.-,Additional%20settings,-Before%20taking%20a",{campaign:br.DOCUMENTATION,content:"publish-metabox-total-times"}),title:(0,lX.__)("Automator Help","uncanny-automator"),w:450})}};eo$=function(e,t,i,a){var n,o=arguments.length,r=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(r=(o<3?n(r):o>3?n(t,i,r):n(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r}([lJ("uap-f-recipe-builder-setting-total-times")],eo$);var eoO=function(e,t,i,a){var n,o=arguments.length,r=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(r=(o<3?n(r):o>3?n(t,i,r):n(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r};let eoR=class extends ld{constructor(){super(...arguments),this.recipeController=new vE(this,{...Ai(-1),enabled:!1})}static{this.styles=sf`${sm(eo_())}`}willUpdate(e){if(lQ(this,"recipeID",o5().int().positive().optional(),e,"uap-f-recipe-builder-settings"),e.has("recipeID")||e.has("contextRecipeID")){let e=this.recipeID??this.contextRecipeID;e?this.recipeController.setOptions({...Ai(e),enabled:!0}):this.recipeController.options.enabled&&this.recipeController.setOptions({enabled:!1})}}get recipe(){return this.recipeController.result.data}render(){return s1` <div class="publish-settings"> <uap-f-recipe-builder-setting-throttle .recipeID=${this.recipe?.recipe_id} .recipeType=${this.recipe?.recipe_type??void 0} .fields=${this.recipe?.settings.recipe_throttle} ></uap-f-recipe-builder-setting-throttle> ${this.templateTimesPerUser()} <uap-f-recipe-builder-setting-total-times .recipeID=${this.recipe?.recipe_id} .fields=${this.recipe?.settings.recipe_total_times} ></uap-f-recipe-builder-setting-total-times> </div> `}templateTimesPerUser(){if(this.recipe?.recipe_type==="user")return s1` <uap-f-recipe-builder-setting-times-per-user .recipeID=${this.recipe.recipe_id} .recipeType=${this.recipe.recipe_type} .fields=${this.recipe.settings.recipe_times_per_user} ></uap-f-recipe-builder-setting-times-per-user> `}};eoO([l0({type:Number,attribute:"recipe-id"})],eoR.prototype,"recipeID",void 0),eoO([H8({context:Jp}),l0({attribute:!1})],eoR.prototype,"contextRecipeID",void 0),eoR=eoO([lJ("uap-f-recipe-builder-settings")],eoR);var eoM=a(1057),eoL=a.n(eoM),eoN=function(e,t,i,a){var n,o=arguments.length,r=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(r=(o<3?n(r):o>3?n(t,i,r):n(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r};let eoP=class extends eoC{constructor(){super(),this.settingID="recipe_completed_runs",this.icon="circle-check",this.label=(0,lX.__)("Completed runs","uncanny-automator")}get readableValue(){return this.getFieldValue("COMPLETED_RUNS")}templateSkeleton(){return s1`<uas-skeleton width="2em"></uas-skeleton>`}templateEditButton(){if(this.urlLogs&&!this.recipeIsPending)return s1` <div class="setting-edit-button"> <uas-button size="xs" color="transparent" href=${this.urlLogs} target="_blank" > ${(0,lX.__)("View logs","uncanny-automator")} </uas-button> </div> `}};eoN([l0({type:String,attribute:"url-logs"})],eoP.prototype,"urlLogs",void 0),eoP=eoN([lJ("uap-f-recipe-builder-detail-completed-runs")],eoP);let eoz=class extends eoC{constructor(){super(),this.settingID="recipe_created_on",this.icon="calendar",this.label=(0,lX.__)("Created on","uncanny-automator")}get readableValue(){return this.getFieldValue("CREATED_ON")}templateSkeleton(){return s1`<uas-skeleton width="120px"></uas-skeleton>`}};eoz=function(e,t,i,a){var n,o=arguments.length,r=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(r=(o<3?n(r):o>3?n(t,i,r):n(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r}([lJ("uap-f-recipe-builder-detail-created-on")],eoz);var eoU=a(3997),eoF=a.n(eoU);let eoj=class extends eoC{static{this.styles=sf`${eoC.styles}${sm(eoF())}`}constructor(){super(),this.settingID="recipe_user_type",this.icon="user",this.label=(0,lX.__)("User type","uncanny-automator"),this.helper=(0,lX.__)("Specifies which user group can trigger this recipe, such as logged-in users or all users.","uncanny-automator")}get readableValue(){let e=this.getFieldValue("USER_TYPE");return"user"==e?(0,lX.__)("Logged-in users","uncanny-automator"):"anonymous"==e?(0,lX.__)("Everyone","uncanny-automator"):void 0}get shouldRender(){return this.recipeIsPending||void 0!==this.readableValue}helperCallback(){lG({url:r0("https://automatorplugin.com/knowledge-base/creating-a-recipe/",{campaign:br.DOCUMENTATION,content:"publish-metabox-user-type"}),title:(0,lX.__)("Automator Help","uncanny-automator"),w:450})}};eoj=function(e,t,i,a){var n,o=arguments.length,r=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(r=(o<3?n(r):o>3?n(t,i,r):n(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r}([lJ("uap-f-recipe-builder-detail-user-type")],eoj);var eoB=function(e,t,i,a){var n,o=arguments.length,r=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(r=(o<3?n(r):o>3?n(t,i,r):n(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r};let eoH=class extends ld{constructor(){super(...arguments),this.recipeController=new vE(this,{...Ai(-1),enabled:!1})}static{this.styles=sf`${sm(eoL())}`}willUpdate(e){if(lQ(this,"recipeID",o5().int().positive().optional(),e,"uap-f-recipe-builder-details"),e.has("recipeID")||e.has("contextRecipeID")){let e=this.recipeID??this.contextRecipeID;e?this.recipeController.setOptions({...Ai(e),enabled:!0}):this.recipeController.options.enabled&&this.recipeController.setOptions({enabled:!1})}}get recipe(){return this.recipeController.result.data}render(){return s1` <div class="details"> <uap-f-recipe-builder-detail-user-type .recipeID=${this.recipe?.recipe_id} .fields=${this.recipe?.settings.recipe_user_type} ></uap-f-recipe-builder-detail-user-type> <uap-f-recipe-builder-detail-created-on .recipeID=${this.recipe?.recipe_id} .fields=${this.recipe?.settings.recipe_created_on} ></uap-f-recipe-builder-detail-created-on> <uap-f-recipe-builder-detail-completed-runs .recipeID=${this.recipe?.recipe_id} .fields=${this.recipe?.settings.recipe_completed_runs} .urlLogs=${this.recipe?.miscellaneous.url_logs} ></uap-f-recipe-builder-detail-completed-runs> </div> `}};eoB([l0({type:Number,attribute:"recipe-id"})],eoH.prototype,"recipeID",void 0),eoB([H8({context:Jp}),l0({attribute:!1})],eoH.prototype,"contextRecipeID",void 0),eoH=eoB([lJ("uap-f-recipe-builder-details")],eoH);var eoV=a(7364),eoq=a.n(eoV),eoZ=function(e,t,i,a){var n,o=arguments.length,r=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(r=(o<3?n(r):o>3?n(t,i,r):n(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r};let eoW=class extends ld{constructor(){super(...arguments),this.recipeController=new vE(this,{...Ai(-1),enabled:!1}),this.handleBlur=e=>{let t=e.target;if(!(t instanceof HTMLTextAreaElement)||!this.recipeID)return;let i=t.value;i!==this.recipeController.result.data?.notes&&(async function(e){await dK({meta:{recipeSave:!0},mutationFn:NU,onMutate:async e=>{var t;let{parsed:i,previousRecipe:a,queryKey:n}=await LA(NN,e);return t=i.notes,dW.setQueryData(n,{...a,notes:t}),lw({element:document,eventName:"uap.f.recipe-builder.core.set-recipe-notes",data:{recipeNotes:t},schema:Nz}),{previousRecipe:a}},onSuccess:(e,t)=>{dW.setQueryData(Ae.detail(t.recipeID),t=>t?{...t,notes:e.notes,notices:e.notices}:e)},onError:(e,t,i)=>{i?.previousRecipe&&dW.setQueryData(Ae.detail(t.recipeID),i.previousRecipe)}},e)})({recipeID:this.recipeID,notes:i}).catch(()=>{})}}static{this.styles=sf`${sm(eoq())}`}willUpdate(e){lQ(this,"recipeID",o5().int().positive(),e,"uap-f-recipe-builder-notes"),e.has("recipeID")&&(this.recipeID?this.recipeController.setOptions({...Ai(this.recipeID),enabled:!0}):this.recipeController.options.enabled&&this.recipeController.setOptions({enabled:!1}))}render(){let e=this.recipeController.result.data;if(!e)return s1` <div class="notes notes--loading"> <uas-skeleton .widths=${[6,4,7,5]}></uas-skeleton> </div> `;let t=e.title?(0,lX.sprintf)((0,lX.__)('Could you suggest notes for the recipe "%1$s" (ID %2$d)?',"uncanny-automator"),String(e.title),e.recipe_id):(0,lX.sprintf)((0,lX.__)("Could you suggest notes for recipe ID %1$d?","uncanny-automator"),e.recipe_id);return s1` <div class="wrapper"> <textarea class="notes" .value=${e.notes} placeholder=${String((0,lX.__)("Add notes about this recipe","uncanny-automator"))} aria-label=${String((0,lX.__)("Recipe notes","uncanny-automator"))} @blur=${this.handleBlur} ></textarea> <uaai-f-agent-button size="xs" color="secondary" prompt=${String(t)} label=${String((0,lX.__)("Suggest notes","uncanny-automator"))} ></uaai-f-agent-button> </div> `}};eoZ([l0({type:Number,attribute:"recipe-id"})],eoW.prototype,"recipeID",void 0),eoW=eoZ([lJ("uap-f-recipe-builder-notes")],eoW);var eoG=a(7390),eoK=a.n(eoG),eoY=function(e,t,i,a){var n,o=arguments.length,r=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(r=(o<3?n(r):o>3?n(t,i,r):n(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r};let eoQ=class extends ld{constructor(){super(...arguments),this.adding=!1,this.draftName="",this.draftParent=0,this.nextTempId=-1,this.recipeController=new vE(this,{...Ai(-1),enabled:!1}),this.termsController=new vE(this,NX()),this.openAdd=()=>{this.adding=!0},this.handleNameInput=e=>{let t=e.target;t instanceof HTMLInputElement&&(this.draftName=t.value)},this.handleParentChange=e=>{let t=e.target;t instanceof HTMLSelectElement&&(this.draftParent=Number(t.value))},this.addCategory=()=>{let e=this.draftName.trim();if(""===e)return;let t={id:this.nextTempId--,name:e,slug:`${e.toLowerCase().replace(/\s+/gu,"-")}-${lq()}`,parent:this.draftParent};this.commit([...this.assigned,t]),this.draftName="",this.draftParent=0,this.adding=!1}}static{this.styles=sf`${sm(eoK())}`}willUpdate(e){lQ(this,"recipeID",o5().int().positive(),e,"uap-f-recipe-builder-categories"),e.has("recipeID")&&(this.recipeID?this.recipeController.setOptions({...Ai(this.recipeID),enabled:!0}):this.recipeController.options.enabled&&this.recipeController.setOptions({enabled:!1}))}render(){var e;let t,i,a=this.recipeController.result.data,n=this.termsController.result.data,o=new Set(a?.categories.map(e=>e.slug)??[]),r=new Set(n?.categories.map(e=>e.slug)??[]),s=a?a.categories.filter(e=>!r.has(e.slug)):[],l=n?(e=[...n.categories,...s],t=new Map,e.forEach(e=>t.set(e.id,{term:e,children:[]})),i=[],e.forEach(e=>{let a=t.get(e.id);if(!a)return;let n=e.parent>0?t.get(e.parent):void 0;n?n.children.push(a):i.push(a)}),i):[];return s1` <div class="categories"> <span class="categories__label">${(0,lX.__)("Categories","uncanny-automator")}</span> <ul class="categories__tree"> ${a&&n?l.map(e=>this.templateNode(e,o)):this.templateSkeleton()} </ul> ${a&&n?this.templateAdd(n.categories):s1` <uas-button class="categories__add-toggle" color="secondary" size="xs" disabled> ${(0,lX.__)("Create new category","uncanny-automator")} </uas-button> `} </div> `}templateSkeleton(){return s1` ${[6,5,7].map(e=>s1` <li class="categories__node"> <span class="categories__option"> <uas-skeleton variant="rectangle" width=".75em" height=".75em"></uas-skeleton> <uas-skeleton width=${`${e}em`} height=".75em"></uas-skeleton> </span> </li> `)} `}templateNode(e,t){return s1` <li class="categories__node"> <label class="categories__option"> <input type="checkbox" class="categories__checkbox" .checked=${t.has(e.term.slug)} @change=${()=>this.toggle(e.term)} /> <span class="categories__name">${e.term.name}</span> </label> ${e.children.length>0?s1`<ul class="categories__children">${e.children.map(e=>this.templateNode(e,t))}</ul>`:s3} </li> `}templateAdd(e){return this.adding?s1` <div class="categories__add"> <input class="categories__add-name" .value=${this.draftName} placeholder=${String((0,lX.__)("New category name","uncanny-automator"))} aria-label=${String((0,lX.__)("New category name","uncanny-automator"))} @input=${this.handleNameInput} /> <select class="categories__add-parent" aria-label=${String((0,lX.__)("Parent category","uncanny-automator"))} @change=${this.handleParentChange} > <option value="0">${(0,lX.__)("Parent category","uncanny-automator")}</option> ${e.map(e=>s1`<option value=${e.id}>${e.name}</option>`)} </select> <uas-button class="categories__add-submit" filled size="sm" @click=${this.addCategory}> ${(0,lX.__)("Create and assign category","uncanny-automator")} </uas-button> </div> `:s1` <uas-button class="categories__add-toggle" color="secondary" size="xs" @click=${this.openAdd}> ${(0,lX.__)("Create new category","uncanny-automator")} </uas-button> `}get assigned(){return[...this.recipeController.result.data?.categories??[]]}toggle(e){let t=this.assigned,i=t.some(t=>t.slug===e.slug)?t.filter(t=>t.slug!==e.slug):[...t,e];this.commit(i)}commit(e){if(this.recipeID){var t;t=this.recipeID,Pe(t,N4.CATEGORIES,e)}}};eoY([l0({type:Number,attribute:"recipe-id"})],eoQ.prototype,"recipeID",void 0),eoY([l2()],eoQ.prototype,"adding",void 0),eoY([l2()],eoQ.prototype,"draftName",void 0),eoY([l2()],eoQ.prototype,"draftParent",void 0),eoQ=eoY([lJ("uap-f-recipe-builder-categories")],eoQ);var eoX=a(5593),eoJ=a.n(eoX),eo1=function(e,t,i,a){var n,o=arguments.length,r=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(r=(o<3?n(r):o>3?n(t,i,r):n(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r};let eo0=class extends ld{constructor(){super(...arguments),this.query="",this.nextTempId=-1,this.recipeController=new vE(this,{...Ai(-1),enabled:!1}),this.termsController=new vE(this,NX()),this.focusEntry=()=>{this.entryElement()?.focus()},this.handleInput=()=>{this.query=this.entryElement()?.textContent??""},this.handleKeydown=e=>{("Enter"===e.key||","===e.key)&&(e.preventDefault(),this.commitEntry())}}static{this.styles=sf`${sm(eoJ())}`}willUpdate(e){lQ(this,"recipeID",o5().int().positive(),e,"uap-f-recipe-builder-tags"),e.has("recipeID")&&(this.recipeID?this.recipeController.setOptions({...Ai(this.recipeID),enabled:!0}):this.recipeController.options.enabled&&this.recipeController.setOptions({enabled:!1}))}render(){let e=this.recipeController.result.data,t=this.termsController.result.data,i=new Set(e?.tags.map(e=>e.slug)??[]),a=this.query.trim().toLowerCase(),n=e&&t&&""!==a?t.tags.filter(e=>!i.has(e.slug)&&e.name.toLowerCase().includes(a)):[];return s1` <div class="tags"> <span class="tags__label">${(0,lX.__)("Tags","uncanny-automator")}</span> <div class="tags__field" ?data-empty=${(e?.tags.length??0)===0} @click=${this.focusEntry}> ${e&&t?s1` ${e.tags.map(e=>this.templatePill(e))} <span class="tags__entry" contenteditable="plaintext-only" role="textbox" aria-label=${String((0,lX.__)("Add a tag","uncanny-automator"))} data-placeholder=${String((0,lX.__)("Add a tag","uncanny-automator"))} @input=${this.handleInput} @keydown=${this.handleKeydown} ></span> `:this.templateSkeleton()} </div> ${n.length>0?s1` <ul class="tags__results"> ${n.map(e=>s1` <li class="tags__result" @click=${()=>this.add(e)}>${e.name}</li> `)} </ul> `:s3} <span class="tags__hint">${(0,lX.__)("Separate tags with a comma or press Enter.","uncanny-automator")}</span> </div> `}templateSkeleton(){return s1` ${[6,4].map(e=>s1` <uas-skeleton variant="rectangle" width=${`${e}em`} height="1.75em"></uas-skeleton> `)} `}templatePill(e){return s1` <span class="tags__pill"> <span class="tags__pill-name">${e.name}</span> <uas-button class="tags__pill-remove" size="xs" color="transparent" aria-label=${String((0,lX.__)("Remove tag","uncanny-automator"))} @click=${t=>this.removeTag(t,e)} > <uas-icon code="xmark"></uas-icon> </uas-button> </span> `}get assigned(){return[...this.recipeController.result.data?.tags??[]]}entryElement(){let e=this.shadowRoot?.querySelector(".tags__entry");return e instanceof HTMLElement?e:null}commitEntry(){let e=(this.entryElement()?.textContent??"").trim();if(""===e)return void this.clearEntry();let t=this.termsController.result.data?.tags.find(t=>t.name.toLowerCase()===e.toLowerCase())??{id:this.nextTempId--,name:e,slug:e.toLowerCase().replace(/\s+/gu,"-"),parent:0};this.add(t)}add(e){this.assigned.some(t=>t.slug===e.slug)||this.commit([...this.assigned,e]),this.clearEntry()}clearEntry(){let e=this.entryElement();e&&(e.textContent=""),this.query=""}removeTag(e,t){e.stopPropagation(),this.commit(this.assigned.filter(e=>e.slug!==t.slug))}commit(e){if(this.recipeID){var t;t=this.recipeID,Pe(t,N4.TAGS,e)}}};eo1([l0({type:Number,attribute:"recipe-id"})],eo0.prototype,"recipeID",void 0),eo1([l2()],eo0.prototype,"query",void 0),eo0=eo1([lJ("uap-f-recipe-builder-tags")],eo0);var eo2=a(8929),eo3=a.n(eo2),eo4=function(e,t,i,a){var n,o=arguments.length,r=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(r=(o<3?n(r):o>3?n(t,i,r):n(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r};let eo6=class extends ld{static{this.styles=sf`${sm(eo3())}`}willUpdate(e){lQ(this,"recipeID",o5().int().positive(),e,"uap-f-recipe-builder-categories-and-tags")}render(){return this.recipeID?s1` <div class="taxonomy"> <uap-f-recipe-builder-categories recipe-id=${this.recipeID}></uap-f-recipe-builder-categories> <uap-f-recipe-builder-tags recipe-id=${this.recipeID}></uap-f-recipe-builder-tags> </div> `:s1``}};eo4([l0({type:Number,attribute:"recipe-id"})],eo6.prototype,"recipeID",void 0),eo6=eo4([lJ("uap-f-recipe-builder-categories-and-tags")],eo6);var eo5=a(5569),eo8=a.n(eo5),eo7=function(e,t,i,a){var n,o=arguments.length,r=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(r=(o<3?n(r):o>3?n(t,i,r):n(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r};let eo9=class extends ld{static{this.styles=sf`${sm(eo8())}`}willUpdate(e){lQ(this,"recipeID",o5().int().positive().optional(),e,"uap-f-recipe-builder-sidebar")}render(){return s1` <uas-sidebar width="auto" surface="flat" > <uas-sidebar-section id="details" icon="list" .initialOpen=${!0} > <span slot="heading">${(0,lX.__)("Details","uncanny-automator")}</span> <uap-f-recipe-builder-details .recipeID=${this.recipeID}></uap-f-recipe-builder-details> </uas-sidebar-section> <uas-sidebar-section id="settings" icon="screwdriver-wrench" .initialOpen=${!1} > <span slot="heading">${(0,lX.__)("Settings","uncanny-automator")}</span> <uap-f-recipe-builder-settings .recipeID=${this.recipeID}></uap-f-recipe-builder-settings> </uas-sidebar-section> <uas-sidebar-section id="notes" icon="note" .initialOpen=${!1} > <span slot="heading">${(0,lX.__)("Notes","uncanny-automator")}</span> <uap-f-recipe-builder-notes .recipeID=${this.recipeID}></uap-f-recipe-builder-notes> </uas-sidebar-section> <uas-sidebar-section id="categories" icon="tag" .initialOpen=${!1} > <span slot="heading">${(0,lX.__)("Categories and tags","uncanny-automator")}</span> <uap-f-recipe-builder-categories-and-tags .recipeID=${this.recipeID}></uap-f-recipe-builder-categories-and-tags> </uas-sidebar-section> </uas-sidebar> `}};eo7([l0({type:Number,attribute:"recipe-id"})],eo9.prototype,"recipeID",void 0),eo9=eo7([lJ("uap-f-recipe-builder-sidebar")],eo9);var ere=a(6574),ert=a.n(ere),eri=function(e,t,i,a){var n,o=arguments.length,r=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(r=(o<3?n(r):o>3?n(t,i,r):n(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r};let era=class extends ld{constructor(){super(...arguments),this.loading=!1,this.handleChange=e=>{let t=e.target;if(!(t instanceof HTMLInputElement)||!this.recipeID)return;let i=t.value;i!==this.recipeTitle&&(async function(e){await dK({meta:{recipeSave:!0},mutationFn:Pn,onMutate:async e=>{var t;let{parsed:i,previousRecipe:a,queryKey:n}=await LA(Pt,e);return t=i.title,dW.setQueryData(n,{...a,title:t}),lw({element:document,eventName:"uap.f.recipe-builder.core.set-recipe-title",data:{recipeTitle:t},schema:Pa}),{previousRecipe:a}},onSuccess:(e,t)=>{dW.setQueryData(Ae.detail(t.recipeID),t=>t?{...t,title:e.title,notices:e.notices}:e)},onError:(e,t,i)=>{i?.previousRecipe&&dW.setQueryData(Ae.detail(t.recipeID),i.previousRecipe)}},e)})({recipeID:this.recipeID,title:i}).catch(()=>{})},this.handleKeydown=e=>{"Enter"===e.key&&(e.preventDefault(),e.target instanceof HTMLInputElement&&e.target.blur())}}static{this.styles=sf`${sm(ert())}`}render(){return this.loading?this.templateSkeleton():this.recipeID?s1` <label class="wrapper" > <input type="text" class="title" .value=${this.recipeTitle??""} placeholder=${String((0,lX.__)("Name your recipe","uncanny-automator"))} aria-label=${String((0,lX.__)("Recipe title","uncanny-automator"))} @change=${this.handleChange} @keydown=${this.handleKeydown} /> ${this.templateAISuggestionButton()} </label> `:s3}templateAISuggestionButton(){if(!this.recipeID||this.recipeTitle)return s3;let e=(0,lX.sprintf)((0,lX.__)("Set a title for this recipe (ID %1$d)","uncanny-automator"),this.recipeID);return s1` <uaai-f-agent-button size="xs" color="secondary" prompt=${String(e)} label=${String((0,lX.__)("Suggest title","uncanny-automator"))} ></uaai-f-agent-button> `}templateSkeleton(){return s1` <div class="wrapper" data-test="title-skeleton" aria-hidden="true"> <uas-skeleton width="3em"></uas-skeleton> <uas-skeleton width="2em"></uas-skeleton> </div> `}};eri([l0({attribute:!1})],era.prototype,"recipeTitle",void 0),eri([l0({type:Boolean,reflect:!0})],era.prototype,"loading",void 0),eri([H8({context:Jp})],era.prototype,"recipeID",void 0),era=eri([lJ("uap-f-recipe-builder-title")],era);var ern=a(8908),ero=a.n(ern),err=function(e,t,i,a){var n,o=arguments.length,r=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(r=(o<3?n(r):o>3?n(t,i,r):n(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r};let ers=class extends ld{static{this.styles=sf`${sm(ero())}`}render(){if(!this.recipeID)return s3;let e=this.recipeTitle?(0,lX.sprintf)((0,lX.__)('Could you help me with the recipe "%1$s" (ID %2$d)?',"uncanny-automator"),String(this.recipeTitle),this.recipeID):(0,lX.sprintf)((0,lX.__)("Could you help me with recipe ID %1$d?","uncanny-automator"),this.recipeID);return s1` <uaai-f-agent-button color="transparent" class="button" prompt=${String(e)} label=${String((0,lX.__)("Ask Uncanny Agent","uncanny-automator"))} ></uaai-f-agent-button> `}};err([H8({context:Jp})],ers.prototype,"recipeID",void 0),err([H8({context:Jh,subscribe:!0})],ers.prototype,"recipeTitle",void 0),ers=err([lJ("uap-f-recipe-builder-publish-bar-quick-action-ask-agent")],ers);var erl=a(3824),erc=a.n(erl),erd=function(e,t,i,a){var n,o=arguments.length,r=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(r=(o<3?n(r):o>3?n(t,i,r):n(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r};let eru=class extends ld{static{this.styles=sf`${sm(erc())}`}render(){return this.urlDuplicateRecipe?s1` <uas-button color="transparent" href=${this.urlDuplicateRecipe} needs-confirmation confirmation-content=${(0,b4.escapeHTML)((0,lX.__)("Are you sure you want to duplicate this recipe?","uncanny-automator"))} confirmation-button-label=${String((0,lX.__)("Duplicate recipe","uncanny-automator"))} > <uas-icon code="copy"></uas-icon> ${(0,lX.__)("Duplicate recipe","uncanny-automator")} </uas-button> `:s3}};erd([l0({type:String,attribute:"url-duplicate-recipe"})],eru.prototype,"urlDuplicateRecipe",void 0),eru=erd([lJ("uap-f-recipe-builder-publish-bar-quick-action-duplicate")],eru);var erp=a(3264),erh=a.n(erp),erg=function(e,t,i,a){var n,o=arguments.length,r=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(r=(o<3?n(r):o>3?n(t,i,r):n(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r};let erm=class extends ld{static{this.styles=sf`${sm(erh())}`}render(){return this.urlDownloadRecipe?s1` <uas-button color="transparent" href=${this.urlDownloadRecipe}> <uas-icon code="download"></uas-icon> ${(0,lX.__)("Download recipe JSON","uncanny-automator")} </uas-button> `:s3}};erg([l0({type:String,attribute:"url-download-recipe"})],erm.prototype,"urlDownloadRecipe",void 0),erm=erg([lJ("uap-f-recipe-builder-publish-bar-quick-action-download")],erm);var erf=a(1113),ery=a.n(erf),erb=function(e,t,i,a){var n,o=arguments.length,r=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(r=(o<3?n(r):o>3?n(t,i,r):n(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r};let erv=class extends ld{static{this.styles=sf`${sm(ery())}`}render(){return this.urlTrashRecipe?s1` <uas-button class="remove" color="transparent" href=${this.urlTrashRecipe} needs-confirmation confirmation-content=${(0,b4.escapeHTML)((0,lX.__)("Are you sure you want to move this recipe to the trash?","uncanny-automator"))} confirmation-button-label=${String((0,lX.__)("Move to trash","uncanny-automator"))} > <uas-icon code="trash"></uas-icon> ${(0,lX.__)("Move to trash","uncanny-automator")} </uas-button> `:s3}};erb([l0({type:String,attribute:"url-trash-recipe"})],erv.prototype,"urlTrashRecipe",void 0),erv=erb([lJ("uap-f-recipe-builder-publish-bar-quick-action-move-to-trash")],erv);var er_=a(5148),erw=a.n(er_),erx=function(e,t,i,a){var n,o=arguments.length,r=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(r=(o<3?n(r):o>3?n(t,i,r):n(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r};let erk=class extends ld{static{this.styles=sf`${sm(erw())}`}render(){return s1` <uas-button-dropdown placement="bottom-end" class="dropdown"> <uas-button slot="trigger" color="transparent" size="sm" aria-label=${String((0,lX.__)("More actions","uncanny-automator"))} class="trigger" > <uas-icon code="ellipsis-vertical" size="16" icon-style="solid" ></uas-icon> </uas-button> <div class="buttons"> <uap-f-recipe-builder-publish-bar-quick-action-ask-agent></uap-f-recipe-builder-publish-bar-quick-action-ask-agent> <uap-f-recipe-builder-publish-bar-quick-action-duplicate .urlDuplicateRecipe=${this.urlDuplicateRecipe} ></uap-f-recipe-builder-publish-bar-quick-action-duplicate> <uap-f-recipe-builder-publish-bar-quick-action-download .urlDownloadRecipe=${this.urlDownloadRecipe} ></uap-f-recipe-builder-publish-bar-quick-action-download> <uap-f-recipe-builder-publish-bar-quick-action-move-to-trash .urlTrashRecipe=${this.urlTrashRecipe} ></uap-f-recipe-builder-publish-bar-quick-action-move-to-trash> </div> </uas-button-dropdown> `}};erx([l0({type:String,attribute:"url-trash-recipe"})],erk.prototype,"urlTrashRecipe",void 0),erx([l0({type:String,attribute:"url-duplicate-recipe"})],erk.prototype,"urlDuplicateRecipe",void 0),erx([l0({type:String,attribute:"url-download-recipe"})],erk.prototype,"urlDownloadRecipe",void 0),erk=erx([lJ("uap-f-recipe-builder-publish-bar-quick-actions")],erk);let erE=rg({target:Ch,messages:rp(oR()).min(1)}).strict(),erS=rg({nodes:rp(erE),subjectCount:o5().int().nonnegative(),issueCount:o5().int().nonnegative()}).strict();function erC(e,t){return{nodes:e,subjectCount:new Set(e.map(e=>String(t(e.target)))).size,issueCount:e.reduce((e,t)=>e+t.messages.length,0)}}rg({recipe:rp(oR()),triggers:erS,actions:erS,blocks:erS}).strict();let erT=rg({}).strict();var erI=a(6505),erD=a.n(erI),erA=function(e,t,i,a){var n,o=arguments.length,r=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(r=(o<3?n(r):o>3?n(t,i,r):n(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r};let er$=class extends ld{constructor(){super(...arguments),this.heading="",this.recipeController=new vE(this,{...Ai(-1),enabled:!1})}static{this.styles=sf`${sm(erD())}`}willUpdate(e){lQ(this,"recipeID",CH.shape.recipe_id.optional(),e,"uap-f-recipe-builder-publish-bar-rejection-dialog"),lQ(this,"violations",Cg.optional(),e,"uap-f-recipe-builder-publish-bar-rejection-dialog"),e.has("recipeID")&&(this.recipeID?this.recipeController.setOptions({...Ai(this.recipeID),enabled:!0}):this.recipeController.options.enabled&&this.recipeController.setOptions({enabled:!1}))}render(){if(void 0===this.violations)return s3;let e=this.recipeController.result.data,t=function(e,t){let i=[],a=new Map,n=new Map,o=new Map;for(let r of e){if(null===r.target){i.push(r.message);continue}let e=n;r.target.node_type!==kP.ITEM?e=o:function(e,t){let i=void 0===t?void 0:R0(t,e.id);return void 0!==i&&i.type===kP.ITEM&&T7(i,kM.TRIGGER)}(r.target,t)&&(e=a);let s=`${r.target.node_type}:${r.target.id}`,l=e.get(s);void 0===l?e.set(s,{target:r.target,messages:[r.message]}):l.messages.push(r.message)}return{recipe:i,triggers:erC([...a.values()],e=>e.id),actions:erC([...n.values()],e=>e.id),blocks:erC([...o.values()],e=>{var i,a;return i=e,a=t,i.node_type!==kP.BLOCK_MODIFIER||void 0===a?i.id:Ly(a,i.id)??i.id})}}(this.violations,e);return s1` <uas-dialog heading=${(0,b4.escapeHTML)(this.heading)} size="md" open @uas.dialog.close=${this.onClose} > <div class="rejection-dialog"> <uas-alert type="error"> <p>${(0,lX.__)("There are some errors you need to fix.","uncanny-automator")}</p> </uas-alert> <div class="rejection-dialog__list"> ${this.templateRecipeSection(t.recipe)} ${this.templateNodeSection(s1`<uas-icon code="bolt"></uas-icon>`,t.triggers.subjectCount>1?(0,lX.__)("Triggers issues","uncanny-automator"):(0,lX._n)("Trigger issue","Trigger issues",t.triggers.issueCount,"uncanny-automator"),t.triggers,e)} ${this.templateNodeSection(s1`<uas-icon code="bolt"></uas-icon>`,t.actions.subjectCount>1?(0,lX.__)("Actions issues","uncanny-automator"):(0,lX._n)("Action issue","Action issues",t.actions.issueCount,"uncanny-automator"),t.actions,e)} ${this.templateNodeSection(s1`<uas-icon code="layer-plus"></uas-icon>`,t.blocks.subjectCount>1?(0,lX.__)("Blocks issues","uncanny-automator"):(0,lX._n)("Block issue","Block issues",t.blocks.issueCount,"uncanny-automator"),t.blocks,e)} </div> </div> ${this.templateAgentButton()} <uas-button slot="secondary-action" color="secondary" @click=${this.onClose} > ${(0,lX.__)("Close","uncanny-automator")} </uas-button> </uas-dialog> `}templateRecipeSection(e){return 0===e.length?s3:this.templateSection(s1`<uas-icon code="chart-diagram"></uas-icon>`,(0,lX._n)("Recipe issue","Recipe issues",e.length,"uncanny-automator"),e.length,this.templateMessages(e))}templateNodeSection(e,t,i,a){return 0===i.nodes.length?s3:this.templateSection(e,t,i.issueCount,s1` <ul class="rejection-dialog__nodes"> ${i.nodes.map(e=>s1` <li class="rejection-dialog__node"> <uap-d-recipe-node-label .recipeID=${this.recipeID} .node=${void 0===a?void 0:R0(a,e.target.id)} ></uap-d-recipe-node-label> ${this.templateMessages(e.messages)} </li> `)} </ul> `)}templateSection(e,t,i,a){return s1` <section class="rejection-dialog__section"> <header class="rejection-dialog__section-header"> <span class="rejection-dialog__section-icon">${e}</span> <h3 class="rejection-dialog__section-title">${t}</h3> <uas-chip size="xs" color="error" filled label=${String(i)}></uas-chip> </header> ${a} </section> `}templateMessages(e){return s1` <ul class="rejection-dialog__messages"> ${e.map(e=>s1` <li><uas-markdown allowed-tags="strong,em,a" .content=${e}></uas-markdown></li> `)} </ul> `}templateAgentButton(){let e=this.recipeController.result.data;return e?s1` <uaai-f-agent-button slot="primary-action" size="md" color="primary" prompt=${String(eeM(e))} label=${String((0,lX.__)("Fix with Uncanny Agent","uncanny-automator"))} @click=${this.onClose} ></uaai-f-agent-button> `:s3}onClose(){lw({element:this,eventName:"uap.f.recipe-builder.publish-bar.rejection-dialog.close",data:{},schema:erT,options:{bubbles:!0,composed:!0}})}};erA([l0({type:String})],er$.prototype,"heading",void 0),erA([l0({type:Number,attribute:"recipe-id"})],er$.prototype,"recipeID",void 0),erA([l0({attribute:!1})],er$.prototype,"violations",void 0),er$=erA([lJ("uap-f-recipe-builder-publish-bar-rejection-dialog")],er$);var erO=function(e,t,i,a){var n,o=arguments.length,r=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(r=(o<3?n(r):o>3?n(t,i,r):n(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r};let erR=class extends ld{constructor(){super(...arguments),this.runController=new vm(this,{mutationFn:Pb,onError:(e,t)=>{e instanceof Lj&&dW.setQueryData(Ae.detail(t.recipeID),t=>{let i=Il.parse(e.recipe);return t?Lz(LD(t,i),e.violations):Lz(i,e.violations)})}})}render(){return s1` <uas-button size="sm" @click=${this.handleRunNow} ?loading=${this.runController.result.isPending} ?disabled=${!1===this.canEdit} > ${(0,lX.__)("Run now","uncanny-automator")} </uas-button> <uap-f-recipe-builder-publish-bar-rejection-dialog heading=${String((0,lX.__)("This recipe can't be run yet","uncanny-automator"))} .recipeID=${this.recipeID} .violations=${this.rejectionViolations} @uap.f.recipe-builder.publish-bar.rejection-dialog.close=${this.onRejectionDialogClose} ></uap-f-recipe-builder-publish-bar-rejection-dialog> `}async handleRunNow(){let e=this.recipeID;if(void 0!==e)try{let t=await this.runController.mutateAsync({recipeID:e});t.recipe_log_id>0&&t.run_number>0&&(window.location.hash=WD(e,t.run_number,t.recipe_log_id))}catch(e){if(e instanceof Lj){this.rejectionViolations=e.violations;return}d4.DEV.SHOW_CONSOLE_MESSAGES&&console.error(e),ly({message:(0,b4.escapeHTML)(q$(e)??(0,lX.__)("Could not run the recipe. Please try again.","uncanny-automator")),color:"error",duration:5e3,iconID:"circle-exclamation"})}}onRejectionDialogClose(){this.rejectionViolations=void 0}};erO([l0({type:Boolean,attribute:"can-edit"})],erR.prototype,"canEdit",void 0),erO([H8({context:Jp,subscribe:!0}),l0({attribute:!1})],erR.prototype,"recipeID",void 0),erO([l2()],erR.prototype,"rejectionViolations",void 0),erR=erO([lJ("uap-f-recipe-builder-publish-bar-run-now-button")],erR);let erM=rg({minSavingMs:o5().int().nonnegative().optional()});class erL{constructor(e,t={}){this.host=e,this.holdUntil=0,this.wasSaving=!1,this._status=Ic.SAVED;let i=erM.parse(t);this.minSavingMs=i.minSavingMs??500,this.mutationState=new vb(e,{filter:LI}),this.host.addController(this)}get status(){return this._status}hostConnected(){this.recompute()}hostUpdate(){this.recompute()}hostDisconnected(){this.clearHoldTimer()}recompute(){let e=this.mutationState.pendingCount>0;if(e&&!this.wasSaving&&(this.holdUntil=Date.now()+this.minSavingMs),this.wasSaving=e,e){this._status=Ic.SAVING;return}let t=this.holdUntil-Date.now();if(t>0){this._status=Ic.SAVING,this.armHoldTimer(t);return}this._status=this.mutationState.lastSettled===vy.ERROR?Ic.ERROR:Ic.SAVED}armHoldTimer(e){this.holdTimer||(this.holdTimer=setTimeout(()=>{this.holdTimer=void 0,this.host.requestUpdate()},e))}clearHoldTimer(){this.holdTimer&&(clearTimeout(this.holdTimer),this.holdTimer=void 0)}}var erN=a(2860),erP=a.n(erN),erz=function(e,t,i,a){var n,o=arguments.length,r=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(r=(o<3?n(r):o>3?n(t,i,r):n(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r};let erU=class extends ld{constructor(){super(...arguments),this.saveStatus=new erL(this)}static{this.styles=sf`${sm(erP())}`}willUpdate(e){lQ(this,"recipeID",o5().int().positive().optional(),e,"uap-f-recipe-builder-publish-bar-status-toggle")}render(){if(this.hasRunNow)return;let e=this.recipeStatus!==CE.PUBLISH&&this.saveStatus.status===Ic.SAVING,t=s1` <uo-field-input-switch ?checked=${this.recipeStatus===CE.PUBLISH} ?disabled=${e} label-on=${String((0,lX.__)("Recipe on","uncanny-automator"))} label-off=${String((0,lX.__)("Recipe off","uncanny-automator"))} .processChangeRequest=${async e=>{let t=this.recipeID;if(void 0===t)return!1;e||await lp({content:(0,lX.__)("Are you sure you want to switch this recipe off? This will stop it from being triggered.","uncanny-automator")});try{await async function(e){await dK({meta:{recipeSave:!0},mutationFn:NK,onMutate:async e=>{let{parsed:t,previousRecipe:i,queryKey:a}=await LA(NW,e);return dW.setQueryData(a,{...i,recipe_status:t.status}),{previousRecipe:i}},onSuccess:(e,t)=>{dW.setQueryData(Ae.detail(t.recipeID),t=>t?{...t,recipe_status:e.recipe_status,can_edit:e.can_edit,miscellaneous:e.miscellaneous,violations:e.violations,notices:e.notices}:e)},onError:(e,t,i)=>{e instanceof Lj?dW.setQueryData(Ae.detail(t.recipeID),t=>{let i=Il.parse(e.recipe);return t?Lz(LD(t,i),e.violations):Lz(i,e.violations)}):i?.previousRecipe&&dW.setQueryData(Ae.detail(t.recipeID),i.previousRecipe)},onSettled:(e,t,i,a)=>{t instanceof Lj||dW.invalidateQueries({queryKey:Ae.detail(i.recipeID)})}},e)}({recipeID:t,status:e?CE.PUBLISH:CE.DRAFT})}catch(e){if(e instanceof Lj)return this.rejectionViolations=e.violations,!1;throw e}return!0}} ></uo-field-input-switch> `;return s1` ${e?s1` <uas-tooltip placement="top"> <span slot="target">${t}</span> ${(0,lX.__)("Your changes are still saving. You can switch the recipe on once saving finishes.","uncanny-automator")} </uas-tooltip> `:t} ${this.templateRejectionDialog()} `}onRejectionDialogClose(){this.rejectionViolations=void 0}templateRejectionDialog(){return s1` <uap-f-recipe-builder-publish-bar-rejection-dialog heading=${String((0,lX.__)("This recipe can't go live yet","uncanny-automator"))} .recipeID=${this.recipeID} .violations=${this.rejectionViolations} @uap.f.recipe-builder.publish-bar.rejection-dialog.close=${this.onRejectionDialogClose} ></uap-f-recipe-builder-publish-bar-rejection-dialog> `}};erz([l0({type:Boolean,attribute:"has-run-now"})],erU.prototype,"hasRunNow",void 0),erz([l0({attribute:"recipe-status"})],erU.prototype,"recipeStatus",void 0),erz([H8({context:Jp,subscribe:!0}),l0({attribute:!1})],erU.prototype,"recipeID",void 0),erz([l2()],erU.prototype,"rejectionViolations",void 0),erU=erz([lJ("uap-f-recipe-builder-publish-bar-status-toggle")],erU);var erF=a(6582),erj=a.n(erF);let erB=class extends ld{constructor(){super(...arguments),this.onClick=()=>{lw({element:this,eventName:"uap.f.recipe-builder.sidebar-toggle",data:{},schema:Jc,options:{bubbles:!0,composed:!0}})}}static{this.styles=sf`${sm(erj())}`}render(){return s1` <uas-tooltip placement="bottom"> ${(0,lX.__)("Toggle sidebar","uncanny-automator")} <uas-button color="transparent" @click=${this.onClick} aria-label=${String((0,lX.__)("Toggle sidebar","uncanny-automator"))} size="sm" class="button" slot="target" > <uas-icon code="sidebar-flip"></uas-icon> </uas-button> </uas-tooltip> `}};erB=function(e,t,i,a){var n,o=arguments.length,r=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(r=(o<3?n(r):o>3?n(t,i,r):n(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r}([lJ("uap-f-recipe-builder-publish-bar-sidebar-toggle")],erB);var erH=a(7888),erV=a.n(erH);let erq=class extends ld{constructor(){super(...arguments),this.saveStatus=new erL(this)}static{this.styles=sf`${sm(erV())}`}statusIcon(e){switch(e){case Ic.SAVING:return"cloud-arrow-up";case Ic.ERROR:return"cloud-exclamation";case Ic.SAVED:return"cloud-check"}}statusLabel(e){switch(e){case Ic.SAVING:return(0,lX.__)("Saving...","uncanny-automator");case Ic.ERROR:return(0,lX.__)("Couldn't save","uncanny-automator");case Ic.SAVED:return(0,lX.__)("Saved","uncanny-automator")}}statusColor(e){switch(e){case Ic.ERROR:return pO.ERROR;case Ic.SAVED:return pO.SUCCESS;case Ic.SAVING:return pO.NEUTRAL}}render(){return s1` <uas-tooltip placement="bottom"> ${(0,lX.__)("Recipe saves automatically","uncanny-automator")} <div slot="target"> <div class="desktop"> <uas-chip color=${this.statusColor(this.saveStatus.status)} icon=${this.statusIcon(this.saveStatus.status)??s3} label=${this.statusLabel(this.saveStatus.status)} ></uas-chip> </div> <div class="mobile"> <uas-chip color=${this.statusColor(this.saveStatus.status)} icon=${this.statusIcon(this.saveStatus.status)??s3} size="lg" ></uas-chip> </div> </div> </uas-tooltip> `}};erq=function(e,t,i,a){var n,o=arguments.length,r=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(r=(o<3?n(r):o>3?n(t,i,r):n(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r}([lJ("uap-f-recipe-builder-publish-bar-save-indicator")],erq);var erZ=a(9),erW=a.n(erZ),erG=function(e,t,i,a){var n,o=arguments.length,r=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(r=(o<3?n(r):o>3?n(t,i,r):n(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r};let erK=class extends ld{constructor(){super(...arguments),this.recipeController=new vE(this,{...Ai(-1),enabled:!1})}static{this.styles=sf`${sm(erW())}`}willUpdate(e){if(lQ(this,"recipeID",o5().int().positive().optional(),e,"uap-f-recipe-builder-publish-bar"),e.has("recipeID")||e.has("contextRecipeID")){let e=this.recipeID??this.contextRecipeID;e?this.recipeController.setOptions({...Ai(e),enabled:!0}):this.recipeController.options.enabled&&this.recipeController.setOptions({enabled:!1})}}render(){let e=this.recipeController.result.data,t=e?.recipe_status,i=e?.miscellaneous.has_run_now;return rK(t)&&rK(i)?s1` <div class="publish-bar"> <div class="publish-bar-cta" ?recipe-on=${t===CE.PUBLISH} ?has-run-now=${i} > <uap-f-recipe-builder-publish-bar-save-indicator></uap-f-recipe-builder-publish-bar-save-indicator> <uap-f-recipe-builder-publish-bar-sidebar-toggle></uap-f-recipe-builder-publish-bar-sidebar-toggle> ${i?s1`<uap-f-recipe-builder-publish-bar-run-now-button .canEdit=${e?.can_edit}></uap-f-recipe-builder-publish-bar-run-now-button>`:s1`<uap-f-recipe-builder-publish-bar-status-toggle .hasRunNow=${i} .recipeStatus=${t} ></uap-f-recipe-builder-publish-bar-status-toggle>`} </div> <div class="publish-bar-quick-actions"> <uap-f-recipe-builder-publish-bar-quick-actions .urlTrashRecipe=${e?.miscellaneous.url_trash_recipe} .urlDuplicateRecipe=${e?.miscellaneous.url_duplicate_recipe} .urlDownloadRecipe=${e?.miscellaneous.url_download_recipe} ></uap-f-recipe-builder-publish-bar-quick-actions> </div> </div> `:s1` <div class="publish-bar"> <div class="publish-bar-cta"> <uas-skeleton .widths=${["40px","100px"]}></uas-skeleton> </div> <div class="publish-bar-quick-actions"> <uas-skeleton .widths=${["34px"]}></uas-skeleton> </div> </div> `}};erG([l0({type:Number,attribute:"recipe-id"})],erK.prototype,"recipeID",void 0),erG([H8({context:Jp}),l0({attribute:!1})],erK.prototype,"contextRecipeID",void 0),erK=erG([lJ("uap-f-recipe-builder-publish-bar")],erK);var erY=a(1572),erQ=a.n(erY),erX=function(e,t,i,a){var n,o=arguments.length,r=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(r=(o<3?n(r):o>3?n(t,i,r):n(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r};let erJ=class extends ld{constructor(){super(...arguments),this.view=Wx.view,this.loading=!1}static{this.styles=sf`${sm(erQ())}`}render(){return s1` <div class="top-bar"> <uas-top-bar> <uas-icon slot="start" class="logo" brand="uncanny-automator"></uas-icon> <uap-d-recipe-view-switcher slot="start" view=${this.view} ></uap-d-recipe-view-switcher> <uap-f-recipe-builder-title .recipeTitle=${this.recipeTitle} ?loading=${this.loading} ></uap-f-recipe-builder-title> <uap-f-recipe-builder-publish-bar slot="end" recipe-id=${this.recipeID??s3} ></uap-f-recipe-builder-publish-bar> </uas-top-bar> </div> `}};erX([l0({type:Number,attribute:"recipe-id"})],erJ.prototype,"recipeID",void 0),erX([l0({attribute:!1})],erJ.prototype,"recipeTitle",void 0),erX([l0({type:String})],erJ.prototype,"view",void 0),erX([l0({type:Boolean,reflect:!0})],erJ.prototype,"loading",void 0),erJ=erX([lJ("uap-f-recipe-builder-top-bar")],erJ);let er1=rg({siteURL:bi,recipeID:o5().int().positive(),description:oR().trim().min(1),promptPrefix:oR().min(1).nullable()}).strict(),er0={START:"start",CONTINUE_EXTERNAL:"continue-external",AGENT_BUILDING:"agent-building"};rT(er0);let er2={EXTERNAL:"external",AGENT:"agent"};rT(er2),rv("kind",[rg({kind:rT([er2.EXTERNAL]),id:oR().min(1),label:oR().min(1),shortLabel:oR().min(1),detail:oR().min(1).nullable(),connection:u7}).strict(),rg({kind:rT([er2.AGENT]),id:oR().min(1),label:oR().min(1),shortLabel:oR().min(1),detail:ri()}).strict()]);let er3=rg({optionID:oR().nullable(),expanded:re(),description:oR()}).strict(),er4={optionID:null,expanded:!1,description:""},er6=rv("kind",[rg({kind:rT([er2.EXTERNAL]),name:oR(),brand:u4,openURL:u8.nullable(),prefilled:re(),prompt:oR().min(1),copied:re()}).strict(),rg({kind:rT([er2.AGENT])}).strict()]),er5=rg({}).strict(),er8={PENDING:"pending",SUCCESS:"success",ERROR:"error",FORBIDDEN:"forbidden"},er7=rT(er8),er9={LOADING:"loading",ERROR:"error",CONNECT:"connect",CONNECT_FORBIDDEN:"connect-forbidden",CHOOSE:"choose"};rT(er9);let ese=rg({connections:er7,account:er7,optionCount:o5().int().nonnegative()}).strict();function est(e,t){return e?er8.PENDING:t instanceof dH&&403===t.status?er8.FORBIDDEN:t?er8.ERROR:er8.SUCCESS}var esi=a(9202),esa=a.n(esi),esn=function(e,t,i,a){var n,o=arguments.length,r=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(r=(o<3?n(r):o>3?n(t,i,r):n(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r};let eso=class extends ld{constructor(){super(...arguments),this.agentAvailable=!1,this.draft=er4,this.agentSending=!1,this.agentFailed=!1,this.agentWaitTimeoutMs=4e3,this.focusDescriptionOnExpand=!1,this.connectionsController=new vE(this,bR),this.accountController=new vE(this,$K)}static{this.styles=sf`${sm(esa())}`}willUpdate(e){lQ(this,"recipeID",er1.shape.recipeID.optional(),e,"uap-f-recipe-builder-welcome-ai-card"),lQ(this,"siteURL",bi.optional(),e,"uap-f-recipe-builder-welcome-ai-card"),lQ(this,"draft",er3,e,"uap-f-recipe-builder-welcome-ai-card",er4)}updated(e){e.has("draft")&&this.focusDescriptionOnExpand&&this.draft.expanded&&(this.focusDescriptionOnExpand=!1,this.descriptionField?.focus())}render(){let e=function(e,t){let i=bX.parse(e).filter(e=>e.is_mine).map(e=>({connection:e,usedAt:null===e.last_used_at?-1/0:Date.parse(e.last_used_at)})).sort((e,t)=>e.usedAt===t.usedAt?0:e.usedAt>t.usedAt?-1:1).map(e=>e.connection),a=i.map(e=>{var t;let a,n,o=(a=u7.parse(e),n=bB(i).find(e=>e.id===a.id),n?.label??a.name),r=(t=e.name).replace(/\s*\([^()]*\)\s*$/,"")||t;return{kind:er2.EXTERNAL,id:e.id,label:o,shortLabel:r,detail:function(e,t){if(!e.startsWith(t))return null;let i=e.slice(t.length).trim().replace(/^\(([^()]*)\)$/,"$1");return""===i?null:i}(o,r),connection:e}});if(t){let e=(0,lX.__)("Uncanny Agent","uncanny-automator");a.push({kind:er2.AGENT,id:"uncanny-agent",label:e,shortLabel:e,detail:null})}return a}(this.connectionsController.result.data??[],this.agentAvailable);switch(function(e){let{connections:t,account:i,optionCount:a}=ese.parse(e);return t===er8.PENDING?er9.LOADING:a>0?er9.CHOOSE:t===er8.ERROR?er9.ERROR:i===er8.PENDING?er9.LOADING:i===er8.ERROR?er9.ERROR:t===er8.FORBIDDEN?er9.CONNECT_FORBIDDEN:er9.CONNECT}({connections:this.connectionsStatus,account:this.accountStatus,optionCount:e.length})){case er9.LOADING:return this.templateLoading();case er9.ERROR:return this.templateLoadError();case er9.CONNECT:return this.templateConnect(!1);case er9.CONNECT_FORBIDDEN:return this.templateConnect(!0);case er9.CHOOSE:{let t=e.find(e=>e.id===this.draft.optionID)??e.at(0);return t?this.templateChoose(e,t):s3}}}get connectionsStatus(){let{isPending:e,error:t}=this.connectionsController.result;return est(e,t)}get accountStatus(){let{isPending:e,error:t}=this.accountController.result;return est(e,t)}getPrompt(e){return this.recipeID&&this.siteURL&&""!==this.draft.description.trim()?function(e){let{siteURL:t,recipeID:i,description:a,promptPrefix:n}=er1.parse(e),o=(0,lX.sprintf)((0,lX.__)("Use the Uncanny Automator MCP connection for %1$s to build the following in the existing recipe with ID %2$d. Don't create a new recipe. %3$s","uncanny-automator"),t,i,a);return null===n?o:`${n} ${o}`}({siteURL:this.siteURL,recipeID:this.recipeID,description:this.draft.description,promptPrefix:e.kind===er2.EXTERNAL?e.connection.prompt_prefix:null}):null}templateLoading(){return s1` <section class="card" data-test="welcome-ai-skeleton" aria-busy="true"> <uas-skeleton variant="rectangle" width="36px" height="36px"></uas-skeleton> <div class="card__lines"> <uas-skeleton width="60%" height="1.5em"></uas-skeleton> </div> <div class="card__lines"> <uas-skeleton width="100%"></uas-skeleton> <uas-skeleton width="80%"></uas-skeleton> </div> <uas-skeleton class="card__actions" variant="rectangle" width="12em" height="40px"></uas-skeleton> </section> `}templateLoadError(){return s1` <section class="card"> ${this.templateTile()} ${this.templateTitle((0,lX.__)("Build with your AI","uncanny-automator"))} <p class="card__note card__note--error" data-test="welcome-ai-load-error" role="alert"> ${(0,lX.__)("Your AI connections couldn't be loaded.","uncanny-automator")} </p> <div class="card__actions"> <uas-button data-test="welcome-ai-retry" color="secondary" ?loading=${this.connectionsController.result.isFetching||this.accountController.result.isFetching} @click=${this.handleRetryFailedReads} > ${(0,lX.__)("Try again","uncanny-automator")} </uas-button> </div> </section> `}templateConnect(e){return s1` <section class="card"> ${this.templateTile()} ${this.templateTitle((0,lX.__)("Build with your AI","uncanny-automator"))} <p class="card__text"> ${(0,lX.__)("Connect Claude, ChatGPT, Gemini or any AI to this site. Then describe a recipe and it assembles the triggers and actions for you.","uncanny-automator")} </p> <div class="card__actions"> ${this.templateConnectAction(e)} </div> </section> `}templateConnectAction(e){let t=this.accountController.result.data;return e||!t?s1` <uas-button class="card__button" data-test="welcome-ai-connect" filled size="lg" disabled> ${(0,lX.__)("Connect an AI","uncanny-automator")} </uas-button> ${e?s1` <p class="card__note" data-test="welcome-ai-connect-note"> ${(0,lX.__)("Only administrators can connect an AI.","uncanny-automator")} </p> `:s3} `:!t.linked||pz(t.license_scenario)?s1`<uap-d-ai-link-account-steps class="card__steps" .account=${t}></uap-d-ai-link-account-steps>`:s1` <uas-button class="card__button" data-test="welcome-ai-connect" filled size="lg" href=${b3(t.links.connect_ai,"recipe_welcome_connect")} target=${pv.SELF} unsafe-force-target > ${(0,lX.__)("Connect an AI","uncanny-automator")} </uas-button> `}templateChoose(e,t){return s1` <section class="card"> ${this.templateLogo(t,pc.LG)} ${this.connectionsStatus===er8.ERROR?this.templateConnectionsError():s3} ${this.templatePicker(e,t)} ${this.draft.expanded?this.templateExpanded(t):this.templateCollapsed(t)} </section> `}templatePicker(e,t){let i=e.filter(e=>e.kind===er2.EXTERNAL),a=e.find(e=>e.kind===er2.AGENT);return s1` <h3 class="picker"> <uas-button-dropdown class="picker__dropdown" placement="bottom-start"> <uas-button slot="trigger" class="picker__trigger" data-test="welcome-ai-picker" color="transparent" aria-label=${String((0,lX.sprintf)((0,lX.__)("Choose the AI, %s selected","uncanny-automator"),t.label))} > <span class="picker__heading"> <span class="picker__title"> <span class="picker__title-text" id="welcome-ai-title" data-test="welcome-ai-title"> ${(0,lX.sprintf)((0,lX.__)("Build with %s","uncanny-automator"),t.shortLabel)} </span> <uas-icon code="angle-down"></uas-icon> </span> ${null===t.detail?s3:s1` <span class="picker__detail" data-test="welcome-ai-detail">${t.detail}</span> `} </span> </uas-button> <div class="picker__panel"> ${i.length>0?s1` <span class="picker__group">${(0,lX.__)("Your connected AIs","uncanny-automator")}</span> ${i.map(e=>this.templatePickerOption(e,e.id===t.id))} `:s3} ${a?s1` ${i.length>0?s1`<hr class="picker__separator">`:s3} ${this.templatePickerOption(a,a.id===t.id)} `:s3} ${this.templateConnectAnother()} </div> </uas-button-dropdown> </h3> `}templatePickerOption(e,t){return s1` <uas-button class="picker__option" color="transparent" data-option-id=${e.id} aria-current=${(t?"true":void 0)??s3} @click=${()=>this.selectOption(e)} > ${this.templateLogo(e,pc.MD)} <span class="picker__details"> <span class="picker__name">${e.label}</span> ${e.kind===er2.EXTERNAL?s1`<span class="picker__used">${this.templateLastUsed(e.connection)}</span>`:s3} </span> </uas-button> `}templateLastUsed(e){if(null===e.last_used_at)return s1`${(0,lX.__)("Not used yet","uncanny-automator")}`;let{before:t,after:i}=PR((0,lX.sprintf)((0,lX.__)("Used %s","uncanny-automator"),""));return s1`${t}<uas-timer numeric="auto" .timestamp=${e.last_used_at}></uas-timer>${i}`}templateConnectAnother(){let e=this.accountController.result.data;return this.connectionsStatus!==er8.FORBIDDEN&&e?s1` <hr class="picker__separator"> <uas-button class="picker__option" data-test="welcome-ai-connect-another" color="transparent" href=${b3(e.links.connect_ai,"recipe_welcome_connect_another")} target=${pv.SELF} unsafe-force-target > ${(0,lX.__)("+ Connect another AI","uncanny-automator")} </uas-button> `:s3}templateConnectionsError(){return s1` <div class="card__connections-error" data-test="welcome-ai-connections-error" role="alert"> <span class="card__note card__note--error">${(0,lX.__)("Your AI connections couldn't be loaded.","uncanny-automator")}</span> <uas-button data-test="welcome-ai-connections-retry" color="secondary" size="xs" ?loading=${this.connectionsController.result.isFetching} @click=${this.handleRetryConnections} > ${(0,lX.__)("Try again","uncanny-automator")} </uas-button> </div> `}templateCollapsed(e){let t=e.kind===er2.EXTERNAL?(0,lX.sprintf)((0,lX.__)("Describe what you want in plain words. %s assembles the triggers and actions in this recipe.","uncanny-automator"),e.shortLabel):(0,lX.__)("Describe what you want in plain words and let AI assemble the triggers and actions.","uncanny-automator");return s1` <p class="card__text">${t}</p> <div class="card__actions"> <uas-button class="card__button" data-test="welcome-ai-describe" filled size="lg" @click=${this.handleDescribe}> ${(0,lX.__)("Describe your recipe","uncanny-automator")} </uas-button> </div> `}templateExpanded(e){return s1` <textarea class="card__description" data-test="welcome-ai-description" aria-labelledby="welcome-ai-title" maxlength=${1e3} rows="4" .value=${Zz(this.draft.description)} @input=${this.handleDescriptionInput} ></textarea> <p class="card__hint" data-test="welcome-ai-hint">${this.getHint(e)}</p> <div class="card__actions"> ${this.templateSend(e)} ${this.agentFailed?s1` <p class="card__note card__note--error" data-test="welcome-ai-agent-error" role="alert"> ${(0,lX.__)("Uncanny Agent couldn't open. Try again in a moment.","uncanny-automator")} </p> `:s3} </div> `}templateSend(e){let t=this.getPrompt(e),i=e.kind===er2.EXTERNAL&&null!==t?b1(e.connection,t)??void 0:void 0,a=i&&b0(i)?pv.SELF:pv.BLANK;return s1` <uas-button class="card__button" data-test="welcome-ai-send" filled size="lg" href=${i??s3} target=${(i?a:void 0)??s3} unsafe-force-target ?disabled=${null===t} ?loading=${this.agentSending} @click=${{handleEvent:()=>this.send(e),capture:!0}} > <span class="card__button-label"> ${(0,lX.sprintf)((0,lX.__)("Send to %s","uncanny-automator"),e.shortLabel)} </span> </uas-button> `}templateTitle(e){return s1`<h3 class="card__title" id="welcome-ai-title" data-test="welcome-ai-title">${e}</h3>`}templateLogo(e,t){return e.kind===er2.EXTERNAL?s1`<uap-d-ai-app-logo .brand=${e.connection.brand} size=${t}></uap-d-ai-app-logo>`:this.templateTile(t)}templateTile(e=pc.LG){return s1` <span class="tile tile--${e}" aria-hidden="true"> <uas-icon code="sparkles"></uas-icon> </span> `}getHint(e){if(e.kind===er2.AGENT)return(0,lX.__)("Uncanny Agent opens on the right and builds it in this recipe.","uncanny-automator");let{open_url:t,prompt_param:i}=e.connection;return null===t?(0,lX.sprintf)((0,lX.__)("Copies your description so you can paste it into %s.","uncanny-automator"),e.shortLabel):b0(t)?(0,lX.sprintf)((0,lX.__)("Opens %s with your description ready to send. It is also copied, in case the app doesn't open.","uncanny-automator"),e.shortLabel):null===i?(0,lX.sprintf)((0,lX.__)("Opens %s in a new tab and copies your description so you can paste it there.","uncanny-automator"),e.shortLabel):(0,lX.sprintf)((0,lX.__)("Opens %s in a new tab with your description ready to send. It is also copied, in case it doesn't show up.","uncanny-automator"),e.shortLabel)}handleRetryFailedReads(){this.connectionsStatus===er8.ERROR&&this.connectionsController.refetch(),this.accountStatus===er8.ERROR&&this.accountController.refetch()}handleRetryConnections(){this.connectionsController.refetch()}handleDescribe(){this.focusDescriptionOnExpand=!0,this.dispatchDraft({...this.draft,expanded:!0})}handleDescriptionInput(e){e.target instanceof HTMLTextAreaElement&&this.dispatchDraft({...this.draft,description:e.target.value})}selectOption(e){this.agentFailed=!1,this.dispatchDraft({...this.draft,optionID:e.id})}send(e){let t=this.getPrompt(e);if(null!==t){if(e.kind===er2.AGENT)return void this.sendToAgent(t);this.sendToApp(e.shortLabel,e.connection,t)}}async sendToApp(e,t,i){let a=b1(t,i),n=await this.copyPrompt(i);this.dispatchSent({kind:er2.EXTERNAL,name:e,brand:t.brand,openURL:a,prefilled:null!==t.open_url&&null!==t.prompt_param,prompt:i,copied:n})}async sendToAgent(e){if(!this.agentSending){this.agentSending=!0,this.agentFailed=!1;try{var t;let i=await bQ(this.agentWaitTimeoutMs,100);if(!i?.send){this.agentFailed=!0;return}let a=await (t=this.agentWaitTimeoutMs,new Promise((e,a)=>{let n=setTimeout(()=>e(!1),t);i.ready.then(()=>{clearTimeout(n),e(!0)},e=>{clearTimeout(n),a(e)})}));if(!this.isConnected)return;if(!a){this.agentFailed=!0;return}await i.send({text:e,open:!0,focus:!0,placement:bq.DOCKED,newConversation:!0}),this.dispatchSent({kind:er2.AGENT})}catch{this.agentFailed=!0}finally{this.agentSending=!1}}}async copyPrompt(e){try{return await navigator.clipboard.writeText(e),!0}catch{return!1}}dispatchDraft(e){lw({element:this,eventName:"uap.f.recipe-builder.welcome.draft-change",data:e,schema:er3,options:{bubbles:!0,composed:!0}})}dispatchSent(e){lw({element:this,eventName:"uap.f.recipe-builder.welcome.sent",data:e,schema:er6,options:{bubbles:!0,composed:!0}})}};esn([l0({type:Number,attribute:"recipe-id"})],eso.prototype,"recipeID",void 0),esn([l0({type:String,attribute:"site-url"})],eso.prototype,"siteURL",void 0),esn([l0({type:Boolean,attribute:"agent-available"})],eso.prototype,"agentAvailable",void 0),esn([l0({type:Object})],eso.prototype,"draft",void 0),esn([l2()],eso.prototype,"agentSending",void 0),esn([l2()],eso.prototype,"agentFailed",void 0),esn([l4('[data-test="welcome-ai-description"]')],eso.prototype,"descriptionField",void 0),eso=esn([lJ("uap-f-recipe-builder-welcome-ai-card")],eso);let esr=rg({name:oR(),prefilled:re(),opensApp:re(),copied:re()}).strict();var ess=a(6777),esl=a.n(ess),esc=function(e,t,i,a){var n,o=arguments.length,r=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(r=(o<3?n(r):o>3?n(t,i,r):n(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r};let esd=class extends ld{constructor(){super(...arguments),this.agentAvailable=!1,this.stage=er0.START,this.draft=er4,this.externalSent=null,this.stopListeningToAgentClose=null,this.agentListenRound=0}static{this.styles=sf`${sm(esl())}`}connectedCallback(){super.connectedCallback(),this.stage===er0.AGENT_BUILDING&&this.listenToAgentClose()}disconnectedCallback(){super.disconnectedCallback(),this.stopListeningToAgent()}willUpdate(e){lQ(this,"recipeID",er1.shape.recipeID.optional(),e,"uap-f-recipe-builder-welcome"),lQ(this,"siteURL",bi.optional(),e,"uap-f-recipe-builder-welcome")}updated(e){if(e.has("stage")){if(this.stage===er0.AGENT_BUILDING)return void this.listenToAgentClose();this.stopListeningToAgent()}}render(){return s1`<div class="welcome">${this.templateStage()}</div>`}templateStage(){return this.stage===er0.AGENT_BUILDING?this.templateBuilding():this.stage===er0.CONTINUE_EXTERNAL&&this.externalSent?this.templateContinue(this.externalSent):this.templateStart()}templateStart(){var e;let t;return s1` <header class="welcome__header"> <h2 class="welcome__heading">${e=this.userFirstName,""===(t=e?.trim()??"")?(0,lX.__)("Let's build something awesome","uncanny-automator"):(0,lX.sprintf)((0,lX.__)("Let's build something awesome, %s","uncanny-automator"),t)}</h2> <p class="welcome__subheading" data-test="welcome-subheading"> ${(0,lX.__)("How would you like to start your recipe?","uncanny-automator")} </p> </header> <div class="welcome__options" data-test="welcome-options"> <uap-f-recipe-builder-welcome-ai-card data-option="ai" .recipeID=${this.recipeID} .siteURL=${this.siteURL} ?agent-available=${this.agentAvailable} .draft=${this.draft} @uap.f.recipe-builder.welcome.draft-change=${this.handleDraftChange} @uap.f.recipe-builder.welcome.sent=${this.handleSent} ></uap-f-recipe-builder-welcome-ai-card> <section class="card" data-option="scratch"> <span class="tile tile--neutral" aria-hidden="true"><uas-icon code="plus"></uas-icon></span> <h3 class="card__title">${(0,lX.__)("Start from scratch","uncanny-automator")}</h3> <p class="card__text"> ${(0,lX.__)("Add your own triggers and actions step by step, with full control over every part.","uncanny-automator")} </p> <div class="card__actions"> <uas-button class="card__button" data-test="welcome-start-from-scratch" size="lg" @click=${this.handleStartFromScratch}> ${(0,lX.__)("Add a trigger","uncanny-automator")} </uas-button> </div> </section> <section class="card" data-option="templates"> <span class="tile tile--neutral" aria-hidden="true"><uas-icon code="grid-round-2"></uas-icon></span> <h3 class="card__title">${(0,lX.__)("Browse templates","uncanny-automator")}</h3> <p class="card__text"> ${(0,lX.__)("Start from a pre-built recipe and customize it to fit your workflow.","uncanny-automator")} </p> <div class="card__actions"> <uas-button class="card__button" data-test="welcome-search-templates" size="lg" @click=${this.handleSearchTemplates}> ${(0,lX.__)("Search templates","uncanny-automator")} </uas-button> </div> </section> </div> `}templateContinue(e){return s1` <section class="panel" data-test="welcome-continue"> <uap-d-ai-app-logo .brand=${e.brand} size=${pc.LG}></uap-d-ai-app-logo> <h2 class="panel__title"> ${(0,lX.sprintf)((0,lX.__)("Continue in %s","uncanny-automator"),e.name)} </h2> <p class="panel__text" id="welcome-continue-message" data-test="welcome-continue-message"> ${function(e){let{name:t,prefilled:i,opensApp:a,copied:n}=esr.parse(e);return i&&a&&n?(0,lX.sprintf)((0,lX.__)("%1$s should open with your description. Press send there. If it doesn't open, paste your copied description into %1$s. When %1$s says the recipe is ready, refresh this page to see it.","uncanny-automator"),t):i&&a?(0,lX.sprintf)((0,lX.__)("%1$s should open with your description. Press send there. If it doesn't open, copy your description below and paste it into %1$s. When %1$s says the recipe is ready, refresh this page to see it.","uncanny-automator"),t):i?(0,lX.sprintf)((0,lX.__)("We opened %1$s with your description. Press send there. When %1$s says the recipe is ready, refresh this page to see it.","uncanny-automator"),t):n?(0,lX.sprintf)((0,lX.__)("Your description is copied. Paste it into %1$s and send it. When %1$s says the recipe is ready, refresh this page to see it.","uncanny-automator"),t):(0,lX.sprintf)((0,lX.__)("Copy your description below, paste it into %1$s and send it. When %1$s says the recipe is ready, refresh this page to see it.","uncanny-automator"),t)}({name:e.name,prefilled:e.prefilled,opensApp:null!==e.openURL&&b0(e.openURL),copied:e.copied})} </p> ${e.copied?s3:s1` <textarea class="panel__prompt" data-test="welcome-continue-prompt" aria-labelledby="welcome-continue-message" readonly rows="5" .value=${e.prompt} ></textarea> `} <div class="panel__actions"> <uas-button data-test="welcome-refresh" filled size="lg" @click=${this.handleRefresh}> ${(0,lX.__)("Refresh this page","uncanny-automator")} </uas-button> ${this.templateOpenAgain(e)} ${this.templateCopyAgain(e)} </div> ${this.templateBack()} </section> `}templateOpenAgain(e){return null===e.openURL?s3:s1` <uas-button class="panel__link" data-test="welcome-open-again" size="lg" href=${e.openURL} target=${b0(e.openURL)?pv.SELF:pv.BLANK} unsafe-force-target > <span class="panel__link-label"> ${(0,lX.sprintf)((0,lX.__)("Open %s again","uncanny-automator"),e.name)} </span> </uas-button> `}templateCopyAgain(e){return e.prefilled&&(null===e.openURL||!b0(e.openURL))?s3:s1` <uas-button data-test="welcome-copy-again" size="lg" @click=${this.handleCopyAgain}> ${(0,lX.__)("Copy description again","uncanny-automator")} </uas-button> `}templateBack(){return s1` <uas-button class="panel__back" data-test="welcome-back" color="transparent" @click=${this.handleBack}> ${(0,lX.__)("Back to the start options","uncanny-automator")} </uas-button> `}templateBuilding(){return s1` <section class="panel" data-test="welcome-building"> <span class="tile tile--info" aria-hidden="true"><uas-icon code="sparkles"></uas-icon></span> <h2 class="panel__title">${(0,lX.__)("Uncanny Agent is building your recipe","uncanny-automator")}</h2> <p class="panel__text" data-test="welcome-building-text"> ${(0,lX.__)("Follow along and answer its questions in the chat. Triggers and actions show up here as they are added.","uncanny-automator")} </p> <p class="panel__status" data-test="welcome-building-status" role="status"> <uas-icon code="spinner-third" animation="spin"></uas-icon> ${(0,lX.__)("Working on your recipe","uncanny-automator")} </p> ${this.templateBack()} </section> `}handleDraftChange(e){e instanceof CustomEvent&&(this.draft=er3.parse(e.detail))}handleSent(e){if(!(e instanceof CustomEvent))return;let t=er6.parse(e.detail);if(t.kind===er2.AGENT){this.stage=er0.AGENT_BUILDING;return}this.externalSent=t,this.stage=er0.CONTINUE_EXTERNAL}handleStartFromScratch(){lw({element:this,eventName:"uap.f.recipe-builder.welcome.start-from-scratch",data:{},schema:er5,options:{bubbles:!0,composed:!0}}),window.location.hash=Nn}handleSearchTemplates(){window.location.hash=No}handleRefresh(){window.location.reload()}async handleCopyAgain(){let e=this.externalSent;if(!e)return;let t=!0;try{await navigator.clipboard.writeText(e.prompt)}catch{t=!1}this.externalSent===e&&(this.externalSent={...e,copied:t})}handleBack(){this.stage=er0.START}async listenToAgentClose(){this.stopListeningToAgent();let e=this.agentListenRound,t=await bQ(4e3,100);e===this.agentListenRound&&t?.on&&(this.stopListeningToAgentClose=t.on(bW.CLOSE,()=>{e===this.agentListenRound&&(this.stage=er0.START)}))}stopListeningToAgent(){this.agentListenRound+=1,this.stopListeningToAgentClose?.(),this.stopListeningToAgentClose=null}};esc([l0({type:Number,attribute:"recipe-id"})],esd.prototype,"recipeID",void 0),esc([l0({type:String,attribute:"user-first-name"})],esd.prototype,"userFirstName",void 0),esc([l0({type:String,attribute:"site-url"})],esd.prototype,"siteURL",void 0),esc([l0({type:Boolean,attribute:"agent-available"})],esd.prototype,"agentAvailable",void 0),esc([l2()],esd.prototype,"stage",void 0),esc([l2()],esd.prototype,"draft",void 0),esc([l2()],esd.prototype,"externalSent",void 0),esd=esc([lJ("uap-f-recipe-builder-welcome")],esd);var esu=function(e,t,i,a){var n,o=arguments.length,r=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(r=(o<3?n(r):o>3?n(t,i,r):n(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r};let esp=class extends ld{constructor(){super(...arguments),this.agentAvailable=!1,this.preferences=new vS(this,{...WE,schema:Wb,persistenceReady:Ww()}),this.setPreferences=new vm(this,WI()),this.recipeController=new vE(this,{...Ai(-1),enabled:!1}),this.saveGuard=new Jm(this),this.catalogPreload=new Jf(this),this.resetRoute=()=>{window.location.hash=""},this.router=new _P(this,this.getRoutes()),this.onTemplatesDialogClose=e=>{e.target===e.currentTarget&&this.resetRoute()},this.onSidebarToggle=()=>{this.$sidebarSheet.toggleSideSheet()}}static{this.styles=sf`${sm(ene())}`}get projection(){return this.preferences.data?this.preferences.data.view:this.preferences.result.errorUpdateCount>0?Wx.view:void 0}connectedCallback(){super.connectedCallback(),this.closest("uap-d-site-auth")||console.error("uap-f-recipe-builder: Error: <uap-f-recipe-builder> must be used inside <uap-d-site-auth>")}willUpdate(e){if(lQ(this,"recipeID",o5().int().positive(),e,"uap-f-recipe-builder"),lQ(this,"siteURL",bi.optional(),e,"uap-f-recipe-builder"),e.has("recipeID")){let e=this.recipeID;e?this.recipeController.setOptions({...Ai(e),enabled:!0}):this.recipeController.options.enabled&&this.recipeController.setOptions({enabled:!1})}this.recipeTitle=this.recipe?.title,this.view=this.projection}updated(e){super.updated(e),this.isTemplatesRouteActive()&&void 0!==this.recipe&&!ea7(this.recipe)&&this.resetRoute()}isTemplatesRouteActive(){return this.router.getCurrentRouteId()===Jd}getRoutes(){return[{path:"/",component:()=>s1``},{path:`${Ni}/*`,component:()=>{let e=this.recipeController.result.data?.miscellaneous.last_modified_date_timestamp;return s1` <uas-dialog size="lg" open no-header no-footer no-padding @uas.dialog.close=${this.resetRoute} > <uap-f-recipe-builder-node-selector last-modified-date-timestamp=${e??s3} .isRecipeReady=${this.isRecipeReady} ></uap-f-recipe-builder-node-selector> </uas-dialog> `}},{id:Jd,path:`${No}/*`,component:()=>this.templateTemplatesDialog()}]}templateRouteOutlet(){let e=void 0!==this.recipe&&ea7(this.recipe);return this.isTemplatesRouteActive()&&!e?s3:this.router.renderOutlet()}templateTemplatesDialog(){return s1` <uas-dialog size="xl" open no-header no-footer no-padding @uas.dialog.close=${this.onTemplatesDialogClose} > <div class="templates-dialog__frame"> <uap-f-recipe-template import-into-recipe-id=${this.recipeID??s3} @uap.f.recipe-template.imported=${this.resetRoute} @uap.f.recipe-template.close=${this.resetRoute} ></uap-f-recipe-template> </div> </uas-dialog> `}onViewChange(e){let t=Wh.safeParse(e.detail);t.success&&this.setPreferences.mutate({view:t.data.view})}render(){return this.recipeID?this.isRecipeError?this.templateErrorAlert((0,lX.__)("The recipe couldn't be loaded","uncanny-automator"),(0,lX.__)("Something went wrong while loading this recipe. Refresh the page to try again.","uncanny-automator"),"recipe-builder-error"):s1` <div class="builder" @uap.f.recipe-builder.sidebar-toggle=${this.onSidebarToggle} @uap.d.recipe.view-change=${this.onViewChange} > <uap-f-recipe-builder-top-bar recipe-id=${this.recipeID??s3} view=${this.view??Wx.view} .recipeTitle=${this.recipe?.title} ?loading=${this.isRecipeLoading} ></uap-f-recipe-builder-top-bar> <uas-side-sheet-layout class="builder-shell"> <div class="builder-shell__main"> <uap-f-recipe-builder-violations .recipe=${this.recipe}></uap-f-recipe-builder-violations> <uap-f-recipe-builder-notices .notices=${this.recipe?.notices}></uap-f-recipe-builder-notices> ${this.templateMain()} </div> <uas-side-sheet no-header default-open slot="end" placement="end" class="builder-shell__sidebar" > <uap-f-recipe-builder-sidebar recipe-id=${this.recipeID??s3}></uap-f-recipe-builder-sidebar> </uas-side-sheet> </uas-side-sheet-layout> </div> ${this.templateRouteOutlet()} ${this.templateRecipeLog()} ${this.templateRecipeTemplateDialog()} <uap-f-recipe-builder-resolve-dependencies-dialog .recipeID=${this.recipeID}></uap-f-recipe-builder-resolve-dependencies-dialog> <uap-d-recipe-locked-recipe-dialog .recipeID=${this.recipeID}></uap-d-recipe-locked-recipe-dialog> `:this.templateErrorAlert((0,lX.__)("The recipe builder can't be loaded","uncanny-automator"),(0,lX.__)("We couldn't load the recipe builder. The recipe ID is missing or unavailable.","uncanny-automator"))}templateMain(){return this.recipe&&ea7(this.recipe)?s1`<uap-f-recipe-builder-welcome recipe-id=${this.recipeID??s3} user-first-name=${this.userFirstName??s3} site-url=${this.siteURL??s3} ?agent-available=${this.agentAvailable} ></uap-f-recipe-builder-welcome>`:this.templateProjection()}templateProjection(){return this.view===TJ.DIAGRAM?s1`<uap-f-recipe-builder-canvas .recipe=${this.recipe} ?loading=${this.isRecipeLoading} ></uap-f-recipe-builder-canvas>`:s1`<uap-f-recipe-builder-flow .recipe=${this.recipe} ?loading=${this.isRecipeLoading||!this.view} ></uap-f-recipe-builder-flow>`}templateErrorAlert(e,t,i){return s1` <div class="recipe-builder__error"> <uas-alert type="error" data-test=${i??s3} .heading=${e} > ${t} </uas-alert> </div> `}templateRecipeLog(){return s1` <uap-f-recipe-log></uap-f-recipe-log> `}templateRecipeTemplateDialog(){return s1` <uap-f-recipe-template-dialog></uap-f-recipe-template-dialog> `}get isRecipeReady(){return this.recipeController.result.isSuccess&&void 0!==this.recipeController.result.data}get recipe(){return this.recipeController.result.data??void 0}get isRecipeLoading(){return this.recipeController.result.isPending}get isRecipeError(){return this.recipeController.result.isError}};esu([H5({context:Jp}),l0({type:Number,attribute:"recipe-id"})],esp.prototype,"recipeID",void 0),esu([l0({type:String,attribute:"user-first-name"})],esp.prototype,"userFirstName",void 0),esu([l0({type:String,attribute:"site-url"})],esp.prototype,"siteURL",void 0),esu([l0({type:Boolean,attribute:"agent-available"})],esp.prototype,"agentAvailable",void 0),esu([l0({attribute:"view",reflect:!0})],esp.prototype,"view",void 0),esu([H5({context:Jh}),l2()],esp.prototype,"recipeTitle",void 0),esu([l4("uas-side-sheet.builder-shell__sidebar")],esp.prototype,"$sidebarSheet",void 0),esp=esu([lJ("uap-f-recipe-builder")],esp);let esh=rg({recipeType:CP}).strict(),esg=a.p+"img/recipe-type-user.svg",esm=a.p+"img/recipe-type-anonymous.svg";var esf=a(3349),esy=a.n(esf),esb=function(e,t,i,a){var n,o=arguments.length,r=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,a);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(r=(o<3?n(r):o>3?n(t,i,r):n(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r};let esv=[{type:CN.USER,icon:esg,name:(0,lX.__)("Logged-in users","uncanny-automator"),description:(0,lX.__)("Recipe will be triggered by logged-in WordPress users.","uncanny-automator")},{type:CN.ANONYMOUS,icon:esm,name:(0,lX.__)("Everyone","uncanny-automator"),description:(0,lX.__)("Recipe will be triggered by logged-in WordPress users or logged out visitors.","uncanny-automator")}],es_="select-recipe-type",esw=class extends ld{constructor(){super(...arguments),this.selectedType=CN.USER,this.recipeController=new vE(this,{...Ai(-1),enabled:!1}),this.router=new _P(this,[{path:"/",component:()=>s1``},{id:es_,path:Nn,component:()=>s1``}]),this.handleCancelFromRoute=()=>{window.location.hash=""},this.handleConfirm=async()=>{if(!this.recipeID||!this.selectedType)return;let e=this.isTypeRouteOpen();try{await async function(e){await dK({meta:{recipeSave:!0},mutationFn:Pp,onMutate:async e=>{var t;let i,a,n,{parsed:o,previousRecipe:r,queryKey:s}=await LA(Pl,e);return t=o.recipeType,i=r.settings[Cw.RECIPE_USER_TYPE],a=i?.[Pd],n=void 0===a?r.settings:{...r.settings,[Cw.RECIPE_USER_TYPE]:{...i,[Pd]:{...a,value:t}}},dW.setQueryData(s,{...r,recipe_type:t,settings:n}),lw({element:document,eventName:"uap.f.recipe-builder.core.set-recipe-type",data:{recipeType:t},schema:Pu}),{previousRecipe:r}},onSuccess:(e,t)=>{if(void 0===e)return;let i=Pl.parse(t);dW.setQueryData(Ae.detail(i.recipeID),t=>t?{...t,recipe_type:e.recipe.recipe_type,settings:e.recipe.settings,flow:{...t.flow,run_as:e.recipe.flow.run_as},notices:e.recipe.notices}:e.recipe)},onError:(e,t,i)=>{i?.previousRecipe&&dW.setQueryData(Ae.detail(t.recipeID),i.previousRecipe)}},e)}({recipeID:this.recipeID,recipeType:this.selectedType})}catch{return}e&&(window.location.hash=etI(kM.TRIGGER,this.recipeID))}}static{this.styles=sf`${sm(esy())}`}isTypeRouteOpen(){return this.router.getCurrentRouteId()===es_}willUpdate(e){lQ(this,"recipeID",o5().int().positive(),e,"uap-f-recipe-builder-type-selector"),e.has("recipeID")&&(this.recipeID?this.recipeController.setOptions({...Ai(this.recipeID),enabled:!0}):this.recipeController.options.enabled&&this.recipeController.setOptions({enabled:!1}))}render(){let e=this.recipeController.result.data;if(!e||e.recipe_type)return s3;let t=this.isTypeRouteOpen();return ea7(e)&&!t?s3:s1` <uas-dialog heading=${(0,b4.escapeHTML)((0,lX.__)("Select a recipe type","uncanny-automator"))} force-manual-close open > <div class="uap-recipe-type"> ${esv.map(e=>s1` <button type="button" class="uap-recipe-type-item" data-type=${e.type} ?selected=${this.selectedType===e.type} @click=${()=>this.handleSelect(e.type)} > <img class="uap-recipe-type-item__icon" src=${e.icon} alt="" /> <h3>${e.name}</h3> <p>${e.description}</p> </button> `)} </div> <uas-alert type="info" .heading=${(0,b4.escapeHTML)((0,lX.__)("Recipe type cannot be changed later.","uncanny-automator"))} class="notice" ></uas-alert> <uas-button slot="secondary-action" color="secondary" href=${(t?void 0:e.miscellaneous.url_trash_recipe)??s3} @click=${t?this.handleCancelFromRoute:s3} > ${(0,lX.__)("Cancel","uncanny-automator")} </uas-button> <uas-button slot="primary-action" ?disabled=${!this.selectedType} @click=${this.handleConfirm} > ${(0,lX.__)("Confirm","uncanny-automator")} </uas-button> </uas-dialog> `}handleSelect(e){this.selectedType=e,lw({element:this,eventName:"uap.f.recipe-builder.type-selector.selected",data:{recipeType:e},schema:esh,options:{bubbles:!0,composed:!0}})}};esb([l0({type:Number,attribute:"recipe-id"})],esw.prototype,"recipeID",void 0),esb([l2()],esw.prototype,"selectedType",void 0),esw=esb([lJ("uap-f-recipe-builder-type-selector")],esw);class esx{constructor(){this.hasBanner&&rK(this.$firstStepButtons.positive)&&rK(this.$firstStepButtons.negative)&&(this.listenFirstStep(),this.listenCloseButtons())}listenFirstStep(){this.$firstStepButtons.positive.addEventListener("click",()=>{this.showSecondStep("positive")}),this.$firstStepButtons.negative.addEventListener("click",()=>{this.showSecondStep("negative")})}listenCloseButtons(){[this.$banner,...Object.values(this.$secondStepBanners)].forEach(e=>{rK(e)&&e.querySelectorAll('[data-action="hide-banner-on-click"]').forEach(e=>{e.addEventListener("click",()=>{rK(e.dataset.track)&&this.trackReviewData(e.dataset.track),e.closest(".notice").style.display="none"})})})}showSecondStep(e){rK(this.$secondStepBanners[e])&&setTimeout(()=>{this.$secondStepBanners[e].style.display="block"},150)}trackReviewData(e){this.bannerKey&&e&&BZ()({path:"/uap/v2/track-review/",method:"POST",data:{banner:this.bannerKey,event:e}}).catch(e=>{console.error("Error sending review data",e)})}get $secondStepBanners(){return{positive:document.getElementById("uap-review-banner-positive"),negative:document.getElementById("uap-review-banner-negative")}}get $firstStepButtons(){return{positive:document.getElementById("uap-review-banner-btn-positive"),negative:document.getElementById("uap-review-banner-btn-negative")}}get hasBanner(){return rK(this.$banner)}get $banner(){return document.getElementById("uap-review-banner")}get bannerKey(){return!!(rK(this.$banner)&&rK(this.$banner.dataset.banner))&&this.$banner.dataset.banner}}U7()(()=>{new esx}),e2="u">typeof UncannyAutomator?UncannyAutomator.utm:void 0,e6={source:e2?.source??"plugin-lite",referrer:e2?.referrer??null},r1={...r1,...rX.parse(e6)},window._uo={utility:{confirm:lp,createSnackbar:ly,isDefined:rK,isEmpty:rY,sprintf:lX.sprintf}}})()})();
Save File
Cancel