@kubex/zinc 1.1.168 → 1.1.170

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/zn.min.js CHANGED
@@ -1,8 +1,8 @@
1
- import{a as Hn,b as X3,c as kr,d as c,e as V}from"./chunks/zn.UBLZO6CI.js";var am=Hn((Ql,om)=>{(function(o,i){typeof Ql=="object"&&typeof om=="object"?om.exports=i():typeof define=="function"&&define.amd?define([],i):typeof Ql=="object"?Ql.AirDatepicker=i():o.AirDatepicker=i()})(Ql,(function(){return(function(){"use strict";var o={d:function(P,x){for(var T in x)o.o(x,T)&&!o.o(P,T)&&Object.defineProperty(P,T,{enumerable:!0,get:x[T]})},o:function(P,x){return Object.prototype.hasOwnProperty.call(P,x)}},i={};o.d(i,{default:function(){return se}});var t={days:"days",months:"months",years:"years",day:"day",month:"month",year:"year",eventChangeViewDate:"changeViewDate",eventChangeCurrentView:"changeCurrentView",eventChangeFocusDate:"changeFocusDate",eventChangeSelectedDate:"changeSelectedDate",eventChangeTime:"changeTime",eventChangeLastSelectedDate:"changeLastSelectedDate",actionSelectDate:"selectDate",actionUnselectDate:"unselectDate",cssClassWeekend:"-weekend-"},r={classes:"",inline:!1,locale:{days:["\u0412\u043E\u0441\u043A\u0440\u0435\u0441\u0435\u043D\u044C\u0435","\u041F\u043E\u043D\u0435\u0434\u0435\u043B\u044C\u043D\u0438\u043A","\u0412\u0442\u043E\u0440\u043D\u0438\u043A","\u0421\u0440\u0435\u0434\u0430","\u0427\u0435\u0442\u0432\u0435\u0440\u0433","\u041F\u044F\u0442\u043D\u0438\u0446\u0430","\u0421\u0443\u0431\u0431\u043E\u0442\u0430"],daysShort:["\u0412\u043E\u0441","\u041F\u043E\u043D","\u0412\u0442\u043E","\u0421\u0440\u0435","\u0427\u0435\u0442","\u041F\u044F\u0442","\u0421\u0443\u0431"],daysMin:["\u0412\u0441","\u041F\u043D","\u0412\u0442","\u0421\u0440","\u0427\u0442","\u041F\u0442","\u0421\u0431"],months:["\u042F\u043D\u0432\u0430\u0440\u044C","\u0424\u0435\u0432\u0440\u0430\u043B\u044C","\u041C\u0430\u0440\u0442","\u0410\u043F\u0440\u0435\u043B\u044C","\u041C\u0430\u0439","\u0418\u044E\u043D\u044C","\u0418\u044E\u043B\u044C","\u0410\u0432\u0433\u0443\u0441\u0442","\u0421\u0435\u043D\u0442\u044F\u0431\u0440\u044C","\u041E\u043A\u0442\u044F\u0431\u0440\u044C","\u041D\u043E\u044F\u0431\u0440\u044C","\u0414\u0435\u043A\u0430\u0431\u0440\u044C"],monthsShort:["\u042F\u043D\u0432","\u0424\u0435\u0432","\u041C\u0430\u0440","\u0410\u043F\u0440","\u041C\u0430\u0439","\u0418\u044E\u043D","\u0418\u044E\u043B","\u0410\u0432\u0433","\u0421\u0435\u043D","\u041E\u043A\u0442","\u041D\u043E\u044F","\u0414\u0435\u043A"],today:"\u0421\u0435\u0433\u043E\u0434\u043D\u044F",clear:"\u041E\u0447\u0438\u0441\u0442\u0438\u0442\u044C",dateFormat:"dd.MM.yyyy",timeFormat:"HH:mm",firstDay:1},startDate:new Date,firstDay:"",weekends:[6,0],dateFormat:"",altField:"",altFieldDateFormat:"T",toggleSelected:!0,keyboardNav:!0,selectedDates:!1,container:"",isMobile:!1,visible:!1,position:"bottom left",offset:12,view:t.days,minView:t.days,showOtherMonths:!0,selectOtherMonths:!0,moveToOtherMonthsOnSelect:!0,showOtherYears:!0,selectOtherYears:!0,moveToOtherYearsOnSelect:!0,minDate:"",maxDate:"",disableNavWhenOutOfRange:!0,multipleDates:!1,multipleDatesSeparator:", ",range:!1,dynamicRange:!0,buttons:!1,monthsField:"monthsShort",showEvent:"focus",autoClose:!1,fixedHeight:!1,prevHtml:'<svg><path d="M 17,12 l -5,5 l 5,5"></path></svg>',nextHtml:'<svg><path d="M 14,12 l 5,5 l -5,5"></path></svg>',navTitles:{days:"MMMM, <i>yyyy</i>",months:"yyyy",years:"yyyy1 - yyyy2"},timepicker:!1,onlyTimepicker:!1,dateTimeSeparator:" ",timeFormat:"",minHours:0,maxHours:24,minMinutes:0,maxMinutes:59,hoursStep:1,minutesStep:1,onSelect:!1,onChangeViewDate:!1,onChangeView:!1,onRenderCell:!1,onShow:!1,onHide:!1,onClickDayName:!1};function n(P){let x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:document;return typeof P=="string"?x.querySelector(P):P}function a(){let{tagName:P="div",className:x="",innerHtml:T="",id:w="",attrs:D={}}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},q=document.createElement(P);return x&&q.classList.add(...x.split(" ")),w&&(q.id=w),T&&(q.innerHTML=T),D&&s(q,D),q}function s(P,x){for(let[T,w]of Object.entries(x))w!==void 0&&P.setAttribute(T,w);return P}function l(P){return new Date(P.getFullYear(),P.getMonth()+1,0).getDate()}function d(P){let x=P.getHours(),{hours:T,dayPeriod:w}=h(x);return{year:P.getFullYear(),month:P.getMonth(),fullMonth:P.getMonth()+1<10?"0"+(P.getMonth()+1):P.getMonth()+1,date:P.getDate(),fullDate:P.getDate()<10?"0"+P.getDate():P.getDate(),day:P.getDay(),hours:x,fullHours:m(x),hours12:T,dayPeriod:w,fullHours12:m(T),minutes:P.getMinutes(),fullMinutes:P.getMinutes()<10?"0"+P.getMinutes():P.getMinutes()}}function h(P){return{dayPeriod:P>11?"pm":"am",hours:P%12==0?12:P%12}}function m(P){return P<10?"0"+P:P}function f(P){let x=10*Math.floor(P.getFullYear()/10);return[x,x+9]}function b(){let P=[];for(var x=arguments.length,T=new Array(x),w=0;w<x;w++)T[w]=arguments[w];return T.forEach((D=>{if(typeof D=="object")for(let q in D)D[q]&&P.push(q);else D&&P.push(D)})),P.join(" ")}function g(P,x){let T=arguments.length>2&&arguments[2]!==void 0?arguments[2]:t.days;if(!P||!x)return!1;let w=d(P),D=d(x);return{[t.days]:w.date===D.date&&w.month===D.month&&w.year===D.year,[t.months]:w.month===D.month&&w.year===D.year,[t.years]:w.year===D.year}[T]}function v(P,x,T){let w=z(P,!1).getTime(),D=z(x,!1).getTime();return T?w>=D:w>D}function y(P,x){return!v(P,x,!0)}function z(P){let x=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1],T=new Date(P.getTime());return typeof x!="boolean"||x||(function(w){w.setHours(0,0,0,0)})(T),T}function E(P,x,T){P.length?P.forEach((w=>{w.addEventListener(x,T)})):P.addEventListener(x,T)}function N(P,x){return!(!P||P===document||P instanceof DocumentFragment)&&(P.matches(x)?P:N(P.parentNode,x))}function U(P,x,T){return P>T?T:P<x?x:P}function R(P){for(var x=arguments.length,T=new Array(x>1?x-1:0),w=1;w<x;w++)T[w-1]=arguments[w];return T.filter((D=>D)).forEach((D=>{for(let[q,A]of Object.entries(D))if(A!==void 0&&A.toString()==="[object Object]"){let H=P[q]!==void 0?P[q].toString():void 0,j=A.toString(),Q=Array.isArray(A)?[]:{};P[q]=P[q]?H!==j?Q:P[q]:Q,R(P[q],A)}else P[q]=A})),P}function C(P){let x=P;return P instanceof Date||(typeof P=="string"&&/^\d{4}-\d{2}-\d{2}$/.test(P)&&(P+="T00:00:00"),x=new Date(P)),isNaN(x.getTime())&&(console.log(`Unable to convert value "${P}" to Date object`),x=!1),x}function $(P){let x="\\s|\\.|-|/|\\\\|,|\\$|\\!|\\?|:|;";return new RegExp("(^|>|"+x+")("+P+")($|<|"+x+")","g")}function L(P,x,T){return(x=(function(w){var D=(function(q,A){if(typeof q!="object"||q===null)return q;var H=q[Symbol.toPrimitive];if(H!==void 0){var j=H.call(q,"string");if(typeof j!="object")return j;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(q)})(w);return typeof D=="symbol"?D:String(D)})(x))in P?Object.defineProperty(P,x,{value:T,enumerable:!0,configurable:!0,writable:!0}):P[x]=T,P}class K{constructor(){let{type:x,date:T,dp:w,opts:D,body:q}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};L(this,"focus",(()=>{this.$cell.classList.add("-focus-"),this.focused=!0})),L(this,"removeFocus",(()=>{this.$cell.classList.remove("-focus-"),this.focused=!1})),L(this,"select",(()=>{this.$cell.classList.add("-selected-"),this.selected=!0})),L(this,"removeSelect",(()=>{this.$cell.classList.remove("-selected-","-range-from-","-range-to-"),this.selected=!1})),L(this,"onChangeSelectedDate",(()=>{this.isDisabled||(this._handleSelectedStatus(),this.opts.range&&this._handleRangeStatus())})),L(this,"onChangeFocusDate",(A=>{if(!A)return void(this.focused&&this.removeFocus());let H=g(A,this.date,this.type);H?this.focus():!H&&this.focused&&this.removeFocus(),this.opts.range&&this._handleRangeStatus()})),L(this,"render",(()=>(this.$cell.innerHTML=this._getHtml(),this._handleClasses(),this.$cell))),this.type=x,this.singleType=this.type.slice(0,-1),this.date=T,this.dp=w,this.opts=D,this.body=q,this.customData=!1,this.init()}init(){var x,T;let{onRenderCell:w}=this.opts;w&&(this.customData=w({date:this.date,cellType:this.singleType,datepicker:this.dp})),this._createElement(),this._bindDatepickerEvents(),(x=this.customData)!==null&&x!==void 0&&x.disabled?this.dp.disableDate(this.date):((T=this.customData)===null||T===void 0?void 0:T.disabled)===!1&&this.dp.enableDate(this.date)}_bindDatepickerEvents(){this.dp.on(t.eventChangeSelectedDate,this.onChangeSelectedDate),this.dp.on(t.eventChangeFocusDate,this.onChangeFocusDate)}unbindDatepickerEvents(){this.dp.off(t.eventChangeSelectedDate,this.onChangeSelectedDate),this.dp.off(t.eventChangeFocusDate,this.onChangeFocusDate)}_createElement(){var x;let{year:T,month:w,fullMonth:D,date:q,fullDate:A}=d(this.date),H=((x=this.customData)===null||x===void 0?void 0:x.attrs)||{};this.$cell=a({attrs:{"data-year":T,"data-month":w,"data-date":q,"data-iso-date":`${T}-${D}-${A}`,...H}}),this.$cell.adpCell=this}_getClassName(){var x;let T=new Date,{selectOtherMonths:w,selectOtherYears:D}=this.opts,{minDate:q,maxDate:A,isDateDisabled:H}=this.dp,{day:j}=d(this.date),Q=this._isOutOfMinMaxRange(),ie=H(this.date),te=b("air-datepicker-cell",`-${this.singleType}-`,{"-current-":g(T,this.date,this.type),"-min-date-":q&&g(q,this.date,this.type),"-max-date-":A&&g(A,this.date,this.type)}),le="";switch(this.type){case t.days:le=b({"-weekend-":this.dp.isWeekend(j),"-other-month-":this.isOtherMonth,"-disabled-":this.isOtherMonth&&!w||Q||ie});break;case t.months:le=b({"-disabled-":Q});break;case t.years:le=b({"-other-decade-":this.isOtherDecade,"-disabled-":Q||this.isOtherDecade&&!D})}return b(te,le,(x=this.customData)===null||x===void 0?void 0:x.classes).split(" ")}_getHtml(){var x;let{year:T,month:w,date:D}=d(this.date),{showOtherMonths:q,showOtherYears:A}=this.opts;if((x=this.customData)!==null&&x!==void 0&&x.html)return this.customData.html;switch(this.type){case t.days:return!q&&this.isOtherMonth?"":D;case t.months:return this.dp.locale[this.opts.monthsField][w];case t.years:return!A&&this.isOtherDecade?"":T}}_isOutOfMinMaxRange(){let{minDate:x,maxDate:T}=this.dp,{type:w,date:D}=this,{month:q,year:A,date:H}=d(D),j=w===t.days,Q=w===t.years,ie=!!x&&new Date(A,Q?x.getMonth():q,j?H:x.getDate()),te=!!T&&new Date(A,Q?T.getMonth():q,j?H:T.getDate());return x&&T?y(ie,x)||v(te,T):x?y(ie,x):T?v(te,T):void 0}destroy(){this.unbindDatepickerEvents()}_handleRangeStatus(){let{selectedDates:x,focusDate:T,rangeDateTo:w,rangeDateFrom:D}=this.dp,q=x.length;if(this.$cell.classList.remove("-range-from-","-range-to-","-in-range-"),!q)return;let A=D,H=w;if(q===1&&T){let le=v(T,x[0]);A=le?x[0]:T,H=le?T:x[0]}let j=b({"-in-range-":A&&H&&(Q=this.date,ie=A,te=H,v(Q,ie)&&y(Q,te)),"-range-from-":A&&g(this.date,A,this.type),"-range-to-":H&&g(this.date,H,this.type)});var Q,ie,te;j&&this.$cell.classList.add(...j.split(" "))}_handleSelectedStatus(){let x=this.dp._checkIfDateIsSelected(this.date,this.type);x?this.select():!x&&this.selected&&this.removeSelect()}_handleInitialFocusStatus(){g(this.dp.focusDate,this.date,this.type)&&this.focus()}_handleClasses(){this.$cell.setAttribute("class",""),this._handleInitialFocusStatus(),this.dp.hasSelectedDates&&(this._handleSelectedStatus(),this.dp.opts.range&&this._handleRangeStatus()),this.$cell.classList.add(...this._getClassName())}get isDisabled(){return this.$cell.matches(".-disabled-")}get isOtherMonth(){return this.dp.isOtherMonth(this.date)}get isOtherDecade(){return this.dp.isOtherDecade(this.date)}}function ne(P,x,T){return(x=(function(w){var D=(function(q,A){if(typeof q!="object"||q===null)return q;var H=q[Symbol.toPrimitive];if(H!==void 0){var j=H.call(q,"string");if(typeof j!="object")return j;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(q)})(w);return typeof D=="symbol"?D:String(D)})(x))in P?Object.defineProperty(P,x,{value:T,enumerable:!0,configurable:!0,writable:!0}):P[x]=T,P}let we={[t.days]:`<div class="air-datepicker-body--day-names"></div><div class="air-datepicker-body--cells -${t.days}-"></div>`,[t.months]:`<div class="air-datepicker-body--cells -${t.months}-"></div>`,[t.years]:`<div class="air-datepicker-body--cells -${t.years}-"></div>`},De=".air-datepicker-cell";class Pe{constructor(x){let{dp:T,type:w,opts:D}=x;ne(this,"handleClick",(q=>{let A=q.target.closest(De).adpCell;if(A.isDisabled)return;if(!this.dp.isMinViewReached)return void this.dp.down();let H=this.dp._checkIfDateIsSelected(A.date,A.type);H?this.dp._handleAlreadySelectedDates(H,A.date):this.dp.selectDate(A.date)})),ne(this,"handleDayNameClick",(q=>{let A=q.target.getAttribute("data-day-index");this.opts.onClickDayName({dayIndex:Number(A),datepicker:this.dp})})),ne(this,"onChangeCurrentView",(q=>{q!==this.type?this.hide():(this.show(),this.render())})),ne(this,"onMouseOverCell",(q=>{let A=N(q.target,De);this.dp.setFocusDate(!!A&&A.adpCell.date)})),ne(this,"onMouseOutCell",(()=>{this.dp.setFocusDate(!1)})),ne(this,"onClickBody",(q=>{let{onClickDayName:A}=this.opts,H=q.target;H.closest(De)&&this.handleClick(q),A&&H.closest(".air-datepicker-body--day-name")&&this.handleDayNameClick(q)})),ne(this,"onMouseDown",(q=>{this.pressed=!0;let A=N(q.target,De),H=A&&A.adpCell;g(H.date,this.dp.rangeDateFrom)&&(this.rangeFromFocused=!0),g(H.date,this.dp.rangeDateTo)&&(this.rangeToFocused=!0)})),ne(this,"onMouseMove",(q=>{if(!this.pressed||!this.dp.isMinViewReached)return;q.preventDefault();let A=N(q.target,De),H=A&&A.adpCell,{selectedDates:j,rangeDateTo:Q,rangeDateFrom:ie}=this.dp;if(!H||H.isDisabled)return;let{date:te}=H;if(j.length===2){if(this.rangeFromFocused&&!v(te,Q)){let{hours:le,minutes:St}=d(ie);te.setHours(le),te.setMinutes(St),this.dp.rangeDateFrom=te,this.dp.replaceDate(ie,te)}if(this.rangeToFocused&&!y(te,ie)){let{hours:le,minutes:St}=d(Q);te.setHours(le),te.setMinutes(St),this.dp.rangeDateTo=te,this.dp.replaceDate(Q,te)}}})),ne(this,"onMouseUp",(()=>{this.pressed=!1,this.rangeFromFocused=!1,this.rangeToFocused=!1})),ne(this,"onChangeViewDate",((q,A)=>{if(!this.isVisible)return;let H=f(q),j=f(A);switch(this.dp.currentView){case t.days:if(g(q,A,t.months))return;break;case t.months:if(g(q,A,t.years))return;break;case t.years:if(H[0]===j[0]&&H[1]===j[1])return}this.render()})),ne(this,"render",(()=>{this.destroyCells(),this._generateCells(),this.cells.forEach((q=>{this.$cells.appendChild(q.render())}))})),this.dp=T,this.type=w,this.opts=D,this.cells=[],this.$el="",this.pressed=!1,this.isVisible=!0,this.init()}init(){this._buildBaseHtml(),this.type===t.days&&this.renderDayNames(),this.render(),this._bindEvents(),this._bindDatepickerEvents()}_bindEvents(){let{range:x,dynamicRange:T}=this.opts;E(this.$el,"mouseover",this.onMouseOverCell),E(this.$el,"mouseout",this.onMouseOutCell),E(this.$el,"click",this.onClickBody),x&&T&&(E(this.$el,"mousedown",this.onMouseDown),E(this.$el,"mousemove",this.onMouseMove),E(window.document,"mouseup",this.onMouseUp))}_bindDatepickerEvents(){this.dp.on(t.eventChangeViewDate,this.onChangeViewDate),this.dp.on(t.eventChangeCurrentView,this.onChangeCurrentView)}_buildBaseHtml(){this.$el=a({className:`air-datepicker-body -${this.type}-`,innerHtml:we[this.type]}),this.$names=n(".air-datepicker-body--day-names",this.$el),this.$cells=n(".air-datepicker-body--cells",this.$el)}_getDayNamesHtml(){let x=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.dp.locale.firstDay,T="",w=this.dp.isWeekend,{onClickDayName:D}=this.opts,q=x,A=0;for(;A<7;){let H=q%7;T+=`<div class="${b("air-datepicker-body--day-name",{[t.cssClassWeekend]:w(H),"-clickable-":!!D})}" data-day-index='${H}'>${this.dp.locale.daysMin[H]}</div>`,A++,q++}return T}renderDayNames(){this.$names.innerHTML=this._getDayNamesHtml()}_generateCell(x){let{type:T,dp:w,opts:D}=this;return new K({type:T,dp:w,opts:D,date:x,body:this})}_generateCells(){Pe.getDatesFunction(this.type)(this.dp,(x=>{this.cells.push(this._generateCell(x))}))}show(){this.isVisible=!0,this.$el.classList.remove("-hidden-")}hide(){this.isVisible=!1,this.$el.classList.add("-hidden-")}destroyCells(){this.cells.forEach((x=>x.destroy())),this.cells=[],this.$cells.innerHTML=""}destroy(){this.destroyCells(),this.dp.off(t.eventChangeViewDate,this.onChangeViewDate),this.dp.off(t.eventChangeCurrentView,this.onChangeCurrentView)}static getDaysDates(x,T){let{viewDate:w,opts:{fixedHeight:D},locale:{firstDay:q}}=x,A=l(w),{year:H,month:j}=d(w),Q=new Date(H,j,1),ie=new Date(H,j,A),te=Q.getDay()-q,le=6-ie.getDay()+q;te=te<0?te+7:te,le=le>6?le-7:le;let St=(function(ca,ou){let{year:pd,month:Y3,date:Q3}=d(ca);return new Date(pd,Y3,Q3-ou)})(Q,te),Yr=A+te+le,_r=St.getDate(),{year:yn,month:zl}=d(St),sa=0;D&&(Yr=42);let la=[];for(;sa<Yr;){let ca=new Date(yn,zl,_r+sa);T&&T(ca),la.push(ca),sa++}return la}static getMonthsDates(x,T){let{year:w}=x.parsedViewDate,D=0,q=[];for(;D<12;){let A=new Date(w,D);q.push(A),T&&T(A),D++}return q}static getYearsDates(x,T){let w=f(x.viewDate),D=w[0]-1,q=w[1]+1,A=D,H=[];for(;A<=q;){let j=new Date(A,0);H.push(j),T&&T(j),A++}return H}static getDatesFunction(){let x=arguments.length>0&&arguments[0]!==void 0?arguments[0]:t.days;return{[t.days]:Pe.getDaysDates,[t.months]:Pe.getMonthsDates,[t.years]:Pe.getYearsDates}[x]}}function at(P,x,T){return(x=(function(w){var D=(function(q,A){if(typeof q!="object"||q===null)return q;var H=q[Symbol.toPrimitive];if(H!==void 0){var j=H.call(q,"string");if(typeof j!="object")return j;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(q)})(w);return typeof D=="symbol"?D:String(D)})(x))in P?Object.defineProperty(P,x,{value:T,enumerable:!0,configurable:!0,writable:!0}):P[x]=T,P}class tr{constructor(x){let{dp:T,opts:w}=x;at(this,"onClickNav",(D=>{let q=N(D.target,".air-datepicker-nav--action");if(!q)return;let A=q.dataset.action;this.dp[A]()})),at(this,"onChangeViewDate",(()=>{this.render(),this._resetNavStatus(),this.handleNavStatus()})),at(this,"onChangeCurrentView",(()=>{this.render(),this._resetNavStatus(),this.handleNavStatus()})),at(this,"onClickNavTitle",(()=>{this.dp.isFinalView||this.dp.up()})),at(this,"update",(()=>{let{prevHtml:D,nextHtml:q}=this.opts;this.$prev.innerHTML=D,this.$next.innerHTML=q,this._resetNavStatus(),this.render(),this.handleNavStatus()})),at(this,"renderDelay",(()=>{setTimeout(this.render)})),at(this,"render",(()=>{this.$title.innerHTML=this._getTitle(),(function(D,q){for(let A in q)q[A]?D.classList.add(A):D.classList.remove(A)})(this.$title,{"-disabled-":this.dp.isFinalView})})),this.dp=T,this.opts=w,this.init()}init(){this._createElement(),this._buildBaseHtml(),this._defineDOM(),this.render(),this.handleNavStatus(),this._bindEvents(),this._bindDatepickerEvents()}_defineDOM(){this.$title=n(".air-datepicker-nav--title",this.$el),this.$prev=n('[data-action="prev"]',this.$el),this.$next=n('[data-action="next"]',this.$el)}_bindEvents(){this.$el.addEventListener("click",this.onClickNav),this.$title.addEventListener("click",this.onClickNavTitle)}_bindDatepickerEvents(){this.dp.on(t.eventChangeViewDate,this.onChangeViewDate),this.dp.on(t.eventChangeCurrentView,this.onChangeCurrentView),this.isNavIsFunction&&(this.dp.on(t.eventChangeSelectedDate,this.renderDelay),this.dp.opts.timepicker&&this.dp.on(t.eventChangeTime,this.render))}destroy(){this.dp.off(t.eventChangeViewDate,this.onChangeViewDate),this.dp.off(t.eventChangeCurrentView,this.onChangeCurrentView),this.isNavIsFunction&&(this.dp.off(t.eventChangeSelectedDate,this.renderDelay),this.dp.opts.timepicker&&this.dp.off(t.eventChangeTime,this.render))}_createElement(){this.$el=a({tagName:"nav",className:"air-datepicker-nav"})}_getTitle(){let{dp:x,opts:T}=this,w=T.navTitles[x.currentView];return typeof w=="function"?w(x):x.formatDate(x.viewDate,w)}handleNavStatus(){let{disableNavWhenOutOfRange:x}=this.opts,{minDate:T,maxDate:w}=this.dp;if(!T&&!w||!x)return;let{year:D,month:q}=this.dp.parsedViewDate,A=!!T&&d(T),H=!!w&&d(w);switch(this.dp.currentView){case t.days:T&&A.month>=q&&A.year>=D&&this._disableNav("prev"),w&&H.month<=q&&H.year<=D&&this._disableNav("next");break;case t.months:T&&A.year>=D&&this._disableNav("prev"),w&&H.year<=D&&this._disableNav("next");break;case t.years:{let j=f(this.dp.viewDate);T&&A.year>=j[0]&&this._disableNav("prev"),w&&H.year<=j[1]&&this._disableNav("next");break}}}_disableNav(x){n('[data-action="'+x+'"]',this.$el).classList.add("-disabled-")}_resetNavStatus(){(function(x){for(var T=arguments.length,w=new Array(T>1?T-1:0),D=1;D<T;D++)w[D-1]=arguments[D];x.length?x.forEach((q=>{q.classList.remove(...w)})):x.classList.remove(...w)})(this.$el.querySelectorAll(".air-datepicker-nav--action"),"-disabled-")}_buildBaseHtml(){let{prevHtml:x,nextHtml:T}=this.opts;this.$el.innerHTML=`<div class="air-datepicker-nav--action" data-action="prev">${x}</div><div class="air-datepicker-nav--title"></div><div class="air-datepicker-nav--action" data-action="next">${T}</div>`}get isNavIsFunction(){let{navTitles:x}=this.opts;return Object.keys(x).find((T=>typeof x[T]=="function"))}}var Pr={today:{content:P=>P.locale.today,onClick:P=>P.setViewDate(new Date)},clear:{content:P=>P.locale.clear,onClick:P=>P.clear()}};class zr{constructor(x){let{dp:T,opts:w}=x;this.dp=T,this.opts=w,this.init()}init(){this.createElement(),this.render()}createElement(){this.$el=a({className:"air-datepicker-buttons"})}destroy(){this.$el.parentNode.removeChild(this.$el)}clearHtml(){return this.$el.innerHTML="",this}generateButtons(){let{buttons:x}=this.opts;Array.isArray(x)||(x=[x]),x.forEach((T=>{let w=T;typeof T=="string"&&Pr[T]&&(w=Pr[T]);let D=this.createButton(w);w.onClick&&this.attachEventToButton(D,w.onClick),this.$el.appendChild(D)}))}attachEventToButton(x,T){x.addEventListener("click",(()=>{T(this.dp)}))}createButton(x){let{content:T,className:w,tagName:D="button",attrs:q={}}=x;return a({tagName:D,innerHtml:`<span tabindex='-1'>${typeof T=="function"?T(this.dp):T}</span>`,className:b("air-datepicker-button",w),attrs:q})}render(){this.generateButtons()}}function Nt(P,x,T){return(x=(function(w){var D=(function(q,A){if(typeof q!="object"||q===null)return q;var H=q[Symbol.toPrimitive];if(H!==void 0){var j=H.call(q,"string");if(typeof j!="object")return j;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(q)})(w);return typeof D=="symbol"?D:String(D)})(x))in P?Object.defineProperty(P,x,{value:T,enumerable:!0,configurable:!0,writable:!0}):P[x]=T,P}class rr{constructor(){let{opts:x,dp:T}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Nt(this,"toggleTimepickerIsActive",(D=>{this.dp.timepickerIsActive=D})),Nt(this,"onChangeSelectedDate",(D=>{let{date:q,updateTime:A=!1}=D;q&&(this.setMinMaxTime(q),this.setCurrentTime(!!A&&q),this.addTimeToDate(q))})),Nt(this,"onChangeLastSelectedDate",(D=>{D&&(this.setTime(D),this.render())})),Nt(this,"onChangeInputRange",(D=>{let q=D.target;this[q.getAttribute("name")]=q.value,this.updateText(),this.dp.trigger(t.eventChangeTime,{hours:this.hours,minutes:this.minutes})})),Nt(this,"onMouseEnterLeave",(D=>{let q=D.target.getAttribute("name"),A=this.$minutesText;q==="hours"&&(A=this.$hoursText),A.classList.toggle("-focus-")})),Nt(this,"onFocus",(()=>{this.toggleTimepickerIsActive(!0)})),Nt(this,"onBlur",(()=>{this.toggleTimepickerIsActive(!1)})),this.opts=x,this.dp=T;let{timeFormat:w}=this.dp.locale;w&&(w.match($("h"))||w.match($("hh")))&&(this.ampm=!0),this.init()}init(){this.setTime(this.dp.lastSelectedDate||this.dp.viewDate),this.createElement(),this.buildHtml(),this.defineDOM(),this.render(),this.bindDatepickerEvents(),this.bindDOMEvents()}bindDatepickerEvents(){this.dp.on(t.eventChangeSelectedDate,this.onChangeSelectedDate),this.dp.on(t.eventChangeLastSelectedDate,this.onChangeLastSelectedDate)}bindDOMEvents(){let x="input";navigator.userAgent.match(/trident/gi)&&(x="change"),E(this.$ranges,x,this.onChangeInputRange),E(this.$ranges,"mouseenter",this.onMouseEnterLeave),E(this.$ranges,"mouseleave",this.onMouseEnterLeave),E(this.$ranges,"focus",this.onFocus),E(this.$ranges,"mousedown",this.onFocus),E(this.$ranges,"blur",this.onBlur)}createElement(){this.$el=a({className:b("air-datepicker-time",{"-am-pm-":this.dp.ampm})})}destroy(){this.dp.off(t.eventChangeSelectedDate,this.onChangeSelectedDate),this.dp.off(t.eventChangeLastSelectedDate,this.onChangeLastSelectedDate),this.$el.parentNode.removeChild(this.$el)}buildHtml(){let{ampm:x,hours:T,displayHours:w,minutes:D,minHours:q,minMinutes:A,maxHours:H,maxMinutes:j,dayPeriod:Q,opts:{hoursStep:ie,minutesStep:te}}=this;this.$el.innerHTML=`<div class="air-datepicker-time--current"> <span class="air-datepicker-time--current-hours">${m(w)}</span> <span class="air-datepicker-time--current-colon">:</span> <span class="air-datepicker-time--current-minutes">${m(D)}</span> `+(x?`<span class='air-datepicker-time--current-ampm'>${Q}</span>`:"")+`</div><div class="air-datepicker-time--sliders"> <div class="air-datepicker-time--row"> <input type="range" name="hours" value="${T}" min="${q}" max="${H}" step="${ie}"/> </div> <div class="air-datepicker-time--row"> <input type="range" name="minutes" value="${D}" min="${A}" max="${j}" step="${te}"/> </div></div>`}defineDOM(){let x=T=>n(T,this.$el);this.$ranges=this.$el.querySelectorAll('[type="range"]'),this.$hours=x('[name="hours"]'),this.$minutes=x('[name="minutes"]'),this.$hoursText=x(".air-datepicker-time--current-hours"),this.$minutesText=x(".air-datepicker-time--current-minutes"),this.$ampm=x(".air-datepicker-time--current-ampm")}setTime(x){this.setMinMaxTime(x),this.setCurrentTime(x)}addTimeToDate(x){x&&(x.setHours(this.hours),x.setMinutes(this.minutes))}setMinMaxTime(x){if(this.setMinMaxTimeFromOptions(),x){let{minDate:T,maxDate:w}=this.dp;T&&g(x,T)&&this.setMinTimeFromMinDate(T),w&&g(x,w)&&this.setMaxTimeFromMaxDate(w)}}setCurrentTime(x){let{hours:T,minutes:w}=x?d(x):this;this.hours=U(T,this.minHours,this.maxHours),this.minutes=U(w,this.minMinutes,this.maxMinutes)}setMinMaxTimeFromOptions(){let{minHours:x,minMinutes:T,maxHours:w,maxMinutes:D}=this.opts;this.minHours=U(x,0,23),this.minMinutes=U(T,0,59),this.maxHours=U(w,0,23),this.maxMinutes=U(D,0,59)}setMinTimeFromMinDate(x){let{lastSelectedDate:T}=this.dp;this.minHours=x.getHours(),T&&T.getHours()>x.getHours()?this.minMinutes=this.opts.minMinutes:this.minMinutes=x.getMinutes()}setMaxTimeFromMaxDate(x){let{lastSelectedDate:T}=this.dp;this.maxHours=x.getHours(),T&&T.getHours()<x.getHours()?this.maxMinutes=this.opts.maxMinutes:this.maxMinutes=x.getMinutes()}updateSliders(){s(this.$hours,{min:this.minHours,max:this.maxHours}).value=this.hours,s(this.$minutes,{min:this.minMinutes,max:this.maxMinutes}).value=this.minutes}updateText(){this.$hoursText.innerHTML=m(this.displayHours),this.$minutesText.innerHTML=m(this.minutes),this.ampm&&(this.$ampm.innerHTML=this.dayPeriod)}set hours(x){this._hours=x;let{hours:T,dayPeriod:w}=h(x);this.displayHours=this.ampm?T:x,this.dayPeriod=w}get hours(){return this._hours}render(){this.updateSliders(),this.updateText()}}function Lt(P,x,T){return(x=(function(w){var D=(function(q,A){if(typeof q!="object"||q===null)return q;var H=q[Symbol.toPrimitive];if(H!==void 0){var j=H.call(q,"string");if(typeof j!="object")return j;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(q)})(w);return typeof D=="symbol"?D:String(D)})(x))in P?Object.defineProperty(P,x,{value:T,enumerable:!0,configurable:!0,writable:!0}):P[x]=T,P}class mo{constructor(x){let{dp:T,opts:w}=x;Lt(this,"pressedKeys",new Set),Lt(this,"hotKeys",new Map([[[["Control","ArrowRight"],["Control","ArrowUp"]],D=>D.month++],[[["Control","ArrowLeft"],["Control","ArrowDown"]],D=>D.month--],[[["Shift","ArrowRight"],["Shift","ArrowUp"]],D=>D.year++],[[["Shift","ArrowLeft"],["Shift","ArrowDown"]],D=>D.year--],[[["Alt","ArrowRight"],["Alt","ArrowUp"]],D=>D.year+=10],[[["Alt","ArrowLeft"],["Alt","ArrowDown"]],D=>D.year-=10],[["Control","Shift","ArrowUp"],(D,q)=>q.up()]])),Lt(this,"handleHotKey",(D=>{let q=this.hotKeys.get(D),A=d(this.getInitialFocusDate());q(A,this.dp);let{year:H,month:j,date:Q}=A,ie=l(new Date(H,j));ie<Q&&(Q=ie);let te=this.dp.getClampedDate(new Date(H,j,Q));this.dp.setFocusDate(te,{viewDateTransition:!0})})),Lt(this,"isHotKeyPressed",(()=>{let D=!1,q=this.pressedKeys.size,A=H=>this.pressedKeys.has(H);for(let[H]of this.hotKeys){if(D)break;if(Array.isArray(H[0]))H.forEach((j=>{D||q!==j.length||(D=j.every(A)&&H)}));else{if(q!==H.length)continue;D=H.every(A)&&H}}return D})),Lt(this,"isArrow",(D=>D>=37&&D<=40)),Lt(this,"onKeyDown",(D=>{if(!this.dp.visible&&!this.dp.treatAsInline)return;let{key:q,which:A}=D,{dp:H,dp:{focusDate:j},opts:Q}=this;this.registerKey(q);let ie=this.isHotKeyPressed();if(ie)return D.preventDefault(),void this.handleHotKey(ie);if(this.isArrow(A))return D.preventDefault(),void this.focusNextCell(q);if(q==="Enter"){if(H.currentView!==Q.minView)return void H.down();if(j){let te=H._checkIfDateIsSelected(j);return void(te?H._handleAlreadySelectedDates(te,j):H.selectDate(j))}}q==="Escape"&&this.dp.hide()})),Lt(this,"onKeyUp",(D=>{this.removeKey(D.key)})),this.dp=T,this.opts=w,this.init()}init(){this.bindKeyboardEvents()}bindKeyboardEvents(){let{$el:x}=this.dp;x.addEventListener("keydown",this.onKeyDown),x.addEventListener("keyup",this.onKeyUp)}destroy(){let{$el:x}=this.dp;x.removeEventListener("keydown",this.onKeyDown),x.removeEventListener("keyup",this.onKeyUp),this.hotKeys=null,this.pressedKeys=null}getInitialFocusDate(){let{focusDate:x,currentView:T,selectedDates:w,parsedViewDate:{year:D,month:q}}=this.dp,A=x||w[w.length-1];if(!A)switch(T){case t.days:A=new Date(D,q,new Date().getDate());break;case t.months:A=new Date(D,q,1);break;case t.years:A=new Date(D,0,1)}return A}focusNextCell(x){let T=this.getInitialFocusDate(),{currentView:w}=this.dp,{days:D,months:q,years:A}=t,H=d(T),j=H.year,Q=H.month,ie=H.date;switch(x){case"ArrowLeft":w===D&&(ie-=1),w===q&&(Q-=1),w===A&&(j-=1);break;case"ArrowUp":w===D&&(ie-=7),w===q&&(Q-=3),w===A&&(j-=4);break;case"ArrowRight":w===D&&(ie+=1),w===q&&(Q+=1),w===A&&(j+=1);break;case"ArrowDown":w===D&&(ie+=7),w===q&&(Q+=3),w===A&&(j+=4)}let te=this.dp.getClampedDate(new Date(j,Q,ie));this.dp.setFocusDate(te,{viewDateTransition:!0})}registerKey(x){this.pressedKeys.add(x)}removeKey(x){this.pressedKeys.delete(x)}}let Ja={on(P,x){this.__events||(this.__events={}),this.__events[P]?this.__events[P].push(x):this.__events[P]=[x]},off(P,x){this.__events&&this.__events[P]&&(this.__events[P]=this.__events[P].filter((T=>T!==x)))},removeAllEvents(){this.__events={}},trigger(P){for(var x=arguments.length,T=new Array(x>1?x-1:0),w=1;w<x;w++)T[w-1]=arguments[w];this.__events&&this.__events[P]&&this.__events[P].forEach((D=>{D(...T)}))}};function ue(P,x,T){return(x=(function(w){var D=(function(q,A){if(typeof q!="object"||q===null)return q;var H=q[Symbol.toPrimitive];if(H!==void 0){var j=H.call(q,"string");if(typeof j!="object")return j;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(q)})(w);return typeof D=="symbol"?D:String(D)})(x))in P?Object.defineProperty(P,x,{value:T,enumerable:!0,configurable:!0,writable:!0}):P[x]=T,P}let Qi="",Xi="",he=!1;class se{static buildGlobalContainer(x){he=!0,Qi=a({className:x,id:x}),n("body").appendChild(Qi)}constructor(x,T){var w=this;if(ue(this,"viewIndexes",[t.days,t.months,t.years]),ue(this,"next",(()=>{let{year:A,month:H}=this.parsedViewDate;switch(this.currentView){case t.days:this.setViewDate(new Date(A,H+1,1));break;case t.months:this.setViewDate(new Date(A+1,H,1));break;case t.years:this.setViewDate(new Date(A+10,0,1))}})),ue(this,"prev",(()=>{let{year:A,month:H}=this.parsedViewDate;switch(this.currentView){case t.days:this.setViewDate(new Date(A,H-1,1));break;case t.months:this.setViewDate(new Date(A-1,H,1));break;case t.years:this.setViewDate(new Date(A-10,0,1))}})),ue(this,"_finishHide",(()=>{this.hideAnimation=!1,this._destroyComponents(),this.$container.removeChild(this.$datepicker)})),ue(this,"setPosition",(function(A){let H=arguments.length>1&&arguments[1]!==void 0&&arguments[1];if(typeof(A=A||w.opts.position)=="function")return void(w.customHide=A({$datepicker:w.$datepicker,$target:w.$el,$pointer:w.$pointer,isViewChange:H,done:w._finishHide}));let j,Q,{isMobile:ie}=w.opts,te=w.$el.getBoundingClientRect(),le=w.$el.getBoundingClientRect(),St=w.$datepicker.offsetParent,Yr=w.$el.offsetParent,_r=w.$datepicker.getBoundingClientRect(),yn=A.split(" "),zl=window.scrollY,sa=window.scrollX,la=w.opts.offset,ca=yn[0],ou=yn[1];if(ie)w.$datepicker.style.cssText="left: 50%; top: 50%";else{if(St===Yr&&St!==document.body&&(le={top:w.$el.offsetTop,left:w.$el.offsetLeft,width:te.width,height:w.$el.offsetHeight},zl=0,sa=0),St!==Yr&&St!==document.body){let pd=St.getBoundingClientRect();le={top:te.top-pd.top,left:te.left-pd.left,width:te.width,height:te.height},zl=0,sa=0}switch(ca){case"top":j=le.top-_r.height-la;break;case"right":Q=le.left+le.width+la;break;case"bottom":j=le.top+le.height+la;break;case"left":Q=le.left-_r.width-la}switch(ou){case"top":j=le.top;break;case"right":Q=le.left+le.width-_r.width;break;case"bottom":j=le.top+le.height-_r.height;break;case"left":Q=le.left;break;case"center":/left|right/.test(ca)?j=le.top+le.height/2-_r.height/2:Q=le.left+le.width/2-_r.width/2}w.$datepicker.style.cssText=`left: ${Q+sa}px; top: ${j+zl}px`}})),ue(this,"_setInputValue",(()=>{let{opts:A,$altField:H,locale:{dateFormat:j}}=this,{altFieldDateFormat:Q,altField:ie}=A;ie&&H&&(H.value=this._getInputValue(Q)),this.$el.value=this._getInputValue(j),this.$el.dispatchEvent(new Event("change"))})),ue(this,"_getInputValue",(A=>{let{selectedDates:H,opts:j}=this,{multipleDates:Q,multipleDatesSeparator:ie}=j;if(!H.length)return"";let te=typeof A=="function",le=te?A(Q?H:H[0]):H.map((St=>this.formatDate(St,A)));return le=te?le:le.join(ie),le})),ue(this,"_checkIfDateIsSelected",(function(A){let H=arguments.length>1&&arguments[1]!==void 0?arguments[1]:t.days,j=!1;return w.selectedDates.some((Q=>{let ie=g(A,Q,H);return j=ie&&Q,ie})),j})),ue(this,"_scheduleCallAfterTransition",(A=>{this._cancelScheduledCall(),A&&A(!1),this._onTransitionEnd=()=>{A&&A(!0)},this.$datepicker.addEventListener("transitionend",this._onTransitionEnd,{once:!0})})),ue(this,"_cancelScheduledCall",(()=>{this.$datepicker.removeEventListener("transitionend",this._onTransitionEnd)})),ue(this,"setViewDate",(A=>{if(!((A=C(A))instanceof Date)||g(A,this.viewDate))return;let H=this.viewDate;this.viewDate=A;let{onChangeViewDate:j}=this.opts;if(j){let{month:Q,year:ie}=this.parsedViewDate;j({month:Q,year:ie,decade:this.curDecade})}this.trigger(t.eventChangeViewDate,A,H)})),ue(this,"setFocusDate",(function(A){let H=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};(!A||(A=C(A))instanceof Date)&&(w.focusDate=A,w.trigger(t.eventChangeFocusDate,A,H))})),ue(this,"setCurrentView",(function(A){let H=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(w.viewIndexes.includes(A)){if(w.currentView=A,w.elIsInput&&w.visible&&w.setPosition(void 0,!0),w.trigger(t.eventChangeCurrentView,A),!w.views[A]){let j=w.views[A]=new Pe({dp:w,opts:w.opts,type:A});w.shouldUpdateDOM&&w.$content.appendChild(j.$el)}w.opts.onChangeView&&!H.silent&&w.opts.onChangeView(A)}})),ue(this,"_updateLastSelectedDate",(A=>{this.lastSelectedDate=A,this.trigger(t.eventChangeLastSelectedDate,A)})),ue(this,"destroy",(()=>{if(this.isDestroyed)return;let{showEvent:A,isMobile:H}=this.opts,j=this.$datepicker.parentNode;j&&j.removeChild(this.$datepicker),this.$el.removeEventListener(A,this._onFocus),this.$el.removeEventListener("blur",this._onBlur),window.removeEventListener("resize",this._onResize),H&&this._removeMobileAttributes(),this.keyboardNav&&this.keyboardNav.destroy(),this.views=null,this.nav=null,this.$datepicker=null,this.opts={},this.$customContainer=null,this.viewDate=null,this.focusDate=null,this.selectedDates=[],this.rangeDateFrom=null,this.rangeDateTo=null,this.isDestroyed=!0})),ue(this,"update",(function(){let A=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},H=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},j=R({},w.opts),{silent:Q}=H;R(w.opts,A);let{timepicker:ie,buttons:te,range:le,selectedDates:St,isMobile:Yr}=w.opts,_r=w.visible||w.treatAsInline;w._createMinMaxDates(),w._limitViewDateByMaxMinDates(),w._handleLocale(),St&&(w.selectedDates=[],w.selectDate(St,{silent:Q})),A.view&&w.setCurrentView(A.view,{silent:Q}),w._setInputValue(),j.range&&!le?(w.rangeDateTo=!1,w.rangeDateFrom=!1):!j.range&&le&&w.selectedDates.length&&(w.rangeDateFrom=w.selectedDates[0],w.rangeDateTo=w.selectedDates[1]),j.timepicker&&!ie?(_r&&w.timepicker.destroy(),w.timepicker=!1,w.$timepicker.parentNode.removeChild(w.$timepicker)):!j.timepicker&&ie&&w._addTimepicker(),!j.buttons&&te?w._addButtons():j.buttons&&!te?(w.buttons.destroy(),w.$buttons.parentNode.removeChild(w.$buttons)):_r&&j.buttons&&te&&w.buttons.clearHtml().render(),!j.isMobile&&Yr?(w.treatAsInline||Xi||w._createMobileOverlay(),w._addMobileAttributes(),w.visible&&w._showMobileOverlay()):j.isMobile&&!Yr&&(w._removeMobileAttributes(),w.visible&&(Xi.classList.remove("-active-"),typeof w.opts.position!="function"&&w.setPosition())),_r&&(w.nav.update(),w.views[w.currentView].render(),w.currentView===t.days&&w.views[w.currentView].renderDayNames())})),ue(this,"disableDate",((A,H)=>{(Array.isArray(A)?A:[A]).forEach((j=>{let Q=C(j);if(!Q)return;let ie=H?"delete":"add";this.disabledDates[ie](this.formatDate(Q,"yyyy-MM-dd"));let te=this.getCell(Q,this.currentViewSingular);te&&te.adpCell.render()}),[])})),ue(this,"enableDate",(A=>{this.disableDate(A,!0)})),ue(this,"isDateDisabled",(A=>{let H=C(A);return this.disabledDates.has(this.formatDate(H,"yyyy-MM-dd"))})),ue(this,"isOtherMonth",(A=>{let{month:H}=d(A);return H!==this.parsedViewDate.month})),ue(this,"isOtherYear",(A=>{let{year:H}=d(A);return H!==this.parsedViewDate.year})),ue(this,"isOtherDecade",(A=>{let{year:H}=d(A),[j,Q]=f(this.viewDate);return H<j||H>Q})),ue(this,"_onChangeSelectedDate",(A=>{let{silent:H}=A;setTimeout((()=>{this._setInputValue(),this.opts.onSelect&&!H&&this._triggerOnSelect()}))})),ue(this,"_onChangeFocusedDate",(function(A){let{viewDateTransition:H}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!A)return;let j=!1;H&&(j=w.isOtherMonth(A)||w.isOtherYear(A)||w.isOtherDecade(A)),j&&w.setViewDate(A),w.opts.onFocus&&w.opts.onFocus({datepicker:w,date:A})})),ue(this,"_onChangeTime",(A=>{let{hours:H,minutes:j}=A,Q=new Date,{lastSelectedDate:ie,opts:{onSelect:te}}=this,le=ie;ie||(le=Q);let St=this.getCell(le,this.currentViewSingular),Yr=St&&St.adpCell;Yr&&Yr.isDisabled||(le.setHours(H),le.setMinutes(j),ie?(this._setInputValue(),te&&this._triggerOnSelect()):this.selectDate(le))})),ue(this,"_onFocus",(A=>{this.visible||this.show()})),ue(this,"_onBlur",(A=>{this.inFocus||!this.visible||this.opts.isMobile||this.hide()})),ue(this,"_onMouseDown",(A=>{this.inFocus=!0})),ue(this,"_onMouseUp",(A=>{this.inFocus=!1,this.$el.focus()})),ue(this,"_onResize",(()=>{this.visible&&typeof this.opts.position!="function"&&this.setPosition()})),ue(this,"_onClickOverlay",(()=>{this.visible&&this.hide()})),ue(this,"getViewDates",(function(){let A=arguments.length>0&&arguments[0]!==void 0?arguments[0]:t.days;return Pe.getDatesFunction(A)(w)})),ue(this,"isWeekend",(A=>this.opts.weekends.includes(A))),ue(this,"getClampedDate",(A=>{let{minDate:H,maxDate:j}=this,Q=A;return j&&v(A,j)?Q=j:H&&y(A,H)&&(Q=H),Q})),this.$el=n(x),!this.$el)return;this.$datepicker=a({className:"air-datepicker"}),this.opts=R({},r,T),this.$customContainer=!!this.opts.container&&n(this.opts.container),this.$altField=n(this.opts.altField||!1);let{view:D,startDate:q}=this.opts;q||(this.opts.startDate=new Date),this.$el.nodeName==="INPUT"&&(this.elIsInput=!0),this.inited=!1,this.visible=!1,this.viewDate=C(this.opts.startDate),this.focusDate=!1,this.initialReadonly=this.$el.getAttribute("readonly"),this.customHide=!1,this.currentView=D,this.selectedDates=[],this.disabledDates=new Set,this.isDestroyed=!1,this.views={},this.keys=[],this.rangeDateFrom="",this.rangeDateTo="",this.timepickerIsActive=!1,this.treatAsInline=this.opts.inline||!this.elIsInput,this.init()}init(){let{opts:x,treatAsInline:T,opts:{inline:w,isMobile:D,selectedDates:q,keyboardNav:A,onlyTimepicker:H}}=this,j=n("body");(!he||he&&Qi&&!j.contains(Qi))&&!w&&this.elIsInput&&!this.$customContainer&&se.buildGlobalContainer(se.defaultGlobalContainerId),!D||Xi||T||this._createMobileOverlay(),this._handleLocale(),this._bindSubEvents(),this._createMinMaxDates(),this._limitViewDateByMaxMinDates(),this.elIsInput&&(w||this._bindEvents(),A&&!H&&(this.keyboardNav=new mo({dp:this,opts:x}))),q&&this.selectDate(q,{silent:!0}),this.opts.visible&&!T&&this.show(),D&&!T&&this.$el.setAttribute("readonly",!0),T&&this._createComponents()}_createMobileOverlay(){Xi=a({className:"air-datepicker-overlay"}),Qi.appendChild(Xi)}_createComponents(){let{opts:x,treatAsInline:T,opts:{inline:w,buttons:D,timepicker:q,position:A,classes:H,onlyTimepicker:j,isMobile:Q}}=this;this._buildBaseHtml(),this.elIsInput&&(w||this._setPositionClasses(A)),!w&&this.elIsInput||this.$datepicker.classList.add("-inline-"),H&&this.$datepicker.classList.add(...H.split(" ")),j&&this.$datepicker.classList.add("-only-timepicker-"),Q&&!T&&this._addMobileAttributes(),this.views[this.currentView]=new Pe({dp:this,type:this.currentView,opts:x}),this.nav=new tr({dp:this,opts:x}),q&&this._addTimepicker(),D&&this._addButtons(),this.$content.appendChild(this.views[this.currentView].$el),this.$nav.appendChild(this.nav.$el)}_destroyComponents(){for(let x in this.views)this.views[x].destroy();this.views={},this.nav.destroy(),this.timepicker&&this.timepicker.destroy()}_addMobileAttributes(){Xi.addEventListener("click",this._onClickOverlay),this.$datepicker.classList.add("-is-mobile-"),this.$el.setAttribute("readonly",!0)}_removeMobileAttributes(){Xi.removeEventListener("click",this._onClickOverlay),this.$datepicker.classList.remove("-is-mobile-"),this.initialReadonly||this.initialReadonly===""||this.$el.removeAttribute("readonly")}_createMinMaxDates(){let{minDate:x,maxDate:T}=this.opts;this.minDate=!!x&&C(x),this.maxDate=!!T&&C(T)}_addTimepicker(){this.$timepicker=a({className:"air-datepicker--time"}),this.$datepicker.appendChild(this.$timepicker),this.timepicker=new rr({dp:this,opts:this.opts}),this.$timepicker.appendChild(this.timepicker.$el)}_addButtons(){this.$buttons=a({className:"air-datepicker--buttons"}),this.$datepicker.appendChild(this.$buttons),this.buttons=new zr({dp:this,opts:this.opts}),this.$buttons.appendChild(this.buttons.$el)}_bindSubEvents(){this.on(t.eventChangeSelectedDate,this._onChangeSelectedDate),this.on(t.eventChangeFocusDate,this._onChangeFocusedDate),this.on(t.eventChangeTime,this._onChangeTime)}_buildBaseHtml(){let{inline:x}=this.opts;var T,w;this.elIsInput?x?(T=this.$datepicker,(w=this.$el).parentNode.insertBefore(T,w.nextSibling)):this.$container.appendChild(this.$datepicker):this.$el.appendChild(this.$datepicker),this.$datepicker.innerHTML='<i class="air-datepicker--pointer"></i><div class="air-datepicker--navigation"></div><div class="air-datepicker--content"></div>',this.$content=n(".air-datepicker--content",this.$datepicker),this.$pointer=n(".air-datepicker--pointer",this.$datepicker),this.$nav=n(".air-datepicker--navigation",this.$datepicker)}_handleLocale(){let{locale:x,dateFormat:T,firstDay:w,timepicker:D,onlyTimepicker:q,timeFormat:A,dateTimeSeparator:H}=this.opts;var j;this.locale=(j=x,JSON.parse(JSON.stringify(j))),T&&(this.locale.dateFormat=T),A!==void 0&&A!==""&&(this.locale.timeFormat=A);let{timeFormat:Q}=this.locale;if(w!==""&&(this.locale.firstDay=w),D&&typeof T!="function"){let ie=Q?H:"";this.locale.dateFormat=[this.locale.dateFormat,Q||""].join(ie)}q&&typeof T!="function"&&(this.locale.dateFormat=this.locale.timeFormat)}_setPositionClasses(x){if(typeof x=="function")return void this.$datepicker.classList.add("-custom-position-");let T=(x=x.split(" "))[0],w=`air-datepicker -${T}-${x[1]}- -from-${T}-`;this.$datepicker.classList.add(...w.split(" "))}_bindEvents(){this.$el.addEventListener(this.opts.showEvent,this._onFocus),this.$el.addEventListener("blur",this._onBlur),this.$datepicker.addEventListener("mousedown",this._onMouseDown),this.$datepicker.addEventListener("mouseup",this._onMouseUp),window.addEventListener("resize",this._onResize)}_limitViewDateByMaxMinDates(){let{viewDate:x,minDate:T,maxDate:w}=this;w&&v(x,w)&&this.setViewDate(w),T&&y(x,T)&&this.setViewDate(T)}formatDate(){let x=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.viewDate,T=arguments.length>1?arguments[1]:void 0;if(x=C(x),!(x instanceof Date))return;let w=T,D=this.locale,q=d(x),A=q.dayPeriod,H=f(x),j=se.replacer,Q={T:x.getTime(),m:q.minutes,mm:q.fullMinutes,h:q.hours12,hh:q.fullHours12,H:q.hours,HH:q.fullHours,aa:A,AA:A.toUpperCase(),E:D.daysShort[q.day],EEEE:D.days[q.day],d:q.date,dd:q.fullDate,M:q.month+1,MM:q.fullMonth,MMM:D.monthsShort[q.month],MMMM:D.months[q.month],yy:q.year.toString().slice(-2),yyyy:q.year,yyyy1:H[0],yyyy2:H[1]};for(let[ie,te]of Object.entries(Q))w=j(w,$(ie),te);return w}down(x){this._handleUpDownActions(x,"down")}up(x){this._handleUpDownActions(x,"up")}selectDate(x){let T,w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{currentView:D,parsedViewDate:q,selectedDates:A}=this,{updateTime:H,silent:j}=w,{moveToOtherMonthsOnSelect:Q,moveToOtherYearsOnSelect:ie,multipleDates:te,range:le,autoClose:St,onBeforeSelect:Yr}=this.opts,_r=A.length;if(Array.isArray(x))return x.forEach((yn=>{this.selectDate(yn,w)})),new Promise((yn=>{setTimeout(yn)}));if((x=C(x))instanceof Date){if(Yr&&!j&&!Yr({date:x,datepicker:this}))return Promise.resolve();if(D===t.days&&x.getMonth()!==q.month&&Q&&(T=new Date(x.getFullYear(),x.getMonth(),1)),D===t.years&&x.getFullYear()!==q.year&&ie&&(T=new Date(x.getFullYear(),0,1)),T&&this.setViewDate(T),te&&!le){if(_r===te)return;this._checkIfDateIsSelected(x)||A.push(x)}else if(le)switch(_r){case 1:A.push(x),this.rangeDateTo||(this.rangeDateTo=x),v(this.rangeDateFrom,this.rangeDateTo)&&(this.rangeDateTo=this.rangeDateFrom,this.rangeDateFrom=x),this.selectedDates=[this.rangeDateFrom,this.rangeDateTo];break;case 2:this.selectedDates=[x],this.rangeDateFrom=x,this.rangeDateTo="";break;default:this.selectedDates=[x],this.rangeDateFrom=x}else this.selectedDates=[x];return this.trigger(t.eventChangeSelectedDate,{action:t.actionSelectDate,silent:w?.silent,date:x,updateTime:H}),this._updateLastSelectedDate(x),St&&!this.timepickerIsActive&&this.visible&&(te||le?le&&_r===1&&this.hide():this.hide()),new Promise((yn=>{setTimeout(yn)}))}}unselectDate(x){let T=this.selectedDates,w=this;if((x=C(x))instanceof Date)return T.some(((D,q)=>{if(g(D,x))return T.splice(q,1),w.selectedDates.length?(w.rangeDateTo="",w.rangeDateFrom=T[0],w._updateLastSelectedDate(w.selectedDates[w.selectedDates.length-1])):(w.rangeDateFrom="",w.rangeDateTo="",w._updateLastSelectedDate(!1)),this.trigger(t.eventChangeSelectedDate,{action:t.actionUnselectDate,date:x}),!0}))}replaceDate(x,T){let w=this.selectedDates.find((q=>g(q,x,this.currentView))),D=this.selectedDates.indexOf(w);D<0||g(this.selectedDates[D],T,this.currentView)||(this.selectedDates[D]=T,this.trigger(t.eventChangeSelectedDate,{action:t.actionSelectDate,date:T,updateTime:!0}),this._updateLastSelectedDate(T))}clear(){let x=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return this.selectedDates=[],this.rangeDateFrom=!1,this.rangeDateTo=!1,this.lastSelectedDate=!1,this.trigger(t.eventChangeSelectedDate,{action:t.actionUnselectDate,silent:x.silent}),new Promise((T=>{setTimeout(T)}))}show(){let{onShow:x,isMobile:T}=this.opts;this._cancelScheduledCall(),this.visible||this.hideAnimation||this._createComponents(),this.setPosition(this.opts.position),this.$datepicker.classList.add("-active-"),this.visible=!0,x&&this._scheduleCallAfterTransition(x),T&&this._showMobileOverlay()}hide(){let{onHide:x,isMobile:T}=this.opts,w=this._hasTransition();this.visible=!1,this.hideAnimation=!0,this.$datepicker.classList.remove("-active-"),this.customHide&&this.customHide(),this.elIsInput&&this.$el.blur(),this._scheduleCallAfterTransition((D=>{!this.customHide&&(D&&w||!D&&!w)&&this._finishHide(),x&&x(D)})),T&&Xi.classList.remove("-active-")}_triggerOnSelect(){let x=[],T=[],{selectedDates:w,locale:D,opts:{onSelect:q,multipleDates:A,range:H}}=this,j=A||H,Q=typeof D.dateFormat=="function";w.length&&(x=w.map(z),T=Q?A?D.dateFormat(x):x.map((ie=>D.dateFormat(ie))):x.map((ie=>this.formatDate(ie,D.dateFormat)))),q({date:j?x:x[0],formattedDate:j?T:T[0],datepicker:this})}_handleAlreadySelectedDates(x,T){let{selectedDates:w,rangeDateFrom:D,rangeDateTo:q}=this,{range:A,toggleSelected:H}=this.opts,j=w.length,Q=typeof H=="function"?H({datepicker:this,date:T}):H,ie=!!(A&&j===1&&x),te=ie?z(T):T;A&&!Q&&(j!==2&&this.selectDate(te),j===2&&g(D,q))||(Q?this.unselectDate(te):this._updateLastSelectedDate(ie?te:x))}_handleUpDownActions(x,T){if(!((x=C(x||this.focusDate||this.viewDate))instanceof Date))return;let w=T==="up"?this.viewIndex+1:this.viewIndex-1;w>2&&(w=2),w<0&&(w=0),this.setViewDate(new Date(x.getFullYear(),x.getMonth(),1)),this.setCurrentView(this.viewIndexes[w])}getCell(x){let T=arguments.length>1&&arguments[1]!==void 0?arguments[1]:t.day;if(!((x=C(x))instanceof Date))return;let{year:w,month:D,date:q}=d(x),A=`[data-year="${w}"]`,H=`[data-month="${D}"]`,j={[t.day]:`${A}${H}[data-date="${q}"]`,[t.month]:`${A}${H}`,[t.year]:`${A}`};return this.views[this.currentView]?this.views[this.currentView].$el.querySelector(j[T]):void 0}_showMobileOverlay(){Xi.classList.add("-active-")}_hasTransition(){return window.getComputedStyle(this.$datepicker).getPropertyValue("transition-duration").split(", ").reduce(((x,T)=>parseFloat(T)+x),0)>0}get shouldUpdateDOM(){return this.visible||this.treatAsInline}get parsedViewDate(){return d(this.viewDate)}get currentViewSingular(){return this.currentView.slice(0,-1)}get curDecade(){return f(this.viewDate)}get viewIndex(){return this.viewIndexes.indexOf(this.currentView)}get isFinalView(){return this.currentView===t.years}get hasSelectedDates(){return this.selectedDates.length>0}get isMinViewReached(){return this.currentView===this.opts.minView||this.currentView===t.days}get $container(){return this.$customContainer||Qi}static replacer(x,T,w){return x.replace(T,(function(D,q,A,H){return q+w+H}))}}var ke;return ue(se,"defaults",r),ue(se,"version","3.6.0"),ue(se,"defaultGlobalContainerId","air-datepicker-global-container"),ke=se.prototype,Object.assign(ke,Ja),i.default})()}))});var py=Hn((toe,dy)=>{var zi=-1,Br=1,Qt=0;function Zl(o,i,t,r,n){if(o===i)return o?[[Qt,o]]:[];if(t!=null){var a=l9(o,i,t);if(a)return a}var s=km(o,i),l=o.substring(0,s);o=o.substring(s),i=i.substring(s),s=hp(o,i);var d=o.substring(o.length-s);o=o.substring(0,o.length-s),i=i.substring(0,i.length-s);var h=e9(o,i);return l&&h.unshift([Qt,l]),d&&h.push([Qt,d]),Sm(h,n),r&&i9(h),h}function e9(o,i){var t;if(!o)return[[Br,i]];if(!i)return[[zi,o]];var r=o.length>i.length?o:i,n=o.length>i.length?i:o,a=r.indexOf(n);if(a!==-1)return t=[[Br,r.substring(0,a)],[Qt,n],[Br,r.substring(a+n.length)]],o.length>i.length&&(t[0][0]=t[2][0]=zi),t;if(n.length===1)return[[zi,o],[Br,i]];var s=r9(o,i);if(s){var l=s[0],d=s[1],h=s[2],m=s[3],f=s[4],b=Zl(l,h),g=Zl(d,m);return b.concat([[Qt,f]],g)}return t9(o,i)}function t9(o,i){for(var t=o.length,r=i.length,n=Math.ceil((t+r)/2),a=n,s=2*n,l=new Array(s),d=new Array(s),h=0;h<s;h++)l[h]=-1,d[h]=-1;l[a+1]=0,d[a+1]=0;for(var m=t-r,f=m%2!==0,b=0,g=0,v=0,y=0,z=0;z<n;z++){for(var E=-z+b;E<=z-g;E+=2){var N=a+E,U;E===-z||E!==z&&l[N-1]<l[N+1]?U=l[N+1]:U=l[N-1]+1;for(var R=U-E;U<t&&R<r&&o.charAt(U)===i.charAt(R);)U++,R++;if(l[N]=U,U>t)g+=2;else if(R>r)b+=2;else if(f){var C=a+m-E;if(C>=0&&C<s&&d[C]!==-1){var $=t-d[C];if(U>=$)return ty(o,i,U,R)}}}for(var L=-z+v;L<=z-y;L+=2){var C=a+L,$;L===-z||L!==z&&d[C-1]<d[C+1]?$=d[C+1]:$=d[C-1]+1;for(var K=$-L;$<t&&K<r&&o.charAt(t-$-1)===i.charAt(r-K-1);)$++,K++;if(d[C]=$,$>t)y+=2;else if(K>r)v+=2;else if(!f){var N=a+m-L;if(N>=0&&N<s&&l[N]!==-1){var U=l[N],R=a+U-N;if($=t-$,U>=$)return ty(o,i,U,R)}}}}return[[zi,o],[Br,i]]}function ty(o,i,t,r){var n=o.substring(0,t),a=i.substring(0,r),s=o.substring(t),l=i.substring(r),d=Zl(n,a),h=Zl(s,l);return d.concat(h)}function km(o,i){if(!o||!i||o.charAt(0)!==i.charAt(0))return 0;for(var t=0,r=Math.min(o.length,i.length),n=r,a=0;t<n;)o.substring(a,n)==i.substring(a,n)?(t=n,a=t):r=n,n=Math.floor((r-t)/2+t);return ay(o.charCodeAt(n-1))&&n--,n}function ry(o,i){var t=o.length,r=i.length;if(t==0||r==0)return 0;t>r?o=o.substring(t-r):t<r&&(i=i.substring(0,t));var n=Math.min(t,r);if(o==i)return n;for(var a=0,s=1;;){var l=o.substring(n-s),d=i.indexOf(l);if(d==-1)return a;s+=d,(d==0||o.substring(n-s)==i.substring(0,s))&&(a=s,s++)}}function hp(o,i){if(!o||!i||o.slice(-1)!==i.slice(-1))return 0;for(var t=0,r=Math.min(o.length,i.length),n=r,a=0;t<n;)o.substring(o.length-n,o.length-a)==i.substring(i.length-n,i.length-a)?(t=n,a=t):r=n,n=Math.floor((r-t)/2+t);return sy(o.charCodeAt(o.length-n))&&n--,n}function r9(o,i){var t=o.length>i.length?o:i,r=o.length>i.length?i:o;if(t.length<4||r.length*2<t.length)return null;function n(g,v,y){for(var z=g.substring(y,y+Math.floor(g.length/4)),E=-1,N="",U,R,C,$;(E=v.indexOf(z,E+1))!==-1;){var L=km(g.substring(y),v.substring(E)),K=hp(g.substring(0,y),v.substring(0,E));N.length<K+L&&(N=v.substring(E-K,E)+v.substring(E,E+L),U=g.substring(0,y-K),R=g.substring(y+L),C=v.substring(0,E-K),$=v.substring(E+L))}return N.length*2>=g.length?[U,R,C,$,N]:null}var a=n(t,r,Math.ceil(t.length/4)),s=n(t,r,Math.ceil(t.length/2)),l;if(!a&&!s)return null;s?a?l=a[4].length>s[4].length?a:s:l=s:l=a;var d,h,m,f;o.length>i.length?(d=l[0],h=l[1],m=l[2],f=l[3]):(m=l[0],f=l[1],d=l[2],h=l[3]);var b=l[4];return[d,h,m,f,b]}function i9(o){for(var i=!1,t=[],r=0,n=null,a=0,s=0,l=0,d=0,h=0;a<o.length;)o[a][0]==Qt?(t[r++]=a,s=d,l=h,d=0,h=0,n=o[a][1]):(o[a][0]==Br?d+=o[a][1].length:h+=o[a][1].length,n&&n.length<=Math.max(s,l)&&n.length<=Math.max(d,h)&&(o.splice(t[r-1],0,[zi,n]),o[t[r-1]+1][0]=Br,r--,r--,a=r>0?t[r-1]:-1,s=0,l=0,d=0,h=0,n=null,i=!0)),a++;for(i&&Sm(o),a9(o),a=1;a<o.length;){if(o[a-1][0]==zi&&o[a][0]==Br){var m=o[a-1][1],f=o[a][1],b=ry(m,f),g=ry(f,m);b>=g?(b>=m.length/2||b>=f.length/2)&&(o.splice(a,0,[Qt,f.substring(0,b)]),o[a-1][1]=m.substring(0,m.length-b),o[a+1][1]=f.substring(b),a++):(g>=m.length/2||g>=f.length/2)&&(o.splice(a,0,[Qt,m.substring(0,g)]),o[a-1][0]=Br,o[a-1][1]=f.substring(0,f.length-g),o[a+1][0]=zi,o[a+1][1]=m.substring(g),a++),a++}a++}}var iy=/[^a-zA-Z0-9]/,ny=/\s/,oy=/[\r\n]/,n9=/\n\r?\n$/,o9=/^\r?\n\r?\n/;function a9(o){function i(g,v){if(!g||!v)return 6;var y=g.charAt(g.length-1),z=v.charAt(0),E=y.match(iy),N=z.match(iy),U=E&&y.match(ny),R=N&&z.match(ny),C=U&&y.match(oy),$=R&&z.match(oy),L=C&&g.match(n9),K=$&&v.match(o9);return L||K?5:C||$?4:E&&!U&&R?3:U||R?2:E||N?1:0}for(var t=1;t<o.length-1;){if(o[t-1][0]==Qt&&o[t+1][0]==Qt){var r=o[t-1][1],n=o[t][1],a=o[t+1][1],s=hp(r,n);if(s){var l=n.substring(n.length-s);r=r.substring(0,r.length-s),n=l+n.substring(0,n.length-s),a=l+a}for(var d=r,h=n,m=a,f=i(r,n)+i(n,a);n.charAt(0)===a.charAt(0);){r+=n.charAt(0),n=n.substring(1)+a.charAt(0),a=a.substring(1);var b=i(r,n)+i(n,a);b>=f&&(f=b,d=r,h=n,m=a)}o[t-1][1]!=d&&(d?o[t-1][1]=d:(o.splice(t-1,1),t--),o[t][1]=h,m?o[t+1][1]=m:(o.splice(t+1,1),t--))}t++}}function Sm(o,i){o.push([Qt,""]);for(var t=0,r=0,n=0,a="",s="",l;t<o.length;){if(t<o.length-1&&!o[t][1]){o.splice(t,1);continue}switch(o[t][0]){case Br:n++,s+=o[t][1],t++;break;case zi:r++,a+=o[t][1],t++;break;case Qt:var d=t-n-r-1;if(i){if(d>=0&&cy(o[d][1])){var h=o[d][1].slice(-1);if(o[d][1]=o[d][1].slice(0,-1),a=h+a,s=h+s,!o[d][1]){o.splice(d,1),t--;var m=d-1;o[m]&&o[m][0]===Br&&(n++,s=o[m][1]+s,m--),o[m]&&o[m][0]===zi&&(r++,a=o[m][1]+a,m--),d=m}}if(ly(o[t][1])){var h=o[t][1].charAt(0);o[t][1]=o[t][1].slice(1),a+=h,s+=h}}if(t<o.length-1&&!o[t][1]){o.splice(t,1);break}if(a.length>0||s.length>0){a.length>0&&s.length>0&&(l=km(s,a),l!==0&&(d>=0?o[d][1]+=s.substring(0,l):(o.splice(0,0,[Qt,s.substring(0,l)]),t++),s=s.substring(l),a=a.substring(l)),l=hp(s,a),l!==0&&(o[t][1]=s.substring(s.length-l)+o[t][1],s=s.substring(0,s.length-l),a=a.substring(0,a.length-l)));var f=n+r;a.length===0&&s.length===0?(o.splice(t-f,f),t=t-f):a.length===0?(o.splice(t-f,f,[Br,s]),t=t-f+1):s.length===0?(o.splice(t-f,f,[zi,a]),t=t-f+1):(o.splice(t-f,f,[zi,a],[Br,s]),t=t-f+2)}t!==0&&o[t-1][0]===Qt?(o[t-1][1]+=o[t][1],o.splice(t,1)):t++,n=0,r=0,a="",s="";break}}o[o.length-1][1]===""&&o.pop();var b=!1;for(t=1;t<o.length-1;)o[t-1][0]===Qt&&o[t+1][0]===Qt&&(o[t][1].substring(o[t][1].length-o[t-1][1].length)===o[t-1][1]?(o[t][1]=o[t-1][1]+o[t][1].substring(0,o[t][1].length-o[t-1][1].length),o[t+1][1]=o[t-1][1]+o[t+1][1],o.splice(t-1,1),b=!0):o[t][1].substring(0,o[t+1][1].length)==o[t+1][1]&&(o[t-1][1]+=o[t+1][1],o[t][1]=o[t][1].substring(o[t+1][1].length)+o[t+1][1],o.splice(t+1,1),b=!0)),t++;b&&Sm(o,i)}function ay(o){return o>=55296&&o<=56319}function sy(o){return o>=56320&&o<=57343}function ly(o){return sy(o.charCodeAt(0))}function cy(o){return ay(o.charCodeAt(o.length-1))}function s9(o){for(var i=[],t=0;t<o.length;t++)o[t][1].length>0&&i.push(o[t]);return i}function _m(o,i,t,r){return cy(o)||ly(r)?null:s9([[Qt,o],[zi,i],[Br,t],[Qt,r]])}function l9(o,i,t){var r=typeof t=="number"?{index:t,length:0}:t.oldRange,n=typeof t=="number"?null:t.newRange,a=o.length,s=i.length;if(r.length===0&&(n===null||n.length===0)){var l=r.index,d=o.slice(0,l),h=o.slice(l),m=n?n.index:null;e:{var f=l+s-a;if(m!==null&&m!==f||f<0||f>s)break e;var b=i.slice(0,f),g=i.slice(f);if(g!==h)break e;var v=Math.min(l,f),y=d.slice(0,v),z=b.slice(0,v);if(y!==z)break e;var E=d.slice(v),N=b.slice(v);return _m(y,E,N,h)}e:{if(m!==null&&m!==l)break e;var U=l,b=i.slice(0,U),g=i.slice(U);if(b!==d)break e;var R=Math.min(a-U,s-U),C=h.slice(h.length-R),$=g.slice(g.length-R);if(C!==$)break e;var E=h.slice(0,h.length-R),N=g.slice(0,g.length-R);return _m(d,E,N,C)}}if(r.length>0&&n&&n.length===0)e:{var y=o.slice(0,r.index),C=o.slice(r.index+r.length),v=y.length,R=C.length;if(s<v+R)break e;var z=i.slice(0,v),$=i.slice(s-R);if(y!==z||C!==$)break e;var E=o.slice(v,a-R),N=i.slice(v,s-R);return _m(y,E,N,C)}return null}function up(o,i,t,r){return Zl(o,i,t,r,!0)}up.INSERT=Br;up.DELETE=zi;up.EQUAL=Qt;dy.exports=up});var Hm=Hn((ec,Ss)=>{var c9=200,_y="__lodash_hash_undefined__",ky=9007199254740991,qm="[object Arguments]",d9="[object Array]",Sy="[object Boolean]",Cy="[object Date]",p9="[object Error]",Im="[object Function]",Ey="[object GeneratorFunction]",mp="[object Map]",Ty="[object Number]",Rm="[object Object]",hy="[object Promise]",$y="[object RegExp]",fp="[object Set]",Ay="[object String]",Ly="[object Symbol]",Em="[object WeakMap]",My="[object ArrayBuffer]",gp="[object DataView]",qy="[object Float32Array]",Iy="[object Float64Array]",Ry="[object Int8Array]",Dy="[object Int16Array]",Ny="[object Int32Array]",Oy="[object Uint8Array]",Py="[object Uint8ClampedArray]",Hy="[object Uint16Array]",Fy="[object Uint32Array]",h9=/[\\^$.*+?()[\]{}|]/g,u9=/\w*$/,m9=/^\[object .+?Constructor\]$/,f9=/^(?:0|[1-9]\d*)$/,nt={};nt[qm]=nt[d9]=nt[My]=nt[gp]=nt[Sy]=nt[Cy]=nt[qy]=nt[Iy]=nt[Ry]=nt[Dy]=nt[Ny]=nt[mp]=nt[Ty]=nt[Rm]=nt[$y]=nt[fp]=nt[Ay]=nt[Ly]=nt[Oy]=nt[Py]=nt[Hy]=nt[Fy]=!0;nt[p9]=nt[Im]=nt[Em]=!1;var g9=typeof global=="object"&&global&&global.Object===Object&&global,b9=typeof self=="object"&&self&&self.Object===Object&&self,Wn=g9||b9||Function("return this")(),By=typeof ec=="object"&&ec&&!ec.nodeType&&ec,uy=By&&typeof Ss=="object"&&Ss&&!Ss.nodeType&&Ss,v9=uy&&uy.exports===By;function y9(o,i){return o.set(i[0],i[1]),o}function x9(o,i){return o.add(i),o}function w9(o,i){for(var t=-1,r=o?o.length:0;++t<r&&i(o[t],t,o)!==!1;);return o}function z9(o,i){for(var t=-1,r=i.length,n=o.length;++t<r;)o[n+t]=i[t];return o}function Vy(o,i,t,r){var n=-1,a=o?o.length:0;for(r&&a&&(t=o[++n]);++n<a;)t=i(t,o[n],n,o);return t}function _9(o,i){for(var t=-1,r=Array(o);++t<o;)r[t]=i(t);return r}function k9(o,i){return o?.[i]}function Uy(o){var i=!1;if(o!=null&&typeof o.toString!="function")try{i=!!(o+"")}catch{}return i}function my(o){var i=-1,t=Array(o.size);return o.forEach(function(r,n){t[++i]=[n,r]}),t}function Dm(o,i){return function(t){return o(i(t))}}function fy(o){var i=-1,t=Array(o.size);return o.forEach(function(r){t[++i]=r}),t}var S9=Array.prototype,C9=Function.prototype,bp=Object.prototype,Cm=Wn["__core-js_shared__"],gy=(function(){var o=/[^.]+$/.exec(Cm&&Cm.keys&&Cm.keys.IE_PROTO||"");return o?"Symbol(src)_1."+o:""})(),jy=C9.toString,Ao=bp.hasOwnProperty,vp=bp.toString,E9=RegExp("^"+jy.call(Ao).replace(h9,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),by=v9?Wn.Buffer:void 0,vy=Wn.Symbol,yy=Wn.Uint8Array,T9=Dm(Object.getPrototypeOf,Object),$9=Object.create,A9=bp.propertyIsEnumerable,L9=S9.splice,xy=Object.getOwnPropertySymbols,M9=by?by.isBuffer:void 0,q9=Dm(Object.keys,Object),Tm=Ts(Wn,"DataView"),tc=Ts(Wn,"Map"),$m=Ts(Wn,"Promise"),Am=Ts(Wn,"Set"),Lm=Ts(Wn,"WeakMap"),rc=Ts(Object,"create"),I9=La(Tm),R9=La(tc),D9=La($m),N9=La(Am),O9=La(Lm),wy=vy?vy.prototype:void 0,zy=wy?wy.valueOf:void 0;function Aa(o){var i=-1,t=o?o.length:0;for(this.clear();++i<t;){var r=o[i];this.set(r[0],r[1])}}function P9(){this.__data__=rc?rc(null):{}}function H9(o){return this.has(o)&&delete this.__data__[o]}function F9(o){var i=this.__data__;if(rc){var t=i[o];return t===_y?void 0:t}return Ao.call(i,o)?i[o]:void 0}function B9(o){var i=this.__data__;return rc?i[o]!==void 0:Ao.call(i,o)}function V9(o,i){var t=this.__data__;return t[o]=rc&&i===void 0?_y:i,this}Aa.prototype.clear=P9;Aa.prototype.delete=H9;Aa.prototype.get=F9;Aa.prototype.has=B9;Aa.prototype.set=V9;function Yn(o){var i=-1,t=o?o.length:0;for(this.clear();++i<t;){var r=o[i];this.set(r[0],r[1])}}function U9(){this.__data__=[]}function j9(o){var i=this.__data__,t=yp(i,o);if(t<0)return!1;var r=i.length-1;return t==r?i.pop():L9.call(i,t,1),!0}function G9(o){var i=this.__data__,t=yp(i,o);return t<0?void 0:i[t][1]}function K9(o){return yp(this.__data__,o)>-1}function W9(o,i){var t=this.__data__,r=yp(t,o);return r<0?t.push([o,i]):t[r][1]=i,this}Yn.prototype.clear=U9;Yn.prototype.delete=j9;Yn.prototype.get=G9;Yn.prototype.has=K9;Yn.prototype.set=W9;function Cs(o){var i=-1,t=o?o.length:0;for(this.clear();++i<t;){var r=o[i];this.set(r[0],r[1])}}function Y9(){this.__data__={hash:new Aa,map:new(tc||Yn),string:new Aa}}function Q9(o){return xp(this,o).delete(o)}function X9(o){return xp(this,o).get(o)}function J9(o){return xp(this,o).has(o)}function Z9(o,i){return xp(this,o).set(o,i),this}Cs.prototype.clear=Y9;Cs.prototype.delete=Q9;Cs.prototype.get=X9;Cs.prototype.has=J9;Cs.prototype.set=Z9;function Es(o){this.__data__=new Yn(o)}function eS(){this.__data__=new Yn}function tS(o){return this.__data__.delete(o)}function rS(o){return this.__data__.get(o)}function iS(o){return this.__data__.has(o)}function nS(o,i){var t=this.__data__;if(t instanceof Yn){var r=t.__data__;if(!tc||r.length<c9-1)return r.push([o,i]),this;t=this.__data__=new Cs(r)}return t.set(o,i),this}Es.prototype.clear=eS;Es.prototype.delete=tS;Es.prototype.get=rS;Es.prototype.has=iS;Es.prototype.set=nS;function oS(o,i){var t=Om(o)||$S(o)?_9(o.length,String):[],r=t.length,n=!!r;for(var a in o)(i||Ao.call(o,a))&&!(n&&(a=="length"||SS(a,r)))&&t.push(a);return t}function Gy(o,i,t){var r=o[i];(!(Ao.call(o,i)&&Qy(r,t))||t===void 0&&!(i in o))&&(o[i]=t)}function yp(o,i){for(var t=o.length;t--;)if(Qy(o[t][0],i))return t;return-1}function aS(o,i){return o&&Ky(i,Pm(i),o)}function Mm(o,i,t,r,n,a,s){var l;if(r&&(l=a?r(o,n,a,s):r(o)),l!==void 0)return l;if(!wp(o))return o;var d=Om(o);if(d){if(l=zS(o),!i)return yS(o,l)}else{var h=$a(o),m=h==Im||h==Ey;if(LS(o))return hS(o,i);if(h==Rm||h==qm||m&&!a){if(Uy(o))return a?o:{};if(l=_S(m?{}:o),!i)return xS(o,aS(l,o))}else{if(!nt[h])return a?o:{};l=kS(o,h,Mm,i)}}s||(s=new Es);var f=s.get(o);if(f)return f;if(s.set(o,l),!d)var b=t?wS(o):Pm(o);return w9(b||o,function(g,v){b&&(v=g,g=o[v]),Gy(l,v,Mm(g,i,t,r,v,o,s))}),l}function sS(o){return wp(o)?$9(o):{}}function lS(o,i,t){var r=i(o);return Om(o)?r:z9(r,t(o))}function cS(o){return vp.call(o)}function dS(o){if(!wp(o)||ES(o))return!1;var i=Jy(o)||Uy(o)?E9:m9;return i.test(La(o))}function pS(o){if(!Yy(o))return q9(o);var i=[];for(var t in Object(o))Ao.call(o,t)&&t!="constructor"&&i.push(t);return i}function hS(o,i){if(i)return o.slice();var t=new o.constructor(o.length);return o.copy(t),t}function Nm(o){var i=new o.constructor(o.byteLength);return new yy(i).set(new yy(o)),i}function uS(o,i){var t=i?Nm(o.buffer):o.buffer;return new o.constructor(t,o.byteOffset,o.byteLength)}function mS(o,i,t){var r=i?t(my(o),!0):my(o);return Vy(r,y9,new o.constructor)}function fS(o){var i=new o.constructor(o.source,u9.exec(o));return i.lastIndex=o.lastIndex,i}function gS(o,i,t){var r=i?t(fy(o),!0):fy(o);return Vy(r,x9,new o.constructor)}function bS(o){return zy?Object(zy.call(o)):{}}function vS(o,i){var t=i?Nm(o.buffer):o.buffer;return new o.constructor(t,o.byteOffset,o.length)}function yS(o,i){var t=-1,r=o.length;for(i||(i=Array(r));++t<r;)i[t]=o[t];return i}function Ky(o,i,t,r){t||(t={});for(var n=-1,a=i.length;++n<a;){var s=i[n],l=r?r(t[s],o[s],s,t,o):void 0;Gy(t,s,l===void 0?o[s]:l)}return t}function xS(o,i){return Ky(o,Wy(o),i)}function wS(o){return lS(o,Pm,Wy)}function xp(o,i){var t=o.__data__;return CS(i)?t[typeof i=="string"?"string":"hash"]:t.map}function Ts(o,i){var t=k9(o,i);return dS(t)?t:void 0}var Wy=xy?Dm(xy,Object):IS,$a=cS;(Tm&&$a(new Tm(new ArrayBuffer(1)))!=gp||tc&&$a(new tc)!=mp||$m&&$a($m.resolve())!=hy||Am&&$a(new Am)!=fp||Lm&&$a(new Lm)!=Em)&&($a=function(o){var i=vp.call(o),t=i==Rm?o.constructor:void 0,r=t?La(t):void 0;if(r)switch(r){case I9:return gp;case R9:return mp;case D9:return hy;case N9:return fp;case O9:return Em}return i});function zS(o){var i=o.length,t=o.constructor(i);return i&&typeof o[0]=="string"&&Ao.call(o,"index")&&(t.index=o.index,t.input=o.input),t}function _S(o){return typeof o.constructor=="function"&&!Yy(o)?sS(T9(o)):{}}function kS(o,i,t,r){var n=o.constructor;switch(i){case My:return Nm(o);case Sy:case Cy:return new n(+o);case gp:return uS(o,r);case qy:case Iy:case Ry:case Dy:case Ny:case Oy:case Py:case Hy:case Fy:return vS(o,r);case mp:return mS(o,r,t);case Ty:case Ay:return new n(o);case $y:return fS(o);case fp:return gS(o,r,t);case Ly:return bS(o)}}function SS(o,i){return i=i??ky,!!i&&(typeof o=="number"||f9.test(o))&&o>-1&&o%1==0&&o<i}function CS(o){var i=typeof o;return i=="string"||i=="number"||i=="symbol"||i=="boolean"?o!=="__proto__":o===null}function ES(o){return!!gy&&gy in o}function Yy(o){var i=o&&o.constructor,t=typeof i=="function"&&i.prototype||bp;return o===t}function La(o){if(o!=null){try{return jy.call(o)}catch{}try{return o+""}catch{}}return""}function TS(o){return Mm(o,!0,!0)}function Qy(o,i){return o===i||o!==o&&i!==i}function $S(o){return AS(o)&&Ao.call(o,"callee")&&(!A9.call(o,"callee")||vp.call(o)==qm)}var Om=Array.isArray;function Xy(o){return o!=null&&MS(o.length)&&!Jy(o)}function AS(o){return qS(o)&&Xy(o)}var LS=M9||RS;function Jy(o){var i=wp(o)?vp.call(o):"";return i==Im||i==Ey}function MS(o){return typeof o=="number"&&o>-1&&o%1==0&&o<=ky}function wp(o){var i=typeof o;return!!o&&(i=="object"||i=="function")}function qS(o){return!!o&&typeof o=="object"}function Pm(o){return Xy(o)?oS(o):pS(o)}function IS(){return[]}function RS(){return!1}Ss.exports=TS});var Jm=Hn((ic,As)=>{var DS=200,Xm="__lodash_hash_undefined__",$p=1,dx=2,px=9007199254740991,zp="[object Arguments]",Um="[object Array]",NS="[object AsyncFunction]",hx="[object Boolean]",ux="[object Date]",mx="[object Error]",fx="[object Function]",OS="[object GeneratorFunction]",_p="[object Map]",gx="[object Number]",PS="[object Null]",$s="[object Object]",Zy="[object Promise]",HS="[object Proxy]",bx="[object RegExp]",kp="[object Set]",vx="[object String]",FS="[object Symbol]",BS="[object Undefined]",jm="[object WeakMap]",yx="[object ArrayBuffer]",Sp="[object DataView]",VS="[object Float32Array]",US="[object Float64Array]",jS="[object Int8Array]",GS="[object Int16Array]",KS="[object Int32Array]",WS="[object Uint8Array]",YS="[object Uint8ClampedArray]",QS="[object Uint16Array]",XS="[object Uint32Array]",JS=/[\\^$.*+?()[\]{}|]/g,ZS=/^\[object .+?Constructor\]$/,e6=/^(?:0|[1-9]\d*)$/,ct={};ct[VS]=ct[US]=ct[jS]=ct[GS]=ct[KS]=ct[WS]=ct[YS]=ct[QS]=ct[XS]=!0;ct[zp]=ct[Um]=ct[yx]=ct[hx]=ct[Sp]=ct[ux]=ct[mx]=ct[fx]=ct[_p]=ct[gx]=ct[$s]=ct[bx]=ct[kp]=ct[vx]=ct[jm]=!1;var xx=typeof global=="object"&&global&&global.Object===Object&&global,t6=typeof self=="object"&&self&&self.Object===Object&&self,Qn=xx||t6||Function("return this")(),wx=typeof ic=="object"&&ic&&!ic.nodeType&&ic,ex=wx&&typeof As=="object"&&As&&!As.nodeType&&As,zx=ex&&ex.exports===wx,Fm=zx&&xx.process,tx=(function(){try{return Fm&&Fm.binding&&Fm.binding("util")}catch{}})(),rx=tx&&tx.isTypedArray;function r6(o,i){for(var t=-1,r=o==null?0:o.length,n=0,a=[];++t<r;){var s=o[t];i(s,t,o)&&(a[n++]=s)}return a}function i6(o,i){for(var t=-1,r=i.length,n=o.length;++t<r;)o[n+t]=i[t];return o}function n6(o,i){for(var t=-1,r=o==null?0:o.length;++t<r;)if(i(o[t],t,o))return!0;return!1}function o6(o,i){for(var t=-1,r=Array(o);++t<o;)r[t]=i(t);return r}function a6(o){return function(i){return o(i)}}function s6(o,i){return o.has(i)}function l6(o,i){return o?.[i]}function c6(o){var i=-1,t=Array(o.size);return o.forEach(function(r,n){t[++i]=[n,r]}),t}function d6(o,i){return function(t){return o(i(t))}}function p6(o){var i=-1,t=Array(o.size);return o.forEach(function(r){t[++i]=r}),t}var h6=Array.prototype,u6=Function.prototype,Ap=Object.prototype,Bm=Qn["__core-js_shared__"],_x=u6.toString,$n=Ap.hasOwnProperty,ix=(function(){var o=/[^.]+$/.exec(Bm&&Bm.keys&&Bm.keys.IE_PROTO||"");return o?"Symbol(src)_1."+o:""})(),kx=Ap.toString,m6=RegExp("^"+_x.call($n).replace(JS,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),nx=zx?Qn.Buffer:void 0,Cp=Qn.Symbol,ox=Qn.Uint8Array,Sx=Ap.propertyIsEnumerable,f6=h6.splice,Ma=Cp?Cp.toStringTag:void 0,ax=Object.getOwnPropertySymbols,g6=nx?nx.isBuffer:void 0,b6=d6(Object.keys,Object),Gm=Ls(Qn,"DataView"),nc=Ls(Qn,"Map"),Km=Ls(Qn,"Promise"),Wm=Ls(Qn,"Set"),Ym=Ls(Qn,"WeakMap"),oc=Ls(Object,"create"),v6=Ra(Gm),y6=Ra(nc),x6=Ra(Km),w6=Ra(Wm),z6=Ra(Ym),sx=Cp?Cp.prototype:void 0,Vm=sx?sx.valueOf:void 0;function qa(o){var i=-1,t=o==null?0:o.length;for(this.clear();++i<t;){var r=o[i];this.set(r[0],r[1])}}function _6(){this.__data__=oc?oc(null):{},this.size=0}function k6(o){var i=this.has(o)&&delete this.__data__[o];return this.size-=i?1:0,i}function S6(o){var i=this.__data__;if(oc){var t=i[o];return t===Xm?void 0:t}return $n.call(i,o)?i[o]:void 0}function C6(o){var i=this.__data__;return oc?i[o]!==void 0:$n.call(i,o)}function E6(o,i){var t=this.__data__;return this.size+=this.has(o)?0:1,t[o]=oc&&i===void 0?Xm:i,this}qa.prototype.clear=_6;qa.prototype.delete=k6;qa.prototype.get=S6;qa.prototype.has=C6;qa.prototype.set=E6;function Xn(o){var i=-1,t=o==null?0:o.length;for(this.clear();++i<t;){var r=o[i];this.set(r[0],r[1])}}function T6(){this.__data__=[],this.size=0}function $6(o){var i=this.__data__,t=Lp(i,o);if(t<0)return!1;var r=i.length-1;return t==r?i.pop():f6.call(i,t,1),--this.size,!0}function A6(o){var i=this.__data__,t=Lp(i,o);return t<0?void 0:i[t][1]}function L6(o){return Lp(this.__data__,o)>-1}function M6(o,i){var t=this.__data__,r=Lp(t,o);return r<0?(++this.size,t.push([o,i])):t[r][1]=i,this}Xn.prototype.clear=T6;Xn.prototype.delete=$6;Xn.prototype.get=A6;Xn.prototype.has=L6;Xn.prototype.set=M6;function Ia(o){var i=-1,t=o==null?0:o.length;for(this.clear();++i<t;){var r=o[i];this.set(r[0],r[1])}}function q6(){this.size=0,this.__data__={hash:new qa,map:new(nc||Xn),string:new qa}}function I6(o){var i=Mp(this,o).delete(o);return this.size-=i?1:0,i}function R6(o){return Mp(this,o).get(o)}function D6(o){return Mp(this,o).has(o)}function N6(o,i){var t=Mp(this,o),r=t.size;return t.set(o,i),this.size+=t.size==r?0:1,this}Ia.prototype.clear=q6;Ia.prototype.delete=I6;Ia.prototype.get=R6;Ia.prototype.has=D6;Ia.prototype.set=N6;function Ep(o){var i=-1,t=o==null?0:o.length;for(this.__data__=new Ia;++i<t;)this.add(o[i])}function O6(o){return this.__data__.set(o,Xm),this}function P6(o){return this.__data__.has(o)}Ep.prototype.add=Ep.prototype.push=O6;Ep.prototype.has=P6;function Mo(o){var i=this.__data__=new Xn(o);this.size=i.size}function H6(){this.__data__=new Xn,this.size=0}function F6(o){var i=this.__data__,t=i.delete(o);return this.size=i.size,t}function B6(o){return this.__data__.get(o)}function V6(o){return this.__data__.has(o)}function U6(o,i){var t=this.__data__;if(t instanceof Xn){var r=t.__data__;if(!nc||r.length<DS-1)return r.push([o,i]),this.size=++t.size,this;t=this.__data__=new Ia(r)}return t.set(o,i),this.size=t.size,this}Mo.prototype.clear=H6;Mo.prototype.delete=F6;Mo.prototype.get=B6;Mo.prototype.has=V6;Mo.prototype.set=U6;function j6(o,i){var t=Tp(o),r=!t&&aC(o),n=!t&&!r&&Qm(o),a=!t&&!r&&!n&&Mx(o),s=t||r||n||a,l=s?o6(o.length,String):[],d=l.length;for(var h in o)(i||$n.call(o,h))&&!(s&&(h=="length"||n&&(h=="offset"||h=="parent")||a&&(h=="buffer"||h=="byteLength"||h=="byteOffset")||tC(h,d)))&&l.push(h);return l}function Lp(o,i){for(var t=o.length;t--;)if(Tx(o[t][0],i))return t;return-1}function G6(o,i,t){var r=i(o);return Tp(o)?r:i6(r,t(o))}function sc(o){return o==null?o===void 0?BS:PS:Ma&&Ma in Object(o)?Z6(o):oC(o)}function lx(o){return ac(o)&&sc(o)==zp}function Cx(o,i,t,r,n){return o===i?!0:o==null||i==null||!ac(o)&&!ac(i)?o!==o&&i!==i:K6(o,i,t,r,Cx,n)}function K6(o,i,t,r,n,a){var s=Tp(o),l=Tp(i),d=s?Um:Lo(o),h=l?Um:Lo(i);d=d==zp?$s:d,h=h==zp?$s:h;var m=d==$s,f=h==$s,b=d==h;if(b&&Qm(o)){if(!Qm(i))return!1;s=!0,m=!1}if(b&&!m)return a||(a=new Mo),s||Mx(o)?Ex(o,i,t,r,n,a):X6(o,i,d,t,r,n,a);if(!(t&$p)){var g=m&&$n.call(o,"__wrapped__"),v=f&&$n.call(i,"__wrapped__");if(g||v){var y=g?o.value():o,z=v?i.value():i;return a||(a=new Mo),n(y,z,t,r,a)}}return b?(a||(a=new Mo),J6(o,i,t,r,n,a)):!1}function W6(o){if(!Lx(o)||iC(o))return!1;var i=$x(o)?m6:ZS;return i.test(Ra(o))}function Y6(o){return ac(o)&&Ax(o.length)&&!!ct[sc(o)]}function Q6(o){if(!nC(o))return b6(o);var i=[];for(var t in Object(o))$n.call(o,t)&&t!="constructor"&&i.push(t);return i}function Ex(o,i,t,r,n,a){var s=t&$p,l=o.length,d=i.length;if(l!=d&&!(s&&d>l))return!1;var h=a.get(o);if(h&&a.get(i))return h==i;var m=-1,f=!0,b=t&dx?new Ep:void 0;for(a.set(o,i),a.set(i,o);++m<l;){var g=o[m],v=i[m];if(r)var y=s?r(v,g,m,i,o,a):r(g,v,m,o,i,a);if(y!==void 0){if(y)continue;f=!1;break}if(b){if(!n6(i,function(z,E){if(!s6(b,E)&&(g===z||n(g,z,t,r,a)))return b.push(E)})){f=!1;break}}else if(!(g===v||n(g,v,t,r,a))){f=!1;break}}return a.delete(o),a.delete(i),f}function X6(o,i,t,r,n,a,s){switch(t){case Sp:if(o.byteLength!=i.byteLength||o.byteOffset!=i.byteOffset)return!1;o=o.buffer,i=i.buffer;case yx:return!(o.byteLength!=i.byteLength||!a(new ox(o),new ox(i)));case hx:case ux:case gx:return Tx(+o,+i);case mx:return o.name==i.name&&o.message==i.message;case bx:case vx:return o==i+"";case _p:var l=c6;case kp:var d=r&$p;if(l||(l=p6),o.size!=i.size&&!d)return!1;var h=s.get(o);if(h)return h==i;r|=dx,s.set(o,i);var m=Ex(l(o),l(i),r,n,a,s);return s.delete(o),m;case FS:if(Vm)return Vm.call(o)==Vm.call(i)}return!1}function J6(o,i,t,r,n,a){var s=t&$p,l=cx(o),d=l.length,h=cx(i),m=h.length;if(d!=m&&!s)return!1;for(var f=d;f--;){var b=l[f];if(!(s?b in i:$n.call(i,b)))return!1}var g=a.get(o);if(g&&a.get(i))return g==i;var v=!0;a.set(o,i),a.set(i,o);for(var y=s;++f<d;){b=l[f];var z=o[b],E=i[b];if(r)var N=s?r(E,z,b,i,o,a):r(z,E,b,o,i,a);if(!(N===void 0?z===E||n(z,E,t,r,a):N)){v=!1;break}y||(y=b=="constructor")}if(v&&!y){var U=o.constructor,R=i.constructor;U!=R&&"constructor"in o&&"constructor"in i&&!(typeof U=="function"&&U instanceof U&&typeof R=="function"&&R instanceof R)&&(v=!1)}return a.delete(o),a.delete(i),v}function cx(o){return G6(o,cC,eC)}function Mp(o,i){var t=o.__data__;return rC(i)?t[typeof i=="string"?"string":"hash"]:t.map}function Ls(o,i){var t=l6(o,i);return W6(t)?t:void 0}function Z6(o){var i=$n.call(o,Ma),t=o[Ma];try{o[Ma]=void 0;var r=!0}catch{}var n=kx.call(o);return r&&(i?o[Ma]=t:delete o[Ma]),n}var eC=ax?function(o){return o==null?[]:(o=Object(o),r6(ax(o),function(i){return Sx.call(o,i)}))}:dC,Lo=sc;(Gm&&Lo(new Gm(new ArrayBuffer(1)))!=Sp||nc&&Lo(new nc)!=_p||Km&&Lo(Km.resolve())!=Zy||Wm&&Lo(new Wm)!=kp||Ym&&Lo(new Ym)!=jm)&&(Lo=function(o){var i=sc(o),t=i==$s?o.constructor:void 0,r=t?Ra(t):"";if(r)switch(r){case v6:return Sp;case y6:return _p;case x6:return Zy;case w6:return kp;case z6:return jm}return i});function tC(o,i){return i=i??px,!!i&&(typeof o=="number"||e6.test(o))&&o>-1&&o%1==0&&o<i}function rC(o){var i=typeof o;return i=="string"||i=="number"||i=="symbol"||i=="boolean"?o!=="__proto__":o===null}function iC(o){return!!ix&&ix in o}function nC(o){var i=o&&o.constructor,t=typeof i=="function"&&i.prototype||Ap;return o===t}function oC(o){return kx.call(o)}function Ra(o){if(o!=null){try{return _x.call(o)}catch{}try{return o+""}catch{}}return""}function Tx(o,i){return o===i||o!==o&&i!==i}var aC=lx((function(){return arguments})())?lx:function(o){return ac(o)&&$n.call(o,"callee")&&!Sx.call(o,"callee")},Tp=Array.isArray;function sC(o){return o!=null&&Ax(o.length)&&!$x(o)}var Qm=g6||pC;function lC(o,i){return Cx(o,i)}function $x(o){if(!Lx(o))return!1;var i=sc(o);return i==fx||i==OS||i==NS||i==HS}function Ax(o){return typeof o=="number"&&o>-1&&o%1==0&&o<=px}function Lx(o){var i=typeof o;return o!=null&&(i=="object"||i=="function")}function ac(o){return o!=null&&typeof o=="object"}var Mx=rx?a6(rx):Y6;function cC(o){return sC(o)?j6(o):Q6(o)}function dC(){return[]}function pC(){return!1}As.exports=lC});var qx=Hn(ef=>{"use strict";Object.defineProperty(ef,"__esModule",{value:!0});var hC=Hm(),uC=Jm(),Zm;(function(o){function i(a={},s={},l=!1){typeof a!="object"&&(a={}),typeof s!="object"&&(s={});let d=hC(s);l||(d=Object.keys(d).reduce((h,m)=>(d[m]!=null&&(h[m]=d[m]),h),{}));for(let h in a)a[h]!==void 0&&s[h]===void 0&&(d[h]=a[h]);return Object.keys(d).length>0?d:void 0}o.compose=i;function t(a={},s={}){typeof a!="object"&&(a={}),typeof s!="object"&&(s={});let l=Object.keys(a).concat(Object.keys(s)).reduce((d,h)=>(uC(a[h],s[h])||(d[h]=s[h]===void 0?null:s[h]),d),{});return Object.keys(l).length>0?l:void 0}o.diff=t;function r(a={},s={}){a=a||{};let l=Object.keys(s).reduce((d,h)=>(s[h]!==a[h]&&a[h]!==void 0&&(d[h]=s[h]),d),{});return Object.keys(a).reduce((d,h)=>(a[h]!==s[h]&&s[h]===void 0&&(d[h]=null),d),l)}o.invert=r;function n(a,s,l=!1){if(typeof a!="object")return s;if(typeof s!="object")return;if(!l)return s;let d=Object.keys(s).reduce((h,m)=>(a[m]===void 0&&(h[m]=s[m]),h),{});return Object.keys(d).length>0?d:void 0}o.transform=n})(Zm||(Zm={}));ef.default=Zm});var nf=Hn(rf=>{"use strict";Object.defineProperty(rf,"__esModule",{value:!0});var tf;(function(o){function i(t){return typeof t.delete=="number"?t.delete:typeof t.retain=="number"?t.retain:typeof t.retain=="object"&&t.retain!==null?1:typeof t.insert=="string"?t.insert.length:1}o.length=i})(tf||(tf={}));rf.default=tf});var Rx=Hn(af=>{"use strict";Object.defineProperty(af,"__esModule",{value:!0});var Ix=nf(),of=class{constructor(i){this.ops=i,this.index=0,this.offset=0}hasNext(){return this.peekLength()<1/0}next(i){i||(i=1/0);let t=this.ops[this.index];if(t){let r=this.offset,n=Ix.default.length(t);if(i>=n-r?(i=n-r,this.index+=1,this.offset=0):this.offset+=i,typeof t.delete=="number")return{delete:i};{let a={};return t.attributes&&(a.attributes=t.attributes),typeof t.retain=="number"?a.retain=i:typeof t.retain=="object"&&t.retain!==null?a.retain=t.retain:typeof t.insert=="string"?a.insert=t.insert.substr(r,i):a.insert=t.insert,a}}else return{retain:1/0}}peek(){return this.ops[this.index]}peekLength(){return this.ops[this.index]?Ix.default.length(this.ops[this.index])-this.offset:1/0}peekType(){let i=this.ops[this.index];return i?typeof i.delete=="number"?"delete":typeof i.retain=="number"||typeof i.retain=="object"&&i.retain!==null?"retain":"insert":"retain"}rest(){if(this.hasNext()){if(this.offset===0)return this.ops.slice(this.index);{let i=this.offset,t=this.index,r=this.next(),n=this.ops.slice(this.index);return this.offset=i,this.index=t,[r].concat(n)}}else return[]}};af.default=of});var ei=Hn((Zn,Ip)=>{"use strict";Object.defineProperty(Zn,"__esModule",{value:!0});Zn.AttributeMap=Zn.OpIterator=Zn.Op=void 0;var qp=py(),mC=Hm(),sf=Jm(),Da=qx();Zn.AttributeMap=Da.default;var Jn=nf();Zn.Op=Jn.default;var Oi=Rx();Zn.OpIterator=Oi.default;var fC="\0",Dx=(o,i)=>{if(typeof o!="object"||o===null)throw new Error(`cannot retain a ${typeof o}`);if(typeof i!="object"||i===null)throw new Error(`cannot retain a ${typeof i}`);let t=Object.keys(o)[0];if(!t||t!==Object.keys(i)[0])throw new Error(`embed types not matched: ${t} != ${Object.keys(i)[0]}`);return[t,o[t],i[t]]},eo=class o{constructor(i){Array.isArray(i)?this.ops=i:i!=null&&Array.isArray(i.ops)?this.ops=i.ops:this.ops=[]}static registerEmbed(i,t){this.handlers[i]=t}static unregisterEmbed(i){delete this.handlers[i]}static getHandler(i){let t=this.handlers[i];if(!t)throw new Error(`no handlers for embed type "${i}"`);return t}insert(i,t){let r={};return typeof i=="string"&&i.length===0?this:(r.insert=i,t!=null&&typeof t=="object"&&Object.keys(t).length>0&&(r.attributes=t),this.push(r))}delete(i){return i<=0?this:this.push({delete:i})}retain(i,t){if(typeof i=="number"&&i<=0)return this;let r={retain:i};return t!=null&&typeof t=="object"&&Object.keys(t).length>0&&(r.attributes=t),this.push(r)}push(i){let t=this.ops.length,r=this.ops[t-1];if(i=mC(i),typeof r=="object"){if(typeof i.delete=="number"&&typeof r.delete=="number")return this.ops[t-1]={delete:r.delete+i.delete},this;if(typeof r.delete=="number"&&i.insert!=null&&(t-=1,r=this.ops[t-1],typeof r!="object"))return this.ops.unshift(i),this;if(sf(i.attributes,r.attributes)){if(typeof i.insert=="string"&&typeof r.insert=="string")return this.ops[t-1]={insert:r.insert+i.insert},typeof i.attributes=="object"&&(this.ops[t-1].attributes=i.attributes),this;if(typeof i.retain=="number"&&typeof r.retain=="number")return this.ops[t-1]={retain:r.retain+i.retain},typeof i.attributes=="object"&&(this.ops[t-1].attributes=i.attributes),this}}return t===this.ops.length?this.ops.push(i):this.ops.splice(t,0,i),this}chop(){let i=this.ops[this.ops.length-1];return i&&typeof i.retain=="number"&&!i.attributes&&this.ops.pop(),this}filter(i){return this.ops.filter(i)}forEach(i){this.ops.forEach(i)}map(i){return this.ops.map(i)}partition(i){let t=[],r=[];return this.forEach(n=>{(i(n)?t:r).push(n)}),[t,r]}reduce(i,t){return this.ops.reduce(i,t)}changeLength(){return this.reduce((i,t)=>t.insert?i+Jn.default.length(t):t.delete?i-t.delete:i,0)}length(){return this.reduce((i,t)=>i+Jn.default.length(t),0)}slice(i=0,t=1/0){let r=[],n=new Oi.default(this.ops),a=0;for(;a<t&&n.hasNext();){let s;a<i?s=n.next(i-a):(s=n.next(t-a),r.push(s)),a+=Jn.default.length(s)}return new o(r)}compose(i){let t=new Oi.default(this.ops),r=new Oi.default(i.ops),n=[],a=r.peek();if(a!=null&&typeof a.retain=="number"&&a.attributes==null){let l=a.retain;for(;t.peekType()==="insert"&&t.peekLength()<=l;)l-=t.peekLength(),n.push(t.next());a.retain-l>0&&r.next(a.retain-l)}let s=new o(n);for(;t.hasNext()||r.hasNext();)if(r.peekType()==="insert")s.push(r.next());else if(t.peekType()==="delete")s.push(t.next());else{let l=Math.min(t.peekLength(),r.peekLength()),d=t.next(l),h=r.next(l);if(h.retain){let m={};if(typeof d.retain=="number")m.retain=typeof h.retain=="number"?l:h.retain;else if(typeof h.retain=="number")d.retain==null?m.insert=d.insert:m.retain=d.retain;else{let b=d.retain==null?"insert":"retain",[g,v,y]=Dx(d[b],h.retain),z=o.getHandler(g);m[b]={[g]:z.compose(v,y,b==="retain")}}let f=Da.default.compose(d.attributes,h.attributes,typeof d.retain=="number");if(f&&(m.attributes=f),s.push(m),!r.hasNext()&&sf(s.ops[s.ops.length-1],m)){let b=new o(t.rest());return s.concat(b).chop()}}else typeof h.delete=="number"&&(typeof d.retain=="number"||typeof d.retain=="object"&&d.retain!==null)&&s.push(h)}return s.chop()}concat(i){let t=new o(this.ops.slice());return i.ops.length>0&&(t.push(i.ops[0]),t.ops=t.ops.concat(i.ops.slice(1))),t}diff(i,t){if(this.ops===i.ops)return new o;let r=[this,i].map(d=>d.map(h=>{if(h.insert!=null)return typeof h.insert=="string"?h.insert:fC;let m=d===i?"on":"with";throw new Error("diff() called "+m+" non-document")}).join("")),n=new o,a=qp(r[0],r[1],t,!0),s=new Oi.default(this.ops),l=new Oi.default(i.ops);return a.forEach(d=>{let h=d[1].length;for(;h>0;){let m=0;switch(d[0]){case qp.INSERT:m=Math.min(l.peekLength(),h),n.push(l.next(m));break;case qp.DELETE:m=Math.min(h,s.peekLength()),s.next(m),n.delete(m);break;case qp.EQUAL:m=Math.min(s.peekLength(),l.peekLength(),h);let f=s.next(m),b=l.next(m);sf(f.insert,b.insert)?n.retain(m,Da.default.diff(f.attributes,b.attributes)):n.push(b).delete(m);break}h-=m}}),n.chop()}eachLine(i,t=`
1
+ import{a as Hn,b as X3,c as kr,d as c,e as V}from"./chunks/zn.UBLZO6CI.js";var am=Hn((Ql,om)=>{(function(o,i){typeof Ql=="object"&&typeof om=="object"?om.exports=i():typeof define=="function"&&define.amd?define([],i):typeof Ql=="object"?Ql.AirDatepicker=i():o.AirDatepicker=i()})(Ql,(function(){return(function(){"use strict";var o={d:function(P,x){for(var T in x)o.o(x,T)&&!o.o(P,T)&&Object.defineProperty(P,T,{enumerable:!0,get:x[T]})},o:function(P,x){return Object.prototype.hasOwnProperty.call(P,x)}},i={};o.d(i,{default:function(){return se}});var t={days:"days",months:"months",years:"years",day:"day",month:"month",year:"year",eventChangeViewDate:"changeViewDate",eventChangeCurrentView:"changeCurrentView",eventChangeFocusDate:"changeFocusDate",eventChangeSelectedDate:"changeSelectedDate",eventChangeTime:"changeTime",eventChangeLastSelectedDate:"changeLastSelectedDate",actionSelectDate:"selectDate",actionUnselectDate:"unselectDate",cssClassWeekend:"-weekend-"},r={classes:"",inline:!1,locale:{days:["\u0412\u043E\u0441\u043A\u0440\u0435\u0441\u0435\u043D\u044C\u0435","\u041F\u043E\u043D\u0435\u0434\u0435\u043B\u044C\u043D\u0438\u043A","\u0412\u0442\u043E\u0440\u043D\u0438\u043A","\u0421\u0440\u0435\u0434\u0430","\u0427\u0435\u0442\u0432\u0435\u0440\u0433","\u041F\u044F\u0442\u043D\u0438\u0446\u0430","\u0421\u0443\u0431\u0431\u043E\u0442\u0430"],daysShort:["\u0412\u043E\u0441","\u041F\u043E\u043D","\u0412\u0442\u043E","\u0421\u0440\u0435","\u0427\u0435\u0442","\u041F\u044F\u0442","\u0421\u0443\u0431"],daysMin:["\u0412\u0441","\u041F\u043D","\u0412\u0442","\u0421\u0440","\u0427\u0442","\u041F\u0442","\u0421\u0431"],months:["\u042F\u043D\u0432\u0430\u0440\u044C","\u0424\u0435\u0432\u0440\u0430\u043B\u044C","\u041C\u0430\u0440\u0442","\u0410\u043F\u0440\u0435\u043B\u044C","\u041C\u0430\u0439","\u0418\u044E\u043D\u044C","\u0418\u044E\u043B\u044C","\u0410\u0432\u0433\u0443\u0441\u0442","\u0421\u0435\u043D\u0442\u044F\u0431\u0440\u044C","\u041E\u043A\u0442\u044F\u0431\u0440\u044C","\u041D\u043E\u044F\u0431\u0440\u044C","\u0414\u0435\u043A\u0430\u0431\u0440\u044C"],monthsShort:["\u042F\u043D\u0432","\u0424\u0435\u0432","\u041C\u0430\u0440","\u0410\u043F\u0440","\u041C\u0430\u0439","\u0418\u044E\u043D","\u0418\u044E\u043B","\u0410\u0432\u0433","\u0421\u0435\u043D","\u041E\u043A\u0442","\u041D\u043E\u044F","\u0414\u0435\u043A"],today:"\u0421\u0435\u0433\u043E\u0434\u043D\u044F",clear:"\u041E\u0447\u0438\u0441\u0442\u0438\u0442\u044C",dateFormat:"dd.MM.yyyy",timeFormat:"HH:mm",firstDay:1},startDate:new Date,firstDay:"",weekends:[6,0],dateFormat:"",altField:"",altFieldDateFormat:"T",toggleSelected:!0,keyboardNav:!0,selectedDates:!1,container:"",isMobile:!1,visible:!1,position:"bottom left",offset:12,view:t.days,minView:t.days,showOtherMonths:!0,selectOtherMonths:!0,moveToOtherMonthsOnSelect:!0,showOtherYears:!0,selectOtherYears:!0,moveToOtherYearsOnSelect:!0,minDate:"",maxDate:"",disableNavWhenOutOfRange:!0,multipleDates:!1,multipleDatesSeparator:", ",range:!1,dynamicRange:!0,buttons:!1,monthsField:"monthsShort",showEvent:"focus",autoClose:!1,fixedHeight:!1,prevHtml:'<svg><path d="M 17,12 l -5,5 l 5,5"></path></svg>',nextHtml:'<svg><path d="M 14,12 l 5,5 l -5,5"></path></svg>',navTitles:{days:"MMMM, <i>yyyy</i>",months:"yyyy",years:"yyyy1 - yyyy2"},timepicker:!1,onlyTimepicker:!1,dateTimeSeparator:" ",timeFormat:"",minHours:0,maxHours:24,minMinutes:0,maxMinutes:59,hoursStep:1,minutesStep:1,onSelect:!1,onChangeViewDate:!1,onChangeView:!1,onRenderCell:!1,onShow:!1,onHide:!1,onClickDayName:!1};function n(P){let x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:document;return typeof P=="string"?x.querySelector(P):P}function a(){let{tagName:P="div",className:x="",innerHtml:T="",id:w="",attrs:D={}}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},q=document.createElement(P);return x&&q.classList.add(...x.split(" ")),w&&(q.id=w),T&&(q.innerHTML=T),D&&s(q,D),q}function s(P,x){for(let[T,w]of Object.entries(x))w!==void 0&&P.setAttribute(T,w);return P}function l(P){return new Date(P.getFullYear(),P.getMonth()+1,0).getDate()}function d(P){let x=P.getHours(),{hours:T,dayPeriod:w}=h(x);return{year:P.getFullYear(),month:P.getMonth(),fullMonth:P.getMonth()+1<10?"0"+(P.getMonth()+1):P.getMonth()+1,date:P.getDate(),fullDate:P.getDate()<10?"0"+P.getDate():P.getDate(),day:P.getDay(),hours:x,fullHours:m(x),hours12:T,dayPeriod:w,fullHours12:m(T),minutes:P.getMinutes(),fullMinutes:P.getMinutes()<10?"0"+P.getMinutes():P.getMinutes()}}function h(P){return{dayPeriod:P>11?"pm":"am",hours:P%12==0?12:P%12}}function m(P){return P<10?"0"+P:P}function f(P){let x=10*Math.floor(P.getFullYear()/10);return[x,x+9]}function b(){let P=[];for(var x=arguments.length,T=new Array(x),w=0;w<x;w++)T[w]=arguments[w];return T.forEach((D=>{if(typeof D=="object")for(let q in D)D[q]&&P.push(q);else D&&P.push(D)})),P.join(" ")}function g(P,x){let T=arguments.length>2&&arguments[2]!==void 0?arguments[2]:t.days;if(!P||!x)return!1;let w=d(P),D=d(x);return{[t.days]:w.date===D.date&&w.month===D.month&&w.year===D.year,[t.months]:w.month===D.month&&w.year===D.year,[t.years]:w.year===D.year}[T]}function v(P,x,T){let w=z(P,!1).getTime(),D=z(x,!1).getTime();return T?w>=D:w>D}function y(P,x){return!v(P,x,!0)}function z(P){let x=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1],T=new Date(P.getTime());return typeof x!="boolean"||x||(function(w){w.setHours(0,0,0,0)})(T),T}function E(P,x,T){P.length?P.forEach((w=>{w.addEventListener(x,T)})):P.addEventListener(x,T)}function N(P,x){return!(!P||P===document||P instanceof DocumentFragment)&&(P.matches(x)?P:N(P.parentNode,x))}function U(P,x,T){return P>T?T:P<x?x:P}function R(P){for(var x=arguments.length,T=new Array(x>1?x-1:0),w=1;w<x;w++)T[w-1]=arguments[w];return T.filter((D=>D)).forEach((D=>{for(let[q,A]of Object.entries(D))if(A!==void 0&&A.toString()==="[object Object]"){let H=P[q]!==void 0?P[q].toString():void 0,j=A.toString(),Q=Array.isArray(A)?[]:{};P[q]=P[q]?H!==j?Q:P[q]:Q,R(P[q],A)}else P[q]=A})),P}function C(P){let x=P;return P instanceof Date||(typeof P=="string"&&/^\d{4}-\d{2}-\d{2}$/.test(P)&&(P+="T00:00:00"),x=new Date(P)),isNaN(x.getTime())&&(console.log(`Unable to convert value "${P}" to Date object`),x=!1),x}function $(P){let x="\\s|\\.|-|/|\\\\|,|\\$|\\!|\\?|:|;";return new RegExp("(^|>|"+x+")("+P+")($|<|"+x+")","g")}function L(P,x,T){return(x=(function(w){var D=(function(q,A){if(typeof q!="object"||q===null)return q;var H=q[Symbol.toPrimitive];if(H!==void 0){var j=H.call(q,"string");if(typeof j!="object")return j;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(q)})(w);return typeof D=="symbol"?D:String(D)})(x))in P?Object.defineProperty(P,x,{value:T,enumerable:!0,configurable:!0,writable:!0}):P[x]=T,P}class K{constructor(){let{type:x,date:T,dp:w,opts:D,body:q}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};L(this,"focus",(()=>{this.$cell.classList.add("-focus-"),this.focused=!0})),L(this,"removeFocus",(()=>{this.$cell.classList.remove("-focus-"),this.focused=!1})),L(this,"select",(()=>{this.$cell.classList.add("-selected-"),this.selected=!0})),L(this,"removeSelect",(()=>{this.$cell.classList.remove("-selected-","-range-from-","-range-to-"),this.selected=!1})),L(this,"onChangeSelectedDate",(()=>{this.isDisabled||(this._handleSelectedStatus(),this.opts.range&&this._handleRangeStatus())})),L(this,"onChangeFocusDate",(A=>{if(!A)return void(this.focused&&this.removeFocus());let H=g(A,this.date,this.type);H?this.focus():!H&&this.focused&&this.removeFocus(),this.opts.range&&this._handleRangeStatus()})),L(this,"render",(()=>(this.$cell.innerHTML=this._getHtml(),this._handleClasses(),this.$cell))),this.type=x,this.singleType=this.type.slice(0,-1),this.date=T,this.dp=w,this.opts=D,this.body=q,this.customData=!1,this.init()}init(){var x,T;let{onRenderCell:w}=this.opts;w&&(this.customData=w({date:this.date,cellType:this.singleType,datepicker:this.dp})),this._createElement(),this._bindDatepickerEvents(),(x=this.customData)!==null&&x!==void 0&&x.disabled?this.dp.disableDate(this.date):((T=this.customData)===null||T===void 0?void 0:T.disabled)===!1&&this.dp.enableDate(this.date)}_bindDatepickerEvents(){this.dp.on(t.eventChangeSelectedDate,this.onChangeSelectedDate),this.dp.on(t.eventChangeFocusDate,this.onChangeFocusDate)}unbindDatepickerEvents(){this.dp.off(t.eventChangeSelectedDate,this.onChangeSelectedDate),this.dp.off(t.eventChangeFocusDate,this.onChangeFocusDate)}_createElement(){var x;let{year:T,month:w,fullMonth:D,date:q,fullDate:A}=d(this.date),H=((x=this.customData)===null||x===void 0?void 0:x.attrs)||{};this.$cell=a({attrs:{"data-year":T,"data-month":w,"data-date":q,"data-iso-date":`${T}-${D}-${A}`,...H}}),this.$cell.adpCell=this}_getClassName(){var x;let T=new Date,{selectOtherMonths:w,selectOtherYears:D}=this.opts,{minDate:q,maxDate:A,isDateDisabled:H}=this.dp,{day:j}=d(this.date),Q=this._isOutOfMinMaxRange(),ie=H(this.date),te=b("air-datepicker-cell",`-${this.singleType}-`,{"-current-":g(T,this.date,this.type),"-min-date-":q&&g(q,this.date,this.type),"-max-date-":A&&g(A,this.date,this.type)}),le="";switch(this.type){case t.days:le=b({"-weekend-":this.dp.isWeekend(j),"-other-month-":this.isOtherMonth,"-disabled-":this.isOtherMonth&&!w||Q||ie});break;case t.months:le=b({"-disabled-":Q});break;case t.years:le=b({"-other-decade-":this.isOtherDecade,"-disabled-":Q||this.isOtherDecade&&!D})}return b(te,le,(x=this.customData)===null||x===void 0?void 0:x.classes).split(" ")}_getHtml(){var x;let{year:T,month:w,date:D}=d(this.date),{showOtherMonths:q,showOtherYears:A}=this.opts;if((x=this.customData)!==null&&x!==void 0&&x.html)return this.customData.html;switch(this.type){case t.days:return!q&&this.isOtherMonth?"":D;case t.months:return this.dp.locale[this.opts.monthsField][w];case t.years:return!A&&this.isOtherDecade?"":T}}_isOutOfMinMaxRange(){let{minDate:x,maxDate:T}=this.dp,{type:w,date:D}=this,{month:q,year:A,date:H}=d(D),j=w===t.days,Q=w===t.years,ie=!!x&&new Date(A,Q?x.getMonth():q,j?H:x.getDate()),te=!!T&&new Date(A,Q?T.getMonth():q,j?H:T.getDate());return x&&T?y(ie,x)||v(te,T):x?y(ie,x):T?v(te,T):void 0}destroy(){this.unbindDatepickerEvents()}_handleRangeStatus(){let{selectedDates:x,focusDate:T,rangeDateTo:w,rangeDateFrom:D}=this.dp,q=x.length;if(this.$cell.classList.remove("-range-from-","-range-to-","-in-range-"),!q)return;let A=D,H=w;if(q===1&&T){let le=v(T,x[0]);A=le?x[0]:T,H=le?T:x[0]}let j=b({"-in-range-":A&&H&&(Q=this.date,ie=A,te=H,v(Q,ie)&&y(Q,te)),"-range-from-":A&&g(this.date,A,this.type),"-range-to-":H&&g(this.date,H,this.type)});var Q,ie,te;j&&this.$cell.classList.add(...j.split(" "))}_handleSelectedStatus(){let x=this.dp._checkIfDateIsSelected(this.date,this.type);x?this.select():!x&&this.selected&&this.removeSelect()}_handleInitialFocusStatus(){g(this.dp.focusDate,this.date,this.type)&&this.focus()}_handleClasses(){this.$cell.setAttribute("class",""),this._handleInitialFocusStatus(),this.dp.hasSelectedDates&&(this._handleSelectedStatus(),this.dp.opts.range&&this._handleRangeStatus()),this.$cell.classList.add(...this._getClassName())}get isDisabled(){return this.$cell.matches(".-disabled-")}get isOtherMonth(){return this.dp.isOtherMonth(this.date)}get isOtherDecade(){return this.dp.isOtherDecade(this.date)}}function ne(P,x,T){return(x=(function(w){var D=(function(q,A){if(typeof q!="object"||q===null)return q;var H=q[Symbol.toPrimitive];if(H!==void 0){var j=H.call(q,"string");if(typeof j!="object")return j;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(q)})(w);return typeof D=="symbol"?D:String(D)})(x))in P?Object.defineProperty(P,x,{value:T,enumerable:!0,configurable:!0,writable:!0}):P[x]=T,P}let we={[t.days]:`<div class="air-datepicker-body--day-names"></div><div class="air-datepicker-body--cells -${t.days}-"></div>`,[t.months]:`<div class="air-datepicker-body--cells -${t.months}-"></div>`,[t.years]:`<div class="air-datepicker-body--cells -${t.years}-"></div>`},De=".air-datepicker-cell";class Pe{constructor(x){let{dp:T,type:w,opts:D}=x;ne(this,"handleClick",(q=>{let A=q.target.closest(De).adpCell;if(A.isDisabled)return;if(!this.dp.isMinViewReached)return void this.dp.down();let H=this.dp._checkIfDateIsSelected(A.date,A.type);H?this.dp._handleAlreadySelectedDates(H,A.date):this.dp.selectDate(A.date)})),ne(this,"handleDayNameClick",(q=>{let A=q.target.getAttribute("data-day-index");this.opts.onClickDayName({dayIndex:Number(A),datepicker:this.dp})})),ne(this,"onChangeCurrentView",(q=>{q!==this.type?this.hide():(this.show(),this.render())})),ne(this,"onMouseOverCell",(q=>{let A=N(q.target,De);this.dp.setFocusDate(!!A&&A.adpCell.date)})),ne(this,"onMouseOutCell",(()=>{this.dp.setFocusDate(!1)})),ne(this,"onClickBody",(q=>{let{onClickDayName:A}=this.opts,H=q.target;H.closest(De)&&this.handleClick(q),A&&H.closest(".air-datepicker-body--day-name")&&this.handleDayNameClick(q)})),ne(this,"onMouseDown",(q=>{this.pressed=!0;let A=N(q.target,De),H=A&&A.adpCell;g(H.date,this.dp.rangeDateFrom)&&(this.rangeFromFocused=!0),g(H.date,this.dp.rangeDateTo)&&(this.rangeToFocused=!0)})),ne(this,"onMouseMove",(q=>{if(!this.pressed||!this.dp.isMinViewReached)return;q.preventDefault();let A=N(q.target,De),H=A&&A.adpCell,{selectedDates:j,rangeDateTo:Q,rangeDateFrom:ie}=this.dp;if(!H||H.isDisabled)return;let{date:te}=H;if(j.length===2){if(this.rangeFromFocused&&!v(te,Q)){let{hours:le,minutes:St}=d(ie);te.setHours(le),te.setMinutes(St),this.dp.rangeDateFrom=te,this.dp.replaceDate(ie,te)}if(this.rangeToFocused&&!y(te,ie)){let{hours:le,minutes:St}=d(Q);te.setHours(le),te.setMinutes(St),this.dp.rangeDateTo=te,this.dp.replaceDate(Q,te)}}})),ne(this,"onMouseUp",(()=>{this.pressed=!1,this.rangeFromFocused=!1,this.rangeToFocused=!1})),ne(this,"onChangeViewDate",((q,A)=>{if(!this.isVisible)return;let H=f(q),j=f(A);switch(this.dp.currentView){case t.days:if(g(q,A,t.months))return;break;case t.months:if(g(q,A,t.years))return;break;case t.years:if(H[0]===j[0]&&H[1]===j[1])return}this.render()})),ne(this,"render",(()=>{this.destroyCells(),this._generateCells(),this.cells.forEach((q=>{this.$cells.appendChild(q.render())}))})),this.dp=T,this.type=w,this.opts=D,this.cells=[],this.$el="",this.pressed=!1,this.isVisible=!0,this.init()}init(){this._buildBaseHtml(),this.type===t.days&&this.renderDayNames(),this.render(),this._bindEvents(),this._bindDatepickerEvents()}_bindEvents(){let{range:x,dynamicRange:T}=this.opts;E(this.$el,"mouseover",this.onMouseOverCell),E(this.$el,"mouseout",this.onMouseOutCell),E(this.$el,"click",this.onClickBody),x&&T&&(E(this.$el,"mousedown",this.onMouseDown),E(this.$el,"mousemove",this.onMouseMove),E(window.document,"mouseup",this.onMouseUp))}_bindDatepickerEvents(){this.dp.on(t.eventChangeViewDate,this.onChangeViewDate),this.dp.on(t.eventChangeCurrentView,this.onChangeCurrentView)}_buildBaseHtml(){this.$el=a({className:`air-datepicker-body -${this.type}-`,innerHtml:we[this.type]}),this.$names=n(".air-datepicker-body--day-names",this.$el),this.$cells=n(".air-datepicker-body--cells",this.$el)}_getDayNamesHtml(){let x=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.dp.locale.firstDay,T="",w=this.dp.isWeekend,{onClickDayName:D}=this.opts,q=x,A=0;for(;A<7;){let H=q%7;T+=`<div class="${b("air-datepicker-body--day-name",{[t.cssClassWeekend]:w(H),"-clickable-":!!D})}" data-day-index='${H}'>${this.dp.locale.daysMin[H]}</div>`,A++,q++}return T}renderDayNames(){this.$names.innerHTML=this._getDayNamesHtml()}_generateCell(x){let{type:T,dp:w,opts:D}=this;return new K({type:T,dp:w,opts:D,date:x,body:this})}_generateCells(){Pe.getDatesFunction(this.type)(this.dp,(x=>{this.cells.push(this._generateCell(x))}))}show(){this.isVisible=!0,this.$el.classList.remove("-hidden-")}hide(){this.isVisible=!1,this.$el.classList.add("-hidden-")}destroyCells(){this.cells.forEach((x=>x.destroy())),this.cells=[],this.$cells.innerHTML=""}destroy(){this.destroyCells(),this.dp.off(t.eventChangeViewDate,this.onChangeViewDate),this.dp.off(t.eventChangeCurrentView,this.onChangeCurrentView)}static getDaysDates(x,T){let{viewDate:w,opts:{fixedHeight:D},locale:{firstDay:q}}=x,A=l(w),{year:H,month:j}=d(w),Q=new Date(H,j,1),ie=new Date(H,j,A),te=Q.getDay()-q,le=6-ie.getDay()+q;te=te<0?te+7:te,le=le>6?le-7:le;let St=(function(ca,ou){let{year:pd,month:Y3,date:Q3}=d(ca);return new Date(pd,Y3,Q3-ou)})(Q,te),Yr=A+te+le,_r=St.getDate(),{year:yn,month:zl}=d(St),sa=0;D&&(Yr=42);let la=[];for(;sa<Yr;){let ca=new Date(yn,zl,_r+sa);T&&T(ca),la.push(ca),sa++}return la}static getMonthsDates(x,T){let{year:w}=x.parsedViewDate,D=0,q=[];for(;D<12;){let A=new Date(w,D);q.push(A),T&&T(A),D++}return q}static getYearsDates(x,T){let w=f(x.viewDate),D=w[0]-1,q=w[1]+1,A=D,H=[];for(;A<=q;){let j=new Date(A,0);H.push(j),T&&T(j),A++}return H}static getDatesFunction(){let x=arguments.length>0&&arguments[0]!==void 0?arguments[0]:t.days;return{[t.days]:Pe.getDaysDates,[t.months]:Pe.getMonthsDates,[t.years]:Pe.getYearsDates}[x]}}function at(P,x,T){return(x=(function(w){var D=(function(q,A){if(typeof q!="object"||q===null)return q;var H=q[Symbol.toPrimitive];if(H!==void 0){var j=H.call(q,"string");if(typeof j!="object")return j;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(q)})(w);return typeof D=="symbol"?D:String(D)})(x))in P?Object.defineProperty(P,x,{value:T,enumerable:!0,configurable:!0,writable:!0}):P[x]=T,P}class er{constructor(x){let{dp:T,opts:w}=x;at(this,"onClickNav",(D=>{let q=N(D.target,".air-datepicker-nav--action");if(!q)return;let A=q.dataset.action;this.dp[A]()})),at(this,"onChangeViewDate",(()=>{this.render(),this._resetNavStatus(),this.handleNavStatus()})),at(this,"onChangeCurrentView",(()=>{this.render(),this._resetNavStatus(),this.handleNavStatus()})),at(this,"onClickNavTitle",(()=>{this.dp.isFinalView||this.dp.up()})),at(this,"update",(()=>{let{prevHtml:D,nextHtml:q}=this.opts;this.$prev.innerHTML=D,this.$next.innerHTML=q,this._resetNavStatus(),this.render(),this.handleNavStatus()})),at(this,"renderDelay",(()=>{setTimeout(this.render)})),at(this,"render",(()=>{this.$title.innerHTML=this._getTitle(),(function(D,q){for(let A in q)q[A]?D.classList.add(A):D.classList.remove(A)})(this.$title,{"-disabled-":this.dp.isFinalView})})),this.dp=T,this.opts=w,this.init()}init(){this._createElement(),this._buildBaseHtml(),this._defineDOM(),this.render(),this.handleNavStatus(),this._bindEvents(),this._bindDatepickerEvents()}_defineDOM(){this.$title=n(".air-datepicker-nav--title",this.$el),this.$prev=n('[data-action="prev"]',this.$el),this.$next=n('[data-action="next"]',this.$el)}_bindEvents(){this.$el.addEventListener("click",this.onClickNav),this.$title.addEventListener("click",this.onClickNavTitle)}_bindDatepickerEvents(){this.dp.on(t.eventChangeViewDate,this.onChangeViewDate),this.dp.on(t.eventChangeCurrentView,this.onChangeCurrentView),this.isNavIsFunction&&(this.dp.on(t.eventChangeSelectedDate,this.renderDelay),this.dp.opts.timepicker&&this.dp.on(t.eventChangeTime,this.render))}destroy(){this.dp.off(t.eventChangeViewDate,this.onChangeViewDate),this.dp.off(t.eventChangeCurrentView,this.onChangeCurrentView),this.isNavIsFunction&&(this.dp.off(t.eventChangeSelectedDate,this.renderDelay),this.dp.opts.timepicker&&this.dp.off(t.eventChangeTime,this.render))}_createElement(){this.$el=a({tagName:"nav",className:"air-datepicker-nav"})}_getTitle(){let{dp:x,opts:T}=this,w=T.navTitles[x.currentView];return typeof w=="function"?w(x):x.formatDate(x.viewDate,w)}handleNavStatus(){let{disableNavWhenOutOfRange:x}=this.opts,{minDate:T,maxDate:w}=this.dp;if(!T&&!w||!x)return;let{year:D,month:q}=this.dp.parsedViewDate,A=!!T&&d(T),H=!!w&&d(w);switch(this.dp.currentView){case t.days:T&&A.month>=q&&A.year>=D&&this._disableNav("prev"),w&&H.month<=q&&H.year<=D&&this._disableNav("next");break;case t.months:T&&A.year>=D&&this._disableNav("prev"),w&&H.year<=D&&this._disableNav("next");break;case t.years:{let j=f(this.dp.viewDate);T&&A.year>=j[0]&&this._disableNav("prev"),w&&H.year<=j[1]&&this._disableNav("next");break}}}_disableNav(x){n('[data-action="'+x+'"]',this.$el).classList.add("-disabled-")}_resetNavStatus(){(function(x){for(var T=arguments.length,w=new Array(T>1?T-1:0),D=1;D<T;D++)w[D-1]=arguments[D];x.length?x.forEach((q=>{q.classList.remove(...w)})):x.classList.remove(...w)})(this.$el.querySelectorAll(".air-datepicker-nav--action"),"-disabled-")}_buildBaseHtml(){let{prevHtml:x,nextHtml:T}=this.opts;this.$el.innerHTML=`<div class="air-datepicker-nav--action" data-action="prev">${x}</div><div class="air-datepicker-nav--title"></div><div class="air-datepicker-nav--action" data-action="next">${T}</div>`}get isNavIsFunction(){let{navTitles:x}=this.opts;return Object.keys(x).find((T=>typeof x[T]=="function"))}}var Pr={today:{content:P=>P.locale.today,onClick:P=>P.setViewDate(new Date)},clear:{content:P=>P.locale.clear,onClick:P=>P.clear()}};class zr{constructor(x){let{dp:T,opts:w}=x;this.dp=T,this.opts=w,this.init()}init(){this.createElement(),this.render()}createElement(){this.$el=a({className:"air-datepicker-buttons"})}destroy(){this.$el.parentNode.removeChild(this.$el)}clearHtml(){return this.$el.innerHTML="",this}generateButtons(){let{buttons:x}=this.opts;Array.isArray(x)||(x=[x]),x.forEach((T=>{let w=T;typeof T=="string"&&Pr[T]&&(w=Pr[T]);let D=this.createButton(w);w.onClick&&this.attachEventToButton(D,w.onClick),this.$el.appendChild(D)}))}attachEventToButton(x,T){x.addEventListener("click",(()=>{T(this.dp)}))}createButton(x){let{content:T,className:w,tagName:D="button",attrs:q={}}=x;return a({tagName:D,innerHtml:`<span tabindex='-1'>${typeof T=="function"?T(this.dp):T}</span>`,className:b("air-datepicker-button",w),attrs:q})}render(){this.generateButtons()}}function Nt(P,x,T){return(x=(function(w){var D=(function(q,A){if(typeof q!="object"||q===null)return q;var H=q[Symbol.toPrimitive];if(H!==void 0){var j=H.call(q,"string");if(typeof j!="object")return j;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(q)})(w);return typeof D=="symbol"?D:String(D)})(x))in P?Object.defineProperty(P,x,{value:T,enumerable:!0,configurable:!0,writable:!0}):P[x]=T,P}class tr{constructor(){let{opts:x,dp:T}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Nt(this,"toggleTimepickerIsActive",(D=>{this.dp.timepickerIsActive=D})),Nt(this,"onChangeSelectedDate",(D=>{let{date:q,updateTime:A=!1}=D;q&&(this.setMinMaxTime(q),this.setCurrentTime(!!A&&q),this.addTimeToDate(q))})),Nt(this,"onChangeLastSelectedDate",(D=>{D&&(this.setTime(D),this.render())})),Nt(this,"onChangeInputRange",(D=>{let q=D.target;this[q.getAttribute("name")]=q.value,this.updateText(),this.dp.trigger(t.eventChangeTime,{hours:this.hours,minutes:this.minutes})})),Nt(this,"onMouseEnterLeave",(D=>{let q=D.target.getAttribute("name"),A=this.$minutesText;q==="hours"&&(A=this.$hoursText),A.classList.toggle("-focus-")})),Nt(this,"onFocus",(()=>{this.toggleTimepickerIsActive(!0)})),Nt(this,"onBlur",(()=>{this.toggleTimepickerIsActive(!1)})),this.opts=x,this.dp=T;let{timeFormat:w}=this.dp.locale;w&&(w.match($("h"))||w.match($("hh")))&&(this.ampm=!0),this.init()}init(){this.setTime(this.dp.lastSelectedDate||this.dp.viewDate),this.createElement(),this.buildHtml(),this.defineDOM(),this.render(),this.bindDatepickerEvents(),this.bindDOMEvents()}bindDatepickerEvents(){this.dp.on(t.eventChangeSelectedDate,this.onChangeSelectedDate),this.dp.on(t.eventChangeLastSelectedDate,this.onChangeLastSelectedDate)}bindDOMEvents(){let x="input";navigator.userAgent.match(/trident/gi)&&(x="change"),E(this.$ranges,x,this.onChangeInputRange),E(this.$ranges,"mouseenter",this.onMouseEnterLeave),E(this.$ranges,"mouseleave",this.onMouseEnterLeave),E(this.$ranges,"focus",this.onFocus),E(this.$ranges,"mousedown",this.onFocus),E(this.$ranges,"blur",this.onBlur)}createElement(){this.$el=a({className:b("air-datepicker-time",{"-am-pm-":this.dp.ampm})})}destroy(){this.dp.off(t.eventChangeSelectedDate,this.onChangeSelectedDate),this.dp.off(t.eventChangeLastSelectedDate,this.onChangeLastSelectedDate),this.$el.parentNode.removeChild(this.$el)}buildHtml(){let{ampm:x,hours:T,displayHours:w,minutes:D,minHours:q,minMinutes:A,maxHours:H,maxMinutes:j,dayPeriod:Q,opts:{hoursStep:ie,minutesStep:te}}=this;this.$el.innerHTML=`<div class="air-datepicker-time--current"> <span class="air-datepicker-time--current-hours">${m(w)}</span> <span class="air-datepicker-time--current-colon">:</span> <span class="air-datepicker-time--current-minutes">${m(D)}</span> `+(x?`<span class='air-datepicker-time--current-ampm'>${Q}</span>`:"")+`</div><div class="air-datepicker-time--sliders"> <div class="air-datepicker-time--row"> <input type="range" name="hours" value="${T}" min="${q}" max="${H}" step="${ie}"/> </div> <div class="air-datepicker-time--row"> <input type="range" name="minutes" value="${D}" min="${A}" max="${j}" step="${te}"/> </div></div>`}defineDOM(){let x=T=>n(T,this.$el);this.$ranges=this.$el.querySelectorAll('[type="range"]'),this.$hours=x('[name="hours"]'),this.$minutes=x('[name="minutes"]'),this.$hoursText=x(".air-datepicker-time--current-hours"),this.$minutesText=x(".air-datepicker-time--current-minutes"),this.$ampm=x(".air-datepicker-time--current-ampm")}setTime(x){this.setMinMaxTime(x),this.setCurrentTime(x)}addTimeToDate(x){x&&(x.setHours(this.hours),x.setMinutes(this.minutes))}setMinMaxTime(x){if(this.setMinMaxTimeFromOptions(),x){let{minDate:T,maxDate:w}=this.dp;T&&g(x,T)&&this.setMinTimeFromMinDate(T),w&&g(x,w)&&this.setMaxTimeFromMaxDate(w)}}setCurrentTime(x){let{hours:T,minutes:w}=x?d(x):this;this.hours=U(T,this.minHours,this.maxHours),this.minutes=U(w,this.minMinutes,this.maxMinutes)}setMinMaxTimeFromOptions(){let{minHours:x,minMinutes:T,maxHours:w,maxMinutes:D}=this.opts;this.minHours=U(x,0,23),this.minMinutes=U(T,0,59),this.maxHours=U(w,0,23),this.maxMinutes=U(D,0,59)}setMinTimeFromMinDate(x){let{lastSelectedDate:T}=this.dp;this.minHours=x.getHours(),T&&T.getHours()>x.getHours()?this.minMinutes=this.opts.minMinutes:this.minMinutes=x.getMinutes()}setMaxTimeFromMaxDate(x){let{lastSelectedDate:T}=this.dp;this.maxHours=x.getHours(),T&&T.getHours()<x.getHours()?this.maxMinutes=this.opts.maxMinutes:this.maxMinutes=x.getMinutes()}updateSliders(){s(this.$hours,{min:this.minHours,max:this.maxHours}).value=this.hours,s(this.$minutes,{min:this.minMinutes,max:this.maxMinutes}).value=this.minutes}updateText(){this.$hoursText.innerHTML=m(this.displayHours),this.$minutesText.innerHTML=m(this.minutes),this.ampm&&(this.$ampm.innerHTML=this.dayPeriod)}set hours(x){this._hours=x;let{hours:T,dayPeriod:w}=h(x);this.displayHours=this.ampm?T:x,this.dayPeriod=w}get hours(){return this._hours}render(){this.updateSliders(),this.updateText()}}function Lt(P,x,T){return(x=(function(w){var D=(function(q,A){if(typeof q!="object"||q===null)return q;var H=q[Symbol.toPrimitive];if(H!==void 0){var j=H.call(q,"string");if(typeof j!="object")return j;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(q)})(w);return typeof D=="symbol"?D:String(D)})(x))in P?Object.defineProperty(P,x,{value:T,enumerable:!0,configurable:!0,writable:!0}):P[x]=T,P}class mo{constructor(x){let{dp:T,opts:w}=x;Lt(this,"pressedKeys",new Set),Lt(this,"hotKeys",new Map([[[["Control","ArrowRight"],["Control","ArrowUp"]],D=>D.month++],[[["Control","ArrowLeft"],["Control","ArrowDown"]],D=>D.month--],[[["Shift","ArrowRight"],["Shift","ArrowUp"]],D=>D.year++],[[["Shift","ArrowLeft"],["Shift","ArrowDown"]],D=>D.year--],[[["Alt","ArrowRight"],["Alt","ArrowUp"]],D=>D.year+=10],[[["Alt","ArrowLeft"],["Alt","ArrowDown"]],D=>D.year-=10],[["Control","Shift","ArrowUp"],(D,q)=>q.up()]])),Lt(this,"handleHotKey",(D=>{let q=this.hotKeys.get(D),A=d(this.getInitialFocusDate());q(A,this.dp);let{year:H,month:j,date:Q}=A,ie=l(new Date(H,j));ie<Q&&(Q=ie);let te=this.dp.getClampedDate(new Date(H,j,Q));this.dp.setFocusDate(te,{viewDateTransition:!0})})),Lt(this,"isHotKeyPressed",(()=>{let D=!1,q=this.pressedKeys.size,A=H=>this.pressedKeys.has(H);for(let[H]of this.hotKeys){if(D)break;if(Array.isArray(H[0]))H.forEach((j=>{D||q!==j.length||(D=j.every(A)&&H)}));else{if(q!==H.length)continue;D=H.every(A)&&H}}return D})),Lt(this,"isArrow",(D=>D>=37&&D<=40)),Lt(this,"onKeyDown",(D=>{if(!this.dp.visible&&!this.dp.treatAsInline)return;let{key:q,which:A}=D,{dp:H,dp:{focusDate:j},opts:Q}=this;this.registerKey(q);let ie=this.isHotKeyPressed();if(ie)return D.preventDefault(),void this.handleHotKey(ie);if(this.isArrow(A))return D.preventDefault(),void this.focusNextCell(q);if(q==="Enter"){if(H.currentView!==Q.minView)return void H.down();if(j){let te=H._checkIfDateIsSelected(j);return void(te?H._handleAlreadySelectedDates(te,j):H.selectDate(j))}}q==="Escape"&&this.dp.hide()})),Lt(this,"onKeyUp",(D=>{this.removeKey(D.key)})),this.dp=T,this.opts=w,this.init()}init(){this.bindKeyboardEvents()}bindKeyboardEvents(){let{$el:x}=this.dp;x.addEventListener("keydown",this.onKeyDown),x.addEventListener("keyup",this.onKeyUp)}destroy(){let{$el:x}=this.dp;x.removeEventListener("keydown",this.onKeyDown),x.removeEventListener("keyup",this.onKeyUp),this.hotKeys=null,this.pressedKeys=null}getInitialFocusDate(){let{focusDate:x,currentView:T,selectedDates:w,parsedViewDate:{year:D,month:q}}=this.dp,A=x||w[w.length-1];if(!A)switch(T){case t.days:A=new Date(D,q,new Date().getDate());break;case t.months:A=new Date(D,q,1);break;case t.years:A=new Date(D,0,1)}return A}focusNextCell(x){let T=this.getInitialFocusDate(),{currentView:w}=this.dp,{days:D,months:q,years:A}=t,H=d(T),j=H.year,Q=H.month,ie=H.date;switch(x){case"ArrowLeft":w===D&&(ie-=1),w===q&&(Q-=1),w===A&&(j-=1);break;case"ArrowUp":w===D&&(ie-=7),w===q&&(Q-=3),w===A&&(j-=4);break;case"ArrowRight":w===D&&(ie+=1),w===q&&(Q+=1),w===A&&(j+=1);break;case"ArrowDown":w===D&&(ie+=7),w===q&&(Q+=3),w===A&&(j+=4)}let te=this.dp.getClampedDate(new Date(j,Q,ie));this.dp.setFocusDate(te,{viewDateTransition:!0})}registerKey(x){this.pressedKeys.add(x)}removeKey(x){this.pressedKeys.delete(x)}}let Ja={on(P,x){this.__events||(this.__events={}),this.__events[P]?this.__events[P].push(x):this.__events[P]=[x]},off(P,x){this.__events&&this.__events[P]&&(this.__events[P]=this.__events[P].filter((T=>T!==x)))},removeAllEvents(){this.__events={}},trigger(P){for(var x=arguments.length,T=new Array(x>1?x-1:0),w=1;w<x;w++)T[w-1]=arguments[w];this.__events&&this.__events[P]&&this.__events[P].forEach((D=>{D(...T)}))}};function ue(P,x,T){return(x=(function(w){var D=(function(q,A){if(typeof q!="object"||q===null)return q;var H=q[Symbol.toPrimitive];if(H!==void 0){var j=H.call(q,"string");if(typeof j!="object")return j;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(q)})(w);return typeof D=="symbol"?D:String(D)})(x))in P?Object.defineProperty(P,x,{value:T,enumerable:!0,configurable:!0,writable:!0}):P[x]=T,P}let Qi="",Xi="",he=!1;class se{static buildGlobalContainer(x){he=!0,Qi=a({className:x,id:x}),n("body").appendChild(Qi)}constructor(x,T){var w=this;if(ue(this,"viewIndexes",[t.days,t.months,t.years]),ue(this,"next",(()=>{let{year:A,month:H}=this.parsedViewDate;switch(this.currentView){case t.days:this.setViewDate(new Date(A,H+1,1));break;case t.months:this.setViewDate(new Date(A+1,H,1));break;case t.years:this.setViewDate(new Date(A+10,0,1))}})),ue(this,"prev",(()=>{let{year:A,month:H}=this.parsedViewDate;switch(this.currentView){case t.days:this.setViewDate(new Date(A,H-1,1));break;case t.months:this.setViewDate(new Date(A-1,H,1));break;case t.years:this.setViewDate(new Date(A-10,0,1))}})),ue(this,"_finishHide",(()=>{this.hideAnimation=!1,this._destroyComponents(),this.$container.removeChild(this.$datepicker)})),ue(this,"setPosition",(function(A){let H=arguments.length>1&&arguments[1]!==void 0&&arguments[1];if(typeof(A=A||w.opts.position)=="function")return void(w.customHide=A({$datepicker:w.$datepicker,$target:w.$el,$pointer:w.$pointer,isViewChange:H,done:w._finishHide}));let j,Q,{isMobile:ie}=w.opts,te=w.$el.getBoundingClientRect(),le=w.$el.getBoundingClientRect(),St=w.$datepicker.offsetParent,Yr=w.$el.offsetParent,_r=w.$datepicker.getBoundingClientRect(),yn=A.split(" "),zl=window.scrollY,sa=window.scrollX,la=w.opts.offset,ca=yn[0],ou=yn[1];if(ie)w.$datepicker.style.cssText="left: 50%; top: 50%";else{if(St===Yr&&St!==document.body&&(le={top:w.$el.offsetTop,left:w.$el.offsetLeft,width:te.width,height:w.$el.offsetHeight},zl=0,sa=0),St!==Yr&&St!==document.body){let pd=St.getBoundingClientRect();le={top:te.top-pd.top,left:te.left-pd.left,width:te.width,height:te.height},zl=0,sa=0}switch(ca){case"top":j=le.top-_r.height-la;break;case"right":Q=le.left+le.width+la;break;case"bottom":j=le.top+le.height+la;break;case"left":Q=le.left-_r.width-la}switch(ou){case"top":j=le.top;break;case"right":Q=le.left+le.width-_r.width;break;case"bottom":j=le.top+le.height-_r.height;break;case"left":Q=le.left;break;case"center":/left|right/.test(ca)?j=le.top+le.height/2-_r.height/2:Q=le.left+le.width/2-_r.width/2}w.$datepicker.style.cssText=`left: ${Q+sa}px; top: ${j+zl}px`}})),ue(this,"_setInputValue",(()=>{let{opts:A,$altField:H,locale:{dateFormat:j}}=this,{altFieldDateFormat:Q,altField:ie}=A;ie&&H&&(H.value=this._getInputValue(Q)),this.$el.value=this._getInputValue(j),this.$el.dispatchEvent(new Event("change"))})),ue(this,"_getInputValue",(A=>{let{selectedDates:H,opts:j}=this,{multipleDates:Q,multipleDatesSeparator:ie}=j;if(!H.length)return"";let te=typeof A=="function",le=te?A(Q?H:H[0]):H.map((St=>this.formatDate(St,A)));return le=te?le:le.join(ie),le})),ue(this,"_checkIfDateIsSelected",(function(A){let H=arguments.length>1&&arguments[1]!==void 0?arguments[1]:t.days,j=!1;return w.selectedDates.some((Q=>{let ie=g(A,Q,H);return j=ie&&Q,ie})),j})),ue(this,"_scheduleCallAfterTransition",(A=>{this._cancelScheduledCall(),A&&A(!1),this._onTransitionEnd=()=>{A&&A(!0)},this.$datepicker.addEventListener("transitionend",this._onTransitionEnd,{once:!0})})),ue(this,"_cancelScheduledCall",(()=>{this.$datepicker.removeEventListener("transitionend",this._onTransitionEnd)})),ue(this,"setViewDate",(A=>{if(!((A=C(A))instanceof Date)||g(A,this.viewDate))return;let H=this.viewDate;this.viewDate=A;let{onChangeViewDate:j}=this.opts;if(j){let{month:Q,year:ie}=this.parsedViewDate;j({month:Q,year:ie,decade:this.curDecade})}this.trigger(t.eventChangeViewDate,A,H)})),ue(this,"setFocusDate",(function(A){let H=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};(!A||(A=C(A))instanceof Date)&&(w.focusDate=A,w.trigger(t.eventChangeFocusDate,A,H))})),ue(this,"setCurrentView",(function(A){let H=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(w.viewIndexes.includes(A)){if(w.currentView=A,w.elIsInput&&w.visible&&w.setPosition(void 0,!0),w.trigger(t.eventChangeCurrentView,A),!w.views[A]){let j=w.views[A]=new Pe({dp:w,opts:w.opts,type:A});w.shouldUpdateDOM&&w.$content.appendChild(j.$el)}w.opts.onChangeView&&!H.silent&&w.opts.onChangeView(A)}})),ue(this,"_updateLastSelectedDate",(A=>{this.lastSelectedDate=A,this.trigger(t.eventChangeLastSelectedDate,A)})),ue(this,"destroy",(()=>{if(this.isDestroyed)return;let{showEvent:A,isMobile:H}=this.opts,j=this.$datepicker.parentNode;j&&j.removeChild(this.$datepicker),this.$el.removeEventListener(A,this._onFocus),this.$el.removeEventListener("blur",this._onBlur),window.removeEventListener("resize",this._onResize),H&&this._removeMobileAttributes(),this.keyboardNav&&this.keyboardNav.destroy(),this.views=null,this.nav=null,this.$datepicker=null,this.opts={},this.$customContainer=null,this.viewDate=null,this.focusDate=null,this.selectedDates=[],this.rangeDateFrom=null,this.rangeDateTo=null,this.isDestroyed=!0})),ue(this,"update",(function(){let A=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},H=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},j=R({},w.opts),{silent:Q}=H;R(w.opts,A);let{timepicker:ie,buttons:te,range:le,selectedDates:St,isMobile:Yr}=w.opts,_r=w.visible||w.treatAsInline;w._createMinMaxDates(),w._limitViewDateByMaxMinDates(),w._handleLocale(),St&&(w.selectedDates=[],w.selectDate(St,{silent:Q})),A.view&&w.setCurrentView(A.view,{silent:Q}),w._setInputValue(),j.range&&!le?(w.rangeDateTo=!1,w.rangeDateFrom=!1):!j.range&&le&&w.selectedDates.length&&(w.rangeDateFrom=w.selectedDates[0],w.rangeDateTo=w.selectedDates[1]),j.timepicker&&!ie?(_r&&w.timepicker.destroy(),w.timepicker=!1,w.$timepicker.parentNode.removeChild(w.$timepicker)):!j.timepicker&&ie&&w._addTimepicker(),!j.buttons&&te?w._addButtons():j.buttons&&!te?(w.buttons.destroy(),w.$buttons.parentNode.removeChild(w.$buttons)):_r&&j.buttons&&te&&w.buttons.clearHtml().render(),!j.isMobile&&Yr?(w.treatAsInline||Xi||w._createMobileOverlay(),w._addMobileAttributes(),w.visible&&w._showMobileOverlay()):j.isMobile&&!Yr&&(w._removeMobileAttributes(),w.visible&&(Xi.classList.remove("-active-"),typeof w.opts.position!="function"&&w.setPosition())),_r&&(w.nav.update(),w.views[w.currentView].render(),w.currentView===t.days&&w.views[w.currentView].renderDayNames())})),ue(this,"disableDate",((A,H)=>{(Array.isArray(A)?A:[A]).forEach((j=>{let Q=C(j);if(!Q)return;let ie=H?"delete":"add";this.disabledDates[ie](this.formatDate(Q,"yyyy-MM-dd"));let te=this.getCell(Q,this.currentViewSingular);te&&te.adpCell.render()}),[])})),ue(this,"enableDate",(A=>{this.disableDate(A,!0)})),ue(this,"isDateDisabled",(A=>{let H=C(A);return this.disabledDates.has(this.formatDate(H,"yyyy-MM-dd"))})),ue(this,"isOtherMonth",(A=>{let{month:H}=d(A);return H!==this.parsedViewDate.month})),ue(this,"isOtherYear",(A=>{let{year:H}=d(A);return H!==this.parsedViewDate.year})),ue(this,"isOtherDecade",(A=>{let{year:H}=d(A),[j,Q]=f(this.viewDate);return H<j||H>Q})),ue(this,"_onChangeSelectedDate",(A=>{let{silent:H}=A;setTimeout((()=>{this._setInputValue(),this.opts.onSelect&&!H&&this._triggerOnSelect()}))})),ue(this,"_onChangeFocusedDate",(function(A){let{viewDateTransition:H}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!A)return;let j=!1;H&&(j=w.isOtherMonth(A)||w.isOtherYear(A)||w.isOtherDecade(A)),j&&w.setViewDate(A),w.opts.onFocus&&w.opts.onFocus({datepicker:w,date:A})})),ue(this,"_onChangeTime",(A=>{let{hours:H,minutes:j}=A,Q=new Date,{lastSelectedDate:ie,opts:{onSelect:te}}=this,le=ie;ie||(le=Q);let St=this.getCell(le,this.currentViewSingular),Yr=St&&St.adpCell;Yr&&Yr.isDisabled||(le.setHours(H),le.setMinutes(j),ie?(this._setInputValue(),te&&this._triggerOnSelect()):this.selectDate(le))})),ue(this,"_onFocus",(A=>{this.visible||this.show()})),ue(this,"_onBlur",(A=>{this.inFocus||!this.visible||this.opts.isMobile||this.hide()})),ue(this,"_onMouseDown",(A=>{this.inFocus=!0})),ue(this,"_onMouseUp",(A=>{this.inFocus=!1,this.$el.focus()})),ue(this,"_onResize",(()=>{this.visible&&typeof this.opts.position!="function"&&this.setPosition()})),ue(this,"_onClickOverlay",(()=>{this.visible&&this.hide()})),ue(this,"getViewDates",(function(){let A=arguments.length>0&&arguments[0]!==void 0?arguments[0]:t.days;return Pe.getDatesFunction(A)(w)})),ue(this,"isWeekend",(A=>this.opts.weekends.includes(A))),ue(this,"getClampedDate",(A=>{let{minDate:H,maxDate:j}=this,Q=A;return j&&v(A,j)?Q=j:H&&y(A,H)&&(Q=H),Q})),this.$el=n(x),!this.$el)return;this.$datepicker=a({className:"air-datepicker"}),this.opts=R({},r,T),this.$customContainer=!!this.opts.container&&n(this.opts.container),this.$altField=n(this.opts.altField||!1);let{view:D,startDate:q}=this.opts;q||(this.opts.startDate=new Date),this.$el.nodeName==="INPUT"&&(this.elIsInput=!0),this.inited=!1,this.visible=!1,this.viewDate=C(this.opts.startDate),this.focusDate=!1,this.initialReadonly=this.$el.getAttribute("readonly"),this.customHide=!1,this.currentView=D,this.selectedDates=[],this.disabledDates=new Set,this.isDestroyed=!1,this.views={},this.keys=[],this.rangeDateFrom="",this.rangeDateTo="",this.timepickerIsActive=!1,this.treatAsInline=this.opts.inline||!this.elIsInput,this.init()}init(){let{opts:x,treatAsInline:T,opts:{inline:w,isMobile:D,selectedDates:q,keyboardNav:A,onlyTimepicker:H}}=this,j=n("body");(!he||he&&Qi&&!j.contains(Qi))&&!w&&this.elIsInput&&!this.$customContainer&&se.buildGlobalContainer(se.defaultGlobalContainerId),!D||Xi||T||this._createMobileOverlay(),this._handleLocale(),this._bindSubEvents(),this._createMinMaxDates(),this._limitViewDateByMaxMinDates(),this.elIsInput&&(w||this._bindEvents(),A&&!H&&(this.keyboardNav=new mo({dp:this,opts:x}))),q&&this.selectDate(q,{silent:!0}),this.opts.visible&&!T&&this.show(),D&&!T&&this.$el.setAttribute("readonly",!0),T&&this._createComponents()}_createMobileOverlay(){Xi=a({className:"air-datepicker-overlay"}),Qi.appendChild(Xi)}_createComponents(){let{opts:x,treatAsInline:T,opts:{inline:w,buttons:D,timepicker:q,position:A,classes:H,onlyTimepicker:j,isMobile:Q}}=this;this._buildBaseHtml(),this.elIsInput&&(w||this._setPositionClasses(A)),!w&&this.elIsInput||this.$datepicker.classList.add("-inline-"),H&&this.$datepicker.classList.add(...H.split(" ")),j&&this.$datepicker.classList.add("-only-timepicker-"),Q&&!T&&this._addMobileAttributes(),this.views[this.currentView]=new Pe({dp:this,type:this.currentView,opts:x}),this.nav=new er({dp:this,opts:x}),q&&this._addTimepicker(),D&&this._addButtons(),this.$content.appendChild(this.views[this.currentView].$el),this.$nav.appendChild(this.nav.$el)}_destroyComponents(){for(let x in this.views)this.views[x].destroy();this.views={},this.nav.destroy(),this.timepicker&&this.timepicker.destroy()}_addMobileAttributes(){Xi.addEventListener("click",this._onClickOverlay),this.$datepicker.classList.add("-is-mobile-"),this.$el.setAttribute("readonly",!0)}_removeMobileAttributes(){Xi.removeEventListener("click",this._onClickOverlay),this.$datepicker.classList.remove("-is-mobile-"),this.initialReadonly||this.initialReadonly===""||this.$el.removeAttribute("readonly")}_createMinMaxDates(){let{minDate:x,maxDate:T}=this.opts;this.minDate=!!x&&C(x),this.maxDate=!!T&&C(T)}_addTimepicker(){this.$timepicker=a({className:"air-datepicker--time"}),this.$datepicker.appendChild(this.$timepicker),this.timepicker=new tr({dp:this,opts:this.opts}),this.$timepicker.appendChild(this.timepicker.$el)}_addButtons(){this.$buttons=a({className:"air-datepicker--buttons"}),this.$datepicker.appendChild(this.$buttons),this.buttons=new zr({dp:this,opts:this.opts}),this.$buttons.appendChild(this.buttons.$el)}_bindSubEvents(){this.on(t.eventChangeSelectedDate,this._onChangeSelectedDate),this.on(t.eventChangeFocusDate,this._onChangeFocusedDate),this.on(t.eventChangeTime,this._onChangeTime)}_buildBaseHtml(){let{inline:x}=this.opts;var T,w;this.elIsInput?x?(T=this.$datepicker,(w=this.$el).parentNode.insertBefore(T,w.nextSibling)):this.$container.appendChild(this.$datepicker):this.$el.appendChild(this.$datepicker),this.$datepicker.innerHTML='<i class="air-datepicker--pointer"></i><div class="air-datepicker--navigation"></div><div class="air-datepicker--content"></div>',this.$content=n(".air-datepicker--content",this.$datepicker),this.$pointer=n(".air-datepicker--pointer",this.$datepicker),this.$nav=n(".air-datepicker--navigation",this.$datepicker)}_handleLocale(){let{locale:x,dateFormat:T,firstDay:w,timepicker:D,onlyTimepicker:q,timeFormat:A,dateTimeSeparator:H}=this.opts;var j;this.locale=(j=x,JSON.parse(JSON.stringify(j))),T&&(this.locale.dateFormat=T),A!==void 0&&A!==""&&(this.locale.timeFormat=A);let{timeFormat:Q}=this.locale;if(w!==""&&(this.locale.firstDay=w),D&&typeof T!="function"){let ie=Q?H:"";this.locale.dateFormat=[this.locale.dateFormat,Q||""].join(ie)}q&&typeof T!="function"&&(this.locale.dateFormat=this.locale.timeFormat)}_setPositionClasses(x){if(typeof x=="function")return void this.$datepicker.classList.add("-custom-position-");let T=(x=x.split(" "))[0],w=`air-datepicker -${T}-${x[1]}- -from-${T}-`;this.$datepicker.classList.add(...w.split(" "))}_bindEvents(){this.$el.addEventListener(this.opts.showEvent,this._onFocus),this.$el.addEventListener("blur",this._onBlur),this.$datepicker.addEventListener("mousedown",this._onMouseDown),this.$datepicker.addEventListener("mouseup",this._onMouseUp),window.addEventListener("resize",this._onResize)}_limitViewDateByMaxMinDates(){let{viewDate:x,minDate:T,maxDate:w}=this;w&&v(x,w)&&this.setViewDate(w),T&&y(x,T)&&this.setViewDate(T)}formatDate(){let x=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.viewDate,T=arguments.length>1?arguments[1]:void 0;if(x=C(x),!(x instanceof Date))return;let w=T,D=this.locale,q=d(x),A=q.dayPeriod,H=f(x),j=se.replacer,Q={T:x.getTime(),m:q.minutes,mm:q.fullMinutes,h:q.hours12,hh:q.fullHours12,H:q.hours,HH:q.fullHours,aa:A,AA:A.toUpperCase(),E:D.daysShort[q.day],EEEE:D.days[q.day],d:q.date,dd:q.fullDate,M:q.month+1,MM:q.fullMonth,MMM:D.monthsShort[q.month],MMMM:D.months[q.month],yy:q.year.toString().slice(-2),yyyy:q.year,yyyy1:H[0],yyyy2:H[1]};for(let[ie,te]of Object.entries(Q))w=j(w,$(ie),te);return w}down(x){this._handleUpDownActions(x,"down")}up(x){this._handleUpDownActions(x,"up")}selectDate(x){let T,w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{currentView:D,parsedViewDate:q,selectedDates:A}=this,{updateTime:H,silent:j}=w,{moveToOtherMonthsOnSelect:Q,moveToOtherYearsOnSelect:ie,multipleDates:te,range:le,autoClose:St,onBeforeSelect:Yr}=this.opts,_r=A.length;if(Array.isArray(x))return x.forEach((yn=>{this.selectDate(yn,w)})),new Promise((yn=>{setTimeout(yn)}));if((x=C(x))instanceof Date){if(Yr&&!j&&!Yr({date:x,datepicker:this}))return Promise.resolve();if(D===t.days&&x.getMonth()!==q.month&&Q&&(T=new Date(x.getFullYear(),x.getMonth(),1)),D===t.years&&x.getFullYear()!==q.year&&ie&&(T=new Date(x.getFullYear(),0,1)),T&&this.setViewDate(T),te&&!le){if(_r===te)return;this._checkIfDateIsSelected(x)||A.push(x)}else if(le)switch(_r){case 1:A.push(x),this.rangeDateTo||(this.rangeDateTo=x),v(this.rangeDateFrom,this.rangeDateTo)&&(this.rangeDateTo=this.rangeDateFrom,this.rangeDateFrom=x),this.selectedDates=[this.rangeDateFrom,this.rangeDateTo];break;case 2:this.selectedDates=[x],this.rangeDateFrom=x,this.rangeDateTo="";break;default:this.selectedDates=[x],this.rangeDateFrom=x}else this.selectedDates=[x];return this.trigger(t.eventChangeSelectedDate,{action:t.actionSelectDate,silent:w?.silent,date:x,updateTime:H}),this._updateLastSelectedDate(x),St&&!this.timepickerIsActive&&this.visible&&(te||le?le&&_r===1&&this.hide():this.hide()),new Promise((yn=>{setTimeout(yn)}))}}unselectDate(x){let T=this.selectedDates,w=this;if((x=C(x))instanceof Date)return T.some(((D,q)=>{if(g(D,x))return T.splice(q,1),w.selectedDates.length?(w.rangeDateTo="",w.rangeDateFrom=T[0],w._updateLastSelectedDate(w.selectedDates[w.selectedDates.length-1])):(w.rangeDateFrom="",w.rangeDateTo="",w._updateLastSelectedDate(!1)),this.trigger(t.eventChangeSelectedDate,{action:t.actionUnselectDate,date:x}),!0}))}replaceDate(x,T){let w=this.selectedDates.find((q=>g(q,x,this.currentView))),D=this.selectedDates.indexOf(w);D<0||g(this.selectedDates[D],T,this.currentView)||(this.selectedDates[D]=T,this.trigger(t.eventChangeSelectedDate,{action:t.actionSelectDate,date:T,updateTime:!0}),this._updateLastSelectedDate(T))}clear(){let x=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return this.selectedDates=[],this.rangeDateFrom=!1,this.rangeDateTo=!1,this.lastSelectedDate=!1,this.trigger(t.eventChangeSelectedDate,{action:t.actionUnselectDate,silent:x.silent}),new Promise((T=>{setTimeout(T)}))}show(){let{onShow:x,isMobile:T}=this.opts;this._cancelScheduledCall(),this.visible||this.hideAnimation||this._createComponents(),this.setPosition(this.opts.position),this.$datepicker.classList.add("-active-"),this.visible=!0,x&&this._scheduleCallAfterTransition(x),T&&this._showMobileOverlay()}hide(){let{onHide:x,isMobile:T}=this.opts,w=this._hasTransition();this.visible=!1,this.hideAnimation=!0,this.$datepicker.classList.remove("-active-"),this.customHide&&this.customHide(),this.elIsInput&&this.$el.blur(),this._scheduleCallAfterTransition((D=>{!this.customHide&&(D&&w||!D&&!w)&&this._finishHide(),x&&x(D)})),T&&Xi.classList.remove("-active-")}_triggerOnSelect(){let x=[],T=[],{selectedDates:w,locale:D,opts:{onSelect:q,multipleDates:A,range:H}}=this,j=A||H,Q=typeof D.dateFormat=="function";w.length&&(x=w.map(z),T=Q?A?D.dateFormat(x):x.map((ie=>D.dateFormat(ie))):x.map((ie=>this.formatDate(ie,D.dateFormat)))),q({date:j?x:x[0],formattedDate:j?T:T[0],datepicker:this})}_handleAlreadySelectedDates(x,T){let{selectedDates:w,rangeDateFrom:D,rangeDateTo:q}=this,{range:A,toggleSelected:H}=this.opts,j=w.length,Q=typeof H=="function"?H({datepicker:this,date:T}):H,ie=!!(A&&j===1&&x),te=ie?z(T):T;A&&!Q&&(j!==2&&this.selectDate(te),j===2&&g(D,q))||(Q?this.unselectDate(te):this._updateLastSelectedDate(ie?te:x))}_handleUpDownActions(x,T){if(!((x=C(x||this.focusDate||this.viewDate))instanceof Date))return;let w=T==="up"?this.viewIndex+1:this.viewIndex-1;w>2&&(w=2),w<0&&(w=0),this.setViewDate(new Date(x.getFullYear(),x.getMonth(),1)),this.setCurrentView(this.viewIndexes[w])}getCell(x){let T=arguments.length>1&&arguments[1]!==void 0?arguments[1]:t.day;if(!((x=C(x))instanceof Date))return;let{year:w,month:D,date:q}=d(x),A=`[data-year="${w}"]`,H=`[data-month="${D}"]`,j={[t.day]:`${A}${H}[data-date="${q}"]`,[t.month]:`${A}${H}`,[t.year]:`${A}`};return this.views[this.currentView]?this.views[this.currentView].$el.querySelector(j[T]):void 0}_showMobileOverlay(){Xi.classList.add("-active-")}_hasTransition(){return window.getComputedStyle(this.$datepicker).getPropertyValue("transition-duration").split(", ").reduce(((x,T)=>parseFloat(T)+x),0)>0}get shouldUpdateDOM(){return this.visible||this.treatAsInline}get parsedViewDate(){return d(this.viewDate)}get currentViewSingular(){return this.currentView.slice(0,-1)}get curDecade(){return f(this.viewDate)}get viewIndex(){return this.viewIndexes.indexOf(this.currentView)}get isFinalView(){return this.currentView===t.years}get hasSelectedDates(){return this.selectedDates.length>0}get isMinViewReached(){return this.currentView===this.opts.minView||this.currentView===t.days}get $container(){return this.$customContainer||Qi}static replacer(x,T,w){return x.replace(T,(function(D,q,A,H){return q+w+H}))}}var ke;return ue(se,"defaults",r),ue(se,"version","3.6.0"),ue(se,"defaultGlobalContainerId","air-datepicker-global-container"),ke=se.prototype,Object.assign(ke,Ja),i.default})()}))});var py=Hn((toe,dy)=>{var zi=-1,Br=1,Qt=0;function Zl(o,i,t,r,n){if(o===i)return o?[[Qt,o]]:[];if(t!=null){var a=l9(o,i,t);if(a)return a}var s=km(o,i),l=o.substring(0,s);o=o.substring(s),i=i.substring(s),s=hp(o,i);var d=o.substring(o.length-s);o=o.substring(0,o.length-s),i=i.substring(0,i.length-s);var h=e9(o,i);return l&&h.unshift([Qt,l]),d&&h.push([Qt,d]),Sm(h,n),r&&i9(h),h}function e9(o,i){var t;if(!o)return[[Br,i]];if(!i)return[[zi,o]];var r=o.length>i.length?o:i,n=o.length>i.length?i:o,a=r.indexOf(n);if(a!==-1)return t=[[Br,r.substring(0,a)],[Qt,n],[Br,r.substring(a+n.length)]],o.length>i.length&&(t[0][0]=t[2][0]=zi),t;if(n.length===1)return[[zi,o],[Br,i]];var s=r9(o,i);if(s){var l=s[0],d=s[1],h=s[2],m=s[3],f=s[4],b=Zl(l,h),g=Zl(d,m);return b.concat([[Qt,f]],g)}return t9(o,i)}function t9(o,i){for(var t=o.length,r=i.length,n=Math.ceil((t+r)/2),a=n,s=2*n,l=new Array(s),d=new Array(s),h=0;h<s;h++)l[h]=-1,d[h]=-1;l[a+1]=0,d[a+1]=0;for(var m=t-r,f=m%2!==0,b=0,g=0,v=0,y=0,z=0;z<n;z++){for(var E=-z+b;E<=z-g;E+=2){var N=a+E,U;E===-z||E!==z&&l[N-1]<l[N+1]?U=l[N+1]:U=l[N-1]+1;for(var R=U-E;U<t&&R<r&&o.charAt(U)===i.charAt(R);)U++,R++;if(l[N]=U,U>t)g+=2;else if(R>r)b+=2;else if(f){var C=a+m-E;if(C>=0&&C<s&&d[C]!==-1){var $=t-d[C];if(U>=$)return ty(o,i,U,R)}}}for(var L=-z+v;L<=z-y;L+=2){var C=a+L,$;L===-z||L!==z&&d[C-1]<d[C+1]?$=d[C+1]:$=d[C-1]+1;for(var K=$-L;$<t&&K<r&&o.charAt(t-$-1)===i.charAt(r-K-1);)$++,K++;if(d[C]=$,$>t)y+=2;else if(K>r)v+=2;else if(!f){var N=a+m-L;if(N>=0&&N<s&&l[N]!==-1){var U=l[N],R=a+U-N;if($=t-$,U>=$)return ty(o,i,U,R)}}}}return[[zi,o],[Br,i]]}function ty(o,i,t,r){var n=o.substring(0,t),a=i.substring(0,r),s=o.substring(t),l=i.substring(r),d=Zl(n,a),h=Zl(s,l);return d.concat(h)}function km(o,i){if(!o||!i||o.charAt(0)!==i.charAt(0))return 0;for(var t=0,r=Math.min(o.length,i.length),n=r,a=0;t<n;)o.substring(a,n)==i.substring(a,n)?(t=n,a=t):r=n,n=Math.floor((r-t)/2+t);return ay(o.charCodeAt(n-1))&&n--,n}function ry(o,i){var t=o.length,r=i.length;if(t==0||r==0)return 0;t>r?o=o.substring(t-r):t<r&&(i=i.substring(0,t));var n=Math.min(t,r);if(o==i)return n;for(var a=0,s=1;;){var l=o.substring(n-s),d=i.indexOf(l);if(d==-1)return a;s+=d,(d==0||o.substring(n-s)==i.substring(0,s))&&(a=s,s++)}}function hp(o,i){if(!o||!i||o.slice(-1)!==i.slice(-1))return 0;for(var t=0,r=Math.min(o.length,i.length),n=r,a=0;t<n;)o.substring(o.length-n,o.length-a)==i.substring(i.length-n,i.length-a)?(t=n,a=t):r=n,n=Math.floor((r-t)/2+t);return sy(o.charCodeAt(o.length-n))&&n--,n}function r9(o,i){var t=o.length>i.length?o:i,r=o.length>i.length?i:o;if(t.length<4||r.length*2<t.length)return null;function n(g,v,y){for(var z=g.substring(y,y+Math.floor(g.length/4)),E=-1,N="",U,R,C,$;(E=v.indexOf(z,E+1))!==-1;){var L=km(g.substring(y),v.substring(E)),K=hp(g.substring(0,y),v.substring(0,E));N.length<K+L&&(N=v.substring(E-K,E)+v.substring(E,E+L),U=g.substring(0,y-K),R=g.substring(y+L),C=v.substring(0,E-K),$=v.substring(E+L))}return N.length*2>=g.length?[U,R,C,$,N]:null}var a=n(t,r,Math.ceil(t.length/4)),s=n(t,r,Math.ceil(t.length/2)),l;if(!a&&!s)return null;s?a?l=a[4].length>s[4].length?a:s:l=s:l=a;var d,h,m,f;o.length>i.length?(d=l[0],h=l[1],m=l[2],f=l[3]):(m=l[0],f=l[1],d=l[2],h=l[3]);var b=l[4];return[d,h,m,f,b]}function i9(o){for(var i=!1,t=[],r=0,n=null,a=0,s=0,l=0,d=0,h=0;a<o.length;)o[a][0]==Qt?(t[r++]=a,s=d,l=h,d=0,h=0,n=o[a][1]):(o[a][0]==Br?d+=o[a][1].length:h+=o[a][1].length,n&&n.length<=Math.max(s,l)&&n.length<=Math.max(d,h)&&(o.splice(t[r-1],0,[zi,n]),o[t[r-1]+1][0]=Br,r--,r--,a=r>0?t[r-1]:-1,s=0,l=0,d=0,h=0,n=null,i=!0)),a++;for(i&&Sm(o),a9(o),a=1;a<o.length;){if(o[a-1][0]==zi&&o[a][0]==Br){var m=o[a-1][1],f=o[a][1],b=ry(m,f),g=ry(f,m);b>=g?(b>=m.length/2||b>=f.length/2)&&(o.splice(a,0,[Qt,f.substring(0,b)]),o[a-1][1]=m.substring(0,m.length-b),o[a+1][1]=f.substring(b),a++):(g>=m.length/2||g>=f.length/2)&&(o.splice(a,0,[Qt,m.substring(0,g)]),o[a-1][0]=Br,o[a-1][1]=f.substring(0,f.length-g),o[a+1][0]=zi,o[a+1][1]=m.substring(g),a++),a++}a++}}var iy=/[^a-zA-Z0-9]/,ny=/\s/,oy=/[\r\n]/,n9=/\n\r?\n$/,o9=/^\r?\n\r?\n/;function a9(o){function i(g,v){if(!g||!v)return 6;var y=g.charAt(g.length-1),z=v.charAt(0),E=y.match(iy),N=z.match(iy),U=E&&y.match(ny),R=N&&z.match(ny),C=U&&y.match(oy),$=R&&z.match(oy),L=C&&g.match(n9),K=$&&v.match(o9);return L||K?5:C||$?4:E&&!U&&R?3:U||R?2:E||N?1:0}for(var t=1;t<o.length-1;){if(o[t-1][0]==Qt&&o[t+1][0]==Qt){var r=o[t-1][1],n=o[t][1],a=o[t+1][1],s=hp(r,n);if(s){var l=n.substring(n.length-s);r=r.substring(0,r.length-s),n=l+n.substring(0,n.length-s),a=l+a}for(var d=r,h=n,m=a,f=i(r,n)+i(n,a);n.charAt(0)===a.charAt(0);){r+=n.charAt(0),n=n.substring(1)+a.charAt(0),a=a.substring(1);var b=i(r,n)+i(n,a);b>=f&&(f=b,d=r,h=n,m=a)}o[t-1][1]!=d&&(d?o[t-1][1]=d:(o.splice(t-1,1),t--),o[t][1]=h,m?o[t+1][1]=m:(o.splice(t+1,1),t--))}t++}}function Sm(o,i){o.push([Qt,""]);for(var t=0,r=0,n=0,a="",s="",l;t<o.length;){if(t<o.length-1&&!o[t][1]){o.splice(t,1);continue}switch(o[t][0]){case Br:n++,s+=o[t][1],t++;break;case zi:r++,a+=o[t][1],t++;break;case Qt:var d=t-n-r-1;if(i){if(d>=0&&cy(o[d][1])){var h=o[d][1].slice(-1);if(o[d][1]=o[d][1].slice(0,-1),a=h+a,s=h+s,!o[d][1]){o.splice(d,1),t--;var m=d-1;o[m]&&o[m][0]===Br&&(n++,s=o[m][1]+s,m--),o[m]&&o[m][0]===zi&&(r++,a=o[m][1]+a,m--),d=m}}if(ly(o[t][1])){var h=o[t][1].charAt(0);o[t][1]=o[t][1].slice(1),a+=h,s+=h}}if(t<o.length-1&&!o[t][1]){o.splice(t,1);break}if(a.length>0||s.length>0){a.length>0&&s.length>0&&(l=km(s,a),l!==0&&(d>=0?o[d][1]+=s.substring(0,l):(o.splice(0,0,[Qt,s.substring(0,l)]),t++),s=s.substring(l),a=a.substring(l)),l=hp(s,a),l!==0&&(o[t][1]=s.substring(s.length-l)+o[t][1],s=s.substring(0,s.length-l),a=a.substring(0,a.length-l)));var f=n+r;a.length===0&&s.length===0?(o.splice(t-f,f),t=t-f):a.length===0?(o.splice(t-f,f,[Br,s]),t=t-f+1):s.length===0?(o.splice(t-f,f,[zi,a]),t=t-f+1):(o.splice(t-f,f,[zi,a],[Br,s]),t=t-f+2)}t!==0&&o[t-1][0]===Qt?(o[t-1][1]+=o[t][1],o.splice(t,1)):t++,n=0,r=0,a="",s="";break}}o[o.length-1][1]===""&&o.pop();var b=!1;for(t=1;t<o.length-1;)o[t-1][0]===Qt&&o[t+1][0]===Qt&&(o[t][1].substring(o[t][1].length-o[t-1][1].length)===o[t-1][1]?(o[t][1]=o[t-1][1]+o[t][1].substring(0,o[t][1].length-o[t-1][1].length),o[t+1][1]=o[t-1][1]+o[t+1][1],o.splice(t-1,1),b=!0):o[t][1].substring(0,o[t+1][1].length)==o[t+1][1]&&(o[t-1][1]+=o[t+1][1],o[t][1]=o[t][1].substring(o[t+1][1].length)+o[t+1][1],o.splice(t+1,1),b=!0)),t++;b&&Sm(o,i)}function ay(o){return o>=55296&&o<=56319}function sy(o){return o>=56320&&o<=57343}function ly(o){return sy(o.charCodeAt(0))}function cy(o){return ay(o.charCodeAt(o.length-1))}function s9(o){for(var i=[],t=0;t<o.length;t++)o[t][1].length>0&&i.push(o[t]);return i}function _m(o,i,t,r){return cy(o)||ly(r)?null:s9([[Qt,o],[zi,i],[Br,t],[Qt,r]])}function l9(o,i,t){var r=typeof t=="number"?{index:t,length:0}:t.oldRange,n=typeof t=="number"?null:t.newRange,a=o.length,s=i.length;if(r.length===0&&(n===null||n.length===0)){var l=r.index,d=o.slice(0,l),h=o.slice(l),m=n?n.index:null;e:{var f=l+s-a;if(m!==null&&m!==f||f<0||f>s)break e;var b=i.slice(0,f),g=i.slice(f);if(g!==h)break e;var v=Math.min(l,f),y=d.slice(0,v),z=b.slice(0,v);if(y!==z)break e;var E=d.slice(v),N=b.slice(v);return _m(y,E,N,h)}e:{if(m!==null&&m!==l)break e;var U=l,b=i.slice(0,U),g=i.slice(U);if(b!==d)break e;var R=Math.min(a-U,s-U),C=h.slice(h.length-R),$=g.slice(g.length-R);if(C!==$)break e;var E=h.slice(0,h.length-R),N=g.slice(0,g.length-R);return _m(d,E,N,C)}}if(r.length>0&&n&&n.length===0)e:{var y=o.slice(0,r.index),C=o.slice(r.index+r.length),v=y.length,R=C.length;if(s<v+R)break e;var z=i.slice(0,v),$=i.slice(s-R);if(y!==z||C!==$)break e;var E=o.slice(v,a-R),N=i.slice(v,s-R);return _m(y,E,N,C)}return null}function up(o,i,t,r){return Zl(o,i,t,r,!0)}up.INSERT=Br;up.DELETE=zi;up.EQUAL=Qt;dy.exports=up});var Hm=Hn((ec,Ss)=>{var c9=200,_y="__lodash_hash_undefined__",ky=9007199254740991,qm="[object Arguments]",d9="[object Array]",Sy="[object Boolean]",Cy="[object Date]",p9="[object Error]",Im="[object Function]",Ey="[object GeneratorFunction]",mp="[object Map]",Ty="[object Number]",Rm="[object Object]",hy="[object Promise]",$y="[object RegExp]",fp="[object Set]",Ay="[object String]",Ly="[object Symbol]",Em="[object WeakMap]",My="[object ArrayBuffer]",gp="[object DataView]",qy="[object Float32Array]",Iy="[object Float64Array]",Ry="[object Int8Array]",Dy="[object Int16Array]",Ny="[object Int32Array]",Oy="[object Uint8Array]",Py="[object Uint8ClampedArray]",Hy="[object Uint16Array]",Fy="[object Uint32Array]",h9=/[\\^$.*+?()[\]{}|]/g,u9=/\w*$/,m9=/^\[object .+?Constructor\]$/,f9=/^(?:0|[1-9]\d*)$/,nt={};nt[qm]=nt[d9]=nt[My]=nt[gp]=nt[Sy]=nt[Cy]=nt[qy]=nt[Iy]=nt[Ry]=nt[Dy]=nt[Ny]=nt[mp]=nt[Ty]=nt[Rm]=nt[$y]=nt[fp]=nt[Ay]=nt[Ly]=nt[Oy]=nt[Py]=nt[Hy]=nt[Fy]=!0;nt[p9]=nt[Im]=nt[Em]=!1;var g9=typeof global=="object"&&global&&global.Object===Object&&global,b9=typeof self=="object"&&self&&self.Object===Object&&self,Wn=g9||b9||Function("return this")(),By=typeof ec=="object"&&ec&&!ec.nodeType&&ec,uy=By&&typeof Ss=="object"&&Ss&&!Ss.nodeType&&Ss,v9=uy&&uy.exports===By;function y9(o,i){return o.set(i[0],i[1]),o}function x9(o,i){return o.add(i),o}function w9(o,i){for(var t=-1,r=o?o.length:0;++t<r&&i(o[t],t,o)!==!1;);return o}function z9(o,i){for(var t=-1,r=i.length,n=o.length;++t<r;)o[n+t]=i[t];return o}function Vy(o,i,t,r){var n=-1,a=o?o.length:0;for(r&&a&&(t=o[++n]);++n<a;)t=i(t,o[n],n,o);return t}function _9(o,i){for(var t=-1,r=Array(o);++t<o;)r[t]=i(t);return r}function k9(o,i){return o?.[i]}function Uy(o){var i=!1;if(o!=null&&typeof o.toString!="function")try{i=!!(o+"")}catch{}return i}function my(o){var i=-1,t=Array(o.size);return o.forEach(function(r,n){t[++i]=[n,r]}),t}function Dm(o,i){return function(t){return o(i(t))}}function fy(o){var i=-1,t=Array(o.size);return o.forEach(function(r){t[++i]=r}),t}var S9=Array.prototype,C9=Function.prototype,bp=Object.prototype,Cm=Wn["__core-js_shared__"],gy=(function(){var o=/[^.]+$/.exec(Cm&&Cm.keys&&Cm.keys.IE_PROTO||"");return o?"Symbol(src)_1."+o:""})(),jy=C9.toString,Ao=bp.hasOwnProperty,vp=bp.toString,E9=RegExp("^"+jy.call(Ao).replace(h9,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),by=v9?Wn.Buffer:void 0,vy=Wn.Symbol,yy=Wn.Uint8Array,T9=Dm(Object.getPrototypeOf,Object),$9=Object.create,A9=bp.propertyIsEnumerable,L9=S9.splice,xy=Object.getOwnPropertySymbols,M9=by?by.isBuffer:void 0,q9=Dm(Object.keys,Object),Tm=Ts(Wn,"DataView"),tc=Ts(Wn,"Map"),$m=Ts(Wn,"Promise"),Am=Ts(Wn,"Set"),Lm=Ts(Wn,"WeakMap"),rc=Ts(Object,"create"),I9=La(Tm),R9=La(tc),D9=La($m),N9=La(Am),O9=La(Lm),wy=vy?vy.prototype:void 0,zy=wy?wy.valueOf:void 0;function Aa(o){var i=-1,t=o?o.length:0;for(this.clear();++i<t;){var r=o[i];this.set(r[0],r[1])}}function P9(){this.__data__=rc?rc(null):{}}function H9(o){return this.has(o)&&delete this.__data__[o]}function F9(o){var i=this.__data__;if(rc){var t=i[o];return t===_y?void 0:t}return Ao.call(i,o)?i[o]:void 0}function B9(o){var i=this.__data__;return rc?i[o]!==void 0:Ao.call(i,o)}function V9(o,i){var t=this.__data__;return t[o]=rc&&i===void 0?_y:i,this}Aa.prototype.clear=P9;Aa.prototype.delete=H9;Aa.prototype.get=F9;Aa.prototype.has=B9;Aa.prototype.set=V9;function Yn(o){var i=-1,t=o?o.length:0;for(this.clear();++i<t;){var r=o[i];this.set(r[0],r[1])}}function U9(){this.__data__=[]}function j9(o){var i=this.__data__,t=yp(i,o);if(t<0)return!1;var r=i.length-1;return t==r?i.pop():L9.call(i,t,1),!0}function G9(o){var i=this.__data__,t=yp(i,o);return t<0?void 0:i[t][1]}function K9(o){return yp(this.__data__,o)>-1}function W9(o,i){var t=this.__data__,r=yp(t,o);return r<0?t.push([o,i]):t[r][1]=i,this}Yn.prototype.clear=U9;Yn.prototype.delete=j9;Yn.prototype.get=G9;Yn.prototype.has=K9;Yn.prototype.set=W9;function Cs(o){var i=-1,t=o?o.length:0;for(this.clear();++i<t;){var r=o[i];this.set(r[0],r[1])}}function Y9(){this.__data__={hash:new Aa,map:new(tc||Yn),string:new Aa}}function Q9(o){return xp(this,o).delete(o)}function X9(o){return xp(this,o).get(o)}function J9(o){return xp(this,o).has(o)}function Z9(o,i){return xp(this,o).set(o,i),this}Cs.prototype.clear=Y9;Cs.prototype.delete=Q9;Cs.prototype.get=X9;Cs.prototype.has=J9;Cs.prototype.set=Z9;function Es(o){this.__data__=new Yn(o)}function eS(){this.__data__=new Yn}function tS(o){return this.__data__.delete(o)}function rS(o){return this.__data__.get(o)}function iS(o){return this.__data__.has(o)}function nS(o,i){var t=this.__data__;if(t instanceof Yn){var r=t.__data__;if(!tc||r.length<c9-1)return r.push([o,i]),this;t=this.__data__=new Cs(r)}return t.set(o,i),this}Es.prototype.clear=eS;Es.prototype.delete=tS;Es.prototype.get=rS;Es.prototype.has=iS;Es.prototype.set=nS;function oS(o,i){var t=Om(o)||$S(o)?_9(o.length,String):[],r=t.length,n=!!r;for(var a in o)(i||Ao.call(o,a))&&!(n&&(a=="length"||SS(a,r)))&&t.push(a);return t}function Gy(o,i,t){var r=o[i];(!(Ao.call(o,i)&&Qy(r,t))||t===void 0&&!(i in o))&&(o[i]=t)}function yp(o,i){for(var t=o.length;t--;)if(Qy(o[t][0],i))return t;return-1}function aS(o,i){return o&&Ky(i,Pm(i),o)}function Mm(o,i,t,r,n,a,s){var l;if(r&&(l=a?r(o,n,a,s):r(o)),l!==void 0)return l;if(!wp(o))return o;var d=Om(o);if(d){if(l=zS(o),!i)return yS(o,l)}else{var h=$a(o),m=h==Im||h==Ey;if(LS(o))return hS(o,i);if(h==Rm||h==qm||m&&!a){if(Uy(o))return a?o:{};if(l=_S(m?{}:o),!i)return xS(o,aS(l,o))}else{if(!nt[h])return a?o:{};l=kS(o,h,Mm,i)}}s||(s=new Es);var f=s.get(o);if(f)return f;if(s.set(o,l),!d)var b=t?wS(o):Pm(o);return w9(b||o,function(g,v){b&&(v=g,g=o[v]),Gy(l,v,Mm(g,i,t,r,v,o,s))}),l}function sS(o){return wp(o)?$9(o):{}}function lS(o,i,t){var r=i(o);return Om(o)?r:z9(r,t(o))}function cS(o){return vp.call(o)}function dS(o){if(!wp(o)||ES(o))return!1;var i=Jy(o)||Uy(o)?E9:m9;return i.test(La(o))}function pS(o){if(!Yy(o))return q9(o);var i=[];for(var t in Object(o))Ao.call(o,t)&&t!="constructor"&&i.push(t);return i}function hS(o,i){if(i)return o.slice();var t=new o.constructor(o.length);return o.copy(t),t}function Nm(o){var i=new o.constructor(o.byteLength);return new yy(i).set(new yy(o)),i}function uS(o,i){var t=i?Nm(o.buffer):o.buffer;return new o.constructor(t,o.byteOffset,o.byteLength)}function mS(o,i,t){var r=i?t(my(o),!0):my(o);return Vy(r,y9,new o.constructor)}function fS(o){var i=new o.constructor(o.source,u9.exec(o));return i.lastIndex=o.lastIndex,i}function gS(o,i,t){var r=i?t(fy(o),!0):fy(o);return Vy(r,x9,new o.constructor)}function bS(o){return zy?Object(zy.call(o)):{}}function vS(o,i){var t=i?Nm(o.buffer):o.buffer;return new o.constructor(t,o.byteOffset,o.length)}function yS(o,i){var t=-1,r=o.length;for(i||(i=Array(r));++t<r;)i[t]=o[t];return i}function Ky(o,i,t,r){t||(t={});for(var n=-1,a=i.length;++n<a;){var s=i[n],l=r?r(t[s],o[s],s,t,o):void 0;Gy(t,s,l===void 0?o[s]:l)}return t}function xS(o,i){return Ky(o,Wy(o),i)}function wS(o){return lS(o,Pm,Wy)}function xp(o,i){var t=o.__data__;return CS(i)?t[typeof i=="string"?"string":"hash"]:t.map}function Ts(o,i){var t=k9(o,i);return dS(t)?t:void 0}var Wy=xy?Dm(xy,Object):IS,$a=cS;(Tm&&$a(new Tm(new ArrayBuffer(1)))!=gp||tc&&$a(new tc)!=mp||$m&&$a($m.resolve())!=hy||Am&&$a(new Am)!=fp||Lm&&$a(new Lm)!=Em)&&($a=function(o){var i=vp.call(o),t=i==Rm?o.constructor:void 0,r=t?La(t):void 0;if(r)switch(r){case I9:return gp;case R9:return mp;case D9:return hy;case N9:return fp;case O9:return Em}return i});function zS(o){var i=o.length,t=o.constructor(i);return i&&typeof o[0]=="string"&&Ao.call(o,"index")&&(t.index=o.index,t.input=o.input),t}function _S(o){return typeof o.constructor=="function"&&!Yy(o)?sS(T9(o)):{}}function kS(o,i,t,r){var n=o.constructor;switch(i){case My:return Nm(o);case Sy:case Cy:return new n(+o);case gp:return uS(o,r);case qy:case Iy:case Ry:case Dy:case Ny:case Oy:case Py:case Hy:case Fy:return vS(o,r);case mp:return mS(o,r,t);case Ty:case Ay:return new n(o);case $y:return fS(o);case fp:return gS(o,r,t);case Ly:return bS(o)}}function SS(o,i){return i=i??ky,!!i&&(typeof o=="number"||f9.test(o))&&o>-1&&o%1==0&&o<i}function CS(o){var i=typeof o;return i=="string"||i=="number"||i=="symbol"||i=="boolean"?o!=="__proto__":o===null}function ES(o){return!!gy&&gy in o}function Yy(o){var i=o&&o.constructor,t=typeof i=="function"&&i.prototype||bp;return o===t}function La(o){if(o!=null){try{return jy.call(o)}catch{}try{return o+""}catch{}}return""}function TS(o){return Mm(o,!0,!0)}function Qy(o,i){return o===i||o!==o&&i!==i}function $S(o){return AS(o)&&Ao.call(o,"callee")&&(!A9.call(o,"callee")||vp.call(o)==qm)}var Om=Array.isArray;function Xy(o){return o!=null&&MS(o.length)&&!Jy(o)}function AS(o){return qS(o)&&Xy(o)}var LS=M9||RS;function Jy(o){var i=wp(o)?vp.call(o):"";return i==Im||i==Ey}function MS(o){return typeof o=="number"&&o>-1&&o%1==0&&o<=ky}function wp(o){var i=typeof o;return!!o&&(i=="object"||i=="function")}function qS(o){return!!o&&typeof o=="object"}function Pm(o){return Xy(o)?oS(o):pS(o)}function IS(){return[]}function RS(){return!1}Ss.exports=TS});var Jm=Hn((ic,As)=>{var DS=200,Xm="__lodash_hash_undefined__",$p=1,dx=2,px=9007199254740991,zp="[object Arguments]",Um="[object Array]",NS="[object AsyncFunction]",hx="[object Boolean]",ux="[object Date]",mx="[object Error]",fx="[object Function]",OS="[object GeneratorFunction]",_p="[object Map]",gx="[object Number]",PS="[object Null]",$s="[object Object]",Zy="[object Promise]",HS="[object Proxy]",bx="[object RegExp]",kp="[object Set]",vx="[object String]",FS="[object Symbol]",BS="[object Undefined]",jm="[object WeakMap]",yx="[object ArrayBuffer]",Sp="[object DataView]",VS="[object Float32Array]",US="[object Float64Array]",jS="[object Int8Array]",GS="[object Int16Array]",KS="[object Int32Array]",WS="[object Uint8Array]",YS="[object Uint8ClampedArray]",QS="[object Uint16Array]",XS="[object Uint32Array]",JS=/[\\^$.*+?()[\]{}|]/g,ZS=/^\[object .+?Constructor\]$/,e6=/^(?:0|[1-9]\d*)$/,ct={};ct[VS]=ct[US]=ct[jS]=ct[GS]=ct[KS]=ct[WS]=ct[YS]=ct[QS]=ct[XS]=!0;ct[zp]=ct[Um]=ct[yx]=ct[hx]=ct[Sp]=ct[ux]=ct[mx]=ct[fx]=ct[_p]=ct[gx]=ct[$s]=ct[bx]=ct[kp]=ct[vx]=ct[jm]=!1;var xx=typeof global=="object"&&global&&global.Object===Object&&global,t6=typeof self=="object"&&self&&self.Object===Object&&self,Qn=xx||t6||Function("return this")(),wx=typeof ic=="object"&&ic&&!ic.nodeType&&ic,ex=wx&&typeof As=="object"&&As&&!As.nodeType&&As,zx=ex&&ex.exports===wx,Fm=zx&&xx.process,tx=(function(){try{return Fm&&Fm.binding&&Fm.binding("util")}catch{}})(),rx=tx&&tx.isTypedArray;function r6(o,i){for(var t=-1,r=o==null?0:o.length,n=0,a=[];++t<r;){var s=o[t];i(s,t,o)&&(a[n++]=s)}return a}function i6(o,i){for(var t=-1,r=i.length,n=o.length;++t<r;)o[n+t]=i[t];return o}function n6(o,i){for(var t=-1,r=o==null?0:o.length;++t<r;)if(i(o[t],t,o))return!0;return!1}function o6(o,i){for(var t=-1,r=Array(o);++t<o;)r[t]=i(t);return r}function a6(o){return function(i){return o(i)}}function s6(o,i){return o.has(i)}function l6(o,i){return o?.[i]}function c6(o){var i=-1,t=Array(o.size);return o.forEach(function(r,n){t[++i]=[n,r]}),t}function d6(o,i){return function(t){return o(i(t))}}function p6(o){var i=-1,t=Array(o.size);return o.forEach(function(r){t[++i]=r}),t}var h6=Array.prototype,u6=Function.prototype,Ap=Object.prototype,Bm=Qn["__core-js_shared__"],_x=u6.toString,$n=Ap.hasOwnProperty,ix=(function(){var o=/[^.]+$/.exec(Bm&&Bm.keys&&Bm.keys.IE_PROTO||"");return o?"Symbol(src)_1."+o:""})(),kx=Ap.toString,m6=RegExp("^"+_x.call($n).replace(JS,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),nx=zx?Qn.Buffer:void 0,Cp=Qn.Symbol,ox=Qn.Uint8Array,Sx=Ap.propertyIsEnumerable,f6=h6.splice,Ma=Cp?Cp.toStringTag:void 0,ax=Object.getOwnPropertySymbols,g6=nx?nx.isBuffer:void 0,b6=d6(Object.keys,Object),Gm=Ls(Qn,"DataView"),nc=Ls(Qn,"Map"),Km=Ls(Qn,"Promise"),Wm=Ls(Qn,"Set"),Ym=Ls(Qn,"WeakMap"),oc=Ls(Object,"create"),v6=Ra(Gm),y6=Ra(nc),x6=Ra(Km),w6=Ra(Wm),z6=Ra(Ym),sx=Cp?Cp.prototype:void 0,Vm=sx?sx.valueOf:void 0;function qa(o){var i=-1,t=o==null?0:o.length;for(this.clear();++i<t;){var r=o[i];this.set(r[0],r[1])}}function _6(){this.__data__=oc?oc(null):{},this.size=0}function k6(o){var i=this.has(o)&&delete this.__data__[o];return this.size-=i?1:0,i}function S6(o){var i=this.__data__;if(oc){var t=i[o];return t===Xm?void 0:t}return $n.call(i,o)?i[o]:void 0}function C6(o){var i=this.__data__;return oc?i[o]!==void 0:$n.call(i,o)}function E6(o,i){var t=this.__data__;return this.size+=this.has(o)?0:1,t[o]=oc&&i===void 0?Xm:i,this}qa.prototype.clear=_6;qa.prototype.delete=k6;qa.prototype.get=S6;qa.prototype.has=C6;qa.prototype.set=E6;function Xn(o){var i=-1,t=o==null?0:o.length;for(this.clear();++i<t;){var r=o[i];this.set(r[0],r[1])}}function T6(){this.__data__=[],this.size=0}function $6(o){var i=this.__data__,t=Lp(i,o);if(t<0)return!1;var r=i.length-1;return t==r?i.pop():f6.call(i,t,1),--this.size,!0}function A6(o){var i=this.__data__,t=Lp(i,o);return t<0?void 0:i[t][1]}function L6(o){return Lp(this.__data__,o)>-1}function M6(o,i){var t=this.__data__,r=Lp(t,o);return r<0?(++this.size,t.push([o,i])):t[r][1]=i,this}Xn.prototype.clear=T6;Xn.prototype.delete=$6;Xn.prototype.get=A6;Xn.prototype.has=L6;Xn.prototype.set=M6;function Ia(o){var i=-1,t=o==null?0:o.length;for(this.clear();++i<t;){var r=o[i];this.set(r[0],r[1])}}function q6(){this.size=0,this.__data__={hash:new qa,map:new(nc||Xn),string:new qa}}function I6(o){var i=Mp(this,o).delete(o);return this.size-=i?1:0,i}function R6(o){return Mp(this,o).get(o)}function D6(o){return Mp(this,o).has(o)}function N6(o,i){var t=Mp(this,o),r=t.size;return t.set(o,i),this.size+=t.size==r?0:1,this}Ia.prototype.clear=q6;Ia.prototype.delete=I6;Ia.prototype.get=R6;Ia.prototype.has=D6;Ia.prototype.set=N6;function Ep(o){var i=-1,t=o==null?0:o.length;for(this.__data__=new Ia;++i<t;)this.add(o[i])}function O6(o){return this.__data__.set(o,Xm),this}function P6(o){return this.__data__.has(o)}Ep.prototype.add=Ep.prototype.push=O6;Ep.prototype.has=P6;function Mo(o){var i=this.__data__=new Xn(o);this.size=i.size}function H6(){this.__data__=new Xn,this.size=0}function F6(o){var i=this.__data__,t=i.delete(o);return this.size=i.size,t}function B6(o){return this.__data__.get(o)}function V6(o){return this.__data__.has(o)}function U6(o,i){var t=this.__data__;if(t instanceof Xn){var r=t.__data__;if(!nc||r.length<DS-1)return r.push([o,i]),this.size=++t.size,this;t=this.__data__=new Ia(r)}return t.set(o,i),this.size=t.size,this}Mo.prototype.clear=H6;Mo.prototype.delete=F6;Mo.prototype.get=B6;Mo.prototype.has=V6;Mo.prototype.set=U6;function j6(o,i){var t=Tp(o),r=!t&&aC(o),n=!t&&!r&&Qm(o),a=!t&&!r&&!n&&Mx(o),s=t||r||n||a,l=s?o6(o.length,String):[],d=l.length;for(var h in o)(i||$n.call(o,h))&&!(s&&(h=="length"||n&&(h=="offset"||h=="parent")||a&&(h=="buffer"||h=="byteLength"||h=="byteOffset")||tC(h,d)))&&l.push(h);return l}function Lp(o,i){for(var t=o.length;t--;)if(Tx(o[t][0],i))return t;return-1}function G6(o,i,t){var r=i(o);return Tp(o)?r:i6(r,t(o))}function sc(o){return o==null?o===void 0?BS:PS:Ma&&Ma in Object(o)?Z6(o):oC(o)}function lx(o){return ac(o)&&sc(o)==zp}function Cx(o,i,t,r,n){return o===i?!0:o==null||i==null||!ac(o)&&!ac(i)?o!==o&&i!==i:K6(o,i,t,r,Cx,n)}function K6(o,i,t,r,n,a){var s=Tp(o),l=Tp(i),d=s?Um:Lo(o),h=l?Um:Lo(i);d=d==zp?$s:d,h=h==zp?$s:h;var m=d==$s,f=h==$s,b=d==h;if(b&&Qm(o)){if(!Qm(i))return!1;s=!0,m=!1}if(b&&!m)return a||(a=new Mo),s||Mx(o)?Ex(o,i,t,r,n,a):X6(o,i,d,t,r,n,a);if(!(t&$p)){var g=m&&$n.call(o,"__wrapped__"),v=f&&$n.call(i,"__wrapped__");if(g||v){var y=g?o.value():o,z=v?i.value():i;return a||(a=new Mo),n(y,z,t,r,a)}}return b?(a||(a=new Mo),J6(o,i,t,r,n,a)):!1}function W6(o){if(!Lx(o)||iC(o))return!1;var i=$x(o)?m6:ZS;return i.test(Ra(o))}function Y6(o){return ac(o)&&Ax(o.length)&&!!ct[sc(o)]}function Q6(o){if(!nC(o))return b6(o);var i=[];for(var t in Object(o))$n.call(o,t)&&t!="constructor"&&i.push(t);return i}function Ex(o,i,t,r,n,a){var s=t&$p,l=o.length,d=i.length;if(l!=d&&!(s&&d>l))return!1;var h=a.get(o);if(h&&a.get(i))return h==i;var m=-1,f=!0,b=t&dx?new Ep:void 0;for(a.set(o,i),a.set(i,o);++m<l;){var g=o[m],v=i[m];if(r)var y=s?r(v,g,m,i,o,a):r(g,v,m,o,i,a);if(y!==void 0){if(y)continue;f=!1;break}if(b){if(!n6(i,function(z,E){if(!s6(b,E)&&(g===z||n(g,z,t,r,a)))return b.push(E)})){f=!1;break}}else if(!(g===v||n(g,v,t,r,a))){f=!1;break}}return a.delete(o),a.delete(i),f}function X6(o,i,t,r,n,a,s){switch(t){case Sp:if(o.byteLength!=i.byteLength||o.byteOffset!=i.byteOffset)return!1;o=o.buffer,i=i.buffer;case yx:return!(o.byteLength!=i.byteLength||!a(new ox(o),new ox(i)));case hx:case ux:case gx:return Tx(+o,+i);case mx:return o.name==i.name&&o.message==i.message;case bx:case vx:return o==i+"";case _p:var l=c6;case kp:var d=r&$p;if(l||(l=p6),o.size!=i.size&&!d)return!1;var h=s.get(o);if(h)return h==i;r|=dx,s.set(o,i);var m=Ex(l(o),l(i),r,n,a,s);return s.delete(o),m;case FS:if(Vm)return Vm.call(o)==Vm.call(i)}return!1}function J6(o,i,t,r,n,a){var s=t&$p,l=cx(o),d=l.length,h=cx(i),m=h.length;if(d!=m&&!s)return!1;for(var f=d;f--;){var b=l[f];if(!(s?b in i:$n.call(i,b)))return!1}var g=a.get(o);if(g&&a.get(i))return g==i;var v=!0;a.set(o,i),a.set(i,o);for(var y=s;++f<d;){b=l[f];var z=o[b],E=i[b];if(r)var N=s?r(E,z,b,i,o,a):r(z,E,b,o,i,a);if(!(N===void 0?z===E||n(z,E,t,r,a):N)){v=!1;break}y||(y=b=="constructor")}if(v&&!y){var U=o.constructor,R=i.constructor;U!=R&&"constructor"in o&&"constructor"in i&&!(typeof U=="function"&&U instanceof U&&typeof R=="function"&&R instanceof R)&&(v=!1)}return a.delete(o),a.delete(i),v}function cx(o){return G6(o,cC,eC)}function Mp(o,i){var t=o.__data__;return rC(i)?t[typeof i=="string"?"string":"hash"]:t.map}function Ls(o,i){var t=l6(o,i);return W6(t)?t:void 0}function Z6(o){var i=$n.call(o,Ma),t=o[Ma];try{o[Ma]=void 0;var r=!0}catch{}var n=kx.call(o);return r&&(i?o[Ma]=t:delete o[Ma]),n}var eC=ax?function(o){return o==null?[]:(o=Object(o),r6(ax(o),function(i){return Sx.call(o,i)}))}:dC,Lo=sc;(Gm&&Lo(new Gm(new ArrayBuffer(1)))!=Sp||nc&&Lo(new nc)!=_p||Km&&Lo(Km.resolve())!=Zy||Wm&&Lo(new Wm)!=kp||Ym&&Lo(new Ym)!=jm)&&(Lo=function(o){var i=sc(o),t=i==$s?o.constructor:void 0,r=t?Ra(t):"";if(r)switch(r){case v6:return Sp;case y6:return _p;case x6:return Zy;case w6:return kp;case z6:return jm}return i});function tC(o,i){return i=i??px,!!i&&(typeof o=="number"||e6.test(o))&&o>-1&&o%1==0&&o<i}function rC(o){var i=typeof o;return i=="string"||i=="number"||i=="symbol"||i=="boolean"?o!=="__proto__":o===null}function iC(o){return!!ix&&ix in o}function nC(o){var i=o&&o.constructor,t=typeof i=="function"&&i.prototype||Ap;return o===t}function oC(o){return kx.call(o)}function Ra(o){if(o!=null){try{return _x.call(o)}catch{}try{return o+""}catch{}}return""}function Tx(o,i){return o===i||o!==o&&i!==i}var aC=lx((function(){return arguments})())?lx:function(o){return ac(o)&&$n.call(o,"callee")&&!Sx.call(o,"callee")},Tp=Array.isArray;function sC(o){return o!=null&&Ax(o.length)&&!$x(o)}var Qm=g6||pC;function lC(o,i){return Cx(o,i)}function $x(o){if(!Lx(o))return!1;var i=sc(o);return i==fx||i==OS||i==NS||i==HS}function Ax(o){return typeof o=="number"&&o>-1&&o%1==0&&o<=px}function Lx(o){var i=typeof o;return o!=null&&(i=="object"||i=="function")}function ac(o){return o!=null&&typeof o=="object"}var Mx=rx?a6(rx):Y6;function cC(o){return sC(o)?j6(o):Q6(o)}function dC(){return[]}function pC(){return!1}As.exports=lC});var qx=Hn(ef=>{"use strict";Object.defineProperty(ef,"__esModule",{value:!0});var hC=Hm(),uC=Jm(),Zm;(function(o){function i(a={},s={},l=!1){typeof a!="object"&&(a={}),typeof s!="object"&&(s={});let d=hC(s);l||(d=Object.keys(d).reduce((h,m)=>(d[m]!=null&&(h[m]=d[m]),h),{}));for(let h in a)a[h]!==void 0&&s[h]===void 0&&(d[h]=a[h]);return Object.keys(d).length>0?d:void 0}o.compose=i;function t(a={},s={}){typeof a!="object"&&(a={}),typeof s!="object"&&(s={});let l=Object.keys(a).concat(Object.keys(s)).reduce((d,h)=>(uC(a[h],s[h])||(d[h]=s[h]===void 0?null:s[h]),d),{});return Object.keys(l).length>0?l:void 0}o.diff=t;function r(a={},s={}){a=a||{};let l=Object.keys(s).reduce((d,h)=>(s[h]!==a[h]&&a[h]!==void 0&&(d[h]=s[h]),d),{});return Object.keys(a).reduce((d,h)=>(a[h]!==s[h]&&s[h]===void 0&&(d[h]=null),d),l)}o.invert=r;function n(a,s,l=!1){if(typeof a!="object")return s;if(typeof s!="object")return;if(!l)return s;let d=Object.keys(s).reduce((h,m)=>(a[m]===void 0&&(h[m]=s[m]),h),{});return Object.keys(d).length>0?d:void 0}o.transform=n})(Zm||(Zm={}));ef.default=Zm});var nf=Hn(rf=>{"use strict";Object.defineProperty(rf,"__esModule",{value:!0});var tf;(function(o){function i(t){return typeof t.delete=="number"?t.delete:typeof t.retain=="number"?t.retain:typeof t.retain=="object"&&t.retain!==null?1:typeof t.insert=="string"?t.insert.length:1}o.length=i})(tf||(tf={}));rf.default=tf});var Rx=Hn(af=>{"use strict";Object.defineProperty(af,"__esModule",{value:!0});var Ix=nf(),of=class{constructor(i){this.ops=i,this.index=0,this.offset=0}hasNext(){return this.peekLength()<1/0}next(i){i||(i=1/0);let t=this.ops[this.index];if(t){let r=this.offset,n=Ix.default.length(t);if(i>=n-r?(i=n-r,this.index+=1,this.offset=0):this.offset+=i,typeof t.delete=="number")return{delete:i};{let a={};return t.attributes&&(a.attributes=t.attributes),typeof t.retain=="number"?a.retain=i:typeof t.retain=="object"&&t.retain!==null?a.retain=t.retain:typeof t.insert=="string"?a.insert=t.insert.substr(r,i):a.insert=t.insert,a}}else return{retain:1/0}}peek(){return this.ops[this.index]}peekLength(){return this.ops[this.index]?Ix.default.length(this.ops[this.index])-this.offset:1/0}peekType(){let i=this.ops[this.index];return i?typeof i.delete=="number"?"delete":typeof i.retain=="number"||typeof i.retain=="object"&&i.retain!==null?"retain":"insert":"retain"}rest(){if(this.hasNext()){if(this.offset===0)return this.ops.slice(this.index);{let i=this.offset,t=this.index,r=this.next(),n=this.ops.slice(this.index);return this.offset=i,this.index=t,[r].concat(n)}}else return[]}};af.default=of});var ei=Hn((Zn,Ip)=>{"use strict";Object.defineProperty(Zn,"__esModule",{value:!0});Zn.AttributeMap=Zn.OpIterator=Zn.Op=void 0;var qp=py(),mC=Hm(),sf=Jm(),Da=qx();Zn.AttributeMap=Da.default;var Jn=nf();Zn.Op=Jn.default;var Oi=Rx();Zn.OpIterator=Oi.default;var fC="\0",Dx=(o,i)=>{if(typeof o!="object"||o===null)throw new Error(`cannot retain a ${typeof o}`);if(typeof i!="object"||i===null)throw new Error(`cannot retain a ${typeof i}`);let t=Object.keys(o)[0];if(!t||t!==Object.keys(i)[0])throw new Error(`embed types not matched: ${t} != ${Object.keys(i)[0]}`);return[t,o[t],i[t]]},eo=class o{constructor(i){Array.isArray(i)?this.ops=i:i!=null&&Array.isArray(i.ops)?this.ops=i.ops:this.ops=[]}static registerEmbed(i,t){this.handlers[i]=t}static unregisterEmbed(i){delete this.handlers[i]}static getHandler(i){let t=this.handlers[i];if(!t)throw new Error(`no handlers for embed type "${i}"`);return t}insert(i,t){let r={};return typeof i=="string"&&i.length===0?this:(r.insert=i,t!=null&&typeof t=="object"&&Object.keys(t).length>0&&(r.attributes=t),this.push(r))}delete(i){return i<=0?this:this.push({delete:i})}retain(i,t){if(typeof i=="number"&&i<=0)return this;let r={retain:i};return t!=null&&typeof t=="object"&&Object.keys(t).length>0&&(r.attributes=t),this.push(r)}push(i){let t=this.ops.length,r=this.ops[t-1];if(i=mC(i),typeof r=="object"){if(typeof i.delete=="number"&&typeof r.delete=="number")return this.ops[t-1]={delete:r.delete+i.delete},this;if(typeof r.delete=="number"&&i.insert!=null&&(t-=1,r=this.ops[t-1],typeof r!="object"))return this.ops.unshift(i),this;if(sf(i.attributes,r.attributes)){if(typeof i.insert=="string"&&typeof r.insert=="string")return this.ops[t-1]={insert:r.insert+i.insert},typeof i.attributes=="object"&&(this.ops[t-1].attributes=i.attributes),this;if(typeof i.retain=="number"&&typeof r.retain=="number")return this.ops[t-1]={retain:r.retain+i.retain},typeof i.attributes=="object"&&(this.ops[t-1].attributes=i.attributes),this}}return t===this.ops.length?this.ops.push(i):this.ops.splice(t,0,i),this}chop(){let i=this.ops[this.ops.length-1];return i&&typeof i.retain=="number"&&!i.attributes&&this.ops.pop(),this}filter(i){return this.ops.filter(i)}forEach(i){this.ops.forEach(i)}map(i){return this.ops.map(i)}partition(i){let t=[],r=[];return this.forEach(n=>{(i(n)?t:r).push(n)}),[t,r]}reduce(i,t){return this.ops.reduce(i,t)}changeLength(){return this.reduce((i,t)=>t.insert?i+Jn.default.length(t):t.delete?i-t.delete:i,0)}length(){return this.reduce((i,t)=>i+Jn.default.length(t),0)}slice(i=0,t=1/0){let r=[],n=new Oi.default(this.ops),a=0;for(;a<t&&n.hasNext();){let s;a<i?s=n.next(i-a):(s=n.next(t-a),r.push(s)),a+=Jn.default.length(s)}return new o(r)}compose(i){let t=new Oi.default(this.ops),r=new Oi.default(i.ops),n=[],a=r.peek();if(a!=null&&typeof a.retain=="number"&&a.attributes==null){let l=a.retain;for(;t.peekType()==="insert"&&t.peekLength()<=l;)l-=t.peekLength(),n.push(t.next());a.retain-l>0&&r.next(a.retain-l)}let s=new o(n);for(;t.hasNext()||r.hasNext();)if(r.peekType()==="insert")s.push(r.next());else if(t.peekType()==="delete")s.push(t.next());else{let l=Math.min(t.peekLength(),r.peekLength()),d=t.next(l),h=r.next(l);if(h.retain){let m={};if(typeof d.retain=="number")m.retain=typeof h.retain=="number"?l:h.retain;else if(typeof h.retain=="number")d.retain==null?m.insert=d.insert:m.retain=d.retain;else{let b=d.retain==null?"insert":"retain",[g,v,y]=Dx(d[b],h.retain),z=o.getHandler(g);m[b]={[g]:z.compose(v,y,b==="retain")}}let f=Da.default.compose(d.attributes,h.attributes,typeof d.retain=="number");if(f&&(m.attributes=f),s.push(m),!r.hasNext()&&sf(s.ops[s.ops.length-1],m)){let b=new o(t.rest());return s.concat(b).chop()}}else typeof h.delete=="number"&&(typeof d.retain=="number"||typeof d.retain=="object"&&d.retain!==null)&&s.push(h)}return s.chop()}concat(i){let t=new o(this.ops.slice());return i.ops.length>0&&(t.push(i.ops[0]),t.ops=t.ops.concat(i.ops.slice(1))),t}diff(i,t){if(this.ops===i.ops)return new o;let r=[this,i].map(d=>d.map(h=>{if(h.insert!=null)return typeof h.insert=="string"?h.insert:fC;let m=d===i?"on":"with";throw new Error("diff() called "+m+" non-document")}).join("")),n=new o,a=qp(r[0],r[1],t,!0),s=new Oi.default(this.ops),l=new Oi.default(i.ops);return a.forEach(d=>{let h=d[1].length;for(;h>0;){let m=0;switch(d[0]){case qp.INSERT:m=Math.min(l.peekLength(),h),n.push(l.next(m));break;case qp.DELETE:m=Math.min(h,s.peekLength()),s.next(m),n.delete(m);break;case qp.EQUAL:m=Math.min(s.peekLength(),l.peekLength(),h);let f=s.next(m),b=l.next(m);sf(f.insert,b.insert)?n.retain(m,Da.default.diff(f.attributes,b.attributes)):n.push(b).delete(m);break}h-=m}}),n.chop()}eachLine(i,t=`
2
2
  `){let r=new Oi.default(this.ops),n=new o,a=0;for(;r.hasNext();){if(r.peekType()!=="insert")return;let s=r.peek(),l=Jn.default.length(s)-r.peekLength(),d=typeof s.insert=="string"?s.insert.indexOf(t,l)-l:-1;if(d<0)n.push(r.next());else if(d>0)n.push(r.next(d));else{if(i(n,r.next(1).attributes||{},a)===!1)return;a+=1,n=new o}}n.length()>0&&i(n,{},a)}invert(i){let t=new o;return this.reduce((r,n)=>{if(n.insert)t.delete(Jn.default.length(n));else{if(typeof n.retain=="number"&&n.attributes==null)return t.retain(n.retain),r+n.retain;if(n.delete||typeof n.retain=="number"){let a=n.delete||n.retain;return i.slice(r,r+a).forEach(l=>{n.delete?t.push(l):n.retain&&n.attributes&&t.retain(Jn.default.length(l),Da.default.invert(n.attributes,l.attributes))}),r+a}else if(typeof n.retain=="object"&&n.retain!==null){let a=i.slice(r,r+1),s=new Oi.default(a.ops).next(),[l,d,h]=Dx(n.retain,s.insert),m=o.getHandler(l);return t.retain({[l]:m.invert(d,h)},Da.default.invert(n.attributes,s.attributes)),r+1}}return r},0),t.chop()}transform(i,t=!1){if(t=!!t,typeof i=="number")return this.transformPosition(i,t);let r=i,n=new Oi.default(this.ops),a=new Oi.default(r.ops),s=new o;for(;n.hasNext()||a.hasNext();)if(n.peekType()==="insert"&&(t||a.peekType()!=="insert"))s.retain(Jn.default.length(n.next()));else if(a.peekType()==="insert")s.push(a.next());else{let l=Math.min(n.peekLength(),a.peekLength()),d=n.next(l),h=a.next(l);if(d.delete)continue;if(h.delete)s.push(h);else{let m=d.retain,f=h.retain,b=typeof f=="object"&&f!==null?f:l;if(typeof m=="object"&&m!==null&&typeof f=="object"&&f!==null){let g=Object.keys(m)[0];if(g===Object.keys(f)[0]){let v=o.getHandler(g);v&&(b={[g]:v.transform(m[g],f[g],t)})}}s.retain(b,Da.default.transform(d.attributes,h.attributes,t))}}return s.chop()}transformPosition(i,t=!1){t=!!t;let r=new Oi.default(this.ops),n=0;for(;r.hasNext()&&n<=i;){let a=r.peekLength(),s=r.peekType();if(r.next(),s==="delete"){i-=Math.min(a,i-n);continue}else s==="insert"&&(n<i||!t)&&(i+=a);n+=a}return i}};eo.Op=Jn.default;eo.OpIterator=Oi.default;eo.AttributeMap=Da.default;eo.handlers={};Zn.default=eo;typeof Ip=="object"&&(Ip.exports=eo,Ip.exports.default=eo)});var Jz=Hn((eue,Cf)=>{"use strict";var XA=Object.prototype.hasOwnProperty,Ur="~";function vc(){}Object.create&&(vc.prototype=Object.create(null),new vc().__proto__||(Ur=!1));function JA(o,i,t){this.fn=o,this.context=i,this.once=t||!1}function Xz(o,i,t,r,n){if(typeof t!="function")throw new TypeError("The listener must be a function");var a=new JA(t,r||o,n),s=Ur?Ur+i:i;return o._events[s]?o._events[s].fn?o._events[s]=[o._events[s],a]:o._events[s].push(a):(o._events[s]=a,o._eventsCount++),o}function sh(o,i){--o._eventsCount===0?o._events=new vc:delete o._events[i]}function Ir(){this._events=new vc,this._eventsCount=0}Ir.prototype.eventNames=function(){var i=[],t,r;if(this._eventsCount===0)return i;for(r in t=this._events)XA.call(t,r)&&i.push(Ur?r.slice(1):r);return Object.getOwnPropertySymbols?i.concat(Object.getOwnPropertySymbols(t)):i};Ir.prototype.listeners=function(i){var t=Ur?Ur+i:i,r=this._events[t];if(!r)return[];if(r.fn)return[r.fn];for(var n=0,a=r.length,s=new Array(a);n<a;n++)s[n]=r[n].fn;return s};Ir.prototype.listenerCount=function(i){var t=Ur?Ur+i:i,r=this._events[t];return r?r.fn?1:r.length:0};Ir.prototype.emit=function(i,t,r,n,a,s){var l=Ur?Ur+i:i;if(!this._events[l])return!1;var d=this._events[l],h=arguments.length,m,f;if(d.fn){switch(d.once&&this.removeListener(i,d.fn,void 0,!0),h){case 1:return d.fn.call(d.context),!0;case 2:return d.fn.call(d.context,t),!0;case 3:return d.fn.call(d.context,t,r),!0;case 4:return d.fn.call(d.context,t,r,n),!0;case 5:return d.fn.call(d.context,t,r,n,a),!0;case 6:return d.fn.call(d.context,t,r,n,a,s),!0}for(f=1,m=new Array(h-1);f<h;f++)m[f-1]=arguments[f];d.fn.apply(d.context,m)}else{var b=d.length,g;for(f=0;f<b;f++)switch(d[f].once&&this.removeListener(i,d[f].fn,void 0,!0),h){case 1:d[f].fn.call(d[f].context);break;case 2:d[f].fn.call(d[f].context,t);break;case 3:d[f].fn.call(d[f].context,t,r);break;case 4:d[f].fn.call(d[f].context,t,r,n);break;default:if(!m)for(g=1,m=new Array(h-1);g<h;g++)m[g-1]=arguments[g];d[f].fn.apply(d[f].context,m)}}return!0};Ir.prototype.on=function(i,t,r){return Xz(this,i,t,r,!1)};Ir.prototype.once=function(i,t,r){return Xz(this,i,t,r,!0)};Ir.prototype.removeListener=function(i,t,r,n){var a=Ur?Ur+i:i;if(!this._events[a])return this;if(!t)return sh(this,a),this;var s=this._events[a];if(s.fn)s.fn===t&&(!n||s.once)&&(!r||s.context===r)&&sh(this,a);else{for(var l=0,d=[],h=s.length;l<h;l++)(s[l].fn!==t||n&&!s[l].once||r&&s[l].context!==r)&&d.push(s[l]);d.length?this._events[a]=d.length===1?d[0]:d:sh(this,a)}return this};Ir.prototype.removeAllListeners=function(i){var t;return i?(t=Ur?Ur+i:i,this._events[t]&&sh(this,t)):(this._events=new vc,this._eventsCount=0),this};Ir.prototype.off=Ir.prototype.removeListener;Ir.prototype.addListener=Ir.prototype.on;Ir.prefixed=Ur;Ir.EventEmitter=Ir;typeof Cf<"u"&&(Cf.exports=Ir)});var kl=globalThis,xb=o=>o,hd=kl.trustedTypes,wb=hd?hd.createPolicy("lit-html",{createHTML:o=>o}):void 0,su="$lit$",Fn=`lit$${Math.random().toFixed(9).slice(2)}$`,lu="?"+Fn,J3=`<${lu}>`,ha=document,Sl=()=>ha.createComment(""),Cl=o=>o===null||typeof o!="object"&&typeof o!="function",cu=Array.isArray,Eb=o=>cu(o)||typeof o?.[Symbol.iterator]=="function",au=`[
3
3
  \f\r]`,_l=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,zb=/-->/g,_b=/>/g,da=RegExp(`>|${au}(?:([^\\s"'>=/]+)(${au}*=${au}*(?:[^
4
- \f\r"'\`<>=]|("|')|))|$)`,"g"),kb=/'/g,Sb=/"/g,Tb=/^(?:script|style|textarea|title)$/i,du=o=>(i,...t)=>({_$litType$:o,strings:i,values:t}),u=du(1),Ji=du(2),$b=du(3),vt=Symbol.for("lit-noChange"),F=Symbol.for("lit-nothing"),Cb=new WeakMap,pa=ha.createTreeWalker(ha,129);function Ab(o,i){if(!cu(o)||!o.hasOwnProperty("raw"))throw Error("invalid template strings array");return wb!==void 0?wb.createHTML(i):i}var Lb=(o,i)=>{let t=o.length-1,r=[],n,a=i===2?"<svg>":i===3?"<math>":"",s=_l;for(let l=0;l<t;l++){let d=o[l],h,m,f=-1,b=0;for(;b<d.length&&(s.lastIndex=b,m=s.exec(d),m!==null);)b=s.lastIndex,s===_l?m[1]==="!--"?s=zb:m[1]!==void 0?s=_b:m[2]!==void 0?(Tb.test(m[2])&&(n=RegExp("</"+m[2],"g")),s=da):m[3]!==void 0&&(s=da):s===da?m[0]===">"?(s=n??_l,f=-1):m[1]===void 0?f=-2:(f=s.lastIndex-m[2].length,h=m[1],s=m[3]===void 0?da:m[3]==='"'?Sb:kb):s===Sb||s===kb?s=da:s===zb||s===_b?s=_l:(s=da,n=void 0);let g=s===da&&o[l+1].startsWith("/>")?" ":"";a+=s===_l?d+J3:f>=0?(r.push(h),d.slice(0,f)+su+d.slice(f)+Fn+g):d+Fn+(f===-2?l:g)}return[Ab(o,a+(o[t]||"<?>")+(i===2?"</svg>":i===3?"</math>":"")),r]},El=class o{constructor({strings:i,_$litType$:t},r){let n;this.parts=[];let a=0,s=0,l=i.length-1,d=this.parts,[h,m]=Lb(i,t);if(this.el=o.createElement(h,r),pa.currentNode=this.el.content,t===2||t===3){let f=this.el.content.firstChild;f.replaceWith(...f.childNodes)}for(;(n=pa.nextNode())!==null&&d.length<l;){if(n.nodeType===1){if(n.hasAttributes())for(let f of n.getAttributeNames())if(f.endsWith(su)){let b=m[s++],g=n.getAttribute(f).split(Fn),v=/([.?@])?(.*)/.exec(b);d.push({type:1,index:a,name:v[2],strings:g,ctor:v[1]==="."?md:v[1]==="?"?fd:v[1]==="@"?gd:ma}),n.removeAttribute(f)}else f.startsWith(Fn)&&(d.push({type:6,index:a}),n.removeAttribute(f));if(Tb.test(n.tagName)){let f=n.textContent.split(Fn),b=f.length-1;if(b>0){n.textContent=hd?hd.emptyScript:"";for(let g=0;g<b;g++)n.append(f[g],Sl()),pa.nextNode(),d.push({type:2,index:++a});n.append(f[b],Sl())}}}else if(n.nodeType===8)if(n.data===lu)d.push({type:2,index:a});else{let f=-1;for(;(f=n.data.indexOf(Fn,f+1))!==-1;)d.push({type:7,index:a}),f+=Fn.length-1}a++}}static createElement(i,t){let r=ha.createElement("template");return r.innerHTML=i,r}};function ua(o,i,t=o,r){if(i===vt)return i;let n=r!==void 0?t._$Co?.[r]:t._$Cl,a=Cl(i)?void 0:i._$litDirective$;return n?.constructor!==a&&(n?._$AO?.(!1),a===void 0?n=void 0:(n=new a(o),n._$AT(o,t,r)),r!==void 0?(t._$Co??(t._$Co=[]))[r]=n:t._$Cl=n),n!==void 0&&(i=ua(o,n._$AS(o,i.values),n,r)),i}var ud=class{constructor(i,t){this._$AV=[],this._$AN=void 0,this._$AD=i,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(i){let{el:{content:t},parts:r}=this._$AD,n=(i?.creationScope??ha).importNode(t,!0);pa.currentNode=n;let a=pa.nextNode(),s=0,l=0,d=r[0];for(;d!==void 0;){if(s===d.index){let h;d.type===2?h=new Za(a,a.nextSibling,this,i):d.type===1?h=new d.ctor(a,d.name,d.strings,this,i):d.type===6&&(h=new bd(a,this,i)),this._$AV.push(h),d=r[++l]}s!==d?.index&&(a=pa.nextNode(),s++)}return pa.currentNode=ha,n}p(i){let t=0;for(let r of this._$AV)r!==void 0&&(r.strings!==void 0?(r._$AI(i,r,t),t+=r.strings.length-2):r._$AI(i[t])),t++}},Za=class o{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(i,t,r,n){this.type=2,this._$AH=F,this._$AN=void 0,this._$AA=i,this._$AB=t,this._$AM=r,this.options=n,this._$Cv=n?.isConnected??!0}get parentNode(){let i=this._$AA.parentNode,t=this._$AM;return t!==void 0&&i?.nodeType===11&&(i=t.parentNode),i}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(i,t=this){i=ua(this,i,t),Cl(i)?i===F||i==null||i===""?(this._$AH!==F&&this._$AR(),this._$AH=F):i!==this._$AH&&i!==vt&&this._(i):i._$litType$!==void 0?this.$(i):i.nodeType!==void 0?this.T(i):Eb(i)?this.k(i):this._(i)}O(i){return this._$AA.parentNode.insertBefore(i,this._$AB)}T(i){this._$AH!==i&&(this._$AR(),this._$AH=this.O(i))}_(i){this._$AH!==F&&Cl(this._$AH)?this._$AA.nextSibling.data=i:this.T(ha.createTextNode(i)),this._$AH=i}$(i){let{values:t,_$litType$:r}=i,n=typeof r=="number"?this._$AC(i):(r.el===void 0&&(r.el=El.createElement(Ab(r.h,r.h[0]),this.options)),r);if(this._$AH?._$AD===n)this._$AH.p(t);else{let a=new ud(n,this),s=a.u(this.options);a.p(t),this.T(s),this._$AH=a}}_$AC(i){let t=Cb.get(i.strings);return t===void 0&&Cb.set(i.strings,t=new El(i)),t}k(i){cu(this._$AH)||(this._$AH=[],this._$AR());let t=this._$AH,r,n=0;for(let a of i)n===t.length?t.push(r=new o(this.O(Sl()),this.O(Sl()),this,this.options)):r=t[n],r._$AI(a),n++;n<t.length&&(this._$AR(r&&r._$AB.nextSibling,n),t.length=n)}_$AR(i=this._$AA.nextSibling,t){for(this._$AP?.(!1,!0,t);i!==this._$AB;){let r=xb(i).nextSibling;xb(i).remove(),i=r}}setConnected(i){this._$AM===void 0&&(this._$Cv=i,this._$AP?.(i))}},ma=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(i,t,r,n,a){this.type=1,this._$AH=F,this._$AN=void 0,this.element=i,this.name=t,this._$AM=n,this.options=a,r.length>2||r[0]!==""||r[1]!==""?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=F}_$AI(i,t=this,r,n){let a=this.strings,s=!1;if(a===void 0)i=ua(this,i,t,0),s=!Cl(i)||i!==this._$AH&&i!==vt,s&&(this._$AH=i);else{let l=i,d,h;for(i=a[0],d=0;d<a.length-1;d++)h=ua(this,l[r+d],t,d),h===vt&&(h=this._$AH[d]),s||(s=!Cl(h)||h!==this._$AH[d]),h===F?i=F:i!==F&&(i+=(h??"")+a[d+1]),this._$AH[d]=h}s&&!n&&this.j(i)}j(i){i===F?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,i??"")}},md=class extends ma{constructor(){super(...arguments),this.type=3}j(i){this.element[this.name]=i===F?void 0:i}},fd=class extends ma{constructor(){super(...arguments),this.type=4}j(i){this.element.toggleAttribute(this.name,!!i&&i!==F)}},gd=class extends ma{constructor(i,t,r,n,a){super(i,t,r,n,a),this.type=5}_$AI(i,t=this){if((i=ua(this,i,t,0)??F)===vt)return;let r=this._$AH,n=i===F&&r!==F||i.capture!==r.capture||i.once!==r.once||i.passive!==r.passive,a=i!==F&&(r===F||n);n&&this.element.removeEventListener(this.name,this,r),a&&this.element.addEventListener(this.name,this,i),this._$AH=i}handleEvent(i){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,i):this._$AH.handleEvent(i)}},bd=class{constructor(i,t,r){this.element=i,this.type=6,this._$AN=void 0,this._$AM=t,this.options=r}get _$AU(){return this._$AM._$AU}_$AI(i){ua(this,i)}},Mb={M:su,P:Fn,A:lu,C:1,L:Lb,R:ud,D:Eb,V:ua,I:Za,H:ma,N:fd,U:gd,B:md,F:bd},Z3=kl.litHtmlPolyfillSupport;Z3?.(El,Za),(kl.litHtmlVersions??(kl.litHtmlVersions=[])).push("3.3.3");var es=(o,i,t)=>{let r=t?.renderBefore??i,n=r._$litPart$;if(n===void 0){let a=t?.renderBefore??null;r._$litPart$=n=new Za(i.insertBefore(Sl(),a),a,void 0,t??{})}return n._$AI(o),n};var dr={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},yt=o=>(...i)=>({_$litDirective$:o,values:i}),ir=class{constructor(i){}get _$AU(){return this._$AM._$AU}_$AT(i,t,r){this._$Ct=i,this._$AM=t,this._$Ci=r}_$AS(i,t){return this.update(i,t)}update(i,t){return this.render(...t)}};var M=yt(class extends ir{constructor(o){if(super(o),o.type!==dr.ATTRIBUTE||o.name!=="class"||o.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(o){return" "+Object.keys(o).filter(i=>o[i]).join(" ")+" "}update(o,[i]){if(this.st===void 0){this.st=new Set,o.strings!==void 0&&(this.nt=new Set(o.strings.join(" ").split(/\s/).filter(r=>r!=="")));for(let r in i)i[r]&&!this.nt?.has(r)&&this.st.add(r);return this.render(i)}let t=o.element.classList;for(let r of this.st)r in i||(t.remove(r),this.st.delete(r));for(let r in i){let n=!!i[r];n===this.st.has(r)||this.nt?.has(r)||(n?(t.add(r),this.st.add(r)):(t.remove(r),this.st.delete(r)))}return vt}});var vd=globalThis,yd=vd.ShadowRoot&&(vd.ShadyCSS===void 0||vd.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,pu=Symbol(),qb=new WeakMap,Tl=class{constructor(i,t,r){if(this._$cssResult$=!0,r!==pu)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=i,this.t=t}get styleSheet(){let i=this.o,t=this.t;if(yd&&i===void 0){let r=t!==void 0&&t.length===1;r&&(i=qb.get(t)),i===void 0&&((this.o=i=new CSSStyleSheet).replaceSync(this.cssText),r&&qb.set(t,i))}return i}toString(){return this.cssText}},_=o=>new Tl(typeof o=="string"?o:o+"",void 0,pu),k=(o,...i)=>{let t=o.length===1?o[0]:i.reduce((r,n,a)=>r+(s=>{if(s._$cssResult$===!0)return s.cssText;if(typeof s=="number")return s;throw Error("Value passed to 'css' function must be a 'css' function result: "+s+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(n)+o[a+1],o[0]);return new Tl(t,o,pu)},Ib=(o,i)=>{if(yd)o.adoptedStyleSheets=i.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(let t of i){let r=document.createElement("style"),n=vd.litNonce;n!==void 0&&r.setAttribute("nonce",n),r.textContent=t.cssText,o.appendChild(r)}},hu=yd?o=>o:o=>o instanceof CSSStyleSheet?(i=>{let t="";for(let r of i.cssRules)t+=r.cssText;return _(t)})(o):o;var{is:e5,defineProperty:t5,getOwnPropertyDescriptor:r5,getOwnPropertyNames:i5,getOwnPropertySymbols:n5,getPrototypeOf:o5}=Object,fo=globalThis,Rb=fo.trustedTypes,a5=Rb?Rb.emptyScript:"",s5=fo.reactiveElementPolyfillSupport,$l=(o,i)=>o,go={toAttribute(o,i){switch(i){case Boolean:o=o?a5:null;break;case Object:case Array:o=o==null?o:JSON.stringify(o)}return o},fromAttribute(o,i){let t=o;switch(i){case Boolean:t=o!==null;break;case Number:t=o===null?null:Number(o);break;case Object:case Array:try{t=JSON.parse(o)}catch{t=null}}return t}},ts=(o,i)=>!e5(o,i),Db={attribute:!0,type:String,converter:go,reflect:!1,useDefault:!1,hasChanged:ts};Symbol.metadata??(Symbol.metadata=Symbol("metadata")),fo.litPropertyMetadata??(fo.litPropertyMetadata=new WeakMap);var Bn=class extends HTMLElement{static addInitializer(i){this._$Ei(),(this.l??(this.l=[])).push(i)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(i,t=Db){if(t.state&&(t.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(i)&&((t=Object.create(t)).wrapped=!0),this.elementProperties.set(i,t),!t.noAccessor){let r=Symbol(),n=this.getPropertyDescriptor(i,r,t);n!==void 0&&t5(this.prototype,i,n)}}static getPropertyDescriptor(i,t,r){let{get:n,set:a}=r5(this.prototype,i)??{get(){return this[t]},set(s){this[t]=s}};return{get:n,set(s){let l=n?.call(this);a?.call(this,s),this.requestUpdate(i,l,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(i){return this.elementProperties.get(i)??Db}static _$Ei(){if(this.hasOwnProperty($l("elementProperties")))return;let i=o5(this);i.finalize(),i.l!==void 0&&(this.l=[...i.l]),this.elementProperties=new Map(i.elementProperties)}static finalize(){if(this.hasOwnProperty($l("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty($l("properties"))){let t=this.properties,r=[...i5(t),...n5(t)];for(let n of r)this.createProperty(n,t[n])}let i=this[Symbol.metadata];if(i!==null){let t=litPropertyMetadata.get(i);if(t!==void 0)for(let[r,n]of t)this.elementProperties.set(r,n)}this._$Eh=new Map;for(let[t,r]of this.elementProperties){let n=this._$Eu(t,r);n!==void 0&&this._$Eh.set(n,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(i){let t=[];if(Array.isArray(i)){let r=new Set(i.flat(1/0).reverse());for(let n of r)t.unshift(hu(n))}else i!==void 0&&t.push(hu(i));return t}static _$Eu(i,t){let r=t.attribute;return r===!1?void 0:typeof r=="string"?r:typeof i=="string"?i.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(i=>this.enableUpdating=i),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(i=>i(this))}addController(i){(this._$EO??(this._$EO=new Set)).add(i),this.renderRoot!==void 0&&this.isConnected&&i.hostConnected?.()}removeController(i){this._$EO?.delete(i)}_$E_(){let i=new Map,t=this.constructor.elementProperties;for(let r of t.keys())this.hasOwnProperty(r)&&(i.set(r,this[r]),delete this[r]);i.size>0&&(this._$Ep=i)}createRenderRoot(){let i=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return Ib(i,this.constructor.elementStyles),i}connectedCallback(){this.renderRoot??(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),this._$EO?.forEach(i=>i.hostConnected?.())}enableUpdating(i){}disconnectedCallback(){this._$EO?.forEach(i=>i.hostDisconnected?.())}attributeChangedCallback(i,t,r){this._$AK(i,r)}_$ET(i,t){let r=this.constructor.elementProperties.get(i),n=this.constructor._$Eu(i,r);if(n!==void 0&&r.reflect===!0){let a=(r.converter?.toAttribute!==void 0?r.converter:go).toAttribute(t,r.type);this._$Em=i,a==null?this.removeAttribute(n):this.setAttribute(n,a),this._$Em=null}}_$AK(i,t){let r=this.constructor,n=r._$Eh.get(i);if(n!==void 0&&this._$Em!==n){let a=r.getPropertyOptions(n),s=typeof a.converter=="function"?{fromAttribute:a.converter}:a.converter?.fromAttribute!==void 0?a.converter:go;this._$Em=n;let l=s.fromAttribute(t,a.type);this[n]=l??this._$Ej?.get(n)??l,this._$Em=null}}requestUpdate(i,t,r,n=!1,a){if(i!==void 0){let s=this.constructor;if(n===!1&&(a=this[i]),r??(r=s.getPropertyOptions(i)),!((r.hasChanged??ts)(a,t)||r.useDefault&&r.reflect&&a===this._$Ej?.get(i)&&!this.hasAttribute(s._$Eu(i,r))))return;this.C(i,t,r)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(i,t,{useDefault:r,reflect:n,wrapped:a},s){r&&!(this._$Ej??(this._$Ej=new Map)).has(i)&&(this._$Ej.set(i,s??t??this[i]),a!==!0||s!==void 0)||(this._$AL.has(i)||(this.hasUpdated||r||(t=void 0),this._$AL.set(i,t)),n===!0&&this._$Em!==i&&(this._$Eq??(this._$Eq=new Set)).add(i))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}let i=this.scheduleUpdate();return i!=null&&await i,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??(this.renderRoot=this.createRenderRoot()),this._$Ep){for(let[n,a]of this._$Ep)this[n]=a;this._$Ep=void 0}let r=this.constructor.elementProperties;if(r.size>0)for(let[n,a]of r){let{wrapped:s}=a,l=this[n];s!==!0||this._$AL.has(n)||l===void 0||this.C(n,void 0,a,l)}}let i=!1,t=this._$AL;try{i=this.shouldUpdate(t),i?(this.willUpdate(t),this._$EO?.forEach(r=>r.hostUpdate?.()),this.update(t)):this._$EM()}catch(r){throw i=!1,this._$EM(),r}i&&this._$AE(t)}willUpdate(i){}_$AE(i){this._$EO?.forEach(t=>t.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(i)),this.updated(i)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(i){return!0}update(i){this._$Eq&&(this._$Eq=this._$Eq.forEach(t=>this._$ET(t,this[t]))),this._$EM()}updated(i){}firstUpdated(i){}};Bn.elementStyles=[],Bn.shadowRootOptions={mode:"open"},Bn[$l("elementProperties")]=new Map,Bn[$l("finalized")]=new Map,s5?.({ReactiveElement:Bn}),(fo.reactiveElementVersions??(fo.reactiveElementVersions=[])).push("2.1.2");var Al=globalThis,bo=class extends Bn{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t;let i=super.createRenderRoot();return(t=this.renderOptions).renderBefore??(t.renderBefore=i.firstChild),i}update(i){let t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(i),this._$Do=es(t,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return vt}};bo._$litElement$=!0,bo.finalized=!0,Al.litElementHydrateSupport?.({LitElement:bo});var l5=Al.litElementPolyfillSupport;l5?.({LitElement:bo});(Al.litElementVersions??(Al.litElementVersions=[])).push("4.2.2");var Nb=new WeakMap;function Ob(o){let i=Nb.get(o);return i||(i=window.getComputedStyle(o,null),Nb.set(o,i)),i}function c5(o){if(typeof o.checkVisibility=="function")return o.checkVisibility({checkOpacity:!1,checkVisibilityCSS:!0});let i=Ob(o);return i.visibility!=="hidden"&&i.display!=="none"}function d5(o){let i=Ob(o),{overflowY:t,overflowX:r}=i;return t==="scroll"||r==="scroll"?!0:t!=="auto"||r!=="auto"?!1:o.scrollHeight>o.clientHeight&&t==="auto"||o.scrollWidth>o.clientWidth&&r==="auto"}function p5(o){let i=o.tagName.toLowerCase(),t=Number(o.getAttribute("tabindex"));return o.hasAttribute("tabindex")&&(isNaN(t)||t<=-1)||o.hasAttribute("disabled")||o.closest("[inert]")||i==="input"&&o.getAttribute("type")==="radio"&&!o.hasAttribute("checked")||!c5(o)?!1:(i==="audio"||i==="video")&&o.hasAttribute("controls")||o.hasAttribute("tabindex")||o.hasAttribute("contenteditable")&&o.getAttribute("contenteditable")!=="false"||["button","input","select","textarea","a","audio","video","summary","iframe"].includes(i)?!0:d5(o)}function Pb(o){let i=uu(o),t=i[0]??null,r=i[i.length-1]??null;return{start:t,end:r}}function h5(o,i){return o.getRootNode({composed:!0})?.host!==i}function uu(o){let i=new WeakMap,t=[];function r(n){if(n instanceof Element){if(n.hasAttribute("inert")||n.closest("[inert]")||i.has(n))return;i.set(n,!0),!t.includes(n)&&p5(n)&&t.push(n),n instanceof HTMLSlotElement&&h5(n,o)&&n.assignedElements({flatten:!0}).forEach(a=>{r(a)}),n.shadowRoot!==null&&n.shadowRoot.mode==="open"&&r(n.shadowRoot)}for(let a of n.children)r(a)}return r(o),t.sort((n,a)=>{let s=Number(n.getAttribute("tabindex"))||0;return(Number(a.getAttribute("tabindex"))||0)-s})}var Hb=new WeakMap,mu=class{constructor(i){this.handleKeyDown=i=>{if(i.key==="Enter"){if(i.altKey||i.ctrlKey||i.metaKey||i.shiftKey||i.isComposing||i.defaultPrevented)return;let r=i.target;if(this.isSelectOption(r)){i.preventDefault(),setTimeout(()=>{let a=this.findParentSelect(r);a&&this.focusNextControl(a)},0);return}if(this.shouldSkipEnterKey(r)||r.hasAttribute("trigger-submit"))return;let n=this.findParentGroup(r);if(n){i.preventDefault(),this.focusNextInGroup(r,n)||this.focusNextControl(n);return}i.preventDefault(),this.areRequiredFieldsFilled()?this.submitForm():this.focusNextControl(r);return}if(i.key==="ArrowDown"){let t=i.target,r=t.tagName;if(!(i.altKey||i.ctrlKey||i.metaKey||i.shiftKey)&&!i.defaultPrevented){let a=this.findParentGroup(t);if(a){i.preventDefault(),this.focusNextInGroup(t,a)||this.focusNextControl(a);return}(r==="ZN-CHECKBOX"||r==="ZN-TOGGLE")&&(i.preventDefault(),this.focusNextControl(t))}}if(i.key==="ArrowUp"){let t=i.target,r=t.tagName;if(!(i.altKey||i.ctrlKey||i.metaKey||i.shiftKey)&&!i.defaultPrevented){let a=this.findParentGroup(t);if(a){i.preventDefault(),this.focusPreviousInGroup(t,a)||this.focusPreviousControl(a);return}(r==="ZN-CHECKBOX"||r==="ZN-TOGGLE")&&(i.preventDefault(),this.focusPreviousControl(t))}}};this.form=i,this.form.addEventListener("keydown",this.handleKeyDown,!0)}shouldSkipEnterKey(i){let t=i.tagName.toLowerCase();return t==="zn-textarea"||t==="textarea"||(t==="zn-input"||t==="input")&&i.getAttribute("type")==="search"?!0:t==="button"||t==="zn-button"}shouldExcludeFromNavigation(i){let t=i.tagName.toLowerCase();return t==="button"||t==="zn-button"}isSelectOption(i){return i.tagName.toLowerCase()==="zn-option"}findParentSelect(i){let t=i;for(;t;){if(t.tagName.toLowerCase()==="zn-select")return t;let r=t.getRootNode();if(r instanceof ShadowRoot)t=r.host;else if(t.parentElement)t=t.parentElement;else break}return null}findParentGroup(i){let t=i;for(;t;){let r=t.tagName;if(r==="ZN-RADIO-GROUP"||r==="ZN-CHECKBOX-GROUP")return t;let n=t.getRootNode();if(n instanceof ShadowRoot)t=n.host;else if(t.parentElement)t=t.parentElement;else break}return null}getGroupItems(i){let t=i.tagName==="ZN-RADIO-GROUP"?"ZN-RADIO":"ZN-CHECKBOX",r=[],n=document.createTreeWalker(i,NodeFilter.SHOW_ELEMENT,{acceptNode:s=>s.tagName===t?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}),a;for(;a=n.nextNode();)r.push(a);return r}focusNextInGroup(i,t){let r=this.getGroupItems(t);if(r.length===0)return!1;let n=-1;for(let a=0;a<r.length;a++)if(r[a]===i||r[a].contains(i)){n=a;break}if(n>=0&&n<r.length-1){let a=r[n+1];if(typeof a.focus=="function")return a.focus(),!0}return!1}focusPreviousInGroup(i,t){let r=this.getGroupItems(t);if(r.length===0)return!1;let n=-1;for(let a=0;a<r.length;a++)if(r[a]===i||r[a].contains(i)){n=a;break}if(n>0){let a=r[n-1];if(typeof a.focus=="function")return a.focus(),!0}return!1}areRequiredFieldsFilled(){let i=fa.get(this.form);if(!i)return!0;for(let t of i){let r=t;if(!r.name||r.disabled)continue;let n=r.value;if(!(n!=null&&n!=="")||typeof r.checkValidity=="function"&&!r.checkValidity())return!1}return!0}getNavigableControls(){let i=uu(this.form),t=[],r=new Set;for(let n of i){let a=n.tagName.toLowerCase();if(["zn-input","zn-select","zn-datepicker","zn-textarea","zn-file","zn-checkbox","zn-radio","zn-radio-group","zn-toggle"].includes(a)){if(a==="zn-radio"){let h=n.closest("zn-radio-group");if(h){r.has(h)||(r.add(h),this.shouldExcludeFromNavigation(h)||t.push(h));continue}}if(r.has(n)||(r.add(n),this.shouldExcludeFromNavigation(n)))continue;t.push(n);continue}let l=n.getRootNode().host;if(l&&l!==this.form){let h=l.tagName.toLowerCase();if(["zn-input","zn-select","zn-datepicker","zn-textarea","zn-file","zn-checkbox","zn-radio","zn-radio-group","zn-toggle"].includes(h)){if(h==="zn-radio"){let f=l.closest("zn-radio-group");if(f){r.has(f)||(r.add(f),this.shouldExcludeFromNavigation(f)||t.push(f));continue}}if(r.has(l)||(r.add(l),this.shouldExcludeFromNavigation(l)))continue;t.push(l);continue}}if(["input","select"].includes(a)){if(r.has(n)||(r.add(n),n.getAttribute("type")==="search"))continue;t.push(n)}}return t}findCurrentControlIndex(i,t){for(let r=0;r<t.length;r++){let n=t[r];if(n===i)return r;let a=i.getRootNode();if(a instanceof ShadowRoot&&a.host===n||n.contains(i)||i.contains(n))return r}return-1}focusNextControl(i){let t=this.getNavigableControls(),r=this.findCurrentControlIndex(i,t);if(r>=0&&r<t.length-1){let n=t[r+1];if(typeof n.focus=="function"&&(n.focus(),n.tagName.toLowerCase()==="zn-select")){let s=n;typeof s.show=="function"&&setTimeout(()=>{s.show?.()},0)}}}focusPreviousControl(i){let t=this.getNavigableControls(),r=this.findCurrentControlIndex(i,t);if(r>0){let n=t[r-1];if(typeof n.focus=="function"&&(n.focus(),n.tagName.toLowerCase()==="zn-select")){let s=n;typeof s.show=="function"&&setTimeout(()=>{s.show?.()},0)}}}submitForm(){let i=this.form.querySelector('[type="submit"]');if(i)i.click();else if(typeof this.form.requestSubmit=="function")this.form.requestSubmit();else{let t=new Event("submit",{bubbles:!0,cancelable:!0});this.form.dispatchEvent(t)}}destroy(){this.form.removeEventListener("keydown",this.handleKeyDown,!0)}};function Fb(o){let i=Hb.get(o);return i||(i=new mu(o),Hb.set(o,i)),i}function pr(o){return`#${CSS.escape(o.startsWith("#")?o.slice(1):o)}`}function u5(o,i=document){let t=i.querySelector(o);if(t)return t;for(let r of i.querySelectorAll("*"))if(r.shadowRoot){let n=u5(o,r.shadowRoot);if(n)return n}return null}function m5(o,i=document,t=[]){t.push(...i.querySelectorAll(o));for(let r of i.querySelectorAll("*"))r.shadowRoot&&m5(o,r.shadowRoot,t);return t}function Ge(o,i,t){let r=[],n=(a,s)=>{if(!a||a.nodeType!==Node.ELEMENT_NODE||s&&t&&a.matches(t))return;a.matches(o)&&r.push(a);let l=a.children;if(l.length)for(let h of l)n(h,!0);let d=a.shadowRoot;if(d){let h=d.children;for(let m of h)n(m,!0)}};return n(i,!1),r}var Sr=class{constructor(i,t,r=0){this.storage=i,this.prefix=t,this.ttl=r*1e3,this.cleanup()}get(i){return!i||i.length<1?null:this.stripTtl(this.storage.getItem(this.prefix+i))}stripTtl(i){if(i===null)return null;let t=i.split(",");if(t.length===1)return t[0];let r=t.shift(),n=r?parseInt(r):0;return n>0&&n<Date.now()?null:t.join(",")||""}setWithTTL(i,t,r){!i||i.length<1||(r=r>0?Date.now()+r*1e3:0,this.storage.setItem(this.prefix+i,r+","+t))}set(i,t){this.setWithTTL(i,t,this.ttl)}remove(i){this.storage.removeItem(this.prefix+i)}cleanup(){for(let i=0;i<this.storage.length;i++){let t=this.storage.key(i);t!==null&&t.startsWith(this.prefix)&&this.stripTtl(this.storage.getItem(t))===null&&this.storage.removeItem(t)}}};var fa=new WeakMap,Ll=new WeakMap,Ml=new WeakMap,xd=new WeakMap,fu=new WeakSet,wd=new WeakMap,Gb="znform:";function gu(o=!1){try{return o?window.localStorage:window.sessionStorage}catch{return null}}function f5(o=!1,i=0){let t=gu(o);return t?new Sr(t,Gb,i):null}function Bb(o){let i=o?.getAttribute("store-ttl");return i&&Number(i)||0}function Vb(o){return!!o?.hasAttribute("local-storage")}function Kb(o){return o?.getAttribute("store-key")||""}function g5(o){return o.getAttribute("store-key")||""}function b5(o){return o.getAttribute("name")||("name"in o&&typeof o.name=="string"?o.name:"")}function Wb(o,i){let t=g5(o),r=Kb(i);if(t)return r?`${r}:${t}`:t;let n=b5(o);return r&&n?`${r}:${n}`:""}function Yb(o,i){let t=Vb(o)||Vb(i),r=Bb(o)||Bb(i);return f5(t,r)}function Qb(o,i){let t=Wb(o,i),n=(t?Yb(o,i):null)?.get(t);if(!n)return null;try{return JSON.parse(n)}catch{return{value:n}}}function Xb(o,i,t){let r=Wb(o,i),n=r?Yb(o,i):null;n&&n.set(r,JSON.stringify(t))}function v5(o){return o instanceof HTMLInputElement||o instanceof HTMLTextAreaElement||o instanceof HTMLSelectElement}function y5(o){return o instanceof HTMLInputElement&&(o.type==="checkbox"||o.type==="radio")?{checked:o.checked,value:o.value}:{value:o.value}}function x5(o){o.querySelectorAll("input, textarea, select").forEach(t=>{let r=Qb(t,o);if(r){if(t instanceof HTMLInputElement&&(t.type==="checkbox"||t.type==="radio")){typeof r.checked=="boolean"&&(t.checked=r.checked);return}"value"in r&&(t.value=String(r.value??""))}})}function Ub(o,i){!v5(o)||o.form!==i||Xb(o,i,y5(o))}function w5(o,i){let t={value:i};return"checked"in o&&typeof o.checked=="boolean"&&(t.checked=o.checked),"indeterminate"in o&&typeof o.indeterminate=="boolean"&&(t.indeterminate=o.indeterminate),t}function jb(o,i){let t=[],r=Gb+i;for(let n=0;n<o.length;n++){let a=o.key(n);(a===r||a?.startsWith(r+":"))&&t.push(a)}t.forEach(n=>o.removeItem(n))}function z5(o){let i=typeof o=="string"?o:Kb(o);if(!i)return;let t=gu(!0),r=gu(!1);t&&jb(t,i),r&&r!==t&&jb(r,i)}var re=class{constructor(i,t){this.handleFormData=i=>{let t=this.options.disabled(this.host),r=this.options.name(this.host),n=this.options.value(this.host),a=this.host.tagName.toLowerCase()==="zn-button";if(this.host.isConnected&&!t&&!a&&r.length>0&&typeof n<"u"){let s=m=>{i.formData.append(r,m.toString())},l=(m,f)=>{let b=m,g=f??(typeof b.name=="string"?b.name:void 0);typeof g=="string"?i.formData.append(r,m,g):i.formData.append(r,m)},d=m=>typeof FileList<"u"&&m instanceof FileList,h=m=>typeof Blob<"u"&&m instanceof Blob;if(d(n)){if(n.length>0)for(let m=0;m<n.length;m++){let f=n.item(m);f&&l(f,f.name)}}else h(n)?l(n,n.name):Array.isArray(n)?n.forEach(m=>{if(h(m))l(m,m.name);else if(d(m)){let f=m;for(let b=0;b<f.length;b++){let g=f.item(b);g&&l(g,g.name)}}else s(m)}):s(n);this.host.dispatchEvent(new CustomEvent("zn-formdata",{bubbles:!0,composed:!0}))}};this.handleFormSubmit=i=>{let t=this.options.disabled(this.host),r=this.options.reportValidity;this.form&&!this.form.noValidate&&fa.get(this.form)?.forEach(s=>{this.setUserInteracted(s,!0)});let n=this.form?.querySelector('[type="submit"]'),a=n?.innerHTML??"Submit";n&&(n.setAttribute("data-original-text",a),setTimeout(()=>{n.disabled=!0,n.innerHTML=this.form?.hasAttribute("data-no-loading-text")?a:this.form?.getAttribute("data-loading-text")||"Processing..."},20),setTimeout(()=>{n.disabled=!1,n.innerHTML=a},15e3)),this.form&&!this.form.noValidate&&!t&&!r(this.host)&&(i.preventDefault(),i.stopImmediatePropagation(),n&&(n.disabled=!1,n.innerHTML=a))};this.enableSubmit=i=>{if(i.target!==this.form)return;let r=this.form?.querySelector('[type="submit"]');if(r){let n=r.getAttribute("data-original-text")??r.innerHTML;r.disabled=!1,r.innerHTML=n}};this.handleFormReset=()=>{this.options.setValue(this.host,this.options.defaultValue(this.host)),this.setUserInteracted(this.host,!1),wd.set(this.host,[])};this.handleInteraction=i=>{let t=wd.get(this.host);t.includes(i.type)||t.push(i.type),t.length===this.options.assumeInteractionOn.length&&this.setUserInteracted(this.host,!0),this.persistHostValue(),this.checkFormValidity()};this.checkFormValidity=()=>{let i=this.form?.querySelector('[type="submit"]');if(this.form&&!this.form.noValidate){let t=this.form.querySelectorAll("*");for(let r of t)if(typeof r.checkValidity=="function"&&!r.checkValidity())return i?.setAttribute("disabled","disabled"),!1}return i?.removeAttribute("disabled"),!0};this.reportFormValidity=()=>{if(this.form&&!this.form.noValidate){let i=this.form.querySelectorAll("*");for(let t of i)if(typeof t.reportValidity=="function"&&!t.reportValidity())return!1}return!0};(this.host=i).addController(this),this.options={form:r=>{let n=r.form;if(n){let s=r.getRootNode().querySelector(pr(n));if(s)return s}return r.closest("form")},name:r=>r.name,value:r=>r.value,defaultValue:r=>r.defaultValue,disabled:r=>r.disabled??!1,reportValidity:r=>typeof r.reportValidity=="function"?r.reportValidity():!0,checkValidity:r=>typeof r.checkValidity=="function"?r.checkValidity():!0,setValue:(r,n)=>r.value=n,assumeInteractionOn:["zn-input"],...t}}async hostConnected(){let i=this.options.form(this.host);i&&this.attachForm(i),wd.set(this.host,[]),this.options.assumeInteractionOn.forEach(t=>{this.host.addEventListener(t,this.handleInteraction)}),await this.host.updateComplete,this.restorePersistedValue(),i&&this.checkFormValidity()}hostDisconnected(){this.detachForm(),wd.delete(this.host),this.options.assumeInteractionOn.forEach(i=>{this.host.removeEventListener(i,this.handleInteraction)})}hostUpdated(){let i=this.options.form(this.host);i||this.detachForm(),i&&this.form!==i&&(this.detachForm(),this.attachForm(i)),this.host.hasUpdated&&this.setValidity(this.host.validity?.valid)}attachForm(i){if(!i){this.form=void 0;return}this.form=i,fa.has(this.form)?fa.get(this.form).add(this.host):fa.set(this.form,new Set([this.host])),this.form.hasAttribute("data-enter-navigation")&&Fb(this.form),this.form.addEventListener("formdata",this.handleFormData),this.form.addEventListener("submit",this.handleFormSubmit),this.form.addEventListener("reset",this.handleFormReset),this.form.addEventListener("complete",this.enableSubmit),this.form.addEventListener("cancelled",this.enableSubmit),this.form.addEventListener("error",this.enableSubmit),this.attachFormPersistence(this.form),Ll.has(this.form)||(Ll.set(this.form,this.form.reportValidity),this.form.reportValidity=()=>this.reportFormValidity()),Ml.has(this.form)||(Ml.set(this.form,this.form.checkValidity),this.form.checkValidity=()=>this.checkFormValidity())}detachForm(){if(!this.form)return;let i=fa.get(this.form);i&&(i.delete(this.host),i.size<=0&&(this.form.removeEventListener("formdata",this.handleFormData),this.form.removeEventListener("submit",this.handleFormSubmit),this.form.removeEventListener("reset",this.handleFormReset),this.form.removeEventListener("complete",this.enableSubmit),this.form.removeEventListener("cancelled",this.enableSubmit),this.form.removeEventListener("error",this.enableSubmit),this.detachFormPersistence(this.form),Ll.has(this.form)&&(this.form.reportValidity=Ll.get(this.form),Ll.delete(this.form)),Ml.has(this.form)&&(this.form.checkValidity=Ml.get(this.form),Ml.delete(this.form)),this.form=void 0))}attachFormPersistence(i){if(xd.has(i))return;let t=n=>Ub(n.target,i),r=n=>Ub(n.target,i);i.addEventListener("input",t),i.addEventListener("change",r),xd.set(i,{handleInput:t,handleChange:r}),x5(i)}detachFormPersistence(i){let t=xd.get(i);t&&(i.removeEventListener("input",t.handleInput),i.removeEventListener("change",t.handleChange),xd.delete(i))}restorePersistedValue(){let i=Qb(this.host,this.form);i&&("checked"in this.host&&typeof i.checked=="boolean"?this.options.setValue(this.host,i.checked):"value"in i&&this.options.setValue(this.host,i.value),"indeterminate"in this.host&&typeof i.indeterminate=="boolean"&&(this.host.indeterminate=i.indeterminate))}persistHostValue(){Xb(this.host,this.form,w5(this.host,this.options.value(this.host)))}setUserInteracted(i,t){t?fu.add(i):fu.delete(i),i.requestUpdate()}doAction(i,t){if(this.form){let r=document.createElement("button");r.type=i,r.style.position="absolute",r.style.width="0",r.style.height="0",r.style.clipPath="inset(50%)",r.style.overflow="hidden",r.style.whiteSpace="nowrap",t&&(r.name=t.name,r.value=t.value,["formaction","formenctype","formmethod","formnovalidate","formtarget"].forEach(n=>{t.hasAttribute(n)&&r.setAttribute(n,t.getAttribute(n))})),this.form.append(r),this.form instanceof HTMLFormElement&&document.dispatchEvent(new CustomEvent("zn-register-element",{detail:{element:this.form}})),r.click(),r.remove()}}getForm(){return this.form??null}reset(i){this.doAction("reset",i)}submit(i){this.doAction("submit",i)}setValidity(i){let t=this.host,r=!!fu.has(t),n=!!t.required;t.toggleAttribute("data-required",n),t.toggleAttribute("data-optional",!n),t.toggleAttribute("data-invalid",!i),t.toggleAttribute("data-valid",i),t.toggleAttribute("data-user-invalid",!i&&r),t.toggleAttribute("data-user-valid",i&&r)}updateValidity(){let i=this.host;this.setValidity(i.validity?.valid)}emitInvalidEvent(i){let t=new CustomEvent("zn-invalid",{bubbles:!1,composed:!1,cancelable:!0,detail:{}});i||t.preventDefault(),this.host.dispatchEvent(t)||i?.preventDefault()}},et=Object.freeze({badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valid:!0,valueMissing:!1}),zd=Object.freeze({...et,customError:!0,valid:!1}),rs=Object.freeze({...et,valueMissing:!0,valid:!1});var Y=class{constructor(i,...t){this.slotNames=[];this.handleSlotChange=i=>{let t=i.target;(this.slotNames.includes("[default]")&&!t.name||t.name&&this.slotNames.includes(t.name))&&this.host.requestUpdate()};(this.host=i).addController(this),this.slotNames=t}hasDefaultSlot(){return[...this.host.childNodes].some(i=>{if(i.nodeType===i.TEXT_NODE&&i.textContent.trim()!=="")return!0;if(i.nodeType===i.ELEMENT_NODE){let t=i;if(t.tagName.toLowerCase()==="zn-visually-hidden")return!1;if(!t.hasAttribute("slot"))return!0}return!1})}hasNamedSlot(i){return this.host.querySelector(`:scope > [slot="${i}"]`)!==null}test(i){return i==="[default]"?this.hasDefaultSlot():this.hasNamedSlot(i)}hostConnected(){this.host.shadowRoot.addEventListener("slotchange",this.handleSlotChange)}hostDisconnected(){this.host.shadowRoot.removeEventListener("slotchange",this.handleSlotChange)}getSlot(i){return this.host.querySelector(`:scope > [slot="${i}"]`)}getDefaultSlot(){return[...this.host.childNodes].filter(i=>{if(i.nodeType===i.TEXT_NODE&&i.textContent.trim()!=="")return!0;if(i.nodeType===i.ELEMENT_NODE){let t=i;if(t.tagName.toLowerCase()==="zn-visually-hidden")return!1;if(!t.hasAttribute("slot"))return!0}return!1})}getSlots(i){return this.host.querySelectorAll(`:scope > [slot="${i}"]`)}};function Jb(o){if(!o)return"";let i=o.assignedNodes({flatten:!0}),t="";return[...i].forEach(r=>{r.nodeType===Node.TEXT_NODE&&(t+=r.textContent)}),t}var ev=Symbol.for(""),_5=o=>{if(o?.r===ev)return o?._$litStatic$};var Li=(o,...i)=>({_$litStatic$:i.reduce((t,r,n)=>t+(a=>{if(a._$litStatic$!==void 0)return a._$litStatic$;throw Error(`Value passed to 'literal' function must be a 'literal' result: ${a}. Use 'unsafeStatic' to pass non-literal values, but
5
- take care to ensure page security.`)})(r)+o[n+1],o[0]),r:ev}),Zb=new Map,bu=o=>(i,...t)=>{let r=t.length,n,a,s=[],l=[],d,h=0,m=!1;for(;h<r;){for(d=i[h];h<r&&(a=t[h],(n=_5(a))!==void 0);)d+=n+i[++h],m=!0;h!==r&&l.push(a),s.push(d),h++}if(h===r&&s.push(i[r]),m){let f=s.join("$$lit$$");(i=Zb.get(f))===void 0&&(s.raw=s,Zb.set(f,i=s)),t=l}return o(i,...t)},Ce=bu(u),sN=bu(Ji),lN=bu($b);var O=o=>o??F;var tv=o=>(i,t)=>{t!==void 0?t.addInitializer(()=>{customElements.define(o,i)}):customElements.define(o,i)};var k5={attribute:!0,type:String,converter:go,reflect:!1,hasChanged:ts},S5=(o=k5,i,t)=>{let{kind:r,metadata:n}=t,a=globalThis.litPropertyMetadata.get(n);if(a===void 0&&globalThis.litPropertyMetadata.set(n,a=new Map),r==="setter"&&((o=Object.create(o)).wrapped=!0),a.set(t.name,o),r==="accessor"){let{name:s}=t;return{set(l){let d=i.get.call(this);i.set.call(this,l),this.requestUpdate(s,d,o,!0,l)},init(l){return l!==void 0&&this.C(s,void 0,o,l),l}}}if(r==="setter"){let{name:s}=t;return function(l){let d=this[s];i.call(this,l),this.requestUpdate(s,d,o,!0,l)}}throw Error("Unsupported decorator location: "+r)};function p(o){return(i,t)=>typeof t=="object"?S5(o,i,t):((r,n,a)=>{let s=n.hasOwnProperty(a);return n.constructor.createProperty(a,r),s?Object.getOwnPropertyDescriptor(n,a):void 0})(o,i,t)}function I(o){return p({...o,state:!0,attribute:!1})}function rv(o){return(i,t)=>{let r=typeof i=="function"?i:i[t];Object.assign(r,o)}}var xn=(o,i,t)=>(t.configurable=!0,t.enumerable=!0,Reflect.decorate&&typeof i!="object"&&Object.defineProperty(o,i,t),t);function B(o,i){return(t,r,n)=>{let a=s=>s.renderRoot?.querySelector(o)??null;if(i){let{get:s,set:l}=typeof r=="object"?t:n??(()=>{let d=Symbol();return{get(){return this[d]},set(h){this[d]=h}}})();return xn(t,r,{get(){let d=s.call(this);return d===void 0&&(d=a(this),(d!==null||this.hasUpdated)&&l.call(this,d)),d}})}return xn(t,r,{get(){return a(this)}})}}var C5;function is(o){return(i,t)=>xn(i,t,{get(){return(this.renderRoot??C5??(C5=document.createDocumentFragment())).querySelectorAll(o)}})}function iv(o){return(i,t)=>xn(i,t,{async get(){return await this.updateComplete,this.renderRoot?.querySelector(o)??null}})}function nv(o){return(i,t)=>{let{slot:r}=o??{},n="slot"+(r?`[name=${r}]`:":not([name])");return xn(i,t,{get(){return this.renderRoot?.querySelector(n)?.assignedNodes(o)??[]}})}}var ov="important",E5=" !"+ov,xt=yt(class extends ir{constructor(o){if(super(o),o.type!==dr.ATTRIBUTE||o.name!=="style"||o.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(o){return Object.keys(o).reduce((i,t)=>{let r=o[t];return r==null?i:i+`${t=t.includes("-")?t:t.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${r};`},"")}update(o,[i]){let{style:t}=o.element;if(this.ft===void 0)return this.ft=new Set(Object.keys(i)),this.render(i);for(let r of this.ft)i[r]==null&&(this.ft.delete(r),r.includes("-")?t.removeProperty(r):t[r]=null);for(let r in i){let n=i[r];if(n!=null){this.ft.add(r);let a=typeof n=="string"&&n.endsWith(E5);r.includes("-")||a?t.setProperty(r,a?n.slice(0,-11):n,a?ov:""):t[r]=n}}return vt}});function W(o,i){let t={waitUntilFirstUpdate:!1,...i};return(r,n)=>{let{update:a}=r,s=Array.isArray(o)?o:[o];r.update=function(l){s.forEach(d=>{let h=d;if(l.has(h)){let m=l.get(h),f=this[h];m!==f&&(!t.waitUntilFirstUpdate||this.hasUpdated)&&this[n](m,f)}}),a.call(this,l)}}}var T5=Object.defineProperty,$5=(o,i,t)=>i in o?T5(o,i,{enumerable:!0,configurable:!0,writable:!0,value:t}):o[i]=t,vu=(o,i,t)=>($5(o,typeof i!="symbol"?i+"":i,t),t),A5=(o,i,t)=>{if(!i.has(o))throw TypeError("Cannot "+t)},yu=(o,i)=>{if(Object(i)!==i)throw TypeError('Cannot use the "in" operator on this value');return o.has(i)},_d=(o,i,t)=>{if(i.has(o))throw TypeError("Cannot add the same private member more than once");i instanceof WeakSet?i.add(o):i.set(o,t)},av=(o,i,t)=>(A5(o,i,"access private method"),t);function sv(o,i){return Object.is(o,i)}var Ot=null,ql=!1,kd=1,Sd=Symbol("SIGNAL");function ns(o){let i=Ot;return Ot=o,i}function L5(){return Ot}function M5(){return ql}var ku={version:0,lastCleanEpoch:0,dirty:!1,producerNode:void 0,producerLastReadVersion:void 0,producerIndexOfThis:void 0,nextProducerIndex:0,liveConsumerNode:void 0,liveConsumerIndexOfThis:void 0,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};function Cd(o){if(ql)throw new Error(typeof ngDevMode<"u"&&ngDevMode?"Assertion error: signal read during notification phase":"");if(Ot===null)return;Ot.consumerOnSignalRead(o);let i=Ot.nextProducerIndex++;if(os(Ot),i<Ot.producerNode.length&&Ot.producerNode[i]!==o&&zu(Ot)){let t=Ot.producerNode[i];Ed(t,Ot.producerIndexOfThis[i])}Ot.producerNode[i]!==o&&(Ot.producerNode[i]=o,Ot.producerIndexOfThis[i]=zu(Ot)?dv(o,Ot,i):0),Ot.producerLastReadVersion[i]=o.version}function q5(){kd++}function lv(o){if(!(!o.dirty&&o.lastCleanEpoch===kd)){if(!o.producerMustRecompute(o)&&!O5(o)){o.dirty=!1,o.lastCleanEpoch=kd;return}o.producerRecomputeValue(o),o.dirty=!1,o.lastCleanEpoch=kd}}function cv(o){if(o.liveConsumerNode===void 0)return;let i=ql;ql=!0;try{for(let t of o.liveConsumerNode)t.dirty||R5(t)}finally{ql=i}}function I5(){return Ot?.consumerAllowSignalWrites!==!1}function R5(o){var i;o.dirty=!0,cv(o),(i=o.consumerMarkedDirty)==null||i.call(o.wrapper??o)}function D5(o){return o&&(o.nextProducerIndex=0),ns(o)}function N5(o,i){if(ns(i),!(!o||o.producerNode===void 0||o.producerIndexOfThis===void 0||o.producerLastReadVersion===void 0)){if(zu(o))for(let t=o.nextProducerIndex;t<o.producerNode.length;t++)Ed(o.producerNode[t],o.producerIndexOfThis[t]);for(;o.producerNode.length>o.nextProducerIndex;)o.producerNode.pop(),o.producerLastReadVersion.pop(),o.producerIndexOfThis.pop()}}function O5(o){os(o);for(let i=0;i<o.producerNode.length;i++){let t=o.producerNode[i],r=o.producerLastReadVersion[i];if(r!==t.version||(lv(t),r!==t.version))return!0}return!1}function dv(o,i,t){var r;if(Su(o),os(o),o.liveConsumerNode.length===0){(r=o.watched)==null||r.call(o.wrapper);for(let n=0;n<o.producerNode.length;n++)o.producerIndexOfThis[n]=dv(o.producerNode[n],o,n)}return o.liveConsumerIndexOfThis.push(t),o.liveConsumerNode.push(i)-1}function Ed(o,i){var t;if(Su(o),os(o),typeof ngDevMode<"u"&&ngDevMode&&i>=o.liveConsumerNode.length)throw new Error(`Assertion error: active consumer index ${i} is out of bounds of ${o.liveConsumerNode.length} consumers)`);if(o.liveConsumerNode.length===1){(t=o.unwatched)==null||t.call(o.wrapper);for(let n=0;n<o.producerNode.length;n++)Ed(o.producerNode[n],o.producerIndexOfThis[n])}let r=o.liveConsumerNode.length-1;if(o.liveConsumerNode[i]=o.liveConsumerNode[r],o.liveConsumerIndexOfThis[i]=o.liveConsumerIndexOfThis[r],o.liveConsumerNode.length--,o.liveConsumerIndexOfThis.length--,i<o.liveConsumerNode.length){let n=o.liveConsumerIndexOfThis[i],a=o.liveConsumerNode[i];os(a),a.producerIndexOfThis[n]=i}}function zu(o){var i;return o.consumerIsAlwaysLive||(((i=o?.liveConsumerNode)==null?void 0:i.length)??0)>0}function os(o){o.producerNode??(o.producerNode=[]),o.producerIndexOfThis??(o.producerIndexOfThis=[]),o.producerLastReadVersion??(o.producerLastReadVersion=[])}function Su(o){o.liveConsumerNode??(o.liveConsumerNode=[]),o.liveConsumerIndexOfThis??(o.liveConsumerIndexOfThis=[])}function pv(o){if(lv(o),Cd(o),o.value===_u)throw o.error;return o.value}function P5(o){let i=Object.create(H5);i.computation=o;let t=()=>pv(i);return t[Sd]=i,t}var xu=Symbol("UNSET"),wu=Symbol("COMPUTING"),_u=Symbol("ERRORED"),H5={...ku,value:xu,dirty:!0,error:null,equal:sv,producerMustRecompute(o){return o.value===xu||o.value===wu},producerRecomputeValue(o){if(o.value===wu)throw new Error("Detected cycle in computations.");let i=o.value;o.value=wu;let t=D5(o),r,n=!1;try{r=o.computation.call(o.wrapper),n=i!==xu&&i!==_u&&o.equal.call(o.wrapper,i,r)}catch(a){r=_u,o.error=a}finally{N5(o,t)}if(n){o.value=i;return}o.value=r,o.version++}};function F5(){throw new Error}var B5=F5;function V5(){B5()}function U5(o){let i=Object.create(K5);i.value=o;let t=()=>(Cd(i),i.value);return t[Sd]=i,t}function j5(){return Cd(this),this.value}function G5(o,i){I5()||V5(),o.equal.call(o.wrapper,o.value,i)||(o.value=i,W5(o))}var K5={...ku,equal:sv,value:void 0};function W5(o){o.version++,q5(),cv(o)}var hr=Symbol("node"),st;(o=>{var i,t,r,n,a,s;class l{constructor(m,f={}){_d(this,t),vu(this,i);let g=U5(m)[Sd];if(this[hr]=g,g.wrapper=this,f){let v=f.equals;v&&(g.equal=v),g.watched=f[o.subtle.watched],g.unwatched=f[o.subtle.unwatched]}}get(){if(!(0,o.isState)(this))throw new TypeError("Wrong receiver type for Signal.State.prototype.get");return j5.call(this[hr])}set(m){if(!(0,o.isState)(this))throw new TypeError("Wrong receiver type for Signal.State.prototype.set");if(M5())throw new Error("Writes to signals not permitted during Watcher callback");let f=this[hr];G5(f,m)}}i=hr,t=new WeakSet,r=function(){},o.isState=h=>typeof h=="object"&&yu(t,h),o.State=l;class d{constructor(m,f){_d(this,a),vu(this,n);let g=P5(m)[Sd];if(g.consumerAllowSignalWrites=!0,this[hr]=g,g.wrapper=this,f){let v=f.equals;v&&(g.equal=v),g.watched=f[o.subtle.watched],g.unwatched=f[o.subtle.unwatched]}}get(){if(!(0,o.isComputed)(this))throw new TypeError("Wrong receiver type for Signal.Computed.prototype.get");return pv(this[hr])}}n=hr,a=new WeakSet,s=function(){},o.isComputed=h=>typeof h=="object"&&yu(a,h),o.Computed=d,(h=>{var m,f,b,g,v;function y($){let L,K=null;try{K=ns(null),L=$()}finally{ns(K)}return L}h.untrack=y;function z($){var L;if(!(0,o.isComputed)($)&&!(0,o.isWatcher)($))throw new TypeError("Called introspectSources without a Computed or Watcher argument");return((L=$[hr].producerNode)==null?void 0:L.map(K=>K.wrapper))??[]}h.introspectSources=z;function E($){var L;if(!(0,o.isComputed)($)&&!(0,o.isState)($))throw new TypeError("Called introspectSinks without a Signal argument");return((L=$[hr].liveConsumerNode)==null?void 0:L.map(K=>K.wrapper))??[]}h.introspectSinks=E;function N($){if(!(0,o.isComputed)($)&&!(0,o.isState)($))throw new TypeError("Called hasSinks without a Signal argument");let L=$[hr].liveConsumerNode;return L?L.length>0:!1}h.hasSinks=N;function U($){if(!(0,o.isComputed)($)&&!(0,o.isWatcher)($))throw new TypeError("Called hasSources without a Computed or Watcher argument");let L=$[hr].producerNode;return L?L.length>0:!1}h.hasSources=U;class R{constructor(L){_d(this,f),_d(this,g),vu(this,m);let K=Object.create(ku);K.wrapper=this,K.consumerMarkedDirty=L,K.consumerIsAlwaysLive=!0,K.consumerAllowSignalWrites=!1,K.producerNode=[],this[hr]=K}watch(...L){if(!(0,o.isWatcher)(this))throw new TypeError("Called unwatch without Watcher receiver");av(this,g,v).call(this,L);let K=this[hr];K.dirty=!1;let ne=ns(K);for(let we of L)Cd(we[hr]);ns(ne)}unwatch(...L){if(!(0,o.isWatcher)(this))throw new TypeError("Called unwatch without Watcher receiver");av(this,g,v).call(this,L);let K=this[hr];os(K);for(let ne=K.producerNode.length-1;ne>=0;ne--)if(L.includes(K.producerNode[ne].wrapper)){Ed(K.producerNode[ne],K.producerIndexOfThis[ne]);let we=K.producerNode.length-1;if(K.producerNode[ne]=K.producerNode[we],K.producerIndexOfThis[ne]=K.producerIndexOfThis[we],K.producerNode.length--,K.producerIndexOfThis.length--,K.nextProducerIndex--,ne<K.producerNode.length){let De=K.producerIndexOfThis[ne],Pe=K.producerNode[ne];Su(Pe),Pe.liveConsumerIndexOfThis[De]=ne}}}getPending(){if(!(0,o.isWatcher)(this))throw new TypeError("Called getPending without Watcher receiver");return this[hr].producerNode.filter(K=>K.dirty).map(K=>K.wrapper)}}m=hr,f=new WeakSet,b=function(){},g=new WeakSet,v=function($){for(let L of $)if(!(0,o.isComputed)(L)&&!(0,o.isState)(L))throw new TypeError("Called watch/unwatch without a Computed or State argument")},o.isWatcher=$=>yu(f,$),h.Watcher=R;function C(){var $;return($=L5())==null?void 0:$.wrapper}h.currentComputed=C,h.watched=Symbol("watched"),h.unwatched=Symbol("unwatched")})(o.subtle||(o.subtle={}))})(st||(st={}));var Cu=!1,hv=new st.subtle.Watcher(()=>{Cu||(Cu=!0,queueMicrotask(()=>{Cu=!1;for(let o of hv.getPending())o.get();hv.watch()}))}),Y5=Symbol("SignalWatcherBrand"),Q5=new FinalizationRegistry(o=>{o.unwatch(...st.subtle.introspectSources(o))}),uv=new WeakMap;function Td(o){return o[Y5]===!0?(console.warn("SignalWatcher should not be applied to the same class more than once."),o):class extends o{constructor(){super(...arguments),this._$St=new Map,this._$So=new st.State(0),this._$Si=!1}_$Sl(){var i,t;let r=[],n=[];this._$St.forEach((s,l)=>{(s?.beforeUpdate?r:n).push(l)});let a=(i=this.h)===null||i===void 0?void 0:i.getPending().filter(s=>s!==this._$Su&&!this._$St.has(s));r.forEach(s=>s.get()),(t=this._$Su)===null||t===void 0||t.get(),a.forEach(s=>s.get()),n.forEach(s=>s.get())}_$Sv(){this.isUpdatePending||queueMicrotask(()=>{this.isUpdatePending||this._$Sl()})}_$S_(){if(this.h!==void 0)return;this._$Su=new st.Computed(()=>{this._$So.get(),super.performUpdate()});let i=this.h=new st.subtle.Watcher(function(){let t=uv.get(this);t!==void 0&&(t._$Si===!1&&(new Set(this.getPending()).has(t._$Su)?t.requestUpdate():t._$Sv()),this.watch())});uv.set(i,this),Q5.register(this,i),i.watch(this._$Su),i.watch(...Array.from(this._$St).map(([t])=>t))}_$Sp(){if(this.h===void 0)return;let i=!1;this.h.unwatch(...st.subtle.introspectSources(this.h).filter(t=>{var r;let n=((r=this._$St.get(t))===null||r===void 0?void 0:r.manualDispose)!==!0;return n&&this._$St.delete(t),i||(i=!n),n})),i||(this._$Su=void 0,this.h=void 0,this._$St.clear())}updateEffect(i,t){var r;this._$S_();let n=new st.Computed(()=>{i()});return this.h.watch(n),this._$St.set(n,t),(r=t?.beforeUpdate)!==null&&r!==void 0&&r?st.subtle.untrack(()=>n.get()):this.updateComplete.then(()=>st.subtle.untrack(()=>n.get())),()=>{this._$St.delete(n),this.h.unwatch(n),this.isConnected===!1&&this._$Sp()}}performUpdate(){this.isUpdatePending&&(this._$S_(),this._$Si=!0,this._$So.set(this._$So.get()+1),this._$Si=!1,this._$Sl())}connectedCallback(){super.connectedCallback(),this.requestUpdate()}disconnectedCallback(){super.disconnectedCallback(),queueMicrotask(()=>{this.isConnected===!1&&this._$Sp()})}}}var{I:X5}=Mb,mv=o=>o;var $d=o=>o.strings===void 0,fv=()=>document.createComment(""),as=(o,i,t)=>{let r=o._$AA.parentNode,n=i===void 0?o._$AB:i._$AA;if(t===void 0){let a=r.insertBefore(fv(),n),s=r.insertBefore(fv(),n);t=new X5(a,s,o,o.options)}else{let a=t._$AB.nextSibling,s=t._$AM,l=s!==o;if(l){let d;t._$AQ?.(o),t._$AM=o,t._$AP!==void 0&&(d=o._$AU)!==s._$AU&&t._$AP(d)}if(a!==n||l){let d=t._$AA;for(;d!==a;){let h=mv(d).nextSibling;mv(r).insertBefore(d,n),d=h}}}return t},vo=(o,i,t=o)=>(o._$AI(i,t),o),J5={},ss=(o,i=J5)=>o._$AH=i,gv=o=>o._$AH,Ad=o=>{o._$AR(),o._$AA.remove()};var Il=(o,i)=>{let t=o._$AN;if(t===void 0)return!1;for(let r of t)r._$AO?.(i,!1),Il(r,i);return!0},Ld=o=>{let i,t;do{if((i=o._$AM)===void 0)break;t=i._$AN,t.delete(o),o=i}while(t?.size===0)},bv=o=>{for(let i;i=o._$AM;o=i){let t=i._$AN;if(t===void 0)i._$AN=t=new Set;else if(t.has(o))break;t.add(o),t4(i)}};function Z5(o){this._$AN!==void 0?(Ld(this),this._$AM=o,bv(this)):this._$AM=o}function e4(o,i=!1,t=0){let r=this._$AH,n=this._$AN;if(n!==void 0&&n.size!==0)if(i)if(Array.isArray(r))for(let a=t;a<r.length;a++)Il(r[a],!1),Ld(r[a]);else r!=null&&(Il(r,!1),Ld(r));else Il(this,o)}var t4=o=>{o.type==dr.CHILD&&(o._$AP??(o._$AP=e4),o._$AQ??(o._$AQ=Z5))},yo=class extends ir{constructor(){super(...arguments),this._$AN=void 0}_$AT(i,t,r){super._$AT(i,t,r),bv(this),this.isConnected=i._$AU}_$AO(i,t=!0){i!==this.isConnected&&(this.isConnected=i,i?this.reconnected?.():this.disconnected?.()),t&&(Il(this,i),Ld(this))}setValue(i){if($d(this._$Ct))this._$Ct._$AI(i,this);else{let t=[...this._$Ct._$AH];t[this._$Ci]=i,this._$Ct._$AI(t,this,0)}}disconnected(){}reconnected(){}};var Eu=!1,Tu=new st.subtle.Watcher(async()=>{Eu||(Eu=!0,queueMicrotask(()=>{Eu=!1;for(let o of Tu.getPending())o.get();Tu.watch()}))}),Md=class extends yo{_$S_(){var i,t;this._$Sm===void 0&&(this._$Sj=new st.Computed(()=>{var r;let n=(r=this._$SW)===null||r===void 0?void 0:r.get();return this.setValue(n),n}),this._$Sm=(t=(i=this._$Sk)===null||i===void 0?void 0:i.h)!==null&&t!==void 0?t:Tu,this._$Sm.watch(this._$Sj),st.subtle.untrack(()=>{var r;return(r=this._$Sj)===null||r===void 0?void 0:r.get()}))}_$Sp(){this._$Sm!==void 0&&(this._$Sm.unwatch(this._$SW),this._$Sm=void 0)}render(i){return st.subtle.untrack(()=>i.get())}update(i,[t]){var r,n;return(r=this._$Sk)!==null&&r!==void 0||(this._$Sk=(n=i.options)===null||n===void 0?void 0:n.host),t!==this._$SW&&this._$SW!==void 0&&this._$Sp(),this._$SW=t,this._$S_(),st.subtle.untrack(()=>this._$SW.get())}disconnected(){this._$Sp()}reconnected(){this._$S_()}},$u=yt(Md);var Au=o=>(i,...t)=>o(i,...t.map(r=>r instanceof st.State||r instanceof st.Computed?$u(r):r)),r4=Au(u),i4=Au(Ji);var wO=st.State,zO=st.Computed,Lu=(o,i)=>new st.State(o,i);function yv(o,i){return typeof document>"u"?i:document.documentElement.getAttribute(o)||document.body?.getAttribute(o)||i}function xv(){return yv("t","light")}function wv(){return yv("m","light")}var qd=Lu(xv()),Id=Lu(wv()),vv=!1;function n4(){vv||typeof window>"u"||(vv=!0,window.addEventListener("theme-change",o=>{let i=o.detail,t,r;if(typeof i=="string")t=i;else if(i&&typeof i=="object"){let n=i;typeof n.theme=="string"&&(t=n.theme),typeof n.mode=="string"&&(r=n.mode)}t===void 0&&(t=xv()),r===void 0&&(r=wv()),t!==qd.get()&&qd.set(t),r!==Id.get()&&Id.set(r)}))}n4();var o4=Td(bo),S=class extends o4{willUpdate(i){this.t=qd.get(),this.m=Id.get(),super.willUpdate(i)}static define(i,t=this,r={}){let n=customElements.get(i);if(!n){customElements.define(i,class extends t{},r);return}let a=" (unknown version)",s=a;"version"in t&&t.version&&typeof t.version=="string"&&(a=` v${t.version}`),"version"in n&&n.version&&typeof n.version=="string"&&(s=` v${n.version}`),!(a&&s&&a===s)&&console.warn(`Attempted to register <${i}>${a} but it is already registered as <${i}>${s}.`)}constructor(){super(),Object.entries(this.constructor.dependencies).forEach(([i,t])=>{this.constructor.define(i,t)})}emit(i,t){let r=new CustomEvent(i,{bubbles:!0,cancelable:!0,composed:!0,detail:{element:this},...t});return this.dispatchEvent(r),r}};S.dependencies={},c([p()],S.prototype,"dir",2),c([p()],S.prototype,"lang",2),c([p({reflect:!0})],S.prototype,"t",2),c([p({reflect:!0})],S.prototype,"m",2);var ga=class extends ir{constructor(i){if(super(i),this.it=F,i.type!==dr.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(i){if(i===F||i==null)return this._t=void 0,this.it=i;if(i===vt)return i;if(typeof i!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(i===this.it)return this._t;this.it=i;let t=[i];return t.raw=t,this._t={_$litType$:this.constructor.resultType,strings:t,values:[]}}};ga.directiveName="unsafeHTML",ga.resultType=1;var Pt=yt(ga);function Mi(o,i){return new Promise(t=>{function r(n){n.target===o&&(o.removeEventListener(i,r),t())}o.addEventListener(i,r)})}var Mu=class{constructor(){this.openDropdowns=new Set;this.openTooltips=new Set}registerDropdown(i){this.openDropdowns.add(i)}unregisterDropdown(i){this.openDropdowns.delete(i)}isDropdownOpen(){return this.openDropdowns.size>0}registerTooltip(i){this.openTooltips.add(i)}unregisterTooltip(i){this.openTooltips.delete(i)}isTooltipOpen(){return this.openTooltips.size>0}},a4=new Mu,Vn=a4;var zv=k`@keyframes rotate-gradient{from{--rotate:0deg}to{--rotate:360deg}}:host{text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-transform:none}*,*::before,*::after{box-sizing:border-box;border-width:0;border-style:solid;border-color:rgb(var(--zn-border-color))}[hidden]{display:none !important}.width-container,.form-container,.wide-form-container{height:100%;width:100%;margin:var(--zn-default-margin,0 auto)}.width-container{max-width:var(--zn-container)}.form-container{max-width:var(--zn-container-ph)}.wide-form-container{max-width:var(--zn-container-lg)}:host{display:inline-block}.dropdown::part(popup){z-index:var(--zn-z-index-dropdown)}`;var Ct=class extends S{constructor(){super(...arguments);this.open=!1;this.placement="bottom-start";this.disabled=!1;this.stayOpenOnSelect=!1;this.distance=0;this.skidding=0;this.hoist=!0;this.sync=void 0;this.fetchedContent="";this.handlePanelSelect=t=>{let r=t.target;!this.stayOpenOnSelect&&r.tagName.toLowerCase()==="zn-menu"&&(this.hide().then(n=>n),this.focusOnTrigger())};this.handlePreload=()=>{this.preloadContent().then(t=>t)}}connectedCallback(){super.connectedCallback(),this.containingElement||(this.containingElement=this)}focusOnTrigger(){let t=this.trigger?.assignedElements({flatten:!0})[0];typeof t?.focus=="function"&&t.focus()}firstUpdated(t){this.panel.hidden=!this.open,this.open&&(this.addOpenListeners(),this.popup.active=!0),super.firstUpdated(t)}disconnectedCallback(){super.disconnectedCallback(),this.removeOpenListeners(),this.hide().then(t=>t)}getMenu(){return this.panel.assignedElements({flatten:!0}).find(t=>t.tagName.toLowerCase()==="zn-menu")}addOpenListeners(){this.panel.addEventListener("zn-select",this.handlePanelSelect),"CloseWatcher"in window?(this.closeWatcher?.destroy(),this.closeWatcher=new CloseWatcher,this.closeWatcher.onclose=()=>{this.hide().then(t=>t),this.focusOnTrigger()}):this.panel.addEventListener("keydown",this.handleKeyDown),document.addEventListener("keydown",this.handleDocumentKeyDown.bind(this)),document.addEventListener("mousedown",this.handleDocumentMouseDown.bind(this)),this.closeWatcher?.destroy()}removeOpenListeners(){this.panel&&(this.panel.removeEventListener("zn-select",this.handlePanelSelect),this.panel.removeEventListener("keydown",this.handleKeyDown)),document.removeEventListener("keydown",this.handleDocumentKeyDown),document.removeEventListener("mousedown",this.handleDocumentMouseDown),this.closeWatcher?.destroy()}async preloadContent(){if(this.uri&&!this.fetchedContent){let t=await fetch(this.uri,{credentials:"same-origin",headers:{"x-kx-inline":"inline"}});this.fetchedContent=await t.text(),this.requestUpdate()}}async handleTriggerClick(){this.open?await this.hide():(await this.show(),this.focusOnTrigger())}handleKeyDown(t){this.open&&t.key==="Escape"&&(t.stopPropagation(),this.hide().then(r=>r),this.focusOnTrigger())}async handleTriggerKeyDown(t){if([" ","Enter"].includes(t.key)){t.preventDefault(),await this.handleTriggerClick();return}let r=this.getMenu();if(r){let n=r.getAllItems(),a=n[0],s=n[n.length-1];["ArrowDown","ArrowUp","Home","End"].includes(t.key)&&(t.preventDefault(),this.open||(this.show().then(l=>l),await this.updateComplete),n.length>0&&this.updateComplete.then(()=>{(t.key==="ArrowDown"||t.key==="Home")&&(r.setCurrentItem(a),a.focus()),(t.key==="ArrowUp"||t.key==="End")&&(r.setCurrentItem(s),s.focus())}))}}handleTriggerKeyUp(t){t.key===" "&&t.preventDefault()}handleTriggerSlotChange(){this.updateAccessibleTrigger()}handleDocumentMouseDown(t){let r=t.composedPath();this.containingElement&&!r.includes(this.containingElement)&&this.hide().then(n=>n)}handleDocumentKeyDown(t){if(t.key==="Escape"&&this.open&&!this.closeWatcher){t.stopPropagation(),this.focusOnTrigger(),this.hide().then(r=>r);return}if(t.key==="Tab"){if(this.open){this.hide().then(r=>r),this.panel?.assignedElements({flatten:!0}).some(r=>r.matches(":focus-within"))&&(t.preventDefault(),this.focusOnTrigger());return}setTimeout(()=>{let r=this.containingElement?.getRootNode()instanceof ShadowRoot?document.activeElement?.shadowRoot?.activeElement:document.activeElement;(!this.containingElement||r?.closest(this.containingElement.tagName.toLowerCase())!==this.containingElement)&&this.hide().then(n=>n)})}}async show(){if(!this.open)return this.open=!0,Mi(this,"zn-after-show")}async hide(){if(this.open)return this.open=!1,Mi(this,"zn-after-hide")}reposition(){this.popup.reposition()}updateAccessibleTrigger(){let r=this.trigger.assignedElements({flatten:!0}).find(a=>Pb(a).start),n=null;r&&(r.tagName.toLowerCase()==="zn-button"?n=r.button:n=r),n&&(n.setAttribute("aria-haspopup","true"),n.setAttribute("aria-expanded",this.open.toString()))}handleOpenChange(){if(this.disabled){this.open=!1;return}if(this.updateAccessibleTrigger(),this.open)this.emit("zn-show"),Vn.registerDropdown(this),this.addOpenListeners(),this.panel.hidden=!1,this.popup.active=!0,this.panel.focus(),this.emit("zn-after-show");else{this.emit("zn-hide"),Vn.unregisterDropdown(this),this.removeOpenListeners();let t=this.getRootNode().activeElement;t&&this.panel.assignedElements({flatten:!0}).some(r=>r.contains(t))&&(this.focusOnTrigger(),t.blur()),this.panel.blur(),this.panel.hidden=!0,this.popup.active=!1,this.emit("zn-after-hide")}}render(){return u`
4
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),kb=/'/g,Sb=/"/g,Tb=/^(?:script|style|textarea|title)$/i,du=o=>(i,...t)=>({_$litType$:o,strings:i,values:t}),u=du(1),Ji=du(2),$b=du(3),vt=Symbol.for("lit-noChange"),F=Symbol.for("lit-nothing"),Cb=new WeakMap,pa=ha.createTreeWalker(ha,129);function Ab(o,i){if(!cu(o)||!o.hasOwnProperty("raw"))throw Error("invalid template strings array");return wb!==void 0?wb.createHTML(i):i}var Lb=(o,i)=>{let t=o.length-1,r=[],n,a=i===2?"<svg>":i===3?"<math>":"",s=_l;for(let l=0;l<t;l++){let d=o[l],h,m,f=-1,b=0;for(;b<d.length&&(s.lastIndex=b,m=s.exec(d),m!==null);)b=s.lastIndex,s===_l?m[1]==="!--"?s=zb:m[1]!==void 0?s=_b:m[2]!==void 0?(Tb.test(m[2])&&(n=RegExp("</"+m[2],"g")),s=da):m[3]!==void 0&&(s=da):s===da?m[0]===">"?(s=n??_l,f=-1):m[1]===void 0?f=-2:(f=s.lastIndex-m[2].length,h=m[1],s=m[3]===void 0?da:m[3]==='"'?Sb:kb):s===Sb||s===kb?s=da:s===zb||s===_b?s=_l:(s=da,n=void 0);let g=s===da&&o[l+1].startsWith("/>")?" ":"";a+=s===_l?d+J3:f>=0?(r.push(h),d.slice(0,f)+su+d.slice(f)+Fn+g):d+Fn+(f===-2?l:g)}return[Ab(o,a+(o[t]||"<?>")+(i===2?"</svg>":i===3?"</math>":"")),r]},El=class o{constructor({strings:i,_$litType$:t},r){let n;this.parts=[];let a=0,s=0,l=i.length-1,d=this.parts,[h,m]=Lb(i,t);if(this.el=o.createElement(h,r),pa.currentNode=this.el.content,t===2||t===3){let f=this.el.content.firstChild;f.replaceWith(...f.childNodes)}for(;(n=pa.nextNode())!==null&&d.length<l;){if(n.nodeType===1){if(n.hasAttributes())for(let f of n.getAttributeNames())if(f.endsWith(su)){let b=m[s++],g=n.getAttribute(f).split(Fn),v=/([.?@])?(.*)/.exec(b);d.push({type:1,index:a,name:v[2],strings:g,ctor:v[1]==="."?md:v[1]==="?"?fd:v[1]==="@"?gd:ma}),n.removeAttribute(f)}else f.startsWith(Fn)&&(d.push({type:6,index:a}),n.removeAttribute(f));if(Tb.test(n.tagName)){let f=n.textContent.split(Fn),b=f.length-1;if(b>0){n.textContent=hd?hd.emptyScript:"";for(let g=0;g<b;g++)n.append(f[g],Sl()),pa.nextNode(),d.push({type:2,index:++a});n.append(f[b],Sl())}}}else if(n.nodeType===8)if(n.data===lu)d.push({type:2,index:a});else{let f=-1;for(;(f=n.data.indexOf(Fn,f+1))!==-1;)d.push({type:7,index:a}),f+=Fn.length-1}a++}}static createElement(i,t){let r=ha.createElement("template");return r.innerHTML=i,r}};function ua(o,i,t=o,r){if(i===vt)return i;let n=r!==void 0?t._$Co?.[r]:t._$Cl,a=Cl(i)?void 0:i._$litDirective$;return n?.constructor!==a&&(n?._$AO?.(!1),a===void 0?n=void 0:(n=new a(o),n._$AT(o,t,r)),r!==void 0?(t._$Co??(t._$Co=[]))[r]=n:t._$Cl=n),n!==void 0&&(i=ua(o,n._$AS(o,i.values),n,r)),i}var ud=class{constructor(i,t){this._$AV=[],this._$AN=void 0,this._$AD=i,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(i){let{el:{content:t},parts:r}=this._$AD,n=(i?.creationScope??ha).importNode(t,!0);pa.currentNode=n;let a=pa.nextNode(),s=0,l=0,d=r[0];for(;d!==void 0;){if(s===d.index){let h;d.type===2?h=new Za(a,a.nextSibling,this,i):d.type===1?h=new d.ctor(a,d.name,d.strings,this,i):d.type===6&&(h=new bd(a,this,i)),this._$AV.push(h),d=r[++l]}s!==d?.index&&(a=pa.nextNode(),s++)}return pa.currentNode=ha,n}p(i){let t=0;for(let r of this._$AV)r!==void 0&&(r.strings!==void 0?(r._$AI(i,r,t),t+=r.strings.length-2):r._$AI(i[t])),t++}},Za=class o{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(i,t,r,n){this.type=2,this._$AH=F,this._$AN=void 0,this._$AA=i,this._$AB=t,this._$AM=r,this.options=n,this._$Cv=n?.isConnected??!0}get parentNode(){let i=this._$AA.parentNode,t=this._$AM;return t!==void 0&&i?.nodeType===11&&(i=t.parentNode),i}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(i,t=this){i=ua(this,i,t),Cl(i)?i===F||i==null||i===""?(this._$AH!==F&&this._$AR(),this._$AH=F):i!==this._$AH&&i!==vt&&this._(i):i._$litType$!==void 0?this.$(i):i.nodeType!==void 0?this.T(i):Eb(i)?this.k(i):this._(i)}O(i){return this._$AA.parentNode.insertBefore(i,this._$AB)}T(i){this._$AH!==i&&(this._$AR(),this._$AH=this.O(i))}_(i){this._$AH!==F&&Cl(this._$AH)?this._$AA.nextSibling.data=i:this.T(ha.createTextNode(i)),this._$AH=i}$(i){let{values:t,_$litType$:r}=i,n=typeof r=="number"?this._$AC(i):(r.el===void 0&&(r.el=El.createElement(Ab(r.h,r.h[0]),this.options)),r);if(this._$AH?._$AD===n)this._$AH.p(t);else{let a=new ud(n,this),s=a.u(this.options);a.p(t),this.T(s),this._$AH=a}}_$AC(i){let t=Cb.get(i.strings);return t===void 0&&Cb.set(i.strings,t=new El(i)),t}k(i){cu(this._$AH)||(this._$AH=[],this._$AR());let t=this._$AH,r,n=0;for(let a of i)n===t.length?t.push(r=new o(this.O(Sl()),this.O(Sl()),this,this.options)):r=t[n],r._$AI(a),n++;n<t.length&&(this._$AR(r&&r._$AB.nextSibling,n),t.length=n)}_$AR(i=this._$AA.nextSibling,t){for(this._$AP?.(!1,!0,t);i!==this._$AB;){let r=xb(i).nextSibling;xb(i).remove(),i=r}}setConnected(i){this._$AM===void 0&&(this._$Cv=i,this._$AP?.(i))}},ma=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(i,t,r,n,a){this.type=1,this._$AH=F,this._$AN=void 0,this.element=i,this.name=t,this._$AM=n,this.options=a,r.length>2||r[0]!==""||r[1]!==""?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=F}_$AI(i,t=this,r,n){let a=this.strings,s=!1;if(a===void 0)i=ua(this,i,t,0),s=!Cl(i)||i!==this._$AH&&i!==vt,s&&(this._$AH=i);else{let l=i,d,h;for(i=a[0],d=0;d<a.length-1;d++)h=ua(this,l[r+d],t,d),h===vt&&(h=this._$AH[d]),s||(s=!Cl(h)||h!==this._$AH[d]),h===F?i=F:i!==F&&(i+=(h??"")+a[d+1]),this._$AH[d]=h}s&&!n&&this.j(i)}j(i){i===F?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,i??"")}},md=class extends ma{constructor(){super(...arguments),this.type=3}j(i){this.element[this.name]=i===F?void 0:i}},fd=class extends ma{constructor(){super(...arguments),this.type=4}j(i){this.element.toggleAttribute(this.name,!!i&&i!==F)}},gd=class extends ma{constructor(i,t,r,n,a){super(i,t,r,n,a),this.type=5}_$AI(i,t=this){if((i=ua(this,i,t,0)??F)===vt)return;let r=this._$AH,n=i===F&&r!==F||i.capture!==r.capture||i.once!==r.once||i.passive!==r.passive,a=i!==F&&(r===F||n);n&&this.element.removeEventListener(this.name,this,r),a&&this.element.addEventListener(this.name,this,i),this._$AH=i}handleEvent(i){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,i):this._$AH.handleEvent(i)}},bd=class{constructor(i,t,r){this.element=i,this.type=6,this._$AN=void 0,this._$AM=t,this.options=r}get _$AU(){return this._$AM._$AU}_$AI(i){ua(this,i)}},Mb={M:su,P:Fn,A:lu,C:1,L:Lb,R:ud,D:Eb,V:ua,I:Za,H:ma,N:fd,U:gd,B:md,F:bd},Z3=kl.litHtmlPolyfillSupport;Z3?.(El,Za),(kl.litHtmlVersions??(kl.litHtmlVersions=[])).push("3.3.3");var es=(o,i,t)=>{let r=t?.renderBefore??i,n=r._$litPart$;if(n===void 0){let a=t?.renderBefore??null;r._$litPart$=n=new Za(i.insertBefore(Sl(),a),a,void 0,t??{})}return n._$AI(o),n};var cr={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},yt=o=>(...i)=>({_$litDirective$:o,values:i}),rr=class{constructor(i){}get _$AU(){return this._$AM._$AU}_$AT(i,t,r){this._$Ct=i,this._$AM=t,this._$Ci=r}_$AS(i,t){return this.update(i,t)}update(i,t){return this.render(...t)}};var M=yt(class extends rr{constructor(o){if(super(o),o.type!==cr.ATTRIBUTE||o.name!=="class"||o.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(o){return" "+Object.keys(o).filter(i=>o[i]).join(" ")+" "}update(o,[i]){if(this.st===void 0){this.st=new Set,o.strings!==void 0&&(this.nt=new Set(o.strings.join(" ").split(/\s/).filter(r=>r!=="")));for(let r in i)i[r]&&!this.nt?.has(r)&&this.st.add(r);return this.render(i)}let t=o.element.classList;for(let r of this.st)r in i||(t.remove(r),this.st.delete(r));for(let r in i){let n=!!i[r];n===this.st.has(r)||this.nt?.has(r)||(n?(t.add(r),this.st.add(r)):(t.remove(r),this.st.delete(r)))}return vt}});var vd=globalThis,yd=vd.ShadowRoot&&(vd.ShadyCSS===void 0||vd.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,pu=Symbol(),qb=new WeakMap,Tl=class{constructor(i,t,r){if(this._$cssResult$=!0,r!==pu)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=i,this.t=t}get styleSheet(){let i=this.o,t=this.t;if(yd&&i===void 0){let r=t!==void 0&&t.length===1;r&&(i=qb.get(t)),i===void 0&&((this.o=i=new CSSStyleSheet).replaceSync(this.cssText),r&&qb.set(t,i))}return i}toString(){return this.cssText}},_=o=>new Tl(typeof o=="string"?o:o+"",void 0,pu),k=(o,...i)=>{let t=o.length===1?o[0]:i.reduce((r,n,a)=>r+(s=>{if(s._$cssResult$===!0)return s.cssText;if(typeof s=="number")return s;throw Error("Value passed to 'css' function must be a 'css' function result: "+s+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(n)+o[a+1],o[0]);return new Tl(t,o,pu)},Ib=(o,i)=>{if(yd)o.adoptedStyleSheets=i.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(let t of i){let r=document.createElement("style"),n=vd.litNonce;n!==void 0&&r.setAttribute("nonce",n),r.textContent=t.cssText,o.appendChild(r)}},hu=yd?o=>o:o=>o instanceof CSSStyleSheet?(i=>{let t="";for(let r of i.cssRules)t+=r.cssText;return _(t)})(o):o;var{is:e5,defineProperty:t5,getOwnPropertyDescriptor:r5,getOwnPropertyNames:i5,getOwnPropertySymbols:n5,getPrototypeOf:o5}=Object,fo=globalThis,Rb=fo.trustedTypes,a5=Rb?Rb.emptyScript:"",s5=fo.reactiveElementPolyfillSupport,$l=(o,i)=>o,go={toAttribute(o,i){switch(i){case Boolean:o=o?a5:null;break;case Object:case Array:o=o==null?o:JSON.stringify(o)}return o},fromAttribute(o,i){let t=o;switch(i){case Boolean:t=o!==null;break;case Number:t=o===null?null:Number(o);break;case Object:case Array:try{t=JSON.parse(o)}catch{t=null}}return t}},ts=(o,i)=>!e5(o,i),Db={attribute:!0,type:String,converter:go,reflect:!1,useDefault:!1,hasChanged:ts};Symbol.metadata??(Symbol.metadata=Symbol("metadata")),fo.litPropertyMetadata??(fo.litPropertyMetadata=new WeakMap);var Bn=class extends HTMLElement{static addInitializer(i){this._$Ei(),(this.l??(this.l=[])).push(i)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(i,t=Db){if(t.state&&(t.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(i)&&((t=Object.create(t)).wrapped=!0),this.elementProperties.set(i,t),!t.noAccessor){let r=Symbol(),n=this.getPropertyDescriptor(i,r,t);n!==void 0&&t5(this.prototype,i,n)}}static getPropertyDescriptor(i,t,r){let{get:n,set:a}=r5(this.prototype,i)??{get(){return this[t]},set(s){this[t]=s}};return{get:n,set(s){let l=n?.call(this);a?.call(this,s),this.requestUpdate(i,l,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(i){return this.elementProperties.get(i)??Db}static _$Ei(){if(this.hasOwnProperty($l("elementProperties")))return;let i=o5(this);i.finalize(),i.l!==void 0&&(this.l=[...i.l]),this.elementProperties=new Map(i.elementProperties)}static finalize(){if(this.hasOwnProperty($l("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty($l("properties"))){let t=this.properties,r=[...i5(t),...n5(t)];for(let n of r)this.createProperty(n,t[n])}let i=this[Symbol.metadata];if(i!==null){let t=litPropertyMetadata.get(i);if(t!==void 0)for(let[r,n]of t)this.elementProperties.set(r,n)}this._$Eh=new Map;for(let[t,r]of this.elementProperties){let n=this._$Eu(t,r);n!==void 0&&this._$Eh.set(n,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(i){let t=[];if(Array.isArray(i)){let r=new Set(i.flat(1/0).reverse());for(let n of r)t.unshift(hu(n))}else i!==void 0&&t.push(hu(i));return t}static _$Eu(i,t){let r=t.attribute;return r===!1?void 0:typeof r=="string"?r:typeof i=="string"?i.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(i=>this.enableUpdating=i),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(i=>i(this))}addController(i){(this._$EO??(this._$EO=new Set)).add(i),this.renderRoot!==void 0&&this.isConnected&&i.hostConnected?.()}removeController(i){this._$EO?.delete(i)}_$E_(){let i=new Map,t=this.constructor.elementProperties;for(let r of t.keys())this.hasOwnProperty(r)&&(i.set(r,this[r]),delete this[r]);i.size>0&&(this._$Ep=i)}createRenderRoot(){let i=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return Ib(i,this.constructor.elementStyles),i}connectedCallback(){this.renderRoot??(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),this._$EO?.forEach(i=>i.hostConnected?.())}enableUpdating(i){}disconnectedCallback(){this._$EO?.forEach(i=>i.hostDisconnected?.())}attributeChangedCallback(i,t,r){this._$AK(i,r)}_$ET(i,t){let r=this.constructor.elementProperties.get(i),n=this.constructor._$Eu(i,r);if(n!==void 0&&r.reflect===!0){let a=(r.converter?.toAttribute!==void 0?r.converter:go).toAttribute(t,r.type);this._$Em=i,a==null?this.removeAttribute(n):this.setAttribute(n,a),this._$Em=null}}_$AK(i,t){let r=this.constructor,n=r._$Eh.get(i);if(n!==void 0&&this._$Em!==n){let a=r.getPropertyOptions(n),s=typeof a.converter=="function"?{fromAttribute:a.converter}:a.converter?.fromAttribute!==void 0?a.converter:go;this._$Em=n;let l=s.fromAttribute(t,a.type);this[n]=l??this._$Ej?.get(n)??l,this._$Em=null}}requestUpdate(i,t,r,n=!1,a){if(i!==void 0){let s=this.constructor;if(n===!1&&(a=this[i]),r??(r=s.getPropertyOptions(i)),!((r.hasChanged??ts)(a,t)||r.useDefault&&r.reflect&&a===this._$Ej?.get(i)&&!this.hasAttribute(s._$Eu(i,r))))return;this.C(i,t,r)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(i,t,{useDefault:r,reflect:n,wrapped:a},s){r&&!(this._$Ej??(this._$Ej=new Map)).has(i)&&(this._$Ej.set(i,s??t??this[i]),a!==!0||s!==void 0)||(this._$AL.has(i)||(this.hasUpdated||r||(t=void 0),this._$AL.set(i,t)),n===!0&&this._$Em!==i&&(this._$Eq??(this._$Eq=new Set)).add(i))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}let i=this.scheduleUpdate();return i!=null&&await i,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??(this.renderRoot=this.createRenderRoot()),this._$Ep){for(let[n,a]of this._$Ep)this[n]=a;this._$Ep=void 0}let r=this.constructor.elementProperties;if(r.size>0)for(let[n,a]of r){let{wrapped:s}=a,l=this[n];s!==!0||this._$AL.has(n)||l===void 0||this.C(n,void 0,a,l)}}let i=!1,t=this._$AL;try{i=this.shouldUpdate(t),i?(this.willUpdate(t),this._$EO?.forEach(r=>r.hostUpdate?.()),this.update(t)):this._$EM()}catch(r){throw i=!1,this._$EM(),r}i&&this._$AE(t)}willUpdate(i){}_$AE(i){this._$EO?.forEach(t=>t.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(i)),this.updated(i)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(i){return!0}update(i){this._$Eq&&(this._$Eq=this._$Eq.forEach(t=>this._$ET(t,this[t]))),this._$EM()}updated(i){}firstUpdated(i){}};Bn.elementStyles=[],Bn.shadowRootOptions={mode:"open"},Bn[$l("elementProperties")]=new Map,Bn[$l("finalized")]=new Map,s5?.({ReactiveElement:Bn}),(fo.reactiveElementVersions??(fo.reactiveElementVersions=[])).push("2.1.2");var Al=globalThis,bo=class extends Bn{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t;let i=super.createRenderRoot();return(t=this.renderOptions).renderBefore??(t.renderBefore=i.firstChild),i}update(i){let t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(i),this._$Do=es(t,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return vt}};bo._$litElement$=!0,bo.finalized=!0,Al.litElementHydrateSupport?.({LitElement:bo});var l5=Al.litElementPolyfillSupport;l5?.({LitElement:bo});(Al.litElementVersions??(Al.litElementVersions=[])).push("4.2.2");var Nb=new WeakMap;function Ob(o){let i=Nb.get(o);return i||(i=window.getComputedStyle(o,null),Nb.set(o,i)),i}function c5(o){if(typeof o.checkVisibility=="function")return o.checkVisibility({checkOpacity:!1,checkVisibilityCSS:!0});let i=Ob(o);return i.visibility!=="hidden"&&i.display!=="none"}function d5(o){let i=Ob(o),{overflowY:t,overflowX:r}=i;return t==="scroll"||r==="scroll"?!0:t!=="auto"||r!=="auto"?!1:o.scrollHeight>o.clientHeight&&t==="auto"||o.scrollWidth>o.clientWidth&&r==="auto"}function p5(o){let i=o.tagName.toLowerCase(),t=Number(o.getAttribute("tabindex"));return o.hasAttribute("tabindex")&&(isNaN(t)||t<=-1)||o.hasAttribute("disabled")||o.closest("[inert]")||i==="input"&&o.getAttribute("type")==="radio"&&!o.hasAttribute("checked")||!c5(o)?!1:(i==="audio"||i==="video")&&o.hasAttribute("controls")||o.hasAttribute("tabindex")||o.hasAttribute("contenteditable")&&o.getAttribute("contenteditable")!=="false"||["button","input","select","textarea","a","audio","video","summary","iframe"].includes(i)?!0:d5(o)}function Pb(o){let i=uu(o),t=i[0]??null,r=i[i.length-1]??null;return{start:t,end:r}}function h5(o,i){return o.getRootNode({composed:!0})?.host!==i}function uu(o){let i=new WeakMap,t=[];function r(n){if(n instanceof Element){if(n.hasAttribute("inert")||n.closest("[inert]")||i.has(n))return;i.set(n,!0),!t.includes(n)&&p5(n)&&t.push(n),n instanceof HTMLSlotElement&&h5(n,o)&&n.assignedElements({flatten:!0}).forEach(a=>{r(a)}),n.shadowRoot!==null&&n.shadowRoot.mode==="open"&&r(n.shadowRoot)}for(let a of n.children)r(a)}return r(o),t.sort((n,a)=>{let s=Number(n.getAttribute("tabindex"))||0;return(Number(a.getAttribute("tabindex"))||0)-s})}var Hb=new WeakMap,mu=class{constructor(i){this.handleKeyDown=i=>{if(i.key==="Enter"){if(i.altKey||i.ctrlKey||i.metaKey||i.shiftKey||i.isComposing||i.defaultPrevented)return;let r=i.target;if(this.isSelectOption(r)){i.preventDefault(),setTimeout(()=>{let a=this.findParentSelect(r);a&&this.focusNextControl(a)},0);return}if(this.shouldSkipEnterKey(r)||r.hasAttribute("trigger-submit"))return;let n=this.findParentGroup(r);if(n){i.preventDefault(),this.focusNextInGroup(r,n)||this.focusNextControl(n);return}i.preventDefault(),this.areRequiredFieldsFilled()?this.submitForm():this.focusNextControl(r);return}if(i.key==="ArrowDown"){let t=i.target,r=t.tagName;if(!(i.altKey||i.ctrlKey||i.metaKey||i.shiftKey)&&!i.defaultPrevented){let a=this.findParentGroup(t);if(a){i.preventDefault(),this.focusNextInGroup(t,a)||this.focusNextControl(a);return}(r==="ZN-CHECKBOX"||r==="ZN-TOGGLE")&&(i.preventDefault(),this.focusNextControl(t))}}if(i.key==="ArrowUp"){let t=i.target,r=t.tagName;if(!(i.altKey||i.ctrlKey||i.metaKey||i.shiftKey)&&!i.defaultPrevented){let a=this.findParentGroup(t);if(a){i.preventDefault(),this.focusPreviousInGroup(t,a)||this.focusPreviousControl(a);return}(r==="ZN-CHECKBOX"||r==="ZN-TOGGLE")&&(i.preventDefault(),this.focusPreviousControl(t))}}};this.form=i,this.form.addEventListener("keydown",this.handleKeyDown,!0)}shouldSkipEnterKey(i){let t=i.tagName.toLowerCase();return t==="zn-textarea"||t==="textarea"||(t==="zn-input"||t==="input")&&i.getAttribute("type")==="search"?!0:t==="button"||t==="zn-button"}shouldExcludeFromNavigation(i){let t=i.tagName.toLowerCase();return t==="button"||t==="zn-button"}isSelectOption(i){return i.tagName.toLowerCase()==="zn-option"}findParentSelect(i){let t=i;for(;t;){if(t.tagName.toLowerCase()==="zn-select")return t;let r=t.getRootNode();if(r instanceof ShadowRoot)t=r.host;else if(t.parentElement)t=t.parentElement;else break}return null}findParentGroup(i){let t=i;for(;t;){let r=t.tagName;if(r==="ZN-RADIO-GROUP"||r==="ZN-CHECKBOX-GROUP")return t;let n=t.getRootNode();if(n instanceof ShadowRoot)t=n.host;else if(t.parentElement)t=t.parentElement;else break}return null}getGroupItems(i){let t=i.tagName==="ZN-RADIO-GROUP"?"ZN-RADIO":"ZN-CHECKBOX",r=[],n=document.createTreeWalker(i,NodeFilter.SHOW_ELEMENT,{acceptNode:s=>s.tagName===t?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}),a;for(;a=n.nextNode();)r.push(a);return r}focusNextInGroup(i,t){let r=this.getGroupItems(t);if(r.length===0)return!1;let n=-1;for(let a=0;a<r.length;a++)if(r[a]===i||r[a].contains(i)){n=a;break}if(n>=0&&n<r.length-1){let a=r[n+1];if(typeof a.focus=="function")return a.focus(),!0}return!1}focusPreviousInGroup(i,t){let r=this.getGroupItems(t);if(r.length===0)return!1;let n=-1;for(let a=0;a<r.length;a++)if(r[a]===i||r[a].contains(i)){n=a;break}if(n>0){let a=r[n-1];if(typeof a.focus=="function")return a.focus(),!0}return!1}areRequiredFieldsFilled(){let i=fa.get(this.form);if(!i)return!0;for(let t of i){let r=t;if(!r.name||r.disabled)continue;let n=r.value;if(!(n!=null&&n!=="")||typeof r.checkValidity=="function"&&!r.checkValidity())return!1}return!0}getNavigableControls(){let i=uu(this.form),t=[],r=new Set;for(let n of i){let a=n.tagName.toLowerCase();if(["zn-input","zn-select","zn-datepicker","zn-textarea","zn-file","zn-checkbox","zn-radio","zn-radio-group","zn-toggle"].includes(a)){if(a==="zn-radio"){let h=n.closest("zn-radio-group");if(h){r.has(h)||(r.add(h),this.shouldExcludeFromNavigation(h)||t.push(h));continue}}if(r.has(n)||(r.add(n),this.shouldExcludeFromNavigation(n)))continue;t.push(n);continue}let l=n.getRootNode().host;if(l&&l!==this.form){let h=l.tagName.toLowerCase();if(["zn-input","zn-select","zn-datepicker","zn-textarea","zn-file","zn-checkbox","zn-radio","zn-radio-group","zn-toggle"].includes(h)){if(h==="zn-radio"){let f=l.closest("zn-radio-group");if(f){r.has(f)||(r.add(f),this.shouldExcludeFromNavigation(f)||t.push(f));continue}}if(r.has(l)||(r.add(l),this.shouldExcludeFromNavigation(l)))continue;t.push(l);continue}}if(["input","select"].includes(a)){if(r.has(n)||(r.add(n),n.getAttribute("type")==="search"))continue;t.push(n)}}return t}findCurrentControlIndex(i,t){for(let r=0;r<t.length;r++){let n=t[r];if(n===i)return r;let a=i.getRootNode();if(a instanceof ShadowRoot&&a.host===n||n.contains(i)||i.contains(n))return r}return-1}focusNextControl(i){let t=this.getNavigableControls(),r=this.findCurrentControlIndex(i,t);if(r>=0&&r<t.length-1){let n=t[r+1];if(typeof n.focus=="function"&&(n.focus(),n.tagName.toLowerCase()==="zn-select")){let s=n;typeof s.show=="function"&&setTimeout(()=>{s.show?.()},0)}}}focusPreviousControl(i){let t=this.getNavigableControls(),r=this.findCurrentControlIndex(i,t);if(r>0){let n=t[r-1];if(typeof n.focus=="function"&&(n.focus(),n.tagName.toLowerCase()==="zn-select")){let s=n;typeof s.show=="function"&&setTimeout(()=>{s.show?.()},0)}}}submitForm(){let i=this.form.querySelector('[type="submit"]');if(i)i.click();else if(typeof this.form.requestSubmit=="function")this.form.requestSubmit();else{let t=new Event("submit",{bubbles:!0,cancelable:!0});this.form.dispatchEvent(t)}}destroy(){this.form.removeEventListener("keydown",this.handleKeyDown,!0)}};function Fb(o){let i=Hb.get(o);return i||(i=new mu(o),Hb.set(o,i)),i}function dr(o){return`#${CSS.escape(o.startsWith("#")?o.slice(1):o)}`}function u5(o,i=document){let t=i.querySelector(o);if(t)return t;for(let r of i.querySelectorAll("*"))if(r.shadowRoot){let n=u5(o,r.shadowRoot);if(n)return n}return null}function m5(o,i=document,t=[]){t.push(...i.querySelectorAll(o));for(let r of i.querySelectorAll("*"))r.shadowRoot&&m5(o,r.shadowRoot,t);return t}function Ge(o,i,t){let r=[],n=(a,s)=>{if(!a||a.nodeType!==Node.ELEMENT_NODE||s&&t&&a.matches(t))return;a.matches(o)&&r.push(a);let l=a.children;if(l.length)for(let h of l)n(h,!0);let d=a.shadowRoot;if(d){let h=d.children;for(let m of h)n(m,!0)}};return n(i,!1),r}var Sr=class{constructor(i,t,r=0){this.storage=i,this.prefix=t,this.ttl=r*1e3,this.cleanup()}get(i){return!i||i.length<1?null:this.stripTtl(this.storage.getItem(this.prefix+i))}stripTtl(i){if(i===null)return null;let t=i.split(",");if(t.length===1)return t[0];let r=t.shift(),n=r?parseInt(r):0;return n>0&&n<Date.now()?null:t.join(",")||""}setWithTTL(i,t,r){!i||i.length<1||(r=r>0?Date.now()+r*1e3:0,this.storage.setItem(this.prefix+i,r+","+t))}set(i,t){this.setWithTTL(i,t,this.ttl)}remove(i){this.storage.removeItem(this.prefix+i)}cleanup(){for(let i=0;i<this.storage.length;i++){let t=this.storage.key(i);t!==null&&t.startsWith(this.prefix)&&this.stripTtl(this.storage.getItem(t))===null&&this.storage.removeItem(t)}}};var fa=new WeakMap,Ll=new WeakMap,Ml=new WeakMap,xd=new WeakMap,fu=new WeakSet,wd=new WeakMap,Gb="znform:";function gu(o=!1){try{return o?window.localStorage:window.sessionStorage}catch{return null}}function f5(o=!1,i=0){let t=gu(o);return t?new Sr(t,Gb,i):null}function Bb(o){let i=o?.getAttribute("store-ttl");return i&&Number(i)||0}function Vb(o){return!!o?.hasAttribute("local-storage")}function Kb(o){return o?.getAttribute("store-key")||""}function g5(o){return o.getAttribute("store-key")||""}function b5(o){return o.getAttribute("name")||("name"in o&&typeof o.name=="string"?o.name:"")}function Wb(o,i){let t=g5(o),r=Kb(i);if(t)return r?`${r}:${t}`:t;let n=b5(o);return r&&n?`${r}:${n}`:""}function Yb(o,i){let t=Vb(o)||Vb(i),r=Bb(o)||Bb(i);return f5(t,r)}function Qb(o,i){let t=Wb(o,i),n=(t?Yb(o,i):null)?.get(t);if(!n)return null;try{return JSON.parse(n)}catch{return{value:n}}}function Xb(o,i,t){let r=Wb(o,i),n=r?Yb(o,i):null;n&&n.set(r,JSON.stringify(t))}function v5(o){return o instanceof HTMLInputElement||o instanceof HTMLTextAreaElement||o instanceof HTMLSelectElement}function y5(o){return o instanceof HTMLInputElement&&(o.type==="checkbox"||o.type==="radio")?{checked:o.checked,value:o.value}:{value:o.value}}function x5(o){o.querySelectorAll("input, textarea, select").forEach(t=>{let r=Qb(t,o);if(r){if(t instanceof HTMLInputElement&&(t.type==="checkbox"||t.type==="radio")){typeof r.checked=="boolean"&&(t.checked=r.checked);return}"value"in r&&(t.value=String(r.value??""))}})}function Ub(o,i){!v5(o)||o.form!==i||Xb(o,i,y5(o))}function w5(o,i){let t={value:i};return"checked"in o&&typeof o.checked=="boolean"&&(t.checked=o.checked),"indeterminate"in o&&typeof o.indeterminate=="boolean"&&(t.indeterminate=o.indeterminate),t}function jb(o,i){let t=[],r=Gb+i;for(let n=0;n<o.length;n++){let a=o.key(n);(a===r||a?.startsWith(r+":"))&&t.push(a)}t.forEach(n=>o.removeItem(n))}function z5(o){let i=typeof o=="string"?o:Kb(o);if(!i)return;let t=gu(!0),r=gu(!1);t&&jb(t,i),r&&r!==t&&jb(r,i)}var re=class{constructor(i,t){this.handleFormData=i=>{let t=this.options.disabled(this.host),r=this.options.name(this.host),n=this.options.value(this.host),a=this.host.tagName.toLowerCase()==="zn-button";if(this.host.isConnected&&!t&&!a&&r.length>0&&typeof n<"u"){let s=m=>{i.formData.append(r,m.toString())},l=(m,f)=>{let b=m,g=f??(typeof b.name=="string"?b.name:void 0);typeof g=="string"?i.formData.append(r,m,g):i.formData.append(r,m)},d=m=>typeof FileList<"u"&&m instanceof FileList,h=m=>typeof Blob<"u"&&m instanceof Blob;if(d(n)){if(n.length>0)for(let m=0;m<n.length;m++){let f=n.item(m);f&&l(f,f.name)}}else h(n)?l(n,n.name):Array.isArray(n)?n.forEach(m=>{if(h(m))l(m,m.name);else if(d(m)){let f=m;for(let b=0;b<f.length;b++){let g=f.item(b);g&&l(g,g.name)}}else s(m)}):s(n);this.host.dispatchEvent(new CustomEvent("zn-formdata",{bubbles:!0,composed:!0}))}};this.handleFormSubmit=i=>{let t=this.options.disabled(this.host),r=this.options.reportValidity;this.form&&!this.form.noValidate&&fa.get(this.form)?.forEach(s=>{this.setUserInteracted(s,!0)});let n=this.form?.querySelector('[type="submit"]'),a=n?.innerHTML??"Submit";n&&(n.setAttribute("data-original-text",a),setTimeout(()=>{n.disabled=!0,n.innerHTML=this.form?.hasAttribute("data-no-loading-text")?a:this.form?.getAttribute("data-loading-text")||"Processing..."},20),setTimeout(()=>{n.disabled=!1,n.innerHTML=a},15e3)),this.form&&!this.form.noValidate&&!t&&!r(this.host)&&(i.preventDefault(),i.stopImmediatePropagation(),n&&(n.disabled=!1,n.innerHTML=a))};this.enableSubmit=i=>{if(i.target!==this.form)return;let r=this.form?.querySelector('[type="submit"]');if(r){let n=r.getAttribute("data-original-text")??r.innerHTML;r.disabled=!1,r.innerHTML=n}};this.handleFormReset=()=>{this.options.setValue(this.host,this.options.defaultValue(this.host)),this.setUserInteracted(this.host,!1),wd.set(this.host,[])};this.handleInteraction=i=>{let t=wd.get(this.host);t.includes(i.type)||t.push(i.type),t.length===this.options.assumeInteractionOn.length&&this.setUserInteracted(this.host,!0),this.persistHostValue(),this.checkFormValidity()};this.checkFormValidity=()=>{let i=this.form?.querySelector('[type="submit"]');if(this.form&&!this.form.noValidate){let t=this.form.querySelectorAll("*");for(let r of t)if(typeof r.checkValidity=="function"&&!r.checkValidity())return i?.setAttribute("disabled","disabled"),!1}return i?.removeAttribute("disabled"),!0};this.reportFormValidity=()=>{if(this.form&&!this.form.noValidate){let i=this.form.querySelectorAll("*");for(let t of i)if(typeof t.reportValidity=="function"&&!t.reportValidity())return!1}return!0};(this.host=i).addController(this),this.options={form:r=>{let n=r.form;if(n){let s=r.getRootNode().querySelector(dr(n));if(s)return s}return r.closest("form")},name:r=>r.name,value:r=>r.value,defaultValue:r=>r.defaultValue,disabled:r=>r.disabled??!1,reportValidity:r=>typeof r.reportValidity=="function"?r.reportValidity():!0,checkValidity:r=>typeof r.checkValidity=="function"?r.checkValidity():!0,setValue:(r,n)=>r.value=n,assumeInteractionOn:["zn-input"],...t}}async hostConnected(){let i=this.options.form(this.host);i&&this.attachForm(i),wd.set(this.host,[]),this.options.assumeInteractionOn.forEach(t=>{this.host.addEventListener(t,this.handleInteraction)}),await this.host.updateComplete,this.restorePersistedValue(),i&&this.checkFormValidity()}hostDisconnected(){this.detachForm(),wd.delete(this.host),this.options.assumeInteractionOn.forEach(i=>{this.host.removeEventListener(i,this.handleInteraction)})}hostUpdated(){let i=this.options.form(this.host);i||this.detachForm(),i&&this.form!==i&&(this.detachForm(),this.attachForm(i)),this.host.hasUpdated&&this.setValidity(this.host.validity?.valid)}attachForm(i){if(!i){this.form=void 0;return}this.form=i,fa.has(this.form)?fa.get(this.form).add(this.host):fa.set(this.form,new Set([this.host])),this.form.hasAttribute("data-enter-navigation")&&Fb(this.form),this.form.addEventListener("formdata",this.handleFormData),this.form.addEventListener("submit",this.handleFormSubmit),this.form.addEventListener("reset",this.handleFormReset),this.form.addEventListener("complete",this.enableSubmit),this.form.addEventListener("cancelled",this.enableSubmit),this.form.addEventListener("error",this.enableSubmit),this.attachFormPersistence(this.form),Ll.has(this.form)||(Ll.set(this.form,this.form.reportValidity),this.form.reportValidity=()=>this.reportFormValidity()),Ml.has(this.form)||(Ml.set(this.form,this.form.checkValidity),this.form.checkValidity=()=>this.checkFormValidity())}detachForm(){if(!this.form)return;let i=fa.get(this.form);i&&(i.delete(this.host),i.size<=0&&(this.form.removeEventListener("formdata",this.handleFormData),this.form.removeEventListener("submit",this.handleFormSubmit),this.form.removeEventListener("reset",this.handleFormReset),this.form.removeEventListener("complete",this.enableSubmit),this.form.removeEventListener("cancelled",this.enableSubmit),this.form.removeEventListener("error",this.enableSubmit),this.detachFormPersistence(this.form),Ll.has(this.form)&&(this.form.reportValidity=Ll.get(this.form),Ll.delete(this.form)),Ml.has(this.form)&&(this.form.checkValidity=Ml.get(this.form),Ml.delete(this.form)),this.form=void 0))}attachFormPersistence(i){if(xd.has(i))return;let t=n=>Ub(n.target,i),r=n=>Ub(n.target,i);i.addEventListener("input",t),i.addEventListener("change",r),xd.set(i,{handleInput:t,handleChange:r}),x5(i)}detachFormPersistence(i){let t=xd.get(i);t&&(i.removeEventListener("input",t.handleInput),i.removeEventListener("change",t.handleChange),xd.delete(i))}restorePersistedValue(){let i=Qb(this.host,this.form);i&&("checked"in this.host&&typeof i.checked=="boolean"?this.options.setValue(this.host,i.checked):"value"in i&&this.options.setValue(this.host,i.value),"indeterminate"in this.host&&typeof i.indeterminate=="boolean"&&(this.host.indeterminate=i.indeterminate))}persistHostValue(){Xb(this.host,this.form,w5(this.host,this.options.value(this.host)))}setUserInteracted(i,t){t?fu.add(i):fu.delete(i),i.requestUpdate()}doAction(i,t){if(this.form){let r=document.createElement("button");r.type=i,r.style.position="absolute",r.style.width="0",r.style.height="0",r.style.clipPath="inset(50%)",r.style.overflow="hidden",r.style.whiteSpace="nowrap",t&&(r.name=t.name,r.value=t.value,["formaction","formenctype","formmethod","formnovalidate","formtarget"].forEach(n=>{t.hasAttribute(n)&&r.setAttribute(n,t.getAttribute(n))})),this.form.append(r),this.form instanceof HTMLFormElement&&document.dispatchEvent(new CustomEvent("zn-register-element",{detail:{element:this.form}})),r.click(),r.remove()}}getForm(){return this.form??null}reset(i){this.doAction("reset",i)}submit(i){this.doAction("submit",i)}setValidity(i){let t=this.host,r=!!fu.has(t),n=!!t.required;t.toggleAttribute("data-required",n),t.toggleAttribute("data-optional",!n),t.toggleAttribute("data-invalid",!i),t.toggleAttribute("data-valid",i),t.toggleAttribute("data-user-invalid",!i&&r),t.toggleAttribute("data-user-valid",i&&r)}updateValidity(){let i=this.host;this.setValidity(i.validity?.valid)}emitInvalidEvent(i){let t=new CustomEvent("zn-invalid",{bubbles:!1,composed:!1,cancelable:!0,detail:{}});i||t.preventDefault(),this.host.dispatchEvent(t)||i?.preventDefault()}},et=Object.freeze({badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valid:!0,valueMissing:!1}),zd=Object.freeze({...et,customError:!0,valid:!1}),rs=Object.freeze({...et,valueMissing:!0,valid:!1});var Y=class{constructor(i,...t){this.slotNames=[];this.handleSlotChange=i=>{let t=i.target;(this.slotNames.includes("[default]")&&!t.name||t.name&&this.slotNames.includes(t.name))&&this.host.requestUpdate()};(this.host=i).addController(this),this.slotNames=t}hasDefaultSlot(){return[...this.host.childNodes].some(i=>{if(i.nodeType===i.TEXT_NODE&&i.textContent.trim()!=="")return!0;if(i.nodeType===i.ELEMENT_NODE){let t=i;if(t.tagName.toLowerCase()==="zn-visually-hidden")return!1;if(!t.hasAttribute("slot"))return!0}return!1})}hasNamedSlot(i){return this.host.querySelector(`:scope > [slot="${i}"]`)!==null}test(i){return i==="[default]"?this.hasDefaultSlot():this.hasNamedSlot(i)}hostConnected(){this.host.shadowRoot.addEventListener("slotchange",this.handleSlotChange)}hostDisconnected(){this.host.shadowRoot.removeEventListener("slotchange",this.handleSlotChange)}getSlot(i){return this.host.querySelector(`:scope > [slot="${i}"]`)}getDefaultSlot(){return[...this.host.childNodes].filter(i=>{if(i.nodeType===i.TEXT_NODE&&i.textContent.trim()!=="")return!0;if(i.nodeType===i.ELEMENT_NODE){let t=i;if(t.tagName.toLowerCase()==="zn-visually-hidden")return!1;if(!t.hasAttribute("slot"))return!0}return!1})}getSlots(i){return this.host.querySelectorAll(`:scope > [slot="${i}"]`)}};function Jb(o){if(!o)return"";let i=o.assignedNodes({flatten:!0}),t="";return[...i].forEach(r=>{r.nodeType===Node.TEXT_NODE&&(t+=r.textContent)}),t}var ev=Symbol.for(""),_5=o=>{if(o?.r===ev)return o?._$litStatic$};var Li=(o,...i)=>({_$litStatic$:i.reduce((t,r,n)=>t+(a=>{if(a._$litStatic$!==void 0)return a._$litStatic$;throw Error(`Value passed to 'literal' function must be a 'literal' result: ${a}. Use 'unsafeStatic' to pass non-literal values, but
5
+ take care to ensure page security.`)})(r)+o[n+1],o[0]),r:ev}),Zb=new Map,bu=o=>(i,...t)=>{let r=t.length,n,a,s=[],l=[],d,h=0,m=!1;for(;h<r;){for(d=i[h];h<r&&(a=t[h],(n=_5(a))!==void 0);)d+=n+i[++h],m=!0;h!==r&&l.push(a),s.push(d),h++}if(h===r&&s.push(i[r]),m){let f=s.join("$$lit$$");(i=Zb.get(f))===void 0&&(s.raw=s,Zb.set(f,i=s)),t=l}return o(i,...t)},Ce=bu(u),sN=bu(Ji),lN=bu($b);var O=o=>o??F;var tv=o=>(i,t)=>{t!==void 0?t.addInitializer(()=>{customElements.define(o,i)}):customElements.define(o,i)};var k5={attribute:!0,type:String,converter:go,reflect:!1,hasChanged:ts},S5=(o=k5,i,t)=>{let{kind:r,metadata:n}=t,a=globalThis.litPropertyMetadata.get(n);if(a===void 0&&globalThis.litPropertyMetadata.set(n,a=new Map),r==="setter"&&((o=Object.create(o)).wrapped=!0),a.set(t.name,o),r==="accessor"){let{name:s}=t;return{set(l){let d=i.get.call(this);i.set.call(this,l),this.requestUpdate(s,d,o,!0,l)},init(l){return l!==void 0&&this.C(s,void 0,o,l),l}}}if(r==="setter"){let{name:s}=t;return function(l){let d=this[s];i.call(this,l),this.requestUpdate(s,d,o,!0,l)}}throw Error("Unsupported decorator location: "+r)};function p(o){return(i,t)=>typeof t=="object"?S5(o,i,t):((r,n,a)=>{let s=n.hasOwnProperty(a);return n.constructor.createProperty(a,r),s?Object.getOwnPropertyDescriptor(n,a):void 0})(o,i,t)}function I(o){return p({...o,state:!0,attribute:!1})}function rv(o){return(i,t)=>{let r=typeof i=="function"?i:i[t];Object.assign(r,o)}}var xn=(o,i,t)=>(t.configurable=!0,t.enumerable=!0,Reflect.decorate&&typeof i!="object"&&Object.defineProperty(o,i,t),t);function B(o,i){return(t,r,n)=>{let a=s=>s.renderRoot?.querySelector(o)??null;if(i){let{get:s,set:l}=typeof r=="object"?t:n??(()=>{let d=Symbol();return{get(){return this[d]},set(h){this[d]=h}}})();return xn(t,r,{get(){let d=s.call(this);return d===void 0&&(d=a(this),(d!==null||this.hasUpdated)&&l.call(this,d)),d}})}return xn(t,r,{get(){return a(this)}})}}var C5;function is(o){return(i,t)=>xn(i,t,{get(){return(this.renderRoot??C5??(C5=document.createDocumentFragment())).querySelectorAll(o)}})}function iv(o){return(i,t)=>xn(i,t,{async get(){return await this.updateComplete,this.renderRoot?.querySelector(o)??null}})}function nv(o){return(i,t)=>{let{slot:r}=o??{},n="slot"+(r?`[name=${r}]`:":not([name])");return xn(i,t,{get(){return this.renderRoot?.querySelector(n)?.assignedNodes(o)??[]}})}}var ov="important",E5=" !"+ov,xt=yt(class extends rr{constructor(o){if(super(o),o.type!==cr.ATTRIBUTE||o.name!=="style"||o.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(o){return Object.keys(o).reduce((i,t)=>{let r=o[t];return r==null?i:i+`${t=t.includes("-")?t:t.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${r};`},"")}update(o,[i]){let{style:t}=o.element;if(this.ft===void 0)return this.ft=new Set(Object.keys(i)),this.render(i);for(let r of this.ft)i[r]==null&&(this.ft.delete(r),r.includes("-")?t.removeProperty(r):t[r]=null);for(let r in i){let n=i[r];if(n!=null){this.ft.add(r);let a=typeof n=="string"&&n.endsWith(E5);r.includes("-")||a?t.setProperty(r,a?n.slice(0,-11):n,a?ov:""):t[r]=n}}return vt}});function W(o,i){let t={waitUntilFirstUpdate:!1,...i};return(r,n)=>{let{update:a}=r,s=Array.isArray(o)?o:[o];r.update=function(l){s.forEach(d=>{let h=d;if(l.has(h)){let m=l.get(h),f=this[h];m!==f&&(!t.waitUntilFirstUpdate||this.hasUpdated)&&this[n](m,f)}}),a.call(this,l)}}}var T5=Object.defineProperty,$5=(o,i,t)=>i in o?T5(o,i,{enumerable:!0,configurable:!0,writable:!0,value:t}):o[i]=t,vu=(o,i,t)=>($5(o,typeof i!="symbol"?i+"":i,t),t),A5=(o,i,t)=>{if(!i.has(o))throw TypeError("Cannot "+t)},yu=(o,i)=>{if(Object(i)!==i)throw TypeError('Cannot use the "in" operator on this value');return o.has(i)},_d=(o,i,t)=>{if(i.has(o))throw TypeError("Cannot add the same private member more than once");i instanceof WeakSet?i.add(o):i.set(o,t)},av=(o,i,t)=>(A5(o,i,"access private method"),t);function sv(o,i){return Object.is(o,i)}var Ot=null,ql=!1,kd=1,Sd=Symbol("SIGNAL");function ns(o){let i=Ot;return Ot=o,i}function L5(){return Ot}function M5(){return ql}var ku={version:0,lastCleanEpoch:0,dirty:!1,producerNode:void 0,producerLastReadVersion:void 0,producerIndexOfThis:void 0,nextProducerIndex:0,liveConsumerNode:void 0,liveConsumerIndexOfThis:void 0,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};function Cd(o){if(ql)throw new Error(typeof ngDevMode<"u"&&ngDevMode?"Assertion error: signal read during notification phase":"");if(Ot===null)return;Ot.consumerOnSignalRead(o);let i=Ot.nextProducerIndex++;if(os(Ot),i<Ot.producerNode.length&&Ot.producerNode[i]!==o&&zu(Ot)){let t=Ot.producerNode[i];Ed(t,Ot.producerIndexOfThis[i])}Ot.producerNode[i]!==o&&(Ot.producerNode[i]=o,Ot.producerIndexOfThis[i]=zu(Ot)?dv(o,Ot,i):0),Ot.producerLastReadVersion[i]=o.version}function q5(){kd++}function lv(o){if(!(!o.dirty&&o.lastCleanEpoch===kd)){if(!o.producerMustRecompute(o)&&!O5(o)){o.dirty=!1,o.lastCleanEpoch=kd;return}o.producerRecomputeValue(o),o.dirty=!1,o.lastCleanEpoch=kd}}function cv(o){if(o.liveConsumerNode===void 0)return;let i=ql;ql=!0;try{for(let t of o.liveConsumerNode)t.dirty||R5(t)}finally{ql=i}}function I5(){return Ot?.consumerAllowSignalWrites!==!1}function R5(o){var i;o.dirty=!0,cv(o),(i=o.consumerMarkedDirty)==null||i.call(o.wrapper??o)}function D5(o){return o&&(o.nextProducerIndex=0),ns(o)}function N5(o,i){if(ns(i),!(!o||o.producerNode===void 0||o.producerIndexOfThis===void 0||o.producerLastReadVersion===void 0)){if(zu(o))for(let t=o.nextProducerIndex;t<o.producerNode.length;t++)Ed(o.producerNode[t],o.producerIndexOfThis[t]);for(;o.producerNode.length>o.nextProducerIndex;)o.producerNode.pop(),o.producerLastReadVersion.pop(),o.producerIndexOfThis.pop()}}function O5(o){os(o);for(let i=0;i<o.producerNode.length;i++){let t=o.producerNode[i],r=o.producerLastReadVersion[i];if(r!==t.version||(lv(t),r!==t.version))return!0}return!1}function dv(o,i,t){var r;if(Su(o),os(o),o.liveConsumerNode.length===0){(r=o.watched)==null||r.call(o.wrapper);for(let n=0;n<o.producerNode.length;n++)o.producerIndexOfThis[n]=dv(o.producerNode[n],o,n)}return o.liveConsumerIndexOfThis.push(t),o.liveConsumerNode.push(i)-1}function Ed(o,i){var t;if(Su(o),os(o),typeof ngDevMode<"u"&&ngDevMode&&i>=o.liveConsumerNode.length)throw new Error(`Assertion error: active consumer index ${i} is out of bounds of ${o.liveConsumerNode.length} consumers)`);if(o.liveConsumerNode.length===1){(t=o.unwatched)==null||t.call(o.wrapper);for(let n=0;n<o.producerNode.length;n++)Ed(o.producerNode[n],o.producerIndexOfThis[n])}let r=o.liveConsumerNode.length-1;if(o.liveConsumerNode[i]=o.liveConsumerNode[r],o.liveConsumerIndexOfThis[i]=o.liveConsumerIndexOfThis[r],o.liveConsumerNode.length--,o.liveConsumerIndexOfThis.length--,i<o.liveConsumerNode.length){let n=o.liveConsumerIndexOfThis[i],a=o.liveConsumerNode[i];os(a),a.producerIndexOfThis[n]=i}}function zu(o){var i;return o.consumerIsAlwaysLive||(((i=o?.liveConsumerNode)==null?void 0:i.length)??0)>0}function os(o){o.producerNode??(o.producerNode=[]),o.producerIndexOfThis??(o.producerIndexOfThis=[]),o.producerLastReadVersion??(o.producerLastReadVersion=[])}function Su(o){o.liveConsumerNode??(o.liveConsumerNode=[]),o.liveConsumerIndexOfThis??(o.liveConsumerIndexOfThis=[])}function pv(o){if(lv(o),Cd(o),o.value===_u)throw o.error;return o.value}function P5(o){let i=Object.create(H5);i.computation=o;let t=()=>pv(i);return t[Sd]=i,t}var xu=Symbol("UNSET"),wu=Symbol("COMPUTING"),_u=Symbol("ERRORED"),H5={...ku,value:xu,dirty:!0,error:null,equal:sv,producerMustRecompute(o){return o.value===xu||o.value===wu},producerRecomputeValue(o){if(o.value===wu)throw new Error("Detected cycle in computations.");let i=o.value;o.value=wu;let t=D5(o),r,n=!1;try{r=o.computation.call(o.wrapper),n=i!==xu&&i!==_u&&o.equal.call(o.wrapper,i,r)}catch(a){r=_u,o.error=a}finally{N5(o,t)}if(n){o.value=i;return}o.value=r,o.version++}};function F5(){throw new Error}var B5=F5;function V5(){B5()}function U5(o){let i=Object.create(K5);i.value=o;let t=()=>(Cd(i),i.value);return t[Sd]=i,t}function j5(){return Cd(this),this.value}function G5(o,i){I5()||V5(),o.equal.call(o.wrapper,o.value,i)||(o.value=i,W5(o))}var K5={...ku,equal:sv,value:void 0};function W5(o){o.version++,q5(),cv(o)}var pr=Symbol("node"),st;(o=>{var i,t,r,n,a,s;class l{constructor(m,f={}){_d(this,t),vu(this,i);let g=U5(m)[Sd];if(this[pr]=g,g.wrapper=this,f){let v=f.equals;v&&(g.equal=v),g.watched=f[o.subtle.watched],g.unwatched=f[o.subtle.unwatched]}}get(){if(!(0,o.isState)(this))throw new TypeError("Wrong receiver type for Signal.State.prototype.get");return j5.call(this[pr])}set(m){if(!(0,o.isState)(this))throw new TypeError("Wrong receiver type for Signal.State.prototype.set");if(M5())throw new Error("Writes to signals not permitted during Watcher callback");let f=this[pr];G5(f,m)}}i=pr,t=new WeakSet,r=function(){},o.isState=h=>typeof h=="object"&&yu(t,h),o.State=l;class d{constructor(m,f){_d(this,a),vu(this,n);let g=P5(m)[Sd];if(g.consumerAllowSignalWrites=!0,this[pr]=g,g.wrapper=this,f){let v=f.equals;v&&(g.equal=v),g.watched=f[o.subtle.watched],g.unwatched=f[o.subtle.unwatched]}}get(){if(!(0,o.isComputed)(this))throw new TypeError("Wrong receiver type for Signal.Computed.prototype.get");return pv(this[pr])}}n=pr,a=new WeakSet,s=function(){},o.isComputed=h=>typeof h=="object"&&yu(a,h),o.Computed=d,(h=>{var m,f,b,g,v;function y($){let L,K=null;try{K=ns(null),L=$()}finally{ns(K)}return L}h.untrack=y;function z($){var L;if(!(0,o.isComputed)($)&&!(0,o.isWatcher)($))throw new TypeError("Called introspectSources without a Computed or Watcher argument");return((L=$[pr].producerNode)==null?void 0:L.map(K=>K.wrapper))??[]}h.introspectSources=z;function E($){var L;if(!(0,o.isComputed)($)&&!(0,o.isState)($))throw new TypeError("Called introspectSinks without a Signal argument");return((L=$[pr].liveConsumerNode)==null?void 0:L.map(K=>K.wrapper))??[]}h.introspectSinks=E;function N($){if(!(0,o.isComputed)($)&&!(0,o.isState)($))throw new TypeError("Called hasSinks without a Signal argument");let L=$[pr].liveConsumerNode;return L?L.length>0:!1}h.hasSinks=N;function U($){if(!(0,o.isComputed)($)&&!(0,o.isWatcher)($))throw new TypeError("Called hasSources without a Computed or Watcher argument");let L=$[pr].producerNode;return L?L.length>0:!1}h.hasSources=U;class R{constructor(L){_d(this,f),_d(this,g),vu(this,m);let K=Object.create(ku);K.wrapper=this,K.consumerMarkedDirty=L,K.consumerIsAlwaysLive=!0,K.consumerAllowSignalWrites=!1,K.producerNode=[],this[pr]=K}watch(...L){if(!(0,o.isWatcher)(this))throw new TypeError("Called unwatch without Watcher receiver");av(this,g,v).call(this,L);let K=this[pr];K.dirty=!1;let ne=ns(K);for(let we of L)Cd(we[pr]);ns(ne)}unwatch(...L){if(!(0,o.isWatcher)(this))throw new TypeError("Called unwatch without Watcher receiver");av(this,g,v).call(this,L);let K=this[pr];os(K);for(let ne=K.producerNode.length-1;ne>=0;ne--)if(L.includes(K.producerNode[ne].wrapper)){Ed(K.producerNode[ne],K.producerIndexOfThis[ne]);let we=K.producerNode.length-1;if(K.producerNode[ne]=K.producerNode[we],K.producerIndexOfThis[ne]=K.producerIndexOfThis[we],K.producerNode.length--,K.producerIndexOfThis.length--,K.nextProducerIndex--,ne<K.producerNode.length){let De=K.producerIndexOfThis[ne],Pe=K.producerNode[ne];Su(Pe),Pe.liveConsumerIndexOfThis[De]=ne}}}getPending(){if(!(0,o.isWatcher)(this))throw new TypeError("Called getPending without Watcher receiver");return this[pr].producerNode.filter(K=>K.dirty).map(K=>K.wrapper)}}m=pr,f=new WeakSet,b=function(){},g=new WeakSet,v=function($){for(let L of $)if(!(0,o.isComputed)(L)&&!(0,o.isState)(L))throw new TypeError("Called watch/unwatch without a Computed or State argument")},o.isWatcher=$=>yu(f,$),h.Watcher=R;function C(){var $;return($=L5())==null?void 0:$.wrapper}h.currentComputed=C,h.watched=Symbol("watched"),h.unwatched=Symbol("unwatched")})(o.subtle||(o.subtle={}))})(st||(st={}));var Cu=!1,hv=new st.subtle.Watcher(()=>{Cu||(Cu=!0,queueMicrotask(()=>{Cu=!1;for(let o of hv.getPending())o.get();hv.watch()}))}),Y5=Symbol("SignalWatcherBrand"),Q5=new FinalizationRegistry(o=>{o.unwatch(...st.subtle.introspectSources(o))}),uv=new WeakMap;function Td(o){return o[Y5]===!0?(console.warn("SignalWatcher should not be applied to the same class more than once."),o):class extends o{constructor(){super(...arguments),this._$St=new Map,this._$So=new st.State(0),this._$Si=!1}_$Sl(){var i,t;let r=[],n=[];this._$St.forEach((s,l)=>{(s?.beforeUpdate?r:n).push(l)});let a=(i=this.h)===null||i===void 0?void 0:i.getPending().filter(s=>s!==this._$Su&&!this._$St.has(s));r.forEach(s=>s.get()),(t=this._$Su)===null||t===void 0||t.get(),a.forEach(s=>s.get()),n.forEach(s=>s.get())}_$Sv(){this.isUpdatePending||queueMicrotask(()=>{this.isUpdatePending||this._$Sl()})}_$S_(){if(this.h!==void 0)return;this._$Su=new st.Computed(()=>{this._$So.get(),super.performUpdate()});let i=this.h=new st.subtle.Watcher(function(){let t=uv.get(this);t!==void 0&&(t._$Si===!1&&(new Set(this.getPending()).has(t._$Su)?t.requestUpdate():t._$Sv()),this.watch())});uv.set(i,this),Q5.register(this,i),i.watch(this._$Su),i.watch(...Array.from(this._$St).map(([t])=>t))}_$Sp(){if(this.h===void 0)return;let i=!1;this.h.unwatch(...st.subtle.introspectSources(this.h).filter(t=>{var r;let n=((r=this._$St.get(t))===null||r===void 0?void 0:r.manualDispose)!==!0;return n&&this._$St.delete(t),i||(i=!n),n})),i||(this._$Su=void 0,this.h=void 0,this._$St.clear())}updateEffect(i,t){var r;this._$S_();let n=new st.Computed(()=>{i()});return this.h.watch(n),this._$St.set(n,t),(r=t?.beforeUpdate)!==null&&r!==void 0&&r?st.subtle.untrack(()=>n.get()):this.updateComplete.then(()=>st.subtle.untrack(()=>n.get())),()=>{this._$St.delete(n),this.h.unwatch(n),this.isConnected===!1&&this._$Sp()}}performUpdate(){this.isUpdatePending&&(this._$S_(),this._$Si=!0,this._$So.set(this._$So.get()+1),this._$Si=!1,this._$Sl())}connectedCallback(){super.connectedCallback(),this.requestUpdate()}disconnectedCallback(){super.disconnectedCallback(),queueMicrotask(()=>{this.isConnected===!1&&this._$Sp()})}}}var{I:X5}=Mb,mv=o=>o;var $d=o=>o.strings===void 0,fv=()=>document.createComment(""),as=(o,i,t)=>{let r=o._$AA.parentNode,n=i===void 0?o._$AB:i._$AA;if(t===void 0){let a=r.insertBefore(fv(),n),s=r.insertBefore(fv(),n);t=new X5(a,s,o,o.options)}else{let a=t._$AB.nextSibling,s=t._$AM,l=s!==o;if(l){let d;t._$AQ?.(o),t._$AM=o,t._$AP!==void 0&&(d=o._$AU)!==s._$AU&&t._$AP(d)}if(a!==n||l){let d=t._$AA;for(;d!==a;){let h=mv(d).nextSibling;mv(r).insertBefore(d,n),d=h}}}return t},vo=(o,i,t=o)=>(o._$AI(i,t),o),J5={},ss=(o,i=J5)=>o._$AH=i,gv=o=>o._$AH,Ad=o=>{o._$AR(),o._$AA.remove()};var Il=(o,i)=>{let t=o._$AN;if(t===void 0)return!1;for(let r of t)r._$AO?.(i,!1),Il(r,i);return!0},Ld=o=>{let i,t;do{if((i=o._$AM)===void 0)break;t=i._$AN,t.delete(o),o=i}while(t?.size===0)},bv=o=>{for(let i;i=o._$AM;o=i){let t=i._$AN;if(t===void 0)i._$AN=t=new Set;else if(t.has(o))break;t.add(o),t4(i)}};function Z5(o){this._$AN!==void 0?(Ld(this),this._$AM=o,bv(this)):this._$AM=o}function e4(o,i=!1,t=0){let r=this._$AH,n=this._$AN;if(n!==void 0&&n.size!==0)if(i)if(Array.isArray(r))for(let a=t;a<r.length;a++)Il(r[a],!1),Ld(r[a]);else r!=null&&(Il(r,!1),Ld(r));else Il(this,o)}var t4=o=>{o.type==cr.CHILD&&(o._$AP??(o._$AP=e4),o._$AQ??(o._$AQ=Z5))},yo=class extends rr{constructor(){super(...arguments),this._$AN=void 0}_$AT(i,t,r){super._$AT(i,t,r),bv(this),this.isConnected=i._$AU}_$AO(i,t=!0){i!==this.isConnected&&(this.isConnected=i,i?this.reconnected?.():this.disconnected?.()),t&&(Il(this,i),Ld(this))}setValue(i){if($d(this._$Ct))this._$Ct._$AI(i,this);else{let t=[...this._$Ct._$AH];t[this._$Ci]=i,this._$Ct._$AI(t,this,0)}}disconnected(){}reconnected(){}};var Eu=!1,Tu=new st.subtle.Watcher(async()=>{Eu||(Eu=!0,queueMicrotask(()=>{Eu=!1;for(let o of Tu.getPending())o.get();Tu.watch()}))}),Md=class extends yo{_$S_(){var i,t;this._$Sm===void 0&&(this._$Sj=new st.Computed(()=>{var r;let n=(r=this._$SW)===null||r===void 0?void 0:r.get();return this.setValue(n),n}),this._$Sm=(t=(i=this._$Sk)===null||i===void 0?void 0:i.h)!==null&&t!==void 0?t:Tu,this._$Sm.watch(this._$Sj),st.subtle.untrack(()=>{var r;return(r=this._$Sj)===null||r===void 0?void 0:r.get()}))}_$Sp(){this._$Sm!==void 0&&(this._$Sm.unwatch(this._$SW),this._$Sm=void 0)}render(i){return st.subtle.untrack(()=>i.get())}update(i,[t]){var r,n;return(r=this._$Sk)!==null&&r!==void 0||(this._$Sk=(n=i.options)===null||n===void 0?void 0:n.host),t!==this._$SW&&this._$SW!==void 0&&this._$Sp(),this._$SW=t,this._$S_(),st.subtle.untrack(()=>this._$SW.get())}disconnected(){this._$Sp()}reconnected(){this._$S_()}},$u=yt(Md);var Au=o=>(i,...t)=>o(i,...t.map(r=>r instanceof st.State||r instanceof st.Computed?$u(r):r)),r4=Au(u),i4=Au(Ji);var wO=st.State,zO=st.Computed,Lu=(o,i)=>new st.State(o,i);function yv(o,i){return typeof document>"u"?i:document.documentElement.getAttribute(o)||document.body?.getAttribute(o)||i}function xv(){return yv("t","light")}function wv(){return yv("m","light")}var qd=Lu(xv()),Id=Lu(wv()),vv=!1;function n4(){vv||typeof window>"u"||(vv=!0,window.addEventListener("theme-change",o=>{let i=o.detail,t,r;if(typeof i=="string")t=i;else if(i&&typeof i=="object"){let n=i;typeof n.theme=="string"&&(t=n.theme),typeof n.mode=="string"&&(r=n.mode)}t===void 0&&(t=xv()),r===void 0&&(r=wv()),t!==qd.get()&&qd.set(t),r!==Id.get()&&Id.set(r)}))}n4();var o4=Td(bo),S=class extends o4{willUpdate(i){this.t=qd.get(),this.m=Id.get(),super.willUpdate(i)}static define(i,t=this,r={}){let n=customElements.get(i);if(!n){customElements.define(i,class extends t{},r);return}let a=" (unknown version)",s=a;"version"in t&&t.version&&typeof t.version=="string"&&(a=` v${t.version}`),"version"in n&&n.version&&typeof n.version=="string"&&(s=` v${n.version}`),!(a&&s&&a===s)&&console.warn(`Attempted to register <${i}>${a} but it is already registered as <${i}>${s}.`)}constructor(){super(),Object.entries(this.constructor.dependencies).forEach(([i,t])=>{this.constructor.define(i,t)})}emit(i,t){let r=new CustomEvent(i,{bubbles:!0,cancelable:!0,composed:!0,detail:{element:this},...t});return this.dispatchEvent(r),r}};S.dependencies={},c([p()],S.prototype,"dir",2),c([p()],S.prototype,"lang",2),c([p({reflect:!0})],S.prototype,"t",2),c([p({reflect:!0})],S.prototype,"m",2);var ga=class extends rr{constructor(i){if(super(i),this.it=F,i.type!==cr.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(i){if(i===F||i==null)return this._t=void 0,this.it=i;if(i===vt)return i;if(typeof i!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(i===this.it)return this._t;this.it=i;let t=[i];return t.raw=t,this._t={_$litType$:this.constructor.resultType,strings:t,values:[]}}};ga.directiveName="unsafeHTML",ga.resultType=1;var Pt=yt(ga);function Mi(o,i){return new Promise(t=>{function r(n){n.target===o&&(o.removeEventListener(i,r),t())}o.addEventListener(i,r)})}var Mu=class{constructor(){this.openDropdowns=new Set;this.openTooltips=new Set}registerDropdown(i){this.openDropdowns.add(i)}unregisterDropdown(i){this.openDropdowns.delete(i)}isDropdownOpen(){return this.openDropdowns.size>0}registerTooltip(i){this.openTooltips.add(i)}unregisterTooltip(i){this.openTooltips.delete(i)}isTooltipOpen(){return this.openTooltips.size>0}},a4=new Mu,Vn=a4;var zv=k`@keyframes rotate-gradient{from{--rotate:0deg}to{--rotate:360deg}}:host{text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-transform:none}*,*::before,*::after{box-sizing:border-box;border-width:0;border-style:solid;border-color:rgb(var(--zn-border-color))}[hidden]{display:none !important}.width-container,.form-container,.wide-form-container{height:100%;width:100%;margin:var(--zn-default-margin,0 auto)}.width-container{max-width:var(--zn-container)}.form-container{max-width:var(--zn-container-ph)}.wide-form-container{max-width:var(--zn-container-lg)}:host{display:inline-block}.dropdown::part(popup){z-index:var(--zn-z-index-dropdown)}`;var Ct=class extends S{constructor(){super(...arguments);this.open=!1;this.placement="bottom-start";this.disabled=!1;this.stayOpenOnSelect=!1;this.distance=0;this.skidding=0;this.hoist=!0;this.sync=void 0;this.fetchedContent="";this.handlePanelSelect=t=>{let r=t.target;!this.stayOpenOnSelect&&r.tagName.toLowerCase()==="zn-menu"&&(this.hide().then(n=>n),this.focusOnTrigger())};this.handlePreload=()=>{this.preloadContent().then(t=>t)}}connectedCallback(){super.connectedCallback(),this.containingElement||(this.containingElement=this)}focusOnTrigger(){let t=this.trigger?.assignedElements({flatten:!0})[0];typeof t?.focus=="function"&&t.focus()}firstUpdated(t){this.panel.hidden=!this.open,this.open&&(this.addOpenListeners(),this.popup.active=!0),super.firstUpdated(t)}disconnectedCallback(){super.disconnectedCallback(),this.removeOpenListeners(),this.hide().then(t=>t)}getMenu(){return this.panel.assignedElements({flatten:!0}).find(t=>t.tagName.toLowerCase()==="zn-menu")}addOpenListeners(){this.panel.addEventListener("zn-select",this.handlePanelSelect),"CloseWatcher"in window?(this.closeWatcher?.destroy(),this.closeWatcher=new CloseWatcher,this.closeWatcher.onclose=()=>{this.hide().then(t=>t),this.focusOnTrigger()}):this.panel.addEventListener("keydown",this.handleKeyDown),document.addEventListener("keydown",this.handleDocumentKeyDown.bind(this)),document.addEventListener("mousedown",this.handleDocumentMouseDown.bind(this)),this.closeWatcher?.destroy()}removeOpenListeners(){this.panel&&(this.panel.removeEventListener("zn-select",this.handlePanelSelect),this.panel.removeEventListener("keydown",this.handleKeyDown)),document.removeEventListener("keydown",this.handleDocumentKeyDown),document.removeEventListener("mousedown",this.handleDocumentMouseDown),this.closeWatcher?.destroy()}async preloadContent(){if(this.uri&&!this.fetchedContent){let t=await fetch(this.uri,{credentials:"same-origin",headers:{"x-kx-inline":"inline"}});this.fetchedContent=await t.text(),this.requestUpdate()}}async handleTriggerClick(){this.open?await this.hide():(await this.show(),this.focusOnTrigger())}handleKeyDown(t){this.open&&t.key==="Escape"&&(t.stopPropagation(),this.hide().then(r=>r),this.focusOnTrigger())}async handleTriggerKeyDown(t){if([" ","Enter"].includes(t.key)){t.preventDefault(),await this.handleTriggerClick();return}let r=this.getMenu();if(r){let n=r.getAllItems(),a=n[0],s=n[n.length-1];["ArrowDown","ArrowUp","Home","End"].includes(t.key)&&(t.preventDefault(),this.open||(this.show().then(l=>l),await this.updateComplete),n.length>0&&this.updateComplete.then(()=>{(t.key==="ArrowDown"||t.key==="Home")&&(r.setCurrentItem(a),a.focus()),(t.key==="ArrowUp"||t.key==="End")&&(r.setCurrentItem(s),s.focus())}))}}handleTriggerKeyUp(t){t.key===" "&&t.preventDefault()}handleTriggerSlotChange(){this.updateAccessibleTrigger()}handleDocumentMouseDown(t){let r=t.composedPath();this.containingElement&&!r.includes(this.containingElement)&&this.hide().then(n=>n)}handleDocumentKeyDown(t){if(t.key==="Escape"&&this.open&&!this.closeWatcher){t.stopPropagation(),this.focusOnTrigger(),this.hide().then(r=>r);return}if(t.key==="Tab"){if(this.open){this.hide().then(r=>r),this.panel?.assignedElements({flatten:!0}).some(r=>r.matches(":focus-within"))&&(t.preventDefault(),this.focusOnTrigger());return}setTimeout(()=>{let r=this.containingElement?.getRootNode()instanceof ShadowRoot?document.activeElement?.shadowRoot?.activeElement:document.activeElement;(!this.containingElement||r?.closest(this.containingElement.tagName.toLowerCase())!==this.containingElement)&&this.hide().then(n=>n)})}}async show(){if(!this.open)return this.open=!0,Mi(this,"zn-after-show")}async hide(){if(this.open)return this.open=!1,Mi(this,"zn-after-hide")}reposition(){this.popup.reposition()}updateAccessibleTrigger(){let r=this.trigger.assignedElements({flatten:!0}).find(a=>Pb(a).start),n=null;r&&(r.tagName.toLowerCase()==="zn-button"?n=r.button:n=r),n&&(n.setAttribute("aria-haspopup","true"),n.setAttribute("aria-expanded",this.open.toString()))}handleOpenChange(){if(this.disabled){this.open=!1;return}if(this.updateAccessibleTrigger(),this.open)this.emit("zn-show"),Vn.registerDropdown(this),this.addOpenListeners(),this.panel.hidden=!1,this.popup.active=!0,this.panel.focus(),this.emit("zn-after-show");else{this.emit("zn-hide"),Vn.unregisterDropdown(this),this.removeOpenListeners();let t=this.getRootNode().activeElement;t&&this.panel.assignedElements({flatten:!0}).some(r=>r.contains(t))&&(this.focusOnTrigger(),t.blur()),this.panel.blur(),this.panel.hidden=!0,this.popup.active=!1,this.emit("zn-after-hide")}}render(){return u`
6
6
  <zn-popup
7
7
  part="base"
8
8
  exportparts="popup:base__popup"
@@ -35,8 +35,8 @@ import{a as Hn,b as X3,c as kr,d as c,e as V}from"./chunks/zn.UBLZO6CI.js";var a
35
35
  <slot part="panel" class="dropdown__panel"></slot>
36
36
  </div>
37
37
  </zn-popup>
38
- `}};Ct.styles=_(zv),c([B(".dropdown")],Ct.prototype,"popup",2),c([B(".dropdown__trigger")],Ct.prototype,"trigger",2),c([B(".dropdown__panel")],Ct.prototype,"panel",2),c([p({type:Boolean,reflect:!0})],Ct.prototype,"open",2),c([p({reflect:!0})],Ct.prototype,"placement",2),c([p({type:Boolean,reflect:!0})],Ct.prototype,"disabled",2),c([p({attribute:"stay-open-on-select",type:Boolean,reflect:!0})],Ct.prototype,"stayOpenOnSelect",2),c([p({attribute:!1})],Ct.prototype,"containingElement",2),c([p({type:Number})],Ct.prototype,"distance",2),c([p({type:Number})],Ct.prototype,"skidding",2),c([p({type:Boolean})],Ct.prototype,"hoist",2),c([p({reflect:!0})],Ct.prototype,"sync",2),c([p()],Ct.prototype,"uri",2),c([p({type:String})],Ct.prototype,"fetchedContent",2),c([W("open",{waitUntilFirstUpdate:!0})],Ct.prototype,"handleOpenChange",1);var ur=Ct;Ct.define("zn-dropdown");var _v=(o,i,t)=>{for(let r of i)if(r[0]===o)return(0,r[1])();return t?.()};function kv(o){function i(b,g){return b>>>g|b<<32-g}function t(b){b=b.replace(/\r\n/g,`
39
- `);let g="";for(let v=0;v<b.length;v++){let y=b.charCodeAt(v);y<128?g+=String.fromCharCode(y):y<2048?(g+=String.fromCharCode(y>>6|192),g+=String.fromCharCode(y&63|128)):(g+=String.fromCharCode(y>>12|224),g+=String.fromCharCode(y>>6&63|128),g+=String.fromCharCode(y&63|128))}return g}let r=Math.pow,n=r(2,32),a=[],s=[],l=[],d={},h=0,m=t(o),f=m.length*8;for(let b=2;h<64;b++)if(!d[b]){for(let g=0;g<313;g+=b)d[g]=!0;h<8&&(s[h]=r(b,.5)*n|0),l[h]=r(b,1/3)*n|0,h++}for(m+="\x80";m.length%64!==56;)m+="\0";for(let b=0;b<m.length;b++)a[b>>2]|=m.charCodeAt(b)<<(3-b%4)*8;a[a.length]=f/n|0,a[a.length]=f;for(let b=0;b<a.length;b+=16){let g=s.slice(0,8),v=a.slice(b,b+16);for(let y=16;y<64;y++){let z=v[y-15],E=v[y-2],N=i(z,7)^i(z,18)^z>>>3,U=i(E,17)^i(E,19)^E>>>10;v[y]=v[y-16]+N+v[y-7]+U|0}for(let y=0;y<64;y++){let z=g[0],E=g[1],N=g[2],U=g[3],R=g[4],C=g[5],$=g[6],L=g[7],K=i(R,6)^i(R,11)^i(R,25),ne=R&C^~R&$,we=L+K+ne+l[y]+v[y]|0,De=i(z,2)^i(z,13)^i(z,22),Pe=z&E^z&N^E&N,at=De+Pe|0;g[7]=$,g[6]=C,g[5]=R,g[4]=U+we|0,g[3]=N,g[2]=E,g[1]=z,g[0]=we+at|0}for(let y=0;y<8;y++)s[y]=s[y]+g[y]|0}return s.map(b=>(b>>>0).toString(16).padStart(8,"0")).join("")}var Rl=class extends ga{};Rl.directiveName="unsafeSVG",Rl.resultType=2;var Sv=yt(Rl);var Cv=k`@keyframes rotate-gradient{from{--rotate:0deg}to{--rotate:360deg}}:host{text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-transform:none}*,*::before,*::after{box-sizing:border-box;border-width:0;border-style:solid;border-color:rgb(var(--zn-border-color))}[hidden]{display:none !important}.width-container,.form-container,.wide-form-container{height:100%;width:100%;margin:var(--zn-default-margin,0 auto)}.width-container{max-width:var(--zn-container)}.form-container{max-width:var(--zn-container-ph)}.wide-form-container{max-width:var(--zn-container-lg)}.lni{display:inline-block;font:normal normal normal 1em/1 "Lineicons";color:inherit;flex-shrink:0;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.lni-sm{font-size:0.8em}.lni-lg{font-size:1.2em}.lni-16{font-size:16px}.lni-32{font-size:32px}.lni-is-spinning{animation:lni-spin 1s infinite linear}@keyframes lni-spin{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}.lni-rotate-90{transform:rotate(90deg)}.lni-rotate-180{transform:rotate(180deg)}.lni-rotate-270{transform:rotate(270deg)}.lni-flip-y{transform:scaleY(-1)}.lni-flip-x{transform:scaleX(-1)}.lni-500px::before{content:"\\ea01"}.lni-adobe::before{content:"\\ea02"}.lni-adonis::before{content:"\\ea03"}.lni-aeroplane-1::before{content:"\\ea04"}.lni-agenda::before{content:"\\ea05"}.lni-airbnb::before{content:"\\ea06"}.lni-airtable::before{content:"\\ea07"}.lni-alarm-1::before{content:"\\ea08"}.lni-align-text-center::before{content:"\\ea09"}.lni-align-text-left::before{content:"\\ea0a"}.lni-align-text-right::before{content:"\\ea0b"}.lni-alpinejs::before{content:"\\ea0c"}.lni-amazon::before{content:"\\ea0d"}.lni-amazon-original::before{content:"\\ea0e"}.lni-amazon-pay::before{content:"\\ea0f"}.lni-ambulance-1::before{content:"\\ea10"}.lni-amd::before{content:"\\ea11"}.lni-amex::before{content:"\\ea12"}.lni-anchor::before{content:"\\ea13"}.lni-android::before{content:"\\ea14"}.lni-android-old::before{content:"\\ea15"}.lni-angellist::before{content:"\\ea16"}.lni-angle-double-down::before{content:"\\ea17"}.lni-angle-double-left::before{content:"\\ea18"}.lni-angle-double-right::before{content:"\\ea19"}.lni-angle-double-up::before{content:"\\ea1a"}.lni-angular::before{content:"\\ea1b"}.lni-app-store::before{content:"\\ea1c"}.lni-apple-brand::before{content:"\\ea1d"}.lni-apple-music::before{content:"\\ea1e"}.lni-apple-music-alt::before{content:"\\ea1f"}.lni-apple-pay::before{content:"\\ea20"}.lni-arc-browser::before{content:"\\ea21"}.lni-arrow-all-direction::before{content:"\\ea22"}.lni-arrow-angular-top-left::before{content:"\\ea23"}.lni-arrow-angular-top-right::before{content:"\\ea24"}.lni-arrow-both-direction-horizontal-1::before{content:"\\ea25"}.lni-arrow-both-direction-vertical-1::before{content:"\\ea26"}.lni-arrow-downward::before{content:"\\ea27"}.lni-arrow-left::before{content:"\\ea28"}.lni-arrow-left-circle::before{content:"\\ea29"}.lni-arrow-right::before{content:"\\ea2a"}.lni-arrow-right-circle::before{content:"\\ea2b"}.lni-arrow-upward::before{content:"\\ea2c"}.lni-asana::before{content:"\\ea2d"}.lni-astro::before{content:"\\ea2e"}.lni-atlassian::before{content:"\\ea2f"}.lni-audi::before{content:"\\ea30"}.lni-audi-alt::before{content:"\\ea31"}.lni-aws::before{content:"\\ea32"}.lni-azure::before{content:"\\ea33"}.lni-badge-decagram-percent::before{content:"\\ea34"}.lni-balloons::before{content:"\\ea35"}.lni-ban-2::before{content:"\\ea36"}.lni-bar-chart-4::before{content:"\\ea37"}.lni-bar-chart-dollar::before{content:"\\ea38"}.lni-basket-shopping-3::before{content:"\\ea39"}.lni-beat::before{content:"\\ea3a"}.lni-behance::before{content:"\\ea3b"}.lni-bell-1::before{content:"\\ea3c"}.lni-bike::before{content:"\\ea3d"}.lni-bing::before{content:"\\ea3e"}.lni-bitbucket::before{content:"\\ea3f"}.lni-bitcoin::before{content:"\\ea40"}.lni-bittorrent::before{content:"\\ea41"}.lni-blogger::before{content:"\\ea42"}.lni-blogger-alt::before{content:"\\ea43"}.lni-bluetooth::before{content:"\\ea44"}.lni-bluetooth-logo::before{content:"\\ea45"}.lni-bmw::before{content:"\\ea46"}.lni-board-writing-3::before{content:"\\ea47"}.lni-bold::before{content:"\\ea48"}.lni-bolt-2::before{content:"\\ea49"}.lni-bolt-3::before{content:"\\ea4a"}.lni-book-1::before{content:"\\ea4b"}.lni-bookmark-1::before{content:"\\ea4c"}.lni-bookmark-circle::before{content:"\\ea4d"}.lni-books-2::before{content:"\\ea4e"}.lni-bootstrap-5::before{content:"\\ea4f"}.lni-bootstrap-5-square::before{content:"\\ea50"}.lni-box-archive-1::before{content:"\\ea51"}.lni-box-closed::before{content:"\\ea52"}.lni-box-gift-1::before{content:"\\ea53"}.lni-brave::before{content:"\\ea54"}.lni-bricks::before{content:"\\ea55"}.lni-bridge-3::before{content:"\\ea56"}.lni-briefcase-1::before{content:"\\ea57"}.lni-briefcase-2::before{content:"\\ea58"}.lni-briefcase-plus-1::before{content:"\\ea59"}.lni-brush-1-rotated::before{content:"\\ea5a"}.lni-brush-2::before{content:"\\ea5b"}.lni-btc::before{content:"\\ea5c"}.lni-bug-1::before{content:"\\ea5d"}.lni-buildings-1::before{content:"\\ea5e"}.lni-bulb-2::before{content:"\\ea5f"}.lni-bulb-4::before{content:"\\ea60"}.lni-burger-1::before{content:"\\ea61"}.lni-burger-drink::before{content:"\\ea62"}.lni-bus-1::before{content:"\\ea63"}.lni-busket-ball::before{content:"\\ea64"}.lni-cake-1::before{content:"\\ea65"}.lni-calculator-1::before{content:"\\ea66"}.lni-calculator-2::before{content:"\\ea67"}.lni-calendar-days::before{content:"\\ea68"}.lni-camera-1::before{content:"\\ea69"}.lni-camera-movie-1::before{content:"\\ea6a"}.lni-candy-cane-2::before{content:"\\ea6b"}.lni-candy-round-1::before{content:"\\ea6c"}.lni-canva::before{content:"\\ea6d"}.lni-capsule-1::before{content:"\\ea6e"}.lni-car-2::before{content:"\\ea6f"}.lni-car-4::before{content:"\\ea70"}.lni-car-6::before{content:"\\ea71"}.lni-caravan-1::before{content:"\\ea72"}.lni-cart-1::before{content:"\\ea73"}.lni-cart-2::before{content:"\\ea74"}.lni-cash-app::before{content:"\\ea75"}.lni-certificate-badge-1::before{content:"\\ea76"}.lni-chat-bubble-2::before{content:"\\ea77"}.lni-check::before{content:"\\ea78"}.lni-check-circle-1::before{content:"\\ea79"}.lni-check-square-2::before{content:"\\ea7a"}.lni-chevron-down::before{content:"\\ea7b"}.lni-chevron-down-circle::before{content:"\\ea7c"}.lni-chevron-left::before{content:"\\ea7d"}.lni-chevron-left-circle::before{content:"\\ea7e"}.lni-chevron-right-circle::before{content:"\\ea7f"}.lni-chevron-up::before{content:"\\ea80"}.lni-chevron-up-circle::before{content:"\\ea81"}.lni-chrome::before{content:"\\ea82"}.lni-chromecast::before{content:"\\ea83"}.lni-cisco::before{content:"\\ea84"}.lni-claude::before{content:"\\ea85"}.lni-clickup::before{content:"\\ea86"}.lni-clipboard::before{content:"\\ea87"}.lni-cloud-2::before{content:"\\ea88"}.lni-cloud-bolt-1::before{content:"\\ea89"}.lni-cloud-bolt-2::before{content:"\\ea8a"}.lni-cloud-check-circle::before{content:"\\ea8b"}.lni-cloud-download::before{content:"\\ea8c"}.lni-cloud-iot-2::before{content:"\\ea8d"}.lni-cloud-rain::before{content:"\\ea8e"}.lni-cloud-refresh-clockwise::before{content:"\\ea8f"}.lni-cloud-sun::before{content:"\\ea90"}.lni-cloud-upload::before{content:"\\ea91"}.lni-cloudflare::before{content:"\\ea92"}.lni-code-1::before{content:"\\ea93"}.lni-code-s::before{content:"\\ea94"}.lni-codepen::before{content:"\\ea95"}.lni-coffee-cup-2::before{content:"\\ea96"}.lni-coinbase::before{content:"\\ea97"}.lni-colour-palette-3::before{content:"\\ea98"}.lni-comment-1::before{content:"\\ea99"}.lni-comment-1-share::before{content:"\\ea9a"}.lni-comment-1-text::before{content:"\\ea9b"}.lni-compass-drafting-2::before{content:"\\ea9c"}.lni-connectdevelop::before{content:"\\ea9d"}.lni-copilot::before{content:"\\ea9e"}.lni-coral::before{content:"\\ea9f"}.lni-cpanel::before{content:"\\eaa0"}.lni-crane-4::before{content:"\\eaa1"}.lni-creative-commons::before{content:"\\eaa2"}.lni-credit-card-multiple::before{content:"\\eaa3"}.lni-crop-2::before{content:"\\eaa4"}.lni-crown-3::before{content:"\\eaa5"}.lni-css3::before{content:"\\eaa6"}.lni-dashboard-square-1::before{content:"\\eaa7"}.lni-database-2::before{content:"\\eaa8"}.lni-deno::before{content:"\\eaa9"}.lni-dev::before{content:"\\eaaa"}.lni-dialogflow::before{content:"\\eaab"}.lni-diamonds-1::before{content:"\\eaac"}.lni-diamonds-2::before{content:"\\eaad"}.lni-digitalocean::before{content:"\\eaae"}.lni-diners-club::before{content:"\\eaaf"}.lni-direction-ltr::before{content:"\\eab0"}.lni-direction-rtl::before{content:"\\eab1"}.lni-discord::before{content:"\\eab2"}.lni-discord-chat::before{content:"\\eab3"}.lni-discover::before{content:"\\eab4"}.lni-docker::before{content:"\\eab5"}.lni-dollar::before{content:"\\eab6"}.lni-dollar-circle::before{content:"\\eab7"}.lni-double-quotes-end-1::before{content:"\\eab8"}.lni-download-1::before{content:"\\eab9"}.lni-download-circle-1::before{content:"\\eaba"}.lni-dribbble::before{content:"\\eabb"}.lni-dribbble-symbol::before{content:"\\eabc"}.lni-drizzle::before{content:"\\eabd"}.lni-dropbox::before{content:"\\eabe"}.lni-drupal::before{content:"\\eabf"}.lni-dumbbell-1::before{content:"\\eac0"}.lni-edge::before{content:"\\eac1"}.lni-emoji-expressionless::before{content:"\\eac2"}.lni-emoji-expressionless-flat-eyes::before{content:"\\eac3"}.lni-emoji-grin::before{content:"\\eac4"}.lni-emoji-sad::before{content:"\\eac5"}.lni-emoji-smile::before{content:"\\eac6"}.lni-emoji-smile-side::before{content:"\\eac7"}.lni-emoji-smile-sunglass::before{content:"\\eac8"}.lni-emoji-smile-tongue::before{content:"\\eac9"}.lni-enter::before{content:"\\eaca"}.lni-enter-down::before{content:"\\eacb"}.lni-envato::before{content:"\\eacc"}.lni-envelope-1::before{content:"\\eacd"}.lni-eraser-1::before{content:"\\eace"}.lni-ethereum-logo::before{content:"\\eacf"}.lni-euro::before{content:"\\ead0"}.lni-exit::before{content:"\\ead1"}.lni-exit-up::before{content:"\\ead2"}.lni-expand-arrow-1::before{content:"\\ead3"}.lni-expand-square-4::before{content:"\\ead4"}.lni-expressjs::before{content:"\\ead5"}.lni-eye::before{content:"\\ead6"}.lni-facebook::before{content:"\\ead7"}.lni-facebook-messenger::before{content:"\\ead8"}.lni-facebook-rounded::before{content:"\\ead9"}.lni-facebook-square::before{content:"\\eada"}.lni-facetime::before{content:"\\eadb"}.lni-figma::before{content:"\\eadc"}.lni-file-format-zip::before{content:"\\eadd"}.lni-file-multiple::before{content:"\\eade"}.lni-file-pencil::before{content:"\\eadf"}.lni-file-plus-circle::before{content:"\\eae0"}.lni-file-question::before{content:"\\eae1"}.lni-file-xmark::before{content:"\\eae2"}.lni-firebase::before{content:"\\eae3"}.lni-firefox::before{content:"\\eae4"}.lni-firework-rocket-4::before{content:"\\eae5"}.lni-fitbit::before{content:"\\eae6"}.lni-flag-1::before{content:"\\eae7"}.lni-flag-2::before{content:"\\eae8"}.lni-flickr::before{content:"\\eae9"}.lni-floppy-disk-1::before{content:"\\eaea"}.lni-flower-2::before{content:"\\eaeb"}.lni-flutter::before{content:"\\eaec"}.lni-folder-1::before{content:"\\eaed"}.lni-ford::before{content:"\\eaee"}.lni-framer::before{content:"\\eaef"}.lni-funnel-1::before{content:"\\eaf0"}.lni-gallery::before{content:"\\eaf1"}.lni-game-pad-modern-1::before{content:"\\eaf2"}.lni-gatsby::before{content:"\\eaf3"}.lni-gauge-1::before{content:"\\eaf4"}.lni-gear-1::before{content:"\\eaf5"}.lni-gears-3::before{content:"\\eaf6"}.lni-gemini::before{content:"\\eaf7"}.lni-git::before{content:"\\eaf8"}.lni-github::before{content:"\\eaf9"}.lni-glass-juice-1::before{content:"\\eafa"}.lni-globe-1::before{content:"\\eafb"}.lni-globe-stand::before{content:"\\eafc"}.lni-go::before{content:"\\eafd"}.lni-goodreads::before{content:"\\eafe"}.lni-google::before{content:"\\eaff"}.lni-google-cloud::before{content:"\\eb00"}.lni-google-drive::before{content:"\\eb01"}.lni-google-meet::before{content:"\\eb02"}.lni-google-pay::before{content:"\\eb03"}.lni-google-wallet::before{content:"\\eb04"}.lni-graduation-cap-1::before{content:"\\eb05"}.lni-grammarly::before{content:"\\eb06"}.lni-hacker-news::before{content:"\\eb07"}.lni-hammer-1::before{content:"\\eb08"}.lni-hammer-2::before{content:"\\eb09"}.lni-hand-mic::before{content:"\\eb0a"}.lni-hand-shake::before{content:"\\eb0b"}.lni-hand-stop::before{content:"\\eb0c"}.lni-hand-taking-dollar::before{content:"\\eb0d"}.lni-hand-taking-leaf-1::before{content:"\\eb0e"}.lni-hand-taking-user::before{content:"\\eb0f"}.lni-hashnode::before{content:"\\eb10"}.lni-hat-chef-3::before{content:"\\eb11"}.lni-headphone-1::before{content:"\\eb12"}.lni-heart::before{content:"\\eb13"}.lni-helicopter-2::before{content:"\\eb14"}.lni-helmet-safety-1::before{content:"\\eb15"}.lni-hierarchy-1::before{content:"\\eb16"}.lni-highlighter-1::before{content:"\\eb17"}.lni-highlighter-2::before{content:"\\eb18"}.lni-home-2::before{content:"\\eb19"}.lni-hospital-2::before{content:"\\eb1a"}.lni-hourglass::before{content:"\\eb1b"}.lni-html5::before{content:"\\eb1c"}.lni-ibm::before{content:"\\eb1d"}.lni-id-card::before{content:"\\eb1e"}.lni-imdb::before{content:"\\eb1f"}.lni-indent::before{content:"\\eb20"}.lni-info::before{content:"\\eb21"}.lni-injection-1::before{content:"\\eb22"}.lni-instagram::before{content:"\\eb23"}.lni-instagram-logotype::before{content:"\\eb24"}.lni-intel::before{content:"\\eb25"}.lni-ios::before{content:"\\eb26"}.lni-island-2::before{content:"\\eb27"}.lni-jaguar::before{content:"\\eb28"}.lni-jamstack::before{content:"\\eb29"}.lni-java::before{content:"\\eb2a"}.lni-javascript::before{content:"\\eb2b"}.lni-jcb::before{content:"\\eb2c"}.lni-joomla::before{content:"\\eb2d"}.lni-jsfiddle::before{content:"\\eb2e"}.lni-key-1::before{content:"\\eb2f"}.lni-keyboard::before{content:"\\eb30"}.lni-knife-fork-1::before{content:"\\eb31"}.lni-kubernetes::before{content:"\\eb32"}.lni-label-dollar-2::before{content:"\\eb33"}.lni-laptop-2::before{content:"\\eb34"}.lni-laptop-phone::before{content:"\\eb35"}.lni-laravel::before{content:"\\eb36"}.lni-layers-1::before{content:"\\eb37"}.lni-layout-26::before{content:"\\eb38"}.lni-layout-9::before{content:"\\eb39"}.lni-leaf-1::before{content:"\\eb3a"}.lni-leaf-6::before{content:"\\eb3b"}.lni-lemon-squeezy::before{content:"\\eb3c"}.lni-life-guard-tube-1::before{content:"\\eb3d"}.lni-line::before{content:"\\eb3e"}.lni-line-dashed::before{content:"\\eb3f"}.lni-line-dotted::before{content:"\\eb40"}.lni-line-height::before{content:"\\eb41"}.lni-lineicons::before{content:"\\eb42"}.lni-link-2-angular-right::before{content:"\\eb43"}.lni-linkedin::before{content:"\\eb44"}.lni-location-arrow-right::before{content:"\\eb45"}.lni-locked-1::before{content:"\\eb46"}.lni-locked-2::before{content:"\\eb47"}.lni-loom::before{content:"\\eb48"}.lni-magento::before{content:"\\eb49"}.lni-magnet::before{content:"\\eb4a"}.lni-mailchimp::before{content:"\\eb4b"}.lni-map-marker-1::before{content:"\\eb4c"}.lni-map-marker-5::before{content:"\\eb4d"}.lni-map-pin-5::before{content:"\\eb4e"}.lni-markdown::before{content:"\\eb4f"}.lni-mastercard::before{content:"\\eb50"}.lni-medium::before{content:"\\eb51"}.lni-medium-alt::before{content:"\\eb52"}.lni-megaphone-1::before{content:"\\eb53"}.lni-menu-cheesburger::before{content:"\\eb54"}.lni-menu-hamburger-1::before{content:"\\eb55"}.lni-menu-meatballs-1::before{content:"\\eb56"}.lni-menu-meatballs-2::before{content:"\\eb57"}.lni-mercedes::before{content:"\\eb58"}.lni-message-2::before{content:"\\eb59"}.lni-message-2-question::before{content:"\\eb5a"}.lni-message-3-text::before{content:"\\eb5b"}.lni-meta::before{content:"\\eb5c"}.lni-meta-alt::before{content:"\\eb5d"}.lni-microphone-1::before{content:"\\eb5e"}.lni-microscope::before{content:"\\eb5f"}.lni-microsoft::before{content:"\\eb60"}.lni-microsoft-edge::before{content:"\\eb61"}.lni-microsoft-teams::before{content:"\\eb62"}.lni-minus::before{content:"\\eb63"}.lni-minus-circle::before{content:"\\eb64"}.lni-mongodb::before{content:"\\eb65"}.lni-monitor::before{content:"\\eb66"}.lni-monitor-code::before{content:"\\eb67"}.lni-monitor-mac::before{content:"\\eb68"}.lni-moon-half-right-5::before{content:"\\eb69"}.lni-mountains-2::before{content:"\\eb6a"}.lni-mouse-2::before{content:"\\eb6b"}.lni-mushroom-1::before{content:"\\eb6c"}.lni-mushroom-5::before{content:"\\eb6d"}.lni-music::before{content:"\\eb6e"}.lni-mysql::before{content:"\\eb6f"}.lni-nasa::before{content:"\\eb70"}.lni-netflix::before{content:"\\eb71"}.lni-netlify::before{content:"\\eb72"}.lni-next-step-2::before{content:"\\eb73"}.lni-nextjs::before{content:"\\eb74"}.lni-nike::before{content:"\\eb75"}.lni-nissan::before{content:"\\eb76"}.lni-nodejs::before{content:"\\eb77"}.lni-nodejs-alt::before{content:"\\eb78"}.lni-notebook-1::before{content:"\\eb79"}.lni-notion::before{content:"\\eb7a"}.lni-npm::before{content:"\\eb7b"}.lni-nuxt::before{content:"\\eb7c"}.lni-nvidia::before{content:"\\eb7d"}.lni-oculus::before{content:"\\eb7e"}.lni-open-ai::before{content:"\\eb7f"}.lni-opera-mini::before{content:"\\eb80"}.lni-oracle::before{content:"\\eb81"}.lni-outdent::before{content:"\\eb82"}.lni-paddle::before{content:"\\eb83"}.lni-page-break-1::before{content:"\\eb84"}.lni-pagination::before{content:"\\eb85"}.lni-paint-bucket::before{content:"\\eb86"}.lni-paint-roller-1::before{content:"\\eb87"}.lni-paperclip-1::before{content:"\\eb88"}.lni-party-flags::before{content:"\\eb89"}.lni-party-spray::before{content:"\\eb8a"}.lni-patreon::before{content:"\\eb8b"}.lni-pause::before{content:"\\eb8c"}.lni-payoneer::before{content:"\\eb8d"}.lni-paypal::before{content:"\\eb8e"}.lni-pen-to-square::before{content:"\\eb8f"}.lni-pencil-1::before{content:"\\eb90"}.lni-pepsi::before{content:"\\eb91"}.lni-phone::before{content:"\\eb92"}.lni-photos::before{content:"\\eb93"}.lni-php::before{content:"\\eb94"}.lni-pie-chart-2::before{content:"\\eb95"}.lni-pilcrow::before{content:"\\eb96"}.lni-pimjo-logo::before{content:"\\eb97"}.lni-pimjo-symbol::before{content:"\\eb98"}.lni-pinterest::before{content:"\\eb99"}.lni-pizza-2::before{content:"\\eb9a"}.lni-placeholder-dollar::before{content:"\\eb9b"}.lni-plantscale::before{content:"\\eb9c"}.lni-play::before{content:"\\eb9d"}.lni-play-store::before{content:"\\eb9e"}.lni-playstation::before{content:"\\eb9f"}.lni-plug-1::before{content:"\\eba0"}.lni-plus::before{content:"\\eba1"}.lni-plus-circle::before{content:"\\eba2"}.lni-pnpm::before{content:"\\eba3"}.lni-postgresql::before{content:"\\eba4"}.lni-postman::before{content:"\\eba5"}.lni-pound::before{content:"\\eba6"}.lni-power-button::before{content:"\\eba7"}.lni-previous-step-2::before{content:"\\eba8"}.lni-printer::before{content:"\\eba9"}.lni-prisma::before{content:"\\ebaa"}.lni-producthunt::before{content:"\\ebab"}.lni-proton-mail-logo::before{content:"\\ebac"}.lni-proton-mail-symbol::before{content:"\\ebad"}.lni-python::before{content:"\\ebae"}.lni-question-mark::before{content:"\\ebaf"}.lni-question-mark-circle::before{content:"\\ebb0"}.lni-quora::before{content:"\\ebb1"}.lni-radis::before{content:"\\ebb2"}.lni-react::before{content:"\\ebb3"}.lni-reddit::before{content:"\\ebb4"}.lni-refresh-circle-1-clockwise::before{content:"\\ebb5"}.lni-refresh-dollar-1::before{content:"\\ebb6"}.lni-refresh-user-1::before{content:"\\ebb7"}.lni-remix-js::before{content:"\\ebb8"}.lni-road-1::before{content:"\\ebb9"}.lni-rocket-5::before{content:"\\ebba"}.lni-route-1::before{content:"\\ebbb"}.lni-rss-right::before{content:"\\ebbc"}.lni-ruler-1::before{content:"\\ebbd"}.lni-ruler-pen::before{content:"\\ebbe"}.lni-rupee::before{content:"\\ebbf"}.lni-safari::before{content:"\\ebc0"}.lni-sanity::before{content:"\\ebc1"}.lni-school-bench-1::before{content:"\\ebc2"}.lni-school-bench-2::before{content:"\\ebc3"}.lni-scissors-1-vertical::before{content:"\\ebc4"}.lni-scoter::before{content:"\\ebc5"}.lni-scroll-down-2::before{content:"\\ebc6"}.lni-search-1::before{content:"\\ebc7"}.lni-search-2::before{content:"\\ebc8"}.lni-search-minus::before{content:"\\ebc9"}.lni-search-plus::before{content:"\\ebca"}.lni-search-text::before{content:"\\ebcb"}.lni-select-cursor-1::before{content:"\\ebcc"}.lni-seo-monitor::before{content:"\\ebcd"}.lni-service-bell-1::before{content:"\\ebce"}.lni-share-1::before{content:"\\ebcf"}.lni-share-1-circle::before{content:"\\ebd0"}.lni-share-2::before{content:"\\ebd1"}.lni-shield-2::before{content:"\\ebd2"}.lni-shield-2-check::before{content:"\\ebd3"}.lni-shield-dollar::before{content:"\\ebd4"}.lni-shift-left::before{content:"\\ebd5"}.lni-shift-right::before{content:"\\ebd6"}.lni-ship-1::before{content:"\\ebd7"}.lni-shirt-1::before{content:"\\ebd8"}.lni-shopify::before{content:"\\ebd9"}.lni-shovel::before{content:"\\ebda"}.lni-shuffle::before{content:"\\ebdb"}.lni-sign-post-left::before{content:"\\ebdc"}.lni-signal-app::before{content:"\\ebdd"}.lni-signs-post-2::before{content:"\\ebde"}.lni-sketch::before{content:"\\ebdf"}.lni-skype::before{content:"\\ebe0"}.lni-slack::before{content:"\\ebe1"}.lni-slice-2::before{content:"\\ebe2"}.lni-sliders-horizontal-square-2::before{content:"\\ebe3"}.lni-slideshare::before{content:"\\ebe4"}.lni-snapchat::before{content:"\\ebe5"}.lni-sort-alphabetical::before{content:"\\ebe6"}.lni-sort-high-to-low::before{content:"\\ebe7"}.lni-soundcloud::before{content:"\\ebe8"}.lni-spacex::before{content:"\\ebe9"}.lni-spellcheck::before{content:"\\ebea"}.lni-spinner-2-sacle::before{content:"\\ebeb"}.lni-spinner-3::before{content:"\\ebec"}.lni-sports::before{content:"\\ebed"}.lni-spotify::before{content:"\\ebee"}.lni-spotify-alt::before{content:"\\ebef"}.lni-squarespace::before{content:"\\ebf0"}.lni-stackoverflow::before{content:"\\ebf1"}.lni-stamp::before{content:"\\ebf2"}.lni-star-fat::before{content:"\\ebf3"}.lni-star-fat-half-2::before{content:"\\ebf4"}.lni-star-sharp-disabled::before{content:"\\ebf5"}.lni-statista::before{content:"\\ebf6"}.lni-steam::before{content:"\\ebf7"}.lni-stethoscope-1::before{content:"\\ebf8"}.lni-stopwatch::before{content:"\\ebf9"}.lni-storage-hdd-2::before{content:"\\ebfa"}.lni-strikethrough-1::before{content:"\\ebfb"}.lni-stripe::before{content:"\\ebfc"}.lni-stumbleupon::before{content:"\\ebfd"}.lni-sun-1::before{content:"\\ebfe"}.lni-supabase::before{content:"\\ebff"}.lni-surfboard-2::before{content:"\\ec00"}.lni-svelte::before{content:"\\ec01"}.lni-swift::before{content:"\\ec02"}.lni-tab::before{content:"\\ec03"}.lni-tailwindcss::before{content:"\\ec04"}.lni-target-user::before{content:"\\ec05"}.lni-telegram::before{content:"\\ec06"}.lni-telephone-1::before{content:"\\ec07"}.lni-telephone-3::before{content:"\\ec08"}.lni-tesla::before{content:"\\ec09"}.lni-text-format::before{content:"\\ec0a"}.lni-text-format-remove::before{content:"\\ec0b"}.lni-text-paragraph::before{content:"\\ec0c"}.lni-thumbs-down-3::before{content:"\\ec0d"}.lni-thumbs-up-3::before{content:"\\ec0e"}.lni-ticket-1::before{content:"\\ec0f"}.lni-tickets-3::before{content:"\\ec10"}.lni-tiktok::before{content:"\\ec11"}.lni-tiktok-alt::before{content:"\\ec12"}.lni-tower-broadcast-1::before{content:"\\ec13"}.lni-toyota::before{content:"\\ec14"}.lni-train-1::before{content:"\\ec15"}.lni-train-3::before{content:"\\ec16"}.lni-trash-3::before{content:"\\ec17"}.lni-tree-2::before{content:"\\ec18"}.lni-trees-3::before{content:"\\ec19"}.lni-trello::before{content:"\\ec1a"}.lni-trend-down-1::before{content:"\\ec1b"}.lni-trend-up-1::before{content:"\\ec1c"}.lni-trophy-1::before{content:"\\ec1d"}.lni-trowel-1::before{content:"\\ec1e"}.lni-truck-delivery-1::before{content:"\\ec1f"}.lni-tumblr::before{content:"\\ec20"}.lni-turborepo::before{content:"\\ec21"}.lni-twitch::before{content:"\\ec22"}.lni-twitter-old::before{content:"\\ec23"}.lni-typescript::before{content:"\\ec24"}.lni-uber::before{content:"\\ec25"}.lni-uber-symbol::before{content:"\\ec26"}.lni-ubuntu::before{content:"\\ec27"}.lni-underline::before{content:"\\ec28"}.lni-unlink-2-angular-eft::before{content:"\\ec29"}.lni-unlocked-2::before{content:"\\ec2a"}.lni-unsplash::before{content:"\\ec2b"}.lni-upload-1::before{content:"\\ec2c"}.lni-upload-circle-1::before{content:"\\ec2d"}.lni-user-4::before{content:"\\ec2e"}.lni-user-multiple-4::before{content:"\\ec2f"}.lni-vector-nodes-6::before{content:"\\ec30"}.lni-vector-nodes-7::before{content:"\\ec31"}.lni-vercel::before{content:"\\ec32"}.lni-vimeo::before{content:"\\ec33"}.lni-visa::before{content:"\\ec34"}.lni-vite::before{content:"\\ec35"}.lni-vk::before{content:"\\ec36"}.lni-vmware::before{content:"\\ec37"}.lni-volkswagen::before{content:"\\ec38"}.lni-volume-1::before{content:"\\ec39"}.lni-volume-high::before{content:"\\ec3a"}.lni-volume-low::before{content:"\\ec3b"}.lni-volume-mute::before{content:"\\ec3c"}.lni-volume-off::before{content:"\\ec3d"}.lni-vs-code::before{content:"\\ec3e"}.lni-vuejs::before{content:"\\ec3f"}.lni-wallet-1::before{content:"\\ec40"}.lni-watch-beat-1::before{content:"\\ec41"}.lni-water-drop-1::before{content:"\\ec42"}.lni-webflow::before{content:"\\ec43"}.lni-webhooks::before{content:"\\ec44"}.lni-wechat::before{content:"\\ec45"}.lni-weight-machine-1::before{content:"\\ec46"}.lni-whatsapp::before{content:"\\ec47"}.lni-wheelbarrow-empty::before{content:"\\ec48"}.lni-wheelchair-1::before{content:"\\ec49"}.lni-windows::before{content:"\\ec4a"}.lni-wise::before{content:"\\ec4b"}.lni-wordpress::before{content:"\\ec4c"}.lni-www::before{content:"\\ec4d"}.lni-www-cursor::before{content:"\\ec4e"}.lni-x::before{content:"\\ec4f"}.lni-xampp::before{content:"\\ec50"}.lni-xbox::before{content:"\\ec51"}.lni-xmark::before{content:"\\ec52"}.lni-xmark-circle::before{content:"\\ec53"}.lni-xrp::before{content:"\\ec54"}.lni-yahoo::before{content:"\\ec55"}.lni-yarn::before{content:"\\ec56"}.lni-ycombinator::before{content:"\\ec57"}.lni-yen::before{content:"\\ec58"}.lni-youtube::before{content:"\\ec59"}.lni-youtube-kids::before{content:"\\ec5a"}.lni-youtube-music::before{content:"\\ec5b"}.lni-zapier::before{content:"\\ec5c"}.lni-zero-size::before{content:"\\ec5d"}.lni-zoom::before{content:"\\ec5e"}:host{display:inline-block;box-sizing:content-box !important;--icon-size:24px;--icon-color:inherit}:host([split-pane-focus]) .icon-wrapper{cursor:pointer}.icon-wrapper{-webkit-user-select:none;-moz-user-select:none;user-select:none;font-family:sans-serif;overflow:hidden;margin:0;padding:0;display:flex;align-items:center;justify-content:center;flex-shrink:0;width:100%;height:100%}.icon{width:var(--icon-size);height:var(--icon-size);color:var(--icon-color);overflow:hidden;line-height:1}.icon i{font-size:var(--icon-size) !important}.icon--default{--icon-color:rgb(var(--zn-text))}.icon--primary{--icon-color:rgb(var(--zn-primary))}.icon--accent{--icon-color:rgb(var(--zn-accent))}.icon--info{--icon-color:rgb(var(--zn-color-info))}.icon--warning{--icon-color:rgb(var(--zn-color-warning))}.icon--error{--icon-color:rgb(var(--zn-color-error))}.icon--success{--icon-color:rgb(var(--zn-color-success))}.icon--white{--icon-color:rgb(var(--zn-body))}.icon--disabled{--icon-color:rgb(var(--zn-color-disabled))}.icon--red{--icon-color:rgb(var(--zn-red))}.icon--blue{--icon-color:rgb(var(--zn-blue))}.icon--green{--icon-color:rgb(var(--zn-green))}.icon--orange{--icon-color:rgb(var(--zn-orange))}.icon--yellow{--icon-color:rgb(var(--zn-yellow))}.icon--indigo{--icon-color:rgb(var(--zn-indigo))}.icon--violet{--icon-color:rgb(var(--zn-violet))}.icon--pink{--icon-color:rgb(var(--zn-pink))}.icon--grey{--icon-color:rgb(var(--zn-grey))}.icon--filled .lucide{fill:var(--icon-fill,currentColor)}.icon--fill-default{--icon-fill:rgb(var(--zn-text))}.icon--fill-primary{--icon-fill:rgb(var(--zn-primary))}.icon--fill-accent{--icon-fill:rgb(var(--zn-accent))}.icon--fill-info{--icon-fill:rgb(var(--zn-color-info))}.icon--fill-warning{--icon-fill:rgb(var(--zn-color-warning))}.icon--fill-error{--icon-fill:rgb(var(--zn-color-error))}.icon--fill-success{--icon-fill:rgb(var(--zn-color-success))}.icon--fill-white{--icon-fill:rgb(var(--zn-body))}.icon--fill-disabled{--icon-fill:rgb(var(--zn-color-disabled))}.icon--fill-red{--icon-fill:rgb(var(--zn-red))}.icon--fill-blue{--icon-fill:rgb(var(--zn-blue))}.icon--fill-green{--icon-fill:rgb(var(--zn-green))}.icon--fill-orange{--icon-fill:rgb(var(--zn-orange))}.icon--fill-yellow{--icon-fill:rgb(var(--zn-yellow))}.icon--fill-indigo{--icon-fill:rgb(var(--zn-indigo))}.icon--fill-violet{--icon-fill:rgb(var(--zn-violet))}.icon--fill-pink{--icon-fill:rgb(var(--zn-pink))}.icon--fill-grey{--icon-fill:rgb(var(--zn-grey))}.icon--round{border-radius:50%}.icon--tile{border-radius:20%}.icon--depth{position:relative}.icon--depth:before,.icon--depth:after{content:"";position:absolute;inset:0;border-radius:inherit}.icon--depth:before{box-shadow:inset -2px -2px 1px rgba(0,0,0,0.1)}.icon--depth:after{box-shadow:inset 2px 2px 1px rgba(255,255,255,0.2)}.icon--blink{animation:blink-animation 1.5s steps(5,start) infinite}.icon--avatar{background-color:var(--avatar-color,var(--icon-color));color:hsl(from var(--avatar-color,var(--icon-color)) h s 95);display:flex;justify-content:center;align-items:center}.icon--avatar .avatar__text{font-size:calc(var(--icon-size) / 2.4);color:hsl(from var(--avatar-color,var(--icon-color)) h s 95);font-weight:var(--zn-font-weight-semibold)}.icon--padded{padding:var(--zn-spacing-small)}.icon--squared{width:auto !important;height:auto !important;aspect-ratio:1/1;display:block}.icon .mi{font-family:"Material Icons";font-size:inherit;font-weight:300;font-style:normal;line-height:1;letter-spacing:normal;text-transform:none;display:inline-block;white-space:nowrap;word-wrap:normal;direction:ltr;-webkit-font-feature-settings:"liga";-webkit-font-smoothing:antialiased;font-variation-settings:"FILL" 0,"wght" 300,"GRAD" 0,"opsz" 24}.icon .mi--outlined{font-family:"Material Icons Outlined"}.icon .mi--round{font-family:"Material Icons Round"}.icon .mi--sharp{font-family:"Material Icons Sharp"}.icon .mi--two-tone{font-family:"Material Icons Two Tone"}.icon .mi--symbol-outlined{font-family:"Material Symbols Outlined"}.icon .kb{font-family:"Kubex Icons Brands";font-style:normal;font-weight:normal !important;font-variant:normal;text-transform:none;line-height:1;-webkit-font-smoothing:antialiased}.icon .lucide{display:block;width:100%;height:100%;color:currentColor;stroke:currentColor}.icon img{max-width:100%;vertical-align:middle}@keyframes blink-animation{0%,100%{opacity:1}50%{opacity:0.5}}`;var ls,qu;function Ev(){return qu??(qu=import("./chunks/zn.ESPCJQBM.js").then(o=>{ls=o.icons}).catch(o=>{qu=void 0,console.warn("<zn-icon> failed to load the lucide icon chunk",o)})),qu}var mr=class mr extends S{constructor(){super(...arguments);this.size=24;this.round=!1;this.tile=!1;this.depth=!1;this.padded=!1;this.blink=!1;this.squared=!1;this.gravatarOptions="";this.defaultLibrary="material-symbols-outlined";this.libraryAutoSet=!1}isPresetColor(t){return mr.presetColors.has(t)}convertToLibrary(t){return this.convertIndicatorToLibrary(t)??this.defaultLibrary}convertIndicatorToLibrary(t){switch(t){case"material":case"mat":case"m":return"material";case"material-outlined":case"mo":return"material-outlined";case"material-round":case"mr":return"material-round";case"material-sharp":case"ms":return"material-sharp";case"material-two-tone":case"mt":case"m2":return"material-two-tone";case"material-symbols-outlined":case"mso":return"material-symbols-outlined";case"gravatar":case"grav":return"gravatar";case"libravatar":return"libravatar";case"avatar":case"av":return"avatar";case"line":return"line";case"lucide":case"lu":return"lucide";case"brand":case"brands":return"brands"}}connectedCallback(){super.connectedCallback(),es(u`
38
+ `}};Ct.styles=_(zv),c([B(".dropdown")],Ct.prototype,"popup",2),c([B(".dropdown__trigger")],Ct.prototype,"trigger",2),c([B(".dropdown__panel")],Ct.prototype,"panel",2),c([p({type:Boolean,reflect:!0})],Ct.prototype,"open",2),c([p({reflect:!0})],Ct.prototype,"placement",2),c([p({type:Boolean,reflect:!0})],Ct.prototype,"disabled",2),c([p({attribute:"stay-open-on-select",type:Boolean,reflect:!0})],Ct.prototype,"stayOpenOnSelect",2),c([p({attribute:!1})],Ct.prototype,"containingElement",2),c([p({type:Number})],Ct.prototype,"distance",2),c([p({type:Number})],Ct.prototype,"skidding",2),c([p({type:Boolean})],Ct.prototype,"hoist",2),c([p({reflect:!0})],Ct.prototype,"sync",2),c([p()],Ct.prototype,"uri",2),c([p({type:String})],Ct.prototype,"fetchedContent",2),c([W("open",{waitUntilFirstUpdate:!0})],Ct.prototype,"handleOpenChange",1);var hr=Ct;Ct.define("zn-dropdown");var _v=(o,i,t)=>{for(let r of i)if(r[0]===o)return(0,r[1])();return t?.()};function kv(o){function i(b,g){return b>>>g|b<<32-g}function t(b){b=b.replace(/\r\n/g,`
39
+ `);let g="";for(let v=0;v<b.length;v++){let y=b.charCodeAt(v);y<128?g+=String.fromCharCode(y):y<2048?(g+=String.fromCharCode(y>>6|192),g+=String.fromCharCode(y&63|128)):(g+=String.fromCharCode(y>>12|224),g+=String.fromCharCode(y>>6&63|128),g+=String.fromCharCode(y&63|128))}return g}let r=Math.pow,n=r(2,32),a=[],s=[],l=[],d={},h=0,m=t(o),f=m.length*8;for(let b=2;h<64;b++)if(!d[b]){for(let g=0;g<313;g+=b)d[g]=!0;h<8&&(s[h]=r(b,.5)*n|0),l[h]=r(b,1/3)*n|0,h++}for(m+="\x80";m.length%64!==56;)m+="\0";for(let b=0;b<m.length;b++)a[b>>2]|=m.charCodeAt(b)<<(3-b%4)*8;a[a.length]=f/n|0,a[a.length]=f;for(let b=0;b<a.length;b+=16){let g=s.slice(0,8),v=a.slice(b,b+16);for(let y=16;y<64;y++){let z=v[y-15],E=v[y-2],N=i(z,7)^i(z,18)^z>>>3,U=i(E,17)^i(E,19)^E>>>10;v[y]=v[y-16]+N+v[y-7]+U|0}for(let y=0;y<64;y++){let z=g[0],E=g[1],N=g[2],U=g[3],R=g[4],C=g[5],$=g[6],L=g[7],K=i(R,6)^i(R,11)^i(R,25),ne=R&C^~R&$,we=L+K+ne+l[y]+v[y]|0,De=i(z,2)^i(z,13)^i(z,22),Pe=z&E^z&N^E&N,at=De+Pe|0;g[7]=$,g[6]=C,g[5]=R,g[4]=U+we|0,g[3]=N,g[2]=E,g[1]=z,g[0]=we+at|0}for(let y=0;y<8;y++)s[y]=s[y]+g[y]|0}return s.map(b=>(b>>>0).toString(16).padStart(8,"0")).join("")}var Rl=class extends ga{};Rl.directiveName="unsafeSVG",Rl.resultType=2;var Sv=yt(Rl);var Cv=k`@keyframes rotate-gradient{from{--rotate:0deg}to{--rotate:360deg}}:host{text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-transform:none}*,*::before,*::after{box-sizing:border-box;border-width:0;border-style:solid;border-color:rgb(var(--zn-border-color))}[hidden]{display:none !important}.width-container,.form-container,.wide-form-container{height:100%;width:100%;margin:var(--zn-default-margin,0 auto)}.width-container{max-width:var(--zn-container)}.form-container{max-width:var(--zn-container-ph)}.wide-form-container{max-width:var(--zn-container-lg)}.lni{display:inline-block;font:normal normal normal 1em/1 "Lineicons";color:inherit;flex-shrink:0;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.lni-sm{font-size:0.8em}.lni-lg{font-size:1.2em}.lni-16{font-size:16px}.lni-32{font-size:32px}.lni-is-spinning{animation:lni-spin 1s infinite linear}@keyframes lni-spin{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}.lni-rotate-90{transform:rotate(90deg)}.lni-rotate-180{transform:rotate(180deg)}.lni-rotate-270{transform:rotate(270deg)}.lni-flip-y{transform:scaleY(-1)}.lni-flip-x{transform:scaleX(-1)}.lni-500px::before{content:"\\ea01"}.lni-adobe::before{content:"\\ea02"}.lni-adonis::before{content:"\\ea03"}.lni-aeroplane-1::before{content:"\\ea04"}.lni-agenda::before{content:"\\ea05"}.lni-airbnb::before{content:"\\ea06"}.lni-airtable::before{content:"\\ea07"}.lni-alarm-1::before{content:"\\ea08"}.lni-align-text-center::before{content:"\\ea09"}.lni-align-text-left::before{content:"\\ea0a"}.lni-align-text-right::before{content:"\\ea0b"}.lni-alpinejs::before{content:"\\ea0c"}.lni-amazon::before{content:"\\ea0d"}.lni-amazon-original::before{content:"\\ea0e"}.lni-amazon-pay::before{content:"\\ea0f"}.lni-ambulance-1::before{content:"\\ea10"}.lni-amd::before{content:"\\ea11"}.lni-amex::before{content:"\\ea12"}.lni-anchor::before{content:"\\ea13"}.lni-android::before{content:"\\ea14"}.lni-android-old::before{content:"\\ea15"}.lni-angellist::before{content:"\\ea16"}.lni-angle-double-down::before{content:"\\ea17"}.lni-angle-double-left::before{content:"\\ea18"}.lni-angle-double-right::before{content:"\\ea19"}.lni-angle-double-up::before{content:"\\ea1a"}.lni-angular::before{content:"\\ea1b"}.lni-app-store::before{content:"\\ea1c"}.lni-apple-brand::before{content:"\\ea1d"}.lni-apple-music::before{content:"\\ea1e"}.lni-apple-music-alt::before{content:"\\ea1f"}.lni-apple-pay::before{content:"\\ea20"}.lni-arc-browser::before{content:"\\ea21"}.lni-arrow-all-direction::before{content:"\\ea22"}.lni-arrow-angular-top-left::before{content:"\\ea23"}.lni-arrow-angular-top-right::before{content:"\\ea24"}.lni-arrow-both-direction-horizontal-1::before{content:"\\ea25"}.lni-arrow-both-direction-vertical-1::before{content:"\\ea26"}.lni-arrow-downward::before{content:"\\ea27"}.lni-arrow-left::before{content:"\\ea28"}.lni-arrow-left-circle::before{content:"\\ea29"}.lni-arrow-right::before{content:"\\ea2a"}.lni-arrow-right-circle::before{content:"\\ea2b"}.lni-arrow-upward::before{content:"\\ea2c"}.lni-asana::before{content:"\\ea2d"}.lni-astro::before{content:"\\ea2e"}.lni-atlassian::before{content:"\\ea2f"}.lni-audi::before{content:"\\ea30"}.lni-audi-alt::before{content:"\\ea31"}.lni-aws::before{content:"\\ea32"}.lni-azure::before{content:"\\ea33"}.lni-badge-decagram-percent::before{content:"\\ea34"}.lni-balloons::before{content:"\\ea35"}.lni-ban-2::before{content:"\\ea36"}.lni-bar-chart-4::before{content:"\\ea37"}.lni-bar-chart-dollar::before{content:"\\ea38"}.lni-basket-shopping-3::before{content:"\\ea39"}.lni-beat::before{content:"\\ea3a"}.lni-behance::before{content:"\\ea3b"}.lni-bell-1::before{content:"\\ea3c"}.lni-bike::before{content:"\\ea3d"}.lni-bing::before{content:"\\ea3e"}.lni-bitbucket::before{content:"\\ea3f"}.lni-bitcoin::before{content:"\\ea40"}.lni-bittorrent::before{content:"\\ea41"}.lni-blogger::before{content:"\\ea42"}.lni-blogger-alt::before{content:"\\ea43"}.lni-bluetooth::before{content:"\\ea44"}.lni-bluetooth-logo::before{content:"\\ea45"}.lni-bmw::before{content:"\\ea46"}.lni-board-writing-3::before{content:"\\ea47"}.lni-bold::before{content:"\\ea48"}.lni-bolt-2::before{content:"\\ea49"}.lni-bolt-3::before{content:"\\ea4a"}.lni-book-1::before{content:"\\ea4b"}.lni-bookmark-1::before{content:"\\ea4c"}.lni-bookmark-circle::before{content:"\\ea4d"}.lni-books-2::before{content:"\\ea4e"}.lni-bootstrap-5::before{content:"\\ea4f"}.lni-bootstrap-5-square::before{content:"\\ea50"}.lni-box-archive-1::before{content:"\\ea51"}.lni-box-closed::before{content:"\\ea52"}.lni-box-gift-1::before{content:"\\ea53"}.lni-brave::before{content:"\\ea54"}.lni-bricks::before{content:"\\ea55"}.lni-bridge-3::before{content:"\\ea56"}.lni-briefcase-1::before{content:"\\ea57"}.lni-briefcase-2::before{content:"\\ea58"}.lni-briefcase-plus-1::before{content:"\\ea59"}.lni-brush-1-rotated::before{content:"\\ea5a"}.lni-brush-2::before{content:"\\ea5b"}.lni-btc::before{content:"\\ea5c"}.lni-bug-1::before{content:"\\ea5d"}.lni-buildings-1::before{content:"\\ea5e"}.lni-bulb-2::before{content:"\\ea5f"}.lni-bulb-4::before{content:"\\ea60"}.lni-burger-1::before{content:"\\ea61"}.lni-burger-drink::before{content:"\\ea62"}.lni-bus-1::before{content:"\\ea63"}.lni-busket-ball::before{content:"\\ea64"}.lni-cake-1::before{content:"\\ea65"}.lni-calculator-1::before{content:"\\ea66"}.lni-calculator-2::before{content:"\\ea67"}.lni-calendar-days::before{content:"\\ea68"}.lni-camera-1::before{content:"\\ea69"}.lni-camera-movie-1::before{content:"\\ea6a"}.lni-candy-cane-2::before{content:"\\ea6b"}.lni-candy-round-1::before{content:"\\ea6c"}.lni-canva::before{content:"\\ea6d"}.lni-capsule-1::before{content:"\\ea6e"}.lni-car-2::before{content:"\\ea6f"}.lni-car-4::before{content:"\\ea70"}.lni-car-6::before{content:"\\ea71"}.lni-caravan-1::before{content:"\\ea72"}.lni-cart-1::before{content:"\\ea73"}.lni-cart-2::before{content:"\\ea74"}.lni-cash-app::before{content:"\\ea75"}.lni-certificate-badge-1::before{content:"\\ea76"}.lni-chat-bubble-2::before{content:"\\ea77"}.lni-check::before{content:"\\ea78"}.lni-check-circle-1::before{content:"\\ea79"}.lni-check-square-2::before{content:"\\ea7a"}.lni-chevron-down::before{content:"\\ea7b"}.lni-chevron-down-circle::before{content:"\\ea7c"}.lni-chevron-left::before{content:"\\ea7d"}.lni-chevron-left-circle::before{content:"\\ea7e"}.lni-chevron-right-circle::before{content:"\\ea7f"}.lni-chevron-up::before{content:"\\ea80"}.lni-chevron-up-circle::before{content:"\\ea81"}.lni-chrome::before{content:"\\ea82"}.lni-chromecast::before{content:"\\ea83"}.lni-cisco::before{content:"\\ea84"}.lni-claude::before{content:"\\ea85"}.lni-clickup::before{content:"\\ea86"}.lni-clipboard::before{content:"\\ea87"}.lni-cloud-2::before{content:"\\ea88"}.lni-cloud-bolt-1::before{content:"\\ea89"}.lni-cloud-bolt-2::before{content:"\\ea8a"}.lni-cloud-check-circle::before{content:"\\ea8b"}.lni-cloud-download::before{content:"\\ea8c"}.lni-cloud-iot-2::before{content:"\\ea8d"}.lni-cloud-rain::before{content:"\\ea8e"}.lni-cloud-refresh-clockwise::before{content:"\\ea8f"}.lni-cloud-sun::before{content:"\\ea90"}.lni-cloud-upload::before{content:"\\ea91"}.lni-cloudflare::before{content:"\\ea92"}.lni-code-1::before{content:"\\ea93"}.lni-code-s::before{content:"\\ea94"}.lni-codepen::before{content:"\\ea95"}.lni-coffee-cup-2::before{content:"\\ea96"}.lni-coinbase::before{content:"\\ea97"}.lni-colour-palette-3::before{content:"\\ea98"}.lni-comment-1::before{content:"\\ea99"}.lni-comment-1-share::before{content:"\\ea9a"}.lni-comment-1-text::before{content:"\\ea9b"}.lni-compass-drafting-2::before{content:"\\ea9c"}.lni-connectdevelop::before{content:"\\ea9d"}.lni-copilot::before{content:"\\ea9e"}.lni-coral::before{content:"\\ea9f"}.lni-cpanel::before{content:"\\eaa0"}.lni-crane-4::before{content:"\\eaa1"}.lni-creative-commons::before{content:"\\eaa2"}.lni-credit-card-multiple::before{content:"\\eaa3"}.lni-crop-2::before{content:"\\eaa4"}.lni-crown-3::before{content:"\\eaa5"}.lni-css3::before{content:"\\eaa6"}.lni-dashboard-square-1::before{content:"\\eaa7"}.lni-database-2::before{content:"\\eaa8"}.lni-deno::before{content:"\\eaa9"}.lni-dev::before{content:"\\eaaa"}.lni-dialogflow::before{content:"\\eaab"}.lni-diamonds-1::before{content:"\\eaac"}.lni-diamonds-2::before{content:"\\eaad"}.lni-digitalocean::before{content:"\\eaae"}.lni-diners-club::before{content:"\\eaaf"}.lni-direction-ltr::before{content:"\\eab0"}.lni-direction-rtl::before{content:"\\eab1"}.lni-discord::before{content:"\\eab2"}.lni-discord-chat::before{content:"\\eab3"}.lni-discover::before{content:"\\eab4"}.lni-docker::before{content:"\\eab5"}.lni-dollar::before{content:"\\eab6"}.lni-dollar-circle::before{content:"\\eab7"}.lni-double-quotes-end-1::before{content:"\\eab8"}.lni-download-1::before{content:"\\eab9"}.lni-download-circle-1::before{content:"\\eaba"}.lni-dribbble::before{content:"\\eabb"}.lni-dribbble-symbol::before{content:"\\eabc"}.lni-drizzle::before{content:"\\eabd"}.lni-dropbox::before{content:"\\eabe"}.lni-drupal::before{content:"\\eabf"}.lni-dumbbell-1::before{content:"\\eac0"}.lni-edge::before{content:"\\eac1"}.lni-emoji-expressionless::before{content:"\\eac2"}.lni-emoji-expressionless-flat-eyes::before{content:"\\eac3"}.lni-emoji-grin::before{content:"\\eac4"}.lni-emoji-sad::before{content:"\\eac5"}.lni-emoji-smile::before{content:"\\eac6"}.lni-emoji-smile-side::before{content:"\\eac7"}.lni-emoji-smile-sunglass::before{content:"\\eac8"}.lni-emoji-smile-tongue::before{content:"\\eac9"}.lni-enter::before{content:"\\eaca"}.lni-enter-down::before{content:"\\eacb"}.lni-envato::before{content:"\\eacc"}.lni-envelope-1::before{content:"\\eacd"}.lni-eraser-1::before{content:"\\eace"}.lni-ethereum-logo::before{content:"\\eacf"}.lni-euro::before{content:"\\ead0"}.lni-exit::before{content:"\\ead1"}.lni-exit-up::before{content:"\\ead2"}.lni-expand-arrow-1::before{content:"\\ead3"}.lni-expand-square-4::before{content:"\\ead4"}.lni-expressjs::before{content:"\\ead5"}.lni-eye::before{content:"\\ead6"}.lni-facebook::before{content:"\\ead7"}.lni-facebook-messenger::before{content:"\\ead8"}.lni-facebook-rounded::before{content:"\\ead9"}.lni-facebook-square::before{content:"\\eada"}.lni-facetime::before{content:"\\eadb"}.lni-figma::before{content:"\\eadc"}.lni-file-format-zip::before{content:"\\eadd"}.lni-file-multiple::before{content:"\\eade"}.lni-file-pencil::before{content:"\\eadf"}.lni-file-plus-circle::before{content:"\\eae0"}.lni-file-question::before{content:"\\eae1"}.lni-file-xmark::before{content:"\\eae2"}.lni-firebase::before{content:"\\eae3"}.lni-firefox::before{content:"\\eae4"}.lni-firework-rocket-4::before{content:"\\eae5"}.lni-fitbit::before{content:"\\eae6"}.lni-flag-1::before{content:"\\eae7"}.lni-flag-2::before{content:"\\eae8"}.lni-flickr::before{content:"\\eae9"}.lni-floppy-disk-1::before{content:"\\eaea"}.lni-flower-2::before{content:"\\eaeb"}.lni-flutter::before{content:"\\eaec"}.lni-folder-1::before{content:"\\eaed"}.lni-ford::before{content:"\\eaee"}.lni-framer::before{content:"\\eaef"}.lni-funnel-1::before{content:"\\eaf0"}.lni-gallery::before{content:"\\eaf1"}.lni-game-pad-modern-1::before{content:"\\eaf2"}.lni-gatsby::before{content:"\\eaf3"}.lni-gauge-1::before{content:"\\eaf4"}.lni-gear-1::before{content:"\\eaf5"}.lni-gears-3::before{content:"\\eaf6"}.lni-gemini::before{content:"\\eaf7"}.lni-git::before{content:"\\eaf8"}.lni-github::before{content:"\\eaf9"}.lni-glass-juice-1::before{content:"\\eafa"}.lni-globe-1::before{content:"\\eafb"}.lni-globe-stand::before{content:"\\eafc"}.lni-go::before{content:"\\eafd"}.lni-goodreads::before{content:"\\eafe"}.lni-google::before{content:"\\eaff"}.lni-google-cloud::before{content:"\\eb00"}.lni-google-drive::before{content:"\\eb01"}.lni-google-meet::before{content:"\\eb02"}.lni-google-pay::before{content:"\\eb03"}.lni-google-wallet::before{content:"\\eb04"}.lni-graduation-cap-1::before{content:"\\eb05"}.lni-grammarly::before{content:"\\eb06"}.lni-hacker-news::before{content:"\\eb07"}.lni-hammer-1::before{content:"\\eb08"}.lni-hammer-2::before{content:"\\eb09"}.lni-hand-mic::before{content:"\\eb0a"}.lni-hand-shake::before{content:"\\eb0b"}.lni-hand-stop::before{content:"\\eb0c"}.lni-hand-taking-dollar::before{content:"\\eb0d"}.lni-hand-taking-leaf-1::before{content:"\\eb0e"}.lni-hand-taking-user::before{content:"\\eb0f"}.lni-hashnode::before{content:"\\eb10"}.lni-hat-chef-3::before{content:"\\eb11"}.lni-headphone-1::before{content:"\\eb12"}.lni-heart::before{content:"\\eb13"}.lni-helicopter-2::before{content:"\\eb14"}.lni-helmet-safety-1::before{content:"\\eb15"}.lni-hierarchy-1::before{content:"\\eb16"}.lni-highlighter-1::before{content:"\\eb17"}.lni-highlighter-2::before{content:"\\eb18"}.lni-home-2::before{content:"\\eb19"}.lni-hospital-2::before{content:"\\eb1a"}.lni-hourglass::before{content:"\\eb1b"}.lni-html5::before{content:"\\eb1c"}.lni-ibm::before{content:"\\eb1d"}.lni-id-card::before{content:"\\eb1e"}.lni-imdb::before{content:"\\eb1f"}.lni-indent::before{content:"\\eb20"}.lni-info::before{content:"\\eb21"}.lni-injection-1::before{content:"\\eb22"}.lni-instagram::before{content:"\\eb23"}.lni-instagram-logotype::before{content:"\\eb24"}.lni-intel::before{content:"\\eb25"}.lni-ios::before{content:"\\eb26"}.lni-island-2::before{content:"\\eb27"}.lni-jaguar::before{content:"\\eb28"}.lni-jamstack::before{content:"\\eb29"}.lni-java::before{content:"\\eb2a"}.lni-javascript::before{content:"\\eb2b"}.lni-jcb::before{content:"\\eb2c"}.lni-joomla::before{content:"\\eb2d"}.lni-jsfiddle::before{content:"\\eb2e"}.lni-key-1::before{content:"\\eb2f"}.lni-keyboard::before{content:"\\eb30"}.lni-knife-fork-1::before{content:"\\eb31"}.lni-kubernetes::before{content:"\\eb32"}.lni-label-dollar-2::before{content:"\\eb33"}.lni-laptop-2::before{content:"\\eb34"}.lni-laptop-phone::before{content:"\\eb35"}.lni-laravel::before{content:"\\eb36"}.lni-layers-1::before{content:"\\eb37"}.lni-layout-26::before{content:"\\eb38"}.lni-layout-9::before{content:"\\eb39"}.lni-leaf-1::before{content:"\\eb3a"}.lni-leaf-6::before{content:"\\eb3b"}.lni-lemon-squeezy::before{content:"\\eb3c"}.lni-life-guard-tube-1::before{content:"\\eb3d"}.lni-line::before{content:"\\eb3e"}.lni-line-dashed::before{content:"\\eb3f"}.lni-line-dotted::before{content:"\\eb40"}.lni-line-height::before{content:"\\eb41"}.lni-lineicons::before{content:"\\eb42"}.lni-link-2-angular-right::before{content:"\\eb43"}.lni-linkedin::before{content:"\\eb44"}.lni-location-arrow-right::before{content:"\\eb45"}.lni-locked-1::before{content:"\\eb46"}.lni-locked-2::before{content:"\\eb47"}.lni-loom::before{content:"\\eb48"}.lni-magento::before{content:"\\eb49"}.lni-magnet::before{content:"\\eb4a"}.lni-mailchimp::before{content:"\\eb4b"}.lni-map-marker-1::before{content:"\\eb4c"}.lni-map-marker-5::before{content:"\\eb4d"}.lni-map-pin-5::before{content:"\\eb4e"}.lni-markdown::before{content:"\\eb4f"}.lni-mastercard::before{content:"\\eb50"}.lni-medium::before{content:"\\eb51"}.lni-medium-alt::before{content:"\\eb52"}.lni-megaphone-1::before{content:"\\eb53"}.lni-menu-cheesburger::before{content:"\\eb54"}.lni-menu-hamburger-1::before{content:"\\eb55"}.lni-menu-meatballs-1::before{content:"\\eb56"}.lni-menu-meatballs-2::before{content:"\\eb57"}.lni-mercedes::before{content:"\\eb58"}.lni-message-2::before{content:"\\eb59"}.lni-message-2-question::before{content:"\\eb5a"}.lni-message-3-text::before{content:"\\eb5b"}.lni-meta::before{content:"\\eb5c"}.lni-meta-alt::before{content:"\\eb5d"}.lni-microphone-1::before{content:"\\eb5e"}.lni-microscope::before{content:"\\eb5f"}.lni-microsoft::before{content:"\\eb60"}.lni-microsoft-edge::before{content:"\\eb61"}.lni-microsoft-teams::before{content:"\\eb62"}.lni-minus::before{content:"\\eb63"}.lni-minus-circle::before{content:"\\eb64"}.lni-mongodb::before{content:"\\eb65"}.lni-monitor::before{content:"\\eb66"}.lni-monitor-code::before{content:"\\eb67"}.lni-monitor-mac::before{content:"\\eb68"}.lni-moon-half-right-5::before{content:"\\eb69"}.lni-mountains-2::before{content:"\\eb6a"}.lni-mouse-2::before{content:"\\eb6b"}.lni-mushroom-1::before{content:"\\eb6c"}.lni-mushroom-5::before{content:"\\eb6d"}.lni-music::before{content:"\\eb6e"}.lni-mysql::before{content:"\\eb6f"}.lni-nasa::before{content:"\\eb70"}.lni-netflix::before{content:"\\eb71"}.lni-netlify::before{content:"\\eb72"}.lni-next-step-2::before{content:"\\eb73"}.lni-nextjs::before{content:"\\eb74"}.lni-nike::before{content:"\\eb75"}.lni-nissan::before{content:"\\eb76"}.lni-nodejs::before{content:"\\eb77"}.lni-nodejs-alt::before{content:"\\eb78"}.lni-notebook-1::before{content:"\\eb79"}.lni-notion::before{content:"\\eb7a"}.lni-npm::before{content:"\\eb7b"}.lni-nuxt::before{content:"\\eb7c"}.lni-nvidia::before{content:"\\eb7d"}.lni-oculus::before{content:"\\eb7e"}.lni-open-ai::before{content:"\\eb7f"}.lni-opera-mini::before{content:"\\eb80"}.lni-oracle::before{content:"\\eb81"}.lni-outdent::before{content:"\\eb82"}.lni-paddle::before{content:"\\eb83"}.lni-page-break-1::before{content:"\\eb84"}.lni-pagination::before{content:"\\eb85"}.lni-paint-bucket::before{content:"\\eb86"}.lni-paint-roller-1::before{content:"\\eb87"}.lni-paperclip-1::before{content:"\\eb88"}.lni-party-flags::before{content:"\\eb89"}.lni-party-spray::before{content:"\\eb8a"}.lni-patreon::before{content:"\\eb8b"}.lni-pause::before{content:"\\eb8c"}.lni-payoneer::before{content:"\\eb8d"}.lni-paypal::before{content:"\\eb8e"}.lni-pen-to-square::before{content:"\\eb8f"}.lni-pencil-1::before{content:"\\eb90"}.lni-pepsi::before{content:"\\eb91"}.lni-phone::before{content:"\\eb92"}.lni-photos::before{content:"\\eb93"}.lni-php::before{content:"\\eb94"}.lni-pie-chart-2::before{content:"\\eb95"}.lni-pilcrow::before{content:"\\eb96"}.lni-pimjo-logo::before{content:"\\eb97"}.lni-pimjo-symbol::before{content:"\\eb98"}.lni-pinterest::before{content:"\\eb99"}.lni-pizza-2::before{content:"\\eb9a"}.lni-placeholder-dollar::before{content:"\\eb9b"}.lni-plantscale::before{content:"\\eb9c"}.lni-play::before{content:"\\eb9d"}.lni-play-store::before{content:"\\eb9e"}.lni-playstation::before{content:"\\eb9f"}.lni-plug-1::before{content:"\\eba0"}.lni-plus::before{content:"\\eba1"}.lni-plus-circle::before{content:"\\eba2"}.lni-pnpm::before{content:"\\eba3"}.lni-postgresql::before{content:"\\eba4"}.lni-postman::before{content:"\\eba5"}.lni-pound::before{content:"\\eba6"}.lni-power-button::before{content:"\\eba7"}.lni-previous-step-2::before{content:"\\eba8"}.lni-printer::before{content:"\\eba9"}.lni-prisma::before{content:"\\ebaa"}.lni-producthunt::before{content:"\\ebab"}.lni-proton-mail-logo::before{content:"\\ebac"}.lni-proton-mail-symbol::before{content:"\\ebad"}.lni-python::before{content:"\\ebae"}.lni-question-mark::before{content:"\\ebaf"}.lni-question-mark-circle::before{content:"\\ebb0"}.lni-quora::before{content:"\\ebb1"}.lni-radis::before{content:"\\ebb2"}.lni-react::before{content:"\\ebb3"}.lni-reddit::before{content:"\\ebb4"}.lni-refresh-circle-1-clockwise::before{content:"\\ebb5"}.lni-refresh-dollar-1::before{content:"\\ebb6"}.lni-refresh-user-1::before{content:"\\ebb7"}.lni-remix-js::before{content:"\\ebb8"}.lni-road-1::before{content:"\\ebb9"}.lni-rocket-5::before{content:"\\ebba"}.lni-route-1::before{content:"\\ebbb"}.lni-rss-right::before{content:"\\ebbc"}.lni-ruler-1::before{content:"\\ebbd"}.lni-ruler-pen::before{content:"\\ebbe"}.lni-rupee::before{content:"\\ebbf"}.lni-safari::before{content:"\\ebc0"}.lni-sanity::before{content:"\\ebc1"}.lni-school-bench-1::before{content:"\\ebc2"}.lni-school-bench-2::before{content:"\\ebc3"}.lni-scissors-1-vertical::before{content:"\\ebc4"}.lni-scoter::before{content:"\\ebc5"}.lni-scroll-down-2::before{content:"\\ebc6"}.lni-search-1::before{content:"\\ebc7"}.lni-search-2::before{content:"\\ebc8"}.lni-search-minus::before{content:"\\ebc9"}.lni-search-plus::before{content:"\\ebca"}.lni-search-text::before{content:"\\ebcb"}.lni-select-cursor-1::before{content:"\\ebcc"}.lni-seo-monitor::before{content:"\\ebcd"}.lni-service-bell-1::before{content:"\\ebce"}.lni-share-1::before{content:"\\ebcf"}.lni-share-1-circle::before{content:"\\ebd0"}.lni-share-2::before{content:"\\ebd1"}.lni-shield-2::before{content:"\\ebd2"}.lni-shield-2-check::before{content:"\\ebd3"}.lni-shield-dollar::before{content:"\\ebd4"}.lni-shift-left::before{content:"\\ebd5"}.lni-shift-right::before{content:"\\ebd6"}.lni-ship-1::before{content:"\\ebd7"}.lni-shirt-1::before{content:"\\ebd8"}.lni-shopify::before{content:"\\ebd9"}.lni-shovel::before{content:"\\ebda"}.lni-shuffle::before{content:"\\ebdb"}.lni-sign-post-left::before{content:"\\ebdc"}.lni-signal-app::before{content:"\\ebdd"}.lni-signs-post-2::before{content:"\\ebde"}.lni-sketch::before{content:"\\ebdf"}.lni-skype::before{content:"\\ebe0"}.lni-slack::before{content:"\\ebe1"}.lni-slice-2::before{content:"\\ebe2"}.lni-sliders-horizontal-square-2::before{content:"\\ebe3"}.lni-slideshare::before{content:"\\ebe4"}.lni-snapchat::before{content:"\\ebe5"}.lni-sort-alphabetical::before{content:"\\ebe6"}.lni-sort-high-to-low::before{content:"\\ebe7"}.lni-soundcloud::before{content:"\\ebe8"}.lni-spacex::before{content:"\\ebe9"}.lni-spellcheck::before{content:"\\ebea"}.lni-spinner-2-sacle::before{content:"\\ebeb"}.lni-spinner-3::before{content:"\\ebec"}.lni-sports::before{content:"\\ebed"}.lni-spotify::before{content:"\\ebee"}.lni-spotify-alt::before{content:"\\ebef"}.lni-squarespace::before{content:"\\ebf0"}.lni-stackoverflow::before{content:"\\ebf1"}.lni-stamp::before{content:"\\ebf2"}.lni-star-fat::before{content:"\\ebf3"}.lni-star-fat-half-2::before{content:"\\ebf4"}.lni-star-sharp-disabled::before{content:"\\ebf5"}.lni-statista::before{content:"\\ebf6"}.lni-steam::before{content:"\\ebf7"}.lni-stethoscope-1::before{content:"\\ebf8"}.lni-stopwatch::before{content:"\\ebf9"}.lni-storage-hdd-2::before{content:"\\ebfa"}.lni-strikethrough-1::before{content:"\\ebfb"}.lni-stripe::before{content:"\\ebfc"}.lni-stumbleupon::before{content:"\\ebfd"}.lni-sun-1::before{content:"\\ebfe"}.lni-supabase::before{content:"\\ebff"}.lni-surfboard-2::before{content:"\\ec00"}.lni-svelte::before{content:"\\ec01"}.lni-swift::before{content:"\\ec02"}.lni-tab::before{content:"\\ec03"}.lni-tailwindcss::before{content:"\\ec04"}.lni-target-user::before{content:"\\ec05"}.lni-telegram::before{content:"\\ec06"}.lni-telephone-1::before{content:"\\ec07"}.lni-telephone-3::before{content:"\\ec08"}.lni-tesla::before{content:"\\ec09"}.lni-text-format::before{content:"\\ec0a"}.lni-text-format-remove::before{content:"\\ec0b"}.lni-text-paragraph::before{content:"\\ec0c"}.lni-thumbs-down-3::before{content:"\\ec0d"}.lni-thumbs-up-3::before{content:"\\ec0e"}.lni-ticket-1::before{content:"\\ec0f"}.lni-tickets-3::before{content:"\\ec10"}.lni-tiktok::before{content:"\\ec11"}.lni-tiktok-alt::before{content:"\\ec12"}.lni-tower-broadcast-1::before{content:"\\ec13"}.lni-toyota::before{content:"\\ec14"}.lni-train-1::before{content:"\\ec15"}.lni-train-3::before{content:"\\ec16"}.lni-trash-3::before{content:"\\ec17"}.lni-tree-2::before{content:"\\ec18"}.lni-trees-3::before{content:"\\ec19"}.lni-trello::before{content:"\\ec1a"}.lni-trend-down-1::before{content:"\\ec1b"}.lni-trend-up-1::before{content:"\\ec1c"}.lni-trophy-1::before{content:"\\ec1d"}.lni-trowel-1::before{content:"\\ec1e"}.lni-truck-delivery-1::before{content:"\\ec1f"}.lni-tumblr::before{content:"\\ec20"}.lni-turborepo::before{content:"\\ec21"}.lni-twitch::before{content:"\\ec22"}.lni-twitter-old::before{content:"\\ec23"}.lni-typescript::before{content:"\\ec24"}.lni-uber::before{content:"\\ec25"}.lni-uber-symbol::before{content:"\\ec26"}.lni-ubuntu::before{content:"\\ec27"}.lni-underline::before{content:"\\ec28"}.lni-unlink-2-angular-eft::before{content:"\\ec29"}.lni-unlocked-2::before{content:"\\ec2a"}.lni-unsplash::before{content:"\\ec2b"}.lni-upload-1::before{content:"\\ec2c"}.lni-upload-circle-1::before{content:"\\ec2d"}.lni-user-4::before{content:"\\ec2e"}.lni-user-multiple-4::before{content:"\\ec2f"}.lni-vector-nodes-6::before{content:"\\ec30"}.lni-vector-nodes-7::before{content:"\\ec31"}.lni-vercel::before{content:"\\ec32"}.lni-vimeo::before{content:"\\ec33"}.lni-visa::before{content:"\\ec34"}.lni-vite::before{content:"\\ec35"}.lni-vk::before{content:"\\ec36"}.lni-vmware::before{content:"\\ec37"}.lni-volkswagen::before{content:"\\ec38"}.lni-volume-1::before{content:"\\ec39"}.lni-volume-high::before{content:"\\ec3a"}.lni-volume-low::before{content:"\\ec3b"}.lni-volume-mute::before{content:"\\ec3c"}.lni-volume-off::before{content:"\\ec3d"}.lni-vs-code::before{content:"\\ec3e"}.lni-vuejs::before{content:"\\ec3f"}.lni-wallet-1::before{content:"\\ec40"}.lni-watch-beat-1::before{content:"\\ec41"}.lni-water-drop-1::before{content:"\\ec42"}.lni-webflow::before{content:"\\ec43"}.lni-webhooks::before{content:"\\ec44"}.lni-wechat::before{content:"\\ec45"}.lni-weight-machine-1::before{content:"\\ec46"}.lni-whatsapp::before{content:"\\ec47"}.lni-wheelbarrow-empty::before{content:"\\ec48"}.lni-wheelchair-1::before{content:"\\ec49"}.lni-windows::before{content:"\\ec4a"}.lni-wise::before{content:"\\ec4b"}.lni-wordpress::before{content:"\\ec4c"}.lni-www::before{content:"\\ec4d"}.lni-www-cursor::before{content:"\\ec4e"}.lni-x::before{content:"\\ec4f"}.lni-xampp::before{content:"\\ec50"}.lni-xbox::before{content:"\\ec51"}.lni-xmark::before{content:"\\ec52"}.lni-xmark-circle::before{content:"\\ec53"}.lni-xrp::before{content:"\\ec54"}.lni-yahoo::before{content:"\\ec55"}.lni-yarn::before{content:"\\ec56"}.lni-ycombinator::before{content:"\\ec57"}.lni-yen::before{content:"\\ec58"}.lni-youtube::before{content:"\\ec59"}.lni-youtube-kids::before{content:"\\ec5a"}.lni-youtube-music::before{content:"\\ec5b"}.lni-zapier::before{content:"\\ec5c"}.lni-zero-size::before{content:"\\ec5d"}.lni-zoom::before{content:"\\ec5e"}:host{display:inline-block;box-sizing:content-box !important;--icon-size:24px;--icon-color:inherit}:host([split-pane-focus]) .icon-wrapper{cursor:pointer}.icon-wrapper{-webkit-user-select:none;-moz-user-select:none;user-select:none;font-family:sans-serif;overflow:hidden;margin:0;padding:0;display:flex;align-items:center;justify-content:center;flex-shrink:0;width:100%;height:100%}.icon{width:var(--icon-size);height:var(--icon-size);color:var(--icon-color);overflow:hidden;line-height:1}.icon i{font-size:var(--icon-size) !important}.icon--default{--icon-color:rgb(var(--zn-text))}.icon--primary{--icon-color:rgb(var(--zn-primary))}.icon--accent{--icon-color:rgb(var(--zn-accent))}.icon--info{--icon-color:rgb(var(--zn-color-info))}.icon--warning{--icon-color:rgb(var(--zn-color-warning))}.icon--error{--icon-color:rgb(var(--zn-color-error))}.icon--success{--icon-color:rgb(var(--zn-color-success))}.icon--white{--icon-color:rgb(var(--zn-body))}.icon--disabled{--icon-color:rgb(var(--zn-color-disabled))}.icon--red{--icon-color:rgb(var(--zn-red))}.icon--blue{--icon-color:rgb(var(--zn-blue))}.icon--green{--icon-color:rgb(var(--zn-green))}.icon--orange{--icon-color:rgb(var(--zn-orange))}.icon--yellow{--icon-color:rgb(var(--zn-yellow))}.icon--indigo{--icon-color:rgb(var(--zn-indigo))}.icon--violet{--icon-color:rgb(var(--zn-violet))}.icon--pink{--icon-color:rgb(var(--zn-pink))}.icon--grey{--icon-color:rgb(var(--zn-grey))}.icon--filled .lucide{fill:var(--icon-fill,currentColor)}.icon--fill-default{--icon-fill:rgb(var(--zn-text))}.icon--fill-primary{--icon-fill:rgb(var(--zn-primary))}.icon--fill-accent{--icon-fill:rgb(var(--zn-accent))}.icon--fill-info{--icon-fill:rgb(var(--zn-color-info))}.icon--fill-warning{--icon-fill:rgb(var(--zn-color-warning))}.icon--fill-error{--icon-fill:rgb(var(--zn-color-error))}.icon--fill-success{--icon-fill:rgb(var(--zn-color-success))}.icon--fill-white{--icon-fill:rgb(var(--zn-body))}.icon--fill-disabled{--icon-fill:rgb(var(--zn-color-disabled))}.icon--fill-red{--icon-fill:rgb(var(--zn-red))}.icon--fill-blue{--icon-fill:rgb(var(--zn-blue))}.icon--fill-green{--icon-fill:rgb(var(--zn-green))}.icon--fill-orange{--icon-fill:rgb(var(--zn-orange))}.icon--fill-yellow{--icon-fill:rgb(var(--zn-yellow))}.icon--fill-indigo{--icon-fill:rgb(var(--zn-indigo))}.icon--fill-violet{--icon-fill:rgb(var(--zn-violet))}.icon--fill-pink{--icon-fill:rgb(var(--zn-pink))}.icon--fill-grey{--icon-fill:rgb(var(--zn-grey))}.icon--round{border-radius:50%}.icon--tile{border-radius:20%}.icon--depth{position:relative}.icon--depth:before,.icon--depth:after{content:"";position:absolute;inset:0;border-radius:inherit}.icon--depth:before{box-shadow:inset -2px -2px 1px rgba(0,0,0,0.1)}.icon--depth:after{box-shadow:inset 2px 2px 1px rgba(255,255,255,0.2)}.icon--blink{animation:blink-animation 1.5s steps(5,start) infinite}.icon--avatar{background-color:var(--avatar-color,var(--icon-color));color:hsl(from var(--avatar-color,var(--icon-color)) h s 95);display:flex;justify-content:center;align-items:center}.icon--avatar .avatar__text{font-size:calc(var(--icon-size) / 2.4);color:hsl(from var(--avatar-color,var(--icon-color)) h s 95);font-weight:var(--zn-font-weight-semibold)}.icon--padded{padding:var(--zn-spacing-small)}.icon--squared{width:auto !important;height:auto !important;aspect-ratio:1/1;display:block}.icon .mi{font-family:"Material Icons";font-size:inherit;font-weight:300;font-style:normal;line-height:1;letter-spacing:normal;text-transform:none;display:inline-block;white-space:nowrap;word-wrap:normal;direction:ltr;-webkit-font-feature-settings:"liga";-webkit-font-smoothing:antialiased;font-variation-settings:"FILL" 0,"wght" 300,"GRAD" 0,"opsz" 24}.icon .mi--outlined{font-family:"Material Icons Outlined"}.icon .mi--round{font-family:"Material Icons Round"}.icon .mi--sharp{font-family:"Material Icons Sharp"}.icon .mi--two-tone{font-family:"Material Icons Two Tone"}.icon .mi--symbol-outlined{font-family:"Material Symbols Outlined"}.icon .kb{font-family:"Kubex Icons Brands";font-style:normal;font-weight:normal !important;font-variant:normal;text-transform:none;line-height:1;-webkit-font-smoothing:antialiased}.icon .lucide{display:block;width:100%;height:100%;color:currentColor;stroke:currentColor}.icon img{max-width:100%;vertical-align:middle}@keyframes blink-animation{0%,100%{opacity:1}50%{opacity:0.5}}`;var ls,qu;function Ev(){return qu??(qu=import("./chunks/zn.ESPCJQBM.js").then(o=>{ls=o.icons}).catch(o=>{qu=void 0,console.warn("<zn-icon> failed to load the lucide icon chunk",o)})),qu}var ur=class ur extends S{constructor(){super(...arguments);this.size=24;this.round=!1;this.tile=!1;this.depth=!1;this.padded=!1;this.blink=!1;this.squared=!1;this.gravatarOptions="";this.defaultLibrary="material-symbols-outlined";this.libraryAutoSet=!1}isPresetColor(t){return ur.presetColors.has(t)}convertToLibrary(t){return this.convertIndicatorToLibrary(t)??this.defaultLibrary}convertIndicatorToLibrary(t){switch(t){case"material":case"mat":case"m":return"material";case"material-outlined":case"mo":return"material-outlined";case"material-round":case"mr":return"material-round";case"material-sharp":case"ms":return"material-sharp";case"material-two-tone":case"mt":case"m2":return"material-two-tone";case"material-symbols-outlined":case"mso":return"material-symbols-outlined";case"gravatar":case"grav":return"gravatar";case"libravatar":return"libravatar";case"avatar":case"av":return"avatar";case"line":return"line";case"lucide":case"lu":return"lucide";case"brand":case"brands":return"brands"}}connectedCallback(){super.connectedCallback(),es(u`
40
40
  <link
41
41
  href="https://cdn.jsdelivr.net/gh/kubex/icons@0.0.8/dist/kubex-icons.css"
42
42
  rel="stylesheet">
@@ -73,7 +73,7 @@ import{a as Hn,b as X3,c as kr,d as c,e as V}from"./chunks/zn.UBLZO6CI.js";var a
73
73
  stroke-linejoin="round"
74
74
  aria-hidden="true"
75
75
  >${t.map(([n,a])=>`<${n}${this.getSvgAttributes(a)} />`).join("")}</svg>
76
- `}getSvgAttributes(t){return Object.entries(t).filter(([,r])=>r!==void 0).map(([r,n])=>` ${r}="${this.escapeSvgAttribute(String(n))}"`).join("")}escapeSvgAttribute(t){return t.replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}getColorForAvatar(t){let r=["#00AA55","#0882a8","#ed55ed","#5eae00","#09389e","#d17300","#5e0be2","#5b7a13","#ddb100","#d400c2","#DC2A2A","#a967ff"],n=Array.from(t).reduce((a,s)=>a+s.charCodeAt(0),0);return r[n%r.length]}};mr.styles=_(Cv),mr.presetColors=new Set(["default","primary","accent","info","warning","error","success","white","disabled","red","blue","green","orange","yellow","indigo","violet","pink","grey"]),c([p({reflect:!0})],mr.prototype,"src",2),c([p({reflect:!0})],mr.prototype,"alt",2),c([p({type:Number,reflect:!0})],mr.prototype,"size",2),c([p({type:Boolean,reflect:!0})],mr.prototype,"round",2),c([p({type:Boolean,reflect:!0})],mr.prototype,"tile",2),c([p({type:Boolean,reflect:!0})],mr.prototype,"depth",2),c([p({reflect:!0})],mr.prototype,"library",2),c([p({reflect:!0})],mr.prototype,"color",2),c([p({reflect:!0})],mr.prototype,"fill",2),c([p({type:Boolean})],mr.prototype,"padded",2),c([p({type:Boolean})],mr.prototype,"blink",2),c([p({type:Boolean})],mr.prototype,"squared",2);var xo=mr;var oe=xo;xo.define("zn-icon");var Tv=k`@keyframes rotate-gradient{from{--rotate:0deg}to{--rotate:360deg}}:host{text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-transform:none}*,*::before,*::after{box-sizing:border-box;border-width:0;border-style:solid;border-color:rgb(var(--zn-border-color))}[hidden]{display:none !important}.width-container,.form-container,.wide-form-container{height:100%;width:100%;margin:var(--zn-default-margin,0 auto)}.width-container{max-width:var(--zn-container)}.form-container{max-width:var(--zn-container-ph)}.wide-form-container{max-width:var(--zn-container-lg)}:host{display:contents}.tooltip{--arrow-size:6px}.tooltip::part(popup),.tooltip::part(hover-bridge){cursor:default}.tooltip[placement^=top]::part(popup){transform-origin:bottom}.tooltip[placement^=bottom]::part(popup){transform-origin:top}.tooltip[placement^=left]::part(popup){transform-origin:right}.tooltip[placement^=right]::part(popup){transform-origin:left}.tooltip__body{font-family:var(--zn-font-sans);font-size:var(--zn-text-paragraph-font-size);font-weight:var(--zn-text-paragraph-font-weight);line-height:var(--zn-text-paragraph-line-height);color:var(--zn-text-paragraph-color);text-transform:var(--zn-text-paragraph-transform);letter-spacing:var(--zn-text-paragraph-letter-spacing,normal);display:block;width:-moz-max-content;width:max-content;max-width:-moz-max-content;max-width:max-content;border-radius:var(--zn-border-radius);background-color:var(--arrow-color);text-align:start;white-space:normal;color:rgb(var(--zn-color-base,255,255,255));padding:var(--zn-spacing-x-small) var(--zn-spacing-small);pointer-events:none;-moz-user-select:none;user-select:none;-webkit-user-select:none}`;var Mt=class extends S{constructor(){super();this.content="";this.placement="top";this.disabled=!1;this.distance=4;this.open=!1;this.skidding=0;this.trigger="hover focus";this.hoist=!0;this.handleBlur=()=>{this.hasTrigger("focus")&&this.hide()};this.handleClick=()=>{this.hasTrigger("click")&&!Vn.isDropdownOpen()&&(this.open&&this.hide(),this.show())};this.handleFocus=()=>{this.hasTrigger("focus")&&!Vn.isDropdownOpen()&&this.show()};this.handleDocumentKeyDown=t=>{t.key==="Escape"&&(t.stopPropagation(),this.hide())};this.handlePopupClick=t=>{t.target===t.currentTarget&&t.stopPropagation()};this.addEventListener("blur",this.handleBlur,!0),this.addEventListener("focus",this.handleFocus,!0),this.addEventListener("click",this.handleClick),this.addEventListener("mouseover",this.handleMouseOver),this.addEventListener("mouseout",this.handleMouseOut)}disconnectedCallback(){this.closeWatcher?.destroy(),document.removeEventListener("keydown",this.handleDocumentKeyDown)}firstUpdated(t){this.body.hidden=!this.open,this.open&&(this.popup.active=!0,this.popup.reposition()),super.firstUpdated(t)}hasTrigger(t){return this.trigger.split(" ").includes(t)}handleMouseOver(){this.hasTrigger("hover")&&!Vn.isDropdownOpen()&&(clearTimeout(this.hoverTimeout),this.hoverTimeout=window.setTimeout(()=>this.show(),0))}handleMouseOut(){this.hasTrigger("hover")&&(clearTimeout(this.hoverTimeout),this.hoverTimeout=window.setTimeout(()=>this.hide(),0))}handleOpenChange(){if(this.open){if(Vn.registerTooltip(this),this.disabled)return;this.emit("zn-show"),"CloseWatcher"in window?(this.closeWatcher?.destroy(),this.closeWatcher=new CloseWatcher,this.closeWatcher.onclose=()=>{this.hide()}):document.addEventListener("keydown",this.handleDocumentKeyDown),this.body.hidden=!1,this.popup.active=!0,this.popup.reposition(),this.emit("zn-after-show")}else Vn.unregisterTooltip(this),this.emit("zn-hide"),this.popup.active=!1,this.body.hidden=!0,this.emit("zn-after-hide")}async handleOptionsChange(){this.hasUpdated&&(await this.updateComplete,this.popup.reposition())}handleDisabledChange(){this.disabled&&this.open&&this.hide()}async show(){if(!this.open)return this.open=!0,Mi(this,"zn-after-show")}hide(){this.open&&(this.open=!1,Mi(this,"zn-after-hide"))}render(){return u`
76
+ `}getSvgAttributes(t){return Object.entries(t).filter(([,r])=>r!==void 0).map(([r,n])=>` ${r}="${this.escapeSvgAttribute(String(n))}"`).join("")}escapeSvgAttribute(t){return t.replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}getColorForAvatar(t){let r=["#00AA55","#0882a8","#ed55ed","#5eae00","#09389e","#d17300","#5e0be2","#5b7a13","#ddb100","#d400c2","#DC2A2A","#a967ff"],n=Array.from(t).reduce((a,s)=>a+s.charCodeAt(0),0);return r[n%r.length]}};ur.styles=_(Cv),ur.presetColors=new Set(["default","primary","accent","info","warning","error","success","white","disabled","red","blue","green","orange","yellow","indigo","violet","pink","grey"]),c([p({reflect:!0})],ur.prototype,"src",2),c([p({reflect:!0})],ur.prototype,"alt",2),c([p({type:Number,reflect:!0})],ur.prototype,"size",2),c([p({type:Boolean,reflect:!0})],ur.prototype,"round",2),c([p({type:Boolean,reflect:!0})],ur.prototype,"tile",2),c([p({type:Boolean,reflect:!0})],ur.prototype,"depth",2),c([p({reflect:!0})],ur.prototype,"library",2),c([p({reflect:!0})],ur.prototype,"color",2),c([p({reflect:!0})],ur.prototype,"fill",2),c([p({type:Boolean})],ur.prototype,"padded",2),c([p({type:Boolean})],ur.prototype,"blink",2),c([p({type:Boolean})],ur.prototype,"squared",2);var xo=ur;var oe=xo;xo.define("zn-icon");var Tv=k`@keyframes rotate-gradient{from{--rotate:0deg}to{--rotate:360deg}}:host{text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-transform:none}*,*::before,*::after{box-sizing:border-box;border-width:0;border-style:solid;border-color:rgb(var(--zn-border-color))}[hidden]{display:none !important}.width-container,.form-container,.wide-form-container{height:100%;width:100%;margin:var(--zn-default-margin,0 auto)}.width-container{max-width:var(--zn-container)}.form-container{max-width:var(--zn-container-ph)}.wide-form-container{max-width:var(--zn-container-lg)}:host{display:contents}.tooltip{--arrow-size:6px}.tooltip::part(popup),.tooltip::part(hover-bridge){cursor:default}.tooltip[placement^=top]::part(popup){transform-origin:bottom}.tooltip[placement^=bottom]::part(popup){transform-origin:top}.tooltip[placement^=left]::part(popup){transform-origin:right}.tooltip[placement^=right]::part(popup){transform-origin:left}.tooltip__body{font-family:var(--zn-font-sans);font-size:var(--zn-text-paragraph-font-size);font-weight:var(--zn-text-paragraph-font-weight);line-height:var(--zn-text-paragraph-line-height);color:var(--zn-text-paragraph-color);text-transform:var(--zn-text-paragraph-transform);letter-spacing:var(--zn-text-paragraph-letter-spacing,normal);display:block;width:-moz-max-content;width:max-content;max-width:-moz-max-content;max-width:max-content;border-radius:var(--zn-border-radius);background-color:var(--arrow-color);text-align:start;white-space:normal;color:rgb(var(--zn-color-base,255,255,255));padding:var(--zn-spacing-x-small) var(--zn-spacing-small);pointer-events:none;-moz-user-select:none;user-select:none;-webkit-user-select:none}`;var Mt=class extends S{constructor(){super();this.content="";this.placement="top";this.disabled=!1;this.distance=4;this.open=!1;this.skidding=0;this.trigger="hover focus";this.hoist=!0;this.handleBlur=()=>{this.hasTrigger("focus")&&this.hide()};this.handleClick=()=>{this.hasTrigger("click")&&!Vn.isDropdownOpen()&&(this.open&&this.hide(),this.show())};this.handleFocus=()=>{this.hasTrigger("focus")&&!Vn.isDropdownOpen()&&this.show()};this.handleDocumentKeyDown=t=>{t.key==="Escape"&&(t.stopPropagation(),this.hide())};this.handlePopupClick=t=>{t.target===t.currentTarget&&t.stopPropagation()};this.addEventListener("blur",this.handleBlur,!0),this.addEventListener("focus",this.handleFocus,!0),this.addEventListener("click",this.handleClick),this.addEventListener("mouseover",this.handleMouseOver),this.addEventListener("mouseout",this.handleMouseOut)}disconnectedCallback(){this.closeWatcher?.destroy(),document.removeEventListener("keydown",this.handleDocumentKeyDown)}firstUpdated(t){this.body.hidden=!this.open,this.open&&(this.popup.active=!0,this.popup.reposition()),super.firstUpdated(t)}hasTrigger(t){return this.trigger.split(" ").includes(t)}handleMouseOver(){this.hasTrigger("hover")&&!Vn.isDropdownOpen()&&(clearTimeout(this.hoverTimeout),this.hoverTimeout=window.setTimeout(()=>this.show(),0))}handleMouseOut(){this.hasTrigger("hover")&&(clearTimeout(this.hoverTimeout),this.hoverTimeout=window.setTimeout(()=>this.hide(),0))}handleOpenChange(){if(this.open){if(Vn.registerTooltip(this),this.disabled)return;this.emit("zn-show"),"CloseWatcher"in window?(this.closeWatcher?.destroy(),this.closeWatcher=new CloseWatcher,this.closeWatcher.onclose=()=>{this.hide()}):document.addEventListener("keydown",this.handleDocumentKeyDown),this.body.hidden=!1,this.popup.active=!0,this.popup.reposition(),this.emit("zn-after-show")}else Vn.unregisterTooltip(this),this.emit("zn-hide"),this.popup.active=!1,this.body.hidden=!0,this.emit("zn-after-hide")}async handleOptionsChange(){this.hasUpdated&&(await this.updateComplete,this.popup.reposition())}handleDisabledChange(){this.disabled&&this.open&&this.hide()}async show(){if(!this.open)return this.open=!0,Mi(this,"zn-after-show")}hide(){this.open&&(this.open=!1,Mi(this,"zn-after-hide"))}render(){return u`
77
77
  <zn-popup
78
78
  part="base"
79
79
  exportparts="popup:base__popup,arrow:base__arrow"
@@ -94,7 +94,7 @@ import{a as Hn,b as X3,c as kr,d as c,e as V}from"./chunks/zn.UBLZO6CI.js";var a
94
94
  aria-label="tooltip">
95
95
  <slot name="content">${this.content}</slot>
96
96
  </div>
97
- </zn-popup>`}};Mt.styles=_(Tv),c([B("slot:not([name])")],Mt.prototype,"defaultSlot",2),c([B(".tooltip__body")],Mt.prototype,"body",2),c([B("zn-popup")],Mt.prototype,"popup",2),c([p()],Mt.prototype,"content",2),c([p()],Mt.prototype,"placement",2),c([p({type:Boolean,reflect:!0})],Mt.prototype,"disabled",2),c([p({type:Number})],Mt.prototype,"distance",2),c([p({type:Boolean,reflect:!0})],Mt.prototype,"open",2),c([p({type:Number})],Mt.prototype,"skidding",2),c([p()],Mt.prototype,"trigger",2),c([p({type:Boolean})],Mt.prototype,"hoist",2),c([W("open",{waitUntilFirstUpdate:!0})],Mt.prototype,"handleOpenChange",1),c([W(["content","distance","hoist","placement","skidding"])],Mt.prototype,"handleOptionsChange",1),c([W("disabled")],Mt.prototype,"handleDisabledChange",1);var gi=Mt;Mt.define("zn-tooltip");var Rd=k`:host,html,body{color:rgba(var(--zn-text),var(--zn-text-opacity));font-family:var(--zn-font-family-sans);font-feature-settings:normal;font-variation-settings:normal;font-size:var(--zn-text-paragraph-font-size);-webkit-text-size-adjust:100%;-webkit-tap-highlight-color:rgba(0,0,0,0);-moz-tab-size:4;-o-tab-size:4;tab-size:4;margin:0}html,body{background-color:rgba(var(--zn-body),var(--zn-bg-opacity));container-type:size;min-height:100%;height:100%}.inline-container{container-type:inline-size}.app-container{container-type:normal;display:flex;flex:1;flex-direction:column;position:relative;max-height:100%;height:100%;width:100%;max-width:100%}.inline-app-container,.app-container.inline-app-container,[inline-container] .app-container{display:block;height:auto;flex:unset}hr{height:0;border:none;border-top:1px solid rgb(var(--zn-border-color))}code,kbd,samp,pre,.mono{font-family:var(--zn-font-family-mono);font-size:1em}small{font-size:80%}.hidden{display:none !important}.visibility-hidden{visibility:hidden}p{font-size:var(--zn-text-paragraph-font-size);line-height:var(--zn-text-paragraph-line-height);font-weight:var(--zn-text-paragraph-font-weight)}h1,h2,h3,h4,h5,h6{color:rgb(var(--zn-text-heading))}h1{font-size:var(--zn-text-h1-font-size);line-height:var(--zn-text-h1-line-height);font-weight:var(--zn-text-h1-font-weight)}h2{font-size:var(--zn-text-h2-font-size);line-height:var(--zn-text-h2-line-height);font-weight:var(--zn-text-h2-font-weight)}h3,h4,h5,h6{font-size:var(--zn-text-h3-font-size);line-height:var(--zn-text-h3-line-height);font-weight:var(--zn-text-h3-font-weight)}kbd{font-family:monospace;background-color:#eee;color:#333;border:1px solid rgb(var(--zn-border-color));border-radius:3px;box-shadow:0 1px 1px rgba(0,0,0,0.2),0 1px 0 0 rgba(255,255,255,0.5) inset;display:inline-block;font-size:13px;line-height:20px;padding:1px 6px;white-space:nowrap;min-width:15px;color:rgba(0,0,0,0.5)}:root[m=dark] kbd,[t=dark] kbd,.theme-dark kbd{background-color:rgb(25,25,25);box-shadow:0 1px 1px rgba(0,0,0,0.2),0 1px 0 0 rgba(110,110,110,0.5) inset;color:#eee}[tab]{cursor:pointer}.zn-link:hover{--zn-text:rgb(var(--zn-primary));--icon-color:rgb(var(--zn-primary));--zn-text-heading:rgb(var(--zn-primary));--property-color:rgb(var(--zn-primary));opacity:1}.grow{flex-grow:1}.no-grow{flex-grow:0}.shrink{flex-shrink:1}.no-shrink{flex-shrink:0}.block{display:block}.flex{display:flex}.flex-wrap{display:flex;flex-wrap:wrap}.flex-col{display:flex;flex-direction:column}.flex-mid{display:flex;align-items:center}.flex-jc{justify-content:center}.flex-between{display:flex;justify-content:space-between}.flex-end{display:flex;justify-content:flex-end}.flex-bottom{display:flex;align-items:flex-end}.equal{flex-basis:50%}.m-auto{margin:auto}.mt-auto{margin-top:auto}.zn-pad{padding:var(--zn-base-gap,0)}.zn-pad-y,.zn-py{padding-top:16px;padding-bottom:16px}.zn-pad-x,.zn-px{padding-left:16px;padding-right:16px}.zn-pr{padding-right:16px}.zn-pl{padding-left:16px}.zn-pt{padding-top:16px}.zn-pb{padding-bottom:16px}.zn-margin{margin:16px}.zn-mx{margin-left:16px;margin-right:16px}.zn-my{margin-top:16px;margin-bottom:16px}.zn-mt{margin-top:16px}.zn-mb{margin-bottom:16px}.zn-ml{margin-left:16px}.zn-mr{margin-right:16px}.zn-mxa{margin-left:auto;margin-right:auto}.zn-mya{margin-top:auto;margin-bottom:auto}.zn-mta{margin-top:auto}.zn-mba{margin-bottom:auto}.zn-mla{margin-left:auto}.zn-mra{margin-right:auto}.rotate-45{transform:rotate(45deg)}.rotate-90{transform:rotate(90deg)}.rotate-180{transform:rotate(180deg)}@keyframes act-vanish{from{transform:scale(1);opacity:1;max-height:100%}to{transform:scale(0.8);opacity:0;max-height:0}}.act-vanish{animation:ease-in act-vanish 600ms forwards;transform-origin:top center;background-color:rgba(var(--zn-color-error),0.3);display:block;overflow:hidden}.h-full{height:100%}.w-full{width:100%}.zn-panel-bg{--zn-page-surface-background:var(--zn-panel);background-color:rgba(var(--zn-panel),var(--zn-panel-opacity))}.zn-panel{background-color:rgba(var(--zn-panel),var(--zn-panel-opacity));border:1px solid rgb(var(--zn-border-color));border-radius:var(--zn-border-radius);--zn-page-surface-background:var(--zn-panel)}.zn-container{display:flex;flex-direction:column;flex-grow:1;max-height:100%;overflow:hidden}.tar{text-align:right}.tal{text-align:left}.tac{text-align:center}.zn-empty-hide:empty{display:none}.ml-auto{margin-left:auto}.zn-b-dash{border-style:dashed}.zn-b-dotted{border-style:dotted}.zn-border{border-style:solid;border-width:1px}.zn-bt{border-top-style:solid;border-top-width:1px}.zn-bb{border-bottom-style:solid;border-bottom-width:1px}.zn-bl{border-left-style:solid;border-left-width:1px}.zn-br{border-right-style:solid;border-right-width:1px}.unifi-action{display:flex;gap:10px;padding:10px 0;align-items:center}.zn-panel-bar{border-bottom:1px solid rgb(var(--zn-border-color));background-color:rgba(var(--zn-panel),0.9);padding:var(--zn-base-px);gap:var(--zn-base-px);display:flex;flex-wrap:wrap;align-items:center;z-index:1}.zn-panel-bar--pill{border-radius:var(--zn-border-radius);border:1px solid rgb(var(--zn-border-color))}.zn-panel-bar--large{padding:var(--zn-base-px) calc(var(--zn-base-gap) + var(--zn-gutter));gap:var(--zn-base-px);height:50px;flex-wrap:nowrap;overflow-x:auto;overflow-y:hidden;scrollbar-width:thin;scrollbar-color:rgba(var(--inverse-base),0.2) transparent}.zn-panel-bar--large::-webkit-scrollbar{width:5px;height:5px}.zn-panel-bar--large::-webkit-scrollbar-track{background:transparent}.zn-panel-bar--large::-webkit-scrollbar-thumb{background:rgba(var(--inverse-base),0.2);border-radius:5px}.zn-panel-bar--large::-webkit-scrollbar-thumb:hover{background:rgba(var(--inverse-base),0.6)}.scroll-container{overflow:auto;flex-grow:1;position:relative;display:flex;flex-direction:column;max-height:100%}.zn-divide{display:flex;flex-direction:column}.zn-divide>*:not(:first-child){border-top:1px solid rgb(var(--zn-border-color))}.zn-divide>div:empty+div:not(:first-child){border-top:0}.zn-divide-y{display:flex;flex-direction:row}.zn-divide-y>*:not(:first-child):not(:empty){border-left:1px solid rgb(var(--zn-border-color))}.zn-c-pad{--zn-pad-spacing:var(--zn-spacing-large)}.zn-c-pad-x>*{padding-left:var(--zn-pad-spacing);padding-right:var(--zn-pad-spacing)}.zn-c-pad-y>*:not(:first-child){padding-top:var(--zn-pad-spacing)}.zn-c-pad-y>*:not(:last-child){padding-bottom:var(--zn-pad-spacing)}.zn-nav.zn-transparent{background:transparent}.zn-nav{background:rgba(var(--zn-panel),var(--zn-panel-opacity));border-right:1px solid rgb(var(--zn-border-color));max-width:320px;height:100%;padding-top:5px}.zn-nav ul{list-style:none;padding-bottom:10px;margin:0;display:flex;flex-direction:column;position:relative}.zn-nav ul:after{content:"";height:1px;left:18px;right:18px;bottom:0;position:absolute;background:rgb(var(--zn-border-color))}.zn-nav ul li a{text-decoration:none;color:rgb(var(--zn-text));display:block;font-weight:500;cursor:pointer}.zn-nav ul li a:hover,.zn-nav ul li a.zn-tb-active{background:rgb(var(--zn-body))}.zn-nav ul li a.zn-tb-active{color:rgb(var(--zn-purple-text))}.zn-nav ul:last-child:after{display:none}.zn-nav strong,.zn-nav li a{padding:10px 20px}.zn-nav strong{display:block;margin-top:10px;font-size:13px;letter-spacing:0.93px;color:rgb(var(--zn-text-heading));font-weight:600;padding-bottom:5px;text-transform:uppercase}@keyframes shimmer-text-sweep{0%{background-position:100% center}100%{background-position:0% center}}@media (prefers-reduced-motion:no-preference){.shimmer-text{--shimmer-base:rgb(var(--zn-text));--shimmer-highlight:rgb(var(--zn-text-heading));--shimmer-core:0.5ch;--shimmer-spread:1.5ch;--shimmer-duration:1.5s;display:inline-block;width:-moz-fit-content;width:fit-content;max-width:100%;background-image:linear-gradient(90deg,transparent calc(50% - var(--shimmer-spread)),var(--shimmer-highlight) calc(50% - var(--shimmer-core)),var(--shimmer-highlight) calc(50% + var(--shimmer-core)),transparent calc(50% + var(--shimmer-spread))),linear-gradient(var(--shimmer-base),var(--shimmer-base));background-size:250% 100%,auto;background-clip:text;-webkit-background-clip:text;-webkit-text-fill-color:transparent !important;color:transparent !important;animation:var(--shimmer-duration) linear infinite shimmer-text-sweep}.shimmer-text.zn-error{--shimmer-base:rgb(var(--zn-color-error));--shimmer-highlight:color-mix(in srgb,rgb(var(--zn-color-error)) 55%,white)}.shimmer-text.zn-success{--shimmer-base:rgb(var(--zn-color-success));--shimmer-highlight:color-mix(in srgb,rgb(var(--zn-color-success)) 55%,white)}.shimmer-text.zn-info{--shimmer-base:rgb(var(--zn-color-info));--shimmer-highlight:color-mix(in srgb,rgb(var(--zn-color-info)) 55%,white)}.shimmer-text.zn-warning{--shimmer-base:rgb(var(--zn-color-warning));--shimmer-highlight:color-mix(in srgb,rgb(var(--zn-color-warning)) 55%,white)}.shimmer-text.zn-primary{--shimmer-base:rgb(var(--zn-primary));--shimmer-highlight:color-mix(in srgb,rgb(var(--zn-primary)) 55%,white)}.shimmer-text.zn-accent{--shimmer-base:rgb(var(--zn-accent));--shimmer-highlight:color-mix(in srgb,rgb(var(--zn-accent)) 55%,white)}}@media (prefers-reduced-motion:reduce){.shimmer-text{color:rgb(var(--zn-text))}.shimmer-text.zn-error{color:rgb(var(--zn-color-error)) !important}.shimmer-text.zn-success{color:rgb(var(--zn-color-success)) !important}.shimmer-text.zn-info{color:rgb(var(--zn-color-info)) !important}.shimmer-text.zn-warning{color:rgb(var(--zn-color-warning)) !important}.shimmer-text.zn-primary{color:rgb(var(--zn-primary)) !important}.shimmer-text.zn-accent{color:rgb(var(--zn-accent)) !important}}*,*::before,*::after{box-sizing:border-box}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}a{color:inherit;text-decoration:inherit}strong{font-weight:bolder}b{font-weight:600}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-0.25em}sup{top:-0.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:inline-block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}@keyframes rotate-gradient{from{--rotate:0deg}to{--rotate:360deg}}button,.zn-button{border-radius:var(--zn-button-border-radius,var(--zn-border-radius));display:inline-flex;align-items:center;justify-content:center;padding:var(--zn-base-px);margin:auto;width:-moz-fit-content;width:fit-content;background-color:rgb(var(--zn-primary));color:rgba(var(--zn-color-on-primary,255,255,255),0.9);font-size:var(--zn-text-button-label-font-size);font-weight:var(--zn-text-button-label-font-weight);line-height:var(--zn-text-button-label-line-height);text-transform:var(--zn-text-button-label-transform);cursor:pointer;vertical-align:middle;border-color:transparent;white-space:nowrap;max-height:36px;height:36px;min-height:36px}button:hover:not([disabled]),.zn-button:hover:not([disabled]){background-color:rgba(var(--zn-primary),0.8)}input[type=date],input[type=datetime-local],input[type=email],input[type=month],input[type=number],input[type=password],input[type=search],input[type=tel],input[type=text],input[type=time],input[type=url],input[type=week],input[type=file],input[list],textarea,select{display:block;width:100%;border-radius:5px;border-style:solid;border-width:1px;border-color:rgb(var(--zn-border-color));background-color:rgb(var(--zn-input-bg));outline:none}input[type=date]:focus,input[type=datetime-local]:focus,input[type=email]:focus,input[type=month]:focus,input[type=number]:focus,input[type=password]:focus,input[type=search]:focus,input[type=tel]:focus,input[type=text]:focus,input[type=time]:focus,input[type=url]:focus,input[type=week]:focus,input[type=file]:focus,input[list]:focus,textarea:focus,select:focus{border-color:rgb(var(--zn-primary));box-shadow:0 0 0 3px rgba(var(--zn-primary),0.3)}input[type=date]::-moz-placeholder, input[type=datetime-local]::-moz-placeholder, input[type=email]::-moz-placeholder, input[type=month]::-moz-placeholder, input[type=number]::-moz-placeholder, input[type=password]::-moz-placeholder, input[type=search]::-moz-placeholder, input[type=tel]::-moz-placeholder, input[type=text]::-moz-placeholder, input[type=time]::-moz-placeholder, input[type=url]::-moz-placeholder, input[type=week]::-moz-placeholder, input[type=file]::-moz-placeholder, input[list]::-moz-placeholder, textarea::-moz-placeholder, select::-moz-placeholder{font-weight:400;color:rgba(var(--zn-text),0.6)}input[type=date]::placeholder,input[type=datetime-local]::placeholder,input[type=email]::placeholder,input[type=month]::placeholder,input[type=number]::placeholder,input[type=password]::placeholder,input[type=search]::placeholder,input[type=tel]::placeholder,input[type=text]::placeholder,input[type=time]::placeholder,input[type=url]::placeholder,input[type=week]::placeholder,input[type=file]::placeholder,input[list]::placeholder,textarea::placeholder,select::placeholder{font-weight:400;color:rgba(var(--zn-text),0.6)}@media (min-width:360px){input[type=date],input[type=datetime-local],input[type=email],input[type=month],input[type=number],input[type=password],input[type=search],input[type=tel],input[type=text],input[type=time],input[type=url],input[type=week],input[type=file],input[list],textarea,select{padding:8px}}label{font-weight:600;font-size:rgb(var(--zn-font-size-medium));line-height:var(--zn-spacing-medium);color:rgb(var(--zn-text-heading));display:block;margin-bottom:4px;margin-top:16px}input[type=checkbox],input[type=radio]{border-radius:5px}input[type=radio]{border-radius:50%}input[type=range]{-webkit-appearance:none;-moz-appearance:none;appearance:none;border-radius:10px;background-color:rgb(var(--zn-border-color));height:8px;accent-color:rgb(var(--zn-primary));width:100%;max-width:768px}fieldset{border-color:rgba(var(--zn-primary),20%);border-width:2px;padding:0 16px 16px}select option{padding:4px}select>option:checked{background-color:rgba(var(--zn-primary),20%);border-radius:5px}fieldset>legend{padding:4px}input[type=button],input[type=submit],button[type=submit]:not(.button),button[type=button]:not(.button){border-radius:var(--zn-button-border-radius,var(--zn-border-radius));display:inline-flex;align-items:center;justify-content:center;padding:var(--zn-base-px);margin:auto;width:-moz-fit-content;width:fit-content;background-color:rgb(var(--zn-primary));color:rgba(var(--zn-color-on-primary,255,255,255),0.9);font-size:var(--zn-text-button-label-font-size);font-weight:var(--zn-text-button-label-font-weight);line-height:var(--zn-text-button-label-line-height);text-transform:var(--zn-text-button-label-transform);cursor:pointer;vertical-align:middle;border-color:transparent;white-space:nowrap;max-height:36px;height:36px;min-height:36px}input[type=button]:hover:not([disabled]),input[type=submit]:hover:not([disabled]),button[type=submit]:not(.button):hover:not([disabled]),button[type=button]:not(.button):hover:not([disabled]){background-color:rgba(var(--zn-primary),0.8)}input[type=button],input[type=submit],button[type=submit]:not(.button),button[type=button]:not(.button){width:auto}div+button{margin-top:16px}input[type=file]::-webkit-file-upload-button{border-radius:var(--zn-button-border-radius,var(--zn-border-radius));display:inline-flex;align-items:center;justify-content:center;padding:var(--zn-base-px);margin:auto;width:fit-content;background-color:rgb(var(--zn-primary));color:rgba(var(--zn-color-on-primary,255,255,255),0.9);font-size:var(--zn-text-button-label-font-size);font-weight:var(--zn-text-button-label-font-weight);line-height:var(--zn-text-button-label-line-height);text-transform:var(--zn-text-button-label-transform);cursor:pointer;vertical-align:middle;border-color:transparent;white-space:nowrap;max-height:36px;height:36px;min-height:36px}input[type=file]::-webkit-file-upload-button:hover:not([disabled]){background-color:rgba(var(--zn-primary),0.8)}input[type=file]::-webkit-file-upload-button{margin-right:8px}input::-webkit-calendar-picker-indicator{cursor:pointer;padding:8px}input[list]::-webkit-calendar-picker-indicator{padding:8px 4px}.input--with-icon{position:relative}.input--with-icon zn-icon{padding:14px;position:absolute;top:50%;pointer-events:none;transform:translateY(-50%);left:8px;background-color:rgb(var(--zn-primary));color:rgb(var(--zn-text));border-radius:50%}.input--with-icon input{padding-left:40px}input:-webkit-autofill,input:-webkit-autofill:hover,input:-webkit-autofill:focus,input:-webkit-autofill:active{-webkit-background-clip:text;-webkit-text-fill-color:rgb(var(--zn-text));-webkit-transition:background-color 5000s ease-in-out 0s;transition:background-color 5000s ease-in-out 0s;box-shadow:inset 0 0 20px 20px rgba(35,35,35,0.1607843137)}select{height:43px}.no-border{border:none !important}table:not(.remarkd-table){border-collapse:separate !important;border-spacing:0;width:100%;max-width:100%;table-layout:auto;text-align:left;font-family:var(--zn-font-sans);font-size:var(--zn-text-table-content-font-size);font-weight:var(--zn-text-table-content-font-weight);line-height:var(--zn-text-table-content-line-height);color:var(--zn-text-table-content-color);text-transform:var(--zn-text-table-content-transform);letter-spacing:var(--zn-text-table-content-letter-spacing,normal)}table:not(.remarkd-table) thead{font-weight:var(--zn-font-weight-medium)}table:not(.remarkd-table) thead tr th{background-color:rgb(var(--zn-table-header-background-color))}table:not(.remarkd-table) tbody a{cursor:pointer;color:rgb(var(--zn-primary))}table:not(.remarkd-table) tbody tr td{border-top:1px solid rgb(var(--zn-border-color)) !important}table:not(.remarkd-table) tbody tr:first-of-type td{border-top:0 !important}table:not(.remarkd-table) th,table:not(.remarkd-table) td{padding:var(--zn-spacing-small) var(--zn-spacing-medium);min-width:90px;white-space:nowrap}table:not(.remarkd-table) td>span{white-space:normal}table:not(.remarkd-table) th{font-family:var(--zn-font-sans);font-size:var(--zn-text-button-label-font-size);font-weight:var(--zn-text-button-label-font-weight);line-height:var(--zn-text-button-label-line-height);color:var(--zn-text-button-label-color);text-transform:var(--zn-text-button-label-transform);letter-spacing:var(--zn-text-button-label-letter-spacing,normal);text-transform:capitalize;border-bottom:1px solid rgb(var(--zn-border-color))}.zn-table-fixed{table-layout:fixed}.opacity-100{opacity:1}.opacity-90{opacity:0.9}.opacity-80{opacity:0.8}.opacity-60{opacity:0.6}.opacity-50{opacity:0.5}.opacity-40{opacity:0.4}.opacity-10{opacity:0.1}`;var $v=k`@keyframes rotate-gradient{from{--rotate:0deg}to{--rotate:360deg}}:host{text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-transform:none}*,*::before,*::after{box-sizing:border-box;border-width:0;border-style:solid;border-color:rgb(var(--zn-border-color))}[hidden]{display:none !important}.width-container,.form-container,.wide-form-container{height:100%;width:100%;margin:var(--zn-default-margin,0 auto)}.width-container{max-width:var(--zn-container)}.form-container{max-width:var(--zn-container-ph)}.wide-form-container{max-width:var(--zn-container-lg)}:host{display:inline-block;position:relative;width:auto;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none}:host button,:host a{width:100%}.button{border-radius:var(--zn-button-border-radius,var(--zn-border-radius));display:inline-flex;align-items:center;justify-content:center;padding:var(--zn-base-px);margin:auto;width:-moz-fit-content;width:fit-content;background-color:rgb(var(--zn-primary));color:rgba(var(--zn-color-on-primary,255,255,255),0.9);font-size:var(--zn-text-button-label-font-size);font-weight:var(--zn-text-button-label-font-weight);line-height:var(--zn-text-button-label-line-height);text-transform:var(--zn-text-button-label-transform);cursor:pointer;vertical-align:middle;border-color:transparent;white-space:nowrap;max-height:36px;height:36px;min-height:36px}.button:hover:not([disabled]){background-color:rgba(var(--zn-primary),0.8)}.button{--btn-color:var(--zn-primary);--btn-ink:var(--zn-color-on-primary,255,255,255);--notification-color:rgb(var(--zn-color-error));border-width:var(--zn-button-border-width,1px);border-top-width:var(--zn-button-border-top-width,var(--zn-button-border-width,1px));border-right-width:var(--zn-button-border-right-width,var(--zn-button-border-width,1px));border-bottom-width:var(--zn-button-border-bottom-width,var(--zn-button-border-width,1px));border-left-width:var(--zn-button-border-left-width,var(--zn-button-border-width,1px));border-color:var(--zn-button-border-color,transparent);display:inline-flex;position:relative}.button.button--info{--btn-color:var(--zn-color-info);--btn-ink:var(--zn-color-on-info,255,255,255)}.button.button--error{--btn-color:var(--zn-color-error);--btn-ink:var(--zn-color-on-error,255,255,255)}.button.button--warning{--btn-color:var(--zn-color-warning);--btn-ink:var(--zn-color-on-warning,255,255,255)}.button.button--success{--btn-color:var(--zn-color-success);--btn-ink:var(--zn-color-on-success,255,255,255)}.button__label--hidden{visibility:hidden}.button zn-icon{--icon-color:currentColor}.button.button--muted-notification{--notification-color:rgb(var(--zn-color-info))}.button--has-notification{position:relative;overflow:visible}.button--has-notification::after{content:attr(data-notification);position:absolute;display:flex;justify-content:center;align-items:center;top:-4px;left:auto;inset-inline-end:-4px;box-sizing:border-box;min-width:13px;height:13px;padding:0 3px;border-radius:999px;font-size:var(--zn-text-notification-font-size);font-weight:var(--zn-text-notification-font-weight);line-height:var(--zn-text-notification-line-height);color:var(--zn-text-notification-color);background-color:var(--notification-color)}.button--has-notification.button--notification-dot::after{content:"";min-width:0;width:8px;height:8px;padding:0;border-radius:50%}.button::-moz-focus-inner{border:0}.button:focus{outline:none}.button:focus-visible{outline:2px solid rgb(var(--btn-color));outline-offset:calc(var(--zn-focus-ring-outset) - 2px)}[disabled]{cursor:not-allowed;opacity:0.5}[disabled] *{pointer-events:none}.button--standard.button--secondary{background-color:var(--zn-color-neutral-50);border-color:var(--zn-button-border-color,var(--zn-color-neutral-50));color:rgb(var(--zn-primary))}.button--standard.button--secondary:hover:not([disabled]){background-color:var(--zn-color-neutral-100)}.button--standard.button--secondary:active:not([disabled]){background-color:var(--zn-color-neutral-100)}.button--standard{background-color:rgba(var(--btn-color));border-color:var(--zn-button-border-color,rgb(var(--btn-color)));color:rgba(var(--btn-ink),0.9)}.button--standard:hover:not([disabled]){background-color:rgba(var(--btn-color),0.8)}.button--standard:active:not([disabled]){background-color:rgba(var(--btn-color))}.button--outline{background:none;border-width:var(--zn-button-border-width,1px);border-top-width:var(--zn-button-border-top-width,var(--zn-button-border-width,1px));border-right-width:var(--zn-button-border-right-width,var(--zn-button-border-width,1px));border-bottom-width:var(--zn-button-border-bottom-width,var(--zn-button-border-width,1px));border-left-width:var(--zn-button-border-left-width,var(--zn-button-border-width,1px));border-color:var(--zn-button-border-color,rgb(var(--btn-color)));color:rgb(var(--btn-color))}.button--outline:hover:not([disabled]),.button--outline:active:not([disabled]){background-color:rgb(var(--btn-color));color:rgb(var(--btn-ink))}.button--outline.button--secondary{border-color:var(--zn-button-border-color,var(--zn-color-neutral-100))}.button--outline.button--secondary:hover:not([disabled]),.button--outline.button--secondary:active:not([disabled]){background-color:var(--zn-color-neutral-100);color:rgb(var(--btn-color))}.button--text{background:none;color:rgb(var(--btn-color))}.button--text:hover:not([disabled]),.button--text:active:not([disabled]){background-color:rgba(var(--btn-color),0.1)}.button--text.button--secondary{font-weight:normal}.button--grow{width:100%}.button--with-icon.button--with-content:not(.button--icon-button){--icon-optical-inset:calc(var(--button-icon-size,20px) / 12);--icon-gap:calc(var(--zn-base-px) - var(--icon-optical-inset))}.button--with-icon.button--with-content:not(.button--icon-button).button--icon-left zn-icon{margin-left:calc(var(--icon-optical-inset) * -1);margin-right:var(--icon-gap)}.button--with-icon.button--with-content:not(.button--icon-button).button--icon-right zn-icon{margin-left:var(--icon-gap);margin-right:calc(var(--icon-optical-inset) * -1)}.button--square{border-radius:0}.button--transparent{background-color:transparent;border-color:var(--zn-button-border-color,transparent) !important;color:inherit}.button--transparent:hover:not([disabled]){background-color:rgba(var(--zn-primary),0.1)}.button--transparent:active:not([disabled]){background-color:rgba(var(--zn-primary),0.2)}.button--star{--btn-color:var(--zn-orange);--btn-ink:var(--zn-color-on-warning,255,255,255);background-color:rgb(var(--btn-color));border-color:var(--zn-button-border-color,rgb(var(--btn-color)));color:rgb(var(--btn-ink));opacity:1 !important}.button--star:hover:not([disabled]){background-color:rgb(var(--btn-color))}.button--star:active{background-color:rgb(var(--btn-color))}.button--star.button--outline{background-color:transparent;border-color:var(--zn-button-border-color,rgb(var(--btn-color)));color:rgb(var(--btn-color))}.button--star.button--outline:hover:not([disabled]),.button--star.button--outline:active:not([disabled]){background-color:rgba(var(--btn-color));color:rgb(var(--btn-ink))}.button.button--icon-button{--icon-button-color:rgb(var(--zn-text));--icon-button-hover-color:rgb(var(--zn-primary));width:40px;min-width:40px;height:36px;min-height:36px;max-height:36px;padding:6px;margin:0;background:rgb(var(--zn-panel));border-color:var(--zn-button-border-color,rgb(var(--zn-border-color))) !important;border-radius:var(--zn-border-radius);color:var(--icon-button-color);font-weight:inherit;line-height:0}.button.button--icon-button zn-icon,.button.button--icon-button ::slotted(zn-icon){--icon-color:currentColor;color:inherit;line-height:0}.button.button--icon-button:hover:not([disabled]),.button.button--icon-button:active:not([disabled]){background:rgba(var(--zn-color-tab),0.5)}.button.button--icon-button.button--icon-button-small{width:36px;min-width:36px}.button.button--icon-button.button--icon-button-round{width:36px;min-width:36px;padding:8px;background:rgb(var(--zn-color-tab));border-color:var(--zn-button-border-color,transparent) !important;border-radius:var(--zn-border-radius-circle)}.button.button--icon-button.button--icon-button-round:hover:not([disabled]),.button.button--icon-button.button--icon-button-round:active:not([disabled]){background:rgb(var(--zn-color-border))}.button.button--icon-button.button--plain{background:transparent;border-color:var(--zn-button-border-color,transparent) !important}.button.button--icon-button.button--plain:hover:not([disabled]),.button.button--icon-button.button--plain:active:not([disabled]){background:rgb(var(--zn-color-tab))}.button.button--icon-button.button--no-hover:hover:not([disabled]),.button.button--icon-button.button--no-hover:active:not([disabled]){background:rgb(var(--zn-panel))}.button.button--icon-button.button--no-hover.button--icon-button-round:hover:not([disabled]),.button.button--icon-button.button--no-hover.button--icon-button-round:active:not([disabled]){background:rgb(var(--zn-color-tab))}.button.button--icon-button.button--no-hover.button--plain:hover:not([disabled]),.button.button--icon-button.button--no-hover.button--plain:active:not([disabled]){background:transparent}.button.button--icon-button.button--has-notification::after{--icon-inset:calc((100% - var(--notification-icon-size,20px)) / 2);top:calc(var(--icon-inset) - 4px);inset-inline-end:calc(var(--icon-inset) - 4px);transform:translate(50%,-50%)}.button--loading-bg-transparent{background-color:transparent}.button--loading-fill{pointer-events:none;position:absolute;z-index:1;background-color:rgba(var(--btn-color),0.85);border-radius:inherit;transition:width 0s;animation:loading-fill-grow var(--loading-duration,2s) linear forwards;inset:-1px}.button--loading-fill-transparent{background-color:rgba(var(--zn-primary),0.1)}.button--loading-container{position:absolute;top:0;left:0;width:100%;height:100%;display:flex;align-items:center;justify-content:center;pointer-events:none}.button--loading-text{z-index:5;width:100%;height:100%;display:flex;align-items:center;justify-content:center;font-size:inherit;font-weight:inherit;-webkit-user-select:none;-moz-user-select:none;user-select:none;position:absolute;pointer-events:none;color:inherit}.button--loading-text .loading-countdown{margin-left:3px}.button--loading-text-left{justify-content:flex-start;padding-inline-start:7px}.button--loading-text-right{justify-content:flex-end;padding-inline-end:7px}.button--relative-wrapper{position:relative;display:inline-flex;height:100%;width:100%}@keyframes loading-fill-grow{from{width:0}to{width:100%}}:host([vertical-align=center]){align-self:center}:host([vertical-align=end]){align-self:end}:host([vertical-align=start]){align-self:start}:host([grow]){width:100%}:host([grow]) button{width:100%}:host([data-zn-button-group__button--grow]){flex-grow:1;flex-basis:0}:host([data-zn-button-group__button--inner]) .button{border-radius:0 !important;border-left:0 !important;border-right:0 !important}:host([data-zn-button-group__button]:not([data-zn-button-group__button--first])) .button:after{content:"";position:absolute;top:0;inset-inline-start:0;bottom:0;border-left:solid 1px;color:rgba(var(--zn-border-color),0.85)}:host([data-zn-button-group__button]:focus-within){z-index:1}:host([data-zn-button-group__button--first]:not([data-zn-button-group__button--last])) .button{border-radius:5px 0 0 5px !important;border-right:0 !important}:host([data-zn-button-group__button--last]:not([data-zn-button-group__button--first])) .button{border-radius:0 5px 5px 0 !important;border-left:0 !important}.button.button--pill{border-radius:var(--zn-border-radius-pill);padding:0 var(--zn-spacing-small);height:32px;min-height:32px;font-weight:var(--zn-font-weight-normal);text-transform:none;white-space:nowrap}.button--panel-bg{background:rgb(var(--zn-panel));border-color:var(--zn-button-border-color,rgb(var(--zn-border-color)));color:rgb(var(--zn-text))}.button--panel-bg:hover:not([disabled]),.button--panel-bg:active:not([disabled]){background:rgba(var(--zn-color-tab),0.5)}`;var ae=class extends S{constructor(){super(...arguments);this.formControlController=new re(this);this.hasSlotController=new Y(this,"[default]");this._loadingState={countdown:null,interval:void 0};this.color="default";this.text=!1;this.outline=!1;this.disabled=!1;this.grow=!1;this.square=!1;this.iconButton=!1;this.plain=!1;this.noHover=!1;this.pill=!1;this.panelBackground=!1;this.dropdownCloser=!1;this.mutedNotifications=!1;this.content="";this.icon="";this.gaid="";this.iconPosition="left";this.rel="noreferrer noopener";this.autoClick=!1;this.autoClickDelay=2e3;this.loadingText="Loading...";this.loadingTextPosition="center";this.loading=!1;this.handleClick=()=>{if(!this.disabled){if(this.dropdownCloser){let t=null,r=this,n=0,a=30;for(;r&&n<a;){if(r instanceof ur){t=r;break}r=r.parentElement||(r.getRootNode()instanceof ShadowRoot?r.getRootNode().host:null),n++}t?.hide()}this.type==="submit"&&this.formControlController.submit(),this.type==="reset"&&this.formControlController.reset()}}}get validity(){return this._isButton()&&this.button?this.button.validity:et}get validationMessage(){return this._isButton()&&this.button?this.button.validationMessage:""}firstUpdated(){this._isButton()&&this.formControlController.updateValidity()}disconnectedCallback(){super.disconnectedCallback(),this.teardownAutoClick()}async handleAutoClickChange(t,r){r?(await this.updateComplete,this.setupAutoClick()):this.teardownAutoClick()}updated(t){if(super.updated(t),this.button){let r=this.button.querySelector(".button--loading-fill");if(r&&r.remove(),this.loading){let n=`${this.autoClickDelay/1e3}s`,a=document.createElement("div");a.classList.add("button--loading-fill"),a.setAttribute("style",`--loading-duration: ${n}`),this.button.classList.contains("button--transparent")&&(a.classList.add("button--loading-fill-transparent"),this.button.classList.add("button--loading-bg-transparent")),this.button.prepend(a),this.button.classList.add("button--loading-bg")}else this.button.classList.remove("button--loading-bg"),this.button.classList.remove("button--loading-bg-transparent");this.updateCountdownText()}}checkValidity(){return this._isButton()&&this.button?this.button.checkValidity():!0}getForm(){return this.formControlController.getForm()}reportValidity(){return this._isButton()&&this.button?this.button.reportValidity():!0}setCustomValidity(t){this._isButton()&&(this.button.setCustomValidity(t),this.formControlController.updateValidity())}click(){this.handleClick()}_isLink(){return this.href!==void 0}_isButton(){return!this._isLink()}getIconButtonColor(t){switch(t){case void 0:case"":case"default":return"rgb(var(--zn-text))";case"primary":return"rgb(var(--zn-primary))";case"secondary":return"rgb(var(--zn-text))";case"error":return"rgb(var(--zn-color-error))";case"info":return"rgb(var(--zn-color-info))";case"success":return"rgb(var(--zn-color-success))";case"warning":return"rgb(var(--zn-color-warning))";case"transparent":return"inherit";case"star":return"rgb(var(--zn-orange))";default:return t}}setupAutoClick(){this.button&&(this._autoClickTimeout&&(window.clearTimeout(this._autoClickTimeout),this._autoClickTimeout=void 0),this._loadingState.interval&&(window.clearInterval(this._loadingState.interval),this._loadingState.interval=void 0),this.loading=!0,this._loadingState.countdown=Math.ceil(this.autoClickDelay/1e3),this.updateCountdownText(),this._loadingState.interval=window.setInterval(()=>{this._loadingState.countdown&&this._loadingState.countdown>0&&(this._loadingState.countdown--,this.updateCountdownText())},1e3),this._autoClickTimeout=window.setTimeout(()=>{this.loading=!1,this._loadingState.countdown=null,this.updateCountdownText(),this._loadingState.interval&&(window.clearInterval(this._loadingState.interval),this._loadingState.interval=void 0),this.button?.click()},this.autoClickDelay))}updateCountdownText(){let t=this._loadingState.countdown&&this._loadingState.countdown>0?` (${this._loadingState.countdown}s)`:"";if(this.countdownContainer)for(let r of this.countdownContainer)r.textContent=t}teardownAutoClick(){this._autoClickTimeout&&(window.clearTimeout(this._autoClickTimeout),this._autoClickTimeout=void 0),this._loadingState.interval&&(window.clearInterval(this._loadingState.interval),this._loadingState.interval=void 0),this.loading=!1,this._loadingState.countdown=null,this.button&&(this.button.style.width="")}render(){let t=this._isLink(),r=this.loading&&this.autoClick,n=this.iconSize?this.iconSize:20,a=this.icon&&!this.loading?Ce`
97
+ </zn-popup>`}};Mt.styles=_(Tv),c([B("slot:not([name])")],Mt.prototype,"defaultSlot",2),c([B(".tooltip__body")],Mt.prototype,"body",2),c([B("zn-popup")],Mt.prototype,"popup",2),c([p()],Mt.prototype,"content",2),c([p()],Mt.prototype,"placement",2),c([p({type:Boolean,reflect:!0})],Mt.prototype,"disabled",2),c([p({type:Number})],Mt.prototype,"distance",2),c([p({type:Boolean,reflect:!0})],Mt.prototype,"open",2),c([p({type:Number})],Mt.prototype,"skidding",2),c([p()],Mt.prototype,"trigger",2),c([p({type:Boolean})],Mt.prototype,"hoist",2),c([W("open",{waitUntilFirstUpdate:!0})],Mt.prototype,"handleOpenChange",1),c([W(["content","distance","hoist","placement","skidding"])],Mt.prototype,"handleOptionsChange",1),c([W("disabled")],Mt.prototype,"handleDisabledChange",1);var gi=Mt;Mt.define("zn-tooltip");var Rd=k`:host,html,body{color:rgba(var(--zn-text),var(--zn-text-opacity));font-family:var(--zn-font-family-sans);font-feature-settings:normal;font-variation-settings:normal;font-size:var(--zn-text-paragraph-font-size);-webkit-text-size-adjust:100%;-webkit-tap-highlight-color:rgba(0,0,0,0);-moz-tab-size:4;-o-tab-size:4;tab-size:4;margin:0}html,body{background-color:rgba(var(--zn-body),var(--zn-bg-opacity));container-type:size;min-height:100%;height:100%}.inline-container{container-type:inline-size}.app-container{container-type:normal;display:flex;flex:1;flex-direction:column;position:relative;max-height:100%;height:100%;width:100%;max-width:100%}.inline-app-container,.app-container.inline-app-container,[inline-container] .app-container{display:block;height:auto;flex:unset}hr{height:0;border:none;border-top:1px solid rgb(var(--zn-border-color))}code,kbd,samp,pre,.mono{font-family:var(--zn-font-family-mono);font-size:1em}small{font-size:80%}.hidden{display:none !important}.visibility-hidden{visibility:hidden}p{font-size:var(--zn-text-paragraph-font-size);line-height:var(--zn-text-paragraph-line-height);font-weight:var(--zn-text-paragraph-font-weight)}h1,h2,h3,h4,h5,h6{color:rgb(var(--zn-text-heading))}h1{font-size:var(--zn-text-h1-font-size);line-height:var(--zn-text-h1-line-height);font-weight:var(--zn-text-h1-font-weight)}h2{font-size:var(--zn-text-h2-font-size);line-height:var(--zn-text-h2-line-height);font-weight:var(--zn-text-h2-font-weight)}h3,h4,h5,h6{font-size:var(--zn-text-h3-font-size);line-height:var(--zn-text-h3-line-height);font-weight:var(--zn-text-h3-font-weight)}kbd{font-family:monospace;background-color:#eee;color:#333;border:1px solid rgb(var(--zn-border-color));border-radius:3px;box-shadow:0 1px 1px rgba(0,0,0,0.2),0 1px 0 0 rgba(255,255,255,0.5) inset;display:inline-block;font-size:13px;line-height:20px;padding:1px 6px;white-space:nowrap;min-width:15px;color:rgba(0,0,0,0.5)}:root[m=dark] kbd,[t=dark] kbd,.theme-dark kbd{background-color:rgb(25,25,25);box-shadow:0 1px 1px rgba(0,0,0,0.2),0 1px 0 0 rgba(110,110,110,0.5) inset;color:#eee}[tab]{cursor:pointer}.zn-link:hover{--zn-text:rgb(var(--zn-primary));--icon-color:rgb(var(--zn-primary));--zn-text-heading:rgb(var(--zn-primary));--property-color:rgb(var(--zn-primary));opacity:1}.grow{flex-grow:1}.no-grow{flex-grow:0}.shrink{flex-shrink:1}.no-shrink{flex-shrink:0}.block{display:block}.flex{display:flex}.flex-wrap{display:flex;flex-wrap:wrap}.flex-col{display:flex;flex-direction:column}.flex-mid{display:flex;align-items:center}.flex-jc{justify-content:center}.flex-between{display:flex;justify-content:space-between}.flex-end{display:flex;justify-content:flex-end}.flex-bottom{display:flex;align-items:flex-end}.equal{flex-basis:50%}.m-auto{margin:auto}.mt-auto{margin-top:auto}.zn-pad{padding:var(--zn-base-gap,0)}.zn-pad-y,.zn-py{padding-top:16px;padding-bottom:16px}.zn-pad-x,.zn-px{padding-left:16px;padding-right:16px}.zn-pr{padding-right:16px}.zn-pl{padding-left:16px}.zn-pt{padding-top:16px}.zn-pb{padding-bottom:16px}.zn-margin{margin:16px}.zn-mx{margin-left:16px;margin-right:16px}.zn-my{margin-top:16px;margin-bottom:16px}.zn-mt{margin-top:16px}.zn-mb{margin-bottom:16px}.zn-ml{margin-left:16px}.zn-mr{margin-right:16px}.zn-mxa{margin-left:auto;margin-right:auto}.zn-mya{margin-top:auto;margin-bottom:auto}.zn-mta{margin-top:auto}.zn-mba{margin-bottom:auto}.zn-mla{margin-left:auto}.zn-mra{margin-right:auto}.rotate-45{transform:rotate(45deg)}.rotate-90{transform:rotate(90deg)}.rotate-180{transform:rotate(180deg)}@keyframes act-vanish{from{transform:scale(1);opacity:1;max-height:100%}to{transform:scale(0.8);opacity:0;max-height:0}}.act-vanish{animation:ease-in act-vanish 600ms forwards;transform-origin:top center;background-color:rgba(var(--zn-color-error),0.3);display:block;overflow:hidden}.h-full{height:100%}.w-full{width:100%}.zn-panel-bg{--zn-page-surface-background:var(--zn-panel);background-color:rgba(var(--zn-panel),var(--zn-panel-opacity))}.zn-panel{background-color:rgba(var(--zn-panel),var(--zn-panel-opacity));border:1px solid rgb(var(--zn-border-color));border-radius:var(--zn-border-radius);--zn-page-surface-background:var(--zn-panel)}.zn-container{display:flex;flex-direction:column;flex-grow:1;max-height:100%;overflow:hidden}.tar{text-align:right}.tal{text-align:left}.tac{text-align:center}.zn-empty-hide:empty{display:none}.ml-auto{margin-left:auto}.zn-b-dash{border-style:dashed}.zn-b-dotted{border-style:dotted}.zn-border{border-style:solid;border-width:1px}.zn-bt{border-top-style:solid;border-top-width:1px}.zn-bb{border-bottom-style:solid;border-bottom-width:1px}.zn-bl{border-left-style:solid;border-left-width:1px}.zn-br{border-right-style:solid;border-right-width:1px}.unifi-action{display:flex;gap:10px;padding:10px 0;align-items:center}.zn-panel-bar{border-bottom:1px solid rgb(var(--zn-border-color));background-color:rgba(var(--zn-panel),0.9);padding:var(--zn-base-px);gap:var(--zn-base-px);display:flex;flex-wrap:wrap;align-items:center;z-index:1}.zn-panel-bar--pill{border-radius:var(--zn-border-radius);border:1px solid rgb(var(--zn-border-color))}.zn-panel-bar--large{padding:var(--zn-base-px) calc(var(--zn-base-gap) + var(--zn-gutter));gap:var(--zn-base-px);height:50px;flex-wrap:nowrap;overflow-x:auto;overflow-y:hidden;scrollbar-width:thin;scrollbar-color:rgba(var(--inverse-base),0.2) transparent}.zn-panel-bar--large::-webkit-scrollbar{width:5px;height:5px}.zn-panel-bar--large::-webkit-scrollbar-track{background:transparent}.zn-panel-bar--large::-webkit-scrollbar-thumb{background:rgba(var(--inverse-base),0.2);border-radius:5px}.zn-panel-bar--large::-webkit-scrollbar-thumb:hover{background:rgba(var(--inverse-base),0.6)}.scroll-container{overflow:auto;flex-grow:1;position:relative;display:flex;flex-direction:column;max-height:100%}.zn-divide{display:flex;flex-direction:column}.zn-divide>*:not(:first-child){border-top:1px solid rgb(var(--zn-border-color))}.zn-divide>div:empty+div:not(:first-child){border-top:0}.zn-divide-y{display:flex;flex-direction:row}.zn-divide-y>*:not(:first-child):not(:empty){border-left:1px solid rgb(var(--zn-border-color))}.zn-c-pad{--zn-pad-spacing:var(--zn-spacing-large)}.zn-c-pad-x>*{padding-left:var(--zn-pad-spacing);padding-right:var(--zn-pad-spacing)}.zn-c-pad-y>*:not(:first-child){padding-top:var(--zn-pad-spacing)}.zn-c-pad-y>*:not(:last-child){padding-bottom:var(--zn-pad-spacing)}.zn-nav.zn-transparent{background:transparent}.zn-nav{background:rgba(var(--zn-panel),var(--zn-panel-opacity));border-right:1px solid rgb(var(--zn-border-color));max-width:320px;height:100%;padding-top:5px}.zn-nav ul{list-style:none;padding-bottom:10px;margin:0;display:flex;flex-direction:column;position:relative}.zn-nav ul:after{content:"";height:1px;left:18px;right:18px;bottom:0;position:absolute;background:rgb(var(--zn-border-color))}.zn-nav ul li a{text-decoration:none;color:rgb(var(--zn-text));display:block;font-weight:500;cursor:pointer}.zn-nav ul li a:hover,.zn-nav ul li a.zn-tb-active{background:rgb(var(--zn-body))}.zn-nav ul li a.zn-tb-active{color:rgb(var(--zn-purple-text))}.zn-nav ul:last-child:after{display:none}.zn-nav strong,.zn-nav li a{padding:10px 20px}.zn-nav strong{display:block;margin-top:10px;font-size:13px;letter-spacing:0.93px;color:rgb(var(--zn-text-heading));font-weight:600;padding-bottom:5px;text-transform:uppercase}@keyframes shimmer-text-sweep{0%{background-position:100% center}100%{background-position:0% center}}@media (prefers-reduced-motion:no-preference){.shimmer-text{--shimmer-base:rgb(var(--zn-text));--shimmer-highlight:rgb(var(--zn-text-heading));--shimmer-core:0.5ch;--shimmer-spread:1.5ch;--shimmer-duration:1.5s;display:inline-block;width:-moz-fit-content;width:fit-content;max-width:100%;background-image:linear-gradient(90deg,transparent calc(50% - var(--shimmer-spread)),var(--shimmer-highlight) calc(50% - var(--shimmer-core)),var(--shimmer-highlight) calc(50% + var(--shimmer-core)),transparent calc(50% + var(--shimmer-spread))),linear-gradient(var(--shimmer-base),var(--shimmer-base));background-size:250% 100%,auto;background-clip:text;-webkit-background-clip:text;-webkit-text-fill-color:transparent !important;color:transparent !important;animation:var(--shimmer-duration) linear infinite shimmer-text-sweep}.shimmer-text.zn-error{--shimmer-base:rgb(var(--zn-color-error));--shimmer-highlight:color-mix(in srgb,rgb(var(--zn-color-error)) 55%,white)}.shimmer-text.zn-success{--shimmer-base:rgb(var(--zn-color-success));--shimmer-highlight:color-mix(in srgb,rgb(var(--zn-color-success)) 55%,white)}.shimmer-text.zn-info{--shimmer-base:rgb(var(--zn-color-info));--shimmer-highlight:color-mix(in srgb,rgb(var(--zn-color-info)) 55%,white)}.shimmer-text.zn-warning{--shimmer-base:rgb(var(--zn-color-warning));--shimmer-highlight:color-mix(in srgb,rgb(var(--zn-color-warning)) 55%,white)}.shimmer-text.zn-primary{--shimmer-base:rgb(var(--zn-primary));--shimmer-highlight:color-mix(in srgb,rgb(var(--zn-primary)) 55%,white)}.shimmer-text.zn-accent{--shimmer-base:rgb(var(--zn-accent));--shimmer-highlight:color-mix(in srgb,rgb(var(--zn-accent)) 55%,white)}}@media (prefers-reduced-motion:reduce){.shimmer-text{color:rgb(var(--zn-text))}.shimmer-text.zn-error{color:rgb(var(--zn-color-error)) !important}.shimmer-text.zn-success{color:rgb(var(--zn-color-success)) !important}.shimmer-text.zn-info{color:rgb(var(--zn-color-info)) !important}.shimmer-text.zn-warning{color:rgb(var(--zn-color-warning)) !important}.shimmer-text.zn-primary{color:rgb(var(--zn-primary)) !important}.shimmer-text.zn-accent{color:rgb(var(--zn-accent)) !important}}*,*::before,*::after{box-sizing:border-box}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}a{color:inherit;text-decoration:inherit}strong{font-weight:bolder}b{font-weight:600}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-0.25em}sup{top:-0.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:inline-block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}@keyframes rotate-gradient{from{--rotate:0deg}to{--rotate:360deg}}button,.zn-button{border-radius:var(--zn-button-border-radius,var(--zn-border-radius));display:inline-flex;align-items:center;justify-content:center;padding:var(--zn-base-px);margin:auto;width:-moz-fit-content;width:fit-content;background-color:rgb(var(--zn-primary));color:rgba(var(--zn-color-on-primary,255,255,255),0.9);font-size:var(--zn-text-button-label-font-size);font-weight:var(--zn-text-button-label-font-weight);line-height:var(--zn-text-button-label-line-height);text-transform:var(--zn-text-button-label-transform);cursor:pointer;vertical-align:middle;border-color:transparent;white-space:nowrap;max-height:36px;height:36px;min-height:36px}button:hover:not([disabled]),.zn-button:hover:not([disabled]){background-color:rgba(var(--zn-primary),0.8)}input[type=date],input[type=datetime-local],input[type=email],input[type=month],input[type=number],input[type=password],input[type=search],input[type=tel],input[type=text],input[type=time],input[type=url],input[type=week],input[type=file],input[list],textarea,select{display:block;width:100%;border-radius:5px;border-style:solid;border-width:1px;border-color:rgb(var(--zn-border-color));background-color:rgb(var(--zn-input-bg));outline:none}input[type=date]:focus,input[type=datetime-local]:focus,input[type=email]:focus,input[type=month]:focus,input[type=number]:focus,input[type=password]:focus,input[type=search]:focus,input[type=tel]:focus,input[type=text]:focus,input[type=time]:focus,input[type=url]:focus,input[type=week]:focus,input[type=file]:focus,input[list]:focus,textarea:focus,select:focus{border-color:rgb(var(--zn-primary));box-shadow:0 0 0 3px rgba(var(--zn-primary),0.3)}input[type=date]::-moz-placeholder, input[type=datetime-local]::-moz-placeholder, input[type=email]::-moz-placeholder, input[type=month]::-moz-placeholder, input[type=number]::-moz-placeholder, input[type=password]::-moz-placeholder, input[type=search]::-moz-placeholder, input[type=tel]::-moz-placeholder, input[type=text]::-moz-placeholder, input[type=time]::-moz-placeholder, input[type=url]::-moz-placeholder, input[type=week]::-moz-placeholder, input[type=file]::-moz-placeholder, input[list]::-moz-placeholder, textarea::-moz-placeholder, select::-moz-placeholder{font-weight:400;color:rgba(var(--zn-text),0.6)}input[type=date]::placeholder,input[type=datetime-local]::placeholder,input[type=email]::placeholder,input[type=month]::placeholder,input[type=number]::placeholder,input[type=password]::placeholder,input[type=search]::placeholder,input[type=tel]::placeholder,input[type=text]::placeholder,input[type=time]::placeholder,input[type=url]::placeholder,input[type=week]::placeholder,input[type=file]::placeholder,input[list]::placeholder,textarea::placeholder,select::placeholder{font-weight:400;color:rgba(var(--zn-text),0.6)}@media (min-width:360px){input[type=date],input[type=datetime-local],input[type=email],input[type=month],input[type=number],input[type=password],input[type=search],input[type=tel],input[type=text],input[type=time],input[type=url],input[type=week],input[type=file],input[list],textarea,select{padding:8px}}label{font-weight:600;font-size:rgb(var(--zn-font-size-medium));line-height:var(--zn-spacing-medium);color:rgb(var(--zn-text-heading));display:block;margin-bottom:4px;margin-top:16px}input[type=checkbox],input[type=radio]{border-radius:5px}input[type=radio]{border-radius:50%}input[type=range]{-webkit-appearance:none;-moz-appearance:none;appearance:none;border-radius:10px;background-color:rgb(var(--zn-border-color));height:8px;accent-color:rgb(var(--zn-primary));width:100%;max-width:768px}fieldset{border-color:rgba(var(--zn-primary),20%);border-width:2px;padding:0 16px 16px}select option{padding:4px}select>option:checked{background-color:rgba(var(--zn-primary),20%);border-radius:5px}fieldset>legend{padding:4px}input[type=button],input[type=submit],button[type=submit]:not(.button),button[type=button]:not(.button){border-radius:var(--zn-button-border-radius,var(--zn-border-radius));display:inline-flex;align-items:center;justify-content:center;padding:var(--zn-base-px);margin:auto;width:-moz-fit-content;width:fit-content;background-color:rgb(var(--zn-primary));color:rgba(var(--zn-color-on-primary,255,255,255),0.9);font-size:var(--zn-text-button-label-font-size);font-weight:var(--zn-text-button-label-font-weight);line-height:var(--zn-text-button-label-line-height);text-transform:var(--zn-text-button-label-transform);cursor:pointer;vertical-align:middle;border-color:transparent;white-space:nowrap;max-height:36px;height:36px;min-height:36px}input[type=button]:hover:not([disabled]),input[type=submit]:hover:not([disabled]),button[type=submit]:not(.button):hover:not([disabled]),button[type=button]:not(.button):hover:not([disabled]){background-color:rgba(var(--zn-primary),0.8)}input[type=button],input[type=submit],button[type=submit]:not(.button),button[type=button]:not(.button){width:auto}div+button{margin-top:16px}input[type=file]::-webkit-file-upload-button{border-radius:var(--zn-button-border-radius,var(--zn-border-radius));display:inline-flex;align-items:center;justify-content:center;padding:var(--zn-base-px);margin:auto;width:fit-content;background-color:rgb(var(--zn-primary));color:rgba(var(--zn-color-on-primary,255,255,255),0.9);font-size:var(--zn-text-button-label-font-size);font-weight:var(--zn-text-button-label-font-weight);line-height:var(--zn-text-button-label-line-height);text-transform:var(--zn-text-button-label-transform);cursor:pointer;vertical-align:middle;border-color:transparent;white-space:nowrap;max-height:36px;height:36px;min-height:36px}input[type=file]::-webkit-file-upload-button:hover:not([disabled]){background-color:rgba(var(--zn-primary),0.8)}input[type=file]::-webkit-file-upload-button{margin-right:8px}input::-webkit-calendar-picker-indicator{cursor:pointer;padding:8px}input[list]::-webkit-calendar-picker-indicator{padding:8px 4px}.input--with-icon{position:relative}.input--with-icon zn-icon{padding:14px;position:absolute;top:50%;pointer-events:none;transform:translateY(-50%);left:8px;background-color:rgb(var(--zn-primary));color:rgb(var(--zn-text));border-radius:50%}.input--with-icon input{padding-left:40px}input:-webkit-autofill,input:-webkit-autofill:hover,input:-webkit-autofill:focus,input:-webkit-autofill:active{-webkit-background-clip:text;-webkit-text-fill-color:rgb(var(--zn-text));-webkit-transition:background-color 5000s ease-in-out 0s;transition:background-color 5000s ease-in-out 0s;box-shadow:inset 0 0 20px 20px rgba(35,35,35,0.1607843137)}select{height:43px}.no-border{border:none !important}table:not(.remarkd-table){border-collapse:separate !important;border-spacing:0;width:100%;max-width:100%;table-layout:auto;text-align:left;font-family:var(--zn-font-sans);font-size:var(--zn-text-table-content-font-size);font-weight:var(--zn-text-table-content-font-weight);line-height:var(--zn-text-table-content-line-height);color:var(--zn-text-table-content-color);text-transform:var(--zn-text-table-content-transform);letter-spacing:var(--zn-text-table-content-letter-spacing,normal)}table:not(.remarkd-table) thead{font-weight:var(--zn-font-weight-medium)}table:not(.remarkd-table) thead tr th{background-color:rgb(var(--zn-table-header-background-color))}table:not(.remarkd-table) tbody a{cursor:pointer;color:rgb(var(--zn-primary))}table:not(.remarkd-table) tbody tr td{border-top:1px solid rgb(var(--zn-border-color)) !important}table:not(.remarkd-table) tbody tr:first-of-type td{border-top:0 !important}table:not(.remarkd-table) th,table:not(.remarkd-table) td{padding:var(--zn-spacing-small) var(--zn-spacing-medium);min-width:90px;white-space:nowrap}table:not(.remarkd-table) td>span{white-space:normal}table:not(.remarkd-table) th{font-family:var(--zn-font-sans);font-size:var(--zn-text-button-label-font-size);font-weight:var(--zn-text-button-label-font-weight);line-height:var(--zn-text-button-label-line-height);color:var(--zn-text-button-label-color);text-transform:var(--zn-text-button-label-transform);letter-spacing:var(--zn-text-button-label-letter-spacing,normal);text-transform:capitalize;border-bottom:1px solid rgb(var(--zn-border-color))}.zn-table-fixed{table-layout:fixed}.opacity-100{opacity:1}.opacity-90{opacity:0.9}.opacity-80{opacity:0.8}.opacity-60{opacity:0.6}.opacity-50{opacity:0.5}.opacity-40{opacity:0.4}.opacity-10{opacity:0.1}`;var $v=k`@keyframes rotate-gradient{from{--rotate:0deg}to{--rotate:360deg}}:host{text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-transform:none}*,*::before,*::after{box-sizing:border-box;border-width:0;border-style:solid;border-color:rgb(var(--zn-border-color))}[hidden]{display:none !important}.width-container,.form-container,.wide-form-container{height:100%;width:100%;margin:var(--zn-default-margin,0 auto)}.width-container{max-width:var(--zn-container)}.form-container{max-width:var(--zn-container-ph)}.wide-form-container{max-width:var(--zn-container-lg)}:host{display:inline-block;position:relative;width:auto;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none}:host button,:host a{width:100%}.button{border-radius:var(--zn-button-border-radius,var(--zn-border-radius));display:inline-flex;align-items:center;justify-content:center;padding:var(--zn-base-px);margin:auto;width:-moz-fit-content;width:fit-content;background-color:rgb(var(--zn-primary));color:rgba(var(--zn-color-on-primary,255,255,255),0.9);font-size:var(--zn-text-button-label-font-size);font-weight:var(--zn-text-button-label-font-weight);line-height:var(--zn-text-button-label-line-height);text-transform:var(--zn-text-button-label-transform);cursor:pointer;vertical-align:middle;border-color:transparent;white-space:nowrap;max-height:36px;height:36px;min-height:36px}.button:hover:not([disabled]){background-color:rgba(var(--zn-primary),0.8)}.button{--btn-color:var(--zn-primary);--btn-ink:var(--zn-color-on-primary,255,255,255);--notification-color:rgb(var(--zn-color-error));border-width:var(--zn-button-border-width,1px);border-top-width:var(--zn-button-border-top-width,var(--zn-button-border-width,1px));border-right-width:var(--zn-button-border-right-width,var(--zn-button-border-width,1px));border-bottom-width:var(--zn-button-border-bottom-width,var(--zn-button-border-width,1px));border-left-width:var(--zn-button-border-left-width,var(--zn-button-border-width,1px));border-color:var(--zn-button-border-color,transparent);display:inline-flex;position:relative}.button.button--info{--btn-color:var(--zn-color-info);--btn-ink:var(--zn-color-on-info,255,255,255)}.button.button--error{--btn-color:var(--zn-color-error);--btn-ink:var(--zn-color-on-error,255,255,255)}.button.button--warning{--btn-color:var(--zn-color-warning);--btn-ink:var(--zn-color-on-warning,255,255,255)}.button.button--success{--btn-color:var(--zn-color-success);--btn-ink:var(--zn-color-on-success,255,255,255)}.button__label--hidden{visibility:hidden}.button zn-icon{--icon-color:currentColor}.button.button--muted-notification{--notification-color:rgb(var(--zn-color-info))}.button--has-notification{position:relative;overflow:visible}.button--has-notification::after{content:attr(data-notification);position:absolute;display:flex;justify-content:center;align-items:center;top:-4px;left:auto;inset-inline-end:-4px;box-sizing:border-box;min-width:13px;height:13px;padding:0 3px;border-radius:999px;font-size:var(--zn-text-notification-font-size);font-weight:var(--zn-text-notification-font-weight);line-height:var(--zn-text-notification-line-height);color:var(--zn-text-notification-color);background-color:var(--notification-color)}.button--has-notification.button--notification-dot::after{content:"";min-width:0;width:8px;height:8px;padding:0;border-radius:50%}.button::-moz-focus-inner{border:0}.button:focus{outline:none}.button:focus-visible{outline:2px solid rgb(var(--btn-color));outline-offset:calc(var(--zn-focus-ring-outset) - 2px)}[disabled]{cursor:not-allowed;opacity:0.5}[disabled] *{pointer-events:none}.button--standard.button--secondary{background-color:var(--zn-color-neutral-50);border-color:var(--zn-button-border-color,var(--zn-color-neutral-50));color:rgb(var(--zn-primary))}.button--standard.button--secondary:hover:not([disabled]){background-color:var(--zn-color-neutral-100)}.button--standard.button--secondary:active:not([disabled]){background-color:var(--zn-color-neutral-100)}.button--standard{background-color:rgba(var(--btn-color));border-color:var(--zn-button-border-color,rgb(var(--btn-color)));color:rgba(var(--btn-ink),0.9)}.button--standard:hover:not([disabled]){background-color:rgba(var(--btn-color),0.8)}.button--standard:active:not([disabled]){background-color:rgba(var(--btn-color))}.button--outline{background:none;border-width:var(--zn-button-border-width,1px);border-top-width:var(--zn-button-border-top-width,var(--zn-button-border-width,1px));border-right-width:var(--zn-button-border-right-width,var(--zn-button-border-width,1px));border-bottom-width:var(--zn-button-border-bottom-width,var(--zn-button-border-width,1px));border-left-width:var(--zn-button-border-left-width,var(--zn-button-border-width,1px));border-color:var(--zn-button-border-color,rgb(var(--btn-color)));color:rgb(var(--btn-color))}.button--outline:hover:not([disabled]),.button--outline:active:not([disabled]){background-color:rgb(var(--btn-color));color:rgb(var(--btn-ink))}.button--outline.button--secondary{border-color:var(--zn-button-border-color,var(--zn-color-neutral-100))}.button--outline.button--secondary:hover:not([disabled]),.button--outline.button--secondary:active:not([disabled]){background-color:var(--zn-color-neutral-100);color:rgb(var(--btn-color))}.button--text{background:none;color:rgb(var(--btn-color))}.button--text:hover:not([disabled]),.button--text:active:not([disabled]){background-color:rgba(var(--btn-color),0.1)}.button--text.button--secondary{font-weight:normal}.button--grow{width:100%}.button--with-icon.button--with-content:not(.button--icon-button){--icon-optical-inset:calc(var(--button-icon-size,20px) / 12);--icon-gap:calc(var(--zn-base-px) - var(--icon-optical-inset))}.button--with-icon.button--with-content:not(.button--icon-button).button--icon-left zn-icon{margin-left:calc(var(--icon-optical-inset) * -1);margin-right:var(--icon-gap)}.button--with-icon.button--with-content:not(.button--icon-button).button--icon-right zn-icon{margin-left:var(--icon-gap);margin-right:calc(var(--icon-optical-inset) * -1)}.button--square{border-radius:0}.button--transparent{background-color:transparent;border-color:var(--zn-button-border-color,transparent) !important;color:inherit}.button--transparent:hover:not([disabled]){background-color:rgba(var(--zn-primary),0.1)}.button--transparent:active:not([disabled]){background-color:rgba(var(--zn-primary),0.2)}.button--star{--btn-color:var(--zn-orange);--btn-ink:var(--zn-color-on-warning,255,255,255);background-color:rgb(var(--btn-color));border-color:var(--zn-button-border-color,rgb(var(--btn-color)));color:rgb(var(--btn-ink));opacity:1 !important}.button--star:hover:not([disabled]){background-color:rgb(var(--btn-color))}.button--star:active{background-color:rgb(var(--btn-color))}.button--star.button--outline{background-color:transparent;border-color:var(--zn-button-border-color,rgb(var(--btn-color)));color:rgb(var(--btn-color))}.button--star.button--outline:hover:not([disabled]),.button--star.button--outline:active:not([disabled]){background-color:rgba(var(--btn-color));color:rgb(var(--btn-ink))}.button.button--icon-button{--icon-button-color:rgb(var(--zn-text));--icon-button-hover-color:rgb(var(--zn-primary));width:40px;min-width:40px;height:36px;min-height:36px;max-height:36px;padding:6px;margin:0;background:rgb(var(--zn-panel));border-color:var(--zn-button-border-color,rgb(var(--zn-border-color))) !important;border-radius:var(--zn-border-radius);color:var(--icon-button-color);font-weight:inherit;line-height:0}.button.button--icon-button zn-icon,.button.button--icon-button ::slotted(zn-icon){--icon-color:currentColor;color:inherit;line-height:0}.button.button--icon-button:hover:not([disabled]),.button.button--icon-button:active:not([disabled]){background:rgba(var(--zn-color-tab),0.5)}.button.button--icon-button.button--icon-button-small{width:36px;min-width:36px}.button.button--icon-button.button--icon-button-round{width:36px;min-width:36px;padding:8px;background:rgb(var(--zn-color-tab));border-color:var(--zn-button-border-color,transparent) !important;border-radius:var(--zn-border-radius-circle)}.button.button--icon-button.button--icon-button-round:hover:not([disabled]),.button.button--icon-button.button--icon-button-round:active:not([disabled]){background:rgb(var(--zn-color-border))}.button.button--icon-button.button--plain{background:transparent;border-color:var(--zn-button-border-color,transparent) !important}.button.button--icon-button.button--plain:hover:not([disabled]),.button.button--icon-button.button--plain:active:not([disabled]){background:rgb(var(--zn-color-tab))}.button.button--icon-button.button--no-hover:hover:not([disabled]),.button.button--icon-button.button--no-hover:active:not([disabled]){background:rgb(var(--zn-panel))}.button.button--icon-button.button--no-hover.button--icon-button-round:hover:not([disabled]),.button.button--icon-button.button--no-hover.button--icon-button-round:active:not([disabled]){background:rgb(var(--zn-color-tab))}.button.button--icon-button.button--no-hover.button--plain:hover:not([disabled]),.button.button--icon-button.button--no-hover.button--plain:active:not([disabled]){background:transparent}.button.button--icon-button.button--has-notification::after{--icon-inset:calc((100% - var(--notification-icon-size,20px)) / 2);top:calc(var(--icon-inset) - 4px);inset-inline-end:calc(var(--icon-inset) - 4px);transform:translate(50%,-50%)}.button--loading-bg-transparent{background-color:transparent}.button--loading-fill{pointer-events:none;position:absolute;z-index:1;background-color:rgba(var(--btn-color),0.85);border-radius:inherit;transition:width 0s;animation:loading-fill-grow var(--loading-duration,2s) linear forwards;inset:-1px}.button--loading-fill-transparent{background-color:rgba(var(--zn-primary),0.1)}.button--loading-container{position:absolute;top:0;left:0;width:100%;height:100%;display:flex;align-items:center;justify-content:center;pointer-events:none}.button--loading-text{z-index:5;width:100%;height:100%;display:flex;align-items:center;justify-content:center;font-size:inherit;font-weight:inherit;-webkit-user-select:none;-moz-user-select:none;user-select:none;position:absolute;pointer-events:none;color:inherit}.button--loading-text .loading-countdown{margin-left:3px}.button--loading-text-left{justify-content:flex-start;padding-inline-start:7px}.button--loading-text-right{justify-content:flex-end;padding-inline-end:7px}.button--relative-wrapper{position:relative;display:inline-flex;height:100%;width:100%}@keyframes loading-fill-grow{from{width:0}to{width:100%}}:host([vertical-align=center]){align-self:center}:host([vertical-align=end]){align-self:end}:host([vertical-align=start]){align-self:start}:host([grow]){width:100%}:host([grow]) button{width:100%}:host([data-zn-button-group__button--grow]){flex-grow:1;flex-basis:0}:host([data-zn-button-group__button--inner]) .button{border-radius:0 !important;border-left:0 !important;border-right:0 !important}:host([data-zn-button-group__button]:not([data-zn-button-group__button--first])) .button:after{content:"";position:absolute;top:0;inset-inline-start:0;bottom:0;border-left:solid 1px;color:rgba(var(--zn-border-color),0.85)}:host([data-zn-button-group__button]:focus-within){z-index:1}:host([data-zn-button-group__button--first]:not([data-zn-button-group__button--last])) .button{border-radius:5px 0 0 5px !important;border-right:0 !important}:host([data-zn-button-group__button--last]:not([data-zn-button-group__button--first])) .button{border-radius:0 5px 5px 0 !important;border-left:0 !important}.button.button--pill{border-radius:var(--zn-border-radius-pill);padding:0 var(--zn-spacing-small);height:32px;min-height:32px;font-weight:var(--zn-font-weight-normal);text-transform:none;white-space:nowrap}.button--panel-bg{background:rgb(var(--zn-panel));border-color:var(--zn-button-border-color,rgb(var(--zn-border-color)));color:rgb(var(--zn-text))}.button--panel-bg:hover:not([disabled]),.button--panel-bg:active:not([disabled]){background:rgba(var(--zn-color-tab),0.5)}`;var ae=class extends S{constructor(){super(...arguments);this.formControlController=new re(this);this.hasSlotController=new Y(this,"[default]");this._loadingState={countdown:null,interval:void 0};this.color="default";this.text=!1;this.outline=!1;this.disabled=!1;this.grow=!1;this.square=!1;this.iconButton=!1;this.plain=!1;this.noHover=!1;this.pill=!1;this.panelBackground=!1;this.dropdownCloser=!1;this.mutedNotifications=!1;this.content="";this.icon="";this.gaid="";this.iconPosition="left";this.rel="noreferrer noopener";this.autoClick=!1;this.autoClickDelay=2e3;this.loadingText="Loading...";this.loadingTextPosition="center";this.loading=!1;this.handleClick=()=>{if(!this.disabled){if(this.dropdownCloser){let t=null,r=this,n=0,a=30;for(;r&&n<a;){if(r instanceof hr){t=r;break}r=r.parentElement||(r.getRootNode()instanceof ShadowRoot?r.getRootNode().host:null),n++}t?.hide()}this.type==="submit"&&this.formControlController.submit(),this.type==="reset"&&this.formControlController.reset()}}}get validity(){return this._isButton()&&this.button?this.button.validity:et}get validationMessage(){return this._isButton()&&this.button?this.button.validationMessage:""}firstUpdated(){this._isButton()&&this.formControlController.updateValidity()}disconnectedCallback(){super.disconnectedCallback(),this.teardownAutoClick()}async handleAutoClickChange(t,r){r?(await this.updateComplete,this.setupAutoClick()):this.teardownAutoClick()}updated(t){if(super.updated(t),this.button){let r=this.button.querySelector(".button--loading-fill");if(r&&r.remove(),this.loading){let n=`${this.autoClickDelay/1e3}s`,a=document.createElement("div");a.classList.add("button--loading-fill"),a.setAttribute("style",`--loading-duration: ${n}`),this.button.classList.contains("button--transparent")&&(a.classList.add("button--loading-fill-transparent"),this.button.classList.add("button--loading-bg-transparent")),this.button.prepend(a),this.button.classList.add("button--loading-bg")}else this.button.classList.remove("button--loading-bg"),this.button.classList.remove("button--loading-bg-transparent");this.updateCountdownText()}}checkValidity(){return this._isButton()&&this.button?this.button.checkValidity():!0}getForm(){return this.formControlController.getForm()}reportValidity(){return this._isButton()&&this.button?this.button.reportValidity():!0}setCustomValidity(t){this._isButton()&&(this.button.setCustomValidity(t),this.formControlController.updateValidity())}click(){this.handleClick()}_isLink(){return this.href!==void 0}_isButton(){return!this._isLink()}getIconButtonColor(t){switch(t){case void 0:case"":case"default":return"rgb(var(--zn-text))";case"primary":return"rgb(var(--zn-primary))";case"secondary":return"rgb(var(--zn-text))";case"error":return"rgb(var(--zn-color-error))";case"info":return"rgb(var(--zn-color-info))";case"success":return"rgb(var(--zn-color-success))";case"warning":return"rgb(var(--zn-color-warning))";case"transparent":return"inherit";case"star":return"rgb(var(--zn-orange))";default:return t}}setupAutoClick(){this.button&&(this._autoClickTimeout&&(window.clearTimeout(this._autoClickTimeout),this._autoClickTimeout=void 0),this._loadingState.interval&&(window.clearInterval(this._loadingState.interval),this._loadingState.interval=void 0),this.loading=!0,this._loadingState.countdown=Math.ceil(this.autoClickDelay/1e3),this.updateCountdownText(),this._loadingState.interval=window.setInterval(()=>{this._loadingState.countdown&&this._loadingState.countdown>0&&(this._loadingState.countdown--,this.updateCountdownText())},1e3),this._autoClickTimeout=window.setTimeout(()=>{this.loading=!1,this._loadingState.countdown=null,this.updateCountdownText(),this._loadingState.interval&&(window.clearInterval(this._loadingState.interval),this._loadingState.interval=void 0),this.button?.click()},this.autoClickDelay))}updateCountdownText(){let t=this._loadingState.countdown&&this._loadingState.countdown>0?` (${this._loadingState.countdown}s)`:"";if(this.countdownContainer)for(let r of this.countdownContainer)r.textContent=t}teardownAutoClick(){this._autoClickTimeout&&(window.clearTimeout(this._autoClickTimeout),this._autoClickTimeout=void 0),this._loadingState.interval&&(window.clearInterval(this._loadingState.interval),this._loadingState.interval=void 0),this.loading=!1,this._loadingState.countdown=null,this.button&&(this.button.style.width="")}render(){let t=this._isLink(),r=this.loading&&this.autoClick,n=this.iconSize?this.iconSize:20,a=this.icon&&!this.loading?Ce`
98
98
  <zn-icon part="icon" src="${this.icon}" id="xy2" size="${n}"
99
99
  color="${O(this.iconColor)}" fill="${O(this.iconFill)}"
100
100
  library="${O(this.iconLibrary)}"></zn-icon>`:"",s=t?Li`a`:Li`button`,l=this.hasSlotController.test("[default]")||!!this.content,d=this.label||(l?void 0:this.tooltip),h={...this.iconButton?{"--icon-button-color":this.getIconButtonColor(this.color),"--icon-button-hover-color":this.getIconButtonColor(this.hoverColor||"primary")}:{},...this.icon?{"--button-icon-size":`${n}px`}:{}},m=this.notification??void 0,f=Ce`
@@ -138,7 +138,7 @@ import{a as Hn,b as X3,c as kr,d as c,e as V}from"./chunks/zn.UBLZO6CI.js";var a
138
138
  ${this.loadingText}<span class="loading-countdown"></span>
139
139
  </span>
140
140
  </div>
141
- `:null}`}};ae.styles=[_(Rd),_($v)],ae.dependencies={"zn-tooltip":gi,"zn-icon":oe},c([B(".button")],ae.prototype,"button",2),c([is(".loading-countdown")],ae.prototype,"countdownContainer",2),c([p({})],ae.prototype,"color",2),c([p({attribute:"hover-color"})],ae.prototype,"hoverColor",2),c([p({type:Boolean})],ae.prototype,"text",2),c([p({type:Boolean})],ae.prototype,"outline",2),c([p({type:Boolean})],ae.prototype,"disabled",2),c([p({type:Boolean})],ae.prototype,"grow",2),c([p({type:Boolean})],ae.prototype,"square",2),c([p({attribute:"icon-button",converter:{fromAttribute:t=>t==="small"||t==="round"?t:t!==null,toAttribute:t=>t==="small"||t==="round"?t:t?"":null}})],ae.prototype,"iconButton",2),c([p({type:Boolean})],ae.prototype,"plain",2),c([p({type:Boolean,attribute:"no-hover"})],ae.prototype,"noHover",2),c([p({type:Boolean,reflect:!0})],ae.prototype,"pill",2),c([p({type:Boolean,attribute:"panel-bg"})],ae.prototype,"panelBackground",2),c([p({attribute:"dropdown-closer",type:Boolean})],ae.prototype,"dropdownCloser",2),c([p({type:Number})],ae.prototype,"notification",2),c([p({attribute:"muted-notifications",type:Boolean})],ae.prototype,"mutedNotifications",2),c([p()],ae.prototype,"verticalAlign",2),c([p()],ae.prototype,"content",2),c([p()],ae.prototype,"icon",2),c([p()],ae.prototype,"gaid",2),c([p({attribute:"icon-position"})],ae.prototype,"iconPosition",2),c([p({attribute:"icon-size"})],ae.prototype,"iconSize",2),c([p({attribute:"icon-color"})],ae.prototype,"iconColor",2),c([p({attribute:"icon-fill"})],ae.prototype,"iconFill",2),c([p({attribute:"icon-library"})],ae.prototype,"iconLibrary",2),c([p()],ae.prototype,"type",2),c([p()],ae.prototype,"name",2),c([p()],ae.prototype,"value",2),c([p()],ae.prototype,"form",2),c([p({attribute:"formaction"})],ae.prototype,"formAction",2),c([p({attribute:"formenctype"})],ae.prototype,"formEnctype",2),c([p({attribute:"formmethod"})],ae.prototype,"formMethod",2),c([p({attribute:"formnovalidate",type:Boolean})],ae.prototype,"formNoValidate",2),c([p({attribute:"formtarget"})],ae.prototype,"formTarget",2),c([p()],ae.prototype,"href",2),c([p()],ae.prototype,"target",2),c([p({attribute:"data-target"})],ae.prototype,"dataTarget",2),c([p()],ae.prototype,"rel",2),c([p()],ae.prototype,"tooltip",2),c([p()],ae.prototype,"label",2),c([p({attribute:"aria-pressed"})],ae.prototype,"pressed",2),c([p({type:Boolean,attribute:"auto-click"})],ae.prototype,"autoClick",2),c([p({type:Number,attribute:"auto-click-delay"})],ae.prototype,"autoClickDelay",2),c([p({type:String,attribute:"loading-text"})],ae.prototype,"loadingText",2),c([p({type:String,attribute:"loading-text-position"})],ae.prototype,"loadingTextPosition",2),c([p({type:Boolean})],ae.prototype,"loading",2),c([W("autoClick")],ae.prototype,"handleAutoClickChange",1);var Ee=ae;ae.define("zn-button");var He=class{constructor(i,{target:t,config:r,callback:n,skipInitial:a}){this.t=new Set,this.o=!1,this.i=!1,this.h=i,t!==null&&this.t.add(t??i),this.l=r,this.o=a??this.o,this.callback=n,window.MutationObserver?(this.u=new MutationObserver(s=>{this.handleChanges(s),this.h.requestUpdate()}),i.addController(this)):console.warn("MutationController error: browser does not support MutationObserver.")}handleChanges(i){this.value=this.callback?.(i,this.u)}hostConnected(){for(let i of this.t)this.observe(i)}hostDisconnected(){this.disconnect()}async hostUpdated(){let i=this.u.takeRecords();(i.length||!this.o&&this.i)&&this.handleChanges(i),this.i=!1}observe(i){this.t.add(i),this.u.observe(i,this.l),this.i=!0,this.h.requestUpdate()}disconnect(){this.u.disconnect()}};var cs=class extends S{constructor(){super();this._resizeFrame=null;new He(this,{config:{childList:!0,subtree:!0,attributes:!0,characterData:!0},callback:()=>this.resize(),skipInitial:!0})}firstUpdated(t){super.firstUpdated(t),this.resize()}disconnectedCallback(){super.disconnectedCallback(),this._resizeFrame!==null&&(cancelAnimationFrame(this._resizeFrame),this._resizeFrame=null)}resize(){this._resizeFrame===null&&(this._resizeFrame=requestAnimationFrame(()=>{this._resizeFrame=null;let t=0;Array.from(this.children).forEach(n=>{t+=n.getBoundingClientRect().height});let r=t+"px";this.style.minHeight!==r&&(this.style.minHeight=r)}))}createRenderRoot(){return this}};var s4=cs;cs.define("zn-absolute-container");var wn=Math.min,Zi=Math.max,Nl=Math.round,Ol=Math.floor,zn=o=>({x:o,y:o}),l4={left:"right",right:"left",bottom:"top",top:"bottom"};function Ru(o,i,t){return Zi(o,wn(i,t))}function ba(o,i){return typeof o=="function"?o(i):o}function wo(o){return o.split("-")[0]}function va(o){return o.split("-")[1]}function Du(o){return o==="x"?"y":"x"}function Nd(o){return o==="y"?"height":"width"}function _n(o){let i=o[0];return i==="t"||i==="b"?"y":"x"}function Od(o){return Du(_n(o))}function Mv(o,i,t){t===void 0&&(t=!1);let r=va(o),n=Od(o),a=Nd(n),s=n==="x"?r===(t?"end":"start")?"right":"left":r==="start"?"bottom":"top";return i.reference[a]>i.floating[a]&&(s=Dl(s)),[s,Dl(s)]}function qv(o){let i=Dl(o);return[Dd(o),i,Dd(i)]}function Dd(o){return o.includes("start")?o.replace("start","end"):o.replace("end","start")}var Av=["left","right"],Lv=["right","left"],c4=["top","bottom"],d4=["bottom","top"];function p4(o,i,t){switch(o){case"top":case"bottom":return t?i?Lv:Av:i?Av:Lv;case"left":case"right":return i?c4:d4;default:return[]}}function Iv(o,i,t,r){let n=va(o),a=p4(wo(o),t==="start",r);return n&&(a=a.map(s=>s+"-"+n),i&&(a=a.concat(a.map(Dd)))),a}function Dl(o){let i=wo(o);return l4[i]+o.slice(i.length)}function h4(o){var i,t,r,n;return{top:(i=o.top)!=null?i:0,right:(t=o.right)!=null?t:0,bottom:(r=o.bottom)!=null?r:0,left:(n=o.left)!=null?n:0}}function Nu(o){return typeof o!="number"?h4(o):{top:o,right:o,bottom:o,left:o}}function ya(o){let{x:i,y:t,width:r,height:n}=o;return{width:r,height:n,top:t,left:i,right:i+r,bottom:t+n,x:i,y:t}}function Rv(o,i,t){let{reference:r,floating:n}=o,a=_n(i),s=Od(i),l=Nd(s),d=wo(i),h=a==="y",m=r.x+r.width/2-n.width/2,f=r.y+r.height/2-n.height/2,b=r[l]/2-n[l]/2,g;switch(d){case"top":g={x:m,y:r.y-n.height};break;case"bottom":g={x:m,y:r.y+r.height};break;case"right":g={x:r.x+r.width,y:f};break;case"left":g={x:r.x-n.width,y:f};break;default:g={x:r.x,y:r.y}}let v=va(i);return v&&(g[s]+=b*(v==="end"?1:-1)*(t&&h?-1:1)),g}async function Dv(o,i){var t;i===void 0&&(i={});let{x:r,y:n,platform:a,rects:s,elements:l,strategy:d}=o,{boundary:h="clippingAncestors",rootBoundary:m="viewport",elementContext:f="floating",altBoundary:b=!1,padding:g=0}=ba(i,o),v=Nu(g),z=l[b?f==="floating"?"reference":"floating":f],E=ya(await a.getClippingRect({element:(t=await(a.isElement==null?void 0:a.isElement(z)))==null||t?z:z.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(l.floating)),boundary:h,rootBoundary:m,strategy:d})),N=f==="floating"?{x:r,y:n,width:s.floating.width,height:s.floating.height}:s.reference,U=await(a.getOffsetParent==null?void 0:a.getOffsetParent(l.floating)),R=await(a.isElement==null?void 0:a.isElement(U))&&await(a.getScale==null?void 0:a.getScale(U))||{x:1,y:1},C=ya(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:N,offsetParent:U,strategy:d}):N);return{top:(E.top-C.top+v.top)/R.y,bottom:(C.bottom-E.bottom+v.bottom)/R.y,left:(E.left-C.left+v.left)/R.x,right:(C.right-E.right+v.right)/R.x}}var u4=50,Nv=async(o,i,t)=>{let{placement:r="bottom",strategy:n="absolute",middleware:a=[],platform:s}=t,l=s.detectOverflow?s:{...s,detectOverflow:Dv},d=await(s.isRTL==null?void 0:s.isRTL(i)),h=await s.getElementRects({reference:o,floating:i,strategy:n}),{x:m,y:f}=Rv(h,r,d),b=r,g=0,v={};for(let y=0;y<a.length;y++){let z=a[y];if(!z)continue;let{name:E,fn:N}=z,{x:U,y:R,data:C,reset:$}=await N({x:m,y:f,initialPlacement:r,placement:b,strategy:n,middlewareData:v,rects:h,platform:l,elements:{reference:o,floating:i}});m=U??m,f=R??f,v[E]={...v[E],...C},$&&g<u4&&(g++,typeof $=="object"&&($.placement&&(b=$.placement),$.rects&&(h=$.rects===!0?await s.getElementRects({reference:o,floating:i,strategy:n}):$.rects),{x:m,y:f}=Rv(h,b,d)),y=-1)}return{x:m,y:f,placement:b,strategy:n,middlewareData:v}},Ov=o=>({name:"arrow",options:o,async fn(i){let{x:t,y:r,placement:n,rects:a,platform:s,elements:l,middlewareData:d}=i,{element:h,padding:m=0}=ba(o,i)||{};if(h==null)return{};let f=Nu(m),b={x:t,y:r},g=Od(n),v=Nd(g),y=await s.getDimensions(h),z=g==="y",E=z?"top":"left",N=z?"bottom":"right",U=z?"clientHeight":"clientWidth",R=a.reference[v]+a.reference[g]-b[g]-a.floating[v],C=b[g]-a.reference[g],$=await(s.getOffsetParent==null?void 0:s.getOffsetParent(h)),L=$?$[U]:0;(!L||!await(s.isElement==null?void 0:s.isElement($)))&&(L=l.floating[U]||a.floating[v]);let K=R/2-C/2,ne=L/2-y[v]/2-1,we=wn(f[E],ne),De=wn(f[N],ne),Pe=L-y[v]-De,at=L/2-y[v]/2+K,tr=Ru(we,at,Pe),Pr=!d.arrow&&va(n)!=null&&at!==tr&&a.reference[v]/2-(at<we?we:De)-y[v]/2<0,zr=Pr?at<we?at-we:at-Pe:0;return{[g]:b[g]+zr,data:{[g]:tr,centerOffset:at-tr-zr,...Pr&&{alignmentOffset:zr}},reset:Pr}}});var Pv=function(o){return o===void 0&&(o={}),{name:"flip",options:o,async fn(i){var t,r;let{placement:n,middlewareData:a,rects:s,initialPlacement:l,platform:d,elements:h}=i,{mainAxis:m=!0,crossAxis:f=!0,fallbackPlacements:b,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:v="none",flipAlignment:y=!0,...z}=ba(o,i);if((t=a.arrow)!=null&&t.alignmentOffset)return{};let E=wo(n),N=_n(l),U=wo(l)===l,R=await(d.isRTL==null?void 0:d.isRTL(h.floating)),C=b||(U||!y?[Dl(l)]:qv(l)),$=v!=="none";!b&&$&&C.push(...Iv(l,y,v,R));let L=[l,...C],K=await d.detectOverflow(i,z),ne=[],we=((r=a.flip)==null?void 0:r.overflows)||[];if(m&&ne.push(K[E]),f){let tr=Mv(n,s,R);ne.push(K[tr[0]],K[tr[1]])}if(we=[...we,{placement:n,overflows:ne}],!ne.every(tr=>tr<=0)){var De,Pe;let tr=(((De=a.flip)==null?void 0:De.index)||0)+1,Pr=L[tr];if(Pr&&(!(f==="alignment"?N!==_n(Pr):!1)||we.every(rr=>_n(rr.placement)===N?rr.overflows[0]>0:!0)))return{data:{index:tr,overflows:we},reset:{placement:Pr}};let zr=(Pe=we.filter(Nt=>Nt.overflows[0]<=0).sort((Nt,rr)=>Nt.overflows[1]-rr.overflows[1])[0])==null?void 0:Pe.placement;if(!zr)switch(g){case"bestFit":{var at;let Nt=(at=we.filter(rr=>{if($){let Lt=_n(rr.placement);return Lt===N||Lt==="y"}return!0}).map(rr=>[rr.placement,rr.overflows.filter(Lt=>Lt>0).reduce((Lt,mo)=>Lt+mo,0)]).sort((rr,Lt)=>rr[1]-Lt[1])[0])==null?void 0:at[0];Nt&&(zr=Nt);break}case"initialPlacement":zr=l;break}if(n!==zr)return{reset:{placement:zr}}}return{}}}};var m4=new Set(["left","top"]);async function f4(o,i){let{placement:t,platform:r,elements:n}=o,a=await(r.isRTL==null?void 0:r.isRTL(n.floating)),s=wo(t),l=va(t),d=_n(t)==="y",h=m4.has(s)?-1:1,m=a&&d?-1:1,f=ba(i,o),{mainAxis:b,crossAxis:g,alignmentAxis:v}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return l&&typeof v=="number"&&(g=l==="end"?v*-1:v),d?{x:g*m,y:b*h}:{x:b*h,y:g*m}}var Hv=function(o){return o===void 0&&(o=0),{name:"offset",options:o,async fn(i){var t,r;let{x:n,y:a,placement:s,middlewareData:l}=i,d=await f4(i,o);return s===((t=l.offset)==null?void 0:t.placement)&&(r=l.arrow)!=null&&r.alignmentOffset?{}:{x:n+d.x,y:a+d.y,data:{...d,placement:s}}}}},Fv=function(o){return o===void 0&&(o={}),{name:"shift",options:o,async fn(i){let{x:t,y:r,placement:n,platform:a}=i,{mainAxis:s=!0,crossAxis:l=!1,limiter:d={fn:N=>{let{x:U,y:R}=N;return{x:U,y:R}}},...h}=ba(o,i),m={x:t,y:r},f=await a.detectOverflow(i,h),b=_n(n),g=Du(b),v=m[g],y=m[b],z=(N,U)=>Ru(U+f[N==="y"?"top":"left"],U,U-f[N==="y"?"bottom":"right"]);s&&(v=z(g,v)),l&&(y=z(b,y));let E=d.fn({...i,[g]:v,[b]:y});return{...E,data:{x:E.x-t,y:E.y-r,enabled:{[g]:s,[b]:l}}}}}};var Bv=function(o){return o===void 0&&(o={}),{name:"size",options:o,async fn(i){let{placement:t,rects:r,platform:n,elements:a}=i,{apply:s=()=>{},...l}=ba(o,i),d=await n.detectOverflow(i,l),h=wo(t),m=va(t),f=_n(t)==="y",{width:b,height:g}=r.floating,v,y;h==="top"||h==="bottom"?(v=h,y=m===(await(n.isRTL==null?void 0:n.isRTL(a.floating))?"start":"end")?"left":"right"):(y=h,v=m==="end"?"top":"bottom");let z=g-d.top-d.bottom,E=b-d.left-d.right,N=wn(g-d[v],z),U=wn(b-d[y],E),R=i.middlewareData.shift,C=!R,$=N,L=U;R!=null&&R.enabled.x&&(L=E),R!=null&&R.enabled.y&&($=z),C&&!m&&(f?L=b-2*Zi(d.left,d.right):$=g-2*Zi(d.top,d.bottom)),await s({...i,availableWidth:L,availableHeight:$});let K=await n.getDimensions(a.floating);return b!==K.width||g!==K.height?{reset:{rects:!0}}:{}}}};function Pd(){return typeof window<"u"}function wa(o){return Uv(o)?(o.nodeName||"").toLowerCase():"#document"}function Hr(o){var i;return(o==null||(i=o.ownerDocument)==null?void 0:i.defaultView)||window}function kn(o){var i;return(i=(Uv(o)?o.ownerDocument:o.document)||window.document)==null?void 0:i.documentElement}function Uv(o){return Pd()?o instanceof Node||o instanceof Hr(o).Node:!1}function en(o){return Pd()?o instanceof Element||o instanceof Hr(o).Element:!1}function Un(o){return Pd()?o instanceof HTMLElement||o instanceof Hr(o).HTMLElement:!1}function Vv(o){return!Pd()||typeof ShadowRoot>"u"?!1:o instanceof ShadowRoot||o instanceof Hr(o).ShadowRoot}function Pl(o){let{overflow:i,overflowX:t,overflowY:r,display:n}=tn(o);return/auto|scroll|overlay|hidden|clip/.test(i+r+t)&&n!=="inline"&&n!=="contents"}function jv(o){return/^(table|td|th)$/.test(wa(o))}function Hl(o){try{if(o.matches(":popover-open"))return!0}catch{}try{return o.matches(":modal")}catch{return!1}}var g4=/transform|translate|scale|rotate|perspective|filter/,b4=/paint|layout|strict|content/,xa=o=>!!o&&o!=="none",Ou;function ps(o){let i=en(o)?tn(o):o;return xa(i.transform)||xa(i.translate)||xa(i.scale)||xa(i.rotate)||xa(i.perspective)||!Hd()&&(xa(i.backdropFilter)||xa(i.filter))||g4.test(i.willChange||"")||b4.test(i.contain||"")}function Gv(o){let i=zo(o);for(;Un(i)&&!hs(i);){if(ps(i))return i;if(Hl(i))return null;i=zo(i)}return null}function Hd(){return Ou==null&&(Ou=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Ou}function hs(o){return/^(html|body|#document)$/.test(wa(o))}function tn(o){return Hr(o).getComputedStyle(o)}function Fl(o){return en(o)?{scrollLeft:o.scrollLeft,scrollTop:o.scrollTop}:{scrollLeft:o.scrollX,scrollTop:o.scrollY}}function zo(o){if(wa(o)==="html")return o;let i=o.assignedSlot||o.parentNode||Vv(o)&&o.host||kn(o);return Vv(i)?i.host:i}function Kv(o){let i=zo(o);return hs(i)?(o.ownerDocument||o).body:Un(i)&&Pl(i)?i:Kv(i)}function ds(o,i,t){var r;i===void 0&&(i=[]),t===void 0&&(t=!0);let n=Kv(o),a=n===((r=o.ownerDocument)==null?void 0:r.body),s=Hr(n);if(a){let l=Fd(s);return i.concat(s,s.visualViewport||[],Pl(n)?n:[],l&&t?ds(l):[])}else return i.concat(n,ds(n,[],t))}function Fd(o){return o.parent&&Object.getPrototypeOf(o.parent)?o.frameElement:null}function Qv(o){let i=tn(o),t=parseFloat(i.width)||0,r=parseFloat(i.height)||0,n=Un(o),a=n?o.offsetWidth:t,s=n?o.offsetHeight:r,l=Nl(t)!==a||Nl(r)!==s;return l&&(t=a,r=s),{width:t,height:r,$:l}}function Hu(o){return en(o)?o:o.contextElement}function us(o){let i=Hu(o);if(!Un(i))return zn(1);let t=i.getBoundingClientRect(),{width:r,height:n,$:a}=Qv(i),s=(a?Nl(t.width):t.width)/r,l=(a?Nl(t.height):t.height)/n;return(!s||!Number.isFinite(s))&&(s=1),(!l||!Number.isFinite(l))&&(l=1),{x:s,y:l}}var v4=zn(0);function Xv(o){let i=Hr(o);return!Hd()||!i.visualViewport?v4:{x:i.visualViewport.offsetLeft,y:i.visualViewport.offsetTop}}function y4(o,i,t){return i===void 0&&(i=!1),!!t&&i&&t===Hr(o)}function za(o,i,t,r){i===void 0&&(i=!1),t===void 0&&(t=!1);let n=o.getBoundingClientRect(),a=Hu(o),s=zn(1);i&&(r?en(r)&&(s=us(r)):s=us(o));let l=y4(a,t,r)?Xv(a):zn(0),d=(n.left+l.x)/s.x,h=(n.top+l.y)/s.y,m=n.width/s.x,f=n.height/s.y;if(a&&r){let b=Hr(a),g=en(r)?Hr(r):r,v=b,y=Fd(v);for(;y&&g!==v;){let z=us(y),E=y.getBoundingClientRect(),N=tn(y),U=E.left+(y.clientLeft+parseFloat(N.paddingLeft))*z.x,R=E.top+(y.clientTop+parseFloat(N.paddingTop))*z.y;d*=z.x,h*=z.y,m*=z.x,f*=z.y,d+=U,h+=R,v=Hr(y),y=Fd(v)}}return ya({width:m,height:f,x:d,y:h})}function Bd(o,i){let t=Fl(o).scrollLeft;return i?i.left+t:za(kn(o)).left+t}function Jv(o,i){let t=o.getBoundingClientRect(),r=t.left+i.scrollLeft-Bd(o,t),n=t.top+i.scrollTop;return{x:r,y:n}}function x4(o){let{elements:i,rect:t,offsetParent:r,strategy:n}=o,a=n==="fixed",s=kn(r),l=i?Hl(i.floating):!1;if(r===s||l&&a)return t;let d={scrollLeft:0,scrollTop:0},h=zn(1),m=zn(0),f=Un(r);if((f||!a)&&((wa(r)!=="body"||Pl(s))&&(d=Fl(r)),f)){let g=za(r);h=us(r),m.x=g.x+r.clientLeft,m.y=g.y+r.clientTop}let b=s&&!f&&!a?Jv(s,d):zn(0);return{width:t.width*h.x,height:t.height*h.y,x:t.x*h.x-d.scrollLeft*h.x+m.x+b.x,y:t.y*h.y-d.scrollTop*h.y+m.y+b.y}}function w4(o){return o.getClientRects?Array.from(o.getClientRects()):[]}function z4(o){let i=Fl(o),t=o.ownerDocument.body,r=Zi(o.scrollWidth,o.clientWidth,t.scrollWidth,t.clientWidth),n=Zi(o.scrollHeight,o.clientHeight,t.scrollHeight,t.clientHeight),a=-i.scrollLeft+Bd(o),s=-i.scrollTop;return tn(t).direction==="rtl"&&(a+=Zi(o.clientWidth,t.clientWidth)-r),{width:r,height:n,x:a,y:s}}var _4=25;function k4(o,i,t){t===void 0&&(t="viewport");let r=t==="layoutViewport",n=Hr(o),a=kn(o),s=n.visualViewport,l=a.clientWidth,d=a.clientHeight,h=0,m=0;if(s){let b=!Hd()||i==="fixed";r?b||(h=-s.offsetLeft,m=-s.offsetTop):(l=s.width,d=s.height,b&&(h=s.offsetLeft,m=s.offsetTop))}if(Bd(a)<=0){let b=a.ownerDocument,g=b.body,v=getComputedStyle(g),y=b.compatMode==="CSS1Compat"&&parseFloat(v.marginLeft)+parseFloat(v.marginRight)||0,z=Math.abs(a.clientWidth-g.clientWidth-y),E=getComputedStyle(a).scrollbarGutter==="stable both-edges"?z/2:z;E<=_4&&(l-=E)}return{width:l,height:d,x:h,y:m}}function S4(o,i){let t=za(o,!0,i==="fixed"),r=t.top+o.clientTop,n=t.left+o.clientLeft,a=us(o),s=o.clientWidth*a.x,l=o.clientHeight*a.y,d=n*a.x,h=r*a.y;return{width:s,height:l,x:d,y:h}}function Wv(o,i,t){let r;if(i==="viewport"||i==="layoutViewport")r=k4(o,t,i);else if(i==="document")r=z4(kn(o));else if(en(i))r=S4(i,t);else{let n=Xv(o);r={x:i.x-n.x,y:i.y-n.y,width:i.width,height:i.height}}return ya(r)}function C4(o,i){let t=i.get(o);if(t)return t;let r=ds(o,[],!1).filter(l=>en(l)&&wa(l)!=="body"),n=null,a=tn(o).position==="fixed",s=a?zo(o):o;for(;en(s)&&!hs(s);){let l=tn(s),d=ps(s),h=n?n.position:a?"fixed":"";!d&&(h==="fixed"||h==="absolute"&&l.position==="static")?r=r.filter(f=>f!==s):n=l,s=zo(s)}return i.set(o,r),r}function E4(o){let{element:i,boundary:t,rootBoundary:r,strategy:n}=o,s=[...t==="clippingAncestors"?Hl(i)?[]:C4(i,this._c):[].concat(t),r],l=Wv(i,s[0],n),d=l.top,h=l.right,m=l.bottom,f=l.left;for(let b=1;b<s.length;b++){let g=Wv(i,s[b],n);d=Zi(g.top,d),h=wn(g.right,h),m=wn(g.bottom,m),f=Zi(g.left,f)}return{width:h-f,height:m-d,x:f,y:d}}function T4(o){let{width:i,height:t}=Qv(o);return{width:i,height:t}}function $4(o,i,t){let r=Un(i),n=kn(i),a=t==="fixed",s=za(o,!0,a,i),l={scrollLeft:0,scrollTop:0},d=zn(0);if((r||!a)&&((wa(i)!=="body"||Pl(n))&&(l=Fl(i)),r)){let b=za(i,!0,a,i);d.x=b.x+i.clientLeft,d.y=b.y+i.clientTop}!r&&n&&(d.x=Bd(n));let h=n&&!r&&!a?Jv(n,l):zn(0),m=s.left+l.scrollLeft-d.x-h.x,f=s.top+l.scrollTop-d.y-h.y;return{x:m,y:f,width:s.width,height:s.height}}function Pu(o){return tn(o).position==="static"}function Yv(o,i){if(!Un(o)||tn(o).position==="fixed")return null;if(i)return i(o);let t=o.offsetParent;return kn(o)===t&&(t=t.ownerDocument.body),t}function Zv(o,i){let t=Hr(o);if(Hl(o))return t;if(!Un(o)){let n=zo(o);for(;n&&!hs(n);){if(en(n)&&!Pu(n))return n;n=zo(n)}return t}let r=Yv(o,i);for(;r&&jv(r)&&Pu(r);)r=Yv(r,i);return r&&hs(r)&&Pu(r)&&!ps(r)?t:r||Gv(o)||t}var A4=async function(o){let i=this.getOffsetParent||Zv,t=this.getDimensions,r=await t(o.floating);return{reference:$4(o.reference,await i(o.floating),o.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function L4(o){return tn(o).direction==="rtl"}var Bl={convertOffsetParentRelativeRectToViewportRelativeRect:x4,getDocumentElement:kn,getClippingRect:E4,getOffsetParent:Zv,getElementRects:A4,getClientRects:w4,getDimensions:T4,getScale:us,isElement:en,isRTL:L4};function e0(o,i){return o.x===i.x&&o.y===i.y&&o.width===i.width&&o.height===i.height}function M4(o,i,t){let r=null,n,a=kn(o);function s(){var m;clearTimeout(n),(m=r)==null||m.disconnect(),r=null}function l(m,f){m===void 0&&(m=!1),f===void 0&&(f=1),s();let b=o.getBoundingClientRect(),{left:g,top:v,width:y,height:z}=b;if(m||i(),!y||!z)return;let E=Ol(v),N=Ol(a.clientWidth-(g+y)),U=Ol(a.clientHeight-(v+z)),R=Ol(g),$={rootMargin:-E+"px "+-N+"px "+-U+"px "+-R+"px",threshold:Zi(0,wn(1,f))||1},L=!0;function K(ne){let we=ne[0].intersectionRatio;if(!e0(b,o.getBoundingClientRect()))return l();if(we!==f){if(!L)return l();we?l(!1,we):n=setTimeout(()=>{l(!1,1e-7)},1e3)}L=!1}try{r=new IntersectionObserver(K,{...$,root:a.ownerDocument})}catch{r=new IntersectionObserver(K,$)}r.observe(o)}let d=Hr(o),h=()=>l(t);return d.addEventListener("resize",h),l(!0),()=>{d.removeEventListener("resize",h),s()}}function Vd(o,i,t,r){r===void 0&&(r={});let{ancestorScroll:n=!0,ancestorResize:a=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:d=!1}=r,h=Hu(o),m=n||a?[...h?ds(h):[],...i?ds(i):[]]:[];m.forEach(E=>{n&&E.addEventListener("scroll",t),a&&E.addEventListener("resize",t)});let f=h&&l?M4(h,t,a):null,b=-1,g=null;s&&(g=new ResizeObserver(E=>{let[N]=E;N&&N.target===h&&g&&i&&(g.unobserve(i),cancelAnimationFrame(b),b=requestAnimationFrame(()=>{var U;(U=g)==null||U.observe(i)})),t()}),h&&!d&&g.observe(h),i&&g.observe(i));let v,y=d?za(o):null;d&&z();function z(){let E=za(o);y&&!e0(y,E)&&t(),y=E,v=requestAnimationFrame(z)}return t(),()=>{var E;m.forEach(N=>{n&&N.removeEventListener("scroll",t),a&&N.removeEventListener("resize",t)}),f?.(),(E=g)==null||E.disconnect(),g=null,d&&cancelAnimationFrame(v)}}var Ud=Hv;var jd=Fv,Gd=Pv,Vl=Bv;var t0=Ov;var Kd=(o,i,t)=>{let r=new Map,n=t??{},a={...Bl,...n.platform,_c:r};return Nv(o,i,{...n,platform:a})};function r0(o){return q4(o)}function Fu(o){return o.assignedSlot?o.assignedSlot:o.parentNode instanceof ShadowRoot?o.parentNode.host:o.parentNode}function q4(o){for(let i=o;i;i=Fu(i))if(i instanceof Element&&getComputedStyle(i).display==="none")return null;for(let i=Fu(o);i;i=Fu(i)){if(!(i instanceof Element))continue;let t=getComputedStyle(i);if(t.display!=="contents"&&(t.position!=="static"||ps(t)||i.tagName==="BODY"))return i}return null}var i0=k`@keyframes rotate-gradient{from{--rotate:0deg}to{--rotate:360deg}}:host{text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-transform:none}*,*::before,*::after{box-sizing:border-box;border-width:0;border-style:solid;border-color:rgb(var(--zn-border-color))}[hidden]{display:none !important}.width-container,.form-container,.wide-form-container{height:100%;width:100%;margin:var(--zn-default-margin,0 auto)}.width-container{max-width:var(--zn-container)}.form-container{max-width:var(--zn-container-ph)}.wide-form-container{max-width:var(--zn-container-lg)}:host{--arrow-color:rgb(var(--zn-color-text));--arrow-size:6px;--arrow-size-diagonal:calc(var(--arrow-size) * 0.7071);--arrow-padding-offset:calc(var(--arrow-size-diagonal) - var(--arrow-size));display:contents}.popup{position:absolute;isolation:isolate;margin:0;border:0;padding:0;background:transparent;overflow:visible;max-width:var(--auto-size-available-width,none)}.popup--fixed{position:fixed}.popup:not(.popup--active){display:none}.popup__arrow{position:absolute;width:calc(var(--arrow-size-diagonal) * 2);height:calc(var(--arrow-size-diagonal) * 2);rotate:45deg;background:var(--arrow-color);z-index:-1}.popup{}.popup-hover-bridge:not(.popup-hover-bridge--visible){display:none}.popup-hover-bridge{position:fixed;z-index:calc(var(--zn-z-index-dropdown) - 1);top:0;right:0;bottom:0;left:0;clip-path:polygon(var(--hover-bridge-top-left-x,0) var(--hover-bridge-top-left-y,0),var(--hover-bridge-top-right-x,0) var(--hover-bridge-top-right-y,0),var(--hover-bridge-bottom-right-x,0) var(--hover-bridge-bottom-right-y,0),var(--hover-bridge-bottom-left-x,0) var(--hover-bridge-bottom-left-y,0))}`;function I4(o){return o!==null&&typeof o=="object"&&"getBoundingClientRect"in o&&("contextElement"in o?o instanceof Element:!0)}var Ne=class extends S{constructor(){super(...arguments);this.active=!1;this.placement="top";this.strategy="fixed";this.distance=0;this.skidding=0;this.arrow=!1;this.arrowPlacement="anchor";this.arrowPadding=10;this.flip=!1;this.flipFallbackPlacements="";this.flipFallbackStrategy="best-fit";this.flipPadding=0;this.shift=!1;this.shiftPadding=0;this.autoSizePadding=0;this.hoverBridge=!1;this.handleAnchorHover=()=>{this.active||this.start()};this.updateHoverBridge=()=>{if(this.hoverBridge&&this.anchorEl){let t=this.anchorEl.getBoundingClientRect(),r=this.popup.getBoundingClientRect(),n=this.placement.includes("top")||this.placement.includes("bottom"),a,s,l,d,h,m,f,b;n?t.top<r.top?(a=t.left,s=t.bottom,l=t.right,d=t.bottom,h=r.left,m=r.top,f=r.right,b=r.top):(a=r.left,s=r.bottom,l=r.right,d=r.bottom,h=t.left,m=t.top,f=t.right,b=t.top):t.left<r.left?(a=t.right,s=t.top,l=r.left,d=r.top,h=t.right,m=t.bottom,f=r.left,b=r.bottom):(a=r.right,s=r.top,l=t.left,d=t.top,h=r.right,m=r.bottom,f=t.left,b=t.bottom),this.style.setProperty("--hover-bridge-top-left-x",`${a}px`),this.style.setProperty("--hover-bridge-top-left-y",`${s}px`),this.style.setProperty("--hover-bridge-top-right-x",`${l}px`),this.style.setProperty("--hover-bridge-top-right-y",`${d}px`),this.style.setProperty("--hover-bridge-bottom-left-x",`${h}px`),this.style.setProperty("--hover-bridge-bottom-left-y",`${m}px`),this.style.setProperty("--hover-bridge-bottom-right-x",`${f}px`),this.style.setProperty("--hover-bridge-bottom-right-y",`${b}px`)}}}async connectedCallback(){super.connectedCallback(),await this.updateComplete,this.active&&this.start()}disconnectedCallback(){super.disconnectedCallback(),this.stop()}async updated(t){super.updated(t),t.has("active")&&(this.active?this.start():this.stop()),t.has("anchor")&&this.handleAnchorChange(),this.active&&(await this.updateComplete,this.reposition())}async handleAnchorChange(){if(await this.stop(),this.anchor&&typeof this.anchor=="string"){let t=this.getRootNode();this.anchorEl=t.getElementById(this.anchor)}else this.anchor instanceof Element||I4(this.anchor)?this.anchorEl=this.anchor:this.anchorEl=this.querySelector('[slot="anchor"]');this.anchorEl instanceof HTMLSlotElement&&(this.anchorEl=this.anchorEl.assignedElements({flatten:!0})[0]),this.anchorEl&&!this.active&&this.anchorEl instanceof Element&&(this.anchorEl.removeEventListener("mouseover",this.handleAnchorHover),this.anchorEl.addEventListener("mouseover",this.handleAnchorHover))}start(){this.anchorEl&&(this.cleanup?.(),this.cleanup=Vd(this.anchorEl,this.popup,()=>{this.reposition()}))}async stop(){return new Promise(t=>{this.cleanup?(this.cleanup(),this.cleanup=void 0,this.removeAttribute("data-current-placement"),this.style.removeProperty("--auto-size-available-width"),this.style.removeProperty("--auto-size-available-height"),this.popup.hidePopover(),requestAnimationFrame(()=>t())):t()})}reposition(){if(!this.active||!this.anchorEl)return;let t=[Ud({mainAxis:this.distance,crossAxis:this.skidding})];this.sync?t.push(Vl({apply:({rects:n})=>{let a=this.sync==="width"||this.sync==="both",s=this.sync==="height"||this.sync==="both";this.popup.style.minWidth=a?`${n.reference.width}px`:"",this.popup.style.minHeight=s?`${n.reference.height}px`:""}})):(this.popup.style.width="",this.popup.style.height=""),this.flip&&t.push(Gd({boundary:this.flipBoundary,fallbackPlacements:this.flipFallbackPlacements,fallbackStrategy:this.flipFallbackStrategy==="best-fit"?"bestFit":"initialPlacement",padding:this.flipPadding})),this.shift&&t.push(jd({boundary:this.shiftBoundary,padding:this.shiftPadding})),this.autoSize?t.push(Vl({boundary:this.autoSizeBoundary,padding:this.autoSizePadding,apply:({availableWidth:n,availableHeight:a})=>{this.autoSize==="vertical"||this.autoSize==="both"?this.style.setProperty("--auto-size-available-height",`${a}px`):this.style.removeProperty("--auto-size-available-height"),this.autoSize==="horizontal"||this.autoSize==="both"?this.style.setProperty("--auto-size-available-width",`${n}px`):this.style.removeProperty("--auto-size-available-width")}})):(this.style.removeProperty("--auto-size-available-width"),this.style.removeProperty("--auto-size-available-height")),this.arrow&&t.push(t0({element:this.arrowEl,padding:this.arrowPadding}));let r=this.strategy==="absolute"?n=>Bl.getOffsetParent(n,r0):Bl.getOffsetParent;this.popup.isConnected&&!this.popup.matches(":popover-open")&&(this.popup.style.visibility="hidden",this.popup.showPopover()),Kd(this.anchorEl,this.popup,{placement:this.placement,middleware:t,strategy:this.strategy,platform:{...Bl,getOffsetParent:r}}).then(({x:n,y:a,middlewareData:s,placement:l})=>{let d={top:"bottom",right:"left",bottom:"top",left:"right"}[l.split("-")[0]];if(this.setAttribute("data-current-placement",l),Object.assign(this.popup.style,{left:`${n}px`,top:`${a}px`,visibility:""}),!!this.popup?.isConnected&&(this.popup.matches(":popover-open")||this.popup.showPopover(),this.emit("zn-reposition"),this.arrow)){let h=s.arrow.x,m=s.arrow.y,f="",b="",g="",v;this.arrowPlacement==="start"?(f=typeof m=="number"?`calc(${this.arrowPadding}px - var(--arrow-padding-offset))`:"",b="",v=typeof h=="number"?`calc(${this.arrowPadding}px - var(--arrow-padding-offset))`:""):this.arrowPlacement==="end"?(b=typeof h=="number"?`calc(${this.arrowPadding}px - var(--arrow-padding-offset))`:"",v="",g=typeof m=="number"?`calc(${this.arrowPadding}px - var(--arrow-padding-offset))`:""):this.arrowPlacement==="center"?(v=typeof h=="number"?"calc(50% - var(--arrow-size-diagonal))":"",f=typeof m=="number"?"calc(50% - var(--arrow-size-diagonal))":""):(v=typeof h=="number"?`${h}px`:"",f=typeof m=="number"?`${m}px`:""),Object.assign(this.arrowEl.style,{top:f,right:b,bottom:g,left:v,[d]:"calc(var(--arrow-size-diagonal) * -1)"})}}),requestAnimationFrame(()=>this.updateHoverBridge())}render(){return u`
141
+ `:null}`}};ae.styles=[_(Rd),_($v)],ae.dependencies={"zn-tooltip":gi,"zn-icon":oe},c([B(".button")],ae.prototype,"button",2),c([is(".loading-countdown")],ae.prototype,"countdownContainer",2),c([p({})],ae.prototype,"color",2),c([p({attribute:"hover-color"})],ae.prototype,"hoverColor",2),c([p({type:Boolean})],ae.prototype,"text",2),c([p({type:Boolean})],ae.prototype,"outline",2),c([p({type:Boolean})],ae.prototype,"disabled",2),c([p({type:Boolean})],ae.prototype,"grow",2),c([p({type:Boolean})],ae.prototype,"square",2),c([p({attribute:"icon-button",converter:{fromAttribute:t=>t==="small"||t==="round"?t:t!==null,toAttribute:t=>t==="small"||t==="round"?t:t?"":null}})],ae.prototype,"iconButton",2),c([p({type:Boolean})],ae.prototype,"plain",2),c([p({type:Boolean,attribute:"no-hover"})],ae.prototype,"noHover",2),c([p({type:Boolean,reflect:!0})],ae.prototype,"pill",2),c([p({type:Boolean,attribute:"panel-bg"})],ae.prototype,"panelBackground",2),c([p({attribute:"dropdown-closer",type:Boolean})],ae.prototype,"dropdownCloser",2),c([p({type:Number})],ae.prototype,"notification",2),c([p({attribute:"muted-notifications",type:Boolean})],ae.prototype,"mutedNotifications",2),c([p()],ae.prototype,"verticalAlign",2),c([p()],ae.prototype,"content",2),c([p()],ae.prototype,"icon",2),c([p()],ae.prototype,"gaid",2),c([p({attribute:"icon-position"})],ae.prototype,"iconPosition",2),c([p({attribute:"icon-size"})],ae.prototype,"iconSize",2),c([p({attribute:"icon-color"})],ae.prototype,"iconColor",2),c([p({attribute:"icon-fill"})],ae.prototype,"iconFill",2),c([p({attribute:"icon-library"})],ae.prototype,"iconLibrary",2),c([p()],ae.prototype,"type",2),c([p()],ae.prototype,"name",2),c([p()],ae.prototype,"value",2),c([p()],ae.prototype,"form",2),c([p({attribute:"formaction"})],ae.prototype,"formAction",2),c([p({attribute:"formenctype"})],ae.prototype,"formEnctype",2),c([p({attribute:"formmethod"})],ae.prototype,"formMethod",2),c([p({attribute:"formnovalidate",type:Boolean})],ae.prototype,"formNoValidate",2),c([p({attribute:"formtarget"})],ae.prototype,"formTarget",2),c([p()],ae.prototype,"href",2),c([p()],ae.prototype,"target",2),c([p({attribute:"data-target"})],ae.prototype,"dataTarget",2),c([p()],ae.prototype,"rel",2),c([p()],ae.prototype,"tooltip",2),c([p()],ae.prototype,"label",2),c([p({attribute:"aria-pressed"})],ae.prototype,"pressed",2),c([p({type:Boolean,attribute:"auto-click"})],ae.prototype,"autoClick",2),c([p({type:Number,attribute:"auto-click-delay"})],ae.prototype,"autoClickDelay",2),c([p({type:String,attribute:"loading-text"})],ae.prototype,"loadingText",2),c([p({type:String,attribute:"loading-text-position"})],ae.prototype,"loadingTextPosition",2),c([p({type:Boolean})],ae.prototype,"loading",2),c([W("autoClick")],ae.prototype,"handleAutoClickChange",1);var Ee=ae;ae.define("zn-button");var He=class{constructor(i,{target:t,config:r,callback:n,skipInitial:a}){this.t=new Set,this.o=!1,this.i=!1,this.h=i,t!==null&&this.t.add(t??i),this.l=r,this.o=a??this.o,this.callback=n,window.MutationObserver?(this.u=new MutationObserver(s=>{this.handleChanges(s),this.h.requestUpdate()}),i.addController(this)):console.warn("MutationController error: browser does not support MutationObserver.")}handleChanges(i){this.value=this.callback?.(i,this.u)}hostConnected(){for(let i of this.t)this.observe(i)}hostDisconnected(){this.disconnect()}async hostUpdated(){let i=this.u.takeRecords();(i.length||!this.o&&this.i)&&this.handleChanges(i),this.i=!1}observe(i){this.t.add(i),this.u.observe(i,this.l),this.i=!0,this.h.requestUpdate()}disconnect(){this.u.disconnect()}};var cs=class extends S{constructor(){super();this._resizeFrame=null;new He(this,{config:{childList:!0,subtree:!0,attributes:!0,characterData:!0},callback:()=>this.resize(),skipInitial:!0})}firstUpdated(t){super.firstUpdated(t),this.resize()}disconnectedCallback(){super.disconnectedCallback(),this._resizeFrame!==null&&(cancelAnimationFrame(this._resizeFrame),this._resizeFrame=null)}resize(){this._resizeFrame===null&&(this._resizeFrame=requestAnimationFrame(()=>{this._resizeFrame=null;let t=0;Array.from(this.children).forEach(n=>{t+=n.getBoundingClientRect().height});let r=t+"px";this.style.minHeight!==r&&(this.style.minHeight=r)}))}createRenderRoot(){return this}};var s4=cs;cs.define("zn-absolute-container");var wn=Math.min,Zi=Math.max,Nl=Math.round,Ol=Math.floor,zn=o=>({x:o,y:o}),l4={left:"right",right:"left",bottom:"top",top:"bottom"};function Ru(o,i,t){return Zi(o,wn(i,t))}function ba(o,i){return typeof o=="function"?o(i):o}function wo(o){return o.split("-")[0]}function va(o){return o.split("-")[1]}function Du(o){return o==="x"?"y":"x"}function Nd(o){return o==="y"?"height":"width"}function _n(o){let i=o[0];return i==="t"||i==="b"?"y":"x"}function Od(o){return Du(_n(o))}function Mv(o,i,t){t===void 0&&(t=!1);let r=va(o),n=Od(o),a=Nd(n),s=n==="x"?r===(t?"end":"start")?"right":"left":r==="start"?"bottom":"top";return i.reference[a]>i.floating[a]&&(s=Dl(s)),[s,Dl(s)]}function qv(o){let i=Dl(o);return[Dd(o),i,Dd(i)]}function Dd(o){return o.includes("start")?o.replace("start","end"):o.replace("end","start")}var Av=["left","right"],Lv=["right","left"],c4=["top","bottom"],d4=["bottom","top"];function p4(o,i,t){switch(o){case"top":case"bottom":return t?i?Lv:Av:i?Av:Lv;case"left":case"right":return i?c4:d4;default:return[]}}function Iv(o,i,t,r){let n=va(o),a=p4(wo(o),t==="start",r);return n&&(a=a.map(s=>s+"-"+n),i&&(a=a.concat(a.map(Dd)))),a}function Dl(o){let i=wo(o);return l4[i]+o.slice(i.length)}function h4(o){var i,t,r,n;return{top:(i=o.top)!=null?i:0,right:(t=o.right)!=null?t:0,bottom:(r=o.bottom)!=null?r:0,left:(n=o.left)!=null?n:0}}function Nu(o){return typeof o!="number"?h4(o):{top:o,right:o,bottom:o,left:o}}function ya(o){let{x:i,y:t,width:r,height:n}=o;return{width:r,height:n,top:t,left:i,right:i+r,bottom:t+n,x:i,y:t}}function Rv(o,i,t){let{reference:r,floating:n}=o,a=_n(i),s=Od(i),l=Nd(s),d=wo(i),h=a==="y",m=r.x+r.width/2-n.width/2,f=r.y+r.height/2-n.height/2,b=r[l]/2-n[l]/2,g;switch(d){case"top":g={x:m,y:r.y-n.height};break;case"bottom":g={x:m,y:r.y+r.height};break;case"right":g={x:r.x+r.width,y:f};break;case"left":g={x:r.x-n.width,y:f};break;default:g={x:r.x,y:r.y}}let v=va(i);return v&&(g[s]+=b*(v==="end"?1:-1)*(t&&h?-1:1)),g}async function Dv(o,i){var t;i===void 0&&(i={});let{x:r,y:n,platform:a,rects:s,elements:l,strategy:d}=o,{boundary:h="clippingAncestors",rootBoundary:m="viewport",elementContext:f="floating",altBoundary:b=!1,padding:g=0}=ba(i,o),v=Nu(g),z=l[b?f==="floating"?"reference":"floating":f],E=ya(await a.getClippingRect({element:(t=await(a.isElement==null?void 0:a.isElement(z)))==null||t?z:z.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(l.floating)),boundary:h,rootBoundary:m,strategy:d})),N=f==="floating"?{x:r,y:n,width:s.floating.width,height:s.floating.height}:s.reference,U=await(a.getOffsetParent==null?void 0:a.getOffsetParent(l.floating)),R=await(a.isElement==null?void 0:a.isElement(U))&&await(a.getScale==null?void 0:a.getScale(U))||{x:1,y:1},C=ya(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:N,offsetParent:U,strategy:d}):N);return{top:(E.top-C.top+v.top)/R.y,bottom:(C.bottom-E.bottom+v.bottom)/R.y,left:(E.left-C.left+v.left)/R.x,right:(C.right-E.right+v.right)/R.x}}var u4=50,Nv=async(o,i,t)=>{let{placement:r="bottom",strategy:n="absolute",middleware:a=[],platform:s}=t,l=s.detectOverflow?s:{...s,detectOverflow:Dv},d=await(s.isRTL==null?void 0:s.isRTL(i)),h=await s.getElementRects({reference:o,floating:i,strategy:n}),{x:m,y:f}=Rv(h,r,d),b=r,g=0,v={};for(let y=0;y<a.length;y++){let z=a[y];if(!z)continue;let{name:E,fn:N}=z,{x:U,y:R,data:C,reset:$}=await N({x:m,y:f,initialPlacement:r,placement:b,strategy:n,middlewareData:v,rects:h,platform:l,elements:{reference:o,floating:i}});m=U??m,f=R??f,v[E]={...v[E],...C},$&&g<u4&&(g++,typeof $=="object"&&($.placement&&(b=$.placement),$.rects&&(h=$.rects===!0?await s.getElementRects({reference:o,floating:i,strategy:n}):$.rects),{x:m,y:f}=Rv(h,b,d)),y=-1)}return{x:m,y:f,placement:b,strategy:n,middlewareData:v}},Ov=o=>({name:"arrow",options:o,async fn(i){let{x:t,y:r,placement:n,rects:a,platform:s,elements:l,middlewareData:d}=i,{element:h,padding:m=0}=ba(o,i)||{};if(h==null)return{};let f=Nu(m),b={x:t,y:r},g=Od(n),v=Nd(g),y=await s.getDimensions(h),z=g==="y",E=z?"top":"left",N=z?"bottom":"right",U=z?"clientHeight":"clientWidth",R=a.reference[v]+a.reference[g]-b[g]-a.floating[v],C=b[g]-a.reference[g],$=await(s.getOffsetParent==null?void 0:s.getOffsetParent(h)),L=$?$[U]:0;(!L||!await(s.isElement==null?void 0:s.isElement($)))&&(L=l.floating[U]||a.floating[v]);let K=R/2-C/2,ne=L/2-y[v]/2-1,we=wn(f[E],ne),De=wn(f[N],ne),Pe=L-y[v]-De,at=L/2-y[v]/2+K,er=Ru(we,at,Pe),Pr=!d.arrow&&va(n)!=null&&at!==er&&a.reference[v]/2-(at<we?we:De)-y[v]/2<0,zr=Pr?at<we?at-we:at-Pe:0;return{[g]:b[g]+zr,data:{[g]:er,centerOffset:at-er-zr,...Pr&&{alignmentOffset:zr}},reset:Pr}}});var Pv=function(o){return o===void 0&&(o={}),{name:"flip",options:o,async fn(i){var t,r;let{placement:n,middlewareData:a,rects:s,initialPlacement:l,platform:d,elements:h}=i,{mainAxis:m=!0,crossAxis:f=!0,fallbackPlacements:b,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:v="none",flipAlignment:y=!0,...z}=ba(o,i);if((t=a.arrow)!=null&&t.alignmentOffset)return{};let E=wo(n),N=_n(l),U=wo(l)===l,R=await(d.isRTL==null?void 0:d.isRTL(h.floating)),C=b||(U||!y?[Dl(l)]:qv(l)),$=v!=="none";!b&&$&&C.push(...Iv(l,y,v,R));let L=[l,...C],K=await d.detectOverflow(i,z),ne=[],we=((r=a.flip)==null?void 0:r.overflows)||[];if(m&&ne.push(K[E]),f){let er=Mv(n,s,R);ne.push(K[er[0]],K[er[1]])}if(we=[...we,{placement:n,overflows:ne}],!ne.every(er=>er<=0)){var De,Pe;let er=(((De=a.flip)==null?void 0:De.index)||0)+1,Pr=L[er];if(Pr&&(!(f==="alignment"?N!==_n(Pr):!1)||we.every(tr=>_n(tr.placement)===N?tr.overflows[0]>0:!0)))return{data:{index:er,overflows:we},reset:{placement:Pr}};let zr=(Pe=we.filter(Nt=>Nt.overflows[0]<=0).sort((Nt,tr)=>Nt.overflows[1]-tr.overflows[1])[0])==null?void 0:Pe.placement;if(!zr)switch(g){case"bestFit":{var at;let Nt=(at=we.filter(tr=>{if($){let Lt=_n(tr.placement);return Lt===N||Lt==="y"}return!0}).map(tr=>[tr.placement,tr.overflows.filter(Lt=>Lt>0).reduce((Lt,mo)=>Lt+mo,0)]).sort((tr,Lt)=>tr[1]-Lt[1])[0])==null?void 0:at[0];Nt&&(zr=Nt);break}case"initialPlacement":zr=l;break}if(n!==zr)return{reset:{placement:zr}}}return{}}}};var m4=new Set(["left","top"]);async function f4(o,i){let{placement:t,platform:r,elements:n}=o,a=await(r.isRTL==null?void 0:r.isRTL(n.floating)),s=wo(t),l=va(t),d=_n(t)==="y",h=m4.has(s)?-1:1,m=a&&d?-1:1,f=ba(i,o),{mainAxis:b,crossAxis:g,alignmentAxis:v}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return l&&typeof v=="number"&&(g=l==="end"?v*-1:v),d?{x:g*m,y:b*h}:{x:b*h,y:g*m}}var Hv=function(o){return o===void 0&&(o=0),{name:"offset",options:o,async fn(i){var t,r;let{x:n,y:a,placement:s,middlewareData:l}=i,d=await f4(i,o);return s===((t=l.offset)==null?void 0:t.placement)&&(r=l.arrow)!=null&&r.alignmentOffset?{}:{x:n+d.x,y:a+d.y,data:{...d,placement:s}}}}},Fv=function(o){return o===void 0&&(o={}),{name:"shift",options:o,async fn(i){let{x:t,y:r,placement:n,platform:a}=i,{mainAxis:s=!0,crossAxis:l=!1,limiter:d={fn:N=>{let{x:U,y:R}=N;return{x:U,y:R}}},...h}=ba(o,i),m={x:t,y:r},f=await a.detectOverflow(i,h),b=_n(n),g=Du(b),v=m[g],y=m[b],z=(N,U)=>Ru(U+f[N==="y"?"top":"left"],U,U-f[N==="y"?"bottom":"right"]);s&&(v=z(g,v)),l&&(y=z(b,y));let E=d.fn({...i,[g]:v,[b]:y});return{...E,data:{x:E.x-t,y:E.y-r,enabled:{[g]:s,[b]:l}}}}}};var Bv=function(o){return o===void 0&&(o={}),{name:"size",options:o,async fn(i){let{placement:t,rects:r,platform:n,elements:a}=i,{apply:s=()=>{},...l}=ba(o,i),d=await n.detectOverflow(i,l),h=wo(t),m=va(t),f=_n(t)==="y",{width:b,height:g}=r.floating,v,y;h==="top"||h==="bottom"?(v=h,y=m===(await(n.isRTL==null?void 0:n.isRTL(a.floating))?"start":"end")?"left":"right"):(y=h,v=m==="end"?"top":"bottom");let z=g-d.top-d.bottom,E=b-d.left-d.right,N=wn(g-d[v],z),U=wn(b-d[y],E),R=i.middlewareData.shift,C=!R,$=N,L=U;R!=null&&R.enabled.x&&(L=E),R!=null&&R.enabled.y&&($=z),C&&!m&&(f?L=b-2*Zi(d.left,d.right):$=g-2*Zi(d.top,d.bottom)),await s({...i,availableWidth:L,availableHeight:$});let K=await n.getDimensions(a.floating);return b!==K.width||g!==K.height?{reset:{rects:!0}}:{}}}};function Pd(){return typeof window<"u"}function wa(o){return Uv(o)?(o.nodeName||"").toLowerCase():"#document"}function Hr(o){var i;return(o==null||(i=o.ownerDocument)==null?void 0:i.defaultView)||window}function kn(o){var i;return(i=(Uv(o)?o.ownerDocument:o.document)||window.document)==null?void 0:i.documentElement}function Uv(o){return Pd()?o instanceof Node||o instanceof Hr(o).Node:!1}function en(o){return Pd()?o instanceof Element||o instanceof Hr(o).Element:!1}function Un(o){return Pd()?o instanceof HTMLElement||o instanceof Hr(o).HTMLElement:!1}function Vv(o){return!Pd()||typeof ShadowRoot>"u"?!1:o instanceof ShadowRoot||o instanceof Hr(o).ShadowRoot}function Pl(o){let{overflow:i,overflowX:t,overflowY:r,display:n}=tn(o);return/auto|scroll|overlay|hidden|clip/.test(i+r+t)&&n!=="inline"&&n!=="contents"}function jv(o){return/^(table|td|th)$/.test(wa(o))}function Hl(o){try{if(o.matches(":popover-open"))return!0}catch{}try{return o.matches(":modal")}catch{return!1}}var g4=/transform|translate|scale|rotate|perspective|filter/,b4=/paint|layout|strict|content/,xa=o=>!!o&&o!=="none",Ou;function ps(o){let i=en(o)?tn(o):o;return xa(i.transform)||xa(i.translate)||xa(i.scale)||xa(i.rotate)||xa(i.perspective)||!Hd()&&(xa(i.backdropFilter)||xa(i.filter))||g4.test(i.willChange||"")||b4.test(i.contain||"")}function Gv(o){let i=zo(o);for(;Un(i)&&!hs(i);){if(ps(i))return i;if(Hl(i))return null;i=zo(i)}return null}function Hd(){return Ou==null&&(Ou=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Ou}function hs(o){return/^(html|body|#document)$/.test(wa(o))}function tn(o){return Hr(o).getComputedStyle(o)}function Fl(o){return en(o)?{scrollLeft:o.scrollLeft,scrollTop:o.scrollTop}:{scrollLeft:o.scrollX,scrollTop:o.scrollY}}function zo(o){if(wa(o)==="html")return o;let i=o.assignedSlot||o.parentNode||Vv(o)&&o.host||kn(o);return Vv(i)?i.host:i}function Kv(o){let i=zo(o);return hs(i)?(o.ownerDocument||o).body:Un(i)&&Pl(i)?i:Kv(i)}function ds(o,i,t){var r;i===void 0&&(i=[]),t===void 0&&(t=!0);let n=Kv(o),a=n===((r=o.ownerDocument)==null?void 0:r.body),s=Hr(n);if(a){let l=Fd(s);return i.concat(s,s.visualViewport||[],Pl(n)?n:[],l&&t?ds(l):[])}else return i.concat(n,ds(n,[],t))}function Fd(o){return o.parent&&Object.getPrototypeOf(o.parent)?o.frameElement:null}function Qv(o){let i=tn(o),t=parseFloat(i.width)||0,r=parseFloat(i.height)||0,n=Un(o),a=n?o.offsetWidth:t,s=n?o.offsetHeight:r,l=Nl(t)!==a||Nl(r)!==s;return l&&(t=a,r=s),{width:t,height:r,$:l}}function Hu(o){return en(o)?o:o.contextElement}function us(o){let i=Hu(o);if(!Un(i))return zn(1);let t=i.getBoundingClientRect(),{width:r,height:n,$:a}=Qv(i),s=(a?Nl(t.width):t.width)/r,l=(a?Nl(t.height):t.height)/n;return(!s||!Number.isFinite(s))&&(s=1),(!l||!Number.isFinite(l))&&(l=1),{x:s,y:l}}var v4=zn(0);function Xv(o){let i=Hr(o);return!Hd()||!i.visualViewport?v4:{x:i.visualViewport.offsetLeft,y:i.visualViewport.offsetTop}}function y4(o,i,t){return i===void 0&&(i=!1),!!t&&i&&t===Hr(o)}function za(o,i,t,r){i===void 0&&(i=!1),t===void 0&&(t=!1);let n=o.getBoundingClientRect(),a=Hu(o),s=zn(1);i&&(r?en(r)&&(s=us(r)):s=us(o));let l=y4(a,t,r)?Xv(a):zn(0),d=(n.left+l.x)/s.x,h=(n.top+l.y)/s.y,m=n.width/s.x,f=n.height/s.y;if(a&&r){let b=Hr(a),g=en(r)?Hr(r):r,v=b,y=Fd(v);for(;y&&g!==v;){let z=us(y),E=y.getBoundingClientRect(),N=tn(y),U=E.left+(y.clientLeft+parseFloat(N.paddingLeft))*z.x,R=E.top+(y.clientTop+parseFloat(N.paddingTop))*z.y;d*=z.x,h*=z.y,m*=z.x,f*=z.y,d+=U,h+=R,v=Hr(y),y=Fd(v)}}return ya({width:m,height:f,x:d,y:h})}function Bd(o,i){let t=Fl(o).scrollLeft;return i?i.left+t:za(kn(o)).left+t}function Jv(o,i){let t=o.getBoundingClientRect(),r=t.left+i.scrollLeft-Bd(o,t),n=t.top+i.scrollTop;return{x:r,y:n}}function x4(o){let{elements:i,rect:t,offsetParent:r,strategy:n}=o,a=n==="fixed",s=kn(r),l=i?Hl(i.floating):!1;if(r===s||l&&a)return t;let d={scrollLeft:0,scrollTop:0},h=zn(1),m=zn(0),f=Un(r);if((f||!a)&&((wa(r)!=="body"||Pl(s))&&(d=Fl(r)),f)){let g=za(r);h=us(r),m.x=g.x+r.clientLeft,m.y=g.y+r.clientTop}let b=s&&!f&&!a?Jv(s,d):zn(0);return{width:t.width*h.x,height:t.height*h.y,x:t.x*h.x-d.scrollLeft*h.x+m.x+b.x,y:t.y*h.y-d.scrollTop*h.y+m.y+b.y}}function w4(o){return o.getClientRects?Array.from(o.getClientRects()):[]}function z4(o){let i=Fl(o),t=o.ownerDocument.body,r=Zi(o.scrollWidth,o.clientWidth,t.scrollWidth,t.clientWidth),n=Zi(o.scrollHeight,o.clientHeight,t.scrollHeight,t.clientHeight),a=-i.scrollLeft+Bd(o),s=-i.scrollTop;return tn(t).direction==="rtl"&&(a+=Zi(o.clientWidth,t.clientWidth)-r),{width:r,height:n,x:a,y:s}}var _4=25;function k4(o,i,t){t===void 0&&(t="viewport");let r=t==="layoutViewport",n=Hr(o),a=kn(o),s=n.visualViewport,l=a.clientWidth,d=a.clientHeight,h=0,m=0;if(s){let b=!Hd()||i==="fixed";r?b||(h=-s.offsetLeft,m=-s.offsetTop):(l=s.width,d=s.height,b&&(h=s.offsetLeft,m=s.offsetTop))}if(Bd(a)<=0){let b=a.ownerDocument,g=b.body,v=getComputedStyle(g),y=b.compatMode==="CSS1Compat"&&parseFloat(v.marginLeft)+parseFloat(v.marginRight)||0,z=Math.abs(a.clientWidth-g.clientWidth-y),E=getComputedStyle(a).scrollbarGutter==="stable both-edges"?z/2:z;E<=_4&&(l-=E)}return{width:l,height:d,x:h,y:m}}function S4(o,i){let t=za(o,!0,i==="fixed"),r=t.top+o.clientTop,n=t.left+o.clientLeft,a=us(o),s=o.clientWidth*a.x,l=o.clientHeight*a.y,d=n*a.x,h=r*a.y;return{width:s,height:l,x:d,y:h}}function Wv(o,i,t){let r;if(i==="viewport"||i==="layoutViewport")r=k4(o,t,i);else if(i==="document")r=z4(kn(o));else if(en(i))r=S4(i,t);else{let n=Xv(o);r={x:i.x-n.x,y:i.y-n.y,width:i.width,height:i.height}}return ya(r)}function C4(o,i){let t=i.get(o);if(t)return t;let r=ds(o,[],!1).filter(l=>en(l)&&wa(l)!=="body"),n=null,a=tn(o).position==="fixed",s=a?zo(o):o;for(;en(s)&&!hs(s);){let l=tn(s),d=ps(s),h=n?n.position:a?"fixed":"";!d&&(h==="fixed"||h==="absolute"&&l.position==="static")?r=r.filter(f=>f!==s):n=l,s=zo(s)}return i.set(o,r),r}function E4(o){let{element:i,boundary:t,rootBoundary:r,strategy:n}=o,s=[...t==="clippingAncestors"?Hl(i)?[]:C4(i,this._c):[].concat(t),r],l=Wv(i,s[0],n),d=l.top,h=l.right,m=l.bottom,f=l.left;for(let b=1;b<s.length;b++){let g=Wv(i,s[b],n);d=Zi(g.top,d),h=wn(g.right,h),m=wn(g.bottom,m),f=Zi(g.left,f)}return{width:h-f,height:m-d,x:f,y:d}}function T4(o){let{width:i,height:t}=Qv(o);return{width:i,height:t}}function $4(o,i,t){let r=Un(i),n=kn(i),a=t==="fixed",s=za(o,!0,a,i),l={scrollLeft:0,scrollTop:0},d=zn(0);if((r||!a)&&((wa(i)!=="body"||Pl(n))&&(l=Fl(i)),r)){let b=za(i,!0,a,i);d.x=b.x+i.clientLeft,d.y=b.y+i.clientTop}!r&&n&&(d.x=Bd(n));let h=n&&!r&&!a?Jv(n,l):zn(0),m=s.left+l.scrollLeft-d.x-h.x,f=s.top+l.scrollTop-d.y-h.y;return{x:m,y:f,width:s.width,height:s.height}}function Pu(o){return tn(o).position==="static"}function Yv(o,i){if(!Un(o)||tn(o).position==="fixed")return null;if(i)return i(o);let t=o.offsetParent;return kn(o)===t&&(t=t.ownerDocument.body),t}function Zv(o,i){let t=Hr(o);if(Hl(o))return t;if(!Un(o)){let n=zo(o);for(;n&&!hs(n);){if(en(n)&&!Pu(n))return n;n=zo(n)}return t}let r=Yv(o,i);for(;r&&jv(r)&&Pu(r);)r=Yv(r,i);return r&&hs(r)&&Pu(r)&&!ps(r)?t:r||Gv(o)||t}var A4=async function(o){let i=this.getOffsetParent||Zv,t=this.getDimensions,r=await t(o.floating);return{reference:$4(o.reference,await i(o.floating),o.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function L4(o){return tn(o).direction==="rtl"}var Bl={convertOffsetParentRelativeRectToViewportRelativeRect:x4,getDocumentElement:kn,getClippingRect:E4,getOffsetParent:Zv,getElementRects:A4,getClientRects:w4,getDimensions:T4,getScale:us,isElement:en,isRTL:L4};function e0(o,i){return o.x===i.x&&o.y===i.y&&o.width===i.width&&o.height===i.height}function M4(o,i,t){let r=null,n,a=kn(o);function s(){var m;clearTimeout(n),(m=r)==null||m.disconnect(),r=null}function l(m,f){m===void 0&&(m=!1),f===void 0&&(f=1),s();let b=o.getBoundingClientRect(),{left:g,top:v,width:y,height:z}=b;if(m||i(),!y||!z)return;let E=Ol(v),N=Ol(a.clientWidth-(g+y)),U=Ol(a.clientHeight-(v+z)),R=Ol(g),$={rootMargin:-E+"px "+-N+"px "+-U+"px "+-R+"px",threshold:Zi(0,wn(1,f))||1},L=!0;function K(ne){let we=ne[0].intersectionRatio;if(!e0(b,o.getBoundingClientRect()))return l();if(we!==f){if(!L)return l();we?l(!1,we):n=setTimeout(()=>{l(!1,1e-7)},1e3)}L=!1}try{r=new IntersectionObserver(K,{...$,root:a.ownerDocument})}catch{r=new IntersectionObserver(K,$)}r.observe(o)}let d=Hr(o),h=()=>l(t);return d.addEventListener("resize",h),l(!0),()=>{d.removeEventListener("resize",h),s()}}function Vd(o,i,t,r){r===void 0&&(r={});let{ancestorScroll:n=!0,ancestorResize:a=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:d=!1}=r,h=Hu(o),m=n||a?[...h?ds(h):[],...i?ds(i):[]]:[];m.forEach(E=>{n&&E.addEventListener("scroll",t),a&&E.addEventListener("resize",t)});let f=h&&l?M4(h,t,a):null,b=-1,g=null;s&&(g=new ResizeObserver(E=>{let[N]=E;N&&N.target===h&&g&&i&&(g.unobserve(i),cancelAnimationFrame(b),b=requestAnimationFrame(()=>{var U;(U=g)==null||U.observe(i)})),t()}),h&&!d&&g.observe(h),i&&g.observe(i));let v,y=d?za(o):null;d&&z();function z(){let E=za(o);y&&!e0(y,E)&&t(),y=E,v=requestAnimationFrame(z)}return t(),()=>{var E;m.forEach(N=>{n&&N.removeEventListener("scroll",t),a&&N.removeEventListener("resize",t)}),f?.(),(E=g)==null||E.disconnect(),g=null,d&&cancelAnimationFrame(v)}}var Ud=Hv;var jd=Fv,Gd=Pv,Vl=Bv;var t0=Ov;var Kd=(o,i,t)=>{let r=new Map,n=t??{},a={...Bl,...n.platform,_c:r};return Nv(o,i,{...n,platform:a})};function r0(o){return q4(o)}function Fu(o){return o.assignedSlot?o.assignedSlot:o.parentNode instanceof ShadowRoot?o.parentNode.host:o.parentNode}function q4(o){for(let i=o;i;i=Fu(i))if(i instanceof Element&&getComputedStyle(i).display==="none")return null;for(let i=Fu(o);i;i=Fu(i)){if(!(i instanceof Element))continue;let t=getComputedStyle(i);if(t.display!=="contents"&&(t.position!=="static"||ps(t)||i.tagName==="BODY"))return i}return null}var i0=k`@keyframes rotate-gradient{from{--rotate:0deg}to{--rotate:360deg}}:host{text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-transform:none}*,*::before,*::after{box-sizing:border-box;border-width:0;border-style:solid;border-color:rgb(var(--zn-border-color))}[hidden]{display:none !important}.width-container,.form-container,.wide-form-container{height:100%;width:100%;margin:var(--zn-default-margin,0 auto)}.width-container{max-width:var(--zn-container)}.form-container{max-width:var(--zn-container-ph)}.wide-form-container{max-width:var(--zn-container-lg)}:host{--arrow-color:rgb(var(--zn-color-text));--arrow-size:6px;--arrow-size-diagonal:calc(var(--arrow-size) * 0.7071);--arrow-padding-offset:calc(var(--arrow-size-diagonal) - var(--arrow-size));display:contents}.popup{position:absolute;isolation:isolate;margin:0;border:0;padding:0;background:transparent;overflow:visible;max-width:var(--auto-size-available-width,none)}.popup--fixed{position:fixed}.popup:not(.popup--active){display:none}.popup__arrow{position:absolute;width:calc(var(--arrow-size-diagonal) * 2);height:calc(var(--arrow-size-diagonal) * 2);rotate:45deg;background:var(--arrow-color);z-index:-1}.popup{}.popup-hover-bridge:not(.popup-hover-bridge--visible){display:none}.popup-hover-bridge{position:fixed;z-index:calc(var(--zn-z-index-dropdown) - 1);top:0;right:0;bottom:0;left:0;clip-path:polygon(var(--hover-bridge-top-left-x,0) var(--hover-bridge-top-left-y,0),var(--hover-bridge-top-right-x,0) var(--hover-bridge-top-right-y,0),var(--hover-bridge-bottom-right-x,0) var(--hover-bridge-bottom-right-y,0),var(--hover-bridge-bottom-left-x,0) var(--hover-bridge-bottom-left-y,0))}`;function I4(o){return o!==null&&typeof o=="object"&&"getBoundingClientRect"in o&&("contextElement"in o?o instanceof Element:!0)}var Ne=class extends S{constructor(){super(...arguments);this.active=!1;this.placement="top";this.strategy="fixed";this.distance=0;this.skidding=0;this.arrow=!1;this.arrowPlacement="anchor";this.arrowPadding=10;this.flip=!1;this.flipFallbackPlacements="";this.flipFallbackStrategy="best-fit";this.flipPadding=0;this.shift=!1;this.shiftPadding=0;this.autoSizePadding=0;this.hoverBridge=!1;this.handleAnchorHover=()=>{this.active||this.start()};this.updateHoverBridge=()=>{if(this.hoverBridge&&this.anchorEl){let t=this.anchorEl.getBoundingClientRect(),r=this.popup.getBoundingClientRect(),n=this.placement.includes("top")||this.placement.includes("bottom"),a,s,l,d,h,m,f,b;n?t.top<r.top?(a=t.left,s=t.bottom,l=t.right,d=t.bottom,h=r.left,m=r.top,f=r.right,b=r.top):(a=r.left,s=r.bottom,l=r.right,d=r.bottom,h=t.left,m=t.top,f=t.right,b=t.top):t.left<r.left?(a=t.right,s=t.top,l=r.left,d=r.top,h=t.right,m=t.bottom,f=r.left,b=r.bottom):(a=r.right,s=r.top,l=t.left,d=t.top,h=r.right,m=r.bottom,f=t.left,b=t.bottom),this.style.setProperty("--hover-bridge-top-left-x",`${a}px`),this.style.setProperty("--hover-bridge-top-left-y",`${s}px`),this.style.setProperty("--hover-bridge-top-right-x",`${l}px`),this.style.setProperty("--hover-bridge-top-right-y",`${d}px`),this.style.setProperty("--hover-bridge-bottom-left-x",`${h}px`),this.style.setProperty("--hover-bridge-bottom-left-y",`${m}px`),this.style.setProperty("--hover-bridge-bottom-right-x",`${f}px`),this.style.setProperty("--hover-bridge-bottom-right-y",`${b}px`)}}}async connectedCallback(){super.connectedCallback(),await this.updateComplete,this.active&&this.start()}disconnectedCallback(){super.disconnectedCallback(),this.stop()}async updated(t){super.updated(t),t.has("active")&&(this.active?this.start():this.stop()),t.has("anchor")&&this.handleAnchorChange(),this.active&&(await this.updateComplete,this.reposition())}async handleAnchorChange(){if(await this.stop(),this.anchor&&typeof this.anchor=="string"){let t=this.getRootNode();this.anchorEl=t.getElementById(this.anchor)}else this.anchor instanceof Element||I4(this.anchor)?this.anchorEl=this.anchor:this.anchorEl=this.querySelector('[slot="anchor"]');this.anchorEl instanceof HTMLSlotElement&&(this.anchorEl=this.anchorEl.assignedElements({flatten:!0})[0]),this.anchorEl&&!this.active&&this.anchorEl instanceof Element&&(this.anchorEl.removeEventListener("mouseover",this.handleAnchorHover),this.anchorEl.addEventListener("mouseover",this.handleAnchorHover))}start(){this.anchorEl&&(this.cleanup?.(),this.cleanup=Vd(this.anchorEl,this.popup,()=>{this.reposition()}))}async stop(){return new Promise(t=>{this.cleanup?(this.cleanup(),this.cleanup=void 0,this.removeAttribute("data-current-placement"),this.style.removeProperty("--auto-size-available-width"),this.style.removeProperty("--auto-size-available-height"),this.popup.hidePopover(),requestAnimationFrame(()=>t())):t()})}reposition(){if(!this.active||!this.anchorEl)return;let t=[Ud({mainAxis:this.distance,crossAxis:this.skidding})];this.sync?t.push(Vl({apply:({rects:n})=>{let a=this.sync==="width"||this.sync==="both",s=this.sync==="height"||this.sync==="both";this.popup.style.minWidth=a?`${n.reference.width}px`:"",this.popup.style.minHeight=s?`${n.reference.height}px`:""}})):(this.popup.style.width="",this.popup.style.height=""),this.flip&&t.push(Gd({boundary:this.flipBoundary,fallbackPlacements:this.flipFallbackPlacements,fallbackStrategy:this.flipFallbackStrategy==="best-fit"?"bestFit":"initialPlacement",padding:this.flipPadding})),this.shift&&t.push(jd({boundary:this.shiftBoundary,padding:this.shiftPadding})),this.autoSize?t.push(Vl({boundary:this.autoSizeBoundary,padding:this.autoSizePadding,apply:({availableWidth:n,availableHeight:a})=>{this.autoSize==="vertical"||this.autoSize==="both"?this.style.setProperty("--auto-size-available-height",`${a}px`):this.style.removeProperty("--auto-size-available-height"),this.autoSize==="horizontal"||this.autoSize==="both"?this.style.setProperty("--auto-size-available-width",`${n}px`):this.style.removeProperty("--auto-size-available-width")}})):(this.style.removeProperty("--auto-size-available-width"),this.style.removeProperty("--auto-size-available-height")),this.arrow&&t.push(t0({element:this.arrowEl,padding:this.arrowPadding}));let r=this.strategy==="absolute"?n=>Bl.getOffsetParent(n,r0):Bl.getOffsetParent;this.popup.isConnected&&!this.popup.matches(":popover-open")&&(this.popup.style.visibility="hidden",this.popup.showPopover()),Kd(this.anchorEl,this.popup,{placement:this.placement,middleware:t,strategy:this.strategy,platform:{...Bl,getOffsetParent:r}}).then(({x:n,y:a,middlewareData:s,placement:l})=>{let d={top:"bottom",right:"left",bottom:"top",left:"right"}[l.split("-")[0]];if(this.setAttribute("data-current-placement",l),Object.assign(this.popup.style,{left:`${n}px`,top:`${a}px`,visibility:""}),!!this.popup?.isConnected&&(this.popup.matches(":popover-open")||this.popup.showPopover(),this.emit("zn-reposition"),this.arrow)){let h=s.arrow.x,m=s.arrow.y,f="",b="",g="",v;this.arrowPlacement==="start"?(f=typeof m=="number"?`calc(${this.arrowPadding}px - var(--arrow-padding-offset))`:"",b="",v=typeof h=="number"?`calc(${this.arrowPadding}px - var(--arrow-padding-offset))`:""):this.arrowPlacement==="end"?(b=typeof h=="number"?`calc(${this.arrowPadding}px - var(--arrow-padding-offset))`:"",v="",g=typeof m=="number"?`calc(${this.arrowPadding}px - var(--arrow-padding-offset))`:""):this.arrowPlacement==="center"?(v=typeof h=="number"?"calc(50% - var(--arrow-size-diagonal))":"",f=typeof m=="number"?"calc(50% - var(--arrow-size-diagonal))":""):(v=typeof h=="number"?`${h}px`:"",f=typeof m=="number"?`${m}px`:""),Object.assign(this.arrowEl.style,{top:f,right:b,bottom:g,left:v,[d]:"calc(var(--arrow-size-diagonal) * -1)"})}}),requestAnimationFrame(()=>this.updateHoverBridge())}render(){return u`
142
142
  <slot class="anchor" name="anchor" @slotchange="${this.handleAnchorChange}"></slot>
143
143
 
144
144
  <span
@@ -199,7 +199,7 @@ import{a as Hn,b as X3,c as kr,d as c,e as V}from"./chunks/zn.UBLZO6CI.js";var a
199
199
  class="${M({"button-group":!0,"button-group--grow":this.grow,"button-group--start":this.start,"button-group--gap":this.gap})}"
200
200
  role="group">
201
201
  <slot @slotchange=${this.handleSlotChange}></slot>
202
- </div>`}};bi.styles=_(a0),c([p({})],bi.prototype,"direction",2),c([p({type:Boolean})],bi.prototype,"grow",2),c([p({type:Boolean})],bi.prototype,"wrap",2),c([p({type:Boolean})],bi.prototype,"start",2),c([p({type:Boolean})],bi.prototype,"gap",2),c([B("slot")],bi.prototype,"defaultSlot",2);var jl=bi;bi.define("zn-button-group");function R4(o){return new DOMParser().parseFromString(o,"text/html").body}function D4(o){o.querySelectorAll("script").forEach(i=>{i.remove()})}function N4(o,i){return["src","href","xlink:href"].includes(o)&&(i.includes("javascript:")||i.includes("data:text/html"))?!0:o.startsWith("on")}function O4(o){let i=o.attributes;for(let t=i.length-1;t>=0;t--)N4(i[t].name,i[t].value)&&o.removeAttributeNode(i[t])}function s0(o){let i=o.children;for(let t=i.length-1;t>=0;t--){let r=i[t];O4(r),s0(r)}}function l0(o){let i=R4(o);return D4(i),s0(i),i.innerHTML}var c0=k`@charset "UTF-8";@keyframes rotate-gradient{from{--rotate:0deg}to{--rotate:360deg}}:host{text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-transform:none}*,*::before,*::after{box-sizing:border-box;border-width:0;border-style:solid;border-color:rgb(var(--zn-border-color))}[hidden]{display:none !important}.width-container,.form-container,.wide-form-container{height:100%;width:100%;margin:var(--zn-default-margin,0 auto)}.width-container{max-width:var(--zn-container)}.form-container{max-width:var(--zn-container-ph)}.wide-form-container{max-width:var(--zn-container-lg)}:host{display:block;padding-inline:calc(var(--zn-gutter,0) + var(--zn-base-gap,0));--message-bubble-agent:rgba(4,114,225,0.1);--message-bubble-customer:rgba(48,170,61,0.1);--message-bubble-internal:rgba(255,203,0,0.1)}.message{display:flex;gap:var(--zn-spacing-small);align-items:flex-start}.message__avatar{flex:0 0 36px;display:flex;justify-content:center}.message__body{flex:1 1 auto;min-width:0;display:flex;flex-direction:column;gap:var(--zn-spacing-x-small)}.message__header{display:flex;align-items:center;gap:var(--zn-spacing-x-small);min-height:36px}.message__sender{font-family:var(--zn-font-sans);font-size:var(--zn-text-h1-font-size);font-weight:var(--zn-text-h1-font-weight);line-height:var(--zn-text-h1-line-height);color:var(--zn-text-h1-color);text-transform:var(--zn-text-h1-transform);letter-spacing:var(--zn-text-h1-letter-spacing,normal)}.message__time{font-family:var(--zn-font-sans);font-size:var(--zn-text-subheading-small-font-size);font-weight:var(--zn-text-subheading-small-font-weight);line-height:var(--zn-text-subheading-small-line-height);color:var(--zn-text-subheading-small-color);text-transform:var(--zn-text-subheading-small-transform);letter-spacing:var(--zn-text-subheading-small-letter-spacing,normal)}.message__bubble{box-sizing:border-box;display:flex;align-items:flex-start;gap:var(--zn-spacing-small);padding:11px var(--zn-spacing-small);border-radius:var(--zn-border-radius);background:var(--message-bubble-agent);min-height:46px}.message__bubble--sending{border:1px dashed rgb(var(--zn-border-color));opacity:0.7;flex-direction:column}.message__main{flex:1 1 auto;min-width:0;display:flex;flex-direction:column;gap:var(--zn-spacing-small)}.message__attachments{display:none;flex-direction:row;flex-wrap:wrap;align-items:center;gap:var(--zn-spacing-small)}.message__attachments--visible{display:flex}.message__attachments ::slotted(zn-chat-message-attachment){min-width:0}.message__content{font-family:var(--zn-font-sans);font-size:var(--zn-text-chat-font-size);font-weight:var(--zn-text-chat-font-weight);line-height:var(--zn-text-chat-line-height);color:var(--zn-text-chat-color);text-transform:var(--zn-text-chat-transform);letter-spacing:var(--zn-text-chat-letter-spacing,normal);flex:1 1 auto;min-width:0;overflow-wrap:anywhere}.message__content ::slotted(*){font-family:var(--zn-font-sans);font-size:var(--zn-text-chat-font-size);font-weight:var(--zn-text-chat-font-weight);line-height:var(--zn-text-chat-line-height);color:var(--zn-text-chat-color);text-transform:var(--zn-text-chat-transform);letter-spacing:var(--zn-text-chat-letter-spacing,normal)}.message__content p{margin:0;padding:0}.message__content pre{background-color:#23241f;border-radius:3px;margin-block:5px;padding:5px 10px;color:#f8f8f2;overflow:auto}.message__content blockquote{border-left:4px solid rgb(var(--zn-border-color));margin:5px 0;padding-left:16px}.message__content ol,.message__content ul{padding:0;margin:0}.message__content li{list-style-type:none;padding-left:1em;position:relative}.message__content ol{counter-reset:list-0 0}.message__content ol>li{counter-increment:list-0 1}.message__content ul>li::before{content:"•"}.message__content ol>li::before{content:counter(list-0) ". "}.message__content ol li::before,.message__content ul li::before{display:inline-block;margin-left:-1.5em;margin-right:0.3em;text-align:right;white-space:nowrap;width:1.2em}.message__content img{max-width:100%}.message__content a{color:rgb(var(--zn-color-info))}.message__meta{font-family:var(--zn-font-sans);font-size:var(--zn-text-subheading-small-font-size);font-weight:var(--zn-text-subheading-small-font-weight);line-height:var(--zn-text-subheading-small-line-height);color:var(--zn-text-subheading-small-color);text-transform:var(--zn-text-subheading-small-transform);letter-spacing:var(--zn-text-subheading-small-letter-spacing,normal)}.message__actions{flex-shrink:0;display:flex;align-items:center;height:24px}:host([agent-initiated]) .message__bubble{background:var(--message-background,var(--message-bubble-agent))}:host([customer-initiated]) .message__bubble{background:var(--message-background,var(--message-bubble-customer))}:host([action-type=internal]) .message__bubble{background:var(--message-background,var(--message-bubble-internal))}:host([action-type=error]) .message__bubble{background:var(--message-background,rgba(var(--zn-color-error),0.12))}:host(.message-continued) .message{margin-top:3px}:host(.message-continued) .message__avatar{visibility:hidden}:host(.message-continued) .message__header{display:none}.message--system{margin-top:var(--zn-spacing-x-small)}.system-card{box-sizing:border-box;display:flex;align-items:center;gap:var(--zn-spacing-x-small);padding:6px 12px;border-radius:var(--zn-border-radius);border:1px solid rgb(var(--zn-border-color));font-size:12px;color:rgb(var(--zn-text-color));min-height:46px}.system-card__text{font-family:var(--zn-font-sans);font-size:var(--zn-text-paragraph-font-size);font-weight:var(--zn-text-paragraph-font-weight);line-height:var(--zn-text-paragraph-line-height);color:var(--zn-text-paragraph-color);text-transform:var(--zn-text-paragraph-transform);letter-spacing:var(--zn-text-paragraph-letter-spacing,normal)}.system-card__time{font-family:var(--zn-font-sans);font-size:var(--zn-text-subheading-small-font-size);font-weight:var(--zn-text-subheading-small-font-weight);line-height:var(--zn-text-subheading-small-line-height);color:var(--zn-text-subheading-small-color);text-transform:var(--zn-text-subheading-small-transform);letter-spacing:var(--zn-text-subheading-small-letter-spacing,normal);white-space:nowrap}`;var nr=class nr extends S{constructor(){super(...arguments);this.sender="";this.message="";this.time="";this.avatar="";this.actionType="";this.customerInitiated=!1;this.agentInitiated=!1;this.hideSender=!1;this.hasAttachments=!1}connectedCallback(){let t=!this.actionType||this.actionType==="internal",r=t&&this.agentInitiated,n=t&&this.customerInitiated,a=this.previousElementSibling,s=parseInt(this.time)-parseInt(a?.time),l=a?.getAttribute("action-type")??"",d=nr.SYSTEM_ACTION_TYPES.includes(l),h=l==="internal",m=this.actionType==="internal";a&&!d&&s<60&&h===m&&(a?.hasAttribute("agent-initiated")&&r||a?.hasAttribute("customer-initiated")&&n)&&this.classList.add("message-continued"),super.connectedCallback()}render(){if(!nr.DISPLAYED_ACTION_TYPES.includes(this.actionType))return F;if(this.isSystemMessage())return this.renderSystemCard();let t=this.actionType==="message-sending";return u`
202
+ </div>`}};bi.styles=_(a0),c([p({})],bi.prototype,"direction",2),c([p({type:Boolean})],bi.prototype,"grow",2),c([p({type:Boolean})],bi.prototype,"wrap",2),c([p({type:Boolean})],bi.prototype,"start",2),c([p({type:Boolean})],bi.prototype,"gap",2),c([B("slot")],bi.prototype,"defaultSlot",2);var jl=bi;bi.define("zn-button-group");function R4(o){return new DOMParser().parseFromString(o,"text/html").body}function D4(o){o.querySelectorAll("script").forEach(i=>{i.remove()})}function N4(o,i){return["src","href","xlink:href"].includes(o)&&(i.includes("javascript:")||i.includes("data:text/html"))?!0:o.startsWith("on")}function O4(o){let i=o.attributes;for(let t=i.length-1;t>=0;t--)N4(i[t].name,i[t].value)&&o.removeAttributeNode(i[t])}function s0(o){let i=o.children;for(let t=i.length-1;t>=0;t--){let r=i[t];O4(r),s0(r)}}function l0(o){let i=R4(o);return D4(i),s0(i),i.innerHTML}var c0=k`@charset "UTF-8";@keyframes rotate-gradient{from{--rotate:0deg}to{--rotate:360deg}}:host{text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-transform:none}*,*::before,*::after{box-sizing:border-box;border-width:0;border-style:solid;border-color:rgb(var(--zn-border-color))}[hidden]{display:none !important}.width-container,.form-container,.wide-form-container{height:100%;width:100%;margin:var(--zn-default-margin,0 auto)}.width-container{max-width:var(--zn-container)}.form-container{max-width:var(--zn-container-ph)}.wide-form-container{max-width:var(--zn-container-lg)}:host{display:block;padding-inline:calc(var(--zn-gutter,0) + var(--zn-base-gap,0));--message-bubble-agent:rgba(4,114,225,0.1);--message-bubble-customer:rgba(48,170,61,0.1);--message-bubble-internal:rgba(255,203,0,0.1)}.message{display:flex;gap:var(--zn-spacing-small);align-items:flex-start}.message__avatar{flex:0 0 36px;display:flex;justify-content:center}.message__body{flex:1 1 auto;min-width:0;display:flex;flex-direction:column;gap:var(--zn-spacing-x-small)}.message__header{display:flex;align-items:center;gap:var(--zn-spacing-x-small);min-height:36px}.message__sender{font-family:var(--zn-font-sans);font-size:var(--zn-text-h1-font-size);font-weight:var(--zn-text-h1-font-weight);line-height:var(--zn-text-h1-line-height);color:var(--zn-text-h1-color);text-transform:var(--zn-text-h1-transform);letter-spacing:var(--zn-text-h1-letter-spacing,normal)}.message__time{font-family:var(--zn-font-sans);font-size:var(--zn-text-subheading-small-font-size);font-weight:var(--zn-text-subheading-small-font-weight);line-height:var(--zn-text-subheading-small-line-height);color:var(--zn-text-subheading-small-color);text-transform:var(--zn-text-subheading-small-transform);letter-spacing:var(--zn-text-subheading-small-letter-spacing,normal)}.message__bubble{box-sizing:border-box;display:flex;align-items:flex-start;gap:var(--zn-spacing-small);padding:11px var(--zn-spacing-small);border-radius:var(--zn-border-radius);background:var(--message-bubble-agent);min-height:46px}.message__bubble--sending{border:1px dashed rgb(var(--zn-border-color));opacity:0.7;flex-direction:column}.message__main{flex:1 1 auto;min-width:0;display:flex;flex-direction:column;gap:var(--zn-spacing-small)}.message__attachments{display:none;flex-direction:row;flex-wrap:wrap;align-items:center;gap:var(--zn-spacing-small)}.message__attachments--visible{display:flex}.message__attachments ::slotted(zn-chat-message-attachment){min-width:0}.message__content{font-family:var(--zn-font-sans);font-size:var(--zn-text-chat-font-size);font-weight:var(--zn-text-chat-font-weight);line-height:var(--zn-text-chat-line-height);color:var(--zn-text-chat-color);text-transform:var(--zn-text-chat-transform);letter-spacing:var(--zn-text-chat-letter-spacing,normal);flex:1 1 auto;min-width:0;overflow-wrap:anywhere}.message__content ::slotted(*){font-family:var(--zn-font-sans);font-size:var(--zn-text-chat-font-size);font-weight:var(--zn-text-chat-font-weight);line-height:var(--zn-text-chat-line-height);color:var(--zn-text-chat-color);text-transform:var(--zn-text-chat-transform);letter-spacing:var(--zn-text-chat-letter-spacing,normal)}.message__content p{margin:0;padding:0}.message__content pre{background-color:#23241f;border-radius:3px;margin-block:5px;padding:5px 10px;color:#f8f8f2;overflow:auto}.message__content blockquote{border-left:4px solid rgb(var(--zn-border-color));margin:5px 0;padding-left:16px}.message__content ol,.message__content ul{padding:0;margin:0}.message__content li{list-style-type:none;padding-left:1em;position:relative}.message__content ol{counter-reset:list-0 0}.message__content ol>li{counter-increment:list-0 1}.message__content ul>li::before{content:"•"}.message__content ol>li::before{content:counter(list-0) ". "}.message__content ol li::before,.message__content ul li::before{display:inline-block;margin-left:-1.5em;margin-right:0.3em;text-align:right;white-space:nowrap;width:1.2em}.message__content img{max-width:100%}.message__content a{color:rgb(var(--zn-color-info))}.message__meta{font-family:var(--zn-font-sans);font-size:var(--zn-text-subheading-small-font-size);font-weight:var(--zn-text-subheading-small-font-weight);line-height:var(--zn-text-subheading-small-line-height);color:var(--zn-text-subheading-small-color);text-transform:var(--zn-text-subheading-small-transform);letter-spacing:var(--zn-text-subheading-small-letter-spacing,normal)}.message__actions{flex-shrink:0;display:flex;align-items:center;height:24px}:host([agent-initiated]) .message__bubble{background:var(--message-background,var(--message-bubble-agent))}:host([customer-initiated]) .message__bubble{background:var(--message-background,var(--message-bubble-customer))}:host([action-type=internal]) .message__bubble{background:var(--message-background,var(--message-bubble-internal))}:host([action-type=error]) .message__bubble{background:var(--message-background,rgba(var(--zn-color-error),0.12))}:host(.message-continued) .message{margin-top:3px}:host(.message-continued) .message__avatar{visibility:hidden}:host(.message-continued) .message__header{display:none}.message--system{margin-top:var(--zn-spacing-x-small)}.system-card{box-sizing:border-box;display:flex;align-items:center;gap:var(--zn-spacing-x-small);padding:6px 12px;border-radius:var(--zn-border-radius);border:1px solid rgb(var(--zn-border-color));font-size:12px;color:rgb(var(--zn-text-color));min-height:46px}.system-card__text{font-family:var(--zn-font-sans);font-size:var(--zn-text-paragraph-font-size);font-weight:var(--zn-text-paragraph-font-weight);line-height:var(--zn-text-paragraph-line-height);color:var(--zn-text-paragraph-color);text-transform:var(--zn-text-paragraph-transform);letter-spacing:var(--zn-text-paragraph-letter-spacing,normal)}.system-card__time{font-family:var(--zn-font-sans);font-size:var(--zn-text-subheading-small-font-size);font-weight:var(--zn-text-subheading-small-font-weight);line-height:var(--zn-text-subheading-small-line-height);color:var(--zn-text-subheading-small-color);text-transform:var(--zn-text-subheading-small-transform);letter-spacing:var(--zn-text-subheading-small-letter-spacing,normal);white-space:nowrap}`;var ir=class ir extends S{constructor(){super(...arguments);this.sender="";this.message="";this.time="";this.avatar="";this.actionType="";this.customerInitiated=!1;this.agentInitiated=!1;this.hideSender=!1;this.hasAttachments=!1}connectedCallback(){let t=!this.actionType||this.actionType==="internal",r=t&&this.agentInitiated,n=t&&this.customerInitiated,a=this.previousElementSibling,s=parseInt(this.time)-parseInt(a?.time),l=a?.getAttribute("action-type")??"",d=ir.SYSTEM_ACTION_TYPES.includes(l),h=l==="internal",m=this.actionType==="internal";a&&!d&&s<60&&h===m&&(a?.hasAttribute("agent-initiated")&&r||a?.hasAttribute("customer-initiated")&&n)&&this.classList.add("message-continued"),super.connectedCallback()}render(){if(!ir.DISPLAYED_ACTION_TYPES.includes(this.actionType))return F;if(this.isSystemMessage())return this.renderSystemCard();let t=this.actionType==="message-sending";return u`
203
203
  <div part="base" class="message">
204
204
  <div part="avatar" class="message__avatar">
205
205
  <zn-icon library="avatar" src="${this.avatar||this.sender}" size="36" round></zn-icon>
@@ -225,7 +225,7 @@ import{a as Hn,b as X3,c as kr,d as c,e as V}from"./chunks/zn.UBLZO6CI.js";var a
225
225
  </div>
226
226
  </div>
227
227
  <slot name="edit-dialog"></slot>
228
- `}firstUpdated(){this.syncHasAttachments(),Promise.resolve().then(()=>this.syncHasAttachments())}handleAttachmentsSlotChange(){this.syncHasAttachments()}syncHasAttachments(){let t=this.shadowRoot?.querySelector('slot[name="attachments"]');this.hasAttachments=!!t&&t.assignedElements().length>0}isSystemMessage(){return nr.SYSTEM_ACTION_TYPES.includes(this.actionType)}renderSystemCard(){return u`
228
+ `}firstUpdated(){this.syncHasAttachments(),Promise.resolve().then(()=>this.syncHasAttachments())}handleAttachmentsSlotChange(){this.syncHasAttachments()}syncHasAttachments(){let t=this.shadowRoot?.querySelector('slot[name="attachments"]');this.hasAttachments=!!t&&t.assignedElements().length>0}isSystemMessage(){return ir.SYSTEM_ACTION_TYPES.includes(this.actionType)}renderSystemCard(){return u`
229
229
  <div part="base" class="message message--system">
230
230
  <div part="avatar" class="message__avatar"></div>
231
231
  <div part="body" class="message__body">
@@ -243,7 +243,7 @@ import{a as Hn,b as X3,c as kr,d as c,e as V}from"./chunks/zn.UBLZO6CI.js";var a
243
243
  <zn-chip type="info">Internal Note</zn-chip>`:F}
244
244
  <slot name="badge"></slot>
245
245
  </div>`}renderContent(){if(!this.message)return u`
246
- <slot></slot>`;let t=l0(this.message);return t=t.replace(/\r\n|\r|\n/g,"<br>"),t=t.replace(/\b(((https?|ftp|dict):\/\/|www\.)[^'">\s]+\.[^'">\s]+)(?=\s|$)(?!["<>])/g,'<a href="$1" target="_blank">$1</a>'),Pt(t)}getTime(){return new Date(parseInt(this.time,10)*1e3).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})}getSentTime(){let t=new Date(parseInt(this.time,10)*1e3),r=t.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"});return t.getDate()!==new Date().getDate()?`${t.toLocaleDateString()} ${r}`:r}};nr.styles=_(c0),nr.dependencies={"zn-icon":oe},nr.SYSTEM_ACTION_TYPES=["connected.agent","attachment.added","transfer","ended","customer.ended","customer.connected","customer.disconnected"],nr.DISPLAYED_ACTION_TYPES=["","connected.agent","attachment.added","multi.answer","transfer","ended","error","customer.ended","message-sending","customer.connected","customer.disconnected","internal"],c([p()],nr.prototype,"sender",2),c([p()],nr.prototype,"message",2),c([p()],nr.prototype,"time",2),c([p()],nr.prototype,"avatar",2),c([p({attribute:"action-type",reflect:!0})],nr.prototype,"actionType",2),c([p({type:Boolean,reflect:!0,attribute:"customer-initiated"})],nr.prototype,"customerInitiated",2),c([p({type:Boolean,reflect:!0,attribute:"agent-initiated"})],nr.prototype,"agentInitiated",2),c([p({type:Boolean,reflect:!0,attribute:"hide-sender"})],nr.prototype,"hideSender",2),c([I()],nr.prototype,"hasAttachments",2);var ms=nr;var P4=ms;ms.define("zn-chat-message");var d0=k`@keyframes rotate-gradient{from{--rotate:0deg}to{--rotate:360deg}}:host{text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-transform:none}*,*::before,*::after{box-sizing:border-box;border-width:0;border-style:solid;border-color:rgb(var(--zn-border-color))}[hidden]{display:none !important}.width-container,.form-container,.wide-form-container{height:100%;width:100%;margin:var(--zn-default-margin,0 auto)}.width-container{max-width:var(--zn-container)}.form-container{max-width:var(--zn-container-ph)}.wide-form-container{max-width:var(--zn-container-lg)}:host{display:inline-flex;min-width:0}.attachment{font-family:var(--zn-font-sans);font-size:var(--zn-text-paragraph-font-size);font-weight:var(--zn-text-paragraph-font-weight);line-height:var(--zn-text-paragraph-line-height);color:var(--zn-text-paragraph-color);text-transform:var(--zn-text-paragraph-transform);letter-spacing:var(--zn-text-paragraph-letter-spacing,normal);display:inline-flex;align-items:center;gap:var(--zn-spacing-2x-small);color:rgb(var(--zn-text));text-decoration:none;min-width:0}.attachment__icon{flex:0 0 auto}.attachment__label{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.attachment:hover .attachment__label{text-decoration:underline}`;var vi=class extends S{constructor(){super(...arguments);this.href="";this.name="";this.icon="paperclip@lu";this.target="_blank";this.download=!1}connectedCallback(){super.connectedCallback(),this.closest("zn-chat-message, zn-content-block")?this.slot||(this.slot="attachments"):console.warn("<zn-chat-message-attachment> can only be used inside a <zn-chat-message> or <zn-content-block>.",this)}render(){let t=this.target==="_blank";return u`
246
+ <slot></slot>`;let t=l0(this.message);return t=t.replace(/\r\n|\r|\n/g,"<br>"),t=t.replace(/\b(((https?|ftp|dict):\/\/|www\.)[^'">\s]+\.[^'">\s]+)(?=\s|$)(?!["<>])/g,'<a href="$1" target="_blank">$1</a>'),Pt(t)}getTime(){return new Date(parseInt(this.time,10)*1e3).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})}getSentTime(){let t=new Date(parseInt(this.time,10)*1e3),r=t.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"});return t.getDate()!==new Date().getDate()?`${t.toLocaleDateString()} ${r}`:r}};ir.styles=_(c0),ir.dependencies={"zn-icon":oe},ir.SYSTEM_ACTION_TYPES=["connected.agent","attachment.added","transfer","ended","customer.ended","customer.connected","customer.disconnected"],ir.DISPLAYED_ACTION_TYPES=["","connected.agent","attachment.added","multi.answer","transfer","ended","error","customer.ended","message-sending","customer.connected","customer.disconnected","internal"],c([p()],ir.prototype,"sender",2),c([p()],ir.prototype,"message",2),c([p()],ir.prototype,"time",2),c([p()],ir.prototype,"avatar",2),c([p({attribute:"action-type",reflect:!0})],ir.prototype,"actionType",2),c([p({type:Boolean,reflect:!0,attribute:"customer-initiated"})],ir.prototype,"customerInitiated",2),c([p({type:Boolean,reflect:!0,attribute:"agent-initiated"})],ir.prototype,"agentInitiated",2),c([p({type:Boolean,reflect:!0,attribute:"hide-sender"})],ir.prototype,"hideSender",2),c([I()],ir.prototype,"hasAttachments",2);var ms=ir;var P4=ms;ms.define("zn-chat-message");var d0=k`@keyframes rotate-gradient{from{--rotate:0deg}to{--rotate:360deg}}:host{text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-transform:none}*,*::before,*::after{box-sizing:border-box;border-width:0;border-style:solid;border-color:rgb(var(--zn-border-color))}[hidden]{display:none !important}.width-container,.form-container,.wide-form-container{height:100%;width:100%;margin:var(--zn-default-margin,0 auto)}.width-container{max-width:var(--zn-container)}.form-container{max-width:var(--zn-container-ph)}.wide-form-container{max-width:var(--zn-container-lg)}:host{display:inline-flex;min-width:0}.attachment{font-family:var(--zn-font-sans);font-size:var(--zn-text-paragraph-font-size);font-weight:var(--zn-text-paragraph-font-weight);line-height:var(--zn-text-paragraph-line-height);color:var(--zn-text-paragraph-color);text-transform:var(--zn-text-paragraph-transform);letter-spacing:var(--zn-text-paragraph-letter-spacing,normal);display:inline-flex;align-items:center;gap:var(--zn-spacing-2x-small);color:rgb(var(--zn-text));text-decoration:none;min-width:0}.attachment__icon{flex:0 0 auto}.attachment__label{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.attachment:hover .attachment__label{text-decoration:underline}`;var vi=class extends S{constructor(){super(...arguments);this.href="";this.name="";this.icon="paperclip@lu";this.target="_blank";this.download=!1}connectedCallback(){super.connectedCallback(),this.closest("zn-chat-message, zn-content-block")?this.slot||(this.slot="attachments"):console.warn("<zn-chat-message-attachment> can only be used inside a <zn-chat-message> or <zn-content-block>.",this)}render(){let t=this.target==="_blank";return u`
247
247
  <a
248
248
  part="base"
249
249
  class="attachment"
@@ -279,7 +279,7 @@ import{a as Hn,b as X3,c as kr,d as c,e as V}from"./chunks/zn.UBLZO6CI.js";var a
279
279
  ${this.hasSlotController.test("action")?u`
280
280
  <slot name="action" class="well__action"></slot>`:""}
281
281
  </div>
282
- `}};rn.styles=_(h0),c([p()],rn.prototype,"icon",2),c([p({attribute:"inline",type:Boolean,reflect:!0})],rn.prototype,"inline",2),c([p({attribute:"pre",type:Boolean,reflect:!0})],rn.prototype,"pre",2),c([p({attribute:"break-long",type:Boolean,reflect:!0})],rn.prototype,"breakLong",2);var F4=rn;rn.define("zn-well");var u0=k`@keyframes rotate-gradient{from{--rotate:0deg}to{--rotate:360deg}}:host{text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-transform:none}*,*::before,*::after{box-sizing:border-box;border-width:0;border-style:solid;border-color:rgb(var(--zn-border-color))}[hidden]{display:none !important}.width-container,.form-container,.wide-form-container{height:100%;width:100%;margin:var(--zn-default-margin,0 auto)}.width-container{max-width:var(--zn-container)}.form-container{max-width:var(--zn-container-ph)}.wide-form-container{max-width:var(--zn-container-lg)}:host{display:inline-block}slot{display:inline-flex}.copy-button__button{flex:0 0 auto;display:flex;align-items:center;background:none;border:none;border-radius:3px;font-size:inherit;color:inherit;padding:var(--zn-spacing-2x-small);cursor:pointer;transition:color 0.2s}.copy-button__button:focus-visible{outline:none;box-shadow:0 0 0 2px rgb(var(--zn-primary))}.copy-button__button[disabled]{opacity:0.5;cursor:not-allowed !important}[hidden]{display:none}`;var or=class extends S{constructor(){super(...arguments);this.isCopying=!1;this.status="rest";this.value="";this.copyLabel="";this.src="";this.size=24;this.from=""}render(){let t=this.copyLabel||"Copy";return u`
282
+ `}};rn.styles=_(h0),c([p()],rn.prototype,"icon",2),c([p({attribute:"inline",type:Boolean,reflect:!0})],rn.prototype,"inline",2),c([p({attribute:"pre",type:Boolean,reflect:!0})],rn.prototype,"pre",2),c([p({attribute:"break-long",type:Boolean,reflect:!0})],rn.prototype,"breakLong",2);var F4=rn;rn.define("zn-well");var u0=k`@keyframes rotate-gradient{from{--rotate:0deg}to{--rotate:360deg}}:host{text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-transform:none}*,*::before,*::after{box-sizing:border-box;border-width:0;border-style:solid;border-color:rgb(var(--zn-border-color))}[hidden]{display:none !important}.width-container,.form-container,.wide-form-container{height:100%;width:100%;margin:var(--zn-default-margin,0 auto)}.width-container{max-width:var(--zn-container)}.form-container{max-width:var(--zn-container-ph)}.wide-form-container{max-width:var(--zn-container-lg)}:host{display:inline-block}slot{display:inline-flex}.copy-button__button{flex:0 0 auto;display:flex;align-items:center;background:none;border:none;border-radius:3px;font-size:inherit;color:inherit;padding:var(--zn-spacing-2x-small);cursor:pointer;transition:color 0.2s}.copy-button__button:focus-visible{outline:none;box-shadow:0 0 0 2px rgb(var(--zn-primary))}.copy-button__button[disabled]{opacity:0.5;cursor:not-allowed !important}[hidden]{display:none}`;var nr=class extends S{constructor(){super(...arguments);this.isCopying=!1;this.status="rest";this.value="";this.copyLabel="";this.src="";this.size=24;this.from=""}render(){let t=this.copyLabel||"Copy";return u`
283
283
  <zn-tooltip
284
284
  class=${M({"copy-button":!0,"copy-button--error":this.status==="error","copy-button--success":this.status==="success"})}
285
285
  content=${t}>
@@ -295,7 +295,7 @@ import{a as Hn,b as X3,c as kr,d as c,e as V}from"./chunks/zn.UBLZO6CI.js";var a
295
295
  </slot>
296
296
  </button>
297
297
  </zn-tooltip>
298
- `}showStatus(t){let r=t==="success"?this.successIcon:this.errorIcon;this.tooltip.content=t==="success"?"Copied!":"Error!",this.copyIcon.hidden=!0,this.status=t,r.hidden=!1,setTimeout(()=>{this.status="rest",this.copyIcon.hidden=!1,r.hidden=!0,this.tooltip.content=this.copyLabel||"Copy",this.isCopying=!1},1500)}async handleCopy(){if(this.isCopying)return;this.isCopying=!0;let t=this.value||this.textContent;if(this.from){let r=this.getRootNode(),n=this.from.includes("."),a=this.from.includes("[")&&this.from.includes("]"),s=this.from,l="";n?[s,l]=this.from.trim().split("."):a&&([s,l]=this.from.trim().replace(/]$/,"").split("["));let d="getElementById"in r?r.getElementById(s):null;d?a?t=d.getAttribute(l)||"":n?t=d[l]||"":t=d.textContent||"":(console.error("No target element found with id:",s),this.showStatus("error"),this.emit("zn-error"))}if(!t){console.error('No value to copy. Please provide a value or a valid "from" attribute.'),this.showStatus("error"),this.emit("zn-error");return}try{await navigator.clipboard.writeText(t),this.showStatus("success"),this.emit("zn-copy",{detail:{value:t}})}catch(r){console.error("Failed to copy text: ",r),this.showStatus("error"),this.emit("zn-error")}}};or.styles=_(u0),c([B('slot[name="copy-icon"')],or.prototype,"copyIcon",2),c([B('slot[name="success-icon"')],or.prototype,"successIcon",2),c([B('slot[name="error-icon"')],or.prototype,"errorIcon",2),c([B("zn-tooltip")],or.prototype,"tooltip",2),c([I()],or.prototype,"isCopying",2),c([I()],or.prototype,"status",2),c([p()],or.prototype,"value",2),c([p({attribute:"copy-label"})],or.prototype,"copyLabel",2),c([p()],or.prototype,"src",2),c([p({type:Number,reflect:!0})],or.prototype,"size",2),c([p()],or.prototype,"from",2);var Vu=or;or.define("zn-copy-button");var m0=()=>new ju,ju=class{},Uu=new WeakMap,Gl=yt(class extends yo{render(o){return F}update(o,[i]){let t=i!==this.G;return t&&this.rt(void 0),(t||this.lt!==this.ct)&&(this.G=i,this.ht=o.options?.host,this.rt(this.ct=o.element)),F}rt(o){if(this.G!==void 0)if(this.isConnected||(o=void 0),typeof this.G=="function"){let i=this.ht??globalThis,t=Uu.get(i);t===void 0&&(t=new WeakMap,Uu.set(i,t)),t.get(this.G)!==void 0&&this.G.call(this.ht,void 0),t.set(this.G,o),o!==void 0&&this.G.call(this.ht,o)}else this.G.value=o}get lt(){return typeof this.G=="function"?Uu.get(this.ht??globalThis)?.get(this.G):this.G?.value}disconnected(){this.lt===this.ct&&this.rt(void 0)}reconnected(){this.rt(this.ct)}});var ut=class{constructor(i,{target:t,config:r,callback:n,skipInitial:a}){this.t=new Set,this.o=!1,this.i=!1,this.h=i,t!==null&&this.t.add(t??i),this.l=r,this.o=a??this.o,this.callback=n,window.ResizeObserver?(this.u=new ResizeObserver(s=>{this.handleChanges(s),this.h.requestUpdate()}),i.addController(this)):console.warn("ResizeController error: browser does not support ResizeObserver.")}handleChanges(i){this.value=this.callback?.(i,this.u)}hostConnected(){for(let i of this.t)this.observe(i)}hostDisconnected(){this.disconnect()}async hostUpdated(){!this.o&&this.i&&this.handleChanges([]),this.i=!1}observe(i){this.t.add(i),this.u.observe(i,this.l),this.i=!0,this.h.requestUpdate()}unobserve(i){this.t.delete(i),this.u.unobserve(i)}disconnect(){this.u.disconnect()}target(i){return B4(this,i)}},B4=yt(class extends yo{constructor(){super(...arguments),this.observing=!1}render(o,i){}update(o,[i,t]){this.controller=i,this.part=o,this.observe=t,t===!1?(i.unobserve(o.element),this.observing=!1):this.observing===!1&&(i.observe(o.element),this.observing=!0)}disconnected(){this.controller?.unobserve(this.part.element),this.observing=!1}reconnected(){this.observe!==!1&&this.observing===!1&&(this.controller?.observe(this.part.element),this.observing=!0)}});var f0=Symbol(),Kl=class{get taskComplete(){return this.t||(this.i===1?this.t=new Promise(((i,t)=>{this.o=i,this.h=t})):this.i===3?this.t=Promise.reject(this.l):this.t=Promise.resolve(this.u)),this.t}constructor(i,t,r){this.p=0,this.i=0,(this._=i).addController(this);let n=typeof t=="object"?t:{task:t,args:r};this.v=n.task,this.j=n.args,this.m=n.argsEqual??g0,this.k=n.onComplete,this.A=n.onError,this.autoRun=n.autoRun??!0,"initialValue"in n&&(this.u=n.initialValue,this.i=2,this.O=this.T?.())}hostUpdate(){this.autoRun===!0&&this.S()}hostUpdated(){this.autoRun==="afterUpdate"&&this.S()}T(){if(this.j===void 0)return;let i=this.j();if(!Array.isArray(i))throw Error("The args function must return an array");return i}async S(){let i=this.T(),t=this.O;this.O=i,i===t||i===void 0||t!==void 0&&this.m(t,i)||await this.run(i)}async run(i){let t,r;i??(i=this.T()),this.O=i,this.i===1?this.q?.abort():(this.t=void 0,this.o=void 0,this.h=void 0),this.i=1,this.autoRun==="afterUpdate"?queueMicrotask((()=>this._.requestUpdate())):this._.requestUpdate();let n=++this.p;this.q=new AbortController;let a=!1;try{t=await this.v(i,{signal:this.q.signal})}catch(s){a=!0,r=s}if(this.p===n){if(t===f0)this.i=0;else{if(a===!1){try{this.k?.(t)}catch{}this.i=2,this.o?.(t)}else{try{this.A?.(r)}catch{}this.i=3,this.h?.(r)}this.u=t,this.l=r}this._.requestUpdate()}}abort(i){this.i===1&&this.q?.abort(i)}get value(){return this.u}get error(){return this.l}get status(){return this.i}render(i){switch(this.i){case 0:return i.initial?.();case 1:return i.pending?.();case 2:return i.complete?.(this.value);case 3:return i.error?.(this.error);default:throw Error("Unexpected status: "+this.i)}}},g0=(o,i)=>o===i||o.length===i.length&&o.every(((t,r)=>!ts(t,i[r])));function b0(o,i){return{top:Math.round(o.getBoundingClientRect().top-i.getBoundingClientRect().top),left:Math.round(o.getBoundingClientRect().left-i.getBoundingClientRect().left)}}var Gu=new Set;function V4(){let o=document.documentElement.clientWidth;return Math.abs(window.innerWidth-o)}function v0(o){if(Gu.add(o),!document.body.classList.contains("zn-scroll-lock")){let i=V4();document.body.classList.add("zn-scroll-lock"),document.body.style.setProperty("--zn-scroll-lock-size",`${i}px`)}}function ka(o){Gu.delete(o),Gu.size===0&&(document.body.classList.remove("zn-scroll-lock"),document.body.style.removeProperty("--zn-scroll-lock-size"))}function y0(o,i,t="vertical",r="smooth"){let n=b0(o,i),a=n.top+i.scrollTop,s=n.left+i.scrollLeft,l=i.scrollLeft,d=i.scrollLeft+i.offsetWidth,h=i.scrollTop,m=i.scrollTop+i.offsetHeight;(t==="horizontal"||t==="both")&&(s<l?i.scrollTo({left:s,behavior:r}):s+o.clientWidth>d&&i.scrollTo({left:s-i.offsetWidth+o.clientWidth,behavior:r})),(t==="vertical"||t==="both")&&(a<h?i.scrollTo({top:a,behavior:r}):a+o.clientHeight>m&&i.scrollTo({top:a-i.offsetHeight+o.clientHeight,behavior:r}))}function x0(o){let i=[],t=o;for(;t;)t instanceof Element&&t.scrollTop>0&&i.push(t),t=t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode;return i}function w0(o,i="auto"){for(let t of o)t.scrollTo({top:0,behavior:i})}var z0=k`@keyframes rotate-gradient{from{--rotate:0deg}to{--rotate:360deg}}:host{text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-transform:none}*,*::before,*::after{box-sizing:border-box;border-width:0;border-style:solid;border-color:rgb(var(--zn-border-color))}[hidden]{display:none !important}.width-container,.form-container,.wide-form-container{height:100%;width:100%;margin:var(--zn-default-margin,0 auto)}.width-container{max-width:var(--zn-container)}.form-container{max-width:var(--zn-container-ph)}.wide-form-container{max-width:var(--zn-container-lg)}:host{--width:30rem;--header-spacing:var(--zn-spacing-large) var(--zn-spacing-large) var(--zn-spacing-medium);--body-spacing:var(--zn-spacing-x-small) var(--zn-spacing-large);--footer-spacing:var(--zn-spacing-large);--icon-background-color:var(--zn-color-primary-200);--icon-color:var(--zn-color-primary-600);--caption-color:var(--zn-color-primary-600);display:contents}.dialog-container{display:flex;flex:1 1 auto;flex-direction:column;min-height:0;border-radius:var(--zn-border-radius);background-color:var(--zn-panel-background-color);margin:2px;overflow:hidden}.dialog__header+.dialog__body{padding-top:0}.dialog{flex-direction:column;z-index:2;width:calc(var(--width) + 1px);overflow:hidden;max-width:calc(100% - var(--zn-spacing-2x-large));max-height:calc(100% - 20vh);background-color:var(--zn-panel-background-color);border-radius:var(--zn-border-radius);box-shadow:var(--zn-shadow-x-large);padding:0;margin:10vh auto}.dialog[open]{display:flex}.dialog__header{flex:0 0 auto;display:flex}.dialog__title{display:flex;flex:1 1 auto;align-items:center;font:inherit;margin:0;width:100%;overflow:hidden}.dialog__header-actions{flex-shrink:0;display:flex;flex-wrap:wrap;justify-content:end;align-items:center;gap:var(--zn-spacing-x-small);padding:var(--header-spacing)}.dialog__header-actions zn-button,.dialog__header-actions::slotted(zn-button){flex:0 0 auto;display:flex;align-items:center;font-size:var(--zn-font-size-medium)}.dialog__label{overflow:hidden;word-break:break-word;display:inline-block}.dialog__body{flex:1 1 auto;min-height:0;display:block;padding:var(--body-spacing);overflow:auto;-webkit-overflow-scrolling:touch;color:var(--zn-color-text-default);font-size:var(--zn-font-size-medium);font-weight:var(--zn-font-weight-normal);letter-spacing:var(--zn-tracking-normal);line-height:var(--zn-line-height-dense)}.dialog__footer{flex:0 0 auto;text-align:right;padding:var(--footer-spacing)}.dialog__footer ::slotted(zn-button:not(:first-of-type)){margin-inline-start:var(--zn-spacing-x-small)}.dialog{}.dialog--default .dialog__title,.dialog--warning .dialog__title{color:rgb(var(--zn-text-panel-title));font-size:var(--zn-font-size-x-large);font-weight:var(--zn-font-weight-semibold);letter-spacing:var(--zn-letter-spacing-normal);line-height:var(--zn-line-height-dense);padding:var(--header-spacing)}.dialog--announcement .dialog__title{display:flex;flex:1 1 auto;flex-direction:column;justify-content:center;align-content:center;color:var(--caption-color);font-size:var(--zn-font-size-x-large);font-weight:var(--zn-font-weight-semibold);letter-spacing:var(--zn-letter-spacing-normal);line-height:var(--zn-line-height-dense);padding:var(--header-spacing);margin:0}.dialog--default .dialog__title ::slotted(zn-icon),.dialog--warning .dialog__title ::slotted(zn-icon){border-radius:var(--zn-border-radius-pill);padding:var(--zn-spacing-2x-small);margin-right:var(--zn-spacing-small)}.dialog--announcement .dialog__title ::slotted(zn-icon){--icon-size:var(--zn-font-size-3x-large);border-radius:var(--zn-border-radius-pill);padding:var(--zn-spacing-medium);margin-bottom:var(--zn-spacing-medium)}.dialog__title ::slotted(zn-icon){background-color:var(--icon-background-color);color:var(--icon-color)}.dialog--warning .dialog__title{--icon-background-color:rgba(var(--zn-color-warning),.3);--icon-color:rgb(var(--zn-color-warning))}.dialog--announcement .dialog__title ::slotted([slot=announcement-intro]){color:var(--zn-color-neutral-800);font-size:var(--zn-font-size-large);font-weight:var(--zn-font-weight-semibold);padding:var(--zn-spacing-medium) 0}.dialog--announcement .dialog__header-actions{display:none}.dialog--announcement .dialog__body{padding:var(--zn-spacing-x-small) var(--zn-spacing-2x-large)}.dialog--announcement .dialog__title,.dialog--announcement .dialog__body,.dialog--announcement .dialog__footer{text-align:center}.dialog--announcement .dialog__footer ::slotted([slot=footer-text]){color:var(--zn-color-neutral-700);font-size:var(--zn-font-size-small);font-weight:var(--zn-font-weight-normal)}.dialog{}.dialog--small{--width:25rem}.dialog--small .dialog__body{color:rgb(var(--zn-text));padding:var(--body-spacing)}.dialog--medium{--width:30rem}.dialog--large{--width:37.5rem}.dialog{}.dialog--announcement .dialog__footer ::slotted([slot=footer-text]){padding:var(--zn-spacing-large)}.dialog__footer ::slotted(zn-button:not(:first-of-type)){margin-inline-start:var(--zn-spacing-x-small)}.dialog:not(.dialog--has-footer) .dialog__body{padding-bottom:var(--zn-spacing-3x-large)}.dialog:not(.dialog--has-footer) .dialog__footer{display:none}.dialog--cosmic{border:1px solid transparent}.dialog--cosmic:before{content:"";z-index:-1;position:absolute;top:-2px;left:-2px;height:calc(100% + 4px);width:calc(100% + 4px);filter:blur(var(--zn-blur,1px));opacity:0.9;border-radius:var(--zn-border-radius);background-image:conic-gradient(from var(--rotate) at 50% 50%,#71d9ff 0%,#a100ff 22%,#71d9ff 44%,#ff00ce 74%,#71d9ff 94%);animation:rotate-gradient 6s linear infinite}.dialog--cosmic{position:relative;border:none !important}`;var fr=class extends S{constructor(){super(...arguments);this.hasSlotController=new Y(this,"[default]","footer");this.variant="default";this.size="medium";this.open=!1;this.cosmic=!1;this.noHeader=!1;this.closeClickHandler=t=>{if(t.target instanceof HTMLElement&&t.target.hasAttribute("dialog-closer")){this.hide();return}for(let r of t.composedPath()){if(r===this)return;if(r instanceof HTMLElement){if(r.hasAttribute("modal-closer")){this.hide();return}if(r.localName==="zn-dialog"||r.localName==="zn-slideout")return}}}}firstUpdated(t){super.firstUpdated(t),this.open&&this.show()}connectedCallback(){if(super.connectedCallback(),this.addEventListener("click",this.closeClickHandler),this.shadowRoot?.addEventListener("click",this.closeClickHandler),this.trigger){let t=this.parentNode?.querySelector(pr(this.trigger));t&&t.addEventListener("click",()=>this.show())}if(window.CSS.registerProperty)try{window.CSS.registerProperty({inherits:!1,initialValue:"0deg",name:"--rotate",syntax:"<angle>"})}catch{}}disconnectedCallback(){if(super.disconnectedCallback(),this.dialog.close(),ka(this),this.closeWatcher?.destroy(),this.removeEventListener("click",this.closeClickHandler),this.trigger){let t=this.parentElement?.querySelector(pr(this.trigger));t&&t.removeEventListener("click",()=>this.show())}}requestClose(t){this.emit("zn-request-close",{cancelable:!0,detail:{source:t}}).defaultPrevented||this.hide()}addOpenListeners(){"CloseWatcher"in window&&(this.closeWatcher?.destroy(),this.closeWatcher=new CloseWatcher,this.closeWatcher.onclose=()=>this.requestClose("keyboard"))}removeOpenListeners(){this.closeWatcher?.destroy()}show(){this.emit("zn-show"),this.addOpenListeners(),this.open=!0,this.dialog.showModal()}hide(){this.emit("zn-close"),this.removeOpenListeners(),this.open=!1,this.dialog.close()}render(){let t=this.hasSlotController.test("footer");return u`
298
+ `}showStatus(t){let r=t==="success"?this.successIcon:this.errorIcon;this.tooltip.content=t==="success"?"Copied!":"Error!",this.copyIcon.hidden=!0,this.status=t,r.hidden=!1,setTimeout(()=>{this.status="rest",this.copyIcon.hidden=!1,r.hidden=!0,this.tooltip.content=this.copyLabel||"Copy",this.isCopying=!1},1500)}async handleCopy(){if(this.isCopying)return;this.isCopying=!0;let t=this.value||this.textContent;if(this.from){let r=this.getRootNode(),n=this.from.includes("."),a=this.from.includes("[")&&this.from.includes("]"),s=this.from,l="";n?[s,l]=this.from.trim().split("."):a&&([s,l]=this.from.trim().replace(/]$/,"").split("["));let d="getElementById"in r?r.getElementById(s):null;d?a?t=d.getAttribute(l)||"":n?t=d[l]||"":t=d.textContent||"":(console.error("No target element found with id:",s),this.showStatus("error"),this.emit("zn-error"))}if(!t){console.error('No value to copy. Please provide a value or a valid "from" attribute.'),this.showStatus("error"),this.emit("zn-error");return}try{await navigator.clipboard.writeText(t),this.showStatus("success"),this.emit("zn-copy",{detail:{value:t}})}catch(r){console.error("Failed to copy text: ",r),this.showStatus("error"),this.emit("zn-error")}}};nr.styles=_(u0),c([B('slot[name="copy-icon"')],nr.prototype,"copyIcon",2),c([B('slot[name="success-icon"')],nr.prototype,"successIcon",2),c([B('slot[name="error-icon"')],nr.prototype,"errorIcon",2),c([B("zn-tooltip")],nr.prototype,"tooltip",2),c([I()],nr.prototype,"isCopying",2),c([I()],nr.prototype,"status",2),c([p()],nr.prototype,"value",2),c([p({attribute:"copy-label"})],nr.prototype,"copyLabel",2),c([p()],nr.prototype,"src",2),c([p({type:Number,reflect:!0})],nr.prototype,"size",2),c([p()],nr.prototype,"from",2);var Vu=nr;nr.define("zn-copy-button");var m0=()=>new ju,ju=class{},Uu=new WeakMap,Gl=yt(class extends yo{render(o){return F}update(o,[i]){let t=i!==this.G;return t&&this.rt(void 0),(t||this.lt!==this.ct)&&(this.G=i,this.ht=o.options?.host,this.rt(this.ct=o.element)),F}rt(o){if(this.G!==void 0)if(this.isConnected||(o=void 0),typeof this.G=="function"){let i=this.ht??globalThis,t=Uu.get(i);t===void 0&&(t=new WeakMap,Uu.set(i,t)),t.get(this.G)!==void 0&&this.G.call(this.ht,void 0),t.set(this.G,o),o!==void 0&&this.G.call(this.ht,o)}else this.G.value=o}get lt(){return typeof this.G=="function"?Uu.get(this.ht??globalThis)?.get(this.G):this.G?.value}disconnected(){this.lt===this.ct&&this.rt(void 0)}reconnected(){this.rt(this.ct)}});var ut=class{constructor(i,{target:t,config:r,callback:n,skipInitial:a}){this.t=new Set,this.o=!1,this.i=!1,this.h=i,t!==null&&this.t.add(t??i),this.l=r,this.o=a??this.o,this.callback=n,window.ResizeObserver?(this.u=new ResizeObserver(s=>{this.handleChanges(s),this.h.requestUpdate()}),i.addController(this)):console.warn("ResizeController error: browser does not support ResizeObserver.")}handleChanges(i){this.value=this.callback?.(i,this.u)}hostConnected(){for(let i of this.t)this.observe(i)}hostDisconnected(){this.disconnect()}async hostUpdated(){!this.o&&this.i&&this.handleChanges([]),this.i=!1}observe(i){this.t.add(i),this.u.observe(i,this.l),this.i=!0,this.h.requestUpdate()}unobserve(i){this.t.delete(i),this.u.unobserve(i)}disconnect(){this.u.disconnect()}target(i){return B4(this,i)}},B4=yt(class extends yo{constructor(){super(...arguments),this.observing=!1}render(o,i){}update(o,[i,t]){this.controller=i,this.part=o,this.observe=t,t===!1?(i.unobserve(o.element),this.observing=!1):this.observing===!1&&(i.observe(o.element),this.observing=!0)}disconnected(){this.controller?.unobserve(this.part.element),this.observing=!1}reconnected(){this.observe!==!1&&this.observing===!1&&(this.controller?.observe(this.part.element),this.observing=!0)}});var f0=Symbol(),Kl=class{get taskComplete(){return this.t||(this.i===1?this.t=new Promise(((i,t)=>{this.o=i,this.h=t})):this.i===3?this.t=Promise.reject(this.l):this.t=Promise.resolve(this.u)),this.t}constructor(i,t,r){this.p=0,this.i=0,(this._=i).addController(this);let n=typeof t=="object"?t:{task:t,args:r};this.v=n.task,this.j=n.args,this.m=n.argsEqual??g0,this.k=n.onComplete,this.A=n.onError,this.autoRun=n.autoRun??!0,"initialValue"in n&&(this.u=n.initialValue,this.i=2,this.O=this.T?.())}hostUpdate(){this.autoRun===!0&&this.S()}hostUpdated(){this.autoRun==="afterUpdate"&&this.S()}T(){if(this.j===void 0)return;let i=this.j();if(!Array.isArray(i))throw Error("The args function must return an array");return i}async S(){let i=this.T(),t=this.O;this.O=i,i===t||i===void 0||t!==void 0&&this.m(t,i)||await this.run(i)}async run(i){let t,r;i??(i=this.T()),this.O=i,this.i===1?this.q?.abort():(this.t=void 0,this.o=void 0,this.h=void 0),this.i=1,this.autoRun==="afterUpdate"?queueMicrotask((()=>this._.requestUpdate())):this._.requestUpdate();let n=++this.p;this.q=new AbortController;let a=!1;try{t=await this.v(i,{signal:this.q.signal})}catch(s){a=!0,r=s}if(this.p===n){if(t===f0)this.i=0;else{if(a===!1){try{this.k?.(t)}catch{}this.i=2,this.o?.(t)}else{try{this.A?.(r)}catch{}this.i=3,this.h?.(r)}this.u=t,this.l=r}this._.requestUpdate()}}abort(i){this.i===1&&this.q?.abort(i)}get value(){return this.u}get error(){return this.l}get status(){return this.i}render(i){switch(this.i){case 0:return i.initial?.();case 1:return i.pending?.();case 2:return i.complete?.(this.value);case 3:return i.error?.(this.error);default:throw Error("Unexpected status: "+this.i)}}},g0=(o,i)=>o===i||o.length===i.length&&o.every(((t,r)=>!ts(t,i[r])));function b0(o,i){return{top:Math.round(o.getBoundingClientRect().top-i.getBoundingClientRect().top),left:Math.round(o.getBoundingClientRect().left-i.getBoundingClientRect().left)}}var Gu=new Set;function V4(){let o=document.documentElement.clientWidth;return Math.abs(window.innerWidth-o)}function v0(o){if(Gu.add(o),!document.body.classList.contains("zn-scroll-lock")){let i=V4();document.body.classList.add("zn-scroll-lock"),document.body.style.setProperty("--zn-scroll-lock-size",`${i}px`)}}function ka(o){Gu.delete(o),Gu.size===0&&(document.body.classList.remove("zn-scroll-lock"),document.body.style.removeProperty("--zn-scroll-lock-size"))}function y0(o,i,t="vertical",r="smooth"){let n=b0(o,i),a=n.top+i.scrollTop,s=n.left+i.scrollLeft,l=i.scrollLeft,d=i.scrollLeft+i.offsetWidth,h=i.scrollTop,m=i.scrollTop+i.offsetHeight;(t==="horizontal"||t==="both")&&(s<l?i.scrollTo({left:s,behavior:r}):s+o.clientWidth>d&&i.scrollTo({left:s-i.offsetWidth+o.clientWidth,behavior:r})),(t==="vertical"||t==="both")&&(a<h?i.scrollTo({top:a,behavior:r}):a+o.clientHeight>m&&i.scrollTo({top:a-i.offsetHeight+o.clientHeight,behavior:r}))}function x0(o){let i=[],t=o;for(;t;)t instanceof Element&&t.scrollTop>0&&i.push(t),t=t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode;return i}function w0(o,i="auto"){for(let t of o)t.scrollTo({top:0,behavior:i})}var z0=k`@keyframes rotate-gradient{from{--rotate:0deg}to{--rotate:360deg}}:host{text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-transform:none}*,*::before,*::after{box-sizing:border-box;border-width:0;border-style:solid;border-color:rgb(var(--zn-border-color))}[hidden]{display:none !important}.width-container,.form-container,.wide-form-container{height:100%;width:100%;margin:var(--zn-default-margin,0 auto)}.width-container{max-width:var(--zn-container)}.form-container{max-width:var(--zn-container-ph)}.wide-form-container{max-width:var(--zn-container-lg)}:host{--width:30rem;--header-spacing:var(--zn-spacing-large) var(--zn-spacing-large) var(--zn-spacing-medium);--body-spacing:var(--zn-spacing-x-small) var(--zn-spacing-large);--footer-spacing:var(--zn-spacing-large);--icon-background-color:var(--zn-color-primary-200);--icon-color:var(--zn-color-primary-600);--caption-color:var(--zn-color-primary-600);display:contents}.dialog-container{display:flex;flex:1 1 auto;flex-direction:column;min-height:0;border-radius:var(--zn-border-radius);background-color:var(--zn-panel-background-color);margin:2px;overflow:hidden}.dialog__header+.dialog__body{padding-top:0}.dialog{flex-direction:column;z-index:2;width:calc(var(--width) + 1px);overflow:hidden;max-width:calc(100% - var(--zn-spacing-2x-large));max-height:calc(100% - 20vh);background-color:var(--zn-panel-background-color);border-radius:var(--zn-border-radius);box-shadow:var(--zn-shadow-x-large);padding:0;margin:10vh auto}.dialog[open]{display:flex}.dialog__header{flex:0 0 auto;display:flex}.dialog__title{display:flex;flex:1 1 auto;align-items:center;font:inherit;margin:0;width:100%;overflow:hidden}.dialog__header-actions{flex-shrink:0;display:flex;flex-wrap:wrap;justify-content:end;align-items:center;gap:var(--zn-spacing-x-small);padding:var(--header-spacing)}.dialog__header-actions zn-button,.dialog__header-actions::slotted(zn-button){flex:0 0 auto;display:flex;align-items:center;font-size:var(--zn-font-size-medium)}.dialog__label{overflow:hidden;word-break:break-word;display:inline-block}.dialog__body{flex:1 1 auto;min-height:0;display:block;padding:var(--body-spacing);overflow:auto;-webkit-overflow-scrolling:touch;color:var(--zn-color-text-default);font-size:var(--zn-font-size-medium);font-weight:var(--zn-font-weight-normal);letter-spacing:var(--zn-tracking-normal);line-height:var(--zn-line-height-dense)}.dialog__footer{flex:0 0 auto;text-align:right;padding:var(--footer-spacing)}.dialog__footer ::slotted(zn-button:not(:first-of-type)){margin-inline-start:var(--zn-spacing-x-small)}.dialog{}.dialog--default .dialog__title,.dialog--warning .dialog__title{color:rgb(var(--zn-text-panel-title));font-size:var(--zn-font-size-x-large);font-weight:var(--zn-font-weight-semibold);letter-spacing:var(--zn-letter-spacing-normal);line-height:var(--zn-line-height-dense);padding:var(--header-spacing)}.dialog--announcement .dialog__title{display:flex;flex:1 1 auto;flex-direction:column;justify-content:center;align-content:center;color:var(--caption-color);font-size:var(--zn-font-size-x-large);font-weight:var(--zn-font-weight-semibold);letter-spacing:var(--zn-letter-spacing-normal);line-height:var(--zn-line-height-dense);padding:var(--header-spacing);margin:0}.dialog--default .dialog__title ::slotted(zn-icon),.dialog--warning .dialog__title ::slotted(zn-icon){border-radius:var(--zn-border-radius-pill);padding:var(--zn-spacing-2x-small);margin-right:var(--zn-spacing-small)}.dialog--announcement .dialog__title ::slotted(zn-icon){--icon-size:var(--zn-font-size-3x-large);border-radius:var(--zn-border-radius-pill);padding:var(--zn-spacing-medium);margin-bottom:var(--zn-spacing-medium)}.dialog__title ::slotted(zn-icon){background-color:var(--icon-background-color);color:var(--icon-color)}.dialog--warning .dialog__title{--icon-background-color:rgba(var(--zn-color-warning),.3);--icon-color:rgb(var(--zn-color-warning))}.dialog--announcement .dialog__title ::slotted([slot=announcement-intro]){color:var(--zn-color-neutral-800);font-size:var(--zn-font-size-large);font-weight:var(--zn-font-weight-semibold);padding:var(--zn-spacing-medium) 0}.dialog--announcement .dialog__header-actions{display:none}.dialog--announcement .dialog__body{padding:var(--zn-spacing-x-small) var(--zn-spacing-2x-large)}.dialog--announcement .dialog__title,.dialog--announcement .dialog__body,.dialog--announcement .dialog__footer{text-align:center}.dialog--announcement .dialog__footer ::slotted([slot=footer-text]){color:var(--zn-color-neutral-700);font-size:var(--zn-font-size-small);font-weight:var(--zn-font-weight-normal)}.dialog{}.dialog--small{--width:25rem}.dialog--small .dialog__body{color:rgb(var(--zn-text));padding:var(--body-spacing)}.dialog--medium{--width:30rem}.dialog--large{--width:37.5rem}.dialog{}.dialog--announcement .dialog__footer ::slotted([slot=footer-text]){padding:var(--zn-spacing-large)}.dialog__footer ::slotted(zn-button:not(:first-of-type)){margin-inline-start:var(--zn-spacing-x-small)}.dialog:not(.dialog--has-footer) .dialog__body{padding-bottom:var(--zn-spacing-3x-large)}.dialog:not(.dialog--has-footer) .dialog__footer{display:none}.dialog--cosmic{border:1px solid transparent}.dialog--cosmic:before{content:"";z-index:-1;position:absolute;top:-2px;left:-2px;height:calc(100% + 4px);width:calc(100% + 4px);filter:blur(var(--zn-blur,1px));opacity:0.9;border-radius:var(--zn-border-radius);background-image:conic-gradient(from var(--rotate) at 50% 50%,#71d9ff 0%,#a100ff 22%,#71d9ff 44%,#ff00ce 74%,#71d9ff 94%);animation:rotate-gradient 6s linear infinite}.dialog--cosmic{position:relative;border:none !important}`;var mr=class extends S{constructor(){super(...arguments);this.hasSlotController=new Y(this,"[default]","footer");this.variant="default";this.size="medium";this.open=!1;this.cosmic=!1;this.noHeader=!1;this.closeClickHandler=t=>{if(t.target instanceof HTMLElement&&t.target.hasAttribute("dialog-closer")){this.hide();return}for(let r of t.composedPath()){if(r===this)return;if(r instanceof HTMLElement){if(r.hasAttribute("modal-closer")){this.hide();return}if(r.localName==="zn-dialog"||r.localName==="zn-slideout")return}}}}firstUpdated(t){super.firstUpdated(t),this.open&&this.show()}connectedCallback(){if(super.connectedCallback(),this.addEventListener("click",this.closeClickHandler),this.shadowRoot?.addEventListener("click",this.closeClickHandler),this.trigger){let t=this.parentNode?.querySelector(dr(this.trigger));t&&t.addEventListener("click",()=>this.show())}if(window.CSS.registerProperty)try{window.CSS.registerProperty({inherits:!1,initialValue:"0deg",name:"--rotate",syntax:"<angle>"})}catch{}}disconnectedCallback(){if(super.disconnectedCallback(),this.dialog.close(),ka(this),this.closeWatcher?.destroy(),this.removeEventListener("click",this.closeClickHandler),this.trigger){let t=this.parentElement?.querySelector(dr(this.trigger));t&&t.removeEventListener("click",()=>this.show())}}requestClose(t){this.emit("zn-request-close",{cancelable:!0,detail:{source:t}}).defaultPrevented||this.hide()}addOpenListeners(){"CloseWatcher"in window&&(this.closeWatcher?.destroy(),this.closeWatcher=new CloseWatcher,this.closeWatcher.onclose=()=>this.requestClose("keyboard"))}removeOpenListeners(){this.closeWatcher?.destroy()}show(){this.emit("zn-show"),this.addOpenListeners(),this.open=!0,this.dialog.showModal()}hide(){this.emit("zn-close"),this.removeOpenListeners(),this.open=!1,this.dialog.close()}render(){let t=this.hasSlotController.test("footer");return u`
299
299
  <dialog
300
300
  part="base"
301
301
  role="alertdialog"
@@ -341,7 +341,7 @@ import{a as Hn,b as X3,c as kr,d as c,e as V}from"./chunks/zn.UBLZO6CI.js";var a
341
341
  </footer>
342
342
  </div>
343
343
  </dialog>
344
- `}};fr.styles=_(z0),fr.dependencies={"zn-button":Ee},c([B(".dialog")],fr.prototype,"dialog",2),c([B(".dialog__close")],fr.prototype,"closer",2),c([p({reflect:!0})],fr.prototype,"variant",2),c([p({reflect:!0})],fr.prototype,"size",2),c([p({type:Boolean,reflect:!0})],fr.prototype,"open",2),c([p({reflect:!0})],fr.prototype,"label",2),c([p({type:Boolean,reflect:!0})],fr.prototype,"cosmic",2),c([p({attribute:"no-header",type:Boolean,reflect:!0})],fr.prototype,"noHeader",2),c([p({type:String,reflect:!0})],fr.prototype,"trigger",2);var Sa=fr;fr.define("zn-dialog");var _0=k`@keyframes rotate-gradient{from{--rotate:0deg}to{--rotate:360deg}}:host{text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-transform:none}*,*::before,*::after{box-sizing:border-box;border-width:0;border-style:solid;border-color:rgb(var(--zn-border-color))}[hidden]{display:none !important}.width-container,.form-container,.wide-form-container{height:100%;width:100%;margin:var(--zn-default-margin,0 auto)}.width-container{max-width:var(--zn-container)}.form-container{max-width:var(--zn-container-ph)}.wide-form-container{max-width:var(--zn-container-lg)}.confirm-dialog__content{margin:0;text-wrap:auto}.confirm-dialog::part(footer){text-align:right}.confirm-dialog::part(body){text-align:left}.confirm-dialog--has-default-slot .confirm-dialog__content{margin-bottom:var(--zn-spacing-large)}.confirm-dialog--error::part(title){--icon-background-color:rgb(var(--zn-color-error),.3);--icon-color:rgb(var(--zn-color-error),1);--caption-color:rgb(var(--zn-color-error),1)}.confirm-dialog--warning::part(title){--icon-background-color:rgb(var(--zn-color-warning),.3);--icon-color:rgb(var(--zn-color-warning),1);--caption-color:rgb(var(--zn-color-warning),1)}.confirm-dialog--success::part(title){--icon-background-color:rgb(var(--zn-color-success),.3);--icon-color:rgb(var(--zn-color-success),1);--caption-color:rgb(var(--zn-color-success),1)}.confirm-dialog--info::part(title){--icon-background-color:rgb(var(--zn-color-info),.3);--icon-color:rgb(var(--zn-color-info),1);--caption-color:rgb(var(--zn-color-info),1)}`;var Ke=class extends S{constructor(){super(...arguments);this.hasSlotController=new Y(this,"[default]","footer");this.variant="default";this.size="medium";this.type="warning";this.open=!1;this.caption="";this.action="";this.content="";this.confirmText="Confirm";this.cancelText="Cancel";this.closeText="Close";this.hideIcon=!1;this.showLoading=!1;this.announcement="";this.footerText="";this.loading=!1;this.failed=!1;this.failure="";this.submitted=null;this.show=(t=void 0)=>{t?.target?.disabled||(this.reset(),this.dialog.show())};this.settle=t=>{let r=t.detail?.response;if(this.stopWatching(),t.type==="error"||this.responseFailed(r)){this.loading=!1,this.failed=!0,this.failure=this.alertTitle(r),this.dialog?.closer&&(this.dialog.closer.disabled=!1);return}this.hide()}}firstUpdated(t){super.firstUpdated(t),this.open&&this.dialog.show()}connectedCallback(){super.connectedCallback(),this.hasSlotController.test("trigger")?this.hasSlotController.getSlot("trigger")?.addEventListener("click",this.show):this.trigger&&Ge(pr(this.trigger),this.parentElement,"").forEach(r=>{r.addEventListener("click",this.show)})}updateTriggers(){Ge(pr(this.trigger),this.parentElement,"").forEach(r=>{r.removeEventListener("click",this.show),r.addEventListener("click",this.show)})}hide(){this.reset(),this.dialog.hide()}disconnectedCallback(){super.disconnectedCallback(),this.stopWatching()}reset(){this.stopWatching(),this.loading=!1,this.failed=!1,this.failure="",this.dialog?.closer&&(this.dialog.closer.disabled=!1)}stopWatching(){this.submitted?.removeEventListener("complete",this.settle),this.submitted?.removeEventListener("error",this.settle),this.submitted=null}responseFailed(t){return!t||(t.status??0)>=400?!0:(t.actions??[]).some(r=>r.action==="alert"&&r.style==="error")}alertTitle(t){return(t?.actions??[]).find(n=>n.action==="alert"&&n.style==="error")?.title??""}render(){let t={warning:"priority_high",error:"priority_high",success:"check",info:"help"};return u`
344
+ `}};mr.styles=_(z0),mr.dependencies={"zn-button":Ee},c([B(".dialog")],mr.prototype,"dialog",2),c([B(".dialog__close")],mr.prototype,"closer",2),c([p({reflect:!0})],mr.prototype,"variant",2),c([p({reflect:!0})],mr.prototype,"size",2),c([p({type:Boolean,reflect:!0})],mr.prototype,"open",2),c([p({reflect:!0})],mr.prototype,"label",2),c([p({type:Boolean,reflect:!0})],mr.prototype,"cosmic",2),c([p({attribute:"no-header",type:Boolean,reflect:!0})],mr.prototype,"noHeader",2),c([p({type:String,reflect:!0})],mr.prototype,"trigger",2);var Sa=mr;mr.define("zn-dialog");var _0=k`@keyframes rotate-gradient{from{--rotate:0deg}to{--rotate:360deg}}:host{text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-transform:none}*,*::before,*::after{box-sizing:border-box;border-width:0;border-style:solid;border-color:rgb(var(--zn-border-color))}[hidden]{display:none !important}.width-container,.form-container,.wide-form-container{height:100%;width:100%;margin:var(--zn-default-margin,0 auto)}.width-container{max-width:var(--zn-container)}.form-container{max-width:var(--zn-container-ph)}.wide-form-container{max-width:var(--zn-container-lg)}.confirm-dialog__content{margin:0;text-wrap:auto}.confirm-dialog::part(footer){text-align:right}.confirm-dialog::part(body){text-align:left}.confirm-dialog--has-default-slot .confirm-dialog__content{margin-bottom:var(--zn-spacing-large)}.confirm-dialog--error::part(title){--icon-background-color:rgb(var(--zn-color-error),.3);--icon-color:rgb(var(--zn-color-error),1);--caption-color:rgb(var(--zn-color-error),1)}.confirm-dialog--warning::part(title){--icon-background-color:rgb(var(--zn-color-warning),.3);--icon-color:rgb(var(--zn-color-warning),1);--caption-color:rgb(var(--zn-color-warning),1)}.confirm-dialog--success::part(title){--icon-background-color:rgb(var(--zn-color-success),.3);--icon-color:rgb(var(--zn-color-success),1);--caption-color:rgb(var(--zn-color-success),1)}.confirm-dialog--info::part(title){--icon-background-color:rgb(var(--zn-color-info),.3);--icon-color:rgb(var(--zn-color-info),1);--caption-color:rgb(var(--zn-color-info),1)}`;var Ke=class extends S{constructor(){super(...arguments);this.hasSlotController=new Y(this,"[default]","footer");this.variant="default";this.size="medium";this.type="warning";this.open=!1;this.caption="";this.action="";this.content="";this.confirmText="Confirm";this.cancelText="Cancel";this.closeText="Close";this.hideIcon=!1;this.showLoading=!1;this.announcement="";this.footerText="";this.loading=!1;this.failed=!1;this.failure="";this.submitted=null;this.show=(t=void 0)=>{t?.target?.disabled||(this.reset(),this.dialog.show())};this.settle=t=>{let r=t.detail?.response;if(this.stopWatching(),t.type==="error"||this.responseFailed(r)){this.loading=!1,this.failed=!0,this.failure=this.alertTitle(r),this.dialog?.closer&&(this.dialog.closer.disabled=!1);return}this.hide()}}firstUpdated(t){super.firstUpdated(t),this.open&&this.dialog.show()}connectedCallback(){super.connectedCallback(),this.hasSlotController.test("trigger")?this.hasSlotController.getSlot("trigger")?.addEventListener("click",this.show):this.trigger&&Ge(dr(this.trigger),this.parentElement,"").forEach(r=>{r.addEventListener("click",this.show)})}updateTriggers(){Ge(dr(this.trigger),this.parentElement,"").forEach(r=>{r.removeEventListener("click",this.show),r.addEventListener("click",this.show)})}hide(){this.reset(),this.dialog.hide()}disconnectedCallback(){super.disconnectedCallback(),this.stopWatching()}reset(){this.stopWatching(),this.loading=!1,this.failed=!1,this.failure="",this.dialog?.closer&&(this.dialog.closer.disabled=!1)}stopWatching(){this.submitted?.removeEventListener("complete",this.settle),this.submitted?.removeEventListener("error",this.settle),this.submitted=null}responseFailed(t){return!t||(t.status??0)>=400?!0:(t.actions??[]).some(r=>r.action==="alert"&&r.style==="error")}alertTitle(t){return(t?.actions??[]).find(n=>n.action==="alert"&&n.style==="error")?.title??""}render(){let t={warning:"priority_high",error:"priority_high",success:"check",info:"help"};return u`
345
345
  <slot name="trigger" slot="trigger"></slot>
346
346
  <zn-dialog size="${this.size}" variant="${this.variant}" label=${O(this.caption)} trigger=${this.trigger}
347
347
  class=${M({"confirm-dialog":!0,"confirm-dialog--warning":this.type==="warning","confirm-dialog--error":this.type==="error","confirm-dialog--success":this.type==="success","confirm-dialog--info":this.type==="info","confirm-dialog--has-default-slot":this.hasSlotController.test("[default]")})}>
@@ -428,8 +428,8 @@ import{a as Hn,b as X3,c as kr,d as c,e as V}from"./chunks/zn.UBLZO6CI.js";var a
428
428
  <div part="footer" class="slash-menu__footer">${t} more — keep typing to narrow</div>`:""}
429
429
  </div>
430
430
  ${this.hideHints?"":this.renderHints()}
431
- </div>`}};tt.styles=_(C0),tt.dependencies={"zn-icon":oe},c([B(".slash-menu__panel")],tt.prototype,"panel",2),c([B(".slash-menu__list")],tt.prototype,"list",2),c([p({type:Boolean,reflect:!0})],tt.prototype,"open",2),c([p({type:Array})],tt.prototype,"items",2),c([p()],tt.prototype,"query",2),c([p()],tt.prototype,"heading",2),c([p({attribute:"empty-text"})],tt.prototype,"emptyText",2),c([p({attribute:"max-items",type:Number})],tt.prototype,"maxItems",2),c([p({attribute:"hide-keys",type:Boolean})],tt.prototype,"hideKeys",2),c([p({attribute:"hide-hints",type:Boolean})],tt.prototype,"hideHints",2),c([p({attribute:"recent-key"})],tt.prototype,"recentKey",2),c([p({attribute:"max-recent",type:Number})],tt.prototype,"maxRecent",2),c([p({attribute:"recent-heading"})],tt.prototype,"recentHeading",2),c([p({attribute:!1})],tt.prototype,"anchor",2),c([p()],tt.prototype,"placement",2),c([p({type:Number})],tt.prototype,"distance",2),c([I()],tt.prototype,"activeIndex",2),c([I()],tt.prototype,"recentKeys",2);var Q4=["direction","boxSizing","width","height","overflowX","overflowY","borderTopWidth","borderRightWidth","borderBottomWidth","borderLeftWidth","borderStyle","paddingTop","paddingRight","paddingBottom","paddingLeft","fontStyle","fontVariant","fontWeight","fontStretch","fontSize","fontSizeAdjust","lineHeight","fontFamily","textAlign","textTransform","textIndent","textDecoration","letterSpacing","wordSpacing","tabSize"];function X4(o){let i=parseFloat(o.lineHeight);if(!Number.isNaN(i))return i;let t=parseFloat(o.fontSize);return Number.isNaN(t)?16:t*1.2}function Qu(o,i){let t=o.ownerDocument,r=getComputedStyle(o),n=o.nodeName==="INPUT",a=t.createElement("div"),s=a.style,l=r;s.position="absolute",s.visibility="hidden",s.top="0",s.left="-9999px",s.whiteSpace=n?"pre":"pre-wrap",s.overflow="hidden",n||(s.wordWrap="break-word"),Q4.forEach(f=>{let b=l[f];typeof b=="string"&&(s[f]=b)}),n&&(s.height="auto");let d=o.value.slice(0,i);a.textContent=n?d.replace(/\s/g,"\xA0"):d;let h=t.createElement("span");h.textContent=o.value.slice(i)||".",a.appendChild(h),t.body.appendChild(a);let m={top:h.offsetTop+(parseFloat(r.borderTopWidth)||0),left:h.offsetLeft+(parseFloat(r.borderLeftWidth)||0),height:X4(r)};return a.remove(),m}function Xu(o,{top:i,left:t,height:r}){let n=o.getBoundingClientRect(),a=Math.max(n.top,n.bottom-r),s=Math.min(Math.max(n.top+i-o.scrollTop,n.top),a),l=Math.min(Math.max(n.left+t-o.scrollLeft,n.left),n.right);return new DOMRect(l,s,1,r)}function mU(o,i){return Xu(o,Qu(o,i))}var J4=40,ko=class{constructor(i,t){this.caretAnchor={getBoundingClientRect:()=>this.caretRect()};this.field=null;this.menu=null;this.triggerIndex=-1;this.query="";this.dismissedIndex=-1;this.resolveToken=0;this.inserting=!1;this.isOpen=!1;this.listening=!1;this.handleInput=()=>this.detect();this.handleCaretMove=()=>this.detect();this.handleKeyUp=i=>{this.isOpen&&(i.key==="ArrowDown"||i.key==="ArrowUp")||(i.key.startsWith("Arrow")||i.key==="Home"||i.key==="End")&&this.detect()};this.handleBlur=()=>this.close();this.handleScroll=()=>{this.isOpen&&this.menu?.reposition()};this.handleKeyDown=i=>{if(!this.isOpen||i.isComposing)return;let t=()=>{i.preventDefault(),i.stopPropagation()};switch(i.key){case"Escape":t(),this.dismissedIndex=this.triggerIndex,this.close();return;case"ArrowDown":t(),this.menu?.moveActive(1);return;case"ArrowUp":t(),this.menu?.moveActive(-1);return;case"Enter":case"Tab":{if(i.shiftKey||i.metaKey||i.ctrlKey||i.altKey)return;let r=this.menu?.activeItem;if(!r){this.close();return}t(),this.select(r)}}};this.handleItemSelect=i=>{let{item:t}=i.detail;t&&this.select(t)};this.host=i,this.options=t,i.addController(this)}get open(){return this.isOpen}hostConnected(){this.addListeners()}hostDisconnected(){this.removeListeners()}attach(i){this.field===i&&this.listening||(this.removeListeners(),this.field=i,this.caretAnchor.contextElement=i,this.addListeners())}detach(){this.removeListeners(),this.field=null}addListeners(){let i=this.field;!i||this.listening||(i.addEventListener("keydown",this.handleKeyDown,{capture:!0}),i.addEventListener("input",this.handleInput),i.addEventListener("keyup",this.handleKeyUp),i.addEventListener("click",this.handleCaretMove),i.addEventListener("blur",this.handleBlur),i.addEventListener("scroll",this.handleScroll),this.listening=!0)}removeListeners(){let i=this.field;!i||!this.listening||(this.close(),i.removeEventListener("keydown",this.handleKeyDown,{capture:!0}),i.removeEventListener("input",this.handleInput),i.removeEventListener("keyup",this.handleKeyUp),i.removeEventListener("click",this.handleCaretMove),i.removeEventListener("blur",this.handleBlur),i.removeEventListener("scroll",this.handleScroll),this.listening=!1)}close(){this.resolveToken++,this.triggerIndex=-1,this.query="",this.isOpen&&(this.isOpen=!1,this.menu?.hide(),this.field?.setAttribute("aria-expanded","false"))}requestOpen(){this.dismissedIndex=-1,this.detect()}caretRect(){let i=this.field;if(!i)return new DOMRect;let t=this.triggerIndex>=0?this.triggerIndex:i.selectionStart??0,r=i.clientWidth,n=this.measured;return(!n||n.index!==t||n.width!==r||n.value!==i.value)&&(this.measured={value:i.value,index:t,width:r,coordinates:Qu(i,t)}),Xu(i,this.measured.coordinates)}detect(){if(this.inserting)return;let i=this.field;if(!i||i.disabled||i.readOnly){this.close();return}let t=this.options.trigger?.()||"/",r=i.selectionStart;if(!t||r===null||i.selectionEnd!==r){this.close();return}let n=i.value,a=n.lastIndexOf(t,Math.max(0,r-t.length));if(a===-1||a+t.length>r){this.close();return}let s=a>0?n.charAt(a-1):"";if(s!==""&&!/\s/.test(s)){this.close();return}let l=n.slice(a+t.length,r);if(l.length>J4||/[\r\n]/.test(l)){this.close();return}if(a===this.dismissedIndex){this.close();return}this.triggerIndex=a,this.query=l,this.resolve(l)}async resolve(i){let t=++this.resolveToken,r=[];try{r=await this.options.items(i)}catch(s){console.warn("slash menu items could not be resolved",s)}if(t!==this.resolveToken)return;let n=Yd(r,i);if(!n.length){this.close();return}let a=await this.options.menu();!a||t!==this.resolveToken||(a!==this.menu&&(this.menu?.removeEventListener(fs,this.handleItemSelect),a.addEventListener(fs,this.handleItemSelect),this.menu=a),a.anchor=this.caretAnchor,a.query=i,a.items=n,this.isOpen||(this.isOpen=!0,this.dismissedIndex=-1,a.show(),this.field?.setAttribute("aria-expanded","true"),this.field?.setAttribute("aria-haspopup","listbox")),await a.updateComplete,this.isOpen&&a.reposition())}select(i){let t=this.field,r=this.triggerIndex,n=t?.selectionStart??r,a=this.query,s=this.options.trigger?.()||"/";if(i.disabled||(this.close(),!t||r<0))return;let l=this.options.onSelect?.(i,a)===!1,d=l?"":i.value??"";t.value.slice(r,n)===s+a&&(this.replace(t,r,n,d,i),!l&&d&&this.options.onInsert?.(i,d))}replace(i,t,r,n,a){this.inserting=!0;try{i.focus({preventScroll:!0}),i.setSelectionRange(t,r);let s=!1;try{s=i.ownerDocument.execCommand("insertText",!1,n)}catch{s=!1}s||(i.setRangeText(n,t,r,"end"),i.dispatchEvent(new Event("input",{bubbles:!0,composed:!0})));let l=Math.min(Math.max(a.caretOffset??n.length,0),n.length);i.setSelectionRange(t+l,t+l)}finally{this.inserting=!1}this.host.requestUpdate()}};var Ea=tt;tt.define("zn-slash-menu");var ar=yt(class extends ir{constructor(o){if(super(o),o.type!==dr.PROPERTY&&o.type!==dr.ATTRIBUTE&&o.type!==dr.BOOLEAN_ATTRIBUTE)throw Error("The `live` directive is not allowed on child or event bindings");if(!$d(o))throw Error("`live` bindings can only contain a single expression")}render(o){return o}update(o,[i]){if(i===vt||i===F)return i;let t=o.element,r=o.name;if(o.type===dr.PROPERTY){if(i===t[r])return vt}else if(o.type===dr.BOOLEAN_ATTRIBUTE){if(!!i===t.hasAttribute(r))return vt}else if(o.type===dr.ATTRIBUTE&&t.getAttribute(r)===i+"")return vt;return ss(o),i}});var Ju=new Set,gs=new Map,Gn,Zu="ltr",em="en",E0=typeof MutationObserver<"u"&&typeof document<"u"&&typeof document.documentElement<"u";if(E0){let o=new MutationObserver(T0);Zu=document.documentElement.dir||"ltr",em=document.documentElement.lang||navigator.language,o.observe(document.documentElement,{attributes:!0,attributeFilter:["dir","lang"]})}function Wl(...o){o.map(i=>{let t=i.$code.toLowerCase();gs.has(t)?gs.set(t,Object.assign(Object.assign({},gs.get(t)),i)):gs.set(t,i),Gn||(Gn=i)}),T0()}function T0(){E0&&(Zu=document.documentElement.dir||"ltr",em=document.documentElement.lang||navigator.language),[...Ju.keys()].map(o=>{typeof o.requestUpdate=="function"&&o.requestUpdate()})}var Qd=class{constructor(i){this.host=i,this.host.addController(this)}hostConnected(){Ju.add(this.host)}hostDisconnected(){Ju.delete(this.host)}dir(){return`${this.host.dir||Zu}`.toLowerCase()}lang(){let i=`${this.host.lang||em}`.toLowerCase().replace(/_/g,"-");try{return new Intl.Locale(i),i}catch{return Gn?Gn.$code.toLowerCase():"en"}}getTranslationData(i){var t,r;let n;try{n=new Intl.Locale(i.replace(/_/g,"-"))}catch{return{locale:void 0,language:"",region:"",primary:void 0,secondary:void 0}}let a=n.language.toLowerCase(),s=(r=(t=n.region)===null||t===void 0?void 0:t.toLowerCase())!==null&&r!==void 0?r:"",l=gs.get(`${a}-${s}`),d=gs.get(a);return{locale:n,language:a,region:s,primary:l,secondary:d}}exists(i,t){var r;let{primary:n,secondary:a}=this.getTranslationData((r=t.lang)!==null&&r!==void 0?r:this.lang());return t=Object.assign({includeFallback:!1},t),!!(n&&n[i]||a&&a[i]||t.includeFallback&&Gn&&Gn[i])}term(i,...t){let{primary:r,secondary:n}=this.getTranslationData(this.lang()),a;if(r&&r[i])a=r[i];else if(n&&n[i])a=n[i];else if(Gn&&Gn[i])a=Gn[i];else return console.error(`No translation found for: ${String(i)}`),String(i);return typeof a=="function"?a(...t):a}date(i,t){return i=new Date(i),new Intl.DateTimeFormat(this.lang(),t).format(i)}number(i,t){return i=Number(i),isNaN(i)?"":new Intl.NumberFormat(this.lang(),t).format(i)}relativeTime(i,t,r){return new Intl.RelativeTimeFormat(this.lang(),r).format(i,t)}};var $0={$code:"en",$name:"English",$dir:"ltr",onChange:"onChange",showPassword:"Show password",hidePassword:"Hide password",clearEntry:"Clear entry",numOptionsSelected:o=>o===0?"No options selected":o===1?"1 option selected":`${o} options selected`,fileButtonText:"Choose a file",fileButtonTextMultiple:"Choose files",folderButtonText:"Choose a folder",fileDragDrop:"Drop files here to upload",folderDragDrop:"Drop folder here to upload",numFilesSelected:o=>o===0?"No files selected":o===1?"1 file selected":`${o} files selected`};Wl($0);var A0=$0;var Ft=class extends Qd{};Wl(A0);var L0=k`@keyframes rotate-gradient{from{--rotate:0deg}to{--rotate:360deg}}:host{text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-transform:none}*,*::before,*::after{box-sizing:border-box;border-width:0;border-style:solid;border-color:rgb(var(--zn-border-color))}[hidden]{display:none !important}.width-container,.form-container,.wide-form-container{height:100%;width:100%;margin:var(--zn-default-margin,0 auto)}.width-container{max-width:var(--zn-container)}.form-container{max-width:var(--zn-container-ph)}.wide-form-container{max-width:var(--zn-container-lg)}:host{display:none}`;var gr=class extends S{constructor(){super(...arguments);this.label="";this.disabled=!1}toSlashMenuItem(){return{label:this.label||this.insertValue,value:this.insertValue,icon:this.icon,description:this.description,keywords:this.keywords,group:this.group,order:this.order,action:this.action,caretOffset:this.caretOffset,disabled:this.disabled}}get insertValue(){return this.value??(this.textContent??"").trim()}render(){return u`
432
- <slot></slot>`}};gr.styles=_(L0),c([p()],gr.prototype,"label",2),c([p()],gr.prototype,"value",2),c([p()],gr.prototype,"icon",2),c([p()],gr.prototype,"description",2),c([p()],gr.prototype,"keywords",2),c([p()],gr.prototype,"group",2),c([p({type:Number})],gr.prototype,"order",2),c([p({attribute:"caret-offset",type:Number})],gr.prototype,"caretOffset",2),c([p()],gr.prototype,"action",2),c([p({type:Boolean,reflect:!0})],gr.prototype,"disabled",2);var Yl=gr;gr.define("zn-slash-item");var $e=k`.form-control-input{margin:var(--zn-spacing-2x-small) 3px 3px 0}.form-control-input--flush{margin:0}.form-control .form-control__label{display:none}.form-control .form-control__help-text{display:none}.form-control--has-label .form-control__label{display:inline-block;color:var(--zn-input-label-color);font-weight:var(--zn-input-label-font-weight);line-height:var(--zn-input-label-line-height);margin-bottom:var(--zn-spacing-x-small)}.form-control--has-label.form-control--medium .form-control__label{font-size:var(--zn-input-label-font-size-medium)}.form-control--has-label.form-control--large .form-control__label{font-size:var(--zn-input-label-font-size-large)}:host([required]) .form-control--has-label .form-control__label::after{content:var(--zn-input-required-content);margin-inline-start:var(--zn-input-required-content-offset);color:var(--zn-input-required-content-color)}.form-control--has-label.form-control--radio-group .form-control__label,.form-control--has-label.form-control--checkbox-group .form-control__label{margin-bottom:0}.form-control--has-label.form-control--has-label-tooltip .form-control__label{display:inline-flex;align-items:center;gap:var(--zn-spacing-2x-small)}.form-control--has-label.form-control--small .form-control__label{font-size:var(--zn-input-label-font-size-small)}.form-control--label-tooltip{color:var(--zn-color-neutral-700);font-size:var(--zn-font-size-small)}.form-control--label-tooltip zn-icon{--icon-color:var(--zn-color-neutral-700);--icon-size:var(--zn-font-size-small)}.form-control--has-label.form-control--has-context-note{display:flex;justify-content:space-between;flex-wrap:wrap}.form-control__label-context-note{color:var(--zn-input-help-text-color);font-size:var(--zn-font-size-small);margin-bottom:var(--zn-spacing-2x-small)}.form-control--has-label.form-control--has-context-note .form-control-input{width:100%}.form-control--has-help-text .form-control__help-text,.radio--has-description .radio__description,.checkbox--has-description .checkbox__description{display:block;color:var(--zn-input-help-text-color);margin-top:var(--zn-spacing-x-small)}.radio--has-description .radio__description,.checkbox--has-description .checkbox__description{margin-top:0.375rem}.radio--has-selected-content .radio__selected-content,.checkbox--has-selected-content .checkbox__selected-content{display:block;margin-top:var(--zn-spacing-small)}.form-control--has-help-text.form-control--small .form-control__help-text{font-size:var(--zn-input-help-text-font-size-small)}.form-control--has-help-text.form-control--medium .form-control__help-text,.radio--has-description .radio__description,.checkbox--has-description .checkbox__description{font-size:var(--zn-input-help-text-font-size-medium)}.form-control--has-help-text.form-control--large .form-control__help-text{font-size:var(--zn-input-help-text-font-size-large)}.form-control--has-help-text.form-control--radio-group .form-control__help-text,.form-control--has-help-text.form-control--checkbox-group .form-control__help-text{margin-top:var(--zn-spacing-medium)}.form-control--has-help-text .switch .form-control__help-text{margin-top:var(--zn-spacing-3x-small)}.form-control--checkbox-contained-wrapper,.form-control--radio-contained-wrapper{height:100%}`;var M0=k`@charset "UTF-8";@keyframes rotate-gradient{from{--rotate:0deg}to{--rotate:360deg}}:host{text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-transform:none}*,*::before,*::after{box-sizing:border-box;border-width:0;border-style:solid;border-color:rgb(var(--zn-border-color))}[hidden]{display:none !important}.width-container,.form-container,.wide-form-container{height:100%;width:100%;margin:var(--zn-default-margin,0 auto)}.width-container{max-width:var(--zn-container)}.form-container{max-width:var(--zn-container-ph)}.wide-form-container{max-width:var(--zn-container-lg)}:host{display:block}.input{flex:1 1 auto;display:inline-flex;align-items:stretch;justify-content:start;position:relative;width:100%;font-family:var(--zn-input-font-family),sans-serif;font-weight:var(--zn-input-font-weight);letter-spacing:var(--zn-input-letter-spacing);vertical-align:middle;overflow:hidden;cursor:text;transition:var(--zn-transition-fast) color,var(--zn-transition-fast) border,var(--zn-transition-fast) background-color}.input--standard{background-color:var(--zn-input-background-color);border:solid var(--zn-input-border-width) var(--zn-input-border-color)}.input--standard:hover:not(.input--disabled,.input--filled){background-color:var(--zn-input-background-color-hover);border-color:var(--zn-input-border-color-hover)}.input--filled:hover:not(.input--disabled){background-color:var(--zn-color-neutral-50);border-color:var(--zn-input-border-color-hover)}.input--standard.input--focused:not(.input--disabled){background-color:var(--zn-input-background-color-focus);border-color:var(--zn-input-border-color-focus)}.input--standard.input--focused:not(.input--disabled):not(.input--x-small){box-shadow:0 0 0 var(--zn-focus-ring-width) var(--zn-input-focus-ring-color)}.input--standard.input--focused:not(.input--disabled).input--x-small{box-shadow:0 0 0 var(--zn-focus-ring-width-x-small) var(--zn-input-focus-ring-color)}.input--standard.input--focused:not(.input--disabled) .input__control{color:var(--zn-input-color-focus)}.input--standard.input--disabled{background-color:var(--zn-input-background-color-disabled);border-color:var(--zn-input-border-color-disabled);opacity:0.5;cursor:not-allowed}.input--standard.input--filled{background-color:rgba(var(--zn-panel),var(--zn-panel-opacity))}.input--standard.input--disabled .input__control{color:var(--zn-input-color-disabled)}.input--standard.input--disabled .input__control::-moz-placeholder{color:var(--zn-input-placeholder-color-disabled)}.input--standard.input--disabled .input__control::placeholder{color:var(--zn-input-placeholder-color-disabled)}.input__control{flex:1 1 auto;font-family:inherit;font-size:inherit;font-weight:inherit;min-width:0;height:100%;color:var(--zn-input-color);border:none;background:inherit;box-shadow:none;padding:0;margin:0;cursor:inherit;-webkit-appearance:none;line-height:var(--zn-input-line-height)}input[type=text].input__control[data-color-input]{font-family:var(--zn-font-mono,"SFMono-Regular","Consolas","Liberation Mono","Menlo",monospace);font-size:0.9em}.input__control::-webkit-search-decoration,.input__control::-webkit-search-cancel-button,.input__control::-webkit-search-results-button,.input__control::-webkit-search-results-decoration{-webkit-appearance:none}.input__control:-webkit-autofill,.input__control:-webkit-autofill:hover,.input__control:-webkit-autofill:focus,.input__control:-webkit-autofill:active{box-shadow:0 0 0 var(--zn-input-height-large) var(--zn-input-background-color) inset !important;-webkit-text-fill-color:var(--zn-input-color);caret-color:var(--zn-input-color)}.input__control::-moz-placeholder{color:var(--zn-input-placeholder-color);-moz-user-select:none;user-select:none;-webkit-user-select:none}.input__control::placeholder{color:var(--zn-input-placeholder-color);-moz-user-select:none;user-select:none;-webkit-user-select:none}.input:hover:not(.input--disabled) .input__control{color:var(--zn-input-color-hover)}.input__control:focus{outline:none}.input__prefix,.input__suffix{display:inline-flex;flex:0 0 auto;align-items:center;align-self:stretch;height:100%;cursor:default;color:var(--zn-input-icon-color);font-size:var(--zn-font-size-small)}.input__prefix zn-icon,.input__suffix zn-icon{--icon-size:var(--zn-font-size-x-large);color:var(--zn-input-icon-color);font-size:var(--zn-font-size-small)}.input__prefix ::slotted(zn-icon),.input__suffix ::slotted(zn-icon){--icon-size:var(--zn-font-size-medium);font-size:var(--zn-font-size-medium);color:var(--zn-input-icon-color)}.input--x-small{border-radius:var(--zn-input-border-radius-x-small);font-size:var(--zn-input-font-size-small);height:var(--zn-input-height-x-small)}.input--x-small .input__control{height:calc(var(--zn-input-height-x-small) - var(--zn-input-border-width) * 2);padding:0 var(--zn-input-spacing-small) 0 var(--zn-spacing-small)}.input--x-small .input__clear,.input--x-small .input__password-toggle{width:calc(1em + var(--zn-input-spacing-x-small) * 2)}.input--x-small .input__prefix ::slotted(*),.input__prefix-default{margin-inline-start:var(--zn-spacing-x-small)}.input--x-small .input__suffix ::slotted(*),.input__suffix-default{margin-inline-end:var(--zn-input-spacing-x-small)}.input--x-small .input__suffix ::slotted(zn-button),.input--x-small .input__prefix ::slotted(zn-button),.input--x-small .input__suffix ::slotted(zn-checkbox),.input--x-small .input__prefix ::slotted(zn-checkbox){margin-inline-end:0;margin-inline-start:0}.input--small{border-radius:var(--zn-input-border-radius-small);font-size:var(--zn-input-font-size-small);height:var(--zn-input-height-small)}.input--small .input__control{height:calc(var(--zn-input-height-small) - var(--zn-input-border-width) * 2);padding:0 var(--zn-input-spacing-small) 0 var(--zn-spacing-small)}.input--small .input__clear,.input--small .input__password-toggle{width:calc(1em + var(--zn-input-spacing-small) * 2)}.input--small .input__prefix ::slotted(*),.input__prefix-default{margin-inline-start:var(--zn-input-spacing-small)}.input--small .input__suffix ::slotted(*),.input__suffix-default{margin-inline-end:var(--zn-input-spacing-small)}.input--small .input__suffix ::slotted(zn-button),.input--small .input__prefix ::slotted(zn-button),.input--small .input__suffix ::slotted(zn-checkbox),.input--small .input__prefix ::slotted(zn-checkbox){margin-inline-end:0;margin-inline-start:0}.input--medium{border-radius:var(--zn-input-border-radius-medium);font-size:var(--zn-input-font-size-medium);height:var(--zn-input-height-medium)}.input--medium .input__control{height:calc(var(--zn-input-height-medium) - var(--zn-input-border-width) * 2);padding:0 var(--zn-input-spacing-small) 0 var(--zn-spacing-small)}.input--medium .input__clear,.input--medium .input__password-toggle{width:calc(1em + var(--zn-input-spacing-medium) * 2)}.input--medium .input__prefix ::slotted(*),.input__prefix-default{margin-inline-start:var(--zn-spacing-small)}.input--medium .input__suffix ::slotted(*),.input__suffix-default{margin-inline-end:var(--zn-spacing-small)}.input--medium .input__suffix ::slotted(zn-button),.input--medium .input__prefix ::slotted(zn-button),.input--medium .input__suffix ::slotted(zn-checkbox),.input--medium .input__prefix ::slotted(zn-checkbox){margin-inline-end:0;margin-inline-start:0}.input__suffix ::slotted(zn-button),.input__prefix ::slotted(zn-button){--zn-button-border-color:rgb(var(--zn-color-border));--zn-button-border-width:0}.input__suffix ::slotted(zn-button){--zn-button-border-left-width:1px}.input__prefix ::slotted(zn-button){--zn-button-border-right-width:1px}.input--large{border-radius:var(--zn-input-border-radius-large);font-size:var(--zn-input-font-size-large);height:var(--zn-input-height-large)}.input--large .input__control{height:calc(var(--zn-input-height-large) - var(--zn-input-border-width) * 2);padding:0 var(--zn-input-spacing-medium) 0 var(--zn-spacing-small)}.input--large .input__clear,.input--large .input__password-toggle{width:calc(1em + var(--zn-input-spacing-large) * 2)}.input--large .input__suffix ::slotted(zn-button),.input--large .input__prefix ::slotted(zn-button),.input--large .input__suffix ::slotted(zn-checkbox),.input--large .input__prefix ::slotted(zn-checkbox){margin-inline-end:0;margin-inline-start:0}.input--pill.input--x-small{border-radius:var(--zn-input-height-small);padding:0 var(--zn-spacing-x-small)}.input--pill.input--small{border-radius:var(--zn-input-height-small);padding:0 var(--zn-spacing-x-small)}.input--pill.input--medium{border-radius:var(--zn-input-height-medium);padding:0 var(--zn-spacing-x-small)}.input--pill.input--large{border-radius:var(--zn-input-height-large);padding:0 var(--zn-spacing-x-small)}.input__clear:not(.input__clear--visible){visibility:hidden}.input__clear,.input__password-toggle{display:inline-flex;align-items:center;justify-content:center;font-size:var(--zn-font-size-large);color:var(--zn-input-icon-color);border:none;background:none;padding:0;transition:var(--zn-transition-fast) color;cursor:pointer}.input__clear zn-icon,.input__password-toggle zn-icon{--icon-size:var(--zn-font-size-large)}.input__clear:hover,.input__password-toggle:hover{color:var(--zn-input-icon-color-hover)}.input__clear:focus,.input__password-toggle:focus{outline:none}.input--empty .input__clear{visibility:hidden}::-ms-reveal{display:none}.input--no-spin-buttons input[type=number]::-webkit-outer-spin-button,.input--no-spin-buttons input[type=number]::-webkit-inner-spin-button{-webkit-appearance:none;display:none}.input--no-spin-buttons input[type=number]{-moz-appearance:textfield}input[type=date]::-webkit-calendar-picker-indicator{background-image:url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" height="14" width="12.25" viewBox="0 0 448 512"><path fill="%236d7176" d="M128 0c13.3 0 24 10.7 24 24V64H296V24c0-13.3 10.7-24 24-24s24 10.7 24 24V64h40c35.3 0 64 28.7 64 64v16 48V448c0 35.3-28.7 64-64 64H64c-35.3 0-64-28.7-64-64V192 144 128C0 92.7 28.7 64 64 64h40V24c0-13.3 10.7-24 24-24zM400 192H48V448c0 8.8 7.2 16 16 16H384c8.8 0 16-7.2 16-16V192zM112 256h96c8.8 0 16 7.2 16 16v96c0 8.8-7.2 16-16 16H112c-8.8 0-16-7.2-16-16V272c0-8.8 7.2-16 16-16z"/></svg>')}.input__color-swatch{display:inline-flex;align-self:stretch;border:none;border-inline-start:solid var(--zn-input-border-width) var(--zn-input-border-color);border-radius:0;background-color:var(--zn-color-neutral-0);cursor:pointer;overflow:hidden;position:relative;flex-shrink:0;margin:0}.input__color-swatch:hover .input__color-swatch-inner{filter:brightness(0.95)}.input__color-swatch-inner{width:100%;height:100%;background-color:var(--color-value,#000000);transition:var(--zn-transition-fast) filter}.input--x-small .input__color-swatch{width:calc(var(--zn-input-height-x-small) * 1.2)}.input--small .input__color-swatch{width:calc(var(--zn-input-height-small) * 1.2)}.input--medium .input__color-swatch{width:calc(var(--zn-input-height-medium) * 1.2)}.input--large .input__color-swatch{width:calc(var(--zn-input-height-large) * 1.2)}:host([type=range]) .form-control--has-label .form-control__label,:host([type=range]) .form-control__label-context-note{margin-bottom:0}:host([type=range]) .form-control-input{margin-top:0}.input--standard.input--range{--zn-range-track-height:6px;--zn-range-track-color:var(--zn-color-neutral-200);--zn-range-thumb-size:18px;--zn-range-thumb-color:var(--zn-color-primary-600);--zn-range-thumb-ring-width:4px;align-items:center;height:var(--zn-range-thumb-size);padding:0;overflow:visible;cursor:pointer}.input--standard.input--range,.input--standard.input--range:hover,.input--standard.input--range.input--focused,.input--standard.input--range.input--disabled{border:none;background:none;box-shadow:none}.input--standard.input--range.input--x-small{--zn-range-track-height:4px;--zn-range-thumb-size:14px;--zn-range-thumb-ring-width:3px}.input--standard.input--range.input--small{--zn-range-track-height:5px;--zn-range-thumb-size:16px;--zn-range-thumb-ring-width:3px}.input--standard.input--range.input--large{--zn-range-track-height:7px;--zn-range-thumb-size:20px}.input--range .input__control{-webkit-appearance:none;-moz-appearance:none;appearance:none;height:var(--zn-range-thumb-size);padding:0;margin:0;background:none;cursor:inherit}.input--range .input__control::-webkit-slider-runnable-track{height:var(--zn-range-track-height);border-radius:calc(var(--zn-range-track-height) / 2);background-color:var(--zn-range-track-color)}.input--range .input__control::-moz-range-track{height:var(--zn-range-track-height);border-radius:calc(var(--zn-range-track-height) / 2);background-color:var(--zn-range-track-color)}.input--range .input__control::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;width:var(--zn-range-thumb-size);height:var(--zn-range-thumb-size);margin-top:calc((var(--zn-range-track-height) - var(--zn-range-thumb-size)) / 2);border:var(--zn-range-thumb-ring-width) solid var(--zn-color-neutral-0);border-radius:50%;background-color:var(--zn-range-thumb-color);box-shadow:0 0 0 1px var(--zn-input-border-color);-webkit-transition:var(--zn-transition-fast) box-shadow,var(--zn-transition-fast) background-color;transition:var(--zn-transition-fast) box-shadow,var(--zn-transition-fast) background-color}.input--range .input__control::-moz-range-thumb{width:var(--zn-range-thumb-size);height:var(--zn-range-thumb-size);box-sizing:border-box;border:var(--zn-range-thumb-ring-width) solid var(--zn-color-neutral-0);border-radius:50%;background-color:var(--zn-range-thumb-color);box-shadow:0 0 0 1px var(--zn-input-border-color);-moz-transition:var(--zn-transition-fast) box-shadow,var(--zn-transition-fast) background-color;transition:var(--zn-transition-fast) box-shadow,var(--zn-transition-fast) background-color}.input--range:hover:not(.input--disabled) .input__control::-webkit-slider-thumb{background-color:var(--zn-color-primary-500);box-shadow:0 0 0 1px var(--zn-input-border-color-hover)}.input--range:hover:not(.input--disabled) .input__control::-moz-range-thumb{background-color:var(--zn-color-primary-500);box-shadow:0 0 0 1px var(--zn-input-border-color-hover)}.input--range .input__control:focus-visible::-webkit-slider-thumb{box-shadow:0 0 0 var(--zn-focus-ring-width) var(--zn-input-focus-ring-color)}.input--range .input__control:focus-visible::-moz-range-thumb{box-shadow:0 0 0 var(--zn-focus-ring-width) var(--zn-input-focus-ring-color)}.input__color-picker{position:absolute;opacity:0;width:0;height:0;padding:0;margin:0;pointer-events:none;border:none;visibility:hidden}`;var ee=class extends S{constructor(){super(...arguments);this.formControlController=new re(this,{assumeInteractionOn:["zn-blur","zn-input"]});this.hasSlotController=new Y(this,"help-text","label","label-tooltip");this.localize=new Ft(this);this.slashController=new ko(this,{menu:()=>this.mountSlashMenu(),items:t=>this.resolveSlashItems(t),trigger:()=>this.slashTrigger,onSelect:(t,r)=>!this.emit("zn-slash-select",{detail:{item:t,query:r}}).defaultPrevented,onInsert:(t,r)=>this.emit("zn-slash-insert",{detail:{item:t,value:r}})});this.hasFocus=!1;this.hasSlashMenu=!1;this.isUserTyping=!1;this.title="";this.__numberInput=Object.assign(document.createElement("input"),{type:"number"});this.__dateInput=Object.assign(document.createElement("input"),{type:"date"});this.type="text";this.name="";this.value="";this.defaultValue="";this.size="medium";this.pill=!1;this.label="";this.labelTooltip="";this.contextNote="";this.helpText="";this.clearable=!1;this.optionalIcon=!1;this.disabled=!1;this.filled=!1;this.placeholder="";this.readonly=!1;this.passwordToggle=!1;this.passwordVisible=!1;this.noSpinButtons=!1;this.colorFormat="hex";this.valueSuffix="";this.required=!1;this.spellcheck=!0;this.slashItems=[];this.slashPreset="";this.slashTrigger="/";this.slashHeading="Insert";this.slashHideKeys=!1;this.slashRecentKey="";this.triggerSubmit=!1}get valueAsDate(){return this.__dateInput.type=this.type,this.__dateInput.value=this.value,this.input?.valueAsDate||this.__dateInput.valueAsDate}set valueAsDate(t){this.__dateInput.type=this.type,this.__dateInput.valueAsDate=t,this.value=this.__dateInput.value}get valueAsNumber(){return this.__numberInput.value=this.value,this.input?.valueAsNumber||this.__numberInput.valueAsNumber}set valueAsNumber(t){this.__numberInput.valueAsNumber=t,this.value=this.__numberInput.value}get validity(){return this.input?.validity}get validationMessage(){return this.input.validationMessage}validateMinMax(){this.type!=="number"&&this.type!=="date"||(typeof this.min<"u"&&parseInt(this.value)<parseInt(this.min)&&(this.value=this.min.toString()),typeof this.max<"u"&&parseInt(this.value)>parseInt(this.max)&&(this.value=this.max.toString()))}hexToRgb(t){let r=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);if(!r)return"";let n=parseInt(r[1],16),a=parseInt(r[2],16),s=parseInt(r[3],16);return`rgb(${n}, ${a}, ${s})`}rgbToHex(t){let r=t.match(/^rgb\((\d+),\s*(\d+),\s*(\d+)\)$/);if(!r)return"";let n=parseInt(r[1]).toString(16).padStart(2,"0"),a=parseInt(r[2]).toString(16).padStart(2,"0"),s=parseInt(r[3]).toString(16).padStart(2,"0");return`#${n}${a}${s}`}hexToOklch(t){let r=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);if(!r)return"";let n=parseInt(r[1],16)/255,a=parseInt(r[2],16)/255,s=parseInt(r[3],16)/255;n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92,a=a>.04045?Math.pow((a+.055)/1.055,2.4):a/12.92,s=s>.04045?Math.pow((s+.055)/1.055,2.4):s/12.92;let l=n*.4124564+a*.3575761+s*.1804375,d=n*.2126729+a*.7151522+s*.072175,h=n*.0193339+a*.119192+s*.9503041,m=l/.95047,f=d/1,b=h/1.08883,g=m>.008856?Math.pow(m,1/3):7.787*m+16/116,v=f>.008856?Math.pow(f,1/3):7.787*f+16/116,y=b>.008856?Math.pow(b,1/3):7.787*b+16/116,z=116*v-16,E=500*(g-v),N=200*(v-y),U=Math.sqrt(E*E+N*N),R=Math.atan2(N,E)*180/Math.PI;R<0&&(R+=360);let C=(z/100).toFixed(3),$=(U/150).toFixed(3),L=R.toFixed(1);return`oklch(${C} ${$} ${L})`}oklchToHex(t){let r=t.match(/^oklch\(([0-9.]+)\s+([0-9.]+)\s+([0-9.]+)\)$/);if(!r)return"";let n=parseFloat(r[1])*100,a=parseFloat(r[2])*150,s=parseFloat(r[3]),l=a*Math.cos(s*Math.PI/180),d=a*Math.sin(s*Math.PI/180),h=(n+16)/116,m=l/500+h,f=h-d/200,b=m>.206897?Math.pow(m,3):(m-16/116)/7.787,g=h>.206897?Math.pow(h,3):(h-16/116)/7.787,v=f>.206897?Math.pow(f,3):(f-16/116)/7.787,y=b*.95047,z=g*1,E=v*1.08883,N=y*3.2404542+z*-1.5371385+E*-.4985314,U=y*-.969266+z*1.8760108+E*.041556,R=y*.0556434+z*-.2040259+E*1.0572252;N=N>.0031308?1.055*Math.pow(N,1/2.4)-.055:12.92*N,U=U>.0031308?1.055*Math.pow(U,1/2.4)-.055:12.92*U,R=R>.0031308?1.055*Math.pow(R,1/2.4)-.055:12.92*R,N=Math.max(0,Math.min(1,N)),U=Math.max(0,Math.min(1,U)),R=Math.max(0,Math.min(1,R));let C=Math.round(N*255).toString(16).padStart(2,"0"),$=Math.round(U*255).toString(16).padStart(2,"0"),L=Math.round(R*255).toString(16).padStart(2,"0");return`#${C}${$}${L}`}hexToHsl(t){let r=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);if(!r)return"";let n=parseInt(r[1],16)/255,a=parseInt(r[2],16)/255,s=parseInt(r[3],16)/255,l=Math.max(n,a,s),d=Math.min(n,a,s),h=(l+d)/2,m=0,f=0;if(l!==d){let b=l-d;switch(f=h>.5?b/(2-l-d):b/(l+d),l){case n:m=((a-s)/b+(a<s?6:0))/6;break;case a:m=((s-n)/b+2)/6;break;case s:m=((n-a)/b+4)/6;break}}return`hsl(${Math.round(m*360)}, ${Math.round(f*100)}%, ${Math.round(h*100)}%)`}hslToHex(t){let r=t.match(/^hsl\(\s*(\d+)\s*,\s*(\d+)%\s*,\s*(\d+)%\s*\)$/);if(!r)return"";let n=parseInt(r[1])/360,a=parseInt(r[2])/100,s=parseInt(r[3])/100,l,d,h;if(a===0)l=s,d=s,h=s;else{let g=(z,E,N)=>(N<0&&(N+=1),N>1&&(N-=1),N<.16666666666666666?z+(E-z)*6*N:N<.5?E:N<.6666666666666666?z+(E-z)*(.6666666666666666-N)*6:z),v=s<.5?s*(1+a):s+a-s*a,y=2*s-v;l=g(y,v,n+1/3),d=g(y,v,n),h=g(y,v,n-1/3)}let m=Math.round(l*255).toString(16).padStart(2,"0"),f=Math.round(d*255).toString(16).padStart(2,"0"),b=Math.round(h*255).toString(16).padStart(2,"0");return`#${m}${f}${b}`}convertToHex(t){return t?t.startsWith("#")?t:t.startsWith("rgb")?this.rgbToHex(t):t.startsWith("hsl")?this.hslToHex(t):t.startsWith("oklch")?this.oklchToHex(t):t:"#000000"}convertFromHex(t){return t?this.colorFormat==="hex"?t:this.colorFormat==="rgb"?this.hexToRgb(t):this.colorFormat==="hsl"?this.hexToHsl(t):this.colorFormat==="oklch"?this.hexToOklch(t):t:""}handleBlur(){if(this.hasFocus=!1,this.isUserTyping=!1,this.validateMinMax(),this.type==="color"&&this.value){let t=this.convertToHex(this.value);if(t){let r=this.convertFromHex(t);r!==this.value&&(this.value=r)}}this.emit("zn-blur")}handleChange(){if(this.type==="currency"&&this.input.value)this.value=parseFloat(this.input.value).toFixed(2);else if(this.type==="color"){let t=this.input.value.trim();if(t==="")this.value="";else if(this.colorFormat==="hex"){let r=t;r&&!r.startsWith("#")&&(r="#"+r),/^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/.test(r)&&(this.value=r.toLowerCase())}else this.colorFormat==="rgb"?/^rgb\(\s*\d+\s*,\s*\d+\s*,\s*\d+\s*\)$/.test(t)&&(this.value=t):this.colorFormat==="hsl"?/^hsl\(\s*\d+\s*,\s*\d+%\s*,\s*\d+%\s*\)$/.test(t)&&(this.value=t):this.colorFormat==="oklch"&&/^oklch\(\s*[0-9.]+\s+[0-9.]+\s+[0-9.]+\s*\)$/.test(t)&&(this.value=t)}else this.value=this.input.value;this.emit("zn-change")}handleClearClick(t){this.value="",this.emit("zn-clear"),this.emit("zn-input"),this.emit("zn-change"),this.input.focus(),t.stopPropagation()}handleFocus(){this.hasFocus=!0,this.emit("zn-focus")}handleInput(){this.isUserTyping=!0,this.type==="color"?this.value=this.input.value:this.value=this.input.value,this.formControlController.updateValidity(),this.emit("zn-input")}handleInvalid(t){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(t)}handleKeyDown(t){if(this.slashController.open)return;if(t.key==="Escape"){this.input.blur(),t.stopPropagation();return}let r=t.altKey||t.ctrlKey||t.metaKey||t.shiftKey;if(t.key==="Enter"&&!r&&!t.defaultPrevented&&!t.isComposing){let n=this.formControlController.getForm();if(!this.triggerSubmit&&(n?.hasAttribute("enter-navigation")||n?.hasAttribute("data-enter-navigation")))return;this.formControlController.submit()}}handlePasswordToggle(){this.passwordVisible=!this.passwordVisible}handleColorSwatchClick(){this.type==="color"&&this.colorPicker&&this.colorPicker.click()}handleColorPickerChange(){if(this.type==="color"&&this.colorPicker){let t=this.colorPicker.value;this.value=this.convertFromHex(t),this.emit("zn-change"),this.emit("zn-input")}}focusInput(t){if(this.hasFocus)return;let r=t.target;r.tagName==="ZN-CHECKBOX"&&(r.slot==="prefix"||r.closest('[slot="prefix"]'))||(r.classList.contains("input__prefix")||r.slot==="prefix"||r.hasAttribute("part")&&r.getAttribute("part")==="base")&&(this.handleFocus(),this.input.focus())}firstUpdated(){this.type==="range"&&this.value===""&&(this.value=this.input.value),this.slashController.attach(this.input)}async resolveSlashItems(t=""){let r=[...Wd(this.slashPreset),...this.slashItems,...this.slottedSlashItems()],n=await this.slashItemsProvider?.(t);return n?[...r,...n]:r}async showSlashMenu(){this.focus();let t=this.input.selectionStart??this.input.value.length;this.input.value.slice(t-this.slashTrigger.length,t)!==this.slashTrigger&&this.setRangeText(this.slashTrigger,t,t,"end"),await this.updateComplete,this.slashController.requestOpen()}hideSlashMenu(){this.slashController.close()}slottedSlashItems(){return[...this.querySelectorAll("zn-slash-item")].map(r=>{if(typeof r.toSlashMenuItem=="function")return r.toSlashMenuItem();let n=r.getAttribute("value")??(r.textContent??"").trim(),a=r.getAttribute("order"),s=r.getAttribute("caret-offset");return{label:r.getAttribute("label")??n,value:n,icon:r.getAttribute("icon")??void 0,description:r.getAttribute("description")??void 0,keywords:r.getAttribute("keywords")??void 0,group:r.getAttribute("group")??void 0,action:r.getAttribute("action")??void 0,order:a===null?void 0:Number(a),caretOffset:s===null?void 0:Number(s),disabled:r.hasAttribute("disabled")}})}async mountSlashMenu(){let t=this.querySelector("zn-slash-menu");return t||(this.hasSlashMenu||(this.hasSlashMenu=!0,await this.updateComplete),this.slashMenuElement)}handleDisabledChange(){this.formControlController.setValidity(this.disabled)}handleStepChange(){this.input.step=String(this.step),this.formControlController.updateValidity()}async handleValueChange(){if(await this.updateComplete,this.type==="color"&&this.value&&!this.isUserTyping){let t=this.convertToHex(this.value);if(t){let r=this.convertFromHex(t);if(r!==this.value){this.value=r,this.emit("zn-change");return}}}this.formControlController.updateValidity(),this.type==="color"&&this.colorPicker&&(this.colorPicker.value=this.convertToHex(this.value)||"#000000")}handleColorFormatChange(){if(this.type==="color"&&this.value){let t=this.convertToHex(this.value);if(t){let r=this.convertFromHex(t);r!==this.value&&(this.value=r,this.emit("zn-change"))}}}focus(t){this.input.focus(t)}blur(){this.input.blur()}select(){this.input.select()}setSelectionRange(t,r,n="none"){this.input.setSelectionRange(t,r,n)}setRangeText(t,r,n,a="preserve"){let s=r??this.input.selectionStart,l=n??this.input.selectionEnd;this.input.setRangeText(t,s,l,a),this.value!==this.input.value&&(this.value=this.input.value)}showPicker(){"showPicker"in HTMLInputElement.prototype&&this.input.showPicker()}stepUp(){this.input.stepUp(),this.value!==this.input.value&&(this.value=this.input.value)}stepDown(){this.input.stepDown(),this.value!==this.input.value&&(this.value=this.input.value)}checkValidity(){return this.input.checkValidity()}getForm(){return this.formControlController.getForm()}reportValidity(){return this.input.reportValidity()}setCustomValidity(t){this.input.setCustomValidity(t),this.formControlController.updateValidity()}render(){let t=this.hasSlotController.test("label"),r=this.hasSlotController.test("label-tooltip"),n=this.hasSlotController.test("context-note"),a=this.hasSlotController.test("help-text"),s=this.type==="range",l=this.label?!0:t,d=this.labelTooltip?!0:r,h=this.contextNote||s?!0:n,m=this.helpText?!0:a,f=this.clearable&&!this.disabled&&!this.readonly,b=this.optionalIcon,g=f&&(typeof this.value=="number"||this.value.length>0);return u`
431
+ </div>`}};tt.styles=_(C0),tt.dependencies={"zn-icon":oe},c([B(".slash-menu__panel")],tt.prototype,"panel",2),c([B(".slash-menu__list")],tt.prototype,"list",2),c([p({type:Boolean,reflect:!0})],tt.prototype,"open",2),c([p({type:Array})],tt.prototype,"items",2),c([p()],tt.prototype,"query",2),c([p()],tt.prototype,"heading",2),c([p({attribute:"empty-text"})],tt.prototype,"emptyText",2),c([p({attribute:"max-items",type:Number})],tt.prototype,"maxItems",2),c([p({attribute:"hide-keys",type:Boolean})],tt.prototype,"hideKeys",2),c([p({attribute:"hide-hints",type:Boolean})],tt.prototype,"hideHints",2),c([p({attribute:"recent-key"})],tt.prototype,"recentKey",2),c([p({attribute:"max-recent",type:Number})],tt.prototype,"maxRecent",2),c([p({attribute:"recent-heading"})],tt.prototype,"recentHeading",2),c([p({attribute:!1})],tt.prototype,"anchor",2),c([p()],tt.prototype,"placement",2),c([p({type:Number})],tt.prototype,"distance",2),c([I()],tt.prototype,"activeIndex",2),c([I()],tt.prototype,"recentKeys",2);var Q4=["direction","boxSizing","width","height","overflowX","overflowY","borderTopWidth","borderRightWidth","borderBottomWidth","borderLeftWidth","borderStyle","paddingTop","paddingRight","paddingBottom","paddingLeft","fontStyle","fontVariant","fontWeight","fontStretch","fontSize","fontSizeAdjust","lineHeight","fontFamily","textAlign","textTransform","textIndent","textDecoration","letterSpacing","wordSpacing","tabSize"];function X4(o){let i=parseFloat(o.lineHeight);if(!Number.isNaN(i))return i;let t=parseFloat(o.fontSize);return Number.isNaN(t)?16:t*1.2}function Qu(o,i){let t=o.ownerDocument,r=getComputedStyle(o),n=o.nodeName==="INPUT",a=t.createElement("div"),s=a.style,l=r;s.position="absolute",s.visibility="hidden",s.top="0",s.left="-9999px",s.whiteSpace=n?"pre":"pre-wrap",s.overflow="hidden",n||(s.wordWrap="break-word"),Q4.forEach(f=>{let b=l[f];typeof b=="string"&&(s[f]=b)}),n&&(s.height="auto");let d=o.value.slice(0,i);a.textContent=n?d.replace(/\s/g,"\xA0"):d;let h=t.createElement("span");h.textContent=o.value.slice(i)||".",a.appendChild(h),t.body.appendChild(a);let m={top:h.offsetTop+(parseFloat(r.borderTopWidth)||0),left:h.offsetLeft+(parseFloat(r.borderLeftWidth)||0),height:X4(r)};return a.remove(),m}function Xu(o,{top:i,left:t,height:r}){let n=o.getBoundingClientRect(),a=Math.max(n.top,n.bottom-r),s=Math.min(Math.max(n.top+i-o.scrollTop,n.top),a),l=Math.min(Math.max(n.left+t-o.scrollLeft,n.left),n.right);return new DOMRect(l,s,1,r)}function mU(o,i){return Xu(o,Qu(o,i))}var J4=40,ko=class{constructor(i,t){this.caretAnchor={getBoundingClientRect:()=>this.caretRect()};this.field=null;this.menu=null;this.triggerIndex=-1;this.query="";this.dismissedIndex=-1;this.resolveToken=0;this.inserting=!1;this.isOpen=!1;this.listening=!1;this.handleInput=()=>this.detect();this.handleCaretMove=()=>this.detect();this.handleKeyUp=i=>{this.isOpen&&(i.key==="ArrowDown"||i.key==="ArrowUp")||(i.key.startsWith("Arrow")||i.key==="Home"||i.key==="End")&&this.detect()};this.handleBlur=()=>this.close();this.handleScroll=()=>{this.isOpen&&this.menu?.reposition()};this.handleKeyDown=i=>{if(!this.isOpen||i.isComposing)return;let t=()=>{i.preventDefault(),i.stopPropagation()};switch(i.key){case"Escape":t(),this.dismissedIndex=this.triggerIndex,this.close();return;case"ArrowDown":t(),this.menu?.moveActive(1);return;case"ArrowUp":t(),this.menu?.moveActive(-1);return;case"Enter":case"Tab":{if(i.shiftKey||i.metaKey||i.ctrlKey||i.altKey)return;let r=this.menu?.activeItem;if(!r){this.close();return}t(),this.select(r)}}};this.handleItemSelect=i=>{let{item:t}=i.detail;t&&this.select(t)};this.host=i,this.options=t,i.addController(this)}get open(){return this.isOpen}hostConnected(){this.addListeners()}hostDisconnected(){this.removeListeners()}attach(i){this.field===i&&this.listening||(this.removeListeners(),this.field=i,this.caretAnchor.contextElement=i,this.addListeners())}detach(){this.removeListeners(),this.field=null}addListeners(){let i=this.field;!i||this.listening||(i.addEventListener("keydown",this.handleKeyDown,{capture:!0}),i.addEventListener("input",this.handleInput),i.addEventListener("keyup",this.handleKeyUp),i.addEventListener("click",this.handleCaretMove),i.addEventListener("blur",this.handleBlur),i.addEventListener("scroll",this.handleScroll),this.listening=!0)}removeListeners(){let i=this.field;!i||!this.listening||(this.close(),i.removeEventListener("keydown",this.handleKeyDown,{capture:!0}),i.removeEventListener("input",this.handleInput),i.removeEventListener("keyup",this.handleKeyUp),i.removeEventListener("click",this.handleCaretMove),i.removeEventListener("blur",this.handleBlur),i.removeEventListener("scroll",this.handleScroll),this.listening=!1)}close(){this.resolveToken++,this.triggerIndex=-1,this.query="",this.isOpen&&(this.isOpen=!1,this.menu?.hide(),this.field?.setAttribute("aria-expanded","false"))}requestOpen(){this.dismissedIndex=-1,this.detect()}caretRect(){let i=this.field;if(!i)return new DOMRect;let t=this.triggerIndex>=0?this.triggerIndex:i.selectionStart??0,r=i.clientWidth,n=this.measured;return(!n||n.index!==t||n.width!==r||n.value!==i.value)&&(this.measured={value:i.value,index:t,width:r,coordinates:Qu(i,t)}),Xu(i,this.measured.coordinates)}detect(){if(this.inserting)return;let i=this.field;if(!i||i.disabled||i.readOnly){this.close();return}let t=this.options.trigger?.()||"/",r=i.selectionStart;if(!t||r===null||i.selectionEnd!==r){this.close();return}let n=i.value,a=n.lastIndexOf(t,Math.max(0,r-t.length));if(a===-1||a+t.length>r){this.close();return}let s=a>0?n.charAt(a-1):"";if(s!==""&&!/\s/.test(s)){this.close();return}let l=n.slice(a+t.length,r);if(l.length>J4||/[\r\n]/.test(l)){this.close();return}if(a===this.dismissedIndex){this.close();return}this.triggerIndex=a,this.query=l,this.resolve(l)}async resolve(i){let t=++this.resolveToken,r=[];try{r=await this.options.items(i)}catch(s){console.warn("slash menu items could not be resolved",s)}if(t!==this.resolveToken)return;let n=Yd(r,i);if(!n.length){this.close();return}let a=await this.options.menu();!a||t!==this.resolveToken||(a!==this.menu&&(this.menu?.removeEventListener(fs,this.handleItemSelect),a.addEventListener(fs,this.handleItemSelect),this.menu=a),a.anchor=this.caretAnchor,a.query=i,a.items=n,this.isOpen||(this.isOpen=!0,this.dismissedIndex=-1,a.show(),this.field?.setAttribute("aria-expanded","true"),this.field?.setAttribute("aria-haspopup","listbox")),await a.updateComplete,this.isOpen&&a.reposition())}select(i){let t=this.field,r=this.triggerIndex,n=t?.selectionStart??r,a=this.query,s=this.options.trigger?.()||"/";if(i.disabled||(this.close(),!t||r<0))return;let l=this.options.onSelect?.(i,a)===!1,d=l?"":i.value??"";t.value.slice(r,n)===s+a&&(this.replace(t,r,n,d,i),!l&&d&&this.options.onInsert?.(i,d))}replace(i,t,r,n,a){this.inserting=!0;try{i.focus({preventScroll:!0}),i.setSelectionRange(t,r);let s=!1;try{s=i.ownerDocument.execCommand("insertText",!1,n)}catch{s=!1}s||(i.setRangeText(n,t,r,"end"),i.dispatchEvent(new Event("input",{bubbles:!0,composed:!0})));let l=Math.min(Math.max(a.caretOffset??n.length,0),n.length);i.setSelectionRange(t+l,t+l)}finally{this.inserting=!1}this.host.requestUpdate()}};var Ea=tt;tt.define("zn-slash-menu");var or=yt(class extends rr{constructor(o){if(super(o),o.type!==cr.PROPERTY&&o.type!==cr.ATTRIBUTE&&o.type!==cr.BOOLEAN_ATTRIBUTE)throw Error("The `live` directive is not allowed on child or event bindings");if(!$d(o))throw Error("`live` bindings can only contain a single expression")}render(o){return o}update(o,[i]){if(i===vt||i===F)return i;let t=o.element,r=o.name;if(o.type===cr.PROPERTY){if(i===t[r])return vt}else if(o.type===cr.BOOLEAN_ATTRIBUTE){if(!!i===t.hasAttribute(r))return vt}else if(o.type===cr.ATTRIBUTE&&t.getAttribute(r)===i+"")return vt;return ss(o),i}});var Ju=new Set,gs=new Map,Gn,Zu="ltr",em="en",E0=typeof MutationObserver<"u"&&typeof document<"u"&&typeof document.documentElement<"u";if(E0){let o=new MutationObserver(T0);Zu=document.documentElement.dir||"ltr",em=document.documentElement.lang||navigator.language,o.observe(document.documentElement,{attributes:!0,attributeFilter:["dir","lang"]})}function Wl(...o){o.map(i=>{let t=i.$code.toLowerCase();gs.has(t)?gs.set(t,Object.assign(Object.assign({},gs.get(t)),i)):gs.set(t,i),Gn||(Gn=i)}),T0()}function T0(){E0&&(Zu=document.documentElement.dir||"ltr",em=document.documentElement.lang||navigator.language),[...Ju.keys()].map(o=>{typeof o.requestUpdate=="function"&&o.requestUpdate()})}var Qd=class{constructor(i){this.host=i,this.host.addController(this)}hostConnected(){Ju.add(this.host)}hostDisconnected(){Ju.delete(this.host)}dir(){return`${this.host.dir||Zu}`.toLowerCase()}lang(){let i=`${this.host.lang||em}`.toLowerCase().replace(/_/g,"-");try{return new Intl.Locale(i),i}catch{return Gn?Gn.$code.toLowerCase():"en"}}getTranslationData(i){var t,r;let n;try{n=new Intl.Locale(i.replace(/_/g,"-"))}catch{return{locale:void 0,language:"",region:"",primary:void 0,secondary:void 0}}let a=n.language.toLowerCase(),s=(r=(t=n.region)===null||t===void 0?void 0:t.toLowerCase())!==null&&r!==void 0?r:"",l=gs.get(`${a}-${s}`),d=gs.get(a);return{locale:n,language:a,region:s,primary:l,secondary:d}}exists(i,t){var r;let{primary:n,secondary:a}=this.getTranslationData((r=t.lang)!==null&&r!==void 0?r:this.lang());return t=Object.assign({includeFallback:!1},t),!!(n&&n[i]||a&&a[i]||t.includeFallback&&Gn&&Gn[i])}term(i,...t){let{primary:r,secondary:n}=this.getTranslationData(this.lang()),a;if(r&&r[i])a=r[i];else if(n&&n[i])a=n[i];else if(Gn&&Gn[i])a=Gn[i];else return console.error(`No translation found for: ${String(i)}`),String(i);return typeof a=="function"?a(...t):a}date(i,t){return i=new Date(i),new Intl.DateTimeFormat(this.lang(),t).format(i)}number(i,t){return i=Number(i),isNaN(i)?"":new Intl.NumberFormat(this.lang(),t).format(i)}relativeTime(i,t,r){return new Intl.RelativeTimeFormat(this.lang(),r).format(i,t)}};var $0={$code:"en",$name:"English",$dir:"ltr",onChange:"onChange",showPassword:"Show password",hidePassword:"Hide password",clearEntry:"Clear entry",numOptionsSelected:o=>o===0?"No options selected":o===1?"1 option selected":`${o} options selected`,fileButtonText:"Choose a file",fileButtonTextMultiple:"Choose files",folderButtonText:"Choose a folder",fileDragDrop:"Drop files here to upload",folderDragDrop:"Drop folder here to upload",numFilesSelected:o=>o===0?"No files selected":o===1?"1 file selected":`${o} files selected`};Wl($0);var A0=$0;var Ft=class extends Qd{};Wl(A0);var L0=k`@keyframes rotate-gradient{from{--rotate:0deg}to{--rotate:360deg}}:host{text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-transform:none}*,*::before,*::after{box-sizing:border-box;border-width:0;border-style:solid;border-color:rgb(var(--zn-border-color))}[hidden]{display:none !important}.width-container,.form-container,.wide-form-container{height:100%;width:100%;margin:var(--zn-default-margin,0 auto)}.width-container{max-width:var(--zn-container)}.form-container{max-width:var(--zn-container-ph)}.wide-form-container{max-width:var(--zn-container-lg)}:host{display:none}`;var fr=class extends S{constructor(){super(...arguments);this.label="";this.disabled=!1}toSlashMenuItem(){return{label:this.label||this.insertValue,value:this.insertValue,icon:this.icon,description:this.description,keywords:this.keywords,group:this.group,order:this.order,action:this.action,caretOffset:this.caretOffset,disabled:this.disabled}}get insertValue(){return this.value??(this.textContent??"").trim()}render(){return u`
432
+ <slot></slot>`}};fr.styles=_(L0),c([p()],fr.prototype,"label",2),c([p()],fr.prototype,"value",2),c([p()],fr.prototype,"icon",2),c([p()],fr.prototype,"description",2),c([p()],fr.prototype,"keywords",2),c([p()],fr.prototype,"group",2),c([p({type:Number})],fr.prototype,"order",2),c([p({attribute:"caret-offset",type:Number})],fr.prototype,"caretOffset",2),c([p()],fr.prototype,"action",2),c([p({type:Boolean,reflect:!0})],fr.prototype,"disabled",2);var Yl=fr;fr.define("zn-slash-item");var $e=k`.form-control-input{margin:var(--zn-spacing-2x-small) 3px 3px 0}.form-control-input--flush{margin:0}.form-control .form-control__label{display:none}.form-control .form-control__help-text{display:none}.form-control--has-label .form-control__label{display:inline-block;color:var(--zn-input-label-color);font-weight:var(--zn-input-label-font-weight);line-height:var(--zn-input-label-line-height);margin-bottom:var(--zn-spacing-x-small)}.form-control--has-label.form-control--medium .form-control__label{font-size:var(--zn-input-label-font-size-medium)}.form-control--has-label.form-control--large .form-control__label{font-size:var(--zn-input-label-font-size-large)}:host([required]) .form-control--has-label .form-control__label::after{content:var(--zn-input-required-content);margin-inline-start:var(--zn-input-required-content-offset);color:var(--zn-input-required-content-color)}.form-control--has-label.form-control--radio-group .form-control__label,.form-control--has-label.form-control--checkbox-group .form-control__label{margin-bottom:0}.form-control--has-label.form-control--has-label-tooltip .form-control__label{display:inline-flex;align-items:center;gap:var(--zn-spacing-2x-small)}.form-control--has-label.form-control--small .form-control__label{font-size:var(--zn-input-label-font-size-small)}.form-control--label-tooltip{color:var(--zn-color-neutral-700);font-size:var(--zn-font-size-small)}.form-control--label-tooltip zn-icon{--icon-color:var(--zn-color-neutral-700);--icon-size:var(--zn-font-size-small)}.form-control--has-label.form-control--has-context-note{display:flex;justify-content:space-between;flex-wrap:wrap}.form-control__label-context-note{color:var(--zn-input-help-text-color);font-size:var(--zn-font-size-small);margin-bottom:var(--zn-spacing-2x-small)}.form-control--has-label.form-control--has-context-note .form-control-input{width:100%}.form-control--has-help-text .form-control__help-text,.radio--has-description .radio__description,.checkbox--has-description .checkbox__description{display:block;color:var(--zn-input-help-text-color);margin-top:var(--zn-spacing-x-small)}.radio--has-description .radio__description,.checkbox--has-description .checkbox__description{margin-top:0.375rem}.radio--has-selected-content .radio__selected-content,.checkbox--has-selected-content .checkbox__selected-content{display:block;margin-top:var(--zn-spacing-small)}.form-control--has-help-text.form-control--small .form-control__help-text{font-size:var(--zn-input-help-text-font-size-small)}.form-control--has-help-text.form-control--medium .form-control__help-text,.radio--has-description .radio__description,.checkbox--has-description .checkbox__description{font-size:var(--zn-input-help-text-font-size-medium)}.form-control--has-help-text.form-control--large .form-control__help-text{font-size:var(--zn-input-help-text-font-size-large)}.form-control--has-help-text.form-control--radio-group .form-control__help-text,.form-control--has-help-text.form-control--checkbox-group .form-control__help-text{margin-top:var(--zn-spacing-medium)}.form-control--has-help-text .switch .form-control__help-text{margin-top:var(--zn-spacing-3x-small)}.form-control--checkbox-contained-wrapper,.form-control--radio-contained-wrapper{height:100%}`;var M0=k`@charset "UTF-8";@keyframes rotate-gradient{from{--rotate:0deg}to{--rotate:360deg}}:host{text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-transform:none}*,*::before,*::after{box-sizing:border-box;border-width:0;border-style:solid;border-color:rgb(var(--zn-border-color))}[hidden]{display:none !important}.width-container,.form-container,.wide-form-container{height:100%;width:100%;margin:var(--zn-default-margin,0 auto)}.width-container{max-width:var(--zn-container)}.form-container{max-width:var(--zn-container-ph)}.wide-form-container{max-width:var(--zn-container-lg)}:host{display:block}.input{flex:1 1 auto;display:inline-flex;align-items:stretch;justify-content:start;position:relative;width:100%;font-family:var(--zn-input-font-family),sans-serif;font-weight:var(--zn-input-font-weight);letter-spacing:var(--zn-input-letter-spacing);vertical-align:middle;overflow:hidden;cursor:text;transition:var(--zn-transition-fast) color,var(--zn-transition-fast) border,var(--zn-transition-fast) background-color}.input--standard{background-color:var(--zn-input-background-color);border:solid var(--zn-input-border-width) var(--zn-input-border-color)}.input--standard:hover:not(.input--disabled,.input--filled){background-color:var(--zn-input-background-color-hover);border-color:var(--zn-input-border-color-hover)}.input--filled:hover:not(.input--disabled){background-color:var(--zn-color-neutral-50);border-color:var(--zn-input-border-color-hover)}.input--standard.input--focused:not(.input--disabled){background-color:var(--zn-input-background-color-focus);border-color:var(--zn-input-border-color-focus)}.input--standard.input--focused:not(.input--disabled):not(.input--x-small){box-shadow:0 0 0 var(--zn-focus-ring-width) var(--zn-input-focus-ring-color)}.input--standard.input--focused:not(.input--disabled).input--x-small{box-shadow:0 0 0 var(--zn-focus-ring-width-x-small) var(--zn-input-focus-ring-color)}.input--standard.input--focused:not(.input--disabled) .input__control{color:var(--zn-input-color-focus)}.input--standard.input--disabled{background-color:var(--zn-input-background-color-disabled);border-color:var(--zn-input-border-color-disabled);opacity:0.5;cursor:not-allowed}.input--standard.input--filled{background-color:rgba(var(--zn-panel),var(--zn-panel-opacity))}.input--standard.input--disabled .input__control{color:var(--zn-input-color-disabled)}.input--standard.input--disabled .input__control::-moz-placeholder{color:var(--zn-input-placeholder-color-disabled)}.input--standard.input--disabled .input__control::placeholder{color:var(--zn-input-placeholder-color-disabled)}.input__control{flex:1 1 auto;font-family:inherit;font-size:inherit;font-weight:inherit;min-width:0;height:100%;color:var(--zn-input-color);border:none;background:inherit;box-shadow:none;padding:0;margin:0;cursor:inherit;-webkit-appearance:none;line-height:var(--zn-input-line-height)}input[type=text].input__control[data-color-input]{font-family:var(--zn-font-mono,"SFMono-Regular","Consolas","Liberation Mono","Menlo",monospace);font-size:0.9em}.input__control::-webkit-search-decoration,.input__control::-webkit-search-cancel-button,.input__control::-webkit-search-results-button,.input__control::-webkit-search-results-decoration{-webkit-appearance:none}.input__control:-webkit-autofill,.input__control:-webkit-autofill:hover,.input__control:-webkit-autofill:focus,.input__control:-webkit-autofill:active{box-shadow:0 0 0 var(--zn-input-height-large) var(--zn-input-background-color) inset !important;-webkit-text-fill-color:var(--zn-input-color);caret-color:var(--zn-input-color)}.input__control::-moz-placeholder{color:var(--zn-input-placeholder-color);-moz-user-select:none;user-select:none;-webkit-user-select:none}.input__control::placeholder{color:var(--zn-input-placeholder-color);-moz-user-select:none;user-select:none;-webkit-user-select:none}.input:hover:not(.input--disabled) .input__control{color:var(--zn-input-color-hover)}.input__control:focus{outline:none}.input__prefix,.input__suffix{display:inline-flex;flex:0 0 auto;align-items:center;align-self:stretch;height:100%;cursor:default;color:var(--zn-input-icon-color);font-size:var(--zn-font-size-small)}.input__prefix zn-icon,.input__suffix zn-icon{--icon-size:var(--zn-font-size-x-large);color:var(--zn-input-icon-color);font-size:var(--zn-font-size-small)}.input__prefix ::slotted(zn-icon),.input__suffix ::slotted(zn-icon){--icon-size:var(--zn-font-size-medium);font-size:var(--zn-font-size-medium);color:var(--zn-input-icon-color)}.input--x-small{border-radius:var(--zn-input-border-radius-x-small);font-size:var(--zn-input-font-size-small);height:var(--zn-input-height-x-small)}.input--x-small .input__control{height:calc(var(--zn-input-height-x-small) - var(--zn-input-border-width) * 2);padding:0 var(--zn-input-spacing-small) 0 var(--zn-spacing-small)}.input--x-small .input__clear,.input--x-small .input__password-toggle{width:calc(1em + var(--zn-input-spacing-x-small) * 2)}.input--x-small .input__prefix ::slotted(*),.input__prefix-default{margin-inline-start:var(--zn-spacing-x-small)}.input--x-small .input__suffix ::slotted(*),.input__suffix-default{margin-inline-end:var(--zn-input-spacing-x-small)}.input--x-small .input__suffix ::slotted(zn-button),.input--x-small .input__prefix ::slotted(zn-button),.input--x-small .input__suffix ::slotted(zn-checkbox),.input--x-small .input__prefix ::slotted(zn-checkbox){margin-inline-end:0;margin-inline-start:0}.input--small{border-radius:var(--zn-input-border-radius-small);font-size:var(--zn-input-font-size-small);height:var(--zn-input-height-small)}.input--small .input__control{height:calc(var(--zn-input-height-small) - var(--zn-input-border-width) * 2);padding:0 var(--zn-input-spacing-small) 0 var(--zn-spacing-small)}.input--small .input__clear,.input--small .input__password-toggle{width:calc(1em + var(--zn-input-spacing-small) * 2)}.input--small .input__prefix ::slotted(*),.input__prefix-default{margin-inline-start:var(--zn-input-spacing-small)}.input--small .input__suffix ::slotted(*),.input__suffix-default{margin-inline-end:var(--zn-input-spacing-small)}.input--small .input__suffix ::slotted(zn-button),.input--small .input__prefix ::slotted(zn-button),.input--small .input__suffix ::slotted(zn-checkbox),.input--small .input__prefix ::slotted(zn-checkbox){margin-inline-end:0;margin-inline-start:0}.input--medium{border-radius:var(--zn-input-border-radius-medium);font-size:var(--zn-input-font-size-medium);height:var(--zn-input-height-medium)}.input--medium .input__control{height:calc(var(--zn-input-height-medium) - var(--zn-input-border-width) * 2);padding:0 var(--zn-input-spacing-small) 0 var(--zn-spacing-small)}.input--medium .input__clear,.input--medium .input__password-toggle{width:calc(1em + var(--zn-input-spacing-medium) * 2)}.input--medium .input__prefix ::slotted(*),.input__prefix-default{margin-inline-start:var(--zn-spacing-small)}.input--medium .input__suffix ::slotted(*),.input__suffix-default{margin-inline-end:var(--zn-spacing-small)}.input--medium .input__suffix ::slotted(zn-button),.input--medium .input__prefix ::slotted(zn-button),.input--medium .input__suffix ::slotted(zn-checkbox),.input--medium .input__prefix ::slotted(zn-checkbox){margin-inline-end:0;margin-inline-start:0}.input__suffix ::slotted(zn-button),.input__prefix ::slotted(zn-button){--zn-button-border-color:rgb(var(--zn-color-border));--zn-button-border-width:0}.input__suffix ::slotted(zn-button){--zn-button-border-left-width:1px}.input__prefix ::slotted(zn-button){--zn-button-border-right-width:1px}.input--large{border-radius:var(--zn-input-border-radius-large);font-size:var(--zn-input-font-size-large);height:var(--zn-input-height-large)}.input--large .input__control{height:calc(var(--zn-input-height-large) - var(--zn-input-border-width) * 2);padding:0 var(--zn-input-spacing-medium) 0 var(--zn-spacing-small)}.input--large .input__clear,.input--large .input__password-toggle{width:calc(1em + var(--zn-input-spacing-large) * 2)}.input--large .input__suffix ::slotted(zn-button),.input--large .input__prefix ::slotted(zn-button),.input--large .input__suffix ::slotted(zn-checkbox),.input--large .input__prefix ::slotted(zn-checkbox){margin-inline-end:0;margin-inline-start:0}.input--pill.input--x-small{border-radius:var(--zn-input-height-small);padding:0 var(--zn-spacing-x-small)}.input--pill.input--small{border-radius:var(--zn-input-height-small);padding:0 var(--zn-spacing-x-small)}.input--pill.input--medium{border-radius:var(--zn-input-height-medium);padding:0 var(--zn-spacing-x-small)}.input--pill.input--large{border-radius:var(--zn-input-height-large);padding:0 var(--zn-spacing-x-small)}.input__clear:not(.input__clear--visible){visibility:hidden}.input__clear,.input__password-toggle{display:inline-flex;align-items:center;justify-content:center;font-size:var(--zn-font-size-large);color:var(--zn-input-icon-color);border:none;background:none;padding:0;transition:var(--zn-transition-fast) color;cursor:pointer}.input__clear zn-icon,.input__password-toggle zn-icon{--icon-size:var(--zn-font-size-large)}.input__clear:hover,.input__password-toggle:hover{color:var(--zn-input-icon-color-hover)}.input__clear:focus,.input__password-toggle:focus{outline:none}.input--empty .input__clear{visibility:hidden}::-ms-reveal{display:none}.input--no-spin-buttons input[type=number]::-webkit-outer-spin-button,.input--no-spin-buttons input[type=number]::-webkit-inner-spin-button{-webkit-appearance:none;display:none}.input--no-spin-buttons input[type=number]{-moz-appearance:textfield}input[type=date]::-webkit-calendar-picker-indicator{background-image:url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" height="14" width="12.25" viewBox="0 0 448 512"><path fill="%236d7176" d="M128 0c13.3 0 24 10.7 24 24V64H296V24c0-13.3 10.7-24 24-24s24 10.7 24 24V64h40c35.3 0 64 28.7 64 64v16 48V448c0 35.3-28.7 64-64 64H64c-35.3 0-64-28.7-64-64V192 144 128C0 92.7 28.7 64 64 64h40V24c0-13.3 10.7-24 24-24zM400 192H48V448c0 8.8 7.2 16 16 16H384c8.8 0 16-7.2 16-16V192zM112 256h96c8.8 0 16 7.2 16 16v96c0 8.8-7.2 16-16 16H112c-8.8 0-16-7.2-16-16V272c0-8.8 7.2-16 16-16z"/></svg>')}.input__color-swatch{display:inline-flex;align-self:stretch;border:none;border-inline-start:solid var(--zn-input-border-width) var(--zn-input-border-color);border-radius:0;background-color:var(--zn-color-neutral-0);cursor:pointer;overflow:hidden;position:relative;flex-shrink:0;margin:0}.input__color-swatch:hover .input__color-swatch-inner{filter:brightness(0.95)}.input__color-swatch-inner{width:100%;height:100%;background-color:var(--color-value,#000000);transition:var(--zn-transition-fast) filter}.input--x-small .input__color-swatch{width:calc(var(--zn-input-height-x-small) * 1.2)}.input--small .input__color-swatch{width:calc(var(--zn-input-height-small) * 1.2)}.input--medium .input__color-swatch{width:calc(var(--zn-input-height-medium) * 1.2)}.input--large .input__color-swatch{width:calc(var(--zn-input-height-large) * 1.2)}:host([type=range]) .form-control--has-label .form-control__label,:host([type=range]) .form-control__label-context-note{margin-bottom:0}:host([type=range]) .form-control-input{margin-top:0}.input--standard.input--range{--zn-range-track-height:6px;--zn-range-track-color:var(--zn-color-neutral-200);--zn-range-thumb-size:18px;--zn-range-thumb-color:var(--zn-color-primary-600);--zn-range-thumb-ring-width:4px;align-items:center;height:var(--zn-range-thumb-size);padding:0;overflow:visible;cursor:pointer}.input--standard.input--range,.input--standard.input--range:hover,.input--standard.input--range.input--focused,.input--standard.input--range.input--disabled{border:none;background:none;box-shadow:none}.input--standard.input--range.input--x-small{--zn-range-track-height:4px;--zn-range-thumb-size:14px;--zn-range-thumb-ring-width:3px}.input--standard.input--range.input--small{--zn-range-track-height:5px;--zn-range-thumb-size:16px;--zn-range-thumb-ring-width:3px}.input--standard.input--range.input--large{--zn-range-track-height:7px;--zn-range-thumb-size:20px}.input--range .input__control{-webkit-appearance:none;-moz-appearance:none;appearance:none;height:var(--zn-range-thumb-size);padding:0;margin:0;background:none;cursor:inherit}.input--range .input__control::-webkit-slider-runnable-track{height:var(--zn-range-track-height);border-radius:calc(var(--zn-range-track-height) / 2);background-color:var(--zn-range-track-color)}.input--range .input__control::-moz-range-track{height:var(--zn-range-track-height);border-radius:calc(var(--zn-range-track-height) / 2);background-color:var(--zn-range-track-color)}.input--range .input__control::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;width:var(--zn-range-thumb-size);height:var(--zn-range-thumb-size);margin-top:calc((var(--zn-range-track-height) - var(--zn-range-thumb-size)) / 2);border:var(--zn-range-thumb-ring-width) solid var(--zn-color-neutral-0);border-radius:50%;background-color:var(--zn-range-thumb-color);box-shadow:0 0 0 1px var(--zn-input-border-color);-webkit-transition:var(--zn-transition-fast) box-shadow,var(--zn-transition-fast) background-color;transition:var(--zn-transition-fast) box-shadow,var(--zn-transition-fast) background-color}.input--range .input__control::-moz-range-thumb{width:var(--zn-range-thumb-size);height:var(--zn-range-thumb-size);box-sizing:border-box;border:var(--zn-range-thumb-ring-width) solid var(--zn-color-neutral-0);border-radius:50%;background-color:var(--zn-range-thumb-color);box-shadow:0 0 0 1px var(--zn-input-border-color);-moz-transition:var(--zn-transition-fast) box-shadow,var(--zn-transition-fast) background-color;transition:var(--zn-transition-fast) box-shadow,var(--zn-transition-fast) background-color}.input--range:hover:not(.input--disabled) .input__control::-webkit-slider-thumb{background-color:var(--zn-color-primary-500);box-shadow:0 0 0 1px var(--zn-input-border-color-hover)}.input--range:hover:not(.input--disabled) .input__control::-moz-range-thumb{background-color:var(--zn-color-primary-500);box-shadow:0 0 0 1px var(--zn-input-border-color-hover)}.input--range .input__control:focus-visible::-webkit-slider-thumb{box-shadow:0 0 0 var(--zn-focus-ring-width) var(--zn-input-focus-ring-color)}.input--range .input__control:focus-visible::-moz-range-thumb{box-shadow:0 0 0 var(--zn-focus-ring-width) var(--zn-input-focus-ring-color)}.input__color-picker{position:absolute;opacity:0;width:0;height:0;padding:0;margin:0;pointer-events:none;border:none;visibility:hidden}`;var ee=class extends S{constructor(){super(...arguments);this.formControlController=new re(this,{assumeInteractionOn:["zn-blur","zn-input"]});this.hasSlotController=new Y(this,"help-text","label","label-tooltip");this.localize=new Ft(this);this.slashController=new ko(this,{menu:()=>this.mountSlashMenu(),items:t=>this.resolveSlashItems(t),trigger:()=>this.slashTrigger,onSelect:(t,r)=>!this.emit("zn-slash-select",{detail:{item:t,query:r}}).defaultPrevented,onInsert:(t,r)=>this.emit("zn-slash-insert",{detail:{item:t,value:r}})});this.hasFocus=!1;this.hasSlashMenu=!1;this.isUserTyping=!1;this.title="";this.__numberInput=Object.assign(document.createElement("input"),{type:"number"});this.__dateInput=Object.assign(document.createElement("input"),{type:"date"});this.type="text";this.name="";this.value="";this.defaultValue="";this.size="medium";this.pill=!1;this.label="";this.labelTooltip="";this.contextNote="";this.helpText="";this.clearable=!1;this.optionalIcon=!1;this.disabled=!1;this.filled=!1;this.placeholder="";this.readonly=!1;this.passwordToggle=!1;this.passwordVisible=!1;this.noSpinButtons=!1;this.colorFormat="hex";this.valueSuffix="";this.required=!1;this.spellcheck=!0;this.slashItems=[];this.slashPreset="";this.slashTrigger="/";this.slashHeading="Insert";this.slashHideKeys=!1;this.slashRecentKey="";this.triggerSubmit=!1}get valueAsDate(){return this.__dateInput.type=this.type,this.__dateInput.value=this.value,this.input?.valueAsDate||this.__dateInput.valueAsDate}set valueAsDate(t){this.__dateInput.type=this.type,this.__dateInput.valueAsDate=t,this.value=this.__dateInput.value}get valueAsNumber(){return this.__numberInput.value=this.value,this.input?.valueAsNumber||this.__numberInput.valueAsNumber}set valueAsNumber(t){this.__numberInput.valueAsNumber=t,this.value=this.__numberInput.value}get validity(){return this.input?.validity}get validationMessage(){return this.input.validationMessage}validateMinMax(){this.type!=="number"&&this.type!=="date"||(typeof this.min<"u"&&parseInt(this.value)<parseInt(this.min)&&(this.value=this.min.toString()),typeof this.max<"u"&&parseInt(this.value)>parseInt(this.max)&&(this.value=this.max.toString()))}hexToRgb(t){let r=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);if(!r)return"";let n=parseInt(r[1],16),a=parseInt(r[2],16),s=parseInt(r[3],16);return`rgb(${n}, ${a}, ${s})`}rgbToHex(t){let r=t.match(/^rgb\((\d+),\s*(\d+),\s*(\d+)\)$/);if(!r)return"";let n=parseInt(r[1]).toString(16).padStart(2,"0"),a=parseInt(r[2]).toString(16).padStart(2,"0"),s=parseInt(r[3]).toString(16).padStart(2,"0");return`#${n}${a}${s}`}hexToOklch(t){let r=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);if(!r)return"";let n=parseInt(r[1],16)/255,a=parseInt(r[2],16)/255,s=parseInt(r[3],16)/255;n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92,a=a>.04045?Math.pow((a+.055)/1.055,2.4):a/12.92,s=s>.04045?Math.pow((s+.055)/1.055,2.4):s/12.92;let l=n*.4124564+a*.3575761+s*.1804375,d=n*.2126729+a*.7151522+s*.072175,h=n*.0193339+a*.119192+s*.9503041,m=l/.95047,f=d/1,b=h/1.08883,g=m>.008856?Math.pow(m,1/3):7.787*m+16/116,v=f>.008856?Math.pow(f,1/3):7.787*f+16/116,y=b>.008856?Math.pow(b,1/3):7.787*b+16/116,z=116*v-16,E=500*(g-v),N=200*(v-y),U=Math.sqrt(E*E+N*N),R=Math.atan2(N,E)*180/Math.PI;R<0&&(R+=360);let C=(z/100).toFixed(3),$=(U/150).toFixed(3),L=R.toFixed(1);return`oklch(${C} ${$} ${L})`}oklchToHex(t){let r=t.match(/^oklch\(([0-9.]+)\s+([0-9.]+)\s+([0-9.]+)\)$/);if(!r)return"";let n=parseFloat(r[1])*100,a=parseFloat(r[2])*150,s=parseFloat(r[3]),l=a*Math.cos(s*Math.PI/180),d=a*Math.sin(s*Math.PI/180),h=(n+16)/116,m=l/500+h,f=h-d/200,b=m>.206897?Math.pow(m,3):(m-16/116)/7.787,g=h>.206897?Math.pow(h,3):(h-16/116)/7.787,v=f>.206897?Math.pow(f,3):(f-16/116)/7.787,y=b*.95047,z=g*1,E=v*1.08883,N=y*3.2404542+z*-1.5371385+E*-.4985314,U=y*-.969266+z*1.8760108+E*.041556,R=y*.0556434+z*-.2040259+E*1.0572252;N=N>.0031308?1.055*Math.pow(N,1/2.4)-.055:12.92*N,U=U>.0031308?1.055*Math.pow(U,1/2.4)-.055:12.92*U,R=R>.0031308?1.055*Math.pow(R,1/2.4)-.055:12.92*R,N=Math.max(0,Math.min(1,N)),U=Math.max(0,Math.min(1,U)),R=Math.max(0,Math.min(1,R));let C=Math.round(N*255).toString(16).padStart(2,"0"),$=Math.round(U*255).toString(16).padStart(2,"0"),L=Math.round(R*255).toString(16).padStart(2,"0");return`#${C}${$}${L}`}hexToHsl(t){let r=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);if(!r)return"";let n=parseInt(r[1],16)/255,a=parseInt(r[2],16)/255,s=parseInt(r[3],16)/255,l=Math.max(n,a,s),d=Math.min(n,a,s),h=(l+d)/2,m=0,f=0;if(l!==d){let b=l-d;switch(f=h>.5?b/(2-l-d):b/(l+d),l){case n:m=((a-s)/b+(a<s?6:0))/6;break;case a:m=((s-n)/b+2)/6;break;case s:m=((n-a)/b+4)/6;break}}return`hsl(${Math.round(m*360)}, ${Math.round(f*100)}%, ${Math.round(h*100)}%)`}hslToHex(t){let r=t.match(/^hsl\(\s*(\d+)\s*,\s*(\d+)%\s*,\s*(\d+)%\s*\)$/);if(!r)return"";let n=parseInt(r[1])/360,a=parseInt(r[2])/100,s=parseInt(r[3])/100,l,d,h;if(a===0)l=s,d=s,h=s;else{let g=(z,E,N)=>(N<0&&(N+=1),N>1&&(N-=1),N<.16666666666666666?z+(E-z)*6*N:N<.5?E:N<.6666666666666666?z+(E-z)*(.6666666666666666-N)*6:z),v=s<.5?s*(1+a):s+a-s*a,y=2*s-v;l=g(y,v,n+1/3),d=g(y,v,n),h=g(y,v,n-1/3)}let m=Math.round(l*255).toString(16).padStart(2,"0"),f=Math.round(d*255).toString(16).padStart(2,"0"),b=Math.round(h*255).toString(16).padStart(2,"0");return`#${m}${f}${b}`}convertToHex(t){return t?t.startsWith("#")?t:t.startsWith("rgb")?this.rgbToHex(t):t.startsWith("hsl")?this.hslToHex(t):t.startsWith("oklch")?this.oklchToHex(t):t:"#000000"}convertFromHex(t){return t?this.colorFormat==="hex"?t:this.colorFormat==="rgb"?this.hexToRgb(t):this.colorFormat==="hsl"?this.hexToHsl(t):this.colorFormat==="oklch"?this.hexToOklch(t):t:""}handleBlur(){if(this.hasFocus=!1,this.isUserTyping=!1,this.validateMinMax(),this.type==="color"&&this.value){let t=this.convertToHex(this.value);if(t){let r=this.convertFromHex(t);r!==this.value&&(this.value=r)}}this.emit("zn-blur")}handleChange(){if(this.type==="currency"&&this.input.value)this.value=parseFloat(this.input.value).toFixed(2);else if(this.type==="color"){let t=this.input.value.trim();if(t==="")this.value="";else if(this.colorFormat==="hex"){let r=t;r&&!r.startsWith("#")&&(r="#"+r),/^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/.test(r)&&(this.value=r.toLowerCase())}else this.colorFormat==="rgb"?/^rgb\(\s*\d+\s*,\s*\d+\s*,\s*\d+\s*\)$/.test(t)&&(this.value=t):this.colorFormat==="hsl"?/^hsl\(\s*\d+\s*,\s*\d+%\s*,\s*\d+%\s*\)$/.test(t)&&(this.value=t):this.colorFormat==="oklch"&&/^oklch\(\s*[0-9.]+\s+[0-9.]+\s+[0-9.]+\s*\)$/.test(t)&&(this.value=t)}else this.value=this.input.value;this.emit("zn-change")}handleClearClick(t){this.value="",this.emit("zn-clear"),this.emit("zn-input"),this.emit("zn-change"),this.input.focus(),t.stopPropagation()}handleFocus(){this.hasFocus=!0,this.emit("zn-focus")}handleInput(){this.isUserTyping=!0,this.type==="color"?this.value=this.input.value:this.value=this.input.value,this.formControlController.updateValidity(),this.emit("zn-input")}handleInvalid(t){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(t)}handleKeyDown(t){if(this.slashController.open)return;if(t.key==="Escape"){this.input.blur(),t.stopPropagation();return}let r=t.altKey||t.ctrlKey||t.metaKey||t.shiftKey;if(t.key==="Enter"&&!r&&!t.defaultPrevented&&!t.isComposing){let n=this.formControlController.getForm();if(!this.triggerSubmit&&(n?.hasAttribute("enter-navigation")||n?.hasAttribute("data-enter-navigation")))return;this.formControlController.submit()}}handlePasswordToggle(){this.passwordVisible=!this.passwordVisible}handleColorSwatchClick(){this.type==="color"&&this.colorPicker&&this.colorPicker.click()}handleColorPickerChange(){if(this.type==="color"&&this.colorPicker){let t=this.colorPicker.value;this.value=this.convertFromHex(t),this.emit("zn-change"),this.emit("zn-input")}}focusInput(t){if(this.hasFocus)return;let r=t.target;r.tagName==="ZN-CHECKBOX"&&(r.slot==="prefix"||r.closest('[slot="prefix"]'))||(r.classList.contains("input__prefix")||r.slot==="prefix"||r.hasAttribute("part")&&r.getAttribute("part")==="base")&&(this.handleFocus(),this.input.focus())}firstUpdated(){this.type==="range"&&this.value===""&&(this.value=this.input.value),this.slashController.attach(this.input)}async resolveSlashItems(t=""){let r=[...Wd(this.slashPreset),...this.slashItems,...this.slottedSlashItems()],n=await this.slashItemsProvider?.(t);return n?[...r,...n]:r}async showSlashMenu(){this.focus();let t=this.input.selectionStart??this.input.value.length;this.input.value.slice(t-this.slashTrigger.length,t)!==this.slashTrigger&&this.setRangeText(this.slashTrigger,t,t,"end"),await this.updateComplete,this.slashController.requestOpen()}hideSlashMenu(){this.slashController.close()}slottedSlashItems(){return[...this.querySelectorAll("zn-slash-item")].map(r=>{if(typeof r.toSlashMenuItem=="function")return r.toSlashMenuItem();let n=r.getAttribute("value")??(r.textContent??"").trim(),a=r.getAttribute("order"),s=r.getAttribute("caret-offset");return{label:r.getAttribute("label")??n,value:n,icon:r.getAttribute("icon")??void 0,description:r.getAttribute("description")??void 0,keywords:r.getAttribute("keywords")??void 0,group:r.getAttribute("group")??void 0,action:r.getAttribute("action")??void 0,order:a===null?void 0:Number(a),caretOffset:s===null?void 0:Number(s),disabled:r.hasAttribute("disabled")}})}async mountSlashMenu(){let t=this.querySelector("zn-slash-menu");return t||(this.hasSlashMenu||(this.hasSlashMenu=!0,await this.updateComplete),this.slashMenuElement)}handleDisabledChange(){this.formControlController.setValidity(this.disabled)}handleStepChange(){this.input.step=String(this.step),this.formControlController.updateValidity()}async handleValueChange(){if(await this.updateComplete,this.type==="color"&&this.value&&!this.isUserTyping){let t=this.convertToHex(this.value);if(t){let r=this.convertFromHex(t);if(r!==this.value){this.value=r,this.emit("zn-change");return}}}this.formControlController.updateValidity(),this.type==="color"&&this.colorPicker&&(this.colorPicker.value=this.convertToHex(this.value)||"#000000")}handleColorFormatChange(){if(this.type==="color"&&this.value){let t=this.convertToHex(this.value);if(t){let r=this.convertFromHex(t);r!==this.value&&(this.value=r,this.emit("zn-change"))}}}focus(t){this.input.focus(t)}blur(){this.input.blur()}select(){this.input.select()}setSelectionRange(t,r,n="none"){this.input.setSelectionRange(t,r,n)}setRangeText(t,r,n,a="preserve"){let s=r??this.input.selectionStart,l=n??this.input.selectionEnd;this.input.setRangeText(t,s,l,a),this.value!==this.input.value&&(this.value=this.input.value)}showPicker(){"showPicker"in HTMLInputElement.prototype&&this.input.showPicker()}stepUp(){this.input.stepUp(),this.value!==this.input.value&&(this.value=this.input.value)}stepDown(){this.input.stepDown(),this.value!==this.input.value&&(this.value=this.input.value)}checkValidity(){return this.input.checkValidity()}getForm(){return this.formControlController.getForm()}reportValidity(){return this.input.reportValidity()}setCustomValidity(t){this.input.setCustomValidity(t),this.formControlController.updateValidity()}render(){let t=this.hasSlotController.test("label"),r=this.hasSlotController.test("label-tooltip"),n=this.hasSlotController.test("context-note"),a=this.hasSlotController.test("help-text"),s=this.type==="range",l=this.label?!0:t,d=this.labelTooltip?!0:r,h=this.contextNote||s?!0:n,m=this.helpText?!0:a,f=this.clearable&&!this.disabled&&!this.readonly,b=this.optionalIcon,g=f&&(typeof this.value=="number"||this.value.length>0);return u`
433
433
  <div part="form-control"
434
434
  class="${M({"form-control":!0,"form-control--x-small":this.size==="x-small","form-control--small":this.size==="small","form-control--medium":this.size==="medium","form-control--large":this.size==="large","form-control--has-label":l,"form-control--has-label-tooltip":d,"form-control--has-context-note":h,"form-control--has-help-text":m})}">
435
435
 
@@ -481,7 +481,7 @@ import{a as Hn,b as X3,c as kr,d as c,e as V}from"./chunks/zn.UBLZO6CI.js";var a
481
481
  min=${O(this.min)}
482
482
  max=${O(this.max)}
483
483
  step=${O(this.type==="currency"?.01:this.step)}
484
- .value=${ar(this.value)}
484
+ .value=${or(this.value)}
485
485
  autocapitalize=${O(this.autocapitalize)}
486
486
  autocomplete=${O(this.autocomplete)}
487
487
  autocorrect=${O(this.autocorrect)}
@@ -584,7 +584,7 @@ import{a as Hn,b as X3,c as kr,d as c,e as V}from"./chunks/zn.UBLZO6CI.js";var a
584
584
  aria-hidden="true"
585
585
  ></zn-icon>
586
586
  </div>
587
- `}};Cr.styles=_(q0),Cr.dependencies={"zn-icon":oe},c([B(".option__label")],Cr.prototype,"defaultSlot",2),c([I()],Cr.prototype,"current",2),c([I()],Cr.prototype,"hasHover",2),c([p({reflect:!0})],Cr.prototype,"value",2),c([p({type:Boolean,reflect:!0})],Cr.prototype,"disabled",2),c([p({type:Boolean,reflect:!0})],Cr.prototype,"selected",2),c([W("disabled")],Cr.prototype,"handleDisabledChange",1),c([W("selected")],Cr.prototype,"handleSelectedChange",1);var We=Cr;Cr.define("zn-option");function yi(o,i,t){return new Promise(r=>{if(t?.duration===1/0)throw new Error("Promise-based animations must be finite.");let n=o.animate(i,{...t,duration:tm()?0:t.duration});n.addEventListener("cancel",r,{once:!0}),n.addEventListener("finish",r,{once:!0})})}function tm(){return window.matchMedia("(prefers-reduced-motion: reduce)").matches}function rm(o){return Promise.all(o.getAnimations().map(i=>new Promise(t=>{i.cancel(),requestAnimationFrame(t)})))}function I0(o){return(Array.isArray(o.value)?o.value:[o.value]).some(t=>t!==""&&t!=="0")}var bs=class{constructor(i){this.conditionals=[];this.required=[];this.initiallyDisabled=!1;this.handleChange=()=>this.checkConditionals();(this.host=i).addController(this)}setup(){this.conditionals=this.resolve(this.host.conditional),this.required=this.resolve(this.host.requires),this.initiallyDisabled=this.host.disabled;let i=[...this.conditionals,...this.required];i.length!==0&&(i.forEach(t=>{t.addEventListener("zn-change",this.handleChange),t.addEventListener("zn-input",this.handleChange)}),this.checkConditionals())}resolve(i){if(!i)return[];let t=[],r=new Set;return i.split(",").map(n=>n.trim()).filter(Boolean).forEach(n=>{let a=Ge(pr(n),document.documentElement,""),s=Ge(`[name="${n}"]`,document.documentElement,"");[...a,...s].forEach(l=>{r.has(l)||(r.add(l),t.push(l))})}),t}hostConnected(){}hostDisconnected(){[...this.conditionals,...this.required].forEach(i=>{i.removeEventListener("zn-change",this.handleChange),i.removeEventListener("zn-input",this.handleChange)}),this.conditionals=[],this.required=[]}check(){this.checkConditionals()}checkConditionals(){let i=this.conditionals.some(I0),t=this.required.length>0&&!this.required.every(I0),r=this.required.length>0?!1:this.initiallyDisabled;this.host.disabled=r||i||t}};var D0=new Map,Z4=new WeakMap;function e8(o){return o??{keyframes:[],options:{duration:0}}}function R0(o,i){return i.toLowerCase()==="rtl"?{keyframes:o.rtlKeyframes||o.keyframes,options:o.options}:o}function Sn(o,i){D0.set(o,e8(i))}function Cn(o,i,t){let r=Z4.get(o);if(r?.[i])return R0(r[i],t.dir);let n=D0.get(i);return n?R0(n,t.dir):{keyframes:[],options:{duration:0}}}var N0=k`@keyframes rotate-gradient{from{--rotate:0deg}to{--rotate:360deg}}:host{text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-transform:none}*,*::before,*::after{box-sizing:border-box;border-width:0;border-style:solid;border-color:rgb(var(--zn-border-color))}[hidden]{display:none !important}.width-container,.form-container,.wide-form-container{height:100%;width:100%;margin:var(--zn-default-margin,0 auto)}.width-container{max-width:var(--zn-container)}.form-container{max-width:var(--zn-container-ph)}.wide-form-container{max-width:var(--zn-container-lg)}:host{display:block}:host([hidden]){display:none !important}:host(:not(:first-child):not([data-first-visible])){border-block-start:solid var(--zn-panel-border-width) var(--zn-panel-border-color);margin-block-start:var(--zn-spacing-2x-small)}.opt-group__label{font-family:var(--zn-font-sans);font-size:var(--zn-font-size-x-small);font-weight:var(--zn-font-weight-semibold);line-height:var(--zn-line-height-normal);letter-spacing:var(--zn-letter-spacing-loose);text-transform:uppercase;color:var(--zn-color-neutral-600);padding-block:var(--zn-spacing-x-small) var(--zn-spacing-2x-small);padding-inline:var(--zn-spacing-small);-moz-user-select:none;user-select:none;-webkit-user-select:none}.opt-group__options{display:block}:host([disabled]) .opt-group__label{opacity:0.5}`;var Kn=class Kn extends S{constructor(){super(...arguments);this.label="";this.disabled=!1}connectedCallback(){super.connectedCallback(),this.setAttribute("role","group"),this.setAttribute("aria-label",this.label)}handleLabelChange(){this.setAttribute("aria-label",this.label)}handleDisabledChange(){this.propagateDisabled()}updateVisibility(){let t=[...this.querySelectorAll("zn-option")];this.hidden=t.length>0&&t.every(r=>r.hidden)}updateSeparator(){let t=this.previousElementSibling;for(;t&&!Kn.isRendered(t);)t=t.previousElementSibling;this.toggleAttribute("data-first-visible",t===null)}static isRendered(t){return t instanceof HTMLSlotElement?t.assignedElements().some(r=>Kn.isRendered(r)):!(t instanceof HTMLElement)||!t.hidden}render(){return u`
587
+ `}};Cr.styles=_(q0),Cr.dependencies={"zn-icon":oe},c([B(".option__label")],Cr.prototype,"defaultSlot",2),c([I()],Cr.prototype,"current",2),c([I()],Cr.prototype,"hasHover",2),c([p({reflect:!0})],Cr.prototype,"value",2),c([p({type:Boolean,reflect:!0})],Cr.prototype,"disabled",2),c([p({type:Boolean,reflect:!0})],Cr.prototype,"selected",2),c([W("disabled")],Cr.prototype,"handleDisabledChange",1),c([W("selected")],Cr.prototype,"handleSelectedChange",1);var We=Cr;Cr.define("zn-option");function yi(o,i,t){return new Promise(r=>{if(t?.duration===1/0)throw new Error("Promise-based animations must be finite.");let n=o.animate(i,{...t,duration:tm()?0:t.duration});n.addEventListener("cancel",r,{once:!0}),n.addEventListener("finish",r,{once:!0})})}function tm(){return window.matchMedia("(prefers-reduced-motion: reduce)").matches}function rm(o){return Promise.all(o.getAnimations().map(i=>new Promise(t=>{i.cancel(),requestAnimationFrame(t)})))}function I0(o){return(Array.isArray(o.value)?o.value:[o.value]).some(t=>t!==""&&t!=="0")}var bs=class{constructor(i){this.conditionals=[];this.required=[];this.initiallyDisabled=!1;this.handleChange=()=>this.checkConditionals();(this.host=i).addController(this)}setup(){this.conditionals=this.resolve(this.host.conditional),this.required=this.resolve(this.host.requires),this.initiallyDisabled=this.host.disabled;let i=[...this.conditionals,...this.required];i.length!==0&&(i.forEach(t=>{t.addEventListener("zn-change",this.handleChange),t.addEventListener("zn-input",this.handleChange)}),this.checkConditionals())}resolve(i){if(!i)return[];let t=[],r=new Set;return i.split(",").map(n=>n.trim()).filter(Boolean).forEach(n=>{let a=Ge(dr(n),document.documentElement,""),s=Ge(`[name="${n}"]`,document.documentElement,"");[...a,...s].forEach(l=>{r.has(l)||(r.add(l),t.push(l))})}),t}hostConnected(){}hostDisconnected(){[...this.conditionals,...this.required].forEach(i=>{i.removeEventListener("zn-change",this.handleChange),i.removeEventListener("zn-input",this.handleChange)}),this.conditionals=[],this.required=[]}check(){this.checkConditionals()}checkConditionals(){let i=this.conditionals.some(I0),t=this.required.length>0&&!this.required.every(I0),r=this.required.length>0?!1:this.initiallyDisabled;this.host.disabled=r||i||t}};var D0=new Map,Z4=new WeakMap;function e8(o){return o??{keyframes:[],options:{duration:0}}}function R0(o,i){return i.toLowerCase()==="rtl"?{keyframes:o.rtlKeyframes||o.keyframes,options:o.options}:o}function Sn(o,i){D0.set(o,e8(i))}function Cn(o,i,t){let r=Z4.get(o);if(r?.[i])return R0(r[i],t.dir);let n=D0.get(i);return n?R0(n,t.dir):{keyframes:[],options:{duration:0}}}var N0=k`@keyframes rotate-gradient{from{--rotate:0deg}to{--rotate:360deg}}:host{text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-transform:none}*,*::before,*::after{box-sizing:border-box;border-width:0;border-style:solid;border-color:rgb(var(--zn-border-color))}[hidden]{display:none !important}.width-container,.form-container,.wide-form-container{height:100%;width:100%;margin:var(--zn-default-margin,0 auto)}.width-container{max-width:var(--zn-container)}.form-container{max-width:var(--zn-container-ph)}.wide-form-container{max-width:var(--zn-container-lg)}:host{display:block}:host([hidden]){display:none !important}:host(:not(:first-child):not([data-first-visible])){border-block-start:solid var(--zn-panel-border-width) var(--zn-panel-border-color);margin-block-start:var(--zn-spacing-2x-small)}.opt-group__label{font-family:var(--zn-font-sans);font-size:var(--zn-font-size-x-small);font-weight:var(--zn-font-weight-semibold);line-height:var(--zn-line-height-normal);letter-spacing:var(--zn-letter-spacing-loose);text-transform:uppercase;color:var(--zn-color-neutral-600);padding-block:var(--zn-spacing-x-small) var(--zn-spacing-2x-small);padding-inline:var(--zn-spacing-small);-moz-user-select:none;user-select:none;-webkit-user-select:none}.opt-group__options{display:block}:host([disabled]) .opt-group__label{opacity:0.5}`;var Kn=class Kn extends S{constructor(){super(...arguments);this.label="";this.disabled=!1}connectedCallback(){super.connectedCallback(),this.setAttribute("role","group"),this.setAttribute("aria-label",this.label)}handleLabelChange(){this.setAttribute("aria-label",this.label)}handleDisabledChange(){this.propagateDisabled()}updateVisibility(){let t=[...this.querySelectorAll("zn-option")];this.hidden=t.length>0&&t.every(r=>r.hidden)}updateSeparator(){let t=this.previousElementSibling;for(;t&&!Kn.isRendered(t);)t=t.previousElementSibling;this.toggleAttribute("data-first-visible",t===null)}static isRendered(t){return t instanceof HTMLSlotElement?t.assignedElements().some(r=>Kn.isRendered(r)):!(t instanceof HTMLElement)||!t.hidden}render(){return u`
588
588
  <div part="base" class="opt-group">
589
589
  ${this.label?u`<div part="label" class="opt-group__label" aria-hidden="true">${this.label}</div>`:F}
590
590
  <div class="opt-group__options" role="none">
@@ -900,7 +900,7 @@ import{a as Hn,b as X3,c as kr,d as c,e as V}from"./chunks/zn.UBLZO6CI.js";var a
900
900
  ?readonly=${this.readonly}
901
901
  ?required=${this.required}
902
902
  placeholder=${O(this.placeholder)}
903
- .value=${ar(this.value)}
903
+ .value=${or(this.value)}
904
904
  ?autofocus=${this.autofocus}
905
905
  spellcheck=${this.spellcheck}
906
906
  aria-describedby="help-text"
@@ -1014,7 +1014,7 @@ import{a as Hn,b as X3,c as kr,d as c,e as V}from"./chunks/zn.UBLZO6CI.js";var a
1014
1014
  @keydown=${this.handleKeyDown}
1015
1015
  @mousedown=${this.handleMouseDown}>${t.title}</span>
1016
1016
  </zn-menu-item>`)}
1017
- </div>`}handleClick(t){let r=["menuitem","menuitemcheckbox"],n=t.composedPath(),a=n.find(h=>r.includes(h?.getAttribute?.("role")||""));if(!a)return;let s=n.find(h=>h?.getAttribute?.("role")==="menu");if(s!==this)return;let d=a;d.type==="checkbox"&&(d.checked=!d.checked),s?.closest("zn-dropdown")?.hide(),this.emit("zn-select",{detail:{item:d}})}handleKeyDown(t){if(t.key==="Enter"||t.key===" "){let r=this.getCurrentItem();t.preventDefault(),t.stopPropagation(),r?.click()}else if(["ArrowDown","ArrowUp","Home","End"].includes(t.key)){let r=this.getAllItems(),n=this.getCurrentItem(),a=n?r.indexOf(n):0;r.length>0&&(t.preventDefault(),t.stopPropagation(),t.key==="ArrowDown"?a++:t.key==="ArrowUp"?a--:t.key==="Home"?a=0:t.key==="End"&&(a=r.length-1),a<0&&(a=r.length-1),a>r.length-1&&(a=0),this.setCurrentItem(r[a]),r[a].focus())}}handleMouseDown(t){let r=t.target;this.isMenuItem(r)&&this.setCurrentItem(r)}handleSlotChange(){let t=this.getAllItems();t.length>0&&(this.setCurrentItem(t[0]),this.emit("zn-menu-ready")),this.propagateVariant()}updated(t){super.updated(t),t.has("variant")&&this.propagateVariant()}get itemVariant(){return this.variant==="shell"?"shell":"dropdown"}propagateVariant(){this.getAllItems().forEach(t=>t.setAttribute("variant",this.itemVariant))}isMenuItem(t){return t.tagName.toLowerCase()==="zn-menu-item"||["menuitem","menuitemcheckbox","menuitemradio"].includes(t.getAttribute("role")??"")}};nn.styles=_(U0),nn.dependencies={"zn-confirm":Ca,"zn-dropdown":ur,"zn-icon":oe,"zn-menu-item":xi,"zn-tooltip":gi},c([B("slot")],nn.prototype,"defaultSlot",2),c([p({attribute:"actions",type:Array})],nn.prototype,"actions",2),c([p({reflect:!0})],nn.prototype,"variant",2);var on=nn;nn.define("zn-menu");var j0=k`@keyframes rotate-gradient{from{--rotate:0deg}to{--rotate:360deg}}:host{text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-transform:none}*,*::before,*::after{box-sizing:border-box;border-width:0;border-style:solid;border-color:rgb(var(--zn-border-color))}[hidden]{display:none !important}.width-container,.form-container,.wide-form-container{height:100%;width:100%;margin:var(--zn-default-margin,0 auto)}.width-container{max-width:var(--zn-container)}.form-container{max-width:var(--zn-container-ph)}.wide-form-container{max-width:var(--zn-container-lg)}:host{display:block}.filter-bar{display:flex;flex-direction:row;align-items:center;flex-wrap:wrap;gap:var(--zn-spacing-x-small)}.filter-bar__clear::part(base){height:32px;min-height:32px;padding:0 var(--zn-spacing-x-small);font-weight:var(--zn-font-weight-normal);text-transform:none;white-space:nowrap}.filter-bar__clear::part(base){color:rgb(var(--zn-primary))}.filter-bar__chip{display:inline-flex;align-items:center;height:32px;padding-right:var(--zn-spacing-x-small);border:1px solid rgb(var(--zn-border-color));border-radius:var(--zn-border-radius-pill);background-color:rgb(var(--zn-panel))}.filter-bar__chip:hover{background-color:rgba(var(--zn-color-tab),0.5)}.filter-bar__pill::part(base),.filter-bar__pill::part(base):hover{border-color:transparent;background:transparent;padding-right:0}.filter-bar__remove::part(base){width:24px;min-width:24px;height:32px;min-height:32px;max-height:32px;padding:4px 0;background:transparent;background-clip:content-box;border-radius:var(--zn-border-radius-circle);color:var(--zn-text-color)}.filter-bar__remove::part(base):hover{background:rgb(var(--zn-color-border));background-clip:content-box}.filter-bar__editor{display:flex;flex-direction:column;align-items:stretch;overflow:hidden;border:1px solid rgb(var(--zn-border-color));border-radius:var(--zn-border-radius);background-color:rgb(var(--zn-panel));filter:drop-shadow(0 10px 8px rgba(0,0,0,0.04)) drop-shadow(0 4px 3px rgba(0,0,0,0.1))}.filter-bar__editor zn-datepicker{--zn-datepicker-inline-border-color:transparent}.filter-bar__editor zn-input{--zn-input-background-color:transparent;--zn-input-background-color-hover:transparent;--zn-input-background-color-focus:transparent;--zn-input-border-color:transparent;--zn-input-border-color-hover:transparent;--zn-input-border-color-focus:transparent;--zn-input-focus-ring-color:transparent;min-width:200px}.filter-bar zn-menu{--zn-menu-max-height:320px}.filter-bar__option-search{--zn-input-background-color:transparent;--zn-input-background-color-hover:transparent;--zn-input-background-color-focus:transparent;--zn-input-border-color:transparent;--zn-input-border-color-hover:transparent;--zn-input-border-color-focus:transparent;--zn-input-focus-ring-color:transparent;position:sticky;top:calc(-1 * var(--zn-spacing-2x-small));z-index:1;margin:calc(-1 * var(--zn-spacing-2x-small)) calc(-1 * var(--zn-spacing-2x-small)) 0;background-color:rgb(var(--zn-panel));border-bottom:1px solid rgb(var(--zn-border-color))}.filter-bar__suggestions{display:flex;flex-direction:column;align-items:stretch;max-height:220px;overflow-y:auto;border-top:1px solid rgb(var(--zn-border-color))}.filter-bar__suggestions ::-webkit-scrollbar{width:5px;height:5px}.filter-bar__suggestions{}.filter-bar__suggestions ::-webkit-scrollbar-track{background:transparent}.filter-bar__suggestions{}.filter-bar__suggestions ::-webkit-scrollbar-thumb{background:rgba(var(--inverse-base),0.2);border-radius:5px}.filter-bar__suggestions{}.filter-bar__suggestions ::-webkit-scrollbar-thumb:hover{background:rgba(var(--inverse-base),0.6)}.filter-bar__suggestion::part(base){justify-content:flex-start;padding:var(--zn-spacing-x-small) var(--zn-spacing-small);font-weight:var(--zn-font-weight-normal);text-transform:none;color:rgb(var(--zn-text));text-align:left}.filter-bar__operators{display:flex;flex-wrap:wrap;gap:var(--zn-spacing-2x-small);padding:var(--zn-spacing-x-small);border-bottom:1px solid rgb(var(--zn-border-color))}.filter-bar__operator::part(base){height:26px;min-height:26px;min-width:30px;padding:0 var(--zn-spacing-x-small);font-size:var(--zn-font-size-small);font-weight:var(--zn-font-weight-normal);text-transform:none;color:rgb(var(--zn-text));background-color:transparent;border-color:rgb(var(--zn-border-color))}.filter-bar__operator--selected::part(base){color:rgb(var(--zn-primary));border-color:rgb(var(--zn-primary));background-color:rgba(var(--zn-primary),0.05)}.filter-bar__separator{flex:none;height:1px;margin:var(--zn-spacing-2x-small) 0;background-color:rgb(var(--zn-border-color))}`;var n8={1:"True",0:"False"},o8=350,a8=8,s8=8,l8={eq:"is",neq:"is not",gt:">",gte:"\u2265",lt:"<",lte:"\u2264",in:"is any of",nin:"is none of",before:"before",after:"after"},Tr=class extends S{constructor(){super(...arguments);this._formController=new re(this,{});this.filters=[];this.name="data-table-filter";this.value="";this.defaultFilters="";this.suggestions={};this._active=[];this._typing={};this._optionQuery={}}get validationMessage(){return""}get validity(){return et}checkValidity(){return!0}getForm(){return this._formController.getForm()}reportValidity(){return!0}setCustomValidity(){this._formController.updateValidity()}firstUpdated(t){super.firstUpdated(t),this._formController.updateValidity()}updated(t){super.updated(t);let r=this._pendingOpen;r&&(this._pendingOpen=void 0,requestAnimationFrame(()=>{let n=[...this.shadowRoot.querySelectorAll("zn-dropdown")].find(a=>a.dataset.key===r);n?.show().then(()=>requestAnimationFrame(()=>n.querySelector("zn-input")?.focus()))}))}willUpdate(t){super.willUpdate(t),(t.has("value")||t.has("filters"))&&this.hydrateFromValue(),t.has("filters")&&this._active.length===0&&this.defaultFilters.split(",").map(r=>r.trim()).filter(r=>r.length>0).forEach(r=>this.addFilter(r,!1))}disconnectedCallback(){super.disconnectedCallback(),this._textTimeout&&window.clearTimeout(this._textTimeout)}get activeCount(){return this._active.filter(t=>t.value.length>0).length}clear(){this._active=[],this.emitChange(),this.emit("zn-clear")}definition(t){return this.filters.find(r=>r.id===t)}operatorsFor(t){return t.operators?.length>0?t.operators:["eq"]}comparatorFor(t){return this.operatorsFor(t)[0]}operatorLabel(t){return l8[t]??nm[t].toLowerCase()}isMultiple(t){return t==="in"||t==="nin"}optionsFor(t){if(t.options)return t.options;if(t.type==="bool"||t.type==="boolean")return n8}addFilter(t,r=!0){if(this._active.some(a=>a.key===t))return;let n=this.definition(t);n&&(this._active=[...this._active,{key:t,comparator:this.comparatorFor(n),value:""}],r&&(this._pendingOpen=t,this.emitChange()))}removeFilter(t){this._active=this._active.filter(r=>r.key!==t),this.emitChange()}setValue(t,r,n,a){this._active=this._active.map(s=>s.key===t?{...s,value:r,label:n,timestamp:a}:s),this.emitChange()}setComparator(t,r,n){let a=this.isMultiple(r.comparator)&&!this.isMultiple(n)?this.selectedValues(t,r)[0]??"":r.value;this._active=this._active.map(s=>s.key===r.key?{...s,comparator:n,value:s.timestamp?this.serializeDate(s.timestamp,n,t.dateSubmitFormat):a}:s),this.emitChange()}toggleOption(t,r,n){if(!this.isMultiple(r.comparator)){this.setValue(r.key,r.value===n?"":n);return}let a=this.selectedValues(t,r),s=a.includes(n)?a.filter(l=>l!==n):[...a,n];this.setValue(r.key,s.join(" "))}selectedValues(t,r){return r.value.split(this.optionsFor(t)?" ":",").map(n=>n.trim()).filter(n=>n.length>0)}emitChange(){let t=this._active.filter(r=>r.value.length>0).map(r=>({key:r.key,comparator:r.comparator,value:r.value}));this.value=t.length>0?btoa(JSON.stringify(t)):"",this._formController.updateValidity(),this.emit("zn-filter-change")}hydrateFromValue(){if(!this.value||this.filters.length===0||this.activeCount>0)return;let t;try{t=JSON.parse(atob(this.value))}catch{return}if(!Array.isArray(t))return;let r=[];t.forEach(n=>{if(typeof n!="object"||n===null)return;let a=n;if(typeof a.key!="string")return;let s=this.definition(a.key);if(!s)return;let l=a.comparator||this.comparatorFor(s),d=Array.isArray(a.value)?a.value.join(" "):String(a.value??"");r.push({key:a.key,comparator:l,value:d})}),r.length>0&&(this._active=r)}handleDateInput(t,r,n){let a=n.target,s=a.timestamp;if(!s){this.setValue(r.key,"");return}this.setValue(r.key,this.serializeDate(s,r.comparator,t.dateSubmitFormat),a.value,s),t.type!=="dateTime"&&a.closest("zn-dropdown")?.hide()}serializeDate(t,r,n="legacy"){if(n==="timestamp")return t.toString();if(n==="iso"){let s=new Date(t);return new Date(s.getTime()-s.getTimezoneOffset()*6e4).toISOString()}if(r==="eq"||r==="neq")return(t/1e3).toString();let a=r==="before"?-1:1;return(Math.floor((Date.now()-t)/1e3/60)*a).toString()}handleTextInput(t,r){let a=r.target.value;this._typing={...this._typing,[t]:a},this._textTimeout&&window.clearTimeout(this._textTimeout),this._textTimeout=window.setTimeout(()=>this.setValue(t,a),o8)}suggestionsFor(t,r){let n=this.suggestions[r.key]??[];if(n.length===0)return[];let a=(this._typing[r.key]??r.value).split(",").pop().trim().toLowerCase(),s=this.selectedValues(t,r).map(l=>l.toLowerCase());return n.filter(l=>l.toLowerCase().includes(a)&&!s.includes(l.toLowerCase())).slice(0,a8)}applySuggestion(t,r,n,a){this._textTimeout&&window.clearTimeout(this._textTimeout);let s=this.isMultiple(r.comparator)?[...this.selectedValues(t,r),n].join(","):n;this._typing={...this._typing,[r.key]:s},this.setValue(r.key,s),this.isMultiple(r.comparator)||a.currentTarget.closest("zn-dropdown")?.hide()}humanize(t){return t.charAt(0).toUpperCase()+t.slice(1)}pillLabel(t,r){let n=this.humanize(t.name),a=this.selectedValues(t,r);if(a.length===0)return n;let s=this.operatorsFor(t).length>1?` ${this.operatorLabel(r.comparator)}`:"";if(a.length>1)return`${n}${s} (${a.length})`;let l=this.optionsFor(t),d=r.label??(l?l[a[0]]??a[0]:a[0]);return s?`${n}${s} ${d}`:`${n}: ${d}`}renderOperators(t,r){let n=this.operatorsFor(t);return n.length<2?F:u`
1017
+ </div>`}handleClick(t){let r=["menuitem","menuitemcheckbox"],n=t.composedPath(),a=n.find(h=>r.includes(h?.getAttribute?.("role")||""));if(!a)return;let s=n.find(h=>h?.getAttribute?.("role")==="menu");if(s!==this)return;let d=a;d.type==="checkbox"&&(d.checked=!d.checked),s?.closest("zn-dropdown")?.hide(),this.emit("zn-select",{detail:{item:d}})}handleKeyDown(t){if(t.key==="Enter"||t.key===" "){let r=this.getCurrentItem();t.preventDefault(),t.stopPropagation(),r?.click()}else if(["ArrowDown","ArrowUp","Home","End"].includes(t.key)){let r=this.getAllItems(),n=this.getCurrentItem(),a=n?r.indexOf(n):0;r.length>0&&(t.preventDefault(),t.stopPropagation(),t.key==="ArrowDown"?a++:t.key==="ArrowUp"?a--:t.key==="Home"?a=0:t.key==="End"&&(a=r.length-1),a<0&&(a=r.length-1),a>r.length-1&&(a=0),this.setCurrentItem(r[a]),r[a].focus())}}handleMouseDown(t){let r=t.target;this.isMenuItem(r)&&this.setCurrentItem(r)}handleSlotChange(){let t=this.getAllItems();t.length>0&&(this.setCurrentItem(t[0]),this.emit("zn-menu-ready")),this.propagateVariant()}updated(t){super.updated(t),t.has("variant")&&this.propagateVariant()}get itemVariant(){return this.variant==="shell"?"shell":"dropdown"}propagateVariant(){this.getAllItems().forEach(t=>t.setAttribute("variant",this.itemVariant))}isMenuItem(t){return t.tagName.toLowerCase()==="zn-menu-item"||["menuitem","menuitemcheckbox","menuitemradio"].includes(t.getAttribute("role")??"")}};nn.styles=_(U0),nn.dependencies={"zn-confirm":Ca,"zn-dropdown":hr,"zn-icon":oe,"zn-menu-item":xi,"zn-tooltip":gi},c([B("slot")],nn.prototype,"defaultSlot",2),c([p({attribute:"actions",type:Array})],nn.prototype,"actions",2),c([p({reflect:!0})],nn.prototype,"variant",2);var on=nn;nn.define("zn-menu");var j0=k`@keyframes rotate-gradient{from{--rotate:0deg}to{--rotate:360deg}}:host{text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-transform:none}*,*::before,*::after{box-sizing:border-box;border-width:0;border-style:solid;border-color:rgb(var(--zn-border-color))}[hidden]{display:none !important}.width-container,.form-container,.wide-form-container{height:100%;width:100%;margin:var(--zn-default-margin,0 auto)}.width-container{max-width:var(--zn-container)}.form-container{max-width:var(--zn-container-ph)}.wide-form-container{max-width:var(--zn-container-lg)}:host{display:block}.filter-bar{display:flex;flex-direction:row;align-items:center;flex-wrap:wrap;gap:var(--zn-spacing-x-small)}.filter-bar__clear::part(base){height:32px;min-height:32px;padding:0 var(--zn-spacing-x-small);font-weight:var(--zn-font-weight-normal);text-transform:none;white-space:nowrap}.filter-bar__clear::part(base){color:rgb(var(--zn-primary))}.filter-bar__chip{display:inline-flex;align-items:center;height:32px;padding-right:var(--zn-spacing-x-small);border:1px solid rgb(var(--zn-border-color));border-radius:var(--zn-border-radius-pill);background-color:rgb(var(--zn-panel))}.filter-bar__chip:hover{background-color:rgba(var(--zn-color-tab),0.5)}.filter-bar__pill::part(base),.filter-bar__pill::part(base):hover{border-color:transparent;background:transparent;padding-right:0}.filter-bar__remove::part(base){width:24px;min-width:24px;height:32px;min-height:32px;max-height:32px;padding:4px 0;background:transparent;background-clip:content-box;border-radius:var(--zn-border-radius-circle);color:var(--zn-text-color)}.filter-bar__remove::part(base):hover{background:rgb(var(--zn-color-border));background-clip:content-box}.filter-bar__editor{display:flex;flex-direction:column;align-items:stretch;overflow:hidden;border:1px solid rgb(var(--zn-border-color));border-radius:var(--zn-border-radius);background-color:rgb(var(--zn-panel));filter:drop-shadow(0 10px 8px rgba(0,0,0,0.04)) drop-shadow(0 4px 3px rgba(0,0,0,0.1))}.filter-bar__editor zn-datepicker{--zn-datepicker-inline-border-color:transparent}.filter-bar__editor zn-input{--zn-input-background-color:transparent;--zn-input-background-color-hover:transparent;--zn-input-background-color-focus:transparent;--zn-input-border-color:transparent;--zn-input-border-color-hover:transparent;--zn-input-border-color-focus:transparent;--zn-input-focus-ring-color:transparent;min-width:200px}.filter-bar zn-menu{--zn-menu-max-height:320px}.filter-bar__option-search{--zn-input-background-color:transparent;--zn-input-background-color-hover:transparent;--zn-input-background-color-focus:transparent;--zn-input-border-color:transparent;--zn-input-border-color-hover:transparent;--zn-input-border-color-focus:transparent;--zn-input-focus-ring-color:transparent;position:sticky;top:calc(-1 * var(--zn-spacing-2x-small));z-index:1;margin:calc(-1 * var(--zn-spacing-2x-small)) calc(-1 * var(--zn-spacing-2x-small)) 0;background-color:rgb(var(--zn-panel));border-bottom:1px solid rgb(var(--zn-border-color))}.filter-bar__suggestions{display:flex;flex-direction:column;align-items:stretch;max-height:220px;overflow-y:auto;border-top:1px solid rgb(var(--zn-border-color))}.filter-bar__suggestions ::-webkit-scrollbar{width:5px;height:5px}.filter-bar__suggestions{}.filter-bar__suggestions ::-webkit-scrollbar-track{background:transparent}.filter-bar__suggestions{}.filter-bar__suggestions ::-webkit-scrollbar-thumb{background:rgba(var(--inverse-base),0.2);border-radius:5px}.filter-bar__suggestions{}.filter-bar__suggestions ::-webkit-scrollbar-thumb:hover{background:rgba(var(--inverse-base),0.6)}.filter-bar__suggestion::part(base){justify-content:flex-start;padding:var(--zn-spacing-x-small) var(--zn-spacing-small);font-weight:var(--zn-font-weight-normal);text-transform:none;color:rgb(var(--zn-text));text-align:left}.filter-bar__operators{display:flex;flex-wrap:wrap;gap:var(--zn-spacing-2x-small);padding:var(--zn-spacing-x-small);border-bottom:1px solid rgb(var(--zn-border-color))}.filter-bar__operator::part(base){height:26px;min-height:26px;min-width:30px;padding:0 var(--zn-spacing-x-small);font-size:var(--zn-font-size-small);font-weight:var(--zn-font-weight-normal);text-transform:none;color:rgb(var(--zn-text));background-color:transparent;border-color:rgb(var(--zn-border-color))}.filter-bar__operator--selected::part(base){color:rgb(var(--zn-primary));border-color:rgb(var(--zn-primary));background-color:rgba(var(--zn-primary),0.05)}.filter-bar__separator{flex:none;height:1px;margin:var(--zn-spacing-2x-small) 0;background-color:rgb(var(--zn-border-color))}`;var n8={1:"True",0:"False"},o8=350,a8=8,s8=8,l8={eq:"is",neq:"is not",gt:">",gte:"\u2265",lt:"<",lte:"\u2264",in:"is any of",nin:"is none of",before:"before",after:"after"},Tr=class extends S{constructor(){super(...arguments);this._formController=new re(this,{});this.filters=[];this.name="data-table-filter";this.value="";this.defaultFilters="";this.suggestions={};this._active=[];this._typing={};this._optionQuery={}}get validationMessage(){return""}get validity(){return et}checkValidity(){return!0}getForm(){return this._formController.getForm()}reportValidity(){return!0}setCustomValidity(){this._formController.updateValidity()}firstUpdated(t){super.firstUpdated(t),this._formController.updateValidity()}updated(t){super.updated(t);let r=this._pendingOpen;r&&(this._pendingOpen=void 0,requestAnimationFrame(()=>{let n=[...this.shadowRoot.querySelectorAll("zn-dropdown")].find(a=>a.dataset.key===r);n?.show().then(()=>requestAnimationFrame(()=>n.querySelector("zn-input")?.focus()))}))}willUpdate(t){super.willUpdate(t),(t.has("value")||t.has("filters"))&&this.hydrateFromValue(),t.has("filters")&&this._active.length===0&&this.defaultFilters.split(",").map(r=>r.trim()).filter(r=>r.length>0).forEach(r=>this.addFilter(r,!1))}disconnectedCallback(){super.disconnectedCallback(),this._textTimeout&&window.clearTimeout(this._textTimeout)}get activeCount(){return this._active.filter(t=>t.value.length>0).length}clear(){this._active=[],this.emitChange(),this.emit("zn-clear")}definition(t){return this.filters.find(r=>r.id===t)}operatorsFor(t){return t.operators?.length>0?t.operators:["eq"]}comparatorFor(t){return this.operatorsFor(t)[0]}operatorLabel(t){return l8[t]??nm[t].toLowerCase()}isMultiple(t){return t==="in"||t==="nin"}optionsFor(t){if(t.options)return t.options;if(t.type==="bool"||t.type==="boolean")return n8}addFilter(t,r=!0){if(this._active.some(a=>a.key===t))return;let n=this.definition(t);n&&(this._active=[...this._active,{key:t,comparator:this.comparatorFor(n),value:""}],r&&(this._pendingOpen=t,this.emitChange()))}removeFilter(t){this._active=this._active.filter(r=>r.key!==t),this.emitChange()}setValue(t,r,n,a){this._active=this._active.map(s=>s.key===t?{...s,value:r,label:n,timestamp:a}:s),this.emitChange()}setComparator(t,r,n){let a=this.isMultiple(r.comparator)&&!this.isMultiple(n)?this.selectedValues(t,r)[0]??"":r.value;this._active=this._active.map(s=>s.key===r.key?{...s,comparator:n,value:s.timestamp?this.serializeDate(s.timestamp,n,t.dateSubmitFormat):a}:s),this.emitChange()}toggleOption(t,r,n){if(!this.isMultiple(r.comparator)){this.setValue(r.key,r.value===n?"":n);return}let a=this.selectedValues(t,r),s=a.includes(n)?a.filter(l=>l!==n):[...a,n];this.setValue(r.key,s.join(" "))}selectedValues(t,r){return r.value.split(this.optionsFor(t)?" ":",").map(n=>n.trim()).filter(n=>n.length>0)}emitChange(){let t=this._active.filter(r=>r.value.length>0).map(r=>({key:r.key,comparator:r.comparator,value:r.value}));this.value=t.length>0?btoa(JSON.stringify(t)):"",this._formController.updateValidity(),this.emit("zn-filter-change")}hydrateFromValue(){if(!this.value||this.filters.length===0||this.activeCount>0)return;let t;try{t=JSON.parse(atob(this.value))}catch{return}if(!Array.isArray(t))return;let r=[];t.forEach(n=>{if(typeof n!="object"||n===null)return;let a=n;if(typeof a.key!="string")return;let s=this.definition(a.key);if(!s)return;let l=a.comparator||this.comparatorFor(s),d=Array.isArray(a.value)?a.value.join(" "):String(a.value??"");r.push({key:a.key,comparator:l,value:d})}),r.length>0&&(this._active=r)}handleDateInput(t,r,n){let a=n.target,s=a.timestamp;if(!s){this.setValue(r.key,"");return}this.setValue(r.key,this.serializeDate(s,r.comparator,t.dateSubmitFormat),a.value,s),t.type!=="dateTime"&&a.closest("zn-dropdown")?.hide()}serializeDate(t,r,n="legacy"){if(n==="timestamp")return t.toString();if(n==="iso"){let s=new Date(t);return new Date(s.getTime()-s.getTimezoneOffset()*6e4).toISOString()}if(r==="eq"||r==="neq")return(t/1e3).toString();let a=r==="before"?-1:1;return(Math.floor((Date.now()-t)/1e3/60)*a).toString()}handleTextInput(t,r){let a=r.target.value;this._typing={...this._typing,[t]:a},this._textTimeout&&window.clearTimeout(this._textTimeout),this._textTimeout=window.setTimeout(()=>this.setValue(t,a),o8)}suggestionsFor(t,r){let n=this.suggestions[r.key]??[];if(n.length===0)return[];let a=(this._typing[r.key]??r.value).split(",").pop().trim().toLowerCase(),s=this.selectedValues(t,r).map(l=>l.toLowerCase());return n.filter(l=>l.toLowerCase().includes(a)&&!s.includes(l.toLowerCase())).slice(0,a8)}applySuggestion(t,r,n,a){this._textTimeout&&window.clearTimeout(this._textTimeout);let s=this.isMultiple(r.comparator)?[...this.selectedValues(t,r),n].join(","):n;this._typing={...this._typing,[r.key]:s},this.setValue(r.key,s),this.isMultiple(r.comparator)||a.currentTarget.closest("zn-dropdown")?.hide()}humanize(t){return t.charAt(0).toUpperCase()+t.slice(1)}pillLabel(t,r){let n=this.humanize(t.name),a=this.selectedValues(t,r);if(a.length===0)return n;let s=this.operatorsFor(t).length>1?` ${this.operatorLabel(r.comparator)}`:"";if(a.length>1)return`${n}${s} (${a.length})`;let l=this.optionsFor(t),d=r.label??(l?l[a[0]]??a[0]:a[0]);return s?`${n}${s} ${d}`:`${n}: ${d}`}renderOperators(t,r){let n=this.operatorsFor(t);return n.length<2?F:u`
1018
1018
  <div class="filter-bar__operators">
1019
1019
  ${n.map(a=>u`
1020
1020
  <zn-button class="${M({"filter-bar__operator":!0,"filter-bar__operator--selected":a===r.comparator})}"
@@ -1117,7 +1117,7 @@ import{a as Hn,b as X3,c as kr,d as c,e as V}from"./chunks/zn.UBLZO6CI.js";var a
1117
1117
  ${this._active.length>0?u`
1118
1118
  <zn-button class="filter-bar__clear" text @click="${this.clear}">Clear</zn-button>`:F}
1119
1119
  </div>
1120
- `}};Tr.styles=_(j0),Tr.dependencies={"zn-button":Ee,"zn-datepicker":sm,"zn-dropdown":ur,"zn-input":lt,"zn-menu":on,"zn-menu-item":xi},c([p({type:Array})],Tr.prototype,"filters",2),c([p()],Tr.prototype,"name",2),c([p()],Tr.prototype,"value",2),c([p({attribute:"default-filters"})],Tr.prototype,"defaultFilters",2),c([p({attribute:!1})],Tr.prototype,"suggestions",2),c([I()],Tr.prototype,"_active",2),c([I()],Tr.prototype,"_typing",2),c([I()],Tr.prototype,"_optionQuery",2);var Zd=Tr;Tr.define("zn-data-table-filter");var G0=k`@keyframes rotate-gradient{from{--rotate:0deg}to{--rotate:360deg}}:host{text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-transform:none}*,*::before,*::after{box-sizing:border-box;border-width:0;border-style:solid;border-color:rgb(var(--zn-border-color))}[hidden]{display:none !important}.width-container,.form-container,.wide-form-container{height:100%;width:100%;margin:var(--zn-default-margin,0 auto)}.width-container{max-width:var(--zn-container)}.form-container{max-width:var(--zn-container-ph)}.wide-form-container{max-width:var(--zn-container-lg)}:host{display:block}.data-table-search{display:flex;align-items:center;gap:var(--zn-spacing-small);min-width:200px}zn-input::part(form-control-input){margin:var(--zn-focus-ring-width)}zn-input::part(form-control-help-text){position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}zn-input::part(clear-button){width:auto;margin-inline-end:var(--zn-spacing-small)}.data-table-search__tooltip{display:flex;align-items:center}.data-table-search__tooltip zn-icon{color:var(--zn-input-icon-color);cursor:help}`;var Jr=class extends S{constructor(){super(...arguments);this._formController=new re(this,{});this.name="search";this.value="";this.placeholder="Search...";this.helpText="";this.debounceDelay=350;this.handleInput=t=>{let r=t.target;this.value=r.value,this._formController.updateValidity(),this._searchTimeout&&window.clearTimeout(this._searchTimeout),this._searchTimeout=window.setTimeout(()=>{this.emitSearchChange()},this.debounceDelay)};this.handleClear=()=>{this._searchTimeout&&window.clearTimeout(this._searchTimeout),this.value="";let t=this.shadowRoot?.querySelector("zn-input");t&&(t.value=""),this._formController.updateValidity(),this.emitSearchChange()}}get validationMessage(){return""}get validity(){return et}checkValidity(){return!0}getForm(){return this._formController.getForm()}reportValidity(){return!0}setCustomValidity(){this._formController.updateValidity()}firstUpdated(t){super.firstUpdated(t),this._formController.updateValidity()}getFormData(){let t={},r=["zn-input","zn-select","zn-query-builder","zn-multiselect","zn-params-select","zn-datepicker","input","select","textarea","zn-cols","zn-input-group"],n=s=>{if(!r.includes(s.tagName.toLowerCase()))return;let l=s,d=l.value,h=l.name||s.getAttribute("name");h&&(t[h]=d)};return this.shadowRoot?.querySelectorAll("slot")?.forEach(s=>{s.assignedElements({flatten:!0}).forEach(l=>{n(l),l.querySelectorAll(r.join(",")).forEach(d=>n(d))})}),t}disconnectedCallback(){super.disconnectedCallback(),this._searchTimeout&&window.clearTimeout(this._searchTimeout)}emitSearchChange(){let t=this.getFormData();this.emit("zn-search-change",{detail:{value:this.value,formData:t,searchUri:this.searchUri}})}render(){return u`
1120
+ `}};Tr.styles=_(j0),Tr.dependencies={"zn-button":Ee,"zn-datepicker":sm,"zn-dropdown":hr,"zn-input":lt,"zn-menu":on,"zn-menu-item":xi},c([p({type:Array})],Tr.prototype,"filters",2),c([p()],Tr.prototype,"name",2),c([p()],Tr.prototype,"value",2),c([p({attribute:"default-filters"})],Tr.prototype,"defaultFilters",2),c([p({attribute:!1})],Tr.prototype,"suggestions",2),c([I()],Tr.prototype,"_active",2),c([I()],Tr.prototype,"_typing",2),c([I()],Tr.prototype,"_optionQuery",2);var Zd=Tr;Tr.define("zn-data-table-filter");var G0=k`@keyframes rotate-gradient{from{--rotate:0deg}to{--rotate:360deg}}:host{text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-transform:none}*,*::before,*::after{box-sizing:border-box;border-width:0;border-style:solid;border-color:rgb(var(--zn-border-color))}[hidden]{display:none !important}.width-container,.form-container,.wide-form-container{height:100%;width:100%;margin:var(--zn-default-margin,0 auto)}.width-container{max-width:var(--zn-container)}.form-container{max-width:var(--zn-container-ph)}.wide-form-container{max-width:var(--zn-container-lg)}:host{display:block}.data-table-search{display:flex;align-items:center;gap:var(--zn-spacing-small);min-width:200px}zn-input::part(form-control-input){margin:var(--zn-focus-ring-width)}zn-input::part(form-control-help-text){position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}zn-input::part(clear-button){width:auto;margin-inline-end:var(--zn-spacing-small)}.data-table-search__tooltip{display:flex;align-items:center}.data-table-search__tooltip zn-icon{color:var(--zn-input-icon-color);cursor:help}`;var Jr=class extends S{constructor(){super(...arguments);this._formController=new re(this,{});this.name="search";this.value="";this.placeholder="Search...";this.helpText="";this.debounceDelay=350;this.handleInput=t=>{let r=t.target;this.value=r.value,this._formController.updateValidity(),this._searchTimeout&&window.clearTimeout(this._searchTimeout),this._searchTimeout=window.setTimeout(()=>{this.emitSearchChange()},this.debounceDelay)};this.handleClear=()=>{this._searchTimeout&&window.clearTimeout(this._searchTimeout),this.value="";let t=this.shadowRoot?.querySelector("zn-input");t&&(t.value=""),this._formController.updateValidity(),this.emitSearchChange()}}get validationMessage(){return""}get validity(){return et}checkValidity(){return!0}getForm(){return this._formController.getForm()}reportValidity(){return!0}setCustomValidity(){this._formController.updateValidity()}firstUpdated(t){super.firstUpdated(t),this._formController.updateValidity()}getFormData(){let t={},r=["zn-input","zn-select","zn-query-builder","zn-multiselect","zn-params-select","zn-datepicker","input","select","textarea","zn-cols","zn-input-group"],n=s=>{if(!r.includes(s.tagName.toLowerCase()))return;let l=s,d=l.value,h=l.name||s.getAttribute("name");h&&(t[h]=d)};return this.shadowRoot?.querySelectorAll("slot")?.forEach(s=>{s.assignedElements({flatten:!0}).forEach(l=>{n(l),l.querySelectorAll(r.join(",")).forEach(d=>n(d))})}),t}disconnectedCallback(){super.disconnectedCallback(),this._searchTimeout&&window.clearTimeout(this._searchTimeout)}emitSearchChange(){let t=this.getFormData();this.emit("zn-search-change",{detail:{value:this.value,formData:t,searchUri:this.searchUri}})}render(){return u`
1121
1121
  <div class="data-table-search">
1122
1122
  <zn-input
1123
1123
  type="search"
@@ -1629,7 +1629,7 @@ import{a as Hn,b as X3,c as kr,d as c,e as V}from"./chunks/zn.UBLZO6CI.js";var a
1629
1629
  </zn-menu-item>`})}
1630
1630
  </zn-menu>
1631
1631
  </zn-dropdown>
1632
- </td>`}};be.styles=[_(xs),_(J0)],be.dependencies={"zn-alert":Bu,"zn-button":Ee,"zn-empty-state":cm,"zn-chip":jn,"zn-hover-container":dm,"zn-dropdown":ur,"zn-menu":on,"zn-menu-item":xi,"zn-panel":pm,"zn-button-group":jl,"zn-confirm":Ca,"zn-skeleton":hm,"zn-style":um,"zn-data-table-search":lm},be._sharableKnownKeys=["search","filter","sortColumn","sortDirection","page","perPage"],c([p({attribute:"data-uri"})],be.prototype,"dataUri",2),c([p({attribute:"data",type:Object})],be.prototype,"data",2),c([p({attribute:"sort-column"})],be.prototype,"sortColumn",2),c([p({attribute:"sort-direction"})],be.prototype,"sortDirection",2),c([p({attribute:"local-sort",type:Boolean})],be.prototype,"localSort",2),c([p({attribute:"filter"})],be.prototype,"filter",2),c([p({attribute:"search"})],be.prototype,"search",2),c([p({attribute:"wide-column"})],be.prototype,"wideColumn",2),c([p({attribute:"key"})],be.prototype,"key",2),c([p({attribute:"headers",type:Object})],be.prototype,"headers",2),c([p({attribute:!1})],be.prototype,"displayTemplates",2),c([p({attribute:"hide-headers",type:Object})],be.prototype,"hiddenHeaders",2),c([p({attribute:"hide-columns",type:Object})],be.prototype,"hiddenColumns",2),c([p({attribute:"unsortable-headers",type:Object})],be.prototype,"unsortableHeaders",2),c([p({attribute:"unsortable",type:Boolean})],be.prototype,"unsortable",2),c([p({attribute:"hide-pagination",type:Boolean})],be.prototype,"hidePagination",2),c([p({attribute:"hide-column-select",type:Boolean})],be.prototype,"hideColumnSelect",2),c([p({attribute:"hide-refresh",type:Boolean})],be.prototype,"hideRefresh",2),c([p({type:Boolean})],be.prototype,"standalone",2),c([p()],be.prototype,"caption",2),c([p({attribute:"empty-state-caption"})],be.prototype,"emptyStateCaption",2),c([p({attribute:"empty-state-icon"})],be.prototype,"emptyStateIcon",2),c([p()],be.prototype,"filters",2),c([p()],be.prototype,"method",2),c([p({attribute:"no-initial-load",type:Boolean})],be.prototype,"noInitialLoad",2),c([p({attribute:"sharable",type:Boolean})],be.prototype,"sharable",2),c([p({attribute:"wrap-search-fields",type:Boolean})],be.prototype,"wrapSearchFields",2),c([p({attribute:"group-by"})],be.prototype,"groupBy",2),c([p()],be.prototype,"groups",2),c([p({attribute:"per-page-size",type:Number})],be.prototype,"itemsPerPage",2),c([I()],be.prototype,"_deselectedColumns",2),c([I()],be.prototype,"_filtersOpen",2);var ws=be;var h8=ws;ws.define("zn-data-table");var e1=k`@keyframes rotate-gradient{from{--rotate:0deg}to{--rotate:360deg}}:host{text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-transform:none}*,*::before,*::after{box-sizing:border-box;border-width:0;border-style:solid;border-color:rgb(var(--zn-border-color))}[hidden]{display:none !important}.width-container,.form-container,.wide-form-container{height:100%;width:100%;margin:var(--zn-default-margin,0 auto)}.width-container{max-width:var(--zn-container)}.form-container{max-width:var(--zn-container-ph)}.wide-form-container{max-width:var(--zn-container-lg)}:host{display:block;--zn-col-basis:250px;--col-width:23%}:host([contents]){display:contents}.cols{display:flex;flex-wrap:wrap;flex-grow:1;flex-shrink:1;width:100%;container-type:inline-size;gap:var(--zn-gap);max-width:100%}.cols ::slotted(.zn-col-1){flex-basis:calc(var(--zn-col-basis) * 1);min-width:calc(var(--col-width) * 1);flex-grow:1}.cols ::slotted(.zn-col-2){flex-basis:calc(var(--zn-col-basis) * 2);min-width:calc(var(--col-width) * 2);flex-grow:2}.cols ::slotted(.zn-col-3){flex-basis:calc(var(--zn-col-basis) * 3);min-width:calc(var(--col-width) * 3);flex-grow:3}.cols ::slotted(.zn-col-4){flex-basis:calc(var(--zn-col-basis) * 4);min-width:calc(var(--col-width) * 4);flex-grow:4}.cols ::slotted(.zn-col-5){flex-basis:calc(var(--zn-col-basis) * 5);min-width:calc(var(--col-width) * 5);flex-grow:5}.cols ::slotted(.zn-col-6){flex-basis:calc(var(--zn-col-basis) * 6);min-width:calc(var(--col-width) * 6);flex-grow:6}.cols ::slotted(.zn-col-7){flex-basis:calc(var(--zn-col-basis) * 7);min-width:calc(var(--col-width) * 7);flex-grow:7}.cols ::slotted(.zn-col-8){flex-basis:calc(var(--zn-col-basis) * 8);min-width:calc(var(--col-width) * 8);flex-grow:8}.cols ::slotted(.zn-col-9){flex-basis:calc(var(--zn-col-basis) * 9);min-width:calc(var(--col-width) * 9);flex-grow:9}.cols ::slotted(.zn-col-10){flex-basis:calc(var(--zn-col-basis) * 10);min-width:calc(var(--col-width) * 10);flex-grow:10}.cols ::slotted(.zn-col-11){flex-basis:calc(var(--zn-col-basis) * 11);min-width:calc(var(--col-width) * 11);flex-grow:11}.cols ::slotted(.zn-col-12){flex-basis:calc(var(--zn-col-basis) * 12);min-width:calc(var(--col-width) * 12);flex-grow:12}.cols--mc-1{--col-width:calc(100% / 2)}.cols--mc-2{--col-width:calc(100% / 3)}.cols--mc-3{--col-width:calc(100% / 4)}.cols--mc-4{--col-width:calc(100% / 5)}.cols--mc-5{--col-width:calc(100% / 6)}.cols--mc-6{--col-width:calc(100% / 7)}.cols--mc-7{--col-width:calc(100% / 8)}.cols--mc-8{--col-width:calc(100% / 9)}.cols--mc-9{--col-width:calc(100% / 10)}.cols--mc-10{--col-width:calc(100% / 11)}.cols--mc-11{--col-width:calc(100% / 12)}.cols--mc-12{--col-width:calc(100% / 13)}.cols--layout-121 ::slotted(.zn-col-2){order:-1;min-width:100%}@container (min-width:1440px){.cols--layout-121 ::slotted(.zn-col-2){order:initial;min-width:46%}}.cols--divide ::slotted(*:not(:last-child)){position:relative}.cols--divide ::slotted(*:not(:last-child)):after{content:"";position:absolute;display:block;width:1px;top:0;height:100%;max-height:100%;right:calc(var(--zn-spacing-small) / 2 * -1);background-color:rgb(var(--zn-border-color))}.cols--no-gap{gap:0}.cols--border{overflow:hidden}.cols--border ::slotted(*){position:relative;padding-bottom:var(--zn-spacing-small)}.cols--border ::slotted(*):before{content:"";position:absolute;bottom:-1px;left:-100vw;right:-5px;z-index:1111;border-bottom:1px solid rgb(var(--zn-border-color)) !important}.cols ::slotted([stack-split]){display:flex;flex-direction:column;gap:var(--zn-gap)}.cols--pad{padding:var(--zn-spacing-2x-small)}.cols--pad-x{padding-inline:var(--zn-spacing-2x-small)}.cols--pad-y{padding-block:var(--zn-spacing-2x-small)}@container (max-width:359px){:host([stack-at=sm]) .cols ::slotted(*){--zn-stacked:1;--zn-stack-basis:100%;flex-basis:100%;min-width:100%;max-width:100%}:host([stack-at=sm]) .cols ::slotted([stack-split]){display:contents}:host([stack-at=sm]) .cols--divide ::slotted(*:not(:last-child)):after{display:none}}@container (max-width:479px){:host([stack-at=smp]) .cols ::slotted(*){--zn-stacked:1;--zn-stack-basis:100%;flex-basis:100%;min-width:100%;max-width:100%}:host([stack-at=smp]) .cols ::slotted([stack-split]){display:contents}:host([stack-at=smp]) .cols--divide ::slotted(*:not(:last-child)):after{display:none}}@container (max-width:599px){:host([stack-at=ph]) .cols ::slotted(*){--zn-stacked:1;--zn-stack-basis:100%;flex-basis:100%;min-width:100%;max-width:100%}:host([stack-at=ph]) .cols ::slotted([stack-split]){display:contents}:host([stack-at=ph]) .cols--divide ::slotted(*:not(:last-child)):after{display:none}}@container (max-width:767px){:host([stack-at=md]) .cols ::slotted(*){--zn-stacked:1;--zn-stack-basis:100%;flex-basis:100%;min-width:100%;max-width:100%}:host([stack-at=md]) .cols ::slotted([stack-split]){display:contents}:host([stack-at=md]) .cols--divide ::slotted(*:not(:last-child)):after{display:none}}@container (max-width:1099px){:host([stack-at=lg]) .cols ::slotted(*){--zn-stacked:1;--zn-stack-basis:100%;flex-basis:100%;min-width:100%;max-width:100%}:host([stack-at=lg]) .cols ::slotted([stack-split]){display:contents}:host([stack-at=lg]) .cols--divide ::slotted(*:not(:last-child)):after{display:none}}@container (max-width:1439px){:host([stack-at=hd]) .cols ::slotted(*){--zn-stacked:1;--zn-stack-basis:100%;flex-basis:100%;min-width:100%;max-width:100%}:host([stack-at=hd]) .cols ::slotted([stack-split]){display:contents}:host([stack-at=hd]) .cols--divide ::slotted(*:not(:last-child)):after{display:none}}@container (max-width:1959px){:host([stack-at="3k"]) .cols ::slotted(*){--zn-stacked:1;--zn-stack-basis:100%;flex-basis:100%;min-width:100%;max-width:100%}:host([stack-at="3k"]) .cols ::slotted([stack-split]){display:contents}:host([stack-at="3k"]) .cols--divide ::slotted(*:not(:last-child)):after{display:none}}@container (max-width:2559px){:host([stack-at="4k"]) .cols ::slotted(*){--zn-stacked:1;--zn-stack-basis:100%;flex-basis:100%;min-width:100%;max-width:100%}:host([stack-at="4k"]) .cols ::slotted([stack-split]){display:contents}:host([stack-at="4k"]) .cols--divide ::slotted(*:not(:last-child)):after{display:none}}`;var t1={first:-1,high:-1,last:1,low:1},u8="lg",$r=class extends S{constructor(){super(...arguments);this.layout="";this.stackAt="";this.maxColumns=0;this.noGap=!1;this.border=!1;this.divide=!1;this.childObserver=new MutationObserver(()=>this.requestUpdate())}connectedCallback(){super.connectedCallback(),this.childObserver.observe(this,{childList:!0})}disconnectedCallback(){super.disconnectedCallback(),this.childObserver.disconnect()}stackOrder(t){let r=t.getAttribute("stack-order");if(r===null)return null;let n=r.trim().toLowerCase();if(n in t1)return t1[n];let a=parseInt(n,10);return isNaN(a)?null:a}applyStackOrder(t,r){let n=this.stackOrder(t);return t.style.order=n===null?"":`calc(var(--zn-stacked, 0) * ${n})`,r&&(t.style.flexBasis="var(--zn-stack-basis, auto)"),n}render(){let t=this.layout.split(/[\s,]+/).map(d=>parseInt(d)).filter(d=>!!d);t.length===0&&t.push(1,1,1,1),this.layout=t.join(","),this.maxColumns=t.reduce((d,h)=>d+h,0);let r="zn-col-",n=Array.from(this.querySelectorAll(":scope > *:not([slot])")),a=t.length,s=n.length-(n.length%a||a),l=!1;return n.forEach((d,h)=>{let m=d.className.split(" ").filter(b=>!b.startsWith(r));d.className=m.join(" ");let f=h%a;d.classList.add(r+t[f]),this.border&&h>=s?d.style.overflow="hidden":d.style.overflow="",l=this.applyStackOrder(d,!1)!==null||l,d.hasAttribute("stack-split")&&(l=!0,this.childObserver.observe(d,{childList:!0}),Array.from(d.children).forEach(b=>this.applyStackOrder(b,!0)))}),l&&!this.stackAt&&(this.stackAt=u8),u`
1632
+ </td>`}};be.styles=[_(xs),_(J0)],be.dependencies={"zn-alert":Bu,"zn-button":Ee,"zn-empty-state":cm,"zn-chip":jn,"zn-hover-container":dm,"zn-dropdown":hr,"zn-menu":on,"zn-menu-item":xi,"zn-panel":pm,"zn-button-group":jl,"zn-confirm":Ca,"zn-skeleton":hm,"zn-style":um,"zn-data-table-search":lm},be._sharableKnownKeys=["search","filter","sortColumn","sortDirection","page","perPage"],c([p({attribute:"data-uri"})],be.prototype,"dataUri",2),c([p({attribute:"data",type:Object})],be.prototype,"data",2),c([p({attribute:"sort-column"})],be.prototype,"sortColumn",2),c([p({attribute:"sort-direction"})],be.prototype,"sortDirection",2),c([p({attribute:"local-sort",type:Boolean})],be.prototype,"localSort",2),c([p({attribute:"filter"})],be.prototype,"filter",2),c([p({attribute:"search"})],be.prototype,"search",2),c([p({attribute:"wide-column"})],be.prototype,"wideColumn",2),c([p({attribute:"key"})],be.prototype,"key",2),c([p({attribute:"headers",type:Object})],be.prototype,"headers",2),c([p({attribute:!1})],be.prototype,"displayTemplates",2),c([p({attribute:"hide-headers",type:Object})],be.prototype,"hiddenHeaders",2),c([p({attribute:"hide-columns",type:Object})],be.prototype,"hiddenColumns",2),c([p({attribute:"unsortable-headers",type:Object})],be.prototype,"unsortableHeaders",2),c([p({attribute:"unsortable",type:Boolean})],be.prototype,"unsortable",2),c([p({attribute:"hide-pagination",type:Boolean})],be.prototype,"hidePagination",2),c([p({attribute:"hide-column-select",type:Boolean})],be.prototype,"hideColumnSelect",2),c([p({attribute:"hide-refresh",type:Boolean})],be.prototype,"hideRefresh",2),c([p({type:Boolean})],be.prototype,"standalone",2),c([p()],be.prototype,"caption",2),c([p({attribute:"empty-state-caption"})],be.prototype,"emptyStateCaption",2),c([p({attribute:"empty-state-icon"})],be.prototype,"emptyStateIcon",2),c([p()],be.prototype,"filters",2),c([p()],be.prototype,"method",2),c([p({attribute:"no-initial-load",type:Boolean})],be.prototype,"noInitialLoad",2),c([p({attribute:"sharable",type:Boolean})],be.prototype,"sharable",2),c([p({attribute:"wrap-search-fields",type:Boolean})],be.prototype,"wrapSearchFields",2),c([p({attribute:"group-by"})],be.prototype,"groupBy",2),c([p()],be.prototype,"groups",2),c([p({attribute:"per-page-size",type:Number})],be.prototype,"itemsPerPage",2),c([I()],be.prototype,"_deselectedColumns",2),c([I()],be.prototype,"_filtersOpen",2);var ws=be;var h8=ws;ws.define("zn-data-table");var e1=k`@keyframes rotate-gradient{from{--rotate:0deg}to{--rotate:360deg}}:host{text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-transform:none}*,*::before,*::after{box-sizing:border-box;border-width:0;border-style:solid;border-color:rgb(var(--zn-border-color))}[hidden]{display:none !important}.width-container,.form-container,.wide-form-container{height:100%;width:100%;margin:var(--zn-default-margin,0 auto)}.width-container{max-width:var(--zn-container)}.form-container{max-width:var(--zn-container-ph)}.wide-form-container{max-width:var(--zn-container-lg)}:host{display:block;--zn-col-basis:250px;--col-width:23%}:host([contents]){display:contents}.cols{display:flex;flex-wrap:wrap;flex-grow:1;flex-shrink:1;width:100%;container-type:inline-size;gap:var(--zn-gap);max-width:100%}.cols ::slotted(.zn-col-1){flex-basis:calc(var(--zn-col-basis) * 1);min-width:calc(var(--col-width) * 1);flex-grow:1}.cols ::slotted(.zn-col-2){flex-basis:calc(var(--zn-col-basis) * 2);min-width:calc(var(--col-width) * 2);flex-grow:2}.cols ::slotted(.zn-col-3){flex-basis:calc(var(--zn-col-basis) * 3);min-width:calc(var(--col-width) * 3);flex-grow:3}.cols ::slotted(.zn-col-4){flex-basis:calc(var(--zn-col-basis) * 4);min-width:calc(var(--col-width) * 4);flex-grow:4}.cols ::slotted(.zn-col-5){flex-basis:calc(var(--zn-col-basis) * 5);min-width:calc(var(--col-width) * 5);flex-grow:5}.cols ::slotted(.zn-col-6){flex-basis:calc(var(--zn-col-basis) * 6);min-width:calc(var(--col-width) * 6);flex-grow:6}.cols ::slotted(.zn-col-7){flex-basis:calc(var(--zn-col-basis) * 7);min-width:calc(var(--col-width) * 7);flex-grow:7}.cols ::slotted(.zn-col-8){flex-basis:calc(var(--zn-col-basis) * 8);min-width:calc(var(--col-width) * 8);flex-grow:8}.cols ::slotted(.zn-col-9){flex-basis:calc(var(--zn-col-basis) * 9);min-width:calc(var(--col-width) * 9);flex-grow:9}.cols ::slotted(.zn-col-10){flex-basis:calc(var(--zn-col-basis) * 10);min-width:calc(var(--col-width) * 10);flex-grow:10}.cols ::slotted(.zn-col-11){flex-basis:calc(var(--zn-col-basis) * 11);min-width:calc(var(--col-width) * 11);flex-grow:11}.cols ::slotted(.zn-col-12){flex-basis:calc(var(--zn-col-basis) * 12);min-width:calc(var(--col-width) * 12);flex-grow:12}.cols--mc-1{--col-width:calc(100% / 2)}.cols--mc-2{--col-width:calc(100% / 3)}.cols--mc-3{--col-width:calc(100% / 4)}.cols--mc-4{--col-width:calc(100% / 5)}.cols--mc-5{--col-width:calc(100% / 6)}.cols--mc-6{--col-width:calc(100% / 7)}.cols--mc-7{--col-width:calc(100% / 8)}.cols--mc-8{--col-width:calc(100% / 9)}.cols--mc-9{--col-width:calc(100% / 10)}.cols--mc-10{--col-width:calc(100% / 11)}.cols--mc-11{--col-width:calc(100% / 12)}.cols--mc-12{--col-width:calc(100% / 13)}.cols--layout-121 ::slotted(.zn-col-2){order:-1;min-width:100%}@container (min-width:1440px){.cols--layout-121 ::slotted(.zn-col-2){order:initial;min-width:46%}}.cols--divide ::slotted(*:not(:last-child)){position:relative}.cols--divide ::slotted(*:not(:last-child)):after{content:"";position:absolute;display:block;width:1px;top:0;height:100%;max-height:100%;right:calc(var(--zn-spacing-small) / 2 * -1);background-color:rgb(var(--zn-border-color))}.cols--no-gap{gap:0}.cols--border{overflow:hidden}.cols--border ::slotted(*){position:relative;padding-bottom:var(--zn-spacing-small)}.cols--border ::slotted(*):before{content:"";position:absolute;bottom:-1px;left:-100vw;right:-5px;z-index:1111;border-bottom:1px solid rgb(var(--zn-border-color)) !important}.cols ::slotted([stack-split]){display:flex;flex-direction:column;gap:var(--zn-gap)}.cols--pad{padding:var(--zn-spacing-2x-small)}.cols--pad-x{padding-inline:var(--zn-spacing-2x-small)}.cols--pad-y{padding-block:var(--zn-spacing-2x-small)}@container (max-width:359px){:host([stack-at=sm]) .cols ::slotted(*){--zn-stacked:1;--zn-stack-basis:100%;flex-basis:100%;min-width:100%;max-width:100%}:host([stack-at=sm]) .cols ::slotted([stack-split]){display:contents}:host([stack-at=sm]) .cols--divide ::slotted(*:not(:last-child)):after{display:none}}@container (max-width:479px){:host([stack-at=smp]) .cols ::slotted(*){--zn-stacked:1;--zn-stack-basis:100%;flex-basis:100%;min-width:100%;max-width:100%}:host([stack-at=smp]) .cols ::slotted([stack-split]){display:contents}:host([stack-at=smp]) .cols--divide ::slotted(*:not(:last-child)):after{display:none}}@container (max-width:599px){:host([stack-at=ph]) .cols ::slotted(*){--zn-stacked:1;--zn-stack-basis:100%;flex-basis:100%;min-width:100%;max-width:100%}:host([stack-at=ph]) .cols ::slotted([stack-split]){display:contents}:host([stack-at=ph]) .cols--divide ::slotted(*:not(:last-child)):after{display:none}}@container (max-width:767px){:host([stack-at=md]) .cols ::slotted(*){--zn-stacked:1;--zn-stack-basis:100%;flex-basis:100%;min-width:100%;max-width:100%}:host([stack-at=md]) .cols ::slotted([stack-split]){display:contents}:host([stack-at=md]) .cols--divide ::slotted(*:not(:last-child)):after{display:none}}@container (max-width:1099px){:host([stack-at=lg]) .cols ::slotted(*){--zn-stacked:1;--zn-stack-basis:100%;flex-basis:100%;min-width:100%;max-width:100%}:host([stack-at=lg]) .cols ::slotted([stack-split]){display:contents}:host([stack-at=lg]) .cols--divide ::slotted(*:not(:last-child)):after{display:none}}@container (max-width:1439px){:host([stack-at=hd]) .cols ::slotted(*){--zn-stacked:1;--zn-stack-basis:100%;flex-basis:100%;min-width:100%;max-width:100%}:host([stack-at=hd]) .cols ::slotted([stack-split]){display:contents}:host([stack-at=hd]) .cols--divide ::slotted(*:not(:last-child)):after{display:none}}@container (max-width:1959px){:host([stack-at="3k"]) .cols ::slotted(*){--zn-stacked:1;--zn-stack-basis:100%;flex-basis:100%;min-width:100%;max-width:100%}:host([stack-at="3k"]) .cols ::slotted([stack-split]){display:contents}:host([stack-at="3k"]) .cols--divide ::slotted(*:not(:last-child)):after{display:none}}@container (max-width:2559px){:host([stack-at="4k"]) .cols ::slotted(*){--zn-stacked:1;--zn-stack-basis:100%;flex-basis:100%;min-width:100%;max-width:100%}:host([stack-at="4k"]) .cols ::slotted([stack-split]){display:contents}:host([stack-at="4k"]) .cols--divide ::slotted(*:not(:last-child)):after{display:none}}`;var t1={first:-1,high:-1,last:1,low:1},u8="lg",$r=class extends S{constructor(){super(...arguments);this.layout="";this.stackAt="";this.maxColumns=0;this.noGap=!1;this.border=!1;this.divide=!1;this.childObserver=new MutationObserver(()=>this.requestUpdate())}connectedCallback(){super.connectedCallback(),this.childObserver.observe(this,{childList:!0})}disconnectedCallback(){super.disconnectedCallback(),this.childObserver.disconnect()}stackOrder(t){let r=t.getAttribute("stack-order");if(r===null)return null;let n=r.trim().toLowerCase();if(n in t1)return t1[n];let a=parseInt(n,10);return isNaN(a)?null:a}applyStackOrder(t,r){let n=this.stackOrder(t);return t.style.order=n===null?"":`calc(var(--zn-stacked, 0) * ${n})`,r&&(t.style.flexBasis="var(--zn-stack-basis, auto)"),n}render(){let t=this.layout.split(/[\s,]+/).map(d=>parseInt(d)).filter(d=>!!d);t.length===0&&t.push(1,1,1,1),this.layout=t.join(","),this.maxColumns=t.reduce((d,h)=>d+h,0);let r="zn-col-",n=Array.from(this.querySelectorAll(":scope > *:not([slot])")),a=t.length,s=n.length-(n.length%a||a),l=!1;return n.forEach((d,h)=>{let m=d.className.split(" ").filter(b=>!b.startsWith(r));d.className=m.join(" ");let f=h%a;d.classList.add(r+t[f]),this.border&&h>=s?d.style.overflow="hidden":d.style.overflow="",l=this.applyStackOrder(d,!1)!==null||l,d.hasAttribute("stack-split")&&(l=!0,this.childObserver.observe(d,{childList:!0}),Array.from(d.children).forEach(b=>this.applyStackOrder(b,!0)))}),l&&!this.stackAt&&(this.stackAt=u8),u`
1633
1633
  <div part="base" class="${M({cols:!0,"cols--no-gap":this.noGap,"cols--border":this.border,"cols--pad":this.pad,"cols--pad-x":this.padX,"cols--pad-y":this.padY,"cols--divide":this.divide,[`cols--layout-${this.layout.replaceAll(",","")}`]:!!this.layout,[`cols--mc-${this.maxColumns}`]:!!this.maxColumns})}">
1634
1634
  <slot></slot>
1635
1635
  </div>
@@ -1698,7 +1698,7 @@ import{a as Hn,b as X3,c as kr,d as c,e as V}from"./chunks/zn.UBLZO6CI.js";var a
1698
1698
  @zn-input="${this.handleInputValueChange}"></zn-input>`):F}
1699
1699
  </div>
1700
1700
  </zn-dropdown>
1701
- `}};Gt.styles=_(r1),Gt.dependencies={"zn-button":Ee,"zn-dropdown":ur,"zn-input":lt,"zn-option":We,"zn-select":Oe},c([B(".defined-label__input")],Gt.prototype,"input",2),c([B(".defined-label__dropdown")],Gt.prototype,"dropdown",2),c([p()],Gt.prototype,"value",2),c([p()],Gt.prototype,"inputValue",2),c([p({attribute:"input-size",reflect:!0})],Gt.prototype,"inputSize",2),c([p()],Gt.prototype,"name",2),c([p()],Gt.prototype,"title",2),c([p({type:Boolean})],Gt.prototype,"disabled",2),c([p({attribute:"allow-custom",type:Boolean})],Gt.prototype,"allowCustom",2),c([p({type:Array,attribute:"predefined-labels"})],Gt.prototype,"predefinedLabels",2),c([W("value",{waitUntilFirstUpdate:!0})],Gt.prototype,"handleValueChange",1);var f8=Gt;Gt.define("zn-defined-label");var i1=k`@keyframes rotate-gradient{from{--rotate:0deg}to{--rotate:360deg}}:host{text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-transform:none}*,*::before,*::after{box-sizing:border-box;border-width:0;border-style:solid;border-color:rgb(var(--zn-border-color))}[hidden]{display:none !important}.width-container,.form-container,.wide-form-container{height:100%;width:100%;margin:var(--zn-default-margin,0 auto)}.width-container{max-width:var(--zn-container)}.form-container{max-width:var(--zn-container-ph)}.wide-form-container{max-width:var(--zn-container-lg)}:host{display:block}.note{width:100%;height:100%;display:flex;flex-direction:column;overflow:hidden;flex-wrap:nowrap;padding:var(--zn-spacing-x-small) var(--zn-spacing-small);gap:var(--zn-spacing-3x-small);border-left:3px solid transparent}.note__header{display:flex;justify-content:space-between}.note__header__caption{font-weight:var(--zn-font-weight-semibold);font-size:var(--zn-font-size-medium);color:rgb(var(--zn-text-heading))}.note__header__date{font-size:var(--zn-font-size-small)}.note__header__end{display:flex;gap:var(--zn-spacing-small)}.note__body-container{position:relative;max-width:var(--zn-container-md)}.note__body{display:block}.note__toggle{margin-top:var(--zn-spacing-2x-small)}.note__toggle__btn{background:none;border:none;color:var(--zn-color-primary-500,currentColor);font:inherit;cursor:pointer;padding:0}.note__body--clamped{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:var(--note-collapse-lines,0);overflow:hidden;text-overflow:ellipsis}.note--red .note__header__caption{color:hsl(from var(--zn-color-red-600) h s 40%)}.note--red{border-left:3px solid var(--zn-color-red-600);background-color:hsla(from var(--zn-color-red-600) h s l/0.02)}.note--blue .note__header__caption{color:hsl(from var(--zn-color-blue-500) h s 40%)}.note--blue{border-left:3px solid var(--zn-color-blue-500);background-color:hsla(from var(--zn-color-blue-500) h s l/0.02)}.note--orange .note__header__caption{color:hsl(from var(--zn-color-orange-500) h s 40%)}.note--orange{border-left:3px solid var(--zn-color-orange-500);background-color:hsla(from var(--zn-color-orange-500) h s l/0.02)}.note--yellow .note__header__caption{color:hsl(from var(--zn-color-yellow-400) h s 40%)}.note--yellow{border-left:3px solid var(--zn-color-yellow-400);background-color:hsla(from var(--zn-color-yellow-400) h s l/0.02)}.note--indigo .note__header__caption{color:hsl(from var(--zn-color-indigo-400) h s 40%)}.note--indigo{border-left:3px solid var(--zn-color-indigo-400);background-color:hsla(from var(--zn-color-indigo-400) h s l/0.02)}.note--violet .note__header__caption{color:hsl(from var(--zn-color-violet-600) h s 40%)}.note--violet{border-left:3px solid var(--zn-color-violet-600);background-color:hsla(from var(--zn-color-violet-600) h s l/0.02)}.note--green .note__header__caption{color:hsl(from var(--zn-color-green-500) h s 40%)}.note--green{border-left:3px solid var(--zn-color-green-500);background-color:hsla(from var(--zn-color-green-500) h s l/0.02)}.note--pink .note__header__caption{color:hsl(from var(--zn-color-pink-400) h s 40%)}.note--pink{border-left:3px solid var(--zn-color-pink-400);background-color:hsla(from var(--zn-color-pink-400) h s l/0.02)}.note--gray .note__header__caption{color:hsl(from var(--zn-color-gray-500) h s 40%)}.note--gray{border-left:3px solid var(--zn-color-gray-500);background-color:hsla(from var(--zn-color-gray-500) h s l/0.02)}.note__footer{display:flex;flex-direction:row;flex-wrap:wrap;gap:var(--zn-spacing-x-small)}`;var Ii=class extends S{constructor(){super(...arguments);this.caption="";this.date="";this.body="";this.hasSlotController=new Y(this,"caption","date","[default]","snippet","footer");this.expanded=!1}_toggleExpand(){this.expanded=!this.expanded}render(){let t=this.hasSlotController.test("snippet")&&this.hasSlotController.test("[default]");return u`
1701
+ `}};Gt.styles=_(r1),Gt.dependencies={"zn-button":Ee,"zn-dropdown":hr,"zn-input":lt,"zn-option":We,"zn-select":Oe},c([B(".defined-label__input")],Gt.prototype,"input",2),c([B(".defined-label__dropdown")],Gt.prototype,"dropdown",2),c([p()],Gt.prototype,"value",2),c([p()],Gt.prototype,"inputValue",2),c([p({attribute:"input-size",reflect:!0})],Gt.prototype,"inputSize",2),c([p()],Gt.prototype,"name",2),c([p()],Gt.prototype,"title",2),c([p({type:Boolean})],Gt.prototype,"disabled",2),c([p({attribute:"allow-custom",type:Boolean})],Gt.prototype,"allowCustom",2),c([p({type:Array,attribute:"predefined-labels"})],Gt.prototype,"predefinedLabels",2),c([W("value",{waitUntilFirstUpdate:!0})],Gt.prototype,"handleValueChange",1);var f8=Gt;Gt.define("zn-defined-label");var i1=k`@keyframes rotate-gradient{from{--rotate:0deg}to{--rotate:360deg}}:host{text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-transform:none}*,*::before,*::after{box-sizing:border-box;border-width:0;border-style:solid;border-color:rgb(var(--zn-border-color))}[hidden]{display:none !important}.width-container,.form-container,.wide-form-container{height:100%;width:100%;margin:var(--zn-default-margin,0 auto)}.width-container{max-width:var(--zn-container)}.form-container{max-width:var(--zn-container-ph)}.wide-form-container{max-width:var(--zn-container-lg)}:host{display:block}.note{width:100%;height:100%;display:flex;flex-direction:column;overflow:hidden;flex-wrap:nowrap;padding:var(--zn-spacing-x-small) var(--zn-spacing-small);gap:var(--zn-spacing-3x-small);border-left:3px solid transparent}.note__header{display:flex;justify-content:space-between}.note__header__caption{font-weight:var(--zn-font-weight-semibold);font-size:var(--zn-font-size-medium);color:rgb(var(--zn-text-heading))}.note__header__date{font-size:var(--zn-font-size-small)}.note__header__end{display:flex;gap:var(--zn-spacing-small)}.note__body-container{position:relative;max-width:var(--zn-container-md)}.note__body{display:block}.note__toggle{margin-top:var(--zn-spacing-2x-small)}.note__toggle__btn{background:none;border:none;color:var(--zn-color-primary-500,currentColor);font:inherit;cursor:pointer;padding:0}.note__body--clamped{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:var(--note-collapse-lines,0);overflow:hidden;text-overflow:ellipsis}.note--red .note__header__caption{color:hsl(from var(--zn-color-red-600) h s 40%)}.note--red{border-left:3px solid var(--zn-color-red-600);background-color:hsla(from var(--zn-color-red-600) h s l/0.02)}.note--blue .note__header__caption{color:hsl(from var(--zn-color-blue-500) h s 40%)}.note--blue{border-left:3px solid var(--zn-color-blue-500);background-color:hsla(from var(--zn-color-blue-500) h s l/0.02)}.note--orange .note__header__caption{color:hsl(from var(--zn-color-orange-500) h s 40%)}.note--orange{border-left:3px solid var(--zn-color-orange-500);background-color:hsla(from var(--zn-color-orange-500) h s l/0.02)}.note--yellow .note__header__caption{color:hsl(from var(--zn-color-yellow-400) h s 40%)}.note--yellow{border-left:3px solid var(--zn-color-yellow-400);background-color:hsla(from var(--zn-color-yellow-400) h s l/0.02)}.note--indigo .note__header__caption{color:hsl(from var(--zn-color-indigo-400) h s 40%)}.note--indigo{border-left:3px solid var(--zn-color-indigo-400);background-color:hsla(from var(--zn-color-indigo-400) h s l/0.02)}.note--violet .note__header__caption{color:hsl(from var(--zn-color-violet-600) h s 40%)}.note--violet{border-left:3px solid var(--zn-color-violet-600);background-color:hsla(from var(--zn-color-violet-600) h s l/0.02)}.note--green .note__header__caption{color:hsl(from var(--zn-color-green-500) h s 40%)}.note--green{border-left:3px solid var(--zn-color-green-500);background-color:hsla(from var(--zn-color-green-500) h s l/0.02)}.note--pink .note__header__caption{color:hsl(from var(--zn-color-pink-400) h s 40%)}.note--pink{border-left:3px solid var(--zn-color-pink-400);background-color:hsla(from var(--zn-color-pink-400) h s l/0.02)}.note--gray .note__header__caption{color:hsl(from var(--zn-color-gray-500) h s 40%)}.note--gray{border-left:3px solid var(--zn-color-gray-500);background-color:hsla(from var(--zn-color-gray-500) h s l/0.02)}.note__footer{display:flex;flex-direction:row;flex-wrap:wrap;gap:var(--zn-spacing-x-small)}`;var Ii=class extends S{constructor(){super(...arguments);this.caption="";this.date="";this.body="";this.hasSlotController=new Y(this,"caption","date","[default]","snippet","footer");this.expanded=!1}_toggleExpand(){this.expanded=!this.expanded}render(){let t=this.hasSlotController.test("snippet")&&this.hasSlotController.test("[default]");return u`
1702
1702
  <div class="${M({note:!0,"note--red":this.color==="red","note--blue":this.color==="blue","note--orange":this.color==="orange","note--yellow":this.color==="yellow","note--indigo":this.color==="indigo","note--violet":this.color==="violet","note--green":this.color==="green","note--pink":this.color==="pink","note--gray":this.color==="gray"})}">
1703
1703
  <div class="note__header">
1704
1704
  <slot name="caption" class="note__header__caption">${this.caption}</slot>
@@ -1935,8 +1935,8 @@ import{a as Hn,b as X3,c as kr,d as c,e as V}from"./chunks/zn.UBLZO6CI.js";var a
1935
1935
  </div>
1936
1936
  `:""}
1937
1937
  </div>
1938
- <slot name="bottom" part="bottom"></slot>`}};Ye.styles=_(S1),Ye.dependencies={"zn-dropdown":ur},c([p({attribute:"navigation",type:Array})],Ye.prototype,"navigation",2),c([p({attribute:"full-width",type:Boolean,reflect:!0})],Ye.prototype,"fullWidth",2),c([p({attribute:"icon-bar",type:Boolean,reflect:!0})],Ye.prototype,"iconBar",2),c([p({attribute:"slim",type:Boolean,reflect:!0})],Ye.prototype,"slim",2),c([p({attribute:"border",type:Boolean,reflect:!0})],Ye.prototype,"border",2),c([p({attribute:"hide-one",type:Boolean,reflect:!0})],Ye.prototype,"hideOne",2),c([p({attribute:"flush",type:Boolean,reflect:!0})],Ye.prototype,"flush",2),c([p({attribute:"gutter",type:Boolean,reflect:!0})],Ye.prototype,"gutter",2),c([p({type:Boolean})],Ye.prototype,"stacked",2),c([p({type:Array})],Ye.prototype,"dropdown",2),c([p({attribute:"no-pad",type:Boolean})],Ye.prototype,"noPad",2),c([p({attribute:"manual-add-items",type:Boolean})],Ye.prototype,"manualAddItems",2),c([p({type:Boolean})],Ye.prototype,"isolated",2),c([p({reflect:!0})],Ye.prototype,"color",2),c([p({attribute:"master-id",reflect:!0})],Ye.prototype,"masterId",2),c([p({attribute:"store-key",type:String})],Ye.prototype,"storeKey",2),c([p({attribute:"store-ttl",type:Number,reflect:!0})],Ye.prototype,"storeTtl",2),c([p({attribute:"local-storage",type:Boolean,reflect:!0})],Ye.prototype,"localStorage",2),c([p()],Ye.prototype,"_appended",2);var Ta=Ye;Ye.define("zn-navbar");var ap="zntab:",A8=["reload","back_forward"],L8="__znTabsVisit",E1="__znTabs",bm=new Set,C1=0;function vm(){try{return window.sessionStorage}catch{return null}}function Xl(){return window.location.pathname+window.location.search}function M8(){return window.performance?.getEntriesByType("navigation")?.[0]?.type??""}function sp(o){return`${o}@${Xl()}`}function T1(){return ap+sp(L8)}function ym(){return vm()?.getItem(T1())??""}function q8(){let o=vm();o===null||ym()!==""||(C1+=1,o.setItem(T1(),`${Date.now()}-${C1}`))}function lp(){let o=vm();if(o===null)return;let i=`@${Xl()}`;for(let t=o.length-1;t>=0;t--){let r=o.key(t);r!==null&&r.startsWith(ap)&&!r.endsWith(i)&&o.removeItem(r)}}A8.includes(M8())&&bm.add(Xl());lp();window.addEventListener("popstate",()=>{bm.add(Xl()),lp()},{passive:!0});function $1(){return bm.has(Xl())}function op(o){return o!==null&&typeof o=="object"?o:null}function A1(){let o=op(window.history.state),i=o===null?null:op(o[E1]),t=i===null?null:op(i.tabs);return i===null||t===null||typeof i.visit!="string"?null:{visit:i.visit,tabs:t}}function xm(o){if(!o)return null;let i=ym(),t=A1();if(i===""||t===null||t.visit!==i)return null;let r=t.tabs[o];return typeof r=="string"?r:null}function L1(o,i,t){q8();let r=ym();if(!o||r==="")return;let n=A1(),a=n!==null&&n.visit===r?n.tabs:{};if(!t&&a[o]===i)return;let s={...op(window.history.state),[E1]:{visit:r,tabs:{...a,[o]:i}}};t?window.history.pushState(s,"",window.location.href):window.history.replaceState(s,"")}function M1(o,i){L1(o,i,!0)}function q1(o,i){L1(o,i,!1)}function cp(o){function i(he,se){return he<<se|he>>>32-se}function t(he,se){let ke,P,x,T,w;return x=he&2147483648,T=se&2147483648,ke=he&1073741824,P=se&1073741824,w=(he&1073741823)+(se&1073741823),ke&&P?w^2147483648^x^T:ke||P?w?w^3221225472^x^T:w^1073741824^x^T:w^x^T}function r(he,se,ke){return he&se|~he&ke}function n(he,se,ke){return he&ke|se&~ke}function a(he,se,ke){return he^se^ke}function s(he,se,ke){return se^(he|~ke)}function l(he,se,ke,P,x,T,w){return he=t(he,t(t(r(se,ke,P),x),w)),t(i(he,T),se)}function d(he,se,ke,P,x,T,w){return he=t(he,t(t(n(se,ke,P),x),w)),t(i(he,T),se)}function h(he,se,ke,P,x,T,w){return he=t(he,t(t(a(se,ke,P),x),w)),t(i(he,T),se)}function m(he,se,ke,P,x,T,w){return he=t(he,t(t(s(se,ke,P),x),w)),t(i(he,T),se)}function f(he){for(var se,ke=he.length,P=ke+8,x=(P-P%64)/64,T=(x+1)*16,w=Array(T-1),D=0,q=0;q<ke;)se=(q-q%4)/4,D=q%4*8,w[se]=w[se]|he.charCodeAt(q)<<D,q++;return se=(q-q%4)/4,D=q%4*8,w[se]=w[se]|128<<D,w[T-2]=ke<<3,w[T-1]=ke>>>29,w}function b(he){var se="",ke="",P,x;for(x=0;x<=3;x++)P=he>>>x*8&255,ke="0"+P.toString(16),se=se+ke.substr(ke.length-2,2);return se}function g(he){he=he.replace(/\r\n/g,`
1939
- `);let se="";for(let ke=0;ke<he.length;ke++){let P=he.charCodeAt(ke);P<128?se+=String.fromCharCode(P):P>127&&P<2048?(se+=String.fromCharCode(P>>6|192),se+=String.fromCharCode(P&63|128)):(se+=String.fromCharCode(P>>12|224),se+=String.fromCharCode(P>>6&63|128),se+=String.fromCharCode(P&63|128))}return se}let v,y,z,E,N,U,R,C,$,L,K=7,ne=12,we=17,De=22,Pe=5,at=9,tr=14,Pr=20,zr=4,Nt=11,rr=16,Lt=23,mo=6,Ja=10,ue=15,Qi=21;for(o=g(o),v=f(o),R=1732584193,C=4023233417,$=2562383102,L=271733878,y=0;y<v.length;y+=16)z=R,E=C,N=$,U=L,R=l(R,C,$,L,v[y+0],K,3614090360),L=l(L,R,C,$,v[y+1],ne,3905402710),$=l($,L,R,C,v[y+2],we,606105819),C=l(C,$,L,R,v[y+3],De,3250441966),R=l(R,C,$,L,v[y+4],K,4118548399),L=l(L,R,C,$,v[y+5],ne,1200080426),$=l($,L,R,C,v[y+6],we,2821735955),C=l(C,$,L,R,v[y+7],De,4249261313),R=l(R,C,$,L,v[y+8],K,1770035416),L=l(L,R,C,$,v[y+9],ne,2336552879),$=l($,L,R,C,v[y+10],we,4294925233),C=l(C,$,L,R,v[y+11],De,2304563134),R=l(R,C,$,L,v[y+12],K,1804603682),L=l(L,R,C,$,v[y+13],ne,4254626195),$=l($,L,R,C,v[y+14],we,2792965006),C=l(C,$,L,R,v[y+15],De,1236535329),R=d(R,C,$,L,v[y+1],Pe,4129170786),L=d(L,R,C,$,v[y+6],at,3225465664),$=d($,L,R,C,v[y+11],tr,643717713),C=d(C,$,L,R,v[y+0],Pr,3921069994),R=d(R,C,$,L,v[y+5],Pe,3593408605),L=d(L,R,C,$,v[y+10],at,38016083),$=d($,L,R,C,v[y+15],tr,3634488961),C=d(C,$,L,R,v[y+4],Pr,3889429448),R=d(R,C,$,L,v[y+9],Pe,568446438),L=d(L,R,C,$,v[y+14],at,3275163606),$=d($,L,R,C,v[y+3],tr,4107603335),C=d(C,$,L,R,v[y+8],Pr,1163531501),R=d(R,C,$,L,v[y+13],Pe,2850285829),L=d(L,R,C,$,v[y+2],at,4243563512),$=d($,L,R,C,v[y+7],tr,1735328473),C=d(C,$,L,R,v[y+12],Pr,2368359562),R=h(R,C,$,L,v[y+5],zr,4294588738),L=h(L,R,C,$,v[y+8],Nt,2272392833),$=h($,L,R,C,v[y+11],rr,1839030562),C=h(C,$,L,R,v[y+14],Lt,4259657740),R=h(R,C,$,L,v[y+1],zr,2763975236),L=h(L,R,C,$,v[y+4],Nt,1272893353),$=h($,L,R,C,v[y+7],rr,4139469664),C=h(C,$,L,R,v[y+10],Lt,3200236656),R=h(R,C,$,L,v[y+13],zr,681279174),L=h(L,R,C,$,v[y+0],Nt,3936430074),$=h($,L,R,C,v[y+3],rr,3572445317),C=h(C,$,L,R,v[y+6],Lt,76029189),R=h(R,C,$,L,v[y+9],zr,3654602809),L=h(L,R,C,$,v[y+12],Nt,3873151461),$=h($,L,R,C,v[y+15],rr,530742520),C=h(C,$,L,R,v[y+2],Lt,3299628645),R=m(R,C,$,L,v[y+0],mo,4096336452),L=m(L,R,C,$,v[y+7],Ja,1126891415),$=m($,L,R,C,v[y+14],ue,2878612391),C=m(C,$,L,R,v[y+5],Qi,4237533241),R=m(R,C,$,L,v[y+12],mo,1700485571),L=m(L,R,C,$,v[y+3],Ja,2399980690),$=m($,L,R,C,v[y+10],ue,4293915773),C=m(C,$,L,R,v[y+1],Qi,2240044497),R=m(R,C,$,L,v[y+8],mo,1873313359),L=m(L,R,C,$,v[y+15],Ja,4264355552),$=m($,L,R,C,v[y+6],ue,2734768916),C=m(C,$,L,R,v[y+13],Qi,1309151649),R=m(R,C,$,L,v[y+4],mo,4149444226),L=m(L,R,C,$,v[y+11],Ja,3174756917),$=m($,L,R,C,v[y+2],ue,718787259),C=m(C,$,L,R,v[y+9],Qi,3951481745),R=t(R,z),C=t(C,E),$=t($,N),L=t(L,U);var Xi=b(R)+b(C)+b($)+b(L);return Xi.toLowerCase()}var I1=k`@keyframes rotate-gradient{from{--rotate:0deg}to{--rotate:360deg}}:host{text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-transform:none}*,*::before,*::after{box-sizing:border-box;border-width:0;border-style:solid;border-color:rgb(var(--zn-border-color))}[hidden]{display:none !important}.width-container,.form-container,.wide-form-container{height:100%;width:100%;margin:var(--zn-default-margin,0 auto)}.width-container{max-width:var(--zn-container)}.form-container{max-width:var(--zn-container-ph)}.wide-form-container{max-width:var(--zn-container-lg)}:host ::-webkit-scrollbar{width:5px;height:5px}:host{}:host ::-webkit-scrollbar-track{background:transparent}:host{}:host ::-webkit-scrollbar-thumb{background:rgba(var(--inverse-base),0.2);border-radius:5px}:host{}:host ::-webkit-scrollbar-thumb:hover{background:rgba(var(--inverse-base),0.6)}:host{display:contents}#mid,#content{flex:1;display:flex;flex-direction:column;overflow:hidden}.tabs{flex:1;display:flex;flex-direction:column;overflow:hidden;height:100%;min-height:100%;max-height:100%;width:100%}h1,h2{padding:0;margin:0}#mid{container-type:inline-size;flex-direction:row}#content{flex:1;max-height:100%;min-height:15px;padding:var(--zn-base-gap,0)}#content ::-webkit-scrollbar{width:5px;height:5px}#content{}#content ::-webkit-scrollbar-track{background:transparent}#content{}#content ::-webkit-scrollbar-thumb{background:rgba(var(--inverse-base),0.2);border-radius:5px}#content{}#content ::-webkit-scrollbar-thumb:hover{background:rgba(var(--inverse-base),0.6)}#content{display:flex;align-items:normal;overflow:auto}#content>::slotted(div),#content>div{max-height:100%}:host([no-scroll]) #content{overflow:hidden}:host([no-scroll]) #content>div{max-height:100%}:host([no-scroll]) #content>::slotted(div){max-height:100%}:host([flush]) #content{padding:0}:host([flush-x]) #content{padding-left:0;padding-right:0}#content.contents-slot slot{display:contents}#content ::slotted([selected]),#content>[selected]{flex-grow:1}#content ::slotted(:not([selected])),#content>:not([selected]):not(slot){display:none !important}:host #header~slot[name=top]::slotted(zn-navbar){padding-top:0}:host #header:not(:empty){display:flex;align-items:center;padding:var(--zn-spacing-medium);gap:var(--zn-spacing-medium)}:host #header:not(:empty) #actions ::slotted(*:not(.zn-tb-active)){display:none}:host #header:not(:empty) #actions{display:flex;overflow:visible}:host #header:not(:empty) h1,:host #header:not(:empty) h2{flex-grow:1}:host h2{font-weight:var(--zn-font-weight-bold);flex-grow:1;font-size:var(--zn-font-size-medium);color:rgba(var(--zn-text-panel-title),100%);padding:0;margin:0}::slotted(div[ref-tab]:not(.zn-tb-active)){display:none}`;var zs="zn-tabs, zn-page, zn-page-nav",je=class extends S{constructor(){super();this.defaultUri="";this._current="";this._splitMin=60;this.primaryCaption="Navigation";this.secondaryCaption="Content";this.noPrefetch=!1;this.noCache=!1;this.storeTtl=0;this.padded=!1;this.fetchStyle="";this.fullWidth=!1;this.paddedRight=!1;this.preload=!0;this._activeClicks=0;this._activeTab=null;this._tabs=[];this._actions=[];this._knownUri=new Map;this._defaultTab="";this.hasSlotController=new Y(this,"[default]","bottom","right","left","top","actions");this._domObserver=new He(this,{target:null,config:{childList:!0,subtree:!0},callback:t=>{t.forEach(r=>{r.type==="childList"&&(r.addedNodes.length>0&&this._registerTabs(),r.removedNodes.length>0&&r.removedNodes.forEach(n=>{let a=n instanceof HTMLElement?n.id:"";a&&this.removeTabAndPanel(a)}))})}});this._monitorObserver=new He(this,{target:null,config:{childList:!0,subtree:!0},callback:t=>{t.forEach(r=>{r.type==="childList"&&r.addedNodes.forEach(n=>{if(n instanceof HTMLElement&&n.id===this.monitor){this.reRegisterTabs();let a=this.getStoredTab();a!==null&&this.restoreStoredTab(a)}})})}});this.handlePopState=()=>{let t=this.getTabStoreKey();if(t===null)return;let r=xm(t);r!==null&&this.restoreStoredTab(r)};this.reRegisterTabs=()=>{this._registerTabs()};this._registerTabs=()=>{Ge("[tab]",this,zs).forEach(t=>{this._addTab(t)}),Ge("[tab-uri]",this,zs).forEach(t=>{t.getAttribute("tab-uri")===""&&(t.setAttribute("tab",""),t.removeAttribute("tab-uri")),this._addTab(t)}),Ge("[ref-tab-uri]",this,zs).forEach(t=>{t.hasAttribute("ref-tab")||(t.setAttribute("ref-tab",this._uriToId(t.getAttribute("ref-tab-uri"))),t.removeAttribute("ref-tab-uri"),this._actions.push(t))})};this._panels=new Map}async connectedCallback(){super.connectedCallback(),this.masterId||(this.masterId=this.storeKey||Math.floor(Math.random()*1e6).toString()),this.preload=!this.noPrefetch&&!this.noCache,await this.updateComplete,this._panel=this.shadowRoot?.querySelector("#content"),this.observerDom(),this._registerTabs(),this.storeKey&&this.storeTtl===0&&(this.storeTtl=300);let t=this.defaultUri?this._uriToId(this.defaultUri):"";this._store=new Sr(this.localStorage?window.localStorage:window.sessionStorage,ap,this.storeTtl),Array.from(this.children).forEach(r=>{r.slot===""&&this._panels.set(r.getAttribute("id")||t,[r])}),this.observerDom(),this.monitorDom(),window.addEventListener("popstate",this.handlePopState,{passive:!0})}disconnectedCallback(){super.disconnectedCallback(),window.removeEventListener("popstate",this.handlePopState),setTimeout(()=>{this.isConnected||lp()})}monitorDom(){this.monitor&&this._monitorObserver.observe(this)}getTabStoreKey(){return this.storeKey||null}getStoredTab(){let t=this.getTabStoreKey();if(t===null||!this._store)return null;if(this.localStorage)return this._store.get(t);let r=this._store.get(sp(t));if(r===null)return null;let n=xm(t);return n!==null?n:$1()?r:null}storeActiveTab(t){let r=this.getTabStoreKey();if(r===null||!this._store)return;let n=this.getUriForTabId(t)??t;this._store.set(this.localStorage?r:sp(r),n),this.localStorage||q1(r,n)}restoreStoredTab(t){let r=this._tabs.find(n=>n.getAttribute("tab-uri")===t);if(r){this.clickTab(r,!1);return}this._prepareTab(t),this.setActiveTab(t,!0,!1)}activateDefaultTab(){if(!this._panels.has(this._defaultTab)&&this._tabs.length>0&&this._tabs[0].getAttribute("tab-uri")){this.clickTab(this._tabs[0],!1);return}this.setActiveTab(this._defaultTab,!0,!1)}pushTabHistory(t){let r=this.getTabStoreKey();r===null||this.localStorage||M1(r,this.getUriForTabId(t)??t)}getUriForTabId(t){for(let[r,n]of this._knownUri)if(n===t)return r;return null}_addPanel(t){this._panels.has(t.getAttribute("id"))||this._panels.set(t.getAttribute("id"),[t])}_addTab(t){this._tabs.includes(t)||(this._tabs.push(t),this.preload&&t.addEventListener("mouseover",this.fetchUriTab.bind(this,t)),t.addEventListener("click",this._handleClick.bind(this)))}firstUpdated(t){super.firstUpdated(t),setTimeout(()=>{this._registerTabs(),this._defaultTab=this._current||"";let r=this.getStoredTab();if(r!==null){this.restoreStoredTab(r);return}this.activateDefaultTab()},10),this.addEventListener("zn-menu-select",()=>{setTimeout(this.reRegisterTabs,200)},{passive:!0})}switchTab(t){let r=this._panels.size;if(r<2)return;let a=Array.from(this._panels.keys()).indexOf(this._current)+t;a<0?a=r-1:a>=r&&(a=0);let s=Array.from(this._panels.keys())[a];this.setActiveTab(s,!0,!1,null,!0)}nextTab(){this.switchTab(1)}previousTab(){this.switchTab(-1)}_prepareTab(t){for(let r of this._tabs)if(r.getAttribute("tab")===t)return;for(let r of Ge("[tab-uri]",this,zs)){let n=r.getAttribute("tab-uri"),a=this._uriToId(n);a===t&&this._createUriPanel(r,n,a)}}_uriToId(t){return"tab-"+cp(t).substr(0,8)+"-"+this.masterId}_createUriPanel(t,r,n){if(t.hasAttribute("tab")||(t.setAttribute("tab",n),this._setTabEleActive(t,this._current===n)),this._knownUri.has(r)||this._knownUri.set(r,n),this._panels.has(n)&&this._panels.get(n)!==void 0)return this._panels.get(n)[0];let a=document.createElement("div");return a.setAttribute("id",n),this.fetchStyle!==""?a.setAttribute("data-fetch-style",this.fetchStyle):t.hasAttribute("data-fetch-style")&&a.setAttribute("data-fetch-style",t.getAttribute("data-fetch-style")??""),a.setAttribute("data-self-uri",r),a.textContent="Loading ...",this._panel instanceof HTMLElement&&(this._panel.appendChild(a),this._panels.set(n,[a])),document.dispatchEvent(new CustomEvent("zn-new-element",{detail:{element:a,source:t}})),a}_handleClick(t){let r=t.relatedTarget??t.target;if(!r)return;if(!("startViewTransition"in document)){this.clickTab(r,t.altKey,!0);return}let n=document.startViewTransition(()=>this.clickTab(r,t.altKey,!0));n.ready.catch(()=>{}),n.finished.catch(()=>{}),n.updateCallbackDone.catch(()=>{})}fetchUriTab(t){if(!t.hasAttribute("tab")&&t.hasAttribute("tab-uri")){let r=t.getAttribute("tab-uri")??"";this._createUriPanel(t,r,this._uriToId(r)),t.setAttribute("tab-id",this._uriToId(r))}}clickTab(t,r,n=!1){let a=t.getAttribute("tab-uri"),s=!!a&&this._panels.has(this._uriToId(a));if(this.fetchUriTab(t),t.hasAttribute("tab")){let l=r||this.noCache&&s;setTimeout(()=>{this.setActiveTab(t.getAttribute("tab")||"",!0,l,this.getRefTab(t),n)},10)}}getRefTab(t){let r=t;for(;r;){if(r===this)return null;if(r.hasAttribute("ref-tab"))return r.getAttribute("ref-tab");r=r?.parentElement||r?.getRootNode()?.host}return null}setActiveTab(t,r,n,a=null,s=!1){let l=this._current,d=!1;this._tabs.forEach(h=>{h.hasAttribute("tab-uri")&&this._knownUri.has(h.getAttribute("tab-uri"))&&h.setAttribute("tab",this._knownUri.get(h.getAttribute("tab-uri")));let m=t===h.getAttribute("tab");!m&&a&&!this.getRefTab(h)&&(m=a===h.getAttribute("tab")),d=d||m,this._setTabEleActive(h,m)}),!d&&this._tabs.length>0&&this._setTabEleActive(this._tabs[0],!0),this._actions.forEach(h=>this._setTabEleActive(h,h.getAttribute("ref-tab")===(a||t))),this.selectTab(t,n),s&&this._current===t&&l!==t&&this.pushTabHistory(t),r&&this.storeActiveTab(t)}_setTabEleActive(t,r){r&&(this._activeTab=t),t.classList.toggle("zn-tb-active",r),t.classList.toggle("active",r)}selectTab(t,r){if(t&&!this._panels.has(t))return!1;let n=this._current===t;n?(this._activeClicks++,this._activeClicks>2&&(r=!0,this._activeClicks=0)):this._activeClicks=0;let a=!0,s=()=>{this._panels.forEach((d,h)=>{let m=h===t;d.forEach(f=>{if(m&&f.parentNode!==this&&(a=!1),f.toggleAttribute("selected",m),m&&r){let b="",g="";this._activeTab&&this._activeTab.hasAttribute("tab-uri")&&(b=this._activeTab.getAttribute("tab-uri"),g=this._activeTab.getAttribute("gaid")),document.dispatchEvent(new CustomEvent("zn-refresh-element",{detail:{element:f,uri:b,gaid:g}}))}})}),this._panel&&this._panel.classList.toggle("contents-slot",!a),this._current=t},l=n?[]:x0(this._panel);return s(),w0(l),!0}getActiveTab(){return this._panels.get(this._current)||[]}observerDom(){this._domObserver.observe(this)}removeTabAndPanel(t){this._current===t&&this.setActiveTab("",!0,!1);for(let r of this._tabs)if(r.getAttribute("tab")===t){if(r.hasAttribute("tab-uri")){let n=r.getAttribute("tab-uri");this._knownUri.has(n)&&this._knownUri.delete(n)}r.parentElement?.removeChild(r),this._tabs.splice(this._tabs.indexOf(r),1)}if(this._panels.has(t)){let r=this._panels.get(t);r instanceof HTMLElement?r.remove():r instanceof Array&&r.forEach(n=>{n instanceof HTMLElement&&n.remove()}),this._panels.delete(t)}}render(){let t=this.hasSlotController.test("actions"),r=this.caption&&this.caption.length>0,n=this.description&&this.description.length>0,a=r||t||n;if(this._split>0){let s=this.storeKey;s&&(s+="-split");let l="secondary";return this.querySelectorAll('[slot="right"]').length>0&&(l="primary"),u`
1938
+ <slot name="bottom" part="bottom"></slot>`}};Ye.styles=_(S1),Ye.dependencies={"zn-dropdown":hr},c([p({attribute:"navigation",type:Array})],Ye.prototype,"navigation",2),c([p({attribute:"full-width",type:Boolean,reflect:!0})],Ye.prototype,"fullWidth",2),c([p({attribute:"icon-bar",type:Boolean,reflect:!0})],Ye.prototype,"iconBar",2),c([p({attribute:"slim",type:Boolean,reflect:!0})],Ye.prototype,"slim",2),c([p({attribute:"border",type:Boolean,reflect:!0})],Ye.prototype,"border",2),c([p({attribute:"hide-one",type:Boolean,reflect:!0})],Ye.prototype,"hideOne",2),c([p({attribute:"flush",type:Boolean,reflect:!0})],Ye.prototype,"flush",2),c([p({attribute:"gutter",type:Boolean,reflect:!0})],Ye.prototype,"gutter",2),c([p({type:Boolean})],Ye.prototype,"stacked",2),c([p({type:Array})],Ye.prototype,"dropdown",2),c([p({attribute:"no-pad",type:Boolean})],Ye.prototype,"noPad",2),c([p({attribute:"manual-add-items",type:Boolean})],Ye.prototype,"manualAddItems",2),c([p({type:Boolean})],Ye.prototype,"isolated",2),c([p({reflect:!0})],Ye.prototype,"color",2),c([p({attribute:"master-id",reflect:!0})],Ye.prototype,"masterId",2),c([p({attribute:"store-key",type:String})],Ye.prototype,"storeKey",2),c([p({attribute:"store-ttl",type:Number,reflect:!0})],Ye.prototype,"storeTtl",2),c([p({attribute:"local-storage",type:Boolean,reflect:!0})],Ye.prototype,"localStorage",2),c([p()],Ye.prototype,"_appended",2);var Ta=Ye;Ye.define("zn-navbar");var ap="zntab:",A8=["reload","back_forward"],L8="__znTabsVisit",E1="__znTabs",bm=new Set,C1=0;function vm(){try{return window.sessionStorage}catch{return null}}function Xl(){return window.location.pathname+window.location.search}function M8(){return window.performance?.getEntriesByType("navigation")?.[0]?.type??""}function sp(o){return`${o}@${Xl()}`}function T1(){return ap+sp(L8)}function ym(){return vm()?.getItem(T1())??""}function q8(){let o=vm();o===null||ym()!==""||(C1+=1,o.setItem(T1(),`${Date.now()}-${C1}`))}function lp(){let o=vm();if(o===null)return;let i=`@${Xl()}`;for(let t=o.length-1;t>=0;t--){let r=o.key(t);r!==null&&r.startsWith(ap)&&!r.endsWith(i)&&o.removeItem(r)}}A8.includes(M8())&&bm.add(Xl());lp();window.addEventListener("popstate",()=>{bm.add(Xl()),lp()},{passive:!0});function $1(){return bm.has(Xl())}function op(o){return o!==null&&typeof o=="object"?o:null}function A1(){let o=op(window.history.state),i=o===null?null:op(o[E1]),t=i===null?null:op(i.tabs);return i===null||t===null||typeof i.visit!="string"?null:{visit:i.visit,tabs:t}}function xm(o){if(!o)return null;let i=ym(),t=A1();if(i===""||t===null||t.visit!==i)return null;let r=t.tabs[o];return typeof r=="string"?r:null}function L1(o,i,t){q8();let r=ym();if(!o||r==="")return;let n=A1(),a=n!==null&&n.visit===r?n.tabs:{};if(!t&&a[o]===i)return;let s={...op(window.history.state),[E1]:{visit:r,tabs:{...a,[o]:i}}};t?window.history.pushState(s,"",window.location.href):window.history.replaceState(s,"")}function M1(o,i){L1(o,i,!0)}function q1(o,i){L1(o,i,!1)}function cp(o){function i(he,se){return he<<se|he>>>32-se}function t(he,se){let ke,P,x,T,w;return x=he&2147483648,T=se&2147483648,ke=he&1073741824,P=se&1073741824,w=(he&1073741823)+(se&1073741823),ke&&P?w^2147483648^x^T:ke||P?w?w^3221225472^x^T:w^1073741824^x^T:w^x^T}function r(he,se,ke){return he&se|~he&ke}function n(he,se,ke){return he&ke|se&~ke}function a(he,se,ke){return he^se^ke}function s(he,se,ke){return se^(he|~ke)}function l(he,se,ke,P,x,T,w){return he=t(he,t(t(r(se,ke,P),x),w)),t(i(he,T),se)}function d(he,se,ke,P,x,T,w){return he=t(he,t(t(n(se,ke,P),x),w)),t(i(he,T),se)}function h(he,se,ke,P,x,T,w){return he=t(he,t(t(a(se,ke,P),x),w)),t(i(he,T),se)}function m(he,se,ke,P,x,T,w){return he=t(he,t(t(s(se,ke,P),x),w)),t(i(he,T),se)}function f(he){for(var se,ke=he.length,P=ke+8,x=(P-P%64)/64,T=(x+1)*16,w=Array(T-1),D=0,q=0;q<ke;)se=(q-q%4)/4,D=q%4*8,w[se]=w[se]|he.charCodeAt(q)<<D,q++;return se=(q-q%4)/4,D=q%4*8,w[se]=w[se]|128<<D,w[T-2]=ke<<3,w[T-1]=ke>>>29,w}function b(he){var se="",ke="",P,x;for(x=0;x<=3;x++)P=he>>>x*8&255,ke="0"+P.toString(16),se=se+ke.substr(ke.length-2,2);return se}function g(he){he=he.replace(/\r\n/g,`
1939
+ `);let se="";for(let ke=0;ke<he.length;ke++){let P=he.charCodeAt(ke);P<128?se+=String.fromCharCode(P):P>127&&P<2048?(se+=String.fromCharCode(P>>6|192),se+=String.fromCharCode(P&63|128)):(se+=String.fromCharCode(P>>12|224),se+=String.fromCharCode(P>>6&63|128),se+=String.fromCharCode(P&63|128))}return se}let v,y,z,E,N,U,R,C,$,L,K=7,ne=12,we=17,De=22,Pe=5,at=9,er=14,Pr=20,zr=4,Nt=11,tr=16,Lt=23,mo=6,Ja=10,ue=15,Qi=21;for(o=g(o),v=f(o),R=1732584193,C=4023233417,$=2562383102,L=271733878,y=0;y<v.length;y+=16)z=R,E=C,N=$,U=L,R=l(R,C,$,L,v[y+0],K,3614090360),L=l(L,R,C,$,v[y+1],ne,3905402710),$=l($,L,R,C,v[y+2],we,606105819),C=l(C,$,L,R,v[y+3],De,3250441966),R=l(R,C,$,L,v[y+4],K,4118548399),L=l(L,R,C,$,v[y+5],ne,1200080426),$=l($,L,R,C,v[y+6],we,2821735955),C=l(C,$,L,R,v[y+7],De,4249261313),R=l(R,C,$,L,v[y+8],K,1770035416),L=l(L,R,C,$,v[y+9],ne,2336552879),$=l($,L,R,C,v[y+10],we,4294925233),C=l(C,$,L,R,v[y+11],De,2304563134),R=l(R,C,$,L,v[y+12],K,1804603682),L=l(L,R,C,$,v[y+13],ne,4254626195),$=l($,L,R,C,v[y+14],we,2792965006),C=l(C,$,L,R,v[y+15],De,1236535329),R=d(R,C,$,L,v[y+1],Pe,4129170786),L=d(L,R,C,$,v[y+6],at,3225465664),$=d($,L,R,C,v[y+11],er,643717713),C=d(C,$,L,R,v[y+0],Pr,3921069994),R=d(R,C,$,L,v[y+5],Pe,3593408605),L=d(L,R,C,$,v[y+10],at,38016083),$=d($,L,R,C,v[y+15],er,3634488961),C=d(C,$,L,R,v[y+4],Pr,3889429448),R=d(R,C,$,L,v[y+9],Pe,568446438),L=d(L,R,C,$,v[y+14],at,3275163606),$=d($,L,R,C,v[y+3],er,4107603335),C=d(C,$,L,R,v[y+8],Pr,1163531501),R=d(R,C,$,L,v[y+13],Pe,2850285829),L=d(L,R,C,$,v[y+2],at,4243563512),$=d($,L,R,C,v[y+7],er,1735328473),C=d(C,$,L,R,v[y+12],Pr,2368359562),R=h(R,C,$,L,v[y+5],zr,4294588738),L=h(L,R,C,$,v[y+8],Nt,2272392833),$=h($,L,R,C,v[y+11],tr,1839030562),C=h(C,$,L,R,v[y+14],Lt,4259657740),R=h(R,C,$,L,v[y+1],zr,2763975236),L=h(L,R,C,$,v[y+4],Nt,1272893353),$=h($,L,R,C,v[y+7],tr,4139469664),C=h(C,$,L,R,v[y+10],Lt,3200236656),R=h(R,C,$,L,v[y+13],zr,681279174),L=h(L,R,C,$,v[y+0],Nt,3936430074),$=h($,L,R,C,v[y+3],tr,3572445317),C=h(C,$,L,R,v[y+6],Lt,76029189),R=h(R,C,$,L,v[y+9],zr,3654602809),L=h(L,R,C,$,v[y+12],Nt,3873151461),$=h($,L,R,C,v[y+15],tr,530742520),C=h(C,$,L,R,v[y+2],Lt,3299628645),R=m(R,C,$,L,v[y+0],mo,4096336452),L=m(L,R,C,$,v[y+7],Ja,1126891415),$=m($,L,R,C,v[y+14],ue,2878612391),C=m(C,$,L,R,v[y+5],Qi,4237533241),R=m(R,C,$,L,v[y+12],mo,1700485571),L=m(L,R,C,$,v[y+3],Ja,2399980690),$=m($,L,R,C,v[y+10],ue,4293915773),C=m(C,$,L,R,v[y+1],Qi,2240044497),R=m(R,C,$,L,v[y+8],mo,1873313359),L=m(L,R,C,$,v[y+15],Ja,4264355552),$=m($,L,R,C,v[y+6],ue,2734768916),C=m(C,$,L,R,v[y+13],Qi,1309151649),R=m(R,C,$,L,v[y+4],mo,4149444226),L=m(L,R,C,$,v[y+11],Ja,3174756917),$=m($,L,R,C,v[y+2],ue,718787259),C=m(C,$,L,R,v[y+9],Qi,3951481745),R=t(R,z),C=t(C,E),$=t($,N),L=t(L,U);var Xi=b(R)+b(C)+b($)+b(L);return Xi.toLowerCase()}var I1=k`@keyframes rotate-gradient{from{--rotate:0deg}to{--rotate:360deg}}:host{text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-transform:none}*,*::before,*::after{box-sizing:border-box;border-width:0;border-style:solid;border-color:rgb(var(--zn-border-color))}[hidden]{display:none !important}.width-container,.form-container,.wide-form-container{height:100%;width:100%;margin:var(--zn-default-margin,0 auto)}.width-container{max-width:var(--zn-container)}.form-container{max-width:var(--zn-container-ph)}.wide-form-container{max-width:var(--zn-container-lg)}:host ::-webkit-scrollbar{width:5px;height:5px}:host{}:host ::-webkit-scrollbar-track{background:transparent}:host{}:host ::-webkit-scrollbar-thumb{background:rgba(var(--inverse-base),0.2);border-radius:5px}:host{}:host ::-webkit-scrollbar-thumb:hover{background:rgba(var(--inverse-base),0.6)}:host{display:contents}#mid,#content{flex:1;display:flex;flex-direction:column;overflow:hidden}.tabs{flex:1;display:flex;flex-direction:column;overflow:hidden;height:100%;min-height:100%;max-height:100%;width:100%}h1,h2{padding:0;margin:0}#mid{container-type:inline-size;flex-direction:row}#content{flex:1;max-height:100%;min-height:15px;padding:var(--zn-base-gap,0)}#content ::-webkit-scrollbar{width:5px;height:5px}#content{}#content ::-webkit-scrollbar-track{background:transparent}#content{}#content ::-webkit-scrollbar-thumb{background:rgba(var(--inverse-base),0.2);border-radius:5px}#content{}#content ::-webkit-scrollbar-thumb:hover{background:rgba(var(--inverse-base),0.6)}#content{display:flex;align-items:normal;overflow:auto}#content>::slotted(div),#content>div{max-height:100%}:host([no-scroll]) #content{overflow:hidden}:host([no-scroll]) #content>div{max-height:100%}:host([no-scroll]) #content>::slotted(div){max-height:100%}:host([flush]) #content{padding:0}:host([flush-x]) #content{padding-left:0;padding-right:0}#content.contents-slot slot{display:contents}#content ::slotted([selected]),#content>[selected]{flex-grow:1}#content ::slotted(:not([selected])),#content>:not([selected]):not(slot){display:none !important}:host #header~slot[name=top]::slotted(zn-navbar){padding-top:0}:host #header:not(:empty){display:flex;align-items:center;padding:var(--zn-spacing-medium);gap:var(--zn-spacing-medium)}:host #header:not(:empty) #actions ::slotted(*:not(.zn-tb-active)){display:none}:host #header:not(:empty) #actions{display:flex;overflow:visible}:host #header:not(:empty) h1,:host #header:not(:empty) h2{flex-grow:1}:host h2{font-weight:var(--zn-font-weight-bold);flex-grow:1;font-size:var(--zn-font-size-medium);color:rgba(var(--zn-text-panel-title),100%);padding:0;margin:0}::slotted(div[ref-tab]:not(.zn-tb-active)){display:none}`;var zs="zn-tabs, zn-page, zn-page-nav",je=class extends S{constructor(){super();this.defaultUri="";this._current="";this._splitMin=60;this.primaryCaption="Navigation";this.secondaryCaption="Content";this.noPrefetch=!1;this.noCache=!1;this.storeTtl=0;this.padded=!1;this.fetchStyle="";this.fullWidth=!1;this.paddedRight=!1;this.preload=!0;this._activeClicks=0;this._activeTab=null;this._tabs=[];this._actions=[];this._knownUri=new Map;this._defaultTab="";this.hasSlotController=new Y(this,"[default]","bottom","right","left","top","actions");this._domObserver=new He(this,{target:null,config:{childList:!0,subtree:!0},callback:t=>{t.forEach(r=>{r.type==="childList"&&(r.addedNodes.length>0&&this._registerTabs(),r.removedNodes.length>0&&r.removedNodes.forEach(n=>{let a=n instanceof HTMLElement?n.id:"";a&&this.removeTabAndPanel(a)}))})}});this._monitorObserver=new He(this,{target:null,config:{childList:!0,subtree:!0},callback:t=>{t.forEach(r=>{r.type==="childList"&&r.addedNodes.forEach(n=>{if(n instanceof HTMLElement&&n.id===this.monitor){this.reRegisterTabs();let a=this.getStoredTab();a!==null&&this.restoreStoredTab(a)}})})}});this.handlePopState=()=>{let t=this.getTabStoreKey();if(t===null)return;let r=xm(t);r!==null&&this.restoreStoredTab(r)};this.reRegisterTabs=()=>{this._registerTabs()};this._registerTabs=()=>{Ge("[tab]",this,zs).forEach(t=>{this._addTab(t)}),Ge("[tab-uri]",this,zs).forEach(t=>{t.getAttribute("tab-uri")===""&&(t.setAttribute("tab",""),t.removeAttribute("tab-uri")),this._addTab(t)}),Ge("[ref-tab-uri]",this,zs).forEach(t=>{t.hasAttribute("ref-tab")||(t.setAttribute("ref-tab",this._uriToId(t.getAttribute("ref-tab-uri"))),t.removeAttribute("ref-tab-uri"),this._actions.push(t))})};this._panels=new Map}async connectedCallback(){super.connectedCallback(),this.masterId||(this.masterId=this.storeKey||Math.floor(Math.random()*1e6).toString()),this.preload=!this.noPrefetch&&!this.noCache,await this.updateComplete,this._panel=this.shadowRoot?.querySelector("#content"),this.observerDom(),this._registerTabs(),this.storeKey&&this.storeTtl===0&&(this.storeTtl=300);let t=this.defaultUri?this._uriToId(this.defaultUri):"";this._store=new Sr(this.localStorage?window.localStorage:window.sessionStorage,ap,this.storeTtl),Array.from(this.children).forEach(r=>{r.slot===""&&this._panels.set(r.getAttribute("id")||t,[r])}),this.observerDom(),this.monitorDom(),window.addEventListener("popstate",this.handlePopState,{passive:!0})}disconnectedCallback(){super.disconnectedCallback(),window.removeEventListener("popstate",this.handlePopState),setTimeout(()=>{this.isConnected||lp()})}monitorDom(){this.monitor&&this._monitorObserver.observe(this)}getTabStoreKey(){return this.storeKey||null}getStoredTab(){let t=this.getTabStoreKey();if(t===null||!this._store)return null;if(this.localStorage)return this._store.get(t);let r=this._store.get(sp(t));if(r===null)return null;let n=xm(t);return n!==null?n:$1()?r:null}storeActiveTab(t){let r=this.getTabStoreKey();if(r===null||!this._store)return;let n=this.getUriForTabId(t)??t;this._store.set(this.localStorage?r:sp(r),n),this.localStorage||q1(r,n)}restoreStoredTab(t){let r=this._tabs.find(n=>n.getAttribute("tab-uri")===t);if(r){this.clickTab(r,!1);return}this._prepareTab(t),this.setActiveTab(t,!0,!1)}activateDefaultTab(){if(!this._panels.has(this._defaultTab)&&this._tabs.length>0&&this._tabs[0].getAttribute("tab-uri")){this.clickTab(this._tabs[0],!1);return}this.setActiveTab(this._defaultTab,!0,!1)}pushTabHistory(t){let r=this.getTabStoreKey();r===null||this.localStorage||M1(r,this.getUriForTabId(t)??t)}getUriForTabId(t){for(let[r,n]of this._knownUri)if(n===t)return r;return null}_addPanel(t){this._panels.has(t.getAttribute("id"))||this._panels.set(t.getAttribute("id"),[t])}_addTab(t){this._tabs.includes(t)||(this._tabs.push(t),this.preload&&t.addEventListener("mouseover",this.fetchUriTab.bind(this,t)),t.addEventListener("click",this._handleClick.bind(this)))}firstUpdated(t){super.firstUpdated(t),setTimeout(()=>{this._registerTabs(),this._defaultTab=this._current||"";let r=this.getStoredTab();if(r!==null){this.restoreStoredTab(r);return}this.activateDefaultTab()},10),this.addEventListener("zn-menu-select",()=>{setTimeout(this.reRegisterTabs,200)},{passive:!0})}switchTab(t){let r=this._panels.size;if(r<2)return;let a=Array.from(this._panels.keys()).indexOf(this._current)+t;a<0?a=r-1:a>=r&&(a=0);let s=Array.from(this._panels.keys())[a];this.setActiveTab(s,!0,!1,null,!0)}nextTab(){this.switchTab(1)}previousTab(){this.switchTab(-1)}_prepareTab(t){for(let r of this._tabs)if(r.getAttribute("tab")===t)return;for(let r of Ge("[tab-uri]",this,zs)){let n=r.getAttribute("tab-uri"),a=this._uriToId(n);a===t&&this._createUriPanel(r,n,a)}}_uriToId(t){return"tab-"+cp(t).substr(0,8)+"-"+this.masterId}_createUriPanel(t,r,n){if(t.hasAttribute("tab")||(t.setAttribute("tab",n),this._setTabEleActive(t,this._current===n)),this._knownUri.has(r)||this._knownUri.set(r,n),this._panels.has(n)&&this._panels.get(n)!==void 0)return this._panels.get(n)[0];let a=document.createElement("div");return a.setAttribute("id",n),this.fetchStyle!==""?a.setAttribute("data-fetch-style",this.fetchStyle):t.hasAttribute("data-fetch-style")&&a.setAttribute("data-fetch-style",t.getAttribute("data-fetch-style")??""),a.setAttribute("data-self-uri",r),a.textContent="Loading ...",this._panel instanceof HTMLElement&&(this._panel.appendChild(a),this._panels.set(n,[a])),document.dispatchEvent(new CustomEvent("zn-new-element",{detail:{element:a,source:t}})),a}_handleClick(t){let r=t.relatedTarget??t.target;if(!r)return;if(!("startViewTransition"in document)){this.clickTab(r,t.altKey,!0);return}let n=document.startViewTransition(()=>this.clickTab(r,t.altKey,!0));n.ready.catch(()=>{}),n.finished.catch(()=>{}),n.updateCallbackDone.catch(()=>{})}fetchUriTab(t){if(!t.hasAttribute("tab")&&t.hasAttribute("tab-uri")){let r=t.getAttribute("tab-uri")??"";this._createUriPanel(t,r,this._uriToId(r)),t.setAttribute("tab-id",this._uriToId(r))}}clickTab(t,r,n=!1){let a=t.getAttribute("tab-uri"),s=!!a&&this._panels.has(this._uriToId(a));if(this.fetchUriTab(t),t.hasAttribute("tab")){let l=r||this.noCache&&s;setTimeout(()=>{this.setActiveTab(t.getAttribute("tab")||"",!0,l,this.getRefTab(t),n)},10)}}getRefTab(t){let r=t;for(;r;){if(r===this)return null;if(r.hasAttribute("ref-tab"))return r.getAttribute("ref-tab");r=r?.parentElement||r?.getRootNode()?.host}return null}setActiveTab(t,r,n,a=null,s=!1){let l=this._current,d=!1;this._tabs.forEach(h=>{h.hasAttribute("tab-uri")&&this._knownUri.has(h.getAttribute("tab-uri"))&&h.setAttribute("tab",this._knownUri.get(h.getAttribute("tab-uri")));let m=t===h.getAttribute("tab");!m&&a&&!this.getRefTab(h)&&(m=a===h.getAttribute("tab")),d=d||m,this._setTabEleActive(h,m)}),!d&&this._tabs.length>0&&this._setTabEleActive(this._tabs[0],!0),this._actions.forEach(h=>this._setTabEleActive(h,h.getAttribute("ref-tab")===(a||t))),this.selectTab(t,n),s&&this._current===t&&l!==t&&this.pushTabHistory(t),r&&this.storeActiveTab(t)}_setTabEleActive(t,r){r&&(this._activeTab=t),t.classList.toggle("zn-tb-active",r),t.classList.toggle("active",r)}selectTab(t,r){if(t&&!this._panels.has(t))return!1;let n=this._current===t;n?(this._activeClicks++,this._activeClicks>2&&(r=!0,this._activeClicks=0)):this._activeClicks=0;let a=!0,s=()=>{this._panels.forEach((d,h)=>{let m=h===t;d.forEach(f=>{if(m&&f.parentNode!==this&&(a=!1),f.toggleAttribute("selected",m),m&&r){let b="",g="";this._activeTab&&this._activeTab.hasAttribute("tab-uri")&&(b=this._activeTab.getAttribute("tab-uri"),g=this._activeTab.getAttribute("gaid")),document.dispatchEvent(new CustomEvent("zn-refresh-element",{detail:{element:f,uri:b,gaid:g}}))}})}),this._panel&&this._panel.classList.toggle("contents-slot",!a),this._current=t},l=n?[]:x0(this._panel);return s(),w0(l),!0}getActiveTab(){return this._panels.get(this._current)||[]}observerDom(){this._domObserver.observe(this)}removeTabAndPanel(t){this._current===t&&this.setActiveTab("",!0,!1);for(let r of this._tabs)if(r.getAttribute("tab")===t){if(r.hasAttribute("tab-uri")){let n=r.getAttribute("tab-uri");this._knownUri.has(n)&&this._knownUri.delete(n)}r.parentElement?.removeChild(r),this._tabs.splice(this._tabs.indexOf(r),1)}if(this._panels.has(t)){let r=this._panels.get(t);r instanceof HTMLElement?r.remove():r instanceof Array&&r.forEach(n=>{n instanceof HTMLElement&&n.remove()}),this._panels.delete(t)}}render(){let t=this.hasSlotController.test("actions"),r=this.caption&&this.caption.length>0,n=this.description&&this.description.length>0,a=r||t||n;if(this._split>0){let s=this.storeKey;s&&(s+="-split");let l="secondary";return this.querySelectorAll('[slot="right"]').length>0&&(l="primary"),u`
1940
1940
  <slot name="top"></slot>
1941
1941
  <div id="mid">
1942
1942
  <zn-split-pane
@@ -2018,7 +2018,7 @@ import{a as Hn,b as X3,c as kr,d as c,e as V}from"./chunks/zn.UBLZO6CI.js";var a
2018
2018
  @click="${this.handleIconCloseClicked}"
2019
2019
  icon="close"
2020
2020
  icon-size="20">
2021
- </zn-button>`}};Yt.styles=_(R1),c([p()],Yt.prototype,"icon",2),c([p()],Yt.prototype,"method",2),c([p({attribute:"context-uri",reflect:!0})],Yt.prototype,"contextUri",2),c([p({reflect:!0})],Yt.prototype,"count",2),c([p({reflect:!0})],Yt.prototype,"color",2),c([p({type:Boolean})],Yt.prototype,"prefetch",2),c([p()],Yt.prototype,"basis",2),c([p({attribute:"max-height"})],Yt.prototype,"maxHeight",2),c([p({reflect:!0,type:Boolean})],Yt.prototype,"open",2),c([p({attribute:"master-id",reflect:!0})],Yt.prototype,"masterId",2),c([p({attribute:"fetch-style",type:String,reflect:!0})],Yt.prototype,"fetchStyle",2),c([p({attribute:"no-prefetch",type:Boolean,reflect:!0})],Yt.prototype,"noPrefetch",2);var wm=Yt;Yt.define("zn-expanding-action");var D1=k`@keyframes rotate-gradient{from{--rotate:0deg}to{--rotate:360deg}}:host{text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-transform:none}*,*::before,*::after{box-sizing:border-box;border-width:0;border-style:solid;border-color:rgb(var(--zn-border-color))}[hidden]{display:none !important}.width-container,.form-container,.wide-form-container{height:100%;width:100%;margin:var(--zn-default-margin,0 auto)}.width-container{max-width:var(--zn-container)}.form-container{max-width:var(--zn-container-ph)}.wide-form-container{max-width:var(--zn-container-lg)}:host{display:contents;height:100%}`;var sn=class extends S{constructor(){super(...arguments);this.selected=!1}render(){return u`<slot></slot>`}};sn.styles=_(D1),c([p()],sn.prototype,"caption",2),c([p({type:Number})],sn.prototype,"priority",2),c([p()],sn.prototype,"uri",2),c([p({type:Boolean,reflect:!0})],sn.prototype,"selected",2);var zm=sn;sn.define("zn-tab");var ln=je;je.define("zn-tabs");var N1=k`@keyframes rotate-gradient{from{--rotate:0deg}to{--rotate:360deg}}:host{text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-transform:none}*,*::before,*::after{box-sizing:border-box;border-width:0;border-style:solid;border-color:rgb(var(--zn-border-color))}[hidden]{display:none !important}.width-container,.form-container,.wide-form-container{height:100%;width:100%;margin:var(--zn-default-margin,0 auto)}.width-container{max-width:var(--zn-container)}.form-container{max-width:var(--zn-container-ph)}.wide-form-container{max-width:var(--zn-container-lg)}@container (width > 1024px){:host{--zn-gutter:16px}}@container (width > 1400px){:host{--zn-gutter:24px}}@container (width > 1500px){:host{--zn-gutter:32px}}:host{display:block;width:100%;height:100%;min-height:0;container-type:inline-size;--zn-page-texture:none;--zn-page-texture-size:auto;--zn-page-content-background:var(--zn-page-canvas,var(--zn-body));--zn-page-header-background:var(--zn-page-surface-background,var(--zn-page-background,var(--zn-body)));--zn-page-closer-size:36px;--zn-page-closer-gap:var(--zn-spacing-x-small)}:host([panel]){--zn-page-content-background:var(--zn-panel)}:host([panel-head]){--zn-page-header-background:var(--zn-panel)}:host([panel-nav]){--zn-active-nav-background:var(--zn-panel)}.page__header{flex:0 0 auto;position:sticky;top:0;z-index:2;box-sizing:border-box;background-color:rgba(var(--zn-page-header-background),95%);background-image:var(--zn-page-texture);background-repeat:repeat;background-position:center top;background-size:var(--zn-page-texture-size)}.page__header::after{content:"";position:absolute;right:var(--zn-base-gap);bottom:0;left:var(--zn-base-gap);height:1px;background:rgb(var(--zn-border-color));opacity:0;transition:opacity 180ms ease-in-out;pointer-events:none}.page__header--scrolled-no-navigation::after{opacity:1}:host-context([t=aura]) .page__header,:host-context(.theme-aura) .page__header{background:var(--zn-page-header-aurora,linear-gradient(225deg,rgb(233,227,255) 0%,rgb(214,246,245) 40%,rgb(233,227,255) 100%),linear-gradient(180deg,rgba(129,153,217,0) 0%,rgb(0,0,0) 100%));background-size:150% 150%;background-position:0% 7%}:host-context([t=aura]) .page__header .header:not(.header--has-navigation),:host-context(.theme-aura) .page__header .header:not(.header--has-navigation){padding-bottom:var(--zn-base-gap);border-bottom:1px solid rgb(var(--zn-border-color))}:host-context([t=aura]) .page__header .header::before,:host-context(.theme-aura) .page__header .header::before{content:"";position:absolute;inset:0;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 2030 297'%3E%3CclipPath id='a'%3E%3Cpath d='M1745.121 547.488c-.699 0-1.41-.008-2.109-.027-59.434-1.852-104.902-66.16-148.883-128.352-35.129-49.668-71.449-101.039-114.398-119.871-65.121-28.539-137.75 10.363-207.98 47.961-26 13.922-50.559 27.07-73.949 36.289-38.902 15.32-77.77 20.742-118.801 16.582-34.629-3.52-71.93-13.93-117.387-32.762-84.102-34.828-150.801-48.859-223.359-11.199-21.039 10.922-41.84 24.832-63.863 39.562-47.594 31.828-96.457 64.508-147.098 64.508-14.434 0-29-2.648-43.734-8.73-35.766-14.77-68.043-48.219-99.258-80.57-41.438-42.938-84.281-87.348-135.34-87.867-.281 0-.562-.012-.844-.012-48.602 0-87.566 43.051-125.258 84.691-40.719 44.98-82.828 91.5-137.785 85.328l.277-2.488c53.707 6.02 95.359-40 135.652-84.512 38.281-42.289 77.84-85.988 127.98-85.508 52.105.527 95.324 45.316 137.117 88.637 31.035 32.16 63.129 65.422 98.41 79.992 65.199 26.91 127.875-15.012 188.488-55.551 21.109-14.109 42.941-28.711 64.102-39.699 35.859-18.609 72.832-25.629 113.035-21.469 39.656 4.098 79.09 18.77 112.434 32.578 69.711 28.871 146.34 50.809 234.32 16.16 23.25-9.16 47.738-22.27 73.68-36.16 34.602-18.531 70.391-37.691 105.949-48.719 40.48-12.543 74.559-12.32 104.211.668 43.59 19.109 80.121 70.762 115.441 120.711 43.629 61.691 88.738 125.488 146.918 127.301 43.672 1.367 81.031-41.781 117.16-83.5 34.262-39.562 66.629-76.941 101.969-73.449 23.672 2.34 46.262 23 69.082 63.148l-2.172 1.23c-22.391-39.391-44.359-59.641-67.148-61.891-34.059-3.359-66.012 33.531-99.84 72.602-35.941 41.5-73.082 84.387-117.02 84.387Z'/%3E%3C/clipPath%3E%3Cg clip-path='url(%23a)'%3E%3CclipPath id='b'%3E%3Cpath d='M1745.121 547.488c-.699 0-1.41-.008-2.109-.027-59.434-1.852-104.902-66.16-148.883-128.352-35.129-49.668-71.449-101.039-114.398-119.871-65.121-28.539-137.75 10.363-207.98 47.961-26 13.922-50.559 27.07-73.949 36.289-38.902 15.32-77.77 20.742-118.801 16.582-34.629-3.52-71.93-13.93-117.387-32.762-84.102-34.828-150.801-48.859-223.359-11.199-21.039 10.922-41.84 24.832-63.863 39.562-47.594 31.828-96.457 64.508-147.098 64.508-14.434 0-29-2.648-43.734-8.73-35.766-14.77-68.043-48.219-99.258-80.57-41.438-42.938-84.281-87.348-135.34-87.867-.281 0-.562-.012-.844-.012-48.602 0-87.566 43.051-125.258 84.691-40.719 44.98-82.828 91.5-137.785 85.328l.277-2.488c53.707 6.02 95.359-40 135.652-84.512 38.281-42.289 77.84-85.988 127.98-85.508 52.105.527 95.324 45.316 137.117 88.637 31.035 32.16 63.129 65.422 98.41 79.992 65.199 26.91 127.875-15.012 188.488-55.551 21.109-14.109 42.941-28.711 64.102-39.699 35.859-18.609 72.832-25.629 113.035-21.469 39.656 4.098 79.09 18.77 112.434 32.578 69.711 28.871 146.34 50.809 234.32 16.16 23.25-9.16 47.738-22.27 73.68-36.16 34.602-18.531 70.391-37.691 105.949-48.719 40.48-12.543 74.559-12.32 104.211.668 43.59 19.109 80.121 70.762 115.441 120.711 43.629 61.691 88.738 125.488 146.918 127.301 43.672 1.367 81.031-41.781 117.16-83.5 34.262-39.562 66.629-76.941 101.969-73.449 23.672 2.34 46.262 23 69.082 63.148l-2.172 1.23c-22.391-39.391-44.359-59.641-67.148-61.891-34.059-3.359-66.012 33.531-99.84 72.602-35.941 41.5-73.082 84.387-117.02 84.387'/%3E%3C/clipPath%3E%3Cg clip-path='url(%23b)'%3E%3Cpath d='M-14.926 270.699h2046.227v276.789H-14.926z' fill='%238b7fd4' style='fill-rule:nonzero'/%3E%3C/g%3E%3C/g%3E%3CclipPath id='c'%3E%3Cpath d='M1747.91 524.301c-2.648 0-5.32-.152-8.02-.473-56.961-6.719-99.57-66.418-140.762-124.148-34.898-48.898-70.98-99.461-115.527-117.738-64.781-26.57-134.543 11.82-202 48.957-24.031 13.223-46.723 25.723-68.641 34.93-40.34 16.953-80.242 22.832-121.992 17.961-35.52-4.129-72.559-15.629-120.09-37.289-73.633-33.551-146.555-59.762-228.953-12.602-19.609 11.223-39.742 25.652-59.211 39.613-56.871 40.758-115.676 82.91-179.262 62.09-40.32-13.191-75.301-49.082-109.133-83.801-39.812-40.852-80.988-83.102-130.445-87.34-51.141-4.359-92.844 39.668-133.172 82.27-43.387 45.828-88.254 93.219-145.727 82.219l.473-2.461c56.129 10.742 100.512-36.137 143.438-81.477 40.734-43.031 82.855-87.523 135.203-83.043 50.387 4.312 91.887 46.902 132.023 88.09 33.617 34.492 68.379 70.16 108.117 83.172 62.383 20.418 120.664-21.359 177.027-61.762 19.52-13.988 39.707-28.449 59.426-39.738 37.137-21.25 75.07-29.289 115.973-24.59 39.805 4.578 78.918 20.531 115.258 37.078 82.367 37.531 154.715 55.172 240.074 19.301 21.801-9.16 44.441-21.621 68.41-34.809 33.281-18.332 67.703-37.27 102.133-48.352 39.141-12.598 72.508-12.84 102.008-.73 45.23 18.551 81.52 69.41 116.621 118.602 40.879 57.289 83.16 116.531 139.031 123.109 45.25 5.34 83.738-37.48 120.938-78.879 34.262-38.133 66.633-74.141 102.391-71.133 23.109 1.953 45.27 20.172 67.75 55.723l-2.109 1.34c-22.031-34.84-43.57-52.691-65.852-54.57-34.508-2.898-66.488 32.66-100.32 70.309-35.449 39.449-72.027 80.172-115.078 80.172Z'/%3E%3C/clipPath%3E%3Cg clip-path='url(%23c)'%3E%3CclipPath id='d'%3E%3Cpath d='M1747.91 524.301c-2.648 0-5.32-.152-8.02-.473-56.961-6.719-99.57-66.418-140.762-124.148-34.898-48.898-70.98-99.461-115.527-117.738-64.781-26.57-134.543 11.82-202 48.957-24.031 13.223-46.723 25.723-68.641 34.93-40.34 16.953-80.242 22.832-121.992 17.961-35.52-4.129-72.559-15.629-120.09-37.289-73.633-33.551-146.555-59.762-228.953-12.602-19.609 11.223-39.742 25.652-59.211 39.613-56.871 40.758-115.676 82.91-179.262 62.09-40.32-13.191-75.301-49.082-109.133-83.801-39.812-40.852-80.988-83.102-130.445-87.34-51.141-4.359-92.844 39.668-133.172 82.27-43.387 45.828-88.254 93.219-145.727 82.219l.473-2.461c56.129 10.742 100.512-36.137 143.438-81.477 40.734-43.031 82.855-87.523 135.203-83.043 50.387 4.312 91.887 46.902 132.023 88.09 33.617 34.492 68.379 70.16 108.117 83.172 62.383 20.418 120.664-21.359 177.027-61.762 19.52-13.988 39.707-28.449 59.426-39.738 37.137-21.25 75.07-29.289 115.973-24.59 39.805 4.578 78.918 20.531 115.258 37.078 82.367 37.531 154.715 55.172 240.074 19.301 21.801-9.16 44.441-21.621 68.41-34.809 33.281-18.332 67.703-37.27 102.133-48.352 39.141-12.598 72.508-12.84 102.008-.73 45.23 18.551 81.52 69.41 116.621 118.602 40.879 57.289 83.16 116.531 139.031 123.109 45.25 5.34 83.738-37.48 120.938-78.879 34.262-38.133 66.633-74.141 102.391-71.133 23.109 1.953 45.27 20.172 67.75 55.723l-2.109 1.34c-22.031-34.84-43.57-52.691-65.852-54.57-34.508-2.898-66.488 32.66-100.32 70.309-35.449 39.449-72.027 80.172-115.078 80.172'/%3E%3C/clipPath%3E%3Cg clip-path='url(%23d)'%3E%3Cpath d='M-15.023 255.371H2031.27V526.68H-15.023z' fill='%238b7fd4' style='fill-rule:nonzero'/%3E%3C/g%3E%3C/g%3E%3CclipPath id='e'%3E%3Cpath d='M1749.141 500.23q-1.28 0-2.57-.039c-58.16-2.102-102.539-62.613-145.461-121.141-34.789-47.43-70.77-96.492-113.73-114.09-63.598-26.051-131.809 13.039-197.77 50.828-24.551 14.07-47.73 27.352-70.09 36.91-39.668 16.941-79.039 22.02-120.371 15.512-43.188-6.801-85.59-26.051-117.695-42.063-78.641-39.219-150.578-67.348-234.68-14.047-17.863 11.328-36.109 25.25-53.754 38.707-46.023 35.121-93.293 71.18-144.152 71.191-13.434 0-27.113-2.52-41.094-8.23-35.668-14.578-68.43-47.961-100.113-80.23-44.598-45.438-90.719-92.418-145.355-87.418-46.254 4.23-85.137 43.328-122.738 81.148-22.941 23.082-46.664 46.941-71.766 62.5-28.293 17.539-55.414 22.48-82.914 15.102l.648-2.422c59.797 16.062 104.707-29.121 152.258-76.937 37.918-38.141 77.125-77.57 124.285-81.883 55.82-5.098 102.359 42.312 147.367 88.16 31.504 32.09 64.082 65.281 99.273 79.66 65.582 26.812 125.164-18.66 182.785-62.629 17.684-13.492 35.977-27.449 53.93-38.832 38.945-24.68 76.758-33.648 118.992-28.219 37.598 4.82 74.422 20.332 118.145 42.141 84.871 42.328 153.949 61.52 235.969 26.488 22.223-9.5 45.352-22.75 69.832-36.777 32.57-18.66 66.25-37.961 99.938-49.359 38.312-12.961 71.031-13.492 100.02-1.613 43.621 17.871 79.801 67.211 114.793 114.922 42.57 58.051 86.59 118.07 143.539 120.121 42.828 1.547 79.809-37.293 115.559-74.852 34.492-36.238 67.051-70.469 103.27-67.891 22.41 1.602 43.91 17.301 65.742 47.992l-2.039 1.449c-21.363-30.051-42.262-45.402-63.883-46.941-35.027-2.488-67.199 31.32-101.277 67.121-35.422 37.211-72.031 75.66-114.891 75.66Z'/%3E%3C/clipPath%3E%3Cg clip-path='url(%23e)'%3E%3CclipPath id='f'%3E%3Cpath d='M1749.141 500.23q-1.28 0-2.57-.039c-58.16-2.102-102.539-62.613-145.461-121.141-34.789-47.43-70.77-96.492-113.73-114.09-63.598-26.051-131.809 13.039-197.77 50.828-24.551 14.07-47.73 27.352-70.09 36.91-39.668 16.941-79.039 22.02-120.371 15.512-43.188-6.801-85.59-26.051-117.695-42.063-78.641-39.219-150.578-67.348-234.68-14.047-17.863 11.328-36.109 25.25-53.754 38.707-46.023 35.121-93.293 71.18-144.152 71.191-13.434 0-27.113-2.52-41.094-8.23-35.668-14.578-68.43-47.961-100.113-80.23-44.598-45.438-90.719-92.418-145.355-87.418-46.254 4.23-85.137 43.328-122.738 81.148-22.941 23.082-46.664 46.941-71.766 62.5-28.293 17.539-55.414 22.48-82.914 15.102l.648-2.422c59.797 16.062 104.707-29.121 152.258-76.937 37.918-38.141 77.125-77.57 124.285-81.883 55.82-5.098 102.359 42.312 147.367 88.16 31.504 32.09 64.082 65.281 99.273 79.66 65.582 26.812 125.164-18.66 182.785-62.629 17.684-13.492 35.977-27.449 53.93-38.832 38.945-24.68 76.758-33.648 118.992-28.219 37.598 4.82 74.422 20.332 118.145 42.141 84.871 42.328 153.949 61.52 235.969 26.488 22.223-9.5 45.352-22.75 69.832-36.777 32.57-18.66 66.25-37.961 99.938-49.359 38.312-12.961 71.031-13.492 100.02-1.613 43.621 17.871 79.801 67.211 114.793 114.922 42.57 58.051 86.59 118.07 143.539 120.121 42.828 1.547 79.809-37.293 115.559-74.852 34.492-36.238 67.051-70.469 103.27-67.891 22.41 1.602 43.91 17.301 65.742 47.992l-2.039 1.449c-21.363-30.051-42.262-45.402-63.883-46.941-35.027-2.488-67.199 31.32-101.277 67.121-35.422 37.211-72.031 75.66-114.891 75.66'/%3E%3C/clipPath%3E%3Cg clip-path='url(%23f)'%3E%3Cpath d='M-15.113 238.531h2046.344V500.23H-15.113z' fill='%238b7fd4' style='fill-rule:nonzero'/%3E%3C/g%3E%3C/g%3E%3CclipPath id='g'%3E%3Cpath d='M1750.629 477.512c-25.91 0-51.301-11.871-77.551-36.23-24.098-22.371-46.699-53-68.559-82.621-34.77-47.109-70.73-95.84-113.559-112.559-63.301-24.73-128.812 15.328-192.172 54.07-25.027 15.297-48.68 29.758-71.867 40.109-38.402 17.129-77.23 21.32-118.723 12.797-40.449-8.297-79.328-27.488-115.32-46.988-80.762-43.75-148.551-73.48-224.199-26.398-21.398 13.309-43.035 31.25-63.961 48.598-45.125 37.402-91.535 75.859-142.578 75.871-10.242 0-20.668-1.551-31.312-4.969-40.238-12.91-75.602-48.883-109.797-83.66-42.727-43.453-86.922-88.391-140.184-87.23-49.008 1.07-90.926 40.789-131.465 79.199-24.648 23.359-50.137 47.512-76.91 62.609-30.18 17.031-58.855 20.52-87.664 10.68l.809-2.367c62.691 21.418 110.949-24.312 162.043-72.73 40.887-38.742 83.16-78.801 133.133-79.891 54.328-1.16 98.922 44.141 142.02 87.98 33.984 34.559 69.129 70.309 108.781 83.027 62.379 20.02 117.871-25.969 171.531-70.449 20.988-17.398 42.691-35.391 64.23-48.789 36-22.398 73.449-29.23 114.48-20.871 37.188 7.582 74.309 26.652 112.234 47.191 73.371 39.75 146.309 72.27 231.828 34.109 23.043-10.281 46.621-24.699 71.59-39.969 63.871-39.051 129.922-79.441 194.383-54.262 43.5 16.992 79.68 66 114.66 113.41 43.43 58.84 88.359 119.68 146.789 117.781 40.98-1.34 76.461-37.012 110.77-71.5 34.352-34.531 66.789-67.141 103.199-65.313 21.672 1.102 42.57 14.402 63.891 40.66l-1.941 1.582c-20.848-25.68-41.148-38.68-62.078-39.742-35.289-1.777-67.352 30.453-101.289 64.57-34.66 34.84-70.5 70.871-112.473 72.242-.918.027-1.848.051-2.77.051Z'/%3E%3C/clipPath%3E%3Cg clip-path='url(%23g)'%3E%3CclipPath id='h'%3E%3Cpath d='M1750.629 477.512c-25.91 0-51.301-11.871-77.551-36.23-24.098-22.371-46.699-53-68.559-82.621-34.77-47.109-70.73-95.84-113.559-112.559-63.301-24.73-128.812 15.328-192.172 54.07-25.027 15.297-48.68 29.758-71.867 40.109-38.402 17.129-77.23 21.32-118.723 12.797-40.449-8.297-79.328-27.488-115.32-46.988-80.762-43.75-148.551-73.48-224.199-26.398-21.398 13.309-43.035 31.25-63.961 48.598-45.125 37.402-91.535 75.859-142.578 75.871-10.242 0-20.668-1.551-31.312-4.969-40.238-12.91-75.602-48.883-109.797-83.66-42.727-43.453-86.922-88.391-140.184-87.23-49.008 1.07-90.926 40.789-131.465 79.199-24.648 23.359-50.137 47.512-76.91 62.609-30.18 17.031-58.855 20.52-87.664 10.68l.809-2.367c62.691 21.418 110.949-24.312 162.043-72.73 40.887-38.742 83.16-78.801 133.133-79.891 54.328-1.16 98.922 44.141 142.02 87.98 33.984 34.559 69.129 70.309 108.781 83.027 62.379 20.02 117.871-25.969 171.531-70.449 20.988-17.398 42.691-35.391 64.23-48.789 36-22.398 73.449-29.23 114.48-20.871 37.188 7.582 74.309 26.652 112.234 47.191 73.371 39.75 146.309 72.27 231.828 34.109 23.043-10.281 46.621-24.699 71.59-39.969 63.871-39.051 129.922-79.441 194.383-54.262 43.5 16.992 79.68 66 114.66 113.41 43.43 58.84 88.359 119.68 146.789 117.781 40.98-1.34 76.461-37.012 110.77-71.5 34.352-34.531 66.789-67.141 103.199-65.313 21.672 1.102 42.57 14.402 63.891 40.66l-1.941 1.582c-20.848-25.68-41.148-38.68-62.078-39.742-35.289-1.777-67.352 30.453-101.289 64.57-34.66 34.84-70.5 70.871-112.473 72.242-.918.027-1.848.051-2.77.051'/%3E%3C/clipPath%3E%3Cg clip-path='url(%23h)'%3E%3Cpath d='M-15.191 218.59H2031.18v258.922H-15.191z' fill='%238b7fd4' style='fill-rule:nonzero'/%3E%3C/g%3E%3C/g%3E%3CclipPath id='i'%3E%3Cpath d='M1753.551 454.352h-.441c-26.25-.152-51.859-12.16-78.289-36.73-23.441-21.801-45.398-51.281-66.629-79.793-35.812-48.09-72.84-97.809-118.203-112.449-60.816-19.617-121.75 20.121-180.668 58.562-23.441 15.277-45.57 29.719-67.52 40.43-85.879 41.918-158.199 7.5-237.129-38.211-87.789-50.84-156.109-82.32-236.102-24.02-17.605 12.828-35.465 28.84-52.742 44.32-43.918 39.348-89.125 79.848-140.082 79.859-8.391 0-16.934-1.102-25.656-3.48-42.352-11.57-79.031-48.789-114.504-84.781-41.84-42.449-85.109-86.359-137.199-86.988-.395-.012-.793-.012-1.188-.012-50.453 0-94.527 39.242-137.168 77.203-26.508 23.59-53.918 47.988-82.5 62.547-32.211 16.41-62.562 18.332-92.793 5.891l.949-2.309c65.852 27.098 117.742-19.09 172.68-68 42.988-38.27 87.43-77.832 138.828-77.832.406 0 .812 0 1.223.012 53.117.648 96.754 44.918 138.949 87.738 35.238 35.75 71.68 72.73 113.379 84.121 60.383 16.492 112.762-30.449 163.414-75.828 17.32-15.523 35.23-31.57 52.938-44.48 38.664-28.18 76.891-37.312 120.305-28.73 38.867 7.68 76.672 28.371 118.527 52.609 78.289 45.34 150.012 79.512 234.781 38.121 21.801-10.641 43.867-25.043 67.238-40.281 59.422-38.75 120.852-78.828 182.812-58.84 46.117 14.879 83.387 64.941 119.438 113.34 42.172 56.629 85.77 115.191 142.922 115.512h.43c41.719 0 77.738-34.43 112.578-67.742 33.762-32.281 65.68-62.801 101.66-62.801.562 0 1.109.012 1.672.02 20.867.551 41.039 11.461 61.66 33.363l-1.82 1.707c-20.141-21.387-39.742-32.039-59.91-32.57-35.59-.906-67.641 29.684-101.539 62.094-35.191 33.637-71.582 68.43-114.301 68.43Z'/%3E%3C/clipPath%3E%3Cg clip-path='url(%23i)'%3E%3CclipPath id='j'%3E%3Cpath d='M1753.551 454.352h-.441c-26.25-.152-51.859-12.16-78.289-36.73-23.441-21.801-45.398-51.281-66.629-79.793-35.812-48.09-72.84-97.809-118.203-112.449-60.816-19.617-121.75 20.121-180.668 58.562-23.441 15.277-45.57 29.719-67.52 40.43-85.879 41.918-158.199 7.5-237.129-38.211-87.789-50.84-156.109-82.32-236.102-24.02-17.605 12.828-35.465 28.84-52.742 44.32-43.918 39.348-89.125 79.848-140.082 79.859-8.391 0-16.934-1.102-25.656-3.48-42.352-11.57-79.031-48.789-114.504-84.781-41.84-42.449-85.109-86.359-137.199-86.988-.395-.012-.793-.012-1.188-.012-50.453 0-94.527 39.242-137.168 77.203-26.508 23.59-53.918 47.988-82.5 62.547-32.211 16.41-62.562 18.332-92.793 5.891l.949-2.309c65.852 27.098 117.742-19.09 172.68-68 42.988-38.27 87.43-77.832 138.828-77.832.406 0 .812 0 1.223.012 53.117.648 96.754 44.918 138.949 87.738 35.238 35.75 71.68 72.73 113.379 84.121 60.383 16.492 112.762-30.449 163.414-75.828 17.32-15.523 35.23-31.57 52.938-44.48 38.664-28.18 76.891-37.312 120.305-28.73 38.867 7.68 76.672 28.371 118.527 52.609 78.289 45.34 150.012 79.512 234.781 38.121 21.801-10.641 43.867-25.043 67.238-40.281 59.422-38.75 120.852-78.828 182.812-58.84 46.117 14.879 83.387 64.941 119.438 113.34 42.172 56.629 85.77 115.191 142.922 115.512h.43c41.719 0 77.738-34.43 112.578-67.742 33.762-32.281 65.68-62.801 101.66-62.801.562 0 1.109.012 1.672.02 20.867.551 41.039 11.461 61.66 33.363l-1.82 1.707c-20.141-21.387-39.742-32.039-59.91-32.57-35.59-.906-67.641 29.684-101.539 62.094-35.191 33.637-71.582 68.43-114.301 68.43'/%3E%3C/clipPath%3E%3Cg clip-path='url(%23j)'%3E%3Cpath d='M-15.262 203.012h2046.383v251.34H-15.262z' fill='%238b7fd4' style='fill-rule:nonzero'/%3E%3C/g%3E%3C/g%3E%3CclipPath id='k'%3E%3Cpath d='M1756.352 431.23c-1.191 0-2.391-.031-3.602-.082-56.84-2.477-100.34-59.539-142.422-114.719-34.469-45.219-70.117-91.969-112.809-108.508-60.781-23.551-120.098 18.406-177.461 58.988-22.047 15.59-42.879 30.328-63.738 41.469-40.102 21.422-78.91 26.223-122.141 15.109-40.508-10.41-80.41-34.008-117.82-57.297-77.5-48.242-150.707-93.812-231.922-33.031-19.465 14.57-38.77 33.031-57.438 50.879-43.109 41.223-87.418 83.582-138.664 83.582-12.016.008-24.402-2.32-37.258-7.543-36.516-14.816-69.141-47.738-100.695-79.578-41-41.371-83.395-84.148-134.156-86.59-53.047-2.57-100.109 36.969-145.633 75.191-28.375 23.828-57.719 48.457-88.102 62.457-34.227 15.77-66.223 16.113-97.816 1.062l1.074-2.262c68.891 32.832 124.43-13.801 183.234-63.168 45.895-38.543 93.34-78.371 147.359-75.781 51.734 2.488 94.48 45.621 135.816 87.328 31.375 31.66 63.816 64.402 99.859 79.031 29.641 12.031 59.465 9.281 91.172-8.391 28.43-15.848 55.703-41.93 82.082-67.148 18.719-17.902 38.078-36.41 57.664-51.07 37.449-28.031 75.164-35.941 118.688-24.91 39.117 9.922 78.23 34.27 116.066 57.82 82.75 51.52 152.777 87.328 237.457 42.102 20.711-11.062 41.48-25.75 63.461-41.312 57.902-40.949 117.77-83.309 179.812-59.27 43.348 16.789 79.219 63.832 113.898 109.32 41.73 54.73 84.871 111.309 140.539 113.738 43.129 1.871 80.082-31.629 115.84-64.027 25.68-23.27 49.941-45.262 76.312-55.09 29.648-11.062 57.789-4.18 86.027 21.02l-1.66 1.871c-61.18-54.602-108.699-11.531-159 34.059-35.141 31.84-71.449 64.738-114.027 64.75Z'/%3E%3C/clipPath%3E%3Cg clip-path='url(%23k)'%3E%3CclipPath id='l'%3E%3Cpath d='M1756.352 431.23c-1.191 0-2.391-.031-3.602-.082-56.84-2.477-100.34-59.539-142.422-114.719-34.469-45.219-70.117-91.969-112.809-108.508-60.781-23.551-120.098 18.406-177.461 58.988-22.047 15.59-42.879 30.328-63.738 41.469-40.102 21.422-78.91 26.223-122.141 15.109-40.508-10.41-80.41-34.008-117.82-57.297-77.5-48.242-150.707-93.812-231.922-33.031-19.465 14.57-38.77 33.031-57.438 50.879-43.109 41.223-87.418 83.582-138.664 83.582-12.016.008-24.402-2.32-37.258-7.543-36.516-14.816-69.141-47.738-100.695-79.578-41-41.371-83.395-84.148-134.156-86.59-53.047-2.57-100.109 36.969-145.633 75.191-28.375 23.828-57.719 48.457-88.102 62.457-34.227 15.77-66.223 16.113-97.816 1.062l1.074-2.262c68.891 32.832 124.43-13.801 183.234-63.168 45.895-38.543 93.34-78.371 147.359-75.781 51.734 2.488 94.48 45.621 135.816 87.328 31.375 31.66 63.816 64.402 99.859 79.031 29.641 12.031 59.465 9.281 91.172-8.391 28.43-15.848 55.703-41.93 82.082-67.148 18.719-17.902 38.078-36.41 57.664-51.07 37.449-28.031 75.164-35.941 118.688-24.91 39.117 9.922 78.23 34.27 116.066 57.82 82.75 51.52 152.777 87.328 237.457 42.102 20.711-11.062 41.48-25.75 63.461-41.312 57.902-40.949 117.77-83.309 179.812-59.27 43.348 16.789 79.219 63.832 113.898 109.32 41.73 54.73 84.871 111.309 140.539 113.738 43.129 1.871 80.082-31.629 115.84-64.027 25.68-23.27 49.941-45.262 76.312-55.09 29.648-11.062 57.789-4.18 86.027 21.02l-1.66 1.871c-61.18-54.602-108.699-11.531-159 34.059-35.141 31.84-71.449 64.738-114.027 64.75'/%3E%3C/clipPath%3E%3Cg clip-path='url(%23l)'%3E%3Cpath d='M-15.324 172.379h2046.363v258.852H-15.324z' fill='%238b7fd4' style='fill-rule:nonzero'/%3E%3C/g%3E%3C/g%3E%3CclipPath id='m'%3E%3Cpath d='M1759.309 408.051c-2.34 0-4.688-.102-7.07-.289-55.457-4.543-98.398-60.062-139.93-113.762-33.098-42.789-67.328-87.051-107.547-105.109-61.062-27.441-119.793 17.641-176.59 61.23-23.031 17.68-44.793 34.379-66.594 46.367-38.578 21.223-76.629 24.801-119.738 11.273-37.051-11.621-72.219-33.871-114.352-61.73l-2.438-1.609c-78.355-51.852-152.367-100.82-233.16-34.051-17.574 14.52-35.246 32.719-52.336 50.309-42.676 43.941-86.57 89.109-137.766 89.121-10.438 0-21.176-1.879-32.273-6.031-38.145-14.25-71.801-48.121-104.352-80.879-40.219-40.469-81.809-82.32-131.562-86.371-55.133-4.48-104.723 35.109-152.68 73.391-30.168 24.09-61.367 48.988-93.504 62.441-36.191 15.148-69.816 13.898-102.797-3.82l1.184-2.203c71.977 38.684 131.035-8.457 193.559-58.367 48.34-38.59 98.324-78.48 154.437-73.93 50.676 4.117 92.598 46.309 133.137 87.098 32.359 32.562 65.82 66.242 103.453 80.301 64.004 23.922 116.551-30.168 167.371-82.488 17.137-17.641 34.859-35.891 52.539-50.5 82.215-67.941 156.977-18.48 236.129 33.887l2.441 1.613c72.109 47.699 146.668 97.02 231.5 50.359 21.641-11.902 43.32-28.539 66.277-46.16 57.383-44.039 116.711-89.582 179.141-61.531 40.789 18.32 75.211 62.82 108.492 105.859 41.199 53.27 83.797 108.352 138.16 112.801 44.41 3.629 82.438-28.82 119.207-60.191 24.043-20.52 48.902-41.727 74.801-51.727 29.141-11.262 56.781-6.98 84.5 13.07l-1.469 2.02c-60.09-43.473-106.781-3.633-156.211 38.539-35.211 30.051-71.57 61.059-113.961 61.07Z'/%3E%3C/clipPath%3E%3Cg clip-path='url(%23m)'%3E%3CclipPath id='n'%3E%3Cpath d='M1759.309 408.051c-2.34 0-4.688-.102-7.07-.289-55.457-4.543-98.398-60.062-139.93-113.762-33.098-42.789-67.328-87.051-107.547-105.109-61.062-27.441-119.793 17.641-176.59 61.23-23.031 17.68-44.793 34.379-66.594 46.367-38.578 21.223-76.629 24.801-119.738 11.273-37.051-11.621-72.219-33.871-114.352-61.73l-2.438-1.609c-78.355-51.852-152.367-100.82-233.16-34.051-17.574 14.52-35.246 32.719-52.336 50.309-42.676 43.941-86.57 89.109-137.766 89.121-10.438 0-21.176-1.879-32.273-6.031-38.145-14.25-71.801-48.121-104.352-80.879-40.219-40.469-81.809-82.32-131.562-86.371-55.133-4.48-104.723 35.109-152.68 73.391-30.168 24.09-61.367 48.988-93.504 62.441-36.191 15.148-69.816 13.898-102.797-3.82l1.184-2.203c71.977 38.684 131.035-8.457 193.559-58.367 48.34-38.59 98.324-78.48 154.437-73.93 50.676 4.117 92.598 46.309 133.137 87.098 32.359 32.562 65.82 66.242 103.453 80.301 64.004 23.922 116.551-30.168 167.371-82.488 17.137-17.641 34.859-35.891 52.539-50.5 82.215-67.941 156.977-18.48 236.129 33.887l2.441 1.613c72.109 47.699 146.668 97.02 231.5 50.359 21.641-11.902 43.32-28.539 66.277-46.16 57.383-44.039 116.711-89.582 179.141-61.531 40.789 18.32 75.211 62.82 108.492 105.859 41.199 53.27 83.797 108.352 138.16 112.801 44.41 3.629 82.438-28.82 119.207-60.191 24.043-20.52 48.902-41.727 74.801-51.727 29.141-11.262 56.781-6.98 84.5 13.07l-1.469 2.02c-60.09-43.473-106.781-3.633-156.211 38.539-35.211 30.051-71.57 61.059-113.961 61.07'/%3E%3C/clipPath%3E%3Cg clip-path='url(%23n)'%3E%3Cpath d='M-15.379 140.5h2046.328v268.398H-15.379z' fill='%238b7fd4' style='fill-rule:nonzero'/%3E%3C/g%3E%3C/g%3E%3CclipPath id='o'%3E%3Cpath d='M1762.43 384.789c-3.621 0-7.27-.211-10.969-.648-54.18-6.539-96.082-60.281-136.609-112.25-34.23-43.902-69.621-89.289-112.16-106.07-58.43-23.059-113.031 22.168-165.84 65.918-18.742 15.523-36.453 30.184-54.211 41.793-40.621 26.559-80.359 32.57-125.07 18.918-41.121-12.551-83.02-41.449-119.992-66.949l-6.18-4.262C952.887 167.001 878.723 115.77 798.45 187.38c-16.758 14.961-33.43 33.312-49.551 51.062-41.352 45.527-83.922 92.387-135.598 92.387-8.582.012-17.406-1.289-26.527-4.09-40.766-12.527-75.855-48.137-109.789-82.566-38.801-39.383-78.922-80.094-127.191-85.531-57.105-6.449-109.066 33.359-159.32 71.848-31.848 24.383-64.777 49.613-98.539 62.551-38.012 14.582-73.129 11.77-107.359-8.59l1.277-2.148c33.992 20.219 67.418 22.898 105.188 8.41 33.422-12.82 66.207-37.93 97.91-62.211 50.648-38.789 103.027-78.91 161.125-72.352 49.148 5.543 89.586 46.582 128.691 86.262 33.715 34.219 68.578 69.59 108.742 81.941 62.527 19.219 111.844-35.082 159.539-87.59 16.164-17.801 32.883-36.203 49.738-51.242 19.656-17.539 39.402-28.371 60.371-33.098 18.754-4.242 38.082-3.48 59.082 2.34 38.922 10.77 76.641 36.828 116.582 64.418l6.18 4.262c79 54.488 153.629 105.957 242.27 48 17.652-11.531 35.301-26.152 53.98-41.633 53.371-44.207 108.559-89.918 168.359-66.32 43.172 17.031 78.781 62.703 113.211 106.863 40.211 51.57 81.789 104.887 134.941 111.297 45.898 5.543 85.367-25.91 123.559-56.328 23.52-18.73 47.852-38.109 73.18-48.242 28.531-11.406 55.461-9.707 82.32 5.203l-1.211 2.18c-58.328-32.383-104.18 4.148-152.73 42.82-35.551 28.309-72.207 57.508-114.449 57.508Z'/%3E%3C/clipPath%3E%3Cg clip-path='url(%23o)'%3E%3CclipPath id='p'%3E%3Cpath d='M1762.43 384.789c-3.621 0-7.27-.211-10.969-.648-54.18-6.539-96.082-60.281-136.609-112.25-34.23-43.902-69.621-89.289-112.16-106.07-58.43-23.059-113.031 22.168-165.84 65.918-18.742 15.523-36.453 30.184-54.211 41.793-40.621 26.559-80.359 32.57-125.07 18.918-41.121-12.551-83.02-41.449-119.992-66.949l-6.18-4.262C952.887 167.001 878.723 115.77 798.45 187.38c-16.758 14.961-33.43 33.312-49.551 51.062-41.352 45.527-83.922 92.387-135.598 92.387-8.582.012-17.406-1.289-26.527-4.09-40.766-12.527-75.855-48.137-109.789-82.566-38.801-39.383-78.922-80.094-127.191-85.531-57.105-6.449-109.066 33.359-159.32 71.848-31.848 24.383-64.777 49.613-98.539 62.551-38.012 14.582-73.129 11.77-107.359-8.59l1.277-2.148c33.992 20.219 67.418 22.898 105.188 8.41 33.422-12.82 66.207-37.93 97.91-62.211 50.648-38.789 103.027-78.91 161.125-72.352 49.148 5.543 89.586 46.582 128.691 86.262 33.715 34.219 68.578 69.59 108.742 81.941 62.527 19.219 111.844-35.082 159.539-87.59 16.164-17.801 32.883-36.203 49.738-51.242 19.656-17.539 39.402-28.371 60.371-33.098 18.754-4.242 38.082-3.48 59.082 2.34 38.922 10.77 76.641 36.828 116.582 64.418l6.18 4.262c79 54.488 153.629 105.957 242.27 48 17.652-11.531 35.301-26.152 53.98-41.633 53.371-44.207 108.559-89.918 168.359-66.32 43.172 17.031 78.781 62.703 113.211 106.863 40.211 51.57 81.789 104.887 134.941 111.297 45.898 5.543 85.367-25.91 123.559-56.328 23.52-18.73 47.852-38.109 73.18-48.242 28.531-11.406 55.461-9.707 82.32 5.203l-1.211 2.18c-58.328-32.383-104.18 4.148-152.73 42.82-35.551 28.309-72.207 57.508-114.449 57.508'/%3E%3C/clipPath%3E%3Cg clip-path='url(%23p)'%3E%3Cpath d='M-15.426 115.77H2030.82v271.422H-15.426z' fill='%238b7fd4' style='fill-rule:nonzero'/%3E%3C/g%3E%3C/g%3E%3CclipPath id='q'%3E%3Cpath d='M1765.238 361.371c-4.027 0-8.098-.25-12.207-.77-53.973-6.812-95.832-59.961-136.32-111.363-34.211-43.438-69.59-88.359-112.02-105.137-58.051-22.973-110.453 23.578-161.133 68.598-17.918 15.922-34.859 30.961-52.008 43.039-27.531 19.383-53.902 27.332-79.582 27.332-56.117.008-109.02-37.922-164.027-77.34l-1.793-1.281q-4.649-3.346-9.297-6.688c-37.633-27.07-76.543-55.062-114.922-66.172-43.324-12.539-80.273-2.59-116.277 31.332-16.449 15.5-32.707 34.449-48.434 52.777-46.918 54.711-95.441 111.27-159.695 91.531-40.633-12.48-75.594-47.992-109.402-82.34-38.637-39.25-78.59-79.84-126.664-85.27-57.805-6.551-111.012 32.988-162.465 71.207-33.359 24.793-67.852 50.422-103.062 62.91-39.633 14.062-76.074 9.684-111.402-13.379l1.367-2.09c35.113 22.922 69.812 27.09 109.199 13.109 34.855-12.359 69.195-37.879 102.406-62.551 51.84-38.52 105.453-78.348 164.238-71.699 48.953 5.543 89.223 46.449 128.168 86.012 33.59 34.121 68.324 69.41 108.352 81.699 62.691 19.262 110.668-36.668 157.062-90.762 15.77-18.387 32.07-37.387 48.617-52.977 19.375-18.25 38.941-29.512 59.82-34.422 18.645-4.379 37.898-3.559 58.867 2.512 38.793 11.219 77.887 39.348 115.684 66.539 3.102 2.23 6.203 4.461 9.301 6.68l1.789 1.289c40.633 29.121 79.012 56.621 118.402 69.492 44.109 14.387 82.969 8.199 122.309-19.5 17.039-11.992 33.922-26.992 51.789-42.863 51.25-45.52 104.23-92.59 163.711-69.059 43.062 17.031 78.652 62.219 113.07 105.922 40.172 51 81.711 103.738 134.66 110.43 46.582 5.891 87.332-24.152 126.73-53.199 46-33.91 93.57-68.98 150.602-46.773l-.91 2.332c-55.742-21.711-100.66 11.398-148.211 46.461-36.352 26.797-73.832 54.43-116.312 54.43Z'/%3E%3C/clipPath%3E%3Cg clip-path='url(%23q)'%3E%3CclipPath id='r'%3E%3Cpath d='M1765.238 361.371c-4.027 0-8.098-.25-12.207-.77-53.973-6.812-95.832-59.961-136.32-111.363-34.211-43.438-69.59-88.359-112.02-105.137-58.051-22.973-110.453 23.578-161.133 68.598-17.918 15.922-34.859 30.961-52.008 43.039-27.531 19.383-53.902 27.332-79.582 27.332-56.117.008-109.02-37.922-164.027-77.34l-1.793-1.281q-4.649-3.346-9.297-6.688c-37.633-27.07-76.543-55.062-114.922-66.172-43.324-12.539-80.273-2.59-116.277 31.332-16.449 15.5-32.707 34.449-48.434 52.777-46.918 54.711-95.441 111.27-159.695 91.531-40.633-12.48-75.594-47.992-109.402-82.34-38.637-39.25-78.59-79.84-126.664-85.27-57.805-6.551-111.012 32.988-162.465 71.207-33.359 24.793-67.852 50.422-103.062 62.91-39.633 14.062-76.074 9.684-111.402-13.379l1.367-2.09c35.113 22.922 69.812 27.09 109.199 13.109 34.855-12.359 69.195-37.879 102.406-62.551 51.84-38.52 105.453-78.348 164.238-71.699 48.953 5.543 89.223 46.449 128.168 86.012 33.59 34.121 68.324 69.41 108.352 81.699 62.691 19.262 110.668-36.668 157.062-90.762 15.77-18.387 32.07-37.387 48.617-52.977 19.375-18.25 38.941-29.512 59.82-34.422 18.645-4.379 37.898-3.559 58.867 2.512 38.793 11.219 77.887 39.348 115.684 66.539 3.102 2.23 6.203 4.461 9.301 6.68l1.789 1.289c40.633 29.121 79.012 56.621 118.402 69.492 44.109 14.387 82.969 8.199 122.309-19.5 17.039-11.992 33.922-26.992 51.789-42.863 51.25-45.52 104.23-92.59 163.711-69.059 43.062 17.031 78.652 62.219 113.07 105.922 40.172 51 81.711 103.738 134.66 110.43 46.582 5.891 87.332-24.152 126.73-53.199 46-33.91 93.57-68.98 150.602-46.773l-.91 2.332c-55.742-21.711-100.66 11.398-148.211 46.461-36.352 26.797-73.832 54.43-116.312 54.43'/%3E%3C/clipPath%3E%3Cg clip-path='url(%23r)'%3E%3Cpath d='M-15.473 118.238h2046.145v245.773H-15.473z' fill='%238b7fd4' style='fill-rule:nonzero'/%3E%3C/g%3E%3C/g%3E%3CclipPath id='s'%3E%3Cpath d='M1767.441 337.719c-3.5 0-7.02-.168-10.582-.527-54.84-5.531-97.629-59.211-139.008-111.133-33.023-41.418-67.172-84.258-107.113-102.289-60.129-27.141-111.867 21.551-161.91 68.641-19.527 18.371-39.719 37.371-59.816 51.078-36.223 24.711-74.41 29.25-116.73 13.891-37.52-13.609-74.59-41.219-110.43-67.91-3.043-2.27-6.07-4.527-9.113-6.777-3.879-2.883-7.758-5.781-11.648-8.68-36.961-27.613-75.176-56.152-113.234-67.852-42.547-13.09-80.125-3.059-114.879 30.66-16.676 16.18-33.117 36.211-49.016 55.578-39.816 48.5-80.781 98.383-132.188 98.391-9.785 0-19.941-1.809-30.547-5.77-37.773-14.129-71.07-47.73-103.273-80.219-39.742-40.102-80.84-81.562-130.039-85.609-48.121-3.961-95.988 30.199-142.277 63.238-13.238 9.449-25.742 18.371-38.105 26.289-67.078 42.98-133.082 77.422-203.043 27.551l1.449-2.031C54.63 283.2 119.857 249.11 186.185 206.622c12.309-7.891 24.789-16.801 38-26.23 46.656-33.301 94.898-67.742 143.938-63.699 50.117 4.129 91.543 45.93 131.609 86.348 32.012 32.301 65.113 65.699 102.371 79.633 64.656 24.188 113.09-34.812 159.926-91.863 15.945-19.418 32.43-39.5 49.207-55.777 79.098-76.742 156.5-18.93 231.344 36.969 3.891 2.91 7.773 5.809 11.652 8.68 3.039 2.262 6.07 4.52 9.109 6.781 35.699 26.59 72.621 54.078 109.789 67.57 41.52 15.07 78.961 10.609 114.473-13.609 19.93-13.594 40.047-32.531 59.508-50.832 50.641-47.66 103-96.93 164.66-69.102 40.492 18.281 74.832 61.363 108.031 103.012 41.059 51.52 83.52 104.781 137.309 110.199 46.719 4.711 88.602-23.668 129.09-51.129 44.672-30.289 90.871-61.609 144.289-49.531l-.547 2.43c-52.371-11.828-98.113 19.18-142.332 49.172-37.809 25.641-76.82 52.078-120.168 52.078Z'/%3E%3C/clipPath%3E%3Cg clip-path='url(%23s)'%3E%3CclipPath id='t'%3E%3Cpath d='M1767.441 337.719c-3.5 0-7.02-.168-10.582-.527-54.84-5.531-97.629-59.211-139.008-111.133-33.023-41.418-67.172-84.258-107.113-102.289-60.129-27.141-111.867 21.551-161.91 68.641-19.527 18.371-39.719 37.371-59.816 51.078-36.223 24.711-74.41 29.25-116.73 13.891-37.52-13.609-74.59-41.219-110.43-67.91-3.043-2.27-6.07-4.527-9.113-6.777-3.879-2.883-7.758-5.781-11.648-8.68-36.961-27.613-75.176-56.152-113.234-67.852-42.547-13.09-80.125-3.059-114.879 30.66-16.676 16.18-33.117 36.211-49.016 55.578-39.816 48.5-80.781 98.383-132.188 98.391-9.785 0-19.941-1.809-30.547-5.77-37.773-14.129-71.07-47.73-103.273-80.219-39.742-40.102-80.84-81.562-130.039-85.609-48.121-3.961-95.988 30.199-142.277 63.238-13.238 9.449-25.742 18.371-38.105 26.289-67.078 42.98-133.082 77.422-203.043 27.551l1.449-2.031C54.63 283.2 119.857 249.11 186.185 206.622c12.309-7.891 24.789-16.801 38-26.23 46.656-33.301 94.898-67.742 143.938-63.699 50.117 4.129 91.543 45.93 131.609 86.348 32.012 32.301 65.113 65.699 102.371 79.633 64.656 24.188 113.09-34.812 159.926-91.863 15.945-19.418 32.43-39.5 49.207-55.777 79.098-76.742 156.5-18.93 231.344 36.969 3.891 2.91 7.773 5.809 11.652 8.68 3.039 2.262 6.07 4.52 9.109 6.781 35.699 26.59 72.621 54.078 109.789 67.57 41.52 15.07 78.961 10.609 114.473-13.609 19.93-13.594 40.047-32.531 59.508-50.832 50.641-47.66 103-96.93 164.66-69.102 40.492 18.281 74.832 61.363 108.031 103.012 41.059 51.52 83.52 104.781 137.309 110.199 46.719 4.711 88.602-23.668 129.09-51.129 44.672-30.289 90.871-61.609 144.289-49.531l-.547 2.43c-52.371-11.828-98.113 19.18-142.332 49.172-37.809 25.641-76.82 52.078-120.168 52.078'/%3E%3C/clipPath%3E%3Cg clip-path='url(%23t)'%3E%3Cpath d='M-15.512 58.289h2046V339.41h-2046z' fill='%238b7fd4' style='fill-rule:nonzero'/%3E%3C/g%3E%3C/g%3E%3CclipPath id='u'%3E%3Cpath d='M1769.961 314.012c-4.102 0-8.223-.211-12.371-.672-54.699-6.012-97.48-59.262-138.859-110.75-33.012-41.09-67.152-83.578-107.031-101.738-60.32-27.461-110.57 21.848-159.168 69.539-19.082 18.719-38.82 38.09-58.711 52.211-23.609 16.77-46.742 23.68-69.441 23.688-54.367 0-106.34-39.609-157.109-78.301-3.469-2.637-6.93-5.277-10.391-7.91a2942 2942 0 0 1-12.398-9.449c-74.293-56.758-151.121-115.457-228.223-38.34-16.586 16.59-32.812 37.031-48.5 56.801-39.066 49.219-79.254 99.852-130.758 99.859-9.754 0-19.906-1.82-30.543-5.801-37.621-14.098-70.832-47.637-102.949-80.078-39.707-40.102-80.77-81.582-129.863-85.492-47.781-3.816-95.766 30.41-142.168 63.512-14.125 10.07-27.465 19.59-40.59 27.871-68.625 43.277-136.055 77.629-206.438 23.23l1.527-1.98c69.109 53.418 135.73 19.43 203.574-23.371 13.066-8.238 26.379-17.738 40.473-27.789 46.766-33.359 95.133-67.84 143.82-63.973 50.02 3.992 91.414 45.801 131.441 86.23 31.926 32.25 64.941 65.59 102.047 79.492 29.145 10.918 57.258 5.91 85.953-15.312 25.75-19.039 49.523-48.988 72.512-77.949 15.734-19.828 32.004-40.328 48.691-57.02 35.242-35.25 73.66-45.629 117.449-31.75 38.621 12.242 76.973 41.539 114.062 69.879 4.141 3.16 8.27 6.312 12.391 9.441 3.461 2.621 6.93 5.27 10.398 7.91 71.242 54.289 144.902 110.441 223.59 54.559 19.723-14.008 39.391-33.297 58.402-51.957 49.199-48.281 100.07-98.203 161.957-70.023 40.41 18.402 74.742 61.121 107.941 102.441 41.059 51.102 83.52 103.941 137.18 109.832 48.449 5.328 93.332-22.652 136.742-49.703 42.828-26.68 87.109-54.25 135.688-51.199l-.16 2.5c-47.777-3.02-91.707 24.352-134.199 50.832-40.09 24.969-81.441 50.73-125.969 50.73Z'/%3E%3C/clipPath%3E%3Cg clip-path='url(%23u)'%3E%3CclipPath id='v'%3E%3Cpath d='M1769.961 314.012c-4.102 0-8.223-.211-12.371-.672-54.699-6.012-97.48-59.262-138.859-110.75-33.012-41.09-67.152-83.578-107.031-101.738-60.32-27.461-110.57 21.848-159.168 69.539-19.082 18.719-38.82 38.09-58.711 52.211-23.609 16.77-46.742 23.68-69.441 23.688-54.367 0-106.34-39.609-157.109-78.301-3.469-2.637-6.93-5.277-10.391-7.91a2942 2942 0 0 1-12.398-9.449c-74.293-56.758-151.121-115.457-228.223-38.34-16.586 16.59-32.812 37.031-48.5 56.801-39.066 49.219-79.254 99.852-130.758 99.859-9.754 0-19.906-1.82-30.543-5.801-37.621-14.098-70.832-47.637-102.949-80.078-39.707-40.102-80.77-81.582-129.863-85.492-47.781-3.816-95.766 30.41-142.168 63.512-14.125 10.07-27.465 19.59-40.59 27.871-68.625 43.277-136.055 77.629-206.438 23.23l1.527-1.98c69.109 53.418 135.73 19.43 203.574-23.371 13.066-8.238 26.379-17.738 40.473-27.789 46.766-33.359 95.133-67.84 143.82-63.973 50.02 3.992 91.414 45.801 131.441 86.23 31.926 32.25 64.941 65.59 102.047 79.492 29.145 10.918 57.258 5.91 85.953-15.312 25.75-19.039 49.523-48.988 72.512-77.949 15.734-19.828 32.004-40.328 48.691-57.02 35.242-35.25 73.66-45.629 117.449-31.75 38.621 12.242 76.973 41.539 114.062 69.879 4.141 3.16 8.27 6.312 12.391 9.441 3.461 2.621 6.93 5.27 10.398 7.91 71.242 54.289 144.902 110.441 223.59 54.559 19.723-14.008 39.391-33.297 58.402-51.957 49.199-48.281 100.07-98.203 161.957-70.023 40.41 18.402 74.742 61.121 107.941 102.441 41.059 51.102 83.52 103.941 137.18 109.832 48.449 5.328 93.332-22.652 136.742-49.703 42.828-26.68 87.109-54.25 135.688-51.199l-.16 2.5c-47.777-3.02-91.707 24.352-134.199 50.832-40.09 24.969-81.441 50.73-125.969 50.73'/%3E%3C/clipPath%3E%3Cg clip-path='url(%23v)'%3E%3Cpath d='M-15.551 35.172h2045.84V316.18H-15.551z' fill='%238b7fd4' style='fill-rule:nonzero'/%3E%3C/g%3E%3C/g%3E%3CclipPath id='w'%3E%3Cpath d='M1771.539 289.961c-3.699.008-7.41-.16-11.141-.492-55.648-5.039-99.047-58.559-141.027-110.32-34.34-42.34-69.859-86.129-111.801-103.16-59.059-23.988-107.191 24.16-153.742 70.723-17.109 17.109-34.797 34.809-52.699 48.52-37.25 28.539-76.578 34.848-120.25 19.289-38.738-13.801-77.098-43.141-114.207-71.508a2811 2811 0 0 0-8.57-6.543c-4.34-3.309-8.691-6.66-13.062-10.02-73.715-56.66-149.934-115.258-226.254-40.508-18.219 17.84-35.445 39.828-52.105 61.098-22.992 29.34-46.762 59.68-72.848 78.41-29.391 21.102-58.898 25.129-90.211 12.34-35.758-14.598-67.824-46.988-98.832-78.309-40.402-40.82-82.184-83.02-132-85.352-46.492-2.168-95.867 33.43-139.438 64.84-15.125 10.91-29.414 21.203-43.301 29.891-32.676 20.41-67.68 40.23-102.266 46.93-37.934 7.352-71.746-1.711-103.367-27.68l1.59-1.938c68.477 56.25 134.965 22.906 202.715-19.434 13.82-8.637 28.078-18.918 43.168-29.797 43.902-31.652 93.668-67.512 141.016-65.301 50.789 2.371 92.918 44.918 133.66 86.078 30.832 31.141 62.715 63.352 98 77.762 30.875 12.609 58.777 8.781 87.805-12.059 25.797-18.523 49.457-48.723 72.34-77.934 16.711-21.328 33.988-43.379 52.324-61.34 34.879-34.148 73.008-43.828 116.566-29.578 38.355 12.551 76.277 41.699 112.957 69.898 4.371 3.352 8.723 6.703 13.062 10.012 2.859 2.18 5.707 4.359 8.57 6.539 36.949 28.262 75.16 57.469 113.52 71.141 42.82 15.262 81.379 9.07 117.898-18.91 17.77-13.621 35.402-31.25 52.449-48.309 47.133-47.141 95.852-95.883 156.453-71.27 42.539 17.27 78.258 61.316 112.797 103.906 41.652 51.352 84.723 104.453 139.312 109.391 49.988 4.531 97.777-23.207 143.988-50.039 40.27-23.391 81.91-47.57 125.5-51.039l.199 2.5c-43.02 3.418-84.418 27.461-124.449 50.699-43.129 25.039-87.621 50.871-134.32 50.871Z'/%3E%3C/clipPath%3E%3Cg clip-path='url(%23w)'%3E%3CclipPath id='x'%3E%3Cpath d='M1771.539 289.961c-3.699.008-7.41-.16-11.141-.492-55.648-5.039-99.047-58.559-141.027-110.32-34.34-42.34-69.859-86.129-111.801-103.16-59.059-23.988-107.191 24.16-153.742 70.723-17.109 17.109-34.797 34.809-52.699 48.52-37.25 28.539-76.578 34.848-120.25 19.289-38.738-13.801-77.098-43.141-114.207-71.508a2811 2811 0 0 0-8.57-6.543c-4.34-3.309-8.691-6.66-13.062-10.02-73.715-56.66-149.934-115.258-226.254-40.508-18.219 17.84-35.445 39.828-52.105 61.098-22.992 29.34-46.762 59.68-72.848 78.41-29.391 21.102-58.898 25.129-90.211 12.34-35.758-14.598-67.824-46.988-98.832-78.309-40.402-40.82-82.184-83.02-132-85.352-46.492-2.168-95.867 33.43-139.438 64.84-15.125 10.91-29.414 21.203-43.301 29.891-32.676 20.41-67.68 40.23-102.266 46.93-37.934 7.352-71.746-1.711-103.367-27.68l1.59-1.938c68.477 56.25 134.965 22.906 202.715-19.434 13.82-8.637 28.078-18.918 43.168-29.797 43.902-31.652 93.668-67.512 141.016-65.301 50.789 2.371 92.918 44.918 133.66 86.078 30.832 31.141 62.715 63.352 98 77.762 30.875 12.609 58.777 8.781 87.805-12.059 25.797-18.523 49.457-48.723 72.34-77.934 16.711-21.328 33.988-43.379 52.324-61.34 34.879-34.148 73.008-43.828 116.566-29.578 38.355 12.551 76.277 41.699 112.957 69.898 4.371 3.352 8.723 6.703 13.062 10.012 2.859 2.18 5.707 4.359 8.57 6.539 36.949 28.262 75.16 57.469 113.52 71.141 42.82 15.262 81.379 9.07 117.898-18.91 17.77-13.621 35.402-31.25 52.449-48.309 47.133-47.141 95.852-95.883 156.453-71.27 42.539 17.27 78.258 61.316 112.797 103.906 41.652 51.352 84.723 104.453 139.312 109.391 49.988 4.531 97.777-23.207 143.988-50.039 40.27-23.391 81.91-47.57 125.5-51.039l.199 2.5c-43.02 3.418-84.418 27.461-124.449 50.699-43.129 25.039-87.621 50.871-134.32 50.871'/%3E%3C/clipPath%3E%3Cg clip-path='url(%23x)'%3E%3Cpath d='M-15.582 11.191h2045.891V291.5H-15.582z' fill='%238b7fd4' style='fill-rule:nonzero'/%3E%3C/g%3E%3C/g%3E%3CclipPath id='y'%3E%3Cpath d='M1773.238 264.172c-5.297 0-10.609-.332-15.949-1.043-54-7.188-97.348-58.648-139.258-108.41-33.141-39.328-67.402-80.008-106.582-98.398-59.801-28.082-110.289 20.469-159.109 67.418-18.898 18.172-38.449 36.973-58.07 50.711-35.961 25.199-73.891 30.082-115.98 14.91-37.301-13.438-74.148-40.988-109.789-67.621q-5.641-4.215-11.281-8.418c-4.43-3.289-8.867-6.621-13.309-9.949-36.84-27.609-74.941-56.172-112.887-67.832-42.414-13.039-79.867-2.891-114.492 31.031-16.523 16.191-32.754 36.129-48.445 55.41-39.277 48.25-79.688 97.871-130.754 97.879-9.812 0-20.012-1.828-30.68-5.859-37.207-14.039-70.711-46.262-103.109-77.41-40.496-38.949-82.371-79.219-131.27-83.418-46.418-3.98-94 29.027-140.008 60.957-14.711 10.211-28.602 19.852-42.152 28.043-37.727 22.809-69.516 39.328-102.016 45.848-37.859 7.59-71.754-.238-103.633-23.93l1.492-2.012c68.914 51.23 135.281 18.801 202.863-22.047 13.48-8.152 27.344-17.77 42.02-27.961 44.211-30.68 94.328-65.461 141.648-61.391 49.777 4.281 91.977 44.859 132.785 84.109 32.219 30.98 65.535 63.02 102.262 76.871 28.875 10.898 56.902 6.078 85.68-14.719 25.816-18.672 49.77-48.09 72.93-76.543 15.738-19.328 32.012-39.328 48.637-55.609 78.812-77.219 155.992-19.359 230.629 36.582 4.441 3.328 8.871 6.648 13.301 9.949 3.758 2.789 7.527 5.602 11.289 8.418 35.488 26.523 72.18 53.953 109.141 67.273 41.258 14.867 78.449 10.09 113.699-14.602 19.449-13.641 38.93-32.359 57.762-50.48 49.438-47.531 100.547-96.691 161.91-67.879 39.68 18.629 74.117 59.52 107.43 99.059 41.609 49.402 84.629 100.469 137.68 107.539 50.98 6.781 100.859-21.488 149.098-48.828 39.922-22.629 81.191-46.02 123.383-49.98l.227 2.488c-41.648 3.91-82.688 27.172-122.367 49.66-43.602 24.711-88.539 50.184-134.723 50.184Z'/%3E%3C/clipPath%3E%3Cg clip-path='url(%23y)'%3E%3CclipPath id='z'%3E%3Cpath d='M1773.238 264.172c-5.297 0-10.609-.332-15.949-1.043-54-7.188-97.348-58.648-139.258-108.41-33.141-39.328-67.402-80.008-106.582-98.398-59.801-28.082-110.289 20.469-159.109 67.418-18.898 18.172-38.449 36.973-58.07 50.711-35.961 25.199-73.891 30.082-115.98 14.91-37.301-13.438-74.148-40.988-109.789-67.621q-5.641-4.215-11.281-8.418c-4.43-3.289-8.867-6.621-13.309-9.949-36.84-27.609-74.941-56.172-112.887-67.832-42.414-13.039-79.867-2.891-114.492 31.031-16.523 16.191-32.754 36.129-48.445 55.41-39.277 48.25-79.688 97.871-130.754 97.879-9.812 0-20.012-1.828-30.68-5.859-37.207-14.039-70.711-46.262-103.109-77.41-40.496-38.949-82.371-79.219-131.27-83.418-46.418-3.98-94 29.027-140.008 60.957-14.711 10.211-28.602 19.852-42.152 28.043-37.727 22.809-69.516 39.328-102.016 45.848-37.859 7.59-71.754-.238-103.633-23.93l1.492-2.012c68.914 51.23 135.281 18.801 202.863-22.047 13.48-8.152 27.344-17.77 42.02-27.961 44.211-30.68 94.328-65.461 141.648-61.391 49.777 4.281 91.977 44.859 132.785 84.109 32.219 30.98 65.535 63.02 102.262 76.871 28.875 10.898 56.902 6.078 85.68-14.719 25.816-18.672 49.77-48.09 72.93-76.543 15.738-19.328 32.012-39.328 48.637-55.609 78.812-77.219 155.992-19.359 230.629 36.582 4.441 3.328 8.871 6.648 13.301 9.949 3.758 2.789 7.527 5.602 11.289 8.418 35.488 26.523 72.18 53.953 109.141 67.273 41.258 14.867 78.449 10.09 113.699-14.602 19.449-13.641 38.93-32.359 57.762-50.48 49.438-47.531 100.547-96.691 161.91-67.879 39.68 18.629 74.117 59.52 107.43 99.059 41.609 49.402 84.629 100.469 137.68 107.539 50.98 6.781 100.859-21.488 149.098-48.828 39.922-22.629 81.191-46.02 123.383-49.98l.227 2.488c-41.648 3.91-82.688 27.172-122.367 49.66-43.602 24.711-88.539 50.184-134.723 50.184'/%3E%3C/clipPath%3E%3Cg clip-path='url(%23z)'%3E%3Cpath d='M-15.535-12.43h2045.863v279.859H-15.535z' fill='%238b7fd4' style='fill-rule:nonzero'/%3E%3C/g%3E%3C/g%3E%3CclipPath id='A'%3E%3Cpath d='M1773.789 235.84c-6.758 0-13.527-.531-20.309-1.68-52.301-8.832-95.051-56.699-136.402-102.988-34.617-38.762-70.418-78.844-111.559-95.75-56.828-23.383-107.051 22.027-155.609 65.938-16.898 15.281-32.852 29.711-49.191 41.531-27.391 19.82-53.629 27.898-79.23 27.898-54.309.012-105.738-36.379-159.188-74.188l-7.23-5.121c-4.191-2.961-8.379-5.941-12.57-8.91-37.359-26.57-75.984-54.039-114.066-64.871-42.969-12.23-79.645-2.34-115.402 31.121-16.23 15.191-32.176 33.52-47.598 51.25-39.828 45.789-80.832 92.918-132.191 92.93-8.207 0-16.672-1.211-25.445-3.809-40.168-11.922-76.121-43.953-110.887-74.93-40.105-35.73-81.578-72.684-129.246-78.191-46.316-5.352-93.809 25.941-139.738 56.211-13.945 9.188-27.121 17.867-40.027 25.348-67.445 39.09-133.75 70.223-203.395 22.422l1.414-2.062c68.445 46.973 134.004 16.152 200.727-22.52 12.844-7.449 25.988-16.109 39.906-25.277 44.145-29.09 94.18-62.062 141.398-56.602 48.453 5.602 90.227 42.809 130.625 78.809 34.563 30.793 70.301 62.633 109.938 74.391 27.824 8.262 55.039 2.672 83.199-17.09 25.27-17.738 48.941-44.949 71.836-71.277 15.465-17.773 31.449-36.152 47.777-51.434 19.242-18 38.664-29.129 59.387-34.008 18.5-4.359 37.605-3.609 58.41 2.309 38.492 10.949 77.301 38.551 114.828 65.242 4.18 2.98 8.371 5.949 12.562 8.91l7.238 5.117c39.738 28.113 77.281 54.672 115.891 66.891 43.27 13.699 81.281 7.152 119.621-20.59 16.219-11.738 32.129-26.121 48.969-41.348 49.141-44.434 99.949-90.383 158.25-66.41 41.66 17.137 77.66 57.438 112.469 96.41 41.062 45.957 83.52 93.5 134.941 102.188 51.891 8.762 103.848-19.219 154.109-46.27 39.789-21.43 80.93-43.578 122.09-47.648l.25 2.488c-40.66 4.02-81.578 26.051-121.16 47.359-44.109 23.75-89.539 48.211-135.391 48.211Z'/%3E%3C/clipPath%3E%3Cg clip-path='url(%23A)'%3E%3CclipPath id='B'%3E%3Cpath d='M1773.789 235.84c-6.758 0-13.527-.531-20.309-1.68-52.301-8.832-95.051-56.699-136.402-102.988-34.617-38.762-70.418-78.844-111.559-95.75-56.828-23.383-107.051 22.027-155.609 65.938-16.898 15.281-32.852 29.711-49.191 41.531-27.391 19.82-53.629 27.898-79.23 27.898-54.309.012-105.738-36.379-159.188-74.188l-7.23-5.121c-4.191-2.961-8.379-5.941-12.57-8.91-37.359-26.57-75.984-54.039-114.066-64.871-42.969-12.23-79.645-2.34-115.402 31.121-16.23 15.191-32.176 33.52-47.598 51.25-39.828 45.789-80.832 92.918-132.191 92.93-8.207 0-16.672-1.211-25.445-3.809-40.168-11.922-76.121-43.953-110.887-74.93-40.105-35.73-81.578-72.684-129.246-78.191-46.316-5.352-93.809 25.941-139.738 56.211-13.945 9.188-27.121 17.867-40.027 25.348-67.445 39.09-133.75 70.223-203.395 22.422l1.414-2.062c68.445 46.973 134.004 16.152 200.727-22.52 12.844-7.449 25.988-16.109 39.906-25.277 44.145-29.09 94.18-62.062 141.398-56.602 48.453 5.602 90.227 42.809 130.625 78.809 34.563 30.793 70.301 62.633 109.938 74.391 27.824 8.262 55.039 2.672 83.199-17.09 25.27-17.738 48.941-44.949 71.836-71.277 15.465-17.773 31.449-36.152 47.777-51.434 19.242-18 38.664-29.129 59.387-34.008 18.5-4.359 37.605-3.609 58.41 2.309 38.492 10.949 77.301 38.551 114.828 65.242 4.18 2.98 8.371 5.949 12.562 8.91l7.238 5.117c39.738 28.113 77.281 54.672 115.891 66.891 43.27 13.699 81.281 7.152 119.621-20.59 16.219-11.738 32.129-26.121 48.969-41.348 49.141-44.434 99.949-90.383 158.25-66.41 41.66 17.137 77.66 57.438 112.469 96.41 41.062 45.957 83.52 93.5 134.941 102.188 51.891 8.762 103.848-19.219 154.109-46.27 39.789-21.43 80.93-43.578 122.09-47.648l.25 2.488c-40.66 4.02-81.578 26.051-121.16 47.359-44.109 23.75-89.539 48.211-135.391 48.211'/%3E%3C/clipPath%3E%3Cg clip-path='url(%23B)'%3E%3Cpath d='M-15.496 5.469H2030.34v234.992H-15.496z' fill='%238b7fd4' style='fill-rule:nonzero'/%3E%3C/g%3E%3C/g%3E%3CclipPath id='C'%3E%3Cpath d='M1772.648 205.32c-6.957 0-13.918-.52-20.879-1.648-51.48-8.332-94.668-52.863-136.43-95.922-34.961-36.031-71.102-73.301-111.828-89.09-56.402-21.879-107.434 20.328-156.781 61.141-16.43 13.59-33.43 27.648-50.039 38.687-39.41 26.211-78.32 32.281-122.461 19.102-39.16-11.691-77.309-36.988-117.711-63.77l-4.668-3.09c-3.66-2.43-7.32-4.859-10.973-7.301-77.629-51.691-150.953-100.508-230.43-32.258-16.605 14.258-32.875 31.219-48.609 47.617-23.543 24.551-47.891 49.93-73.703 66.551-29.09 18.75-57.043 24.172-85.461 16.59-40.559-10.82-77.648-40.23-113.52-68.668-41.344-32.793-84.094-66.691-131.922-71.672-45.633-4.75-91.926 23.801-136.695 51.422-13.402 8.27-26.062 16.078-38.613 22.938-31.23 17.09-64.711 33.75-97.91 39.832-36.125 6.609-68.664.148-99.48-19.762l1.355-2.098c66.91 43.227 130.344 15.129 194.836-20.16 12.492-6.84 25.125-14.633 38.5-22.883 45.125-27.84 91.785-56.617 138.266-51.777 48.551 5.059 91.594 39.188 133.219 72.199 35.668 28.277 72.555 57.527 112.609 68.219 61.809 16.48 107.91-31.578 156.715-82.461 15.777-16.438 32.09-33.449 48.785-47.789 19.461-16.711 39-27.031 59.742-31.551 18.551-4.027 37.66-3.309 58.422 2.23 38.488 10.27 75.785 35.102 115.277 61.402 3.648 2.43 7.309 4.867 10.969 7.289l4.668 3.098c78.441 52 152.523 101.113 237.41 44.672 16.5-10.969 32.691-24.359 49.832-38.539 49.898-41.27 101.5-83.949 159.281-61.551 41.238 16 77.566 53.461 112.707 89.691 41.48 42.77 84.383 87 135.043 95.188 52.156 8.449 104.816-17.77 155.738-43.129 39.91-19.871 81.18-40.422 122.18-44.352l.238 2.492c-40.539 3.879-81.598 24.328-121.297 44.098-44.543 22.18-90.402 45.012-136.383 45.012Z'/%3E%3C/clipPath%3E%3Cg clip-path='url(%23C)'%3E%3CclipPath id='D'%3E%3Cpath d='M1772.648 205.32c-6.957 0-13.918-.52-20.879-1.648-51.48-8.332-94.668-52.863-136.43-95.922-34.961-36.031-71.102-73.301-111.828-89.09-56.402-21.879-107.434 20.328-156.781 61.141-16.43 13.59-33.43 27.648-50.039 38.687-39.41 26.211-78.32 32.281-122.461 19.102-39.16-11.691-77.309-36.988-117.711-63.77l-4.668-3.09c-3.66-2.43-7.32-4.859-10.973-7.301-77.629-51.691-150.953-100.508-230.43-32.258-16.605 14.258-32.875 31.219-48.609 47.617-23.543 24.551-47.891 49.93-73.703 66.551-29.09 18.75-57.043 24.172-85.461 16.59-40.559-10.82-77.648-40.23-113.52-68.668-41.344-32.793-84.094-66.691-131.922-71.672-45.633-4.75-91.926 23.801-136.695 51.422-13.402 8.27-26.062 16.078-38.613 22.938-31.23 17.09-64.711 33.75-97.91 39.832-36.125 6.609-68.664.148-99.48-19.762l1.355-2.098c66.91 43.227 130.344 15.129 194.836-20.16 12.492-6.84 25.125-14.633 38.5-22.883 45.125-27.84 91.785-56.617 138.266-51.777 48.551 5.059 91.594 39.188 133.219 72.199 35.668 28.277 72.555 57.527 112.609 68.219 61.809 16.48 107.91-31.578 156.715-82.461 15.777-16.438 32.09-33.449 48.785-47.789 19.461-16.711 39-27.031 59.742-31.551 18.551-4.027 37.66-3.309 58.422 2.23 38.488 10.27 75.785 35.102 115.277 61.402 3.648 2.43 7.309 4.867 10.969 7.289l4.668 3.098c78.441 52 152.523 101.113 237.41 44.672 16.5-10.969 32.691-24.359 49.832-38.539 49.898-41.27 101.5-83.949 159.281-61.551 41.238 16 77.566 53.461 112.707 89.691 41.48 42.77 84.383 87 135.043 95.188 52.156 8.449 104.816-17.77 155.738-43.129 39.91-19.871 81.18-40.422 122.18-44.352l.238 2.492c-40.539 3.879-81.598 24.328-121.297 44.098-44.543 22.18-90.402 45.012-136.383 45.012'/%3E%3C/clipPath%3E%3Cg clip-path='url(%23D)'%3E%3Cpath d='M-15.465-37.078h2045.793v246.727H-15.465z' fill='%238b7fd4' style='fill-rule:nonzero'/%3E%3C/g%3E%3C/g%3E%3CclipPath id='E'%3E%3Cpath d='M1771.48 173.23c-8.199 0-16.391-.66-24.559-2.109-49.332-8.723-91.793-48.25-132.852-86.48-36.84-34.289-74.93-69.75-117.73-82.719-54.57-16.531-104.871 20.789-153.5 56.867-18.668 13.859-37.98 28.18-56.98 38.922-25.23 14.258-49.52 20.168-73.281 20.168-55.418.012-107.93-32.187-162.566-65.68l-2.23-1.359q-5.009-3.078-10-6.148c-75.594-46.543-146.996-90.5-224.973-34.141-19.32 13.969-38.199 31.59-56.457 48.629-41.297 38.539-83.844 78.242-134.469 78.242-6.777 0-13.699-.711-20.785-2.23-41.883-9-81.234-35.793-119.293-61.703-45.898-31.25-93.363-63.559-144.973-64.09-49.672-.527-97.156 26.273-143.109 52.16-33.172 18.703-67.477 38.031-101.973 46.582-38.781 9.609-73.844 4.32-107.191-16.172l1.309-2.129c73.004 44.859 137.91 8.281 206.629-30.449 46.238-26.07 94.039-53.039 144.359-52.492 52.371.543 100.152 33.07 146.359 64.531 37.855 25.77 77.004 52.422 118.41 61.309 58.723 12.613 106.66-32.129 153.02-75.387 18.316-17.09 37.254-34.773 56.699-48.82 35.66-25.781 73.457-32.91 115.555-21.82 37.543 9.891 73.801 32.211 112.191 55.848 3.332 2.051 6.66 4.102 10 6.141l2.23 1.371c77.398 47.449 150.508 92.27 233.309 45.469 18.859-10.668 38.109-24.949 56.723-38.75 49.129-36.461 99.938-74.16 155.719-57.258 43.352 13.129 81.66 48.789 118.699 83.277 40.801 37.98 82.98 77.262 131.582 85.852 53.238 9.418 107.68-15.059 160.32-38.73 40.148-18.051 81.656-36.719 122.43-40.27l.219 2.488c-40.352 3.523-81.66 22.09-121.621 40.062-44.969 20.219-91.238 41.02-137.219 41.02Z'/%3E%3C/clipPath%3E%3Cg clip-path='url(%23E)'%3E%3CclipPath id='F'%3E%3Cpath d='M1771.48 173.23c-8.199 0-16.391-.66-24.559-2.109-49.332-8.723-91.793-48.25-132.852-86.48-36.84-34.289-74.93-69.75-117.73-82.719-54.57-16.531-104.871 20.789-153.5 56.867-18.668 13.859-37.98 28.18-56.98 38.922-25.23 14.258-49.52 20.168-73.281 20.168-55.418.012-107.93-32.187-162.566-65.68l-2.23-1.359q-5.009-3.078-10-6.148c-75.594-46.543-146.996-90.5-224.973-34.141-19.32 13.969-38.199 31.59-56.457 48.629-41.297 38.539-83.844 78.242-134.469 78.242-6.777 0-13.699-.711-20.785-2.23-41.883-9-81.234-35.793-119.293-61.703-45.898-31.25-93.363-63.559-144.973-64.09-49.672-.527-97.156 26.273-143.109 52.16-33.172 18.703-67.477 38.031-101.973 46.582-38.781 9.609-73.844 4.32-107.191-16.172l1.309-2.129c73.004 44.859 137.91 8.281 206.629-30.449 46.238-26.07 94.039-53.039 144.359-52.492 52.371.543 100.152 33.07 146.359 64.531 37.855 25.77 77.004 52.422 118.41 61.309 58.723 12.613 106.66-32.129 153.02-75.387 18.316-17.09 37.254-34.773 56.699-48.82 35.66-25.781 73.457-32.91 115.555-21.82 37.543 9.891 73.801 32.211 112.191 55.848 3.332 2.051 6.66 4.102 10 6.141l2.23 1.371c77.398 47.449 150.508 92.27 233.309 45.469 18.859-10.668 38.109-24.949 56.723-38.75 49.129-36.461 99.938-74.16 155.719-57.258 43.352 13.129 81.66 48.789 118.699 83.277 40.801 37.98 82.98 77.262 131.582 85.852 53.238 9.418 107.68-15.059 160.32-38.73 40.148-18.051 81.656-36.719 122.43-40.27l.219 2.488c-40.352 3.523-81.66 22.09-121.621 40.062-44.969 20.219-91.238 41.02-137.219 41.02'/%3E%3C/clipPath%3E%3Cg clip-path='url(%23F)'%3E%3Cpath d='M-15.441-45.809h2045.762v223.887H-15.441z' fill='%238b7fd4' style='fill-rule:nonzero'/%3E%3C/g%3E%3C/g%3E%3CclipPath id='G'%3E%3Cpath d='M1768.84 139.781c-8.141 0-16.281-.57-24.398-1.812-48.41-7.359-91.332-42.5-132.832-76.48-37.309-30.539-75.879-62.117-118.188-73.289-54.5-14.391-105.594 18.5-154.992 50.301-19.129 12.32-38.91 25.059-58.449 34.691-38.512 18.988-76.73 22.547-120.289 11.199-39.961-10.422-80.68-32.93-116.602-52.789l-5.621-3.113C960.739-13.999 888.262-54.128 809.02-4.199c-19.969 12.578-39.375 28.09-58.141 43.098-23.973 19.172-48.762 38.98-74.383 52.273-28.789 14.93-55.84 19.969-82.691 15.43-42.793-7.242-83.699-30.551-123.266-53.09-47.227-26.91-96.066-54.742-147.898-54.863h-.316c-46.621 0-91.781 22.801-135.461 44.852-32.309 16.301-65.719 33.172-99.141 40.359-37.57 8.09-71.309 2.879-103.148-15.93l1.273-2.16c69.715 41.199 132.945 9.281 199.891-24.508C229.677 19.09 275.11-3.851 322.321-3.851h.328c52.492.121 101.621 28.113 149.129 55.18 39.375 22.441 80.09 45.641 122.445 52.801 58.648 9.93 105.492-27.527 155.094-67.18 18.82-15.051 38.285-30.609 58.371-43.27 80.492-50.719 153.598-10.238 230.992 32.621l5.621 3.109c77.289 42.738 150.289 83.102 234.578 41.539 19.402-9.57 39.133-22.27 58.199-34.551 49.863-32.098 101.41-65.289 156.98-50.617 42.832 11.309 81.621 43.059 119.133 73.77 41.25 33.77 83.887 68.687 131.629 75.949 53.668 8.172 108.352-13.398 161.23-34.25 40.641-16.031 82.668-32.609 124.07-35.648l.18 2.5c-41.02 3.008-82.871 19.508-123.34 35.469-45.23 17.852-91.781 36.211-138.121 36.211Z'/%3E%3C/clipPath%3E%3Cg clip-path='url(%23G)'%3E%3CclipPath id='H'%3E%3Cpath d='M1768.84 139.781c-8.141 0-16.281-.57-24.398-1.812-48.41-7.359-91.332-42.5-132.832-76.48-37.309-30.539-75.879-62.117-118.188-73.289-54.5-14.391-105.594 18.5-154.992 50.301-19.129 12.32-38.91 25.059-58.449 34.691-38.512 18.988-76.73 22.547-120.289 11.199-39.961-10.422-80.68-32.93-116.602-52.789l-5.621-3.113C960.739-13.999 888.262-54.128 809.02-4.199c-19.969 12.578-39.375 28.09-58.141 43.098-23.973 19.172-48.762 38.98-74.383 52.273-28.789 14.93-55.84 19.969-82.691 15.43-42.793-7.242-83.699-30.551-123.266-53.09-47.227-26.91-96.066-54.742-147.898-54.863h-.316c-46.621 0-91.781 22.801-135.461 44.852-32.309 16.301-65.719 33.172-99.141 40.359-37.57 8.09-71.309 2.879-103.148-15.93l1.273-2.16c69.715 41.199 132.945 9.281 199.891-24.508C229.677 19.09 275.11-3.851 322.321-3.851h.328c52.492.121 101.621 28.113 149.129 55.18 39.375 22.441 80.09 45.641 122.445 52.801 58.648 9.93 105.492-27.527 155.094-67.18 18.82-15.051 38.285-30.609 58.371-43.27 80.492-50.719 153.598-10.238 230.992 32.621l5.621 3.109c77.289 42.738 150.289 83.102 234.578 41.539 19.402-9.57 39.133-22.27 58.199-34.551 49.863-32.098 101.41-65.289 156.98-50.617 42.832 11.309 81.621 43.059 119.133 73.77 41.25 33.77 83.887 68.687 131.629 75.949 53.668 8.172 108.352-13.398 161.23-34.25 40.641-16.031 82.668-32.609 124.07-35.648l.18 2.5c-41.02 3.008-82.871 19.508-123.34 35.469-45.23 17.852-91.781 36.211-138.121 36.211'/%3E%3C/clipPath%3E%3Cg clip-path='url(%23H)'%3E%3Cpath d='M-15.426-57.039h2045.727v200.711H-15.426z' fill='%238b7fd4' style='fill-rule:nonzero'/%3E%3C/g%3E%3C/g%3E%3CclipPath id='I'%3E%3Cpath d='M1764.059 104.82c-4.879 0-9.75-.172-14.629-.52-50.418-3.602-96.141-35.289-140.371-65.941-36.457-25.258-74.16-51.391-114.219-61.598-56.75-14.453-110.551 14.5-162.57 42.508-18.531 9.969-37.699 20.289-56.699 28.469-38.68 16.66-76.891 20.051-120.25 10.672-38.691-8.371-77.582-26.359-117.332-45.621-80.266-38.898-156.078-75.629-243.051-25.367-16.352 9.449-32.207 19.75-47.543 29.699-56.301 36.551-109.48 71.078-176.703 58.078-38.574-7.461-76.402-24.859-112.984-41.68-50.746-23.34-103.211-47.461-157.887-44.961-41.277 1.902-81.734 19.863-120.859 37.223-31.234 13.867-63.531 28.207-95.687 33.988-36.137 6.5-68.418 1.301-98.68-15.891l1.238-2.18c66.285 37.652 127.406 10.52 192.113-18.199 39.336-17.461 80.012-35.52 121.758-37.43 55.273-2.539 108.031 21.719 159.047 45.18 36.449 16.762 74.137 34.09 112.414 41.488 66.23 12.812 119.004-21.449 174.871-57.707 15.359-9.98 31.246-20.293 47.652-29.77 39.512-22.84 78.773-29.59 123.551-21.262 38.809 7.219 76.543 24.59 121.84 46.539 87.223 42.262 155.172 69.512 235.5 34.91 18.902-8.148 38.023-18.43 56.5-28.391 52.453-28.23 106.684-57.418 164.371-42.719 40.512 10.32 78.391 36.582 115.039 61.969 43.941 30.453 89.391 61.941 139.113 65.5 51.598 3.691 103.34-13.41 153.379-29.949 41.449-13.699 84.32-27.871 127.16-30.32l.141 2.5c-42.512 2.43-85.211 16.551-126.52 30.199-45.562 15.051-92.523 30.582-139.703 30.582Z'/%3E%3C/clipPath%3E%3Cg clip-path='url(%23I)'%3E%3CclipPath id='J'%3E%3Cpath d='M1764.059 104.82c-4.879 0-9.75-.172-14.629-.52-50.418-3.602-96.141-35.289-140.371-65.941-36.457-25.258-74.16-51.391-114.219-61.598-56.75-14.453-110.551 14.5-162.57 42.508-18.531 9.969-37.699 20.289-56.699 28.469-38.68 16.66-76.891 20.051-120.25 10.672-38.691-8.371-77.582-26.359-117.332-45.621-80.266-38.898-156.078-75.629-243.051-25.367-16.352 9.449-32.207 19.75-47.543 29.699-56.301 36.551-109.48 71.078-176.703 58.078-38.574-7.461-76.402-24.859-112.984-41.68-50.746-23.34-103.211-47.461-157.887-44.961-41.277 1.902-81.734 19.863-120.859 37.223-31.234 13.867-63.531 28.207-95.687 33.988-36.137 6.5-68.418 1.301-98.68-15.891l1.238-2.18c66.285 37.652 127.406 10.52 192.113-18.199 39.336-17.461 80.012-35.52 121.758-37.43 55.273-2.539 108.031 21.719 159.047 45.18 36.449 16.762 74.137 34.09 112.414 41.488 66.23 12.812 119.004-21.449 174.871-57.707 15.359-9.98 31.246-20.293 47.652-29.77 39.512-22.84 78.773-29.59 123.551-21.262 38.809 7.219 76.543 24.59 121.84 46.539 87.223 42.262 155.172 69.512 235.5 34.91 18.902-8.148 38.023-18.43 56.5-28.391 52.453-28.23 106.684-57.418 164.371-42.719 40.512 10.32 78.391 36.582 115.039 61.969 43.941 30.453 89.391 61.941 139.113 65.5 51.598 3.691 103.34-13.41 153.379-29.949 41.449-13.699 84.32-27.871 127.16-30.32l.141 2.5c-42.512 2.43-85.211 16.551-126.52 30.199-45.562 15.051-92.523 30.582-139.703 30.582'/%3E%3C/clipPath%3E%3Cg clip-path='url(%23J)'%3E%3Cpath d='M-15.406-62.84h2045.688V105.5H-15.406z' fill='%238b7fd4' style='fill-rule:nonzero'/%3E%3C/g%3E%3C/g%3E%3CclipPath id='K'%3E%3Cpath d='M1760.219 70.27q-6.807.002-13.598-.371c-49.242-2.668-95.141-29.027-139.531-54.52-37.109-21.32-75.48-43.359-115.539-51.379-57.012-11.422-111.691 12.531-164.57 35.699-18.941 8.289-38.531 16.871-58.012 23.742-82.777 29.23-155.988 4.047-236.289-29.25C945.828-41.829 872.84-66.27 790.395-27.2c-15.961 7.57-31.547 15.699-46.621 23.559-51.234 26.719-100 52.152-156.215 52.16-8.262 0-16.68-.551-25.297-1.73-40.062-5.461-79.617-19.43-117.867-32.938C393.012-4.301 339.879-23.071 285.348-21.11c-38.48 1.391-76.609 15.711-113.488 29.559C141.567 19.828 110.239 31.59 79.2 35.91c-34.883 4.852-65.82-.41-94.586-16.082l1.199-2.188C48.86 51.968 108.18 29.699 170.981 6.109 208.047-7.809 246.372-22.2 285.258-23.61c55.004-1.98 108.367 16.871 159.973 35.098 38.129 13.473 77.559 27.391 117.367 32.82 66.457 9.07 121.617-19.707 180.016-50.168 15.098-7.871 30.707-16.012 46.711-23.602C872.7-68.97 946.204-44.38 1033.63-8.122c79.82 33.102 152.562 58.141 234.512 29.211 19.391-6.852 38.93-15.41 57.828-23.691 53.242-23.309 108.312-47.418 166.07-35.848 40.461 8.098 79.02 30.238 116.301 51.66 44.129 25.34 89.77 51.559 138.41 54.188 51.539 2.812 103.289-11.227 153.34-24.797 42.43-11.512 86.309-23.402 130.07-25.113l.102 2.492c-43.48 1.711-87.223 13.559-129.512 25.031-45.859 12.438-93.148 25.25-140.531 25.258Z'/%3E%3C/clipPath%3E%3Cg clip-path='url(%23K)'%3E%3CclipPath id='L'%3E%3Cpath d='M1760.219 70.27q-6.807.002-13.598-.371c-49.242-2.668-95.141-29.027-139.531-54.52-37.109-21.32-75.48-43.359-115.539-51.379-57.012-11.422-111.691 12.531-164.57 35.699-18.941 8.289-38.531 16.871-58.012 23.742-82.777 29.23-155.988 4.047-236.289-29.25C945.828-41.829 872.84-66.27 790.395-27.2c-15.961 7.57-31.547 15.699-46.621 23.559-51.234 26.719-100 52.152-156.215 52.16-8.262 0-16.68-.551-25.297-1.73-40.062-5.461-79.617-19.43-117.867-32.938C393.012-4.301 339.879-23.071 285.348-21.11c-38.48 1.391-76.609 15.711-113.488 29.559C141.567 19.828 110.239 31.59 79.2 35.91c-34.883 4.852-65.82-.41-94.586-16.082l1.199-2.188C48.86 51.968 108.18 29.699 170.981 6.109 208.047-7.809 246.372-22.2 285.258-23.61c55.004-1.98 108.367 16.871 159.973 35.098 38.129 13.473 77.559 27.391 117.367 32.82 66.457 9.07 121.617-19.707 180.016-50.168 15.098-7.871 30.707-16.012 46.711-23.602C872.7-68.97 946.204-44.38 1033.63-8.122c79.82 33.102 152.562 58.141 234.512 29.211 19.391-6.852 38.93-15.41 57.828-23.691 53.242-23.309 108.312-47.418 166.07-35.848 40.461 8.098 79.02 30.238 116.301 51.66 44.129 25.34 89.77 51.559 138.41 54.188 51.539 2.812 103.289-11.227 153.34-24.797 42.43-11.512 86.309-23.402 130.07-25.113l.102 2.492c-43.48 1.711-87.223 13.559-129.512 25.031-45.859 12.438-93.148 25.25-140.531 25.258'/%3E%3C/clipPath%3E%3Cg clip-path='url(%23L)'%3E%3Cpath d='M-15.387-68.969h2045.648V70.269H-15.387z' fill='%238b7fd4' style='fill-rule:nonzero'/%3E%3C/g%3E%3C/g%3E%3CclipPath id='M'%3E%3Cpath d='M1755.609 35.719q-5.907 0-11.801-.207c-48.059-1.773-93.988-22.812-138.41-43.172-37.84-17.328-76.957-35.262-117.129-41.121-57.348-8.359-113.008 10.652-166.848 29.02-19.273 6.582-39.203 13.383-59.043 18.902-25.32 7.039-50.039 9.98-74.188 9.98-56.562 0-110-16.141-160.812-33.543-79.242-27.129-157.344-48.879-241.527-17.406-15.156 5.656-30.117 11.688-44.582 17.508-55.34 22.289-107.93 43.469-166.871 43.469-6.711 0-13.5-.27-20.387-.848-41.312-3.473-82.457-14.129-122.242-24.441-51.828-13.43-105.418-27.328-159.605-25.281-35.051 1.332-70.32 11.961-104.434 22.242-59.758 18-121.555 36.621-183.09 4.969l1.145-2.219C46.422 24.762 107.726 6.29 167.008-11.577c34.266-10.32 69.691-21 105.062-22.332 54.551-2.051 108.324 11.871 160.324 25.352 39.688 10.277 80.727 20.91 121.824 24.367 66.809 5.613 124.758-17.73 186.117-42.438 14.48-5.84 29.453-11.871 44.641-17.551 84.961-31.75 163.527-9.891 243.215 17.398 72.117 24.691 149.559 46.852 233.52 23.512 19.77-5.5 39.66-12.289 58.898-18.852 54.121-18.48 110.082-37.578 168.02-29.129 40.52 5.91 79.82 23.91 117.812 41.32 44.199 20.25 89.898 41.191 137.457 42.941 51.133 1.887 102.59-9.082 152.363-19.684 43.719-9.309 88.938-18.938 133.93-19.898l.047 2.5c-44.75.949-89.848 10.559-133.457 19.852-46.109 9.82-93.66 19.938-141.172 19.938'/%3E%3C/clipPath%3E%3Cg clip-path='url(%23M)'%3E%3CclipPath id='N'%3E%3Cpath d='M1755.609 35.719q-5.907 0-11.801-.207c-48.059-1.773-93.988-22.812-138.41-43.172-37.84-17.328-76.957-35.262-117.129-41.121-57.348-8.359-113.008 10.652-166.848 29.02-19.273 6.582-39.203 13.383-59.043 18.902-25.32 7.039-50.039 9.98-74.188 9.98-56.562 0-110-16.141-160.812-33.543-79.242-27.129-157.344-48.879-241.527-17.406-15.156 5.656-30.117 11.688-44.582 17.508-55.34 22.289-107.93 43.469-166.871 43.469-6.711 0-13.5-.27-20.387-.848-41.312-3.473-82.457-14.129-122.242-24.441-51.828-13.43-105.418-27.328-159.605-25.281-35.051 1.332-70.32 11.961-104.434 22.242-59.758 18-121.555 36.621-183.09 4.969l1.145-2.219C46.422 24.762 107.726 6.29 167.008-11.577c34.266-10.32 69.691-21 105.062-22.332 54.551-2.051 108.324 11.871 160.324 25.352 39.688 10.277 80.727 20.91 121.824 24.367 66.809 5.613 124.758-17.73 186.117-42.438 14.48-5.84 29.453-11.871 44.641-17.551 84.961-31.75 163.527-9.891 243.215 17.398 72.117 24.691 149.559 46.852 233.52 23.512 19.77-5.5 39.66-12.289 58.898-18.852 54.121-18.48 110.082-37.578 168.02-29.129 40.52 5.91 79.82 23.91 117.812 41.32 44.199 20.25 89.898 41.191 137.457 42.941 51.133 1.887 102.59-9.082 152.363-19.684 43.719-9.309 88.938-18.938 133.93-19.898l.047 2.5c-44.75.949-89.848 10.559-133.457 19.852-46.109 9.82-93.66 19.938-141.172 19.938'/%3E%3C/clipPath%3E%3Cg clip-path='url(%23N)'%3E%3Cpath d='M-15.359-75.93h2045.598V35.718H-15.359z' fill='%238b7fd4' style='fill-rule:nonzero'/%3E%3C/g%3E%3C/g%3E%3CclipPath id='O'%3E%3Cpath d='M1749.961 1.621c-2.949 0-5.902-.031-8.84-.09-46.883-.961-92.672-16.902-136.961-32.312-38.648-13.457-78.609-27.367-119.031-31.199-57.77-5.461-114.539 8.832-169.438 22.641-19.473 4.91-39.613 9.969-59.652 14.141-24.98 5.199-49.578 7.398-73.711 7.398-55.906 0-109.418-11.789-160.02-25.449-88.453-23.879-163.258-35.328-240.809-13.57-13.859 3.891-27.688 7.98-41.062 11.941-64.879 19.199-126.164 37.32-194.113 34.707-43.07-1.656-86.293-9.156-128.09-16.406C367.023-35.46 314.07-44.639 261.156-43.1c-32.16.941-64.879 8.41-96.516 15.633-59.121 13.488-120.258 27.43-179.961-.781l1.066-2.262c58.922 27.84 119.629 13.992 178.336.602 31.758-7.25 64.594-14.738 97-15.691 53.168-1.559 106.246 7.652 157.578 16.562 41.719 7.238 84.855 14.719 127.758 16.367 67.543 2.602 128.633-15.469 193.312-34.609 13.379-3.957 27.219-8.047 41.094-11.938 78.098-21.922 153.281-10.43 242.137 13.559 72.148 19.469 150.25 35.141 232.57 18.012 19.988-4.152 40.098-9.223 59.547-14.113 55.113-13.867 112.094-28.207 170.281-22.707 40.719 3.859 80.832 17.82 119.629 31.32 44.09 15.348 89.691 31.227 136.184 32.18 50.207 1.02 100.898-7.012 149.918-14.77 45.469-7.203 92.48-14.641 139.121-14.891l.008 2.5c-46.449.25-93.367 7.668-138.738 14.859-46.262 7.32-94.012 14.891-141.52 14.891Z'/%3E%3C/clipPath%3E%3Cg clip-path='url(%23O)'%3E%3CclipPath id='P'%3E%3Cpath d='M1749.961 1.621c-2.949 0-5.902-.031-8.84-.09-46.883-.961-92.672-16.902-136.961-32.312-38.648-13.457-78.609-27.367-119.031-31.199-57.77-5.461-114.539 8.832-169.438 22.641-19.473 4.91-39.613 9.969-59.652 14.141-24.98 5.199-49.578 7.398-73.711 7.398-55.906 0-109.418-11.789-160.02-25.449-88.453-23.879-163.258-35.328-240.809-13.57-13.859 3.891-27.688 7.98-41.062 11.941-64.879 19.199-126.164 37.32-194.113 34.707-43.07-1.656-86.293-9.156-128.09-16.406C367.023-35.46 314.07-44.639 261.156-43.1c-32.16.941-64.879 8.41-96.516 15.633-59.121 13.488-120.258 27.43-179.961-.781l1.066-2.262c58.922 27.84 119.629 13.992 178.336.602 31.758-7.25 64.594-14.738 97-15.691 53.168-1.559 106.246 7.652 157.578 16.562 41.719 7.238 84.855 14.719 127.758 16.367 67.543 2.602 128.633-15.469 193.312-34.609 13.379-3.957 27.219-8.047 41.094-11.938 78.098-21.922 153.281-10.43 242.137 13.559 72.148 19.469 150.25 35.141 232.57 18.012 19.988-4.152 40.098-9.223 59.547-14.113 55.113-13.867 112.094-28.207 170.281-22.707 40.719 3.859 80.832 17.82 119.629 31.32 44.09 15.348 89.691 31.227 136.184 32.18 50.207 1.02 100.898-7.012 149.918-14.77 45.469-7.203 92.48-14.641 139.121-14.891l.008 2.5c-46.449.25-93.367 7.668-138.738 14.859-46.262 7.32-94.012 14.891-141.52 14.891'/%3E%3C/clipPath%3E%3Cg clip-path='url(%23P)'%3E%3Cpath d='M-15.32-81.141h2045.539V1.621H-15.32z' fill='%238b7fd4' style='fill-rule:nonzero'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");background-repeat:no-repeat;background-position:bottom center;background-size:cover;opacity:var(--zn-page-header-wave-opacity,0.04);pointer-events:none}:host-context([t=aura]) .page__header .header.header--has-navigation::before,:host-context(.theme-aura) .page__header .header.header--has-navigation::before{margin-bottom:-40px}.header{display:flex;flex-direction:column;position:relative;margin:0;padding:calc(var(--zn-base-px) * 3) var(--zn-base-gap) calc(var(--zn-base-px) * 3 - var(--zn-base-gap)) var(--zn-base-gap)}.header.header--has-navigation{padding:calc(var(--zn-base-px) * 3) var(--zn-base-gap)}.header .content{display:flex;flex-wrap:wrap;position:relative;width:100%;max-width:100%;height:-moz-fit-content;height:fit-content;gap:var(--zn-base-gap);margin:0 auto;padding:0;box-sizing:border-box}.header--has-navigation .content{min-height:36px}.header .caption{flex-grow:1;display:flex;align-items:flex-start;justify-content:space-between;gap:var(--zn-spacing-x-small);max-width:100%;min-width:0;min-height:36px}.header .caption a{display:flex;align-items:center;color:inherit;text-decoration:none}.header__left{display:flex;justify-content:flex-start;flex-direction:column;gap:var(--zn-spacing-2x-small);min-height:36px;flex-shrink:1;min-width:0;max-width:100%}.header__right{flex-grow:1;flex-shrink:0}.header__caption{font-weight:var(--zn-text-h1-font-weight);font-size:var(--zn-text-h1-font-size);text-transform:var(--zn-text-h1-transform,none);letter-spacing:var(--zn-text-h1-letter-spacing,normal);color:rgba(var(--zn-text-panel-title),100%);line-height:var(--zn-spacing-medium);margin:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;display:flex;gap:var(--zn-spacing-2x-small);align-items:center;text-wrap:auto;min-height:36px}.header--has-description .header__caption{min-height:0}.header__description{font-family:var(--zn-font-sans);font-size:var(--zn-text-subheading-font-size);font-weight:var(--zn-text-subheading-font-weight);line-height:var(--zn-text-subheading-line-height);color:var(--zn-text-subheading-color);text-transform:var(--zn-text-subheading-transform);letter-spacing:var(--zn-text-subheading-letter-spacing,normal);display:block;overflow-wrap:anywhere}.header .breadcrumb{display:inline-flex;align-items:center;gap:var(--zn-spacing-2x-small);font:inherit;color:inherit}.header .breadcrumb::slotted(a){font:inherit;color:inherit;text-decoration:inherit}.header .breadcrumb::slotted(a:hover){color:rgb(var(--zn-primary))}.header .breadcrumb::slotted([data-breadcrumb-separator]){color:rgb(var(--zn-text-muted))}.header .breadcrumb__separator{color:rgb(var(--zn-text-muted))}.header slot{display:flex;align-items:center;flex-wrap:wrap;gap:var(--zn-spacing-x-small);word-break:break-word}.header slot[name=actions]{justify-content:end;flex-wrap:nowrap;min-height:36px}.header slot[name=actions]::slotted(zn-button-menu){flex-grow:1;flex-shrink:1}.caption__back{display:flex;justify-content:center;align-items:center;color:inherit}.alt-overlay{display:none}.alt-overlay--visible{display:flex}:host(.alt-pressed) .alt-overlay:empty{display:none !important}:host(.alt-pressed) .alt-overlay{display:flex}.alt-overlay{gap:10px;align-items:flex-end;position:absolute;left:0;top:0;padding:6px 15px;background:rgba(var(--zn-panel),0.95);z-index:10}.alt-overlay a{display:flex}.alt-overlay zn-icon:hover{color:rgb(var(--zn-primary));cursor:pointer}.page{display:flex;flex-direction:column;position:relative;height:100%;min-height:0;max-height:100%;width:100%;max-width:100%;overflow:auto;box-sizing:border-box;padding:0}.page__tabs{flex-grow:1;display:flex;flex-direction:column;min-height:0;width:100%;overflow:visible;box-sizing:border-box;padding:0 var(--zn-base-gap) var(--zn-base-gap);background-color:rgb(var(--zn-page-content-background,var(--zn-body)));background-image:var(--zn-page-texture);background-repeat:repeat;background-position:center top;background-size:var(--zn-page-texture-size)}.page__tabs .page__content{display:flex;flex-direction:column;flex-grow:1;min-height:0;max-width:100%;width:100%;overflow:visible;box-sizing:border-box}.page__tabs #content ::slotted(zn-tab){display:block !important}:host([flush]) .page__tabs,:host([flush]) .page__tabs .page__content#content{padding:0}zn-navbar::part(navbar){height:40px;min-height:40px;max-height:40px;padding-left:var(--zn-base-gap);margin:0}zn-navbar::part(navbar-item){height:40px;box-sizing:border-box;font-size:var(--zn-font-size-medium);line-height:16px}:host .page__header{padding-inline:0}:host .header{padding-inline:calc(var(--zn-gutter,0) + var(--zn-base-gap,0))}:host([modal]) .header{padding-inline-end:calc(var(--zn-base-gap,0) + var(--zn-page-closer-size) + var(--zn-page-closer-gap))}:host zn-navbar::part(navbar){padding-inline:calc(var(--zn-gutter,0) + var(--zn-base-gap,0))}:host .page__tabs{padding:0}:host .page__tabs #content.page__content{padding:0 var(--zn-gutter,0)}@container (max-width:600px){.header--has-breadcrumb .header__caption{align-items:flex-start;flex-direction:column;gap:var(--zn-spacing-3x-small)}.header--has-breadcrumb .breadcrumb{color:rgb(var(--zn-text-muted));font-size:var(--zn-font-size-small);font-weight:var(--zn-font-weight-normal);line-height:var(--zn-line-height-dense)}.header--has-breadcrumb .breadcrumb__separator{display:none}}`;var sr=class sr extends ln{constructor(){super(...arguments);this.pageSlotController=new Y(this,"breadcrumb","actions","caption","description");this.modal=!1;this.nested=!1;this.primary=!1;this.scrolled=!1;this.tabDefinitions=[];this.hasExpandingActions=!1;this.actionObserver=null;this.tabObserver=null;this.pageHistoryKey=null;this.handleAltPress=()=>{this.classList.toggle("alt-pressed",!0)};this.handleAltUp=()=>{this.classList.toggle("alt-pressed",!1)};this.handleBreadcrumbSlotChange=t=>{let n=t.target.assignedElements(),a=n.filter(s=>s.tagName==="A");n.forEach(s=>{if(!s.hasAttribute("data-breadcrumb-separator"))return;let l=s.previousElementSibling;l?.tagName==="A"&&a.indexOf(l)<a.length-1||s.remove()}),a.forEach((s,l)=>{if(l===a.length-1||s.nextElementSibling?.hasAttribute("data-breadcrumb-separator"))return;let h=document.createElement("zn-icon");h.setAttribute("src","arrow-right@lu"),h.setAttribute("size","16"),h.setAttribute("slot","breadcrumb"),h.setAttribute("data-breadcrumb-separator",""),s.after(h)})};this._registerTabs=()=>{this.registerPageNavigationTabs()};this.handleContentTabClick=t=>{let r=t.composedPath().find(a=>a instanceof HTMLElement&&a.hasAttribute("tab")&&a.closest(zs)===this);if(!r||r.hasAttribute("disabled"))return;let n=this.tabDefinitions.find(a=>a.id===r.getAttribute("tab"));n&&(t.preventDefault(),this.activateTabDefinition(n,!0,!0))}}async connectedCallback(){let t=super.connectedCallback();window.addEventListener("alt-press",this.handleAltPress),window.addEventListener("alt-up",this.handleAltUp),this.addEventListener("click",this.handleContentTabClick),this.prepareTabs(),this.refreshExpandingActionsState(),this.tabObserver=new MutationObserver(r=>{r.some(n=>n.type==="childList")&&this.prepareTabs()}),this.tabObserver.observe(this,{childList:!0}),this.actionObserver=new MutationObserver(r=>{r.some(n=>n.type==="childList")&&(this.refreshExpandingActionsState(),this.syncExpandingActionsToNavbar())}),this.actionObserver.observe(this,{childList:!0,subtree:!0}),await t}disconnectedCallback(){super.disconnectedCallback(),window.removeEventListener("alt-press",this.handleAltPress),window.removeEventListener("alt-up",this.handleAltUp),this.removeEventListener("click",this.handleContentTabClick),this.tabObserver?.disconnect(),this.tabObserver=null,this.actionObserver?.disconnect(),this.actionObserver=null}firstUpdated(t){super.firstUpdated(t),this.registerPagePanels(),this.syncExpandingActionsToNavbar(),setTimeout(()=>this.activateInitialPageTab(),20)}getOwnExpandingActions(){return Array.from(this.querySelectorAll("zn-expanding-action")).filter(t=>t.closest("zn-page")===this)}getNavbar(){return this.shadowRoot?.querySelector("zn-navbar")||null}refreshExpandingActionsState(){let t=this.getNavbar(),r=!!(t?.querySelector("zn-expanding-action")||t?.shadowRoot?.querySelector("zn-expanding-action")),n=this.getOwnExpandingActions().length>0||r;this.hasExpandingActions!==n&&(this.hasExpandingActions=n)}syncExpandingActionsToNavbar(){let t=this.getNavbar();t&&(this.getOwnExpandingActions().forEach(r=>t.addExpandingAction(r)),this.refreshExpandingActionsState())}prepareTabs(){let t=[],r=new Set;Array.from(this.children).filter(a=>a.tagName==="ZN-TAB").forEach((a,s)=>{let l=a.getAttribute("caption")||"Tab",d=a.getAttribute("id"),h=this.uniqueId(d!==null?d:this.captionToId(l),r),m=this.parsePriority(a.getAttribute("priority")),f=a.getAttribute("uri"),b=f?null:`page-tab-${s}`,g=a.hasAttribute("selected");a.id=h,f||(a.slot=b),t.push({id:h,caption:l,priority:m,sourceIndex:s,uri:f,slotName:b,selected:g})}),this.tabDefinitions=t.sort((a,s)=>this.compareTabs(a,s))}parsePriority(t){if(t===null||t.trim()==="")return null;let r=Number(t);return Number.isFinite(r)?r:null}compareTabs(t,r){return t.id===""&&r.id!==""?-1:t.id!==""&&r.id===""?1:t.priority!==null&&r.priority!==null&&t.priority!==r.priority?t.priority-r.priority:t.priority!==null&&r.priority===null?-1:t.priority===null&&r.priority!==null?1:t.sourceIndex-r.sourceIndex}captionToId(t){return t.trim().toLowerCase()==="overview"?"":t.trim().toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,"")||"tab"}uniqueId(t,r){let n=t,a=2;for(;r.has(n);)n=t===""?`tab-${a}`:`${t}-${a}`,a+=1;return r.add(n),n}handlePageScroll(t){let r=t.currentTarget.scrollTop>24;this.scrolled!==r&&(this.scrolled=r)}updated(t){super.updated(t),t.has("tabDefinitions")&&this.registerPagePanels(),(t.has("tabDefinitions")||t.has("hasExpandingActions"))&&this.syncExpandingActionsToNavbar()}handleNavigationSelect(t){let r=t.detail.item;if(this.getNavigationItemPage(r)!==this)return;let n=r.getAttribute("tab-uri"),a=r.getAttribute("tab");if(n){this.clickTab(r,!1,!0),this.syncNavigationActive(r);return}a!==null&&this.activateTab(a,!0,!0)}getNavigationItemPage(t){let r=t;for(;r;){if(r instanceof sr)return r;let n=r.getRootNode();if(!(n instanceof ShadowRoot))return t.closest("zn-page");r=n.host}return null}activateTab(t,r,n=!1){this.setActiveTab(t,r,!1,null,n);let a=this.shadowRoot?.querySelector(`zn-navbar li[tab="${CSS.escape(t)}"]`);a&&this.syncNavigationActive(a)}activateInitialPageTab(){let t=this.getStoredTab();if(t!==null){let s=this.tabDefinitions.find(l=>l.id===t||l.uri===t);if(s){this.activateTabDefinition(s);return}}let r=this.tabDefinitions.find(s=>s.selected);if(r){this.activateTabDefinition(r);return}let n=this.shadowRoot?.querySelector("#content > div[selected]"),a=this.tabDefinitions[0];!n&&a&&this.activateTab(a.id,!1)}getTabStoreKey(){return this.getPageHistoryKey()}activateDefaultTab(){let t=this.tabDefinitions.find(r=>r.selected)??this.tabDefinitions[0];t&&this.activateTabDefinition(t,!0)}getPageHistoryKey(){if(this.pageHistoryKey!==null)return this.pageHistoryKey;let t=[this],r=this.parentElement?.closest("zn-page")??null;for(;r;)t.unshift(r),r=r.parentElement?.closest("zn-page")??null;return this.pageHistoryKey=t.map(n=>n.id||n.getAttribute("caption")||"page").join("/"),this.pageHistoryKey}activateTabDefinition(t,r=!1,n=!1){if(t.uri){let a=this.findNavItemForUri(t.uri);if(a){this.clickTab(a,!1,n),this.syncNavigationActive(a);return}}this.activateTab(t.id,r,n)}findNavItemForUri(t){let r=this.shadowRoot?.querySelectorAll("zn-navbar li[tab-uri]")??[];for(let n of Array.from(r))if(n.getAttribute("tab-uri")===t)return n;return null}registerPagePanels(){this.shadowRoot?.querySelectorAll("#content > div[id]").forEach(t=>{this._addPanel(t)}),this.registerPageNavigationTabs(),setTimeout(()=>this.registerPageNavigationTabs())}registerPageNavigationTabs(){this.shadowRoot?.querySelectorAll("zn-navbar li[tab], zn-navbar li[tab-uri]").forEach(t=>this._addTab(t)),this.shadowRoot?.querySelectorAll("zn-navbar").forEach(t=>{t.shadowRoot?.querySelectorAll("li[tab], li[tab-uri]").forEach(r=>this._addTab(r))})}syncNavigationActive(t){(this.shadowRoot?.querySelectorAll("zn-navbar li[tab], zn-navbar li[tab-uri]")||[]).forEach(n=>{let a=n===t;n.classList.toggle("active",a),n.classList.toggle("zn-tb-active",a)})}render(){let t=!this.modal&&!this.nested&&this.pageSlotController.test("breadcrumb"),r=this.tabDefinitions.length>1||this.hasExpandingActions,n=this.entityId,a=this.fullLocation,s=this.previousPath,l=!!this.summary||this.pageSlotController.test("description");return u`
2021
+ </zn-button>`}};Yt.styles=_(R1),c([p()],Yt.prototype,"icon",2),c([p()],Yt.prototype,"method",2),c([p({attribute:"context-uri",reflect:!0})],Yt.prototype,"contextUri",2),c([p({reflect:!0})],Yt.prototype,"count",2),c([p({reflect:!0})],Yt.prototype,"color",2),c([p({type:Boolean})],Yt.prototype,"prefetch",2),c([p()],Yt.prototype,"basis",2),c([p({attribute:"max-height"})],Yt.prototype,"maxHeight",2),c([p({reflect:!0,type:Boolean})],Yt.prototype,"open",2),c([p({attribute:"master-id",reflect:!0})],Yt.prototype,"masterId",2),c([p({attribute:"fetch-style",type:String,reflect:!0})],Yt.prototype,"fetchStyle",2),c([p({attribute:"no-prefetch",type:Boolean,reflect:!0})],Yt.prototype,"noPrefetch",2);var wm=Yt;Yt.define("zn-expanding-action");var D1=k`@keyframes rotate-gradient{from{--rotate:0deg}to{--rotate:360deg}}:host{text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-transform:none}*,*::before,*::after{box-sizing:border-box;border-width:0;border-style:solid;border-color:rgb(var(--zn-border-color))}[hidden]{display:none !important}.width-container,.form-container,.wide-form-container{height:100%;width:100%;margin:var(--zn-default-margin,0 auto)}.width-container{max-width:var(--zn-container)}.form-container{max-width:var(--zn-container-ph)}.wide-form-container{max-width:var(--zn-container-lg)}:host{display:contents;height:100%}`;var sn=class extends S{constructor(){super(...arguments);this.selected=!1}render(){return u`<slot></slot>`}};sn.styles=_(D1),c([p()],sn.prototype,"caption",2),c([p({type:Number})],sn.prototype,"priority",2),c([p()],sn.prototype,"uri",2),c([p({type:Boolean,reflect:!0})],sn.prototype,"selected",2);var zm=sn;sn.define("zn-tab");var ln=je;je.define("zn-tabs");var N1=k`@keyframes rotate-gradient{from{--rotate:0deg}to{--rotate:360deg}}:host{text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-transform:none}*,*::before,*::after{box-sizing:border-box;border-width:0;border-style:solid;border-color:rgb(var(--zn-border-color))}[hidden]{display:none !important}.width-container,.form-container,.wide-form-container{height:100%;width:100%;margin:var(--zn-default-margin,0 auto)}.width-container{max-width:var(--zn-container)}.form-container{max-width:var(--zn-container-ph)}.wide-form-container{max-width:var(--zn-container-lg)}@container (width > 1024px){:host{--zn-gutter:16px}}@container (width > 1400px){:host{--zn-gutter:24px}}@container (width > 1500px){:host{--zn-gutter:32px}}:host{display:block;width:100%;height:100%;min-height:0;container-type:inline-size;--zn-page-texture:none;--zn-page-texture-size:auto;--zn-page-content-background:var(--zn-page-canvas,var(--zn-body));--zn-page-header-background:var(--zn-page-surface-background,var(--zn-page-background,var(--zn-body)));--zn-page-closer-size:36px;--zn-page-closer-gap:var(--zn-spacing-x-small)}:host([panel]){--zn-page-content-background:var(--zn-panel)}:host([panel-head]){--zn-page-header-background:var(--zn-panel)}:host([panel-nav]){--zn-active-nav-background:var(--zn-panel)}.page__header{flex:0 0 auto;position:sticky;top:0;z-index:2;box-sizing:border-box;background-color:rgba(var(--zn-page-header-background),95%);background-image:var(--zn-page-texture);background-repeat:repeat;background-position:center top;background-size:var(--zn-page-texture-size)}.page__header::after{content:"";position:absolute;right:var(--zn-base-gap);bottom:0;left:var(--zn-base-gap);height:1px;background:rgb(var(--zn-border-color));opacity:0;transition:opacity 180ms ease-in-out;pointer-events:none}.page__header--scrolled-no-navigation::after{opacity:1}:host-context([t=aura]) .page__header,:host-context(.theme-aura) .page__header{background:var(--zn-page-header-aurora,linear-gradient(225deg,rgb(233,227,255) 0%,rgb(214,246,245) 40%,rgb(233,227,255) 100%),linear-gradient(180deg,rgba(129,153,217,0) 0%,rgb(0,0,0) 100%));background-size:150% 150%;background-position:0% 7%}:host-context([t=aura]) .page__header .header:not(.header--has-navigation),:host-context(.theme-aura) .page__header .header:not(.header--has-navigation){padding-bottom:var(--zn-base-gap);border-bottom:1px solid rgb(var(--zn-border-color))}:host-context([t=aura]) .page__header .header::before,:host-context(.theme-aura) .page__header .header::before{content:"";position:absolute;inset:0;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2' viewBox='0 0 2030 297'%3E%3CclipPath id='a'%3E%3Cpath d='M1745.121 547.488c-.699 0-1.41-.008-2.109-.027-59.434-1.852-104.902-66.16-148.883-128.352-35.129-49.668-71.449-101.039-114.398-119.871-65.121-28.539-137.75 10.363-207.98 47.961-26 13.922-50.559 27.07-73.949 36.289-38.902 15.32-77.77 20.742-118.801 16.582-34.629-3.52-71.93-13.93-117.387-32.762-84.102-34.828-150.801-48.859-223.359-11.199-21.039 10.922-41.84 24.832-63.863 39.562-47.594 31.828-96.457 64.508-147.098 64.508-14.434 0-29-2.648-43.734-8.73-35.766-14.77-68.043-48.219-99.258-80.57-41.438-42.938-84.281-87.348-135.34-87.867-.281 0-.562-.012-.844-.012-48.602 0-87.566 43.051-125.258 84.691-40.719 44.98-82.828 91.5-137.785 85.328l.277-2.488c53.707 6.02 95.359-40 135.652-84.512 38.281-42.289 77.84-85.988 127.98-85.508 52.105.527 95.324 45.316 137.117 88.637 31.035 32.16 63.129 65.422 98.41 79.992 65.199 26.91 127.875-15.012 188.488-55.551 21.109-14.109 42.941-28.711 64.102-39.699 35.859-18.609 72.832-25.629 113.035-21.469 39.656 4.098 79.09 18.77 112.434 32.578 69.711 28.871 146.34 50.809 234.32 16.16 23.25-9.16 47.738-22.27 73.68-36.16 34.602-18.531 70.391-37.691 105.949-48.719 40.48-12.543 74.559-12.32 104.211.668 43.59 19.109 80.121 70.762 115.441 120.711 43.629 61.691 88.738 125.488 146.918 127.301 43.672 1.367 81.031-41.781 117.16-83.5 34.262-39.562 66.629-76.941 101.969-73.449 23.672 2.34 46.262 23 69.082 63.148l-2.172 1.23c-22.391-39.391-44.359-59.641-67.148-61.891-34.059-3.359-66.012 33.531-99.84 72.602-35.941 41.5-73.082 84.387-117.02 84.387Z'/%3E%3C/clipPath%3E%3Cg clip-path='url(%23a)'%3E%3CclipPath id='b'%3E%3Cpath d='M1745.121 547.488c-.699 0-1.41-.008-2.109-.027-59.434-1.852-104.902-66.16-148.883-128.352-35.129-49.668-71.449-101.039-114.398-119.871-65.121-28.539-137.75 10.363-207.98 47.961-26 13.922-50.559 27.07-73.949 36.289-38.902 15.32-77.77 20.742-118.801 16.582-34.629-3.52-71.93-13.93-117.387-32.762-84.102-34.828-150.801-48.859-223.359-11.199-21.039 10.922-41.84 24.832-63.863 39.562-47.594 31.828-96.457 64.508-147.098 64.508-14.434 0-29-2.648-43.734-8.73-35.766-14.77-68.043-48.219-99.258-80.57-41.438-42.938-84.281-87.348-135.34-87.867-.281 0-.562-.012-.844-.012-48.602 0-87.566 43.051-125.258 84.691-40.719 44.98-82.828 91.5-137.785 85.328l.277-2.488c53.707 6.02 95.359-40 135.652-84.512 38.281-42.289 77.84-85.988 127.98-85.508 52.105.527 95.324 45.316 137.117 88.637 31.035 32.16 63.129 65.422 98.41 79.992 65.199 26.91 127.875-15.012 188.488-55.551 21.109-14.109 42.941-28.711 64.102-39.699 35.859-18.609 72.832-25.629 113.035-21.469 39.656 4.098 79.09 18.77 112.434 32.578 69.711 28.871 146.34 50.809 234.32 16.16 23.25-9.16 47.738-22.27 73.68-36.16 34.602-18.531 70.391-37.691 105.949-48.719 40.48-12.543 74.559-12.32 104.211.668 43.59 19.109 80.121 70.762 115.441 120.711 43.629 61.691 88.738 125.488 146.918 127.301 43.672 1.367 81.031-41.781 117.16-83.5 34.262-39.562 66.629-76.941 101.969-73.449 23.672 2.34 46.262 23 69.082 63.148l-2.172 1.23c-22.391-39.391-44.359-59.641-67.148-61.891-34.059-3.359-66.012 33.531-99.84 72.602-35.941 41.5-73.082 84.387-117.02 84.387'/%3E%3C/clipPath%3E%3Cg clip-path='url(%23b)'%3E%3Cpath d='M-14.926 270.699h2046.227v276.789H-14.926z' fill='%238b7fd4' style='fill-rule:nonzero'/%3E%3C/g%3E%3C/g%3E%3CclipPath id='c'%3E%3Cpath d='M1747.91 524.301c-2.648 0-5.32-.152-8.02-.473-56.961-6.719-99.57-66.418-140.762-124.148-34.898-48.898-70.98-99.461-115.527-117.738-64.781-26.57-134.543 11.82-202 48.957-24.031 13.223-46.723 25.723-68.641 34.93-40.34 16.953-80.242 22.832-121.992 17.961-35.52-4.129-72.559-15.629-120.09-37.289-73.633-33.551-146.555-59.762-228.953-12.602-19.609 11.223-39.742 25.652-59.211 39.613-56.871 40.758-115.676 82.91-179.262 62.09-40.32-13.191-75.301-49.082-109.133-83.801-39.812-40.852-80.988-83.102-130.445-87.34-51.141-4.359-92.844 39.668-133.172 82.27-43.387 45.828-88.254 93.219-145.727 82.219l.473-2.461c56.129 10.742 100.512-36.137 143.438-81.477 40.734-43.031 82.855-87.523 135.203-83.043 50.387 4.312 91.887 46.902 132.023 88.09 33.617 34.492 68.379 70.16 108.117 83.172 62.383 20.418 120.664-21.359 177.027-61.762 19.52-13.988 39.707-28.449 59.426-39.738 37.137-21.25 75.07-29.289 115.973-24.59 39.805 4.578 78.918 20.531 115.258 37.078 82.367 37.531 154.715 55.172 240.074 19.301 21.801-9.16 44.441-21.621 68.41-34.809 33.281-18.332 67.703-37.27 102.133-48.352 39.141-12.598 72.508-12.84 102.008-.73 45.23 18.551 81.52 69.41 116.621 118.602 40.879 57.289 83.16 116.531 139.031 123.109 45.25 5.34 83.738-37.48 120.938-78.879 34.262-38.133 66.633-74.141 102.391-71.133 23.109 1.953 45.27 20.172 67.75 55.723l-2.109 1.34c-22.031-34.84-43.57-52.691-65.852-54.57-34.508-2.898-66.488 32.66-100.32 70.309-35.449 39.449-72.027 80.172-115.078 80.172Z'/%3E%3C/clipPath%3E%3Cg clip-path='url(%23c)'%3E%3CclipPath id='d'%3E%3Cpath d='M1747.91 524.301c-2.648 0-5.32-.152-8.02-.473-56.961-6.719-99.57-66.418-140.762-124.148-34.898-48.898-70.98-99.461-115.527-117.738-64.781-26.57-134.543 11.82-202 48.957-24.031 13.223-46.723 25.723-68.641 34.93-40.34 16.953-80.242 22.832-121.992 17.961-35.52-4.129-72.559-15.629-120.09-37.289-73.633-33.551-146.555-59.762-228.953-12.602-19.609 11.223-39.742 25.652-59.211 39.613-56.871 40.758-115.676 82.91-179.262 62.09-40.32-13.191-75.301-49.082-109.133-83.801-39.812-40.852-80.988-83.102-130.445-87.34-51.141-4.359-92.844 39.668-133.172 82.27-43.387 45.828-88.254 93.219-145.727 82.219l.473-2.461c56.129 10.742 100.512-36.137 143.438-81.477 40.734-43.031 82.855-87.523 135.203-83.043 50.387 4.312 91.887 46.902 132.023 88.09 33.617 34.492 68.379 70.16 108.117 83.172 62.383 20.418 120.664-21.359 177.027-61.762 19.52-13.988 39.707-28.449 59.426-39.738 37.137-21.25 75.07-29.289 115.973-24.59 39.805 4.578 78.918 20.531 115.258 37.078 82.367 37.531 154.715 55.172 240.074 19.301 21.801-9.16 44.441-21.621 68.41-34.809 33.281-18.332 67.703-37.27 102.133-48.352 39.141-12.598 72.508-12.84 102.008-.73 45.23 18.551 81.52 69.41 116.621 118.602 40.879 57.289 83.16 116.531 139.031 123.109 45.25 5.34 83.738-37.48 120.938-78.879 34.262-38.133 66.633-74.141 102.391-71.133 23.109 1.953 45.27 20.172 67.75 55.723l-2.109 1.34c-22.031-34.84-43.57-52.691-65.852-54.57-34.508-2.898-66.488 32.66-100.32 70.309-35.449 39.449-72.027 80.172-115.078 80.172'/%3E%3C/clipPath%3E%3Cg clip-path='url(%23d)'%3E%3Cpath d='M-15.023 255.371H2031.27V526.68H-15.023z' fill='%238b7fd4' style='fill-rule:nonzero'/%3E%3C/g%3E%3C/g%3E%3CclipPath id='e'%3E%3Cpath d='M1749.141 500.23q-1.28 0-2.57-.039c-58.16-2.102-102.539-62.613-145.461-121.141-34.789-47.43-70.77-96.492-113.73-114.09-63.598-26.051-131.809 13.039-197.77 50.828-24.551 14.07-47.73 27.352-70.09 36.91-39.668 16.941-79.039 22.02-120.371 15.512-43.188-6.801-85.59-26.051-117.695-42.063-78.641-39.219-150.578-67.348-234.68-14.047-17.863 11.328-36.109 25.25-53.754 38.707-46.023 35.121-93.293 71.18-144.152 71.191-13.434 0-27.113-2.52-41.094-8.23-35.668-14.578-68.43-47.961-100.113-80.23-44.598-45.438-90.719-92.418-145.355-87.418-46.254 4.23-85.137 43.328-122.738 81.148-22.941 23.082-46.664 46.941-71.766 62.5-28.293 17.539-55.414 22.48-82.914 15.102l.648-2.422c59.797 16.062 104.707-29.121 152.258-76.937 37.918-38.141 77.125-77.57 124.285-81.883 55.82-5.098 102.359 42.312 147.367 88.16 31.504 32.09 64.082 65.281 99.273 79.66 65.582 26.812 125.164-18.66 182.785-62.629 17.684-13.492 35.977-27.449 53.93-38.832 38.945-24.68 76.758-33.648 118.992-28.219 37.598 4.82 74.422 20.332 118.145 42.141 84.871 42.328 153.949 61.52 235.969 26.488 22.223-9.5 45.352-22.75 69.832-36.777 32.57-18.66 66.25-37.961 99.938-49.359 38.312-12.961 71.031-13.492 100.02-1.613 43.621 17.871 79.801 67.211 114.793 114.922 42.57 58.051 86.59 118.07 143.539 120.121 42.828 1.547 79.809-37.293 115.559-74.852 34.492-36.238 67.051-70.469 103.27-67.891 22.41 1.602 43.91 17.301 65.742 47.992l-2.039 1.449c-21.363-30.051-42.262-45.402-63.883-46.941-35.027-2.488-67.199 31.32-101.277 67.121-35.422 37.211-72.031 75.66-114.891 75.66Z'/%3E%3C/clipPath%3E%3Cg clip-path='url(%23e)'%3E%3CclipPath id='f'%3E%3Cpath d='M1749.141 500.23q-1.28 0-2.57-.039c-58.16-2.102-102.539-62.613-145.461-121.141-34.789-47.43-70.77-96.492-113.73-114.09-63.598-26.051-131.809 13.039-197.77 50.828-24.551 14.07-47.73 27.352-70.09 36.91-39.668 16.941-79.039 22.02-120.371 15.512-43.188-6.801-85.59-26.051-117.695-42.063-78.641-39.219-150.578-67.348-234.68-14.047-17.863 11.328-36.109 25.25-53.754 38.707-46.023 35.121-93.293 71.18-144.152 71.191-13.434 0-27.113-2.52-41.094-8.23-35.668-14.578-68.43-47.961-100.113-80.23-44.598-45.438-90.719-92.418-145.355-87.418-46.254 4.23-85.137 43.328-122.738 81.148-22.941 23.082-46.664 46.941-71.766 62.5-28.293 17.539-55.414 22.48-82.914 15.102l.648-2.422c59.797 16.062 104.707-29.121 152.258-76.937 37.918-38.141 77.125-77.57 124.285-81.883 55.82-5.098 102.359 42.312 147.367 88.16 31.504 32.09 64.082 65.281 99.273 79.66 65.582 26.812 125.164-18.66 182.785-62.629 17.684-13.492 35.977-27.449 53.93-38.832 38.945-24.68 76.758-33.648 118.992-28.219 37.598 4.82 74.422 20.332 118.145 42.141 84.871 42.328 153.949 61.52 235.969 26.488 22.223-9.5 45.352-22.75 69.832-36.777 32.57-18.66 66.25-37.961 99.938-49.359 38.312-12.961 71.031-13.492 100.02-1.613 43.621 17.871 79.801 67.211 114.793 114.922 42.57 58.051 86.59 118.07 143.539 120.121 42.828 1.547 79.809-37.293 115.559-74.852 34.492-36.238 67.051-70.469 103.27-67.891 22.41 1.602 43.91 17.301 65.742 47.992l-2.039 1.449c-21.363-30.051-42.262-45.402-63.883-46.941-35.027-2.488-67.199 31.32-101.277 67.121-35.422 37.211-72.031 75.66-114.891 75.66'/%3E%3C/clipPath%3E%3Cg clip-path='url(%23f)'%3E%3Cpath d='M-15.113 238.531h2046.344V500.23H-15.113z' fill='%238b7fd4' style='fill-rule:nonzero'/%3E%3C/g%3E%3C/g%3E%3CclipPath id='g'%3E%3Cpath d='M1750.629 477.512c-25.91 0-51.301-11.871-77.551-36.23-24.098-22.371-46.699-53-68.559-82.621-34.77-47.109-70.73-95.84-113.559-112.559-63.301-24.73-128.812 15.328-192.172 54.07-25.027 15.297-48.68 29.758-71.867 40.109-38.402 17.129-77.23 21.32-118.723 12.797-40.449-8.297-79.328-27.488-115.32-46.988-80.762-43.75-148.551-73.48-224.199-26.398-21.398 13.309-43.035 31.25-63.961 48.598-45.125 37.402-91.535 75.859-142.578 75.871-10.242 0-20.668-1.551-31.312-4.969-40.238-12.91-75.602-48.883-109.797-83.66-42.727-43.453-86.922-88.391-140.184-87.23-49.008 1.07-90.926 40.789-131.465 79.199-24.648 23.359-50.137 47.512-76.91 62.609-30.18 17.031-58.855 20.52-87.664 10.68l.809-2.367c62.691 21.418 110.949-24.312 162.043-72.73 40.887-38.742 83.16-78.801 133.133-79.891 54.328-1.16 98.922 44.141 142.02 87.98 33.984 34.559 69.129 70.309 108.781 83.027 62.379 20.02 117.871-25.969 171.531-70.449 20.988-17.398 42.691-35.391 64.23-48.789 36-22.398 73.449-29.23 114.48-20.871 37.188 7.582 74.309 26.652 112.234 47.191 73.371 39.75 146.309 72.27 231.828 34.109 23.043-10.281 46.621-24.699 71.59-39.969 63.871-39.051 129.922-79.441 194.383-54.262 43.5 16.992 79.68 66 114.66 113.41 43.43 58.84 88.359 119.68 146.789 117.781 40.98-1.34 76.461-37.012 110.77-71.5 34.352-34.531 66.789-67.141 103.199-65.313 21.672 1.102 42.57 14.402 63.891 40.66l-1.941 1.582c-20.848-25.68-41.148-38.68-62.078-39.742-35.289-1.777-67.352 30.453-101.289 64.57-34.66 34.84-70.5 70.871-112.473 72.242-.918.027-1.848.051-2.77.051Z'/%3E%3C/clipPath%3E%3Cg clip-path='url(%23g)'%3E%3CclipPath id='h'%3E%3Cpath d='M1750.629 477.512c-25.91 0-51.301-11.871-77.551-36.23-24.098-22.371-46.699-53-68.559-82.621-34.77-47.109-70.73-95.84-113.559-112.559-63.301-24.73-128.812 15.328-192.172 54.07-25.027 15.297-48.68 29.758-71.867 40.109-38.402 17.129-77.23 21.32-118.723 12.797-40.449-8.297-79.328-27.488-115.32-46.988-80.762-43.75-148.551-73.48-224.199-26.398-21.398 13.309-43.035 31.25-63.961 48.598-45.125 37.402-91.535 75.859-142.578 75.871-10.242 0-20.668-1.551-31.312-4.969-40.238-12.91-75.602-48.883-109.797-83.66-42.727-43.453-86.922-88.391-140.184-87.23-49.008 1.07-90.926 40.789-131.465 79.199-24.648 23.359-50.137 47.512-76.91 62.609-30.18 17.031-58.855 20.52-87.664 10.68l.809-2.367c62.691 21.418 110.949-24.312 162.043-72.73 40.887-38.742 83.16-78.801 133.133-79.891 54.328-1.16 98.922 44.141 142.02 87.98 33.984 34.559 69.129 70.309 108.781 83.027 62.379 20.02 117.871-25.969 171.531-70.449 20.988-17.398 42.691-35.391 64.23-48.789 36-22.398 73.449-29.23 114.48-20.871 37.188 7.582 74.309 26.652 112.234 47.191 73.371 39.75 146.309 72.27 231.828 34.109 23.043-10.281 46.621-24.699 71.59-39.969 63.871-39.051 129.922-79.441 194.383-54.262 43.5 16.992 79.68 66 114.66 113.41 43.43 58.84 88.359 119.68 146.789 117.781 40.98-1.34 76.461-37.012 110.77-71.5 34.352-34.531 66.789-67.141 103.199-65.313 21.672 1.102 42.57 14.402 63.891 40.66l-1.941 1.582c-20.848-25.68-41.148-38.68-62.078-39.742-35.289-1.777-67.352 30.453-101.289 64.57-34.66 34.84-70.5 70.871-112.473 72.242-.918.027-1.848.051-2.77.051'/%3E%3C/clipPath%3E%3Cg clip-path='url(%23h)'%3E%3Cpath d='M-15.191 218.59H2031.18v258.922H-15.191z' fill='%238b7fd4' style='fill-rule:nonzero'/%3E%3C/g%3E%3C/g%3E%3CclipPath id='i'%3E%3Cpath d='M1753.551 454.352h-.441c-26.25-.152-51.859-12.16-78.289-36.73-23.441-21.801-45.398-51.281-66.629-79.793-35.812-48.09-72.84-97.809-118.203-112.449-60.816-19.617-121.75 20.121-180.668 58.562-23.441 15.277-45.57 29.719-67.52 40.43-85.879 41.918-158.199 7.5-237.129-38.211-87.789-50.84-156.109-82.32-236.102-24.02-17.605 12.828-35.465 28.84-52.742 44.32-43.918 39.348-89.125 79.848-140.082 79.859-8.391 0-16.934-1.102-25.656-3.48-42.352-11.57-79.031-48.789-114.504-84.781-41.84-42.449-85.109-86.359-137.199-86.988-.395-.012-.793-.012-1.188-.012-50.453 0-94.527 39.242-137.168 77.203-26.508 23.59-53.918 47.988-82.5 62.547-32.211 16.41-62.562 18.332-92.793 5.891l.949-2.309c65.852 27.098 117.742-19.09 172.68-68 42.988-38.27 87.43-77.832 138.828-77.832.406 0 .812 0 1.223.012 53.117.648 96.754 44.918 138.949 87.738 35.238 35.75 71.68 72.73 113.379 84.121 60.383 16.492 112.762-30.449 163.414-75.828 17.32-15.523 35.23-31.57 52.938-44.48 38.664-28.18 76.891-37.312 120.305-28.73 38.867 7.68 76.672 28.371 118.527 52.609 78.289 45.34 150.012 79.512 234.781 38.121 21.801-10.641 43.867-25.043 67.238-40.281 59.422-38.75 120.852-78.828 182.812-58.84 46.117 14.879 83.387 64.941 119.438 113.34 42.172 56.629 85.77 115.191 142.922 115.512h.43c41.719 0 77.738-34.43 112.578-67.742 33.762-32.281 65.68-62.801 101.66-62.801.562 0 1.109.012 1.672.02 20.867.551 41.039 11.461 61.66 33.363l-1.82 1.707c-20.141-21.387-39.742-32.039-59.91-32.57-35.59-.906-67.641 29.684-101.539 62.094-35.191 33.637-71.582 68.43-114.301 68.43Z'/%3E%3C/clipPath%3E%3Cg clip-path='url(%23i)'%3E%3CclipPath id='j'%3E%3Cpath d='M1753.551 454.352h-.441c-26.25-.152-51.859-12.16-78.289-36.73-23.441-21.801-45.398-51.281-66.629-79.793-35.812-48.09-72.84-97.809-118.203-112.449-60.816-19.617-121.75 20.121-180.668 58.562-23.441 15.277-45.57 29.719-67.52 40.43-85.879 41.918-158.199 7.5-237.129-38.211-87.789-50.84-156.109-82.32-236.102-24.02-17.605 12.828-35.465 28.84-52.742 44.32-43.918 39.348-89.125 79.848-140.082 79.859-8.391 0-16.934-1.102-25.656-3.48-42.352-11.57-79.031-48.789-114.504-84.781-41.84-42.449-85.109-86.359-137.199-86.988-.395-.012-.793-.012-1.188-.012-50.453 0-94.527 39.242-137.168 77.203-26.508 23.59-53.918 47.988-82.5 62.547-32.211 16.41-62.562 18.332-92.793 5.891l.949-2.309c65.852 27.098 117.742-19.09 172.68-68 42.988-38.27 87.43-77.832 138.828-77.832.406 0 .812 0 1.223.012 53.117.648 96.754 44.918 138.949 87.738 35.238 35.75 71.68 72.73 113.379 84.121 60.383 16.492 112.762-30.449 163.414-75.828 17.32-15.523 35.23-31.57 52.938-44.48 38.664-28.18 76.891-37.312 120.305-28.73 38.867 7.68 76.672 28.371 118.527 52.609 78.289 45.34 150.012 79.512 234.781 38.121 21.801-10.641 43.867-25.043 67.238-40.281 59.422-38.75 120.852-78.828 182.812-58.84 46.117 14.879 83.387 64.941 119.438 113.34 42.172 56.629 85.77 115.191 142.922 115.512h.43c41.719 0 77.738-34.43 112.578-67.742 33.762-32.281 65.68-62.801 101.66-62.801.562 0 1.109.012 1.672.02 20.867.551 41.039 11.461 61.66 33.363l-1.82 1.707c-20.141-21.387-39.742-32.039-59.91-32.57-35.59-.906-67.641 29.684-101.539 62.094-35.191 33.637-71.582 68.43-114.301 68.43'/%3E%3C/clipPath%3E%3Cg clip-path='url(%23j)'%3E%3Cpath d='M-15.262 203.012h2046.383v251.34H-15.262z' fill='%238b7fd4' style='fill-rule:nonzero'/%3E%3C/g%3E%3C/g%3E%3CclipPath id='k'%3E%3Cpath d='M1756.352 431.23c-1.191 0-2.391-.031-3.602-.082-56.84-2.477-100.34-59.539-142.422-114.719-34.469-45.219-70.117-91.969-112.809-108.508-60.781-23.551-120.098 18.406-177.461 58.988-22.047 15.59-42.879 30.328-63.738 41.469-40.102 21.422-78.91 26.223-122.141 15.109-40.508-10.41-80.41-34.008-117.82-57.297-77.5-48.242-150.707-93.812-231.922-33.031-19.465 14.57-38.77 33.031-57.438 50.879-43.109 41.223-87.418 83.582-138.664 83.582-12.016.008-24.402-2.32-37.258-7.543-36.516-14.816-69.141-47.738-100.695-79.578-41-41.371-83.395-84.148-134.156-86.59-53.047-2.57-100.109 36.969-145.633 75.191-28.375 23.828-57.719 48.457-88.102 62.457-34.227 15.77-66.223 16.113-97.816 1.062l1.074-2.262c68.891 32.832 124.43-13.801 183.234-63.168 45.895-38.543 93.34-78.371 147.359-75.781 51.734 2.488 94.48 45.621 135.816 87.328 31.375 31.66 63.816 64.402 99.859 79.031 29.641 12.031 59.465 9.281 91.172-8.391 28.43-15.848 55.703-41.93 82.082-67.148 18.719-17.902 38.078-36.41 57.664-51.07 37.449-28.031 75.164-35.941 118.688-24.91 39.117 9.922 78.23 34.27 116.066 57.82 82.75 51.52 152.777 87.328 237.457 42.102 20.711-11.062 41.48-25.75 63.461-41.312 57.902-40.949 117.77-83.309 179.812-59.27 43.348 16.789 79.219 63.832 113.898 109.32 41.73 54.73 84.871 111.309 140.539 113.738 43.129 1.871 80.082-31.629 115.84-64.027 25.68-23.27 49.941-45.262 76.312-55.09 29.648-11.062 57.789-4.18 86.027 21.02l-1.66 1.871c-61.18-54.602-108.699-11.531-159 34.059-35.141 31.84-71.449 64.738-114.027 64.75Z'/%3E%3C/clipPath%3E%3Cg clip-path='url(%23k)'%3E%3CclipPath id='l'%3E%3Cpath d='M1756.352 431.23c-1.191 0-2.391-.031-3.602-.082-56.84-2.477-100.34-59.539-142.422-114.719-34.469-45.219-70.117-91.969-112.809-108.508-60.781-23.551-120.098 18.406-177.461 58.988-22.047 15.59-42.879 30.328-63.738 41.469-40.102 21.422-78.91 26.223-122.141 15.109-40.508-10.41-80.41-34.008-117.82-57.297-77.5-48.242-150.707-93.812-231.922-33.031-19.465 14.57-38.77 33.031-57.438 50.879-43.109 41.223-87.418 83.582-138.664 83.582-12.016.008-24.402-2.32-37.258-7.543-36.516-14.816-69.141-47.738-100.695-79.578-41-41.371-83.395-84.148-134.156-86.59-53.047-2.57-100.109 36.969-145.633 75.191-28.375 23.828-57.719 48.457-88.102 62.457-34.227 15.77-66.223 16.113-97.816 1.062l1.074-2.262c68.891 32.832 124.43-13.801 183.234-63.168 45.895-38.543 93.34-78.371 147.359-75.781 51.734 2.488 94.48 45.621 135.816 87.328 31.375 31.66 63.816 64.402 99.859 79.031 29.641 12.031 59.465 9.281 91.172-8.391 28.43-15.848 55.703-41.93 82.082-67.148 18.719-17.902 38.078-36.41 57.664-51.07 37.449-28.031 75.164-35.941 118.688-24.91 39.117 9.922 78.23 34.27 116.066 57.82 82.75 51.52 152.777 87.328 237.457 42.102 20.711-11.062 41.48-25.75 63.461-41.312 57.902-40.949 117.77-83.309 179.812-59.27 43.348 16.789 79.219 63.832 113.898 109.32 41.73 54.73 84.871 111.309 140.539 113.738 43.129 1.871 80.082-31.629 115.84-64.027 25.68-23.27 49.941-45.262 76.312-55.09 29.648-11.062 57.789-4.18 86.027 21.02l-1.66 1.871c-61.18-54.602-108.699-11.531-159 34.059-35.141 31.84-71.449 64.738-114.027 64.75'/%3E%3C/clipPath%3E%3Cg clip-path='url(%23l)'%3E%3Cpath d='M-15.324 172.379h2046.363v258.852H-15.324z' fill='%238b7fd4' style='fill-rule:nonzero'/%3E%3C/g%3E%3C/g%3E%3CclipPath id='m'%3E%3Cpath d='M1759.309 408.051c-2.34 0-4.688-.102-7.07-.289-55.457-4.543-98.398-60.062-139.93-113.762-33.098-42.789-67.328-87.051-107.547-105.109-61.062-27.441-119.793 17.641-176.59 61.23-23.031 17.68-44.793 34.379-66.594 46.367-38.578 21.223-76.629 24.801-119.738 11.273-37.051-11.621-72.219-33.871-114.352-61.73l-2.438-1.609c-78.355-51.852-152.367-100.82-233.16-34.051-17.574 14.52-35.246 32.719-52.336 50.309-42.676 43.941-86.57 89.109-137.766 89.121-10.438 0-21.176-1.879-32.273-6.031-38.145-14.25-71.801-48.121-104.352-80.879-40.219-40.469-81.809-82.32-131.562-86.371-55.133-4.48-104.723 35.109-152.68 73.391-30.168 24.09-61.367 48.988-93.504 62.441-36.191 15.148-69.816 13.898-102.797-3.82l1.184-2.203c71.977 38.684 131.035-8.457 193.559-58.367 48.34-38.59 98.324-78.48 154.437-73.93 50.676 4.117 92.598 46.309 133.137 87.098 32.359 32.562 65.82 66.242 103.453 80.301 64.004 23.922 116.551-30.168 167.371-82.488 17.137-17.641 34.859-35.891 52.539-50.5 82.215-67.941 156.977-18.48 236.129 33.887l2.441 1.613c72.109 47.699 146.668 97.02 231.5 50.359 21.641-11.902 43.32-28.539 66.277-46.16 57.383-44.039 116.711-89.582 179.141-61.531 40.789 18.32 75.211 62.82 108.492 105.859 41.199 53.27 83.797 108.352 138.16 112.801 44.41 3.629 82.438-28.82 119.207-60.191 24.043-20.52 48.902-41.727 74.801-51.727 29.141-11.262 56.781-6.98 84.5 13.07l-1.469 2.02c-60.09-43.473-106.781-3.633-156.211 38.539-35.211 30.051-71.57 61.059-113.961 61.07Z'/%3E%3C/clipPath%3E%3Cg clip-path='url(%23m)'%3E%3CclipPath id='n'%3E%3Cpath d='M1759.309 408.051c-2.34 0-4.688-.102-7.07-.289-55.457-4.543-98.398-60.062-139.93-113.762-33.098-42.789-67.328-87.051-107.547-105.109-61.062-27.441-119.793 17.641-176.59 61.23-23.031 17.68-44.793 34.379-66.594 46.367-38.578 21.223-76.629 24.801-119.738 11.273-37.051-11.621-72.219-33.871-114.352-61.73l-2.438-1.609c-78.355-51.852-152.367-100.82-233.16-34.051-17.574 14.52-35.246 32.719-52.336 50.309-42.676 43.941-86.57 89.109-137.766 89.121-10.438 0-21.176-1.879-32.273-6.031-38.145-14.25-71.801-48.121-104.352-80.879-40.219-40.469-81.809-82.32-131.562-86.371-55.133-4.48-104.723 35.109-152.68 73.391-30.168 24.09-61.367 48.988-93.504 62.441-36.191 15.148-69.816 13.898-102.797-3.82l1.184-2.203c71.977 38.684 131.035-8.457 193.559-58.367 48.34-38.59 98.324-78.48 154.437-73.93 50.676 4.117 92.598 46.309 133.137 87.098 32.359 32.562 65.82 66.242 103.453 80.301 64.004 23.922 116.551-30.168 167.371-82.488 17.137-17.641 34.859-35.891 52.539-50.5 82.215-67.941 156.977-18.48 236.129 33.887l2.441 1.613c72.109 47.699 146.668 97.02 231.5 50.359 21.641-11.902 43.32-28.539 66.277-46.16 57.383-44.039 116.711-89.582 179.141-61.531 40.789 18.32 75.211 62.82 108.492 105.859 41.199 53.27 83.797 108.352 138.16 112.801 44.41 3.629 82.438-28.82 119.207-60.191 24.043-20.52 48.902-41.727 74.801-51.727 29.141-11.262 56.781-6.98 84.5 13.07l-1.469 2.02c-60.09-43.473-106.781-3.633-156.211 38.539-35.211 30.051-71.57 61.059-113.961 61.07'/%3E%3C/clipPath%3E%3Cg clip-path='url(%23n)'%3E%3Cpath d='M-15.379 140.5h2046.328v268.398H-15.379z' fill='%238b7fd4' style='fill-rule:nonzero'/%3E%3C/g%3E%3C/g%3E%3CclipPath id='o'%3E%3Cpath d='M1762.43 384.789c-3.621 0-7.27-.211-10.969-.648-54.18-6.539-96.082-60.281-136.609-112.25-34.23-43.902-69.621-89.289-112.16-106.07-58.43-23.059-113.031 22.168-165.84 65.918-18.742 15.523-36.453 30.184-54.211 41.793-40.621 26.559-80.359 32.57-125.07 18.918-41.121-12.551-83.02-41.449-119.992-66.949l-6.18-4.262C952.887 167.001 878.723 115.77 798.45 187.38c-16.758 14.961-33.43 33.312-49.551 51.062-41.352 45.527-83.922 92.387-135.598 92.387-8.582.012-17.406-1.289-26.527-4.09-40.766-12.527-75.855-48.137-109.789-82.566-38.801-39.383-78.922-80.094-127.191-85.531-57.105-6.449-109.066 33.359-159.32 71.848-31.848 24.383-64.777 49.613-98.539 62.551-38.012 14.582-73.129 11.77-107.359-8.59l1.277-2.148c33.992 20.219 67.418 22.898 105.188 8.41 33.422-12.82 66.207-37.93 97.91-62.211 50.648-38.789 103.027-78.91 161.125-72.352 49.148 5.543 89.586 46.582 128.691 86.262 33.715 34.219 68.578 69.59 108.742 81.941 62.527 19.219 111.844-35.082 159.539-87.59 16.164-17.801 32.883-36.203 49.738-51.242 19.656-17.539 39.402-28.371 60.371-33.098 18.754-4.242 38.082-3.48 59.082 2.34 38.922 10.77 76.641 36.828 116.582 64.418l6.18 4.262c79 54.488 153.629 105.957 242.27 48 17.652-11.531 35.301-26.152 53.98-41.633 53.371-44.207 108.559-89.918 168.359-66.32 43.172 17.031 78.781 62.703 113.211 106.863 40.211 51.57 81.789 104.887 134.941 111.297 45.898 5.543 85.367-25.91 123.559-56.328 23.52-18.73 47.852-38.109 73.18-48.242 28.531-11.406 55.461-9.707 82.32 5.203l-1.211 2.18c-58.328-32.383-104.18 4.148-152.73 42.82-35.551 28.309-72.207 57.508-114.449 57.508Z'/%3E%3C/clipPath%3E%3Cg clip-path='url(%23o)'%3E%3CclipPath id='p'%3E%3Cpath d='M1762.43 384.789c-3.621 0-7.27-.211-10.969-.648-54.18-6.539-96.082-60.281-136.609-112.25-34.23-43.902-69.621-89.289-112.16-106.07-58.43-23.059-113.031 22.168-165.84 65.918-18.742 15.523-36.453 30.184-54.211 41.793-40.621 26.559-80.359 32.57-125.07 18.918-41.121-12.551-83.02-41.449-119.992-66.949l-6.18-4.262C952.887 167.001 878.723 115.77 798.45 187.38c-16.758 14.961-33.43 33.312-49.551 51.062-41.352 45.527-83.922 92.387-135.598 92.387-8.582.012-17.406-1.289-26.527-4.09-40.766-12.527-75.855-48.137-109.789-82.566-38.801-39.383-78.922-80.094-127.191-85.531-57.105-6.449-109.066 33.359-159.32 71.848-31.848 24.383-64.777 49.613-98.539 62.551-38.012 14.582-73.129 11.77-107.359-8.59l1.277-2.148c33.992 20.219 67.418 22.898 105.188 8.41 33.422-12.82 66.207-37.93 97.91-62.211 50.648-38.789 103.027-78.91 161.125-72.352 49.148 5.543 89.586 46.582 128.691 86.262 33.715 34.219 68.578 69.59 108.742 81.941 62.527 19.219 111.844-35.082 159.539-87.59 16.164-17.801 32.883-36.203 49.738-51.242 19.656-17.539 39.402-28.371 60.371-33.098 18.754-4.242 38.082-3.48 59.082 2.34 38.922 10.77 76.641 36.828 116.582 64.418l6.18 4.262c79 54.488 153.629 105.957 242.27 48 17.652-11.531 35.301-26.152 53.98-41.633 53.371-44.207 108.559-89.918 168.359-66.32 43.172 17.031 78.781 62.703 113.211 106.863 40.211 51.57 81.789 104.887 134.941 111.297 45.898 5.543 85.367-25.91 123.559-56.328 23.52-18.73 47.852-38.109 73.18-48.242 28.531-11.406 55.461-9.707 82.32 5.203l-1.211 2.18c-58.328-32.383-104.18 4.148-152.73 42.82-35.551 28.309-72.207 57.508-114.449 57.508'/%3E%3C/clipPath%3E%3Cg clip-path='url(%23p)'%3E%3Cpath d='M-15.426 115.77H2030.82v271.422H-15.426z' fill='%238b7fd4' style='fill-rule:nonzero'/%3E%3C/g%3E%3C/g%3E%3CclipPath id='q'%3E%3Cpath d='M1765.238 361.371c-4.027 0-8.098-.25-12.207-.77-53.973-6.812-95.832-59.961-136.32-111.363-34.211-43.438-69.59-88.359-112.02-105.137-58.051-22.973-110.453 23.578-161.133 68.598-17.918 15.922-34.859 30.961-52.008 43.039-27.531 19.383-53.902 27.332-79.582 27.332-56.117.008-109.02-37.922-164.027-77.34l-1.793-1.281q-4.649-3.346-9.297-6.688c-37.633-27.07-76.543-55.062-114.922-66.172-43.324-12.539-80.273-2.59-116.277 31.332-16.449 15.5-32.707 34.449-48.434 52.777-46.918 54.711-95.441 111.27-159.695 91.531-40.633-12.48-75.594-47.992-109.402-82.34-38.637-39.25-78.59-79.84-126.664-85.27-57.805-6.551-111.012 32.988-162.465 71.207-33.359 24.793-67.852 50.422-103.062 62.91-39.633 14.062-76.074 9.684-111.402-13.379l1.367-2.09c35.113 22.922 69.812 27.09 109.199 13.109 34.855-12.359 69.195-37.879 102.406-62.551 51.84-38.52 105.453-78.348 164.238-71.699 48.953 5.543 89.223 46.449 128.168 86.012 33.59 34.121 68.324 69.41 108.352 81.699 62.691 19.262 110.668-36.668 157.062-90.762 15.77-18.387 32.07-37.387 48.617-52.977 19.375-18.25 38.941-29.512 59.82-34.422 18.645-4.379 37.898-3.559 58.867 2.512 38.793 11.219 77.887 39.348 115.684 66.539 3.102 2.23 6.203 4.461 9.301 6.68l1.789 1.289c40.633 29.121 79.012 56.621 118.402 69.492 44.109 14.387 82.969 8.199 122.309-19.5 17.039-11.992 33.922-26.992 51.789-42.863 51.25-45.52 104.23-92.59 163.711-69.059 43.062 17.031 78.652 62.219 113.07 105.922 40.172 51 81.711 103.738 134.66 110.43 46.582 5.891 87.332-24.152 126.73-53.199 46-33.91 93.57-68.98 150.602-46.773l-.91 2.332c-55.742-21.711-100.66 11.398-148.211 46.461-36.352 26.797-73.832 54.43-116.312 54.43Z'/%3E%3C/clipPath%3E%3Cg clip-path='url(%23q)'%3E%3CclipPath id='r'%3E%3Cpath d='M1765.238 361.371c-4.027 0-8.098-.25-12.207-.77-53.973-6.812-95.832-59.961-136.32-111.363-34.211-43.438-69.59-88.359-112.02-105.137-58.051-22.973-110.453 23.578-161.133 68.598-17.918 15.922-34.859 30.961-52.008 43.039-27.531 19.383-53.902 27.332-79.582 27.332-56.117.008-109.02-37.922-164.027-77.34l-1.793-1.281q-4.649-3.346-9.297-6.688c-37.633-27.07-76.543-55.062-114.922-66.172-43.324-12.539-80.273-2.59-116.277 31.332-16.449 15.5-32.707 34.449-48.434 52.777-46.918 54.711-95.441 111.27-159.695 91.531-40.633-12.48-75.594-47.992-109.402-82.34-38.637-39.25-78.59-79.84-126.664-85.27-57.805-6.551-111.012 32.988-162.465 71.207-33.359 24.793-67.852 50.422-103.062 62.91-39.633 14.062-76.074 9.684-111.402-13.379l1.367-2.09c35.113 22.922 69.812 27.09 109.199 13.109 34.855-12.359 69.195-37.879 102.406-62.551 51.84-38.52 105.453-78.348 164.238-71.699 48.953 5.543 89.223 46.449 128.168 86.012 33.59 34.121 68.324 69.41 108.352 81.699 62.691 19.262 110.668-36.668 157.062-90.762 15.77-18.387 32.07-37.387 48.617-52.977 19.375-18.25 38.941-29.512 59.82-34.422 18.645-4.379 37.898-3.559 58.867 2.512 38.793 11.219 77.887 39.348 115.684 66.539 3.102 2.23 6.203 4.461 9.301 6.68l1.789 1.289c40.633 29.121 79.012 56.621 118.402 69.492 44.109 14.387 82.969 8.199 122.309-19.5 17.039-11.992 33.922-26.992 51.789-42.863 51.25-45.52 104.23-92.59 163.711-69.059 43.062 17.031 78.652 62.219 113.07 105.922 40.172 51 81.711 103.738 134.66 110.43 46.582 5.891 87.332-24.152 126.73-53.199 46-33.91 93.57-68.98 150.602-46.773l-.91 2.332c-55.742-21.711-100.66 11.398-148.211 46.461-36.352 26.797-73.832 54.43-116.312 54.43'/%3E%3C/clipPath%3E%3Cg clip-path='url(%23r)'%3E%3Cpath d='M-15.473 118.238h2046.145v245.773H-15.473z' fill='%238b7fd4' style='fill-rule:nonzero'/%3E%3C/g%3E%3C/g%3E%3CclipPath id='s'%3E%3Cpath d='M1767.441 337.719c-3.5 0-7.02-.168-10.582-.527-54.84-5.531-97.629-59.211-139.008-111.133-33.023-41.418-67.172-84.258-107.113-102.289-60.129-27.141-111.867 21.551-161.91 68.641-19.527 18.371-39.719 37.371-59.816 51.078-36.223 24.711-74.41 29.25-116.73 13.891-37.52-13.609-74.59-41.219-110.43-67.91-3.043-2.27-6.07-4.527-9.113-6.777-3.879-2.883-7.758-5.781-11.648-8.68-36.961-27.613-75.176-56.152-113.234-67.852-42.547-13.09-80.125-3.059-114.879 30.66-16.676 16.18-33.117 36.211-49.016 55.578-39.816 48.5-80.781 98.383-132.188 98.391-9.785 0-19.941-1.809-30.547-5.77-37.773-14.129-71.07-47.73-103.273-80.219-39.742-40.102-80.84-81.562-130.039-85.609-48.121-3.961-95.988 30.199-142.277 63.238-13.238 9.449-25.742 18.371-38.105 26.289-67.078 42.98-133.082 77.422-203.043 27.551l1.449-2.031C54.63 283.2 119.857 249.11 186.185 206.622c12.309-7.891 24.789-16.801 38-26.23 46.656-33.301 94.898-67.742 143.938-63.699 50.117 4.129 91.543 45.93 131.609 86.348 32.012 32.301 65.113 65.699 102.371 79.633 64.656 24.188 113.09-34.812 159.926-91.863 15.945-19.418 32.43-39.5 49.207-55.777 79.098-76.742 156.5-18.93 231.344 36.969 3.891 2.91 7.773 5.809 11.652 8.68 3.039 2.262 6.07 4.52 9.109 6.781 35.699 26.59 72.621 54.078 109.789 67.57 41.52 15.07 78.961 10.609 114.473-13.609 19.93-13.594 40.047-32.531 59.508-50.832 50.641-47.66 103-96.93 164.66-69.102 40.492 18.281 74.832 61.363 108.031 103.012 41.059 51.52 83.52 104.781 137.309 110.199 46.719 4.711 88.602-23.668 129.09-51.129 44.672-30.289 90.871-61.609 144.289-49.531l-.547 2.43c-52.371-11.828-98.113 19.18-142.332 49.172-37.809 25.641-76.82 52.078-120.168 52.078Z'/%3E%3C/clipPath%3E%3Cg clip-path='url(%23s)'%3E%3CclipPath id='t'%3E%3Cpath d='M1767.441 337.719c-3.5 0-7.02-.168-10.582-.527-54.84-5.531-97.629-59.211-139.008-111.133-33.023-41.418-67.172-84.258-107.113-102.289-60.129-27.141-111.867 21.551-161.91 68.641-19.527 18.371-39.719 37.371-59.816 51.078-36.223 24.711-74.41 29.25-116.73 13.891-37.52-13.609-74.59-41.219-110.43-67.91-3.043-2.27-6.07-4.527-9.113-6.777-3.879-2.883-7.758-5.781-11.648-8.68-36.961-27.613-75.176-56.152-113.234-67.852-42.547-13.09-80.125-3.059-114.879 30.66-16.676 16.18-33.117 36.211-49.016 55.578-39.816 48.5-80.781 98.383-132.188 98.391-9.785 0-19.941-1.809-30.547-5.77-37.773-14.129-71.07-47.73-103.273-80.219-39.742-40.102-80.84-81.562-130.039-85.609-48.121-3.961-95.988 30.199-142.277 63.238-13.238 9.449-25.742 18.371-38.105 26.289-67.078 42.98-133.082 77.422-203.043 27.551l1.449-2.031C54.63 283.2 119.857 249.11 186.185 206.622c12.309-7.891 24.789-16.801 38-26.23 46.656-33.301 94.898-67.742 143.938-63.699 50.117 4.129 91.543 45.93 131.609 86.348 32.012 32.301 65.113 65.699 102.371 79.633 64.656 24.188 113.09-34.812 159.926-91.863 15.945-19.418 32.43-39.5 49.207-55.777 79.098-76.742 156.5-18.93 231.344 36.969 3.891 2.91 7.773 5.809 11.652 8.68 3.039 2.262 6.07 4.52 9.109 6.781 35.699 26.59 72.621 54.078 109.789 67.57 41.52 15.07 78.961 10.609 114.473-13.609 19.93-13.594 40.047-32.531 59.508-50.832 50.641-47.66 103-96.93 164.66-69.102 40.492 18.281 74.832 61.363 108.031 103.012 41.059 51.52 83.52 104.781 137.309 110.199 46.719 4.711 88.602-23.668 129.09-51.129 44.672-30.289 90.871-61.609 144.289-49.531l-.547 2.43c-52.371-11.828-98.113 19.18-142.332 49.172-37.809 25.641-76.82 52.078-120.168 52.078'/%3E%3C/clipPath%3E%3Cg clip-path='url(%23t)'%3E%3Cpath d='M-15.512 58.289h2046V339.41h-2046z' fill='%238b7fd4' style='fill-rule:nonzero'/%3E%3C/g%3E%3C/g%3E%3CclipPath id='u'%3E%3Cpath d='M1769.961 314.012c-4.102 0-8.223-.211-12.371-.672-54.699-6.012-97.48-59.262-138.859-110.75-33.012-41.09-67.152-83.578-107.031-101.738-60.32-27.461-110.57 21.848-159.168 69.539-19.082 18.719-38.82 38.09-58.711 52.211-23.609 16.77-46.742 23.68-69.441 23.688-54.367 0-106.34-39.609-157.109-78.301-3.469-2.637-6.93-5.277-10.391-7.91a2942 2942 0 0 1-12.398-9.449c-74.293-56.758-151.121-115.457-228.223-38.34-16.586 16.59-32.812 37.031-48.5 56.801-39.066 49.219-79.254 99.852-130.758 99.859-9.754 0-19.906-1.82-30.543-5.801-37.621-14.098-70.832-47.637-102.949-80.078-39.707-40.102-80.77-81.582-129.863-85.492-47.781-3.816-95.766 30.41-142.168 63.512-14.125 10.07-27.465 19.59-40.59 27.871-68.625 43.277-136.055 77.629-206.438 23.23l1.527-1.98c69.109 53.418 135.73 19.43 203.574-23.371 13.066-8.238 26.379-17.738 40.473-27.789 46.766-33.359 95.133-67.84 143.82-63.973 50.02 3.992 91.414 45.801 131.441 86.23 31.926 32.25 64.941 65.59 102.047 79.492 29.145 10.918 57.258 5.91 85.953-15.312 25.75-19.039 49.523-48.988 72.512-77.949 15.734-19.828 32.004-40.328 48.691-57.02 35.242-35.25 73.66-45.629 117.449-31.75 38.621 12.242 76.973 41.539 114.062 69.879 4.141 3.16 8.27 6.312 12.391 9.441 3.461 2.621 6.93 5.27 10.398 7.91 71.242 54.289 144.902 110.441 223.59 54.559 19.723-14.008 39.391-33.297 58.402-51.957 49.199-48.281 100.07-98.203 161.957-70.023 40.41 18.402 74.742 61.121 107.941 102.441 41.059 51.102 83.52 103.941 137.18 109.832 48.449 5.328 93.332-22.652 136.742-49.703 42.828-26.68 87.109-54.25 135.688-51.199l-.16 2.5c-47.777-3.02-91.707 24.352-134.199 50.832-40.09 24.969-81.441 50.73-125.969 50.73Z'/%3E%3C/clipPath%3E%3Cg clip-path='url(%23u)'%3E%3CclipPath id='v'%3E%3Cpath d='M1769.961 314.012c-4.102 0-8.223-.211-12.371-.672-54.699-6.012-97.48-59.262-138.859-110.75-33.012-41.09-67.152-83.578-107.031-101.738-60.32-27.461-110.57 21.848-159.168 69.539-19.082 18.719-38.82 38.09-58.711 52.211-23.609 16.77-46.742 23.68-69.441 23.688-54.367 0-106.34-39.609-157.109-78.301-3.469-2.637-6.93-5.277-10.391-7.91a2942 2942 0 0 1-12.398-9.449c-74.293-56.758-151.121-115.457-228.223-38.34-16.586 16.59-32.812 37.031-48.5 56.801-39.066 49.219-79.254 99.852-130.758 99.859-9.754 0-19.906-1.82-30.543-5.801-37.621-14.098-70.832-47.637-102.949-80.078-39.707-40.102-80.77-81.582-129.863-85.492-47.781-3.816-95.766 30.41-142.168 63.512-14.125 10.07-27.465 19.59-40.59 27.871-68.625 43.277-136.055 77.629-206.438 23.23l1.527-1.98c69.109 53.418 135.73 19.43 203.574-23.371 13.066-8.238 26.379-17.738 40.473-27.789 46.766-33.359 95.133-67.84 143.82-63.973 50.02 3.992 91.414 45.801 131.441 86.23 31.926 32.25 64.941 65.59 102.047 79.492 29.145 10.918 57.258 5.91 85.953-15.312 25.75-19.039 49.523-48.988 72.512-77.949 15.734-19.828 32.004-40.328 48.691-57.02 35.242-35.25 73.66-45.629 117.449-31.75 38.621 12.242 76.973 41.539 114.062 69.879 4.141 3.16 8.27 6.312 12.391 9.441 3.461 2.621 6.93 5.27 10.398 7.91 71.242 54.289 144.902 110.441 223.59 54.559 19.723-14.008 39.391-33.297 58.402-51.957 49.199-48.281 100.07-98.203 161.957-70.023 40.41 18.402 74.742 61.121 107.941 102.441 41.059 51.102 83.52 103.941 137.18 109.832 48.449 5.328 93.332-22.652 136.742-49.703 42.828-26.68 87.109-54.25 135.688-51.199l-.16 2.5c-47.777-3.02-91.707 24.352-134.199 50.832-40.09 24.969-81.441 50.73-125.969 50.73'/%3E%3C/clipPath%3E%3Cg clip-path='url(%23v)'%3E%3Cpath d='M-15.551 35.172h2045.84V316.18H-15.551z' fill='%238b7fd4' style='fill-rule:nonzero'/%3E%3C/g%3E%3C/g%3E%3CclipPath id='w'%3E%3Cpath d='M1771.539 289.961c-3.699.008-7.41-.16-11.141-.492-55.648-5.039-99.047-58.559-141.027-110.32-34.34-42.34-69.859-86.129-111.801-103.16-59.059-23.988-107.191 24.16-153.742 70.723-17.109 17.109-34.797 34.809-52.699 48.52-37.25 28.539-76.578 34.848-120.25 19.289-38.738-13.801-77.098-43.141-114.207-71.508a2811 2811 0 0 0-8.57-6.543c-4.34-3.309-8.691-6.66-13.062-10.02-73.715-56.66-149.934-115.258-226.254-40.508-18.219 17.84-35.445 39.828-52.105 61.098-22.992 29.34-46.762 59.68-72.848 78.41-29.391 21.102-58.898 25.129-90.211 12.34-35.758-14.598-67.824-46.988-98.832-78.309-40.402-40.82-82.184-83.02-132-85.352-46.492-2.168-95.867 33.43-139.438 64.84-15.125 10.91-29.414 21.203-43.301 29.891-32.676 20.41-67.68 40.23-102.266 46.93-37.934 7.352-71.746-1.711-103.367-27.68l1.59-1.938c68.477 56.25 134.965 22.906 202.715-19.434 13.82-8.637 28.078-18.918 43.168-29.797 43.902-31.652 93.668-67.512 141.016-65.301 50.789 2.371 92.918 44.918 133.66 86.078 30.832 31.141 62.715 63.352 98 77.762 30.875 12.609 58.777 8.781 87.805-12.059 25.797-18.523 49.457-48.723 72.34-77.934 16.711-21.328 33.988-43.379 52.324-61.34 34.879-34.148 73.008-43.828 116.566-29.578 38.355 12.551 76.277 41.699 112.957 69.898 4.371 3.352 8.723 6.703 13.062 10.012 2.859 2.18 5.707 4.359 8.57 6.539 36.949 28.262 75.16 57.469 113.52 71.141 42.82 15.262 81.379 9.07 117.898-18.91 17.77-13.621 35.402-31.25 52.449-48.309 47.133-47.141 95.852-95.883 156.453-71.27 42.539 17.27 78.258 61.316 112.797 103.906 41.652 51.352 84.723 104.453 139.312 109.391 49.988 4.531 97.777-23.207 143.988-50.039 40.27-23.391 81.91-47.57 125.5-51.039l.199 2.5c-43.02 3.418-84.418 27.461-124.449 50.699-43.129 25.039-87.621 50.871-134.32 50.871Z'/%3E%3C/clipPath%3E%3Cg clip-path='url(%23w)'%3E%3CclipPath id='x'%3E%3Cpath d='M1771.539 289.961c-3.699.008-7.41-.16-11.141-.492-55.648-5.039-99.047-58.559-141.027-110.32-34.34-42.34-69.859-86.129-111.801-103.16-59.059-23.988-107.191 24.16-153.742 70.723-17.109 17.109-34.797 34.809-52.699 48.52-37.25 28.539-76.578 34.848-120.25 19.289-38.738-13.801-77.098-43.141-114.207-71.508a2811 2811 0 0 0-8.57-6.543c-4.34-3.309-8.691-6.66-13.062-10.02-73.715-56.66-149.934-115.258-226.254-40.508-18.219 17.84-35.445 39.828-52.105 61.098-22.992 29.34-46.762 59.68-72.848 78.41-29.391 21.102-58.898 25.129-90.211 12.34-35.758-14.598-67.824-46.988-98.832-78.309-40.402-40.82-82.184-83.02-132-85.352-46.492-2.168-95.867 33.43-139.438 64.84-15.125 10.91-29.414 21.203-43.301 29.891-32.676 20.41-67.68 40.23-102.266 46.93-37.934 7.352-71.746-1.711-103.367-27.68l1.59-1.938c68.477 56.25 134.965 22.906 202.715-19.434 13.82-8.637 28.078-18.918 43.168-29.797 43.902-31.652 93.668-67.512 141.016-65.301 50.789 2.371 92.918 44.918 133.66 86.078 30.832 31.141 62.715 63.352 98 77.762 30.875 12.609 58.777 8.781 87.805-12.059 25.797-18.523 49.457-48.723 72.34-77.934 16.711-21.328 33.988-43.379 52.324-61.34 34.879-34.148 73.008-43.828 116.566-29.578 38.355 12.551 76.277 41.699 112.957 69.898 4.371 3.352 8.723 6.703 13.062 10.012 2.859 2.18 5.707 4.359 8.57 6.539 36.949 28.262 75.16 57.469 113.52 71.141 42.82 15.262 81.379 9.07 117.898-18.91 17.77-13.621 35.402-31.25 52.449-48.309 47.133-47.141 95.852-95.883 156.453-71.27 42.539 17.27 78.258 61.316 112.797 103.906 41.652 51.352 84.723 104.453 139.312 109.391 49.988 4.531 97.777-23.207 143.988-50.039 40.27-23.391 81.91-47.57 125.5-51.039l.199 2.5c-43.02 3.418-84.418 27.461-124.449 50.699-43.129 25.039-87.621 50.871-134.32 50.871'/%3E%3C/clipPath%3E%3Cg clip-path='url(%23x)'%3E%3Cpath d='M-15.582 11.191h2045.891V291.5H-15.582z' fill='%238b7fd4' style='fill-rule:nonzero'/%3E%3C/g%3E%3C/g%3E%3CclipPath id='y'%3E%3Cpath d='M1773.238 264.172c-5.297 0-10.609-.332-15.949-1.043-54-7.188-97.348-58.648-139.258-108.41-33.141-39.328-67.402-80.008-106.582-98.398-59.801-28.082-110.289 20.469-159.109 67.418-18.898 18.172-38.449 36.973-58.07 50.711-35.961 25.199-73.891 30.082-115.98 14.91-37.301-13.438-74.148-40.988-109.789-67.621q-5.641-4.215-11.281-8.418c-4.43-3.289-8.867-6.621-13.309-9.949-36.84-27.609-74.941-56.172-112.887-67.832-42.414-13.039-79.867-2.891-114.492 31.031-16.523 16.191-32.754 36.129-48.445 55.41-39.277 48.25-79.688 97.871-130.754 97.879-9.812 0-20.012-1.828-30.68-5.859-37.207-14.039-70.711-46.262-103.109-77.41-40.496-38.949-82.371-79.219-131.27-83.418-46.418-3.98-94 29.027-140.008 60.957-14.711 10.211-28.602 19.852-42.152 28.043-37.727 22.809-69.516 39.328-102.016 45.848-37.859 7.59-71.754-.238-103.633-23.93l1.492-2.012c68.914 51.23 135.281 18.801 202.863-22.047 13.48-8.152 27.344-17.77 42.02-27.961 44.211-30.68 94.328-65.461 141.648-61.391 49.777 4.281 91.977 44.859 132.785 84.109 32.219 30.98 65.535 63.02 102.262 76.871 28.875 10.898 56.902 6.078 85.68-14.719 25.816-18.672 49.77-48.09 72.93-76.543 15.738-19.328 32.012-39.328 48.637-55.609 78.812-77.219 155.992-19.359 230.629 36.582 4.441 3.328 8.871 6.648 13.301 9.949 3.758 2.789 7.527 5.602 11.289 8.418 35.488 26.523 72.18 53.953 109.141 67.273 41.258 14.867 78.449 10.09 113.699-14.602 19.449-13.641 38.93-32.359 57.762-50.48 49.438-47.531 100.547-96.691 161.91-67.879 39.68 18.629 74.117 59.52 107.43 99.059 41.609 49.402 84.629 100.469 137.68 107.539 50.98 6.781 100.859-21.488 149.098-48.828 39.922-22.629 81.191-46.02 123.383-49.98l.227 2.488c-41.648 3.91-82.688 27.172-122.367 49.66-43.602 24.711-88.539 50.184-134.723 50.184Z'/%3E%3C/clipPath%3E%3Cg clip-path='url(%23y)'%3E%3CclipPath id='z'%3E%3Cpath d='M1773.238 264.172c-5.297 0-10.609-.332-15.949-1.043-54-7.188-97.348-58.648-139.258-108.41-33.141-39.328-67.402-80.008-106.582-98.398-59.801-28.082-110.289 20.469-159.109 67.418-18.898 18.172-38.449 36.973-58.07 50.711-35.961 25.199-73.891 30.082-115.98 14.91-37.301-13.438-74.148-40.988-109.789-67.621q-5.641-4.215-11.281-8.418c-4.43-3.289-8.867-6.621-13.309-9.949-36.84-27.609-74.941-56.172-112.887-67.832-42.414-13.039-79.867-2.891-114.492 31.031-16.523 16.191-32.754 36.129-48.445 55.41-39.277 48.25-79.688 97.871-130.754 97.879-9.812 0-20.012-1.828-30.68-5.859-37.207-14.039-70.711-46.262-103.109-77.41-40.496-38.949-82.371-79.219-131.27-83.418-46.418-3.98-94 29.027-140.008 60.957-14.711 10.211-28.602 19.852-42.152 28.043-37.727 22.809-69.516 39.328-102.016 45.848-37.859 7.59-71.754-.238-103.633-23.93l1.492-2.012c68.914 51.23 135.281 18.801 202.863-22.047 13.48-8.152 27.344-17.77 42.02-27.961 44.211-30.68 94.328-65.461 141.648-61.391 49.777 4.281 91.977 44.859 132.785 84.109 32.219 30.98 65.535 63.02 102.262 76.871 28.875 10.898 56.902 6.078 85.68-14.719 25.816-18.672 49.77-48.09 72.93-76.543 15.738-19.328 32.012-39.328 48.637-55.609 78.812-77.219 155.992-19.359 230.629 36.582 4.441 3.328 8.871 6.648 13.301 9.949 3.758 2.789 7.527 5.602 11.289 8.418 35.488 26.523 72.18 53.953 109.141 67.273 41.258 14.867 78.449 10.09 113.699-14.602 19.449-13.641 38.93-32.359 57.762-50.48 49.438-47.531 100.547-96.691 161.91-67.879 39.68 18.629 74.117 59.52 107.43 99.059 41.609 49.402 84.629 100.469 137.68 107.539 50.98 6.781 100.859-21.488 149.098-48.828 39.922-22.629 81.191-46.02 123.383-49.98l.227 2.488c-41.648 3.91-82.688 27.172-122.367 49.66-43.602 24.711-88.539 50.184-134.723 50.184'/%3E%3C/clipPath%3E%3Cg clip-path='url(%23z)'%3E%3Cpath d='M-15.535-12.43h2045.863v279.859H-15.535z' fill='%238b7fd4' style='fill-rule:nonzero'/%3E%3C/g%3E%3C/g%3E%3CclipPath id='A'%3E%3Cpath d='M1773.789 235.84c-6.758 0-13.527-.531-20.309-1.68-52.301-8.832-95.051-56.699-136.402-102.988-34.617-38.762-70.418-78.844-111.559-95.75-56.828-23.383-107.051 22.027-155.609 65.938-16.898 15.281-32.852 29.711-49.191 41.531-27.391 19.82-53.629 27.898-79.23 27.898-54.309.012-105.738-36.379-159.188-74.188l-7.23-5.121c-4.191-2.961-8.379-5.941-12.57-8.91-37.359-26.57-75.984-54.039-114.066-64.871-42.969-12.23-79.645-2.34-115.402 31.121-16.23 15.191-32.176 33.52-47.598 51.25-39.828 45.789-80.832 92.918-132.191 92.93-8.207 0-16.672-1.211-25.445-3.809-40.168-11.922-76.121-43.953-110.887-74.93-40.105-35.73-81.578-72.684-129.246-78.191-46.316-5.352-93.809 25.941-139.738 56.211-13.945 9.188-27.121 17.867-40.027 25.348-67.445 39.09-133.75 70.223-203.395 22.422l1.414-2.062c68.445 46.973 134.004 16.152 200.727-22.52 12.844-7.449 25.988-16.109 39.906-25.277 44.145-29.09 94.18-62.062 141.398-56.602 48.453 5.602 90.227 42.809 130.625 78.809 34.563 30.793 70.301 62.633 109.938 74.391 27.824 8.262 55.039 2.672 83.199-17.09 25.27-17.738 48.941-44.949 71.836-71.277 15.465-17.773 31.449-36.152 47.777-51.434 19.242-18 38.664-29.129 59.387-34.008 18.5-4.359 37.605-3.609 58.41 2.309 38.492 10.949 77.301 38.551 114.828 65.242 4.18 2.98 8.371 5.949 12.562 8.91l7.238 5.117c39.738 28.113 77.281 54.672 115.891 66.891 43.27 13.699 81.281 7.152 119.621-20.59 16.219-11.738 32.129-26.121 48.969-41.348 49.141-44.434 99.949-90.383 158.25-66.41 41.66 17.137 77.66 57.438 112.469 96.41 41.062 45.957 83.52 93.5 134.941 102.188 51.891 8.762 103.848-19.219 154.109-46.27 39.789-21.43 80.93-43.578 122.09-47.648l.25 2.488c-40.66 4.02-81.578 26.051-121.16 47.359-44.109 23.75-89.539 48.211-135.391 48.211Z'/%3E%3C/clipPath%3E%3Cg clip-path='url(%23A)'%3E%3CclipPath id='B'%3E%3Cpath d='M1773.789 235.84c-6.758 0-13.527-.531-20.309-1.68-52.301-8.832-95.051-56.699-136.402-102.988-34.617-38.762-70.418-78.844-111.559-95.75-56.828-23.383-107.051 22.027-155.609 65.938-16.898 15.281-32.852 29.711-49.191 41.531-27.391 19.82-53.629 27.898-79.23 27.898-54.309.012-105.738-36.379-159.188-74.188l-7.23-5.121c-4.191-2.961-8.379-5.941-12.57-8.91-37.359-26.57-75.984-54.039-114.066-64.871-42.969-12.23-79.645-2.34-115.402 31.121-16.23 15.191-32.176 33.52-47.598 51.25-39.828 45.789-80.832 92.918-132.191 92.93-8.207 0-16.672-1.211-25.445-3.809-40.168-11.922-76.121-43.953-110.887-74.93-40.105-35.73-81.578-72.684-129.246-78.191-46.316-5.352-93.809 25.941-139.738 56.211-13.945 9.188-27.121 17.867-40.027 25.348-67.445 39.09-133.75 70.223-203.395 22.422l1.414-2.062c68.445 46.973 134.004 16.152 200.727-22.52 12.844-7.449 25.988-16.109 39.906-25.277 44.145-29.09 94.18-62.062 141.398-56.602 48.453 5.602 90.227 42.809 130.625 78.809 34.563 30.793 70.301 62.633 109.938 74.391 27.824 8.262 55.039 2.672 83.199-17.09 25.27-17.738 48.941-44.949 71.836-71.277 15.465-17.773 31.449-36.152 47.777-51.434 19.242-18 38.664-29.129 59.387-34.008 18.5-4.359 37.605-3.609 58.41 2.309 38.492 10.949 77.301 38.551 114.828 65.242 4.18 2.98 8.371 5.949 12.562 8.91l7.238 5.117c39.738 28.113 77.281 54.672 115.891 66.891 43.27 13.699 81.281 7.152 119.621-20.59 16.219-11.738 32.129-26.121 48.969-41.348 49.141-44.434 99.949-90.383 158.25-66.41 41.66 17.137 77.66 57.438 112.469 96.41 41.062 45.957 83.52 93.5 134.941 102.188 51.891 8.762 103.848-19.219 154.109-46.27 39.789-21.43 80.93-43.578 122.09-47.648l.25 2.488c-40.66 4.02-81.578 26.051-121.16 47.359-44.109 23.75-89.539 48.211-135.391 48.211'/%3E%3C/clipPath%3E%3Cg clip-path='url(%23B)'%3E%3Cpath d='M-15.496 5.469H2030.34v234.992H-15.496z' fill='%238b7fd4' style='fill-rule:nonzero'/%3E%3C/g%3E%3C/g%3E%3CclipPath id='C'%3E%3Cpath d='M1772.648 205.32c-6.957 0-13.918-.52-20.879-1.648-51.48-8.332-94.668-52.863-136.43-95.922-34.961-36.031-71.102-73.301-111.828-89.09-56.402-21.879-107.434 20.328-156.781 61.141-16.43 13.59-33.43 27.648-50.039 38.687-39.41 26.211-78.32 32.281-122.461 19.102-39.16-11.691-77.309-36.988-117.711-63.77l-4.668-3.09c-3.66-2.43-7.32-4.859-10.973-7.301-77.629-51.691-150.953-100.508-230.43-32.258-16.605 14.258-32.875 31.219-48.609 47.617-23.543 24.551-47.891 49.93-73.703 66.551-29.09 18.75-57.043 24.172-85.461 16.59-40.559-10.82-77.648-40.23-113.52-68.668-41.344-32.793-84.094-66.691-131.922-71.672-45.633-4.75-91.926 23.801-136.695 51.422-13.402 8.27-26.062 16.078-38.613 22.938-31.23 17.09-64.711 33.75-97.91 39.832-36.125 6.609-68.664.148-99.48-19.762l1.355-2.098c66.91 43.227 130.344 15.129 194.836-20.16 12.492-6.84 25.125-14.633 38.5-22.883 45.125-27.84 91.785-56.617 138.266-51.777 48.551 5.059 91.594 39.188 133.219 72.199 35.668 28.277 72.555 57.527 112.609 68.219 61.809 16.48 107.91-31.578 156.715-82.461 15.777-16.438 32.09-33.449 48.785-47.789 19.461-16.711 39-27.031 59.742-31.551 18.551-4.027 37.66-3.309 58.422 2.23 38.488 10.27 75.785 35.102 115.277 61.402 3.648 2.43 7.309 4.867 10.969 7.289l4.668 3.098c78.441 52 152.523 101.113 237.41 44.672 16.5-10.969 32.691-24.359 49.832-38.539 49.898-41.27 101.5-83.949 159.281-61.551 41.238 16 77.566 53.461 112.707 89.691 41.48 42.77 84.383 87 135.043 95.188 52.156 8.449 104.816-17.77 155.738-43.129 39.91-19.871 81.18-40.422 122.18-44.352l.238 2.492c-40.539 3.879-81.598 24.328-121.297 44.098-44.543 22.18-90.402 45.012-136.383 45.012Z'/%3E%3C/clipPath%3E%3Cg clip-path='url(%23C)'%3E%3CclipPath id='D'%3E%3Cpath d='M1772.648 205.32c-6.957 0-13.918-.52-20.879-1.648-51.48-8.332-94.668-52.863-136.43-95.922-34.961-36.031-71.102-73.301-111.828-89.09-56.402-21.879-107.434 20.328-156.781 61.141-16.43 13.59-33.43 27.648-50.039 38.687-39.41 26.211-78.32 32.281-122.461 19.102-39.16-11.691-77.309-36.988-117.711-63.77l-4.668-3.09c-3.66-2.43-7.32-4.859-10.973-7.301-77.629-51.691-150.953-100.508-230.43-32.258-16.605 14.258-32.875 31.219-48.609 47.617-23.543 24.551-47.891 49.93-73.703 66.551-29.09 18.75-57.043 24.172-85.461 16.59-40.559-10.82-77.648-40.23-113.52-68.668-41.344-32.793-84.094-66.691-131.922-71.672-45.633-4.75-91.926 23.801-136.695 51.422-13.402 8.27-26.062 16.078-38.613 22.938-31.23 17.09-64.711 33.75-97.91 39.832-36.125 6.609-68.664.148-99.48-19.762l1.355-2.098c66.91 43.227 130.344 15.129 194.836-20.16 12.492-6.84 25.125-14.633 38.5-22.883 45.125-27.84 91.785-56.617 138.266-51.777 48.551 5.059 91.594 39.188 133.219 72.199 35.668 28.277 72.555 57.527 112.609 68.219 61.809 16.48 107.91-31.578 156.715-82.461 15.777-16.438 32.09-33.449 48.785-47.789 19.461-16.711 39-27.031 59.742-31.551 18.551-4.027 37.66-3.309 58.422 2.23 38.488 10.27 75.785 35.102 115.277 61.402 3.648 2.43 7.309 4.867 10.969 7.289l4.668 3.098c78.441 52 152.523 101.113 237.41 44.672 16.5-10.969 32.691-24.359 49.832-38.539 49.898-41.27 101.5-83.949 159.281-61.551 41.238 16 77.566 53.461 112.707 89.691 41.48 42.77 84.383 87 135.043 95.188 52.156 8.449 104.816-17.77 155.738-43.129 39.91-19.871 81.18-40.422 122.18-44.352l.238 2.492c-40.539 3.879-81.598 24.328-121.297 44.098-44.543 22.18-90.402 45.012-136.383 45.012'/%3E%3C/clipPath%3E%3Cg clip-path='url(%23D)'%3E%3Cpath d='M-15.465-37.078h2045.793v246.727H-15.465z' fill='%238b7fd4' style='fill-rule:nonzero'/%3E%3C/g%3E%3C/g%3E%3CclipPath id='E'%3E%3Cpath d='M1771.48 173.23c-8.199 0-16.391-.66-24.559-2.109-49.332-8.723-91.793-48.25-132.852-86.48-36.84-34.289-74.93-69.75-117.73-82.719-54.57-16.531-104.871 20.789-153.5 56.867-18.668 13.859-37.98 28.18-56.98 38.922-25.23 14.258-49.52 20.168-73.281 20.168-55.418.012-107.93-32.187-162.566-65.68l-2.23-1.359q-5.009-3.078-10-6.148c-75.594-46.543-146.996-90.5-224.973-34.141-19.32 13.969-38.199 31.59-56.457 48.629-41.297 38.539-83.844 78.242-134.469 78.242-6.777 0-13.699-.711-20.785-2.23-41.883-9-81.234-35.793-119.293-61.703-45.898-31.25-93.363-63.559-144.973-64.09-49.672-.527-97.156 26.273-143.109 52.16-33.172 18.703-67.477 38.031-101.973 46.582-38.781 9.609-73.844 4.32-107.191-16.172l1.309-2.129c73.004 44.859 137.91 8.281 206.629-30.449 46.238-26.07 94.039-53.039 144.359-52.492 52.371.543 100.152 33.07 146.359 64.531 37.855 25.77 77.004 52.422 118.41 61.309 58.723 12.613 106.66-32.129 153.02-75.387 18.316-17.09 37.254-34.773 56.699-48.82 35.66-25.781 73.457-32.91 115.555-21.82 37.543 9.891 73.801 32.211 112.191 55.848 3.332 2.051 6.66 4.102 10 6.141l2.23 1.371c77.398 47.449 150.508 92.27 233.309 45.469 18.859-10.668 38.109-24.949 56.723-38.75 49.129-36.461 99.938-74.16 155.719-57.258 43.352 13.129 81.66 48.789 118.699 83.277 40.801 37.98 82.98 77.262 131.582 85.852 53.238 9.418 107.68-15.059 160.32-38.73 40.148-18.051 81.656-36.719 122.43-40.27l.219 2.488c-40.352 3.523-81.66 22.09-121.621 40.062-44.969 20.219-91.238 41.02-137.219 41.02Z'/%3E%3C/clipPath%3E%3Cg clip-path='url(%23E)'%3E%3CclipPath id='F'%3E%3Cpath d='M1771.48 173.23c-8.199 0-16.391-.66-24.559-2.109-49.332-8.723-91.793-48.25-132.852-86.48-36.84-34.289-74.93-69.75-117.73-82.719-54.57-16.531-104.871 20.789-153.5 56.867-18.668 13.859-37.98 28.18-56.98 38.922-25.23 14.258-49.52 20.168-73.281 20.168-55.418.012-107.93-32.187-162.566-65.68l-2.23-1.359q-5.009-3.078-10-6.148c-75.594-46.543-146.996-90.5-224.973-34.141-19.32 13.969-38.199 31.59-56.457 48.629-41.297 38.539-83.844 78.242-134.469 78.242-6.777 0-13.699-.711-20.785-2.23-41.883-9-81.234-35.793-119.293-61.703-45.898-31.25-93.363-63.559-144.973-64.09-49.672-.527-97.156 26.273-143.109 52.16-33.172 18.703-67.477 38.031-101.973 46.582-38.781 9.609-73.844 4.32-107.191-16.172l1.309-2.129c73.004 44.859 137.91 8.281 206.629-30.449 46.238-26.07 94.039-53.039 144.359-52.492 52.371.543 100.152 33.07 146.359 64.531 37.855 25.77 77.004 52.422 118.41 61.309 58.723 12.613 106.66-32.129 153.02-75.387 18.316-17.09 37.254-34.773 56.699-48.82 35.66-25.781 73.457-32.91 115.555-21.82 37.543 9.891 73.801 32.211 112.191 55.848 3.332 2.051 6.66 4.102 10 6.141l2.23 1.371c77.398 47.449 150.508 92.27 233.309 45.469 18.859-10.668 38.109-24.949 56.723-38.75 49.129-36.461 99.938-74.16 155.719-57.258 43.352 13.129 81.66 48.789 118.699 83.277 40.801 37.98 82.98 77.262 131.582 85.852 53.238 9.418 107.68-15.059 160.32-38.73 40.148-18.051 81.656-36.719 122.43-40.27l.219 2.488c-40.352 3.523-81.66 22.09-121.621 40.062-44.969 20.219-91.238 41.02-137.219 41.02'/%3E%3C/clipPath%3E%3Cg clip-path='url(%23F)'%3E%3Cpath d='M-15.441-45.809h2045.762v223.887H-15.441z' fill='%238b7fd4' style='fill-rule:nonzero'/%3E%3C/g%3E%3C/g%3E%3CclipPath id='G'%3E%3Cpath d='M1768.84 139.781c-8.141 0-16.281-.57-24.398-1.812-48.41-7.359-91.332-42.5-132.832-76.48-37.309-30.539-75.879-62.117-118.188-73.289-54.5-14.391-105.594 18.5-154.992 50.301-19.129 12.32-38.91 25.059-58.449 34.691-38.512 18.988-76.73 22.547-120.289 11.199-39.961-10.422-80.68-32.93-116.602-52.789l-5.621-3.113C960.739-13.999 888.262-54.128 809.02-4.199c-19.969 12.578-39.375 28.09-58.141 43.098-23.973 19.172-48.762 38.98-74.383 52.273-28.789 14.93-55.84 19.969-82.691 15.43-42.793-7.242-83.699-30.551-123.266-53.09-47.227-26.91-96.066-54.742-147.898-54.863h-.316c-46.621 0-91.781 22.801-135.461 44.852-32.309 16.301-65.719 33.172-99.141 40.359-37.57 8.09-71.309 2.879-103.148-15.93l1.273-2.16c69.715 41.199 132.945 9.281 199.891-24.508C229.677 19.09 275.11-3.851 322.321-3.851h.328c52.492.121 101.621 28.113 149.129 55.18 39.375 22.441 80.09 45.641 122.445 52.801 58.648 9.93 105.492-27.527 155.094-67.18 18.82-15.051 38.285-30.609 58.371-43.27 80.492-50.719 153.598-10.238 230.992 32.621l5.621 3.109c77.289 42.738 150.289 83.102 234.578 41.539 19.402-9.57 39.133-22.27 58.199-34.551 49.863-32.098 101.41-65.289 156.98-50.617 42.832 11.309 81.621 43.059 119.133 73.77 41.25 33.77 83.887 68.687 131.629 75.949 53.668 8.172 108.352-13.398 161.23-34.25 40.641-16.031 82.668-32.609 124.07-35.648l.18 2.5c-41.02 3.008-82.871 19.508-123.34 35.469-45.23 17.852-91.781 36.211-138.121 36.211Z'/%3E%3C/clipPath%3E%3Cg clip-path='url(%23G)'%3E%3CclipPath id='H'%3E%3Cpath d='M1768.84 139.781c-8.141 0-16.281-.57-24.398-1.812-48.41-7.359-91.332-42.5-132.832-76.48-37.309-30.539-75.879-62.117-118.188-73.289-54.5-14.391-105.594 18.5-154.992 50.301-19.129 12.32-38.91 25.059-58.449 34.691-38.512 18.988-76.73 22.547-120.289 11.199-39.961-10.422-80.68-32.93-116.602-52.789l-5.621-3.113C960.739-13.999 888.262-54.128 809.02-4.199c-19.969 12.578-39.375 28.09-58.141 43.098-23.973 19.172-48.762 38.98-74.383 52.273-28.789 14.93-55.84 19.969-82.691 15.43-42.793-7.242-83.699-30.551-123.266-53.09-47.227-26.91-96.066-54.742-147.898-54.863h-.316c-46.621 0-91.781 22.801-135.461 44.852-32.309 16.301-65.719 33.172-99.141 40.359-37.57 8.09-71.309 2.879-103.148-15.93l1.273-2.16c69.715 41.199 132.945 9.281 199.891-24.508C229.677 19.09 275.11-3.851 322.321-3.851h.328c52.492.121 101.621 28.113 149.129 55.18 39.375 22.441 80.09 45.641 122.445 52.801 58.648 9.93 105.492-27.527 155.094-67.18 18.82-15.051 38.285-30.609 58.371-43.27 80.492-50.719 153.598-10.238 230.992 32.621l5.621 3.109c77.289 42.738 150.289 83.102 234.578 41.539 19.402-9.57 39.133-22.27 58.199-34.551 49.863-32.098 101.41-65.289 156.98-50.617 42.832 11.309 81.621 43.059 119.133 73.77 41.25 33.77 83.887 68.687 131.629 75.949 53.668 8.172 108.352-13.398 161.23-34.25 40.641-16.031 82.668-32.609 124.07-35.648l.18 2.5c-41.02 3.008-82.871 19.508-123.34 35.469-45.23 17.852-91.781 36.211-138.121 36.211'/%3E%3C/clipPath%3E%3Cg clip-path='url(%23H)'%3E%3Cpath d='M-15.426-57.039h2045.727v200.711H-15.426z' fill='%238b7fd4' style='fill-rule:nonzero'/%3E%3C/g%3E%3C/g%3E%3CclipPath id='I'%3E%3Cpath d='M1764.059 104.82c-4.879 0-9.75-.172-14.629-.52-50.418-3.602-96.141-35.289-140.371-65.941-36.457-25.258-74.16-51.391-114.219-61.598-56.75-14.453-110.551 14.5-162.57 42.508-18.531 9.969-37.699 20.289-56.699 28.469-38.68 16.66-76.891 20.051-120.25 10.672-38.691-8.371-77.582-26.359-117.332-45.621-80.266-38.898-156.078-75.629-243.051-25.367-16.352 9.449-32.207 19.75-47.543 29.699-56.301 36.551-109.48 71.078-176.703 58.078-38.574-7.461-76.402-24.859-112.984-41.68-50.746-23.34-103.211-47.461-157.887-44.961-41.277 1.902-81.734 19.863-120.859 37.223-31.234 13.867-63.531 28.207-95.687 33.988-36.137 6.5-68.418 1.301-98.68-15.891l1.238-2.18c66.285 37.652 127.406 10.52 192.113-18.199 39.336-17.461 80.012-35.52 121.758-37.43 55.273-2.539 108.031 21.719 159.047 45.18 36.449 16.762 74.137 34.09 112.414 41.488 66.23 12.812 119.004-21.449 174.871-57.707 15.359-9.98 31.246-20.293 47.652-29.77 39.512-22.84 78.773-29.59 123.551-21.262 38.809 7.219 76.543 24.59 121.84 46.539 87.223 42.262 155.172 69.512 235.5 34.91 18.902-8.148 38.023-18.43 56.5-28.391 52.453-28.23 106.684-57.418 164.371-42.719 40.512 10.32 78.391 36.582 115.039 61.969 43.941 30.453 89.391 61.941 139.113 65.5 51.598 3.691 103.34-13.41 153.379-29.949 41.449-13.699 84.32-27.871 127.16-30.32l.141 2.5c-42.512 2.43-85.211 16.551-126.52 30.199-45.562 15.051-92.523 30.582-139.703 30.582Z'/%3E%3C/clipPath%3E%3Cg clip-path='url(%23I)'%3E%3CclipPath id='J'%3E%3Cpath d='M1764.059 104.82c-4.879 0-9.75-.172-14.629-.52-50.418-3.602-96.141-35.289-140.371-65.941-36.457-25.258-74.16-51.391-114.219-61.598-56.75-14.453-110.551 14.5-162.57 42.508-18.531 9.969-37.699 20.289-56.699 28.469-38.68 16.66-76.891 20.051-120.25 10.672-38.691-8.371-77.582-26.359-117.332-45.621-80.266-38.898-156.078-75.629-243.051-25.367-16.352 9.449-32.207 19.75-47.543 29.699-56.301 36.551-109.48 71.078-176.703 58.078-38.574-7.461-76.402-24.859-112.984-41.68-50.746-23.34-103.211-47.461-157.887-44.961-41.277 1.902-81.734 19.863-120.859 37.223-31.234 13.867-63.531 28.207-95.687 33.988-36.137 6.5-68.418 1.301-98.68-15.891l1.238-2.18c66.285 37.652 127.406 10.52 192.113-18.199 39.336-17.461 80.012-35.52 121.758-37.43 55.273-2.539 108.031 21.719 159.047 45.18 36.449 16.762 74.137 34.09 112.414 41.488 66.23 12.812 119.004-21.449 174.871-57.707 15.359-9.98 31.246-20.293 47.652-29.77 39.512-22.84 78.773-29.59 123.551-21.262 38.809 7.219 76.543 24.59 121.84 46.539 87.223 42.262 155.172 69.512 235.5 34.91 18.902-8.148 38.023-18.43 56.5-28.391 52.453-28.23 106.684-57.418 164.371-42.719 40.512 10.32 78.391 36.582 115.039 61.969 43.941 30.453 89.391 61.941 139.113 65.5 51.598 3.691 103.34-13.41 153.379-29.949 41.449-13.699 84.32-27.871 127.16-30.32l.141 2.5c-42.512 2.43-85.211 16.551-126.52 30.199-45.562 15.051-92.523 30.582-139.703 30.582'/%3E%3C/clipPath%3E%3Cg clip-path='url(%23J)'%3E%3Cpath d='M-15.406-62.84h2045.688V105.5H-15.406z' fill='%238b7fd4' style='fill-rule:nonzero'/%3E%3C/g%3E%3C/g%3E%3CclipPath id='K'%3E%3Cpath d='M1760.219 70.27q-6.807.002-13.598-.371c-49.242-2.668-95.141-29.027-139.531-54.52-37.109-21.32-75.48-43.359-115.539-51.379-57.012-11.422-111.691 12.531-164.57 35.699-18.941 8.289-38.531 16.871-58.012 23.742-82.777 29.23-155.988 4.047-236.289-29.25C945.828-41.829 872.84-66.27 790.395-27.2c-15.961 7.57-31.547 15.699-46.621 23.559-51.234 26.719-100 52.152-156.215 52.16-8.262 0-16.68-.551-25.297-1.73-40.062-5.461-79.617-19.43-117.867-32.938C393.012-4.301 339.879-23.071 285.348-21.11c-38.48 1.391-76.609 15.711-113.488 29.559C141.567 19.828 110.239 31.59 79.2 35.91c-34.883 4.852-65.82-.41-94.586-16.082l1.199-2.188C48.86 51.968 108.18 29.699 170.981 6.109 208.047-7.809 246.372-22.2 285.258-23.61c55.004-1.98 108.367 16.871 159.973 35.098 38.129 13.473 77.559 27.391 117.367 32.82 66.457 9.07 121.617-19.707 180.016-50.168 15.098-7.871 30.707-16.012 46.711-23.602C872.7-68.97 946.204-44.38 1033.63-8.122c79.82 33.102 152.562 58.141 234.512 29.211 19.391-6.852 38.93-15.41 57.828-23.691 53.242-23.309 108.312-47.418 166.07-35.848 40.461 8.098 79.02 30.238 116.301 51.66 44.129 25.34 89.77 51.559 138.41 54.188 51.539 2.812 103.289-11.227 153.34-24.797 42.43-11.512 86.309-23.402 130.07-25.113l.102 2.492c-43.48 1.711-87.223 13.559-129.512 25.031-45.859 12.438-93.148 25.25-140.531 25.258Z'/%3E%3C/clipPath%3E%3Cg clip-path='url(%23K)'%3E%3CclipPath id='L'%3E%3Cpath d='M1760.219 70.27q-6.807.002-13.598-.371c-49.242-2.668-95.141-29.027-139.531-54.52-37.109-21.32-75.48-43.359-115.539-51.379-57.012-11.422-111.691 12.531-164.57 35.699-18.941 8.289-38.531 16.871-58.012 23.742-82.777 29.23-155.988 4.047-236.289-29.25C945.828-41.829 872.84-66.27 790.395-27.2c-15.961 7.57-31.547 15.699-46.621 23.559-51.234 26.719-100 52.152-156.215 52.16-8.262 0-16.68-.551-25.297-1.73-40.062-5.461-79.617-19.43-117.867-32.938C393.012-4.301 339.879-23.071 285.348-21.11c-38.48 1.391-76.609 15.711-113.488 29.559C141.567 19.828 110.239 31.59 79.2 35.91c-34.883 4.852-65.82-.41-94.586-16.082l1.199-2.188C48.86 51.968 108.18 29.699 170.981 6.109 208.047-7.809 246.372-22.2 285.258-23.61c55.004-1.98 108.367 16.871 159.973 35.098 38.129 13.473 77.559 27.391 117.367 32.82 66.457 9.07 121.617-19.707 180.016-50.168 15.098-7.871 30.707-16.012 46.711-23.602C872.7-68.97 946.204-44.38 1033.63-8.122c79.82 33.102 152.562 58.141 234.512 29.211 19.391-6.852 38.93-15.41 57.828-23.691 53.242-23.309 108.312-47.418 166.07-35.848 40.461 8.098 79.02 30.238 116.301 51.66 44.129 25.34 89.77 51.559 138.41 54.188 51.539 2.812 103.289-11.227 153.34-24.797 42.43-11.512 86.309-23.402 130.07-25.113l.102 2.492c-43.48 1.711-87.223 13.559-129.512 25.031-45.859 12.438-93.148 25.25-140.531 25.258'/%3E%3C/clipPath%3E%3Cg clip-path='url(%23L)'%3E%3Cpath d='M-15.387-68.969h2045.648V70.269H-15.387z' fill='%238b7fd4' style='fill-rule:nonzero'/%3E%3C/g%3E%3C/g%3E%3CclipPath id='M'%3E%3Cpath d='M1755.609 35.719q-5.907 0-11.801-.207c-48.059-1.773-93.988-22.812-138.41-43.172-37.84-17.328-76.957-35.262-117.129-41.121-57.348-8.359-113.008 10.652-166.848 29.02-19.273 6.582-39.203 13.383-59.043 18.902-25.32 7.039-50.039 9.98-74.188 9.98-56.562 0-110-16.141-160.812-33.543-79.242-27.129-157.344-48.879-241.527-17.406-15.156 5.656-30.117 11.688-44.582 17.508-55.34 22.289-107.93 43.469-166.871 43.469-6.711 0-13.5-.27-20.387-.848-41.312-3.473-82.457-14.129-122.242-24.441-51.828-13.43-105.418-27.328-159.605-25.281-35.051 1.332-70.32 11.961-104.434 22.242-59.758 18-121.555 36.621-183.09 4.969l1.145-2.219C46.422 24.762 107.726 6.29 167.008-11.577c34.266-10.32 69.691-21 105.062-22.332 54.551-2.051 108.324 11.871 160.324 25.352 39.688 10.277 80.727 20.91 121.824 24.367 66.809 5.613 124.758-17.73 186.117-42.438 14.48-5.84 29.453-11.871 44.641-17.551 84.961-31.75 163.527-9.891 243.215 17.398 72.117 24.691 149.559 46.852 233.52 23.512 19.77-5.5 39.66-12.289 58.898-18.852 54.121-18.48 110.082-37.578 168.02-29.129 40.52 5.91 79.82 23.91 117.812 41.32 44.199 20.25 89.898 41.191 137.457 42.941 51.133 1.887 102.59-9.082 152.363-19.684 43.719-9.309 88.938-18.938 133.93-19.898l.047 2.5c-44.75.949-89.848 10.559-133.457 19.852-46.109 9.82-93.66 19.938-141.172 19.938'/%3E%3C/clipPath%3E%3Cg clip-path='url(%23M)'%3E%3CclipPath id='N'%3E%3Cpath d='M1755.609 35.719q-5.907 0-11.801-.207c-48.059-1.773-93.988-22.812-138.41-43.172-37.84-17.328-76.957-35.262-117.129-41.121-57.348-8.359-113.008 10.652-166.848 29.02-19.273 6.582-39.203 13.383-59.043 18.902-25.32 7.039-50.039 9.98-74.188 9.98-56.562 0-110-16.141-160.812-33.543-79.242-27.129-157.344-48.879-241.527-17.406-15.156 5.656-30.117 11.688-44.582 17.508-55.34 22.289-107.93 43.469-166.871 43.469-6.711 0-13.5-.27-20.387-.848-41.312-3.473-82.457-14.129-122.242-24.441-51.828-13.43-105.418-27.328-159.605-25.281-35.051 1.332-70.32 11.961-104.434 22.242-59.758 18-121.555 36.621-183.09 4.969l1.145-2.219C46.422 24.762 107.726 6.29 167.008-11.577c34.266-10.32 69.691-21 105.062-22.332 54.551-2.051 108.324 11.871 160.324 25.352 39.688 10.277 80.727 20.91 121.824 24.367 66.809 5.613 124.758-17.73 186.117-42.438 14.48-5.84 29.453-11.871 44.641-17.551 84.961-31.75 163.527-9.891 243.215 17.398 72.117 24.691 149.559 46.852 233.52 23.512 19.77-5.5 39.66-12.289 58.898-18.852 54.121-18.48 110.082-37.578 168.02-29.129 40.52 5.91 79.82 23.91 117.812 41.32 44.199 20.25 89.898 41.191 137.457 42.941 51.133 1.887 102.59-9.082 152.363-19.684 43.719-9.309 88.938-18.938 133.93-19.898l.047 2.5c-44.75.949-89.848 10.559-133.457 19.852-46.109 9.82-93.66 19.938-141.172 19.938'/%3E%3C/clipPath%3E%3Cg clip-path='url(%23N)'%3E%3Cpath d='M-15.359-75.93h2045.598V35.718H-15.359z' fill='%238b7fd4' style='fill-rule:nonzero'/%3E%3C/g%3E%3C/g%3E%3CclipPath id='O'%3E%3Cpath d='M1749.961 1.621c-2.949 0-5.902-.031-8.84-.09-46.883-.961-92.672-16.902-136.961-32.312-38.648-13.457-78.609-27.367-119.031-31.199-57.77-5.461-114.539 8.832-169.438 22.641-19.473 4.91-39.613 9.969-59.652 14.141-24.98 5.199-49.578 7.398-73.711 7.398-55.906 0-109.418-11.789-160.02-25.449-88.453-23.879-163.258-35.328-240.809-13.57-13.859 3.891-27.688 7.98-41.062 11.941-64.879 19.199-126.164 37.32-194.113 34.707-43.07-1.656-86.293-9.156-128.09-16.406C367.023-35.46 314.07-44.639 261.156-43.1c-32.16.941-64.879 8.41-96.516 15.633-59.121 13.488-120.258 27.43-179.961-.781l1.066-2.262c58.922 27.84 119.629 13.992 178.336.602 31.758-7.25 64.594-14.738 97-15.691 53.168-1.559 106.246 7.652 157.578 16.562 41.719 7.238 84.855 14.719 127.758 16.367 67.543 2.602 128.633-15.469 193.312-34.609 13.379-3.957 27.219-8.047 41.094-11.938 78.098-21.922 153.281-10.43 242.137 13.559 72.148 19.469 150.25 35.141 232.57 18.012 19.988-4.152 40.098-9.223 59.547-14.113 55.113-13.867 112.094-28.207 170.281-22.707 40.719 3.859 80.832 17.82 119.629 31.32 44.09 15.348 89.691 31.227 136.184 32.18 50.207 1.02 100.898-7.012 149.918-14.77 45.469-7.203 92.48-14.641 139.121-14.891l.008 2.5c-46.449.25-93.367 7.668-138.738 14.859-46.262 7.32-94.012 14.891-141.52 14.891Z'/%3E%3C/clipPath%3E%3Cg clip-path='url(%23O)'%3E%3CclipPath id='P'%3E%3Cpath d='M1749.961 1.621c-2.949 0-5.902-.031-8.84-.09-46.883-.961-92.672-16.902-136.961-32.312-38.648-13.457-78.609-27.367-119.031-31.199-57.77-5.461-114.539 8.832-169.438 22.641-19.473 4.91-39.613 9.969-59.652 14.141-24.98 5.199-49.578 7.398-73.711 7.398-55.906 0-109.418-11.789-160.02-25.449-88.453-23.879-163.258-35.328-240.809-13.57-13.859 3.891-27.688 7.98-41.062 11.941-64.879 19.199-126.164 37.32-194.113 34.707-43.07-1.656-86.293-9.156-128.09-16.406C367.023-35.46 314.07-44.639 261.156-43.1c-32.16.941-64.879 8.41-96.516 15.633-59.121 13.488-120.258 27.43-179.961-.781l1.066-2.262c58.922 27.84 119.629 13.992 178.336.602 31.758-7.25 64.594-14.738 97-15.691 53.168-1.559 106.246 7.652 157.578 16.562 41.719 7.238 84.855 14.719 127.758 16.367 67.543 2.602 128.633-15.469 193.312-34.609 13.379-3.957 27.219-8.047 41.094-11.938 78.098-21.922 153.281-10.43 242.137 13.559 72.148 19.469 150.25 35.141 232.57 18.012 19.988-4.152 40.098-9.223 59.547-14.113 55.113-13.867 112.094-28.207 170.281-22.707 40.719 3.859 80.832 17.82 119.629 31.32 44.09 15.348 89.691 31.227 136.184 32.18 50.207 1.02 100.898-7.012 149.918-14.77 45.469-7.203 92.48-14.641 139.121-14.891l.008 2.5c-46.449.25-93.367 7.668-138.738 14.859-46.262 7.32-94.012 14.891-141.52 14.891'/%3E%3C/clipPath%3E%3Cg clip-path='url(%23P)'%3E%3Cpath d='M-15.32-81.141h2045.539V1.621H-15.32z' fill='%238b7fd4' style='fill-rule:nonzero'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");background-repeat:no-repeat;background-position:bottom center;background-size:cover;opacity:var(--zn-page-header-wave-opacity,0.04);pointer-events:none}:host-context([t=aura]) .page__header .header.header--has-navigation::before,:host-context(.theme-aura) .page__header .header.header--has-navigation::before{margin-bottom:-40px}.header{display:flex;flex-direction:column;position:relative;margin:0;padding:calc(var(--zn-base-px) * 3) var(--zn-base-gap) calc(var(--zn-base-px) * 3 - var(--zn-base-gap)) var(--zn-base-gap)}.header.header--has-navigation{padding:calc(var(--zn-base-px) * 3) var(--zn-base-gap)}.header .content{display:flex;flex-wrap:wrap;position:relative;width:100%;max-width:100%;height:-moz-fit-content;height:fit-content;gap:var(--zn-base-gap);margin:0 auto;padding:0;box-sizing:border-box}.header--has-navigation .content{min-height:36px}.header .caption{flex-grow:1;display:flex;align-items:flex-start;justify-content:space-between;gap:var(--zn-spacing-x-small);max-width:100%;min-width:0;min-height:36px}.header .caption a{display:flex;align-items:center;color:inherit;text-decoration:none}.header__left{display:flex;justify-content:flex-start;flex-direction:column;gap:var(--zn-spacing-2x-small);min-height:36px;flex-shrink:1;min-width:0;max-width:100%}.header__right{flex-grow:1;flex-shrink:0}.header__caption{font-weight:var(--zn-text-h1-font-weight);font-size:var(--zn-text-h1-font-size);text-transform:var(--zn-text-h1-transform,none);letter-spacing:var(--zn-text-h1-letter-spacing,normal);color:rgba(var(--zn-text-panel-title),100%);line-height:var(--zn-spacing-medium);margin:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;display:flex;gap:var(--zn-spacing-2x-small);align-items:center;text-wrap:auto;min-height:36px}.header--has-description .header__caption{min-height:0}.header__description{font-family:var(--zn-font-sans);font-size:var(--zn-text-subheading-font-size);font-weight:var(--zn-text-subheading-font-weight);line-height:var(--zn-text-subheading-line-height);color:var(--zn-text-subheading-color);text-transform:var(--zn-text-subheading-transform);letter-spacing:var(--zn-text-subheading-letter-spacing,normal);display:block;overflow-wrap:anywhere}.header .breadcrumb{display:inline-flex;align-items:center;gap:var(--zn-spacing-2x-small);font:inherit;color:inherit}.header .breadcrumb::slotted(a){font:inherit;color:inherit;text-decoration:inherit}.header .breadcrumb::slotted(a:hover){color:rgb(var(--zn-primary))}.header .breadcrumb::slotted([data-breadcrumb-separator]){color:rgb(var(--zn-text-muted))}.header .breadcrumb__separator{color:rgb(var(--zn-text-muted))}.header slot{display:flex;align-items:center;flex-wrap:wrap;gap:var(--zn-spacing-x-small);word-break:break-word}.header slot[name=actions]{justify-content:end;flex-wrap:nowrap;min-height:36px}.header slot[name=actions]::slotted(zn-button-menu){flex-grow:1;flex-shrink:1}.caption__back{display:flex;justify-content:center;align-items:center;color:inherit}.alt-overlay{display:none}.alt-overlay--visible{display:flex}:host(.alt-pressed) .alt-overlay:empty{display:none !important}:host(.alt-pressed) .alt-overlay{display:flex}.alt-overlay{gap:10px;align-items:flex-end;position:absolute;left:0;top:0;padding:6px 15px;background:rgba(var(--zn-panel),0.95);z-index:10}.alt-overlay a{display:flex}.alt-overlay zn-icon:hover{color:rgb(var(--zn-primary));cursor:pointer}.page{display:flex;flex-direction:column;position:relative;height:100%;min-height:0;max-height:100%;width:100%;max-width:100%;overflow:auto;box-sizing:border-box;padding:0}.page__tabs{flex-grow:1;display:flex;flex-direction:column;min-height:0;width:100%;overflow:visible;box-sizing:border-box;padding:0 var(--zn-base-gap) var(--zn-base-gap);background-color:rgb(var(--zn-page-content-background,var(--zn-body)));background-image:var(--zn-page-texture);background-repeat:repeat;background-position:center top;background-size:var(--zn-page-texture-size)}.page__tabs .page__content{display:flex;flex-direction:column;flex-grow:1;min-height:0;max-width:100%;width:100%;overflow:visible;box-sizing:border-box}.page__tabs #content ::slotted(zn-tab){display:block !important}:host([flush]) .page__tabs,:host([flush]) .page__tabs .page__content#content{padding:0}zn-navbar::part(navbar){height:40px;min-height:40px;max-height:40px;padding-left:var(--zn-base-gap);margin:0}zn-navbar::part(navbar-item){height:40px;box-sizing:border-box;font-size:var(--zn-font-size-medium);line-height:16px}:host .page__header{padding-inline:0}:host .header{padding-inline:calc(var(--zn-gutter,0) + var(--zn-base-gap,0))}:host([modal]) .header{padding-inline-end:calc(var(--zn-base-gap,0) + var(--zn-page-closer-size) + var(--zn-page-closer-gap))}:host zn-navbar::part(navbar){padding-inline:calc(var(--zn-gutter,0) + var(--zn-base-gap,0))}:host .page__tabs{padding:0}:host .page__tabs #content.page__content{padding:0 var(--zn-gutter,0)}@container (max-width:600px){.header--has-breadcrumb .header__caption{align-items:flex-start;flex-direction:column;gap:var(--zn-spacing-3x-small)}.header--has-breadcrumb .breadcrumb{color:rgb(var(--zn-text-muted));font-size:var(--zn-font-size-small);font-weight:var(--zn-font-weight-normal);line-height:var(--zn-line-height-dense)}.header--has-breadcrumb .breadcrumb__separator{display:none}}`;var ar=class ar extends ln{constructor(){super(...arguments);this.pageSlotController=new Y(this,"breadcrumb","actions","caption","description");this.modal=!1;this.nested=!1;this.primary=!1;this.scrolled=!1;this.tabDefinitions=[];this.hasExpandingActions=!1;this.actionObserver=null;this.tabObserver=null;this.pageHistoryKey=null;this.handleAltPress=()=>{this.classList.toggle("alt-pressed",!0)};this.handleAltUp=()=>{this.classList.toggle("alt-pressed",!1)};this.handleBreadcrumbSlotChange=t=>{let n=t.target.assignedElements(),a=n.filter(s=>s.tagName==="A");n.forEach(s=>{if(!s.hasAttribute("data-breadcrumb-separator"))return;let l=s.previousElementSibling;l?.tagName==="A"&&a.indexOf(l)<a.length-1||s.remove()}),a.forEach((s,l)=>{if(l===a.length-1||s.nextElementSibling?.hasAttribute("data-breadcrumb-separator"))return;let h=document.createElement("zn-icon");h.setAttribute("src","arrow-right@lu"),h.setAttribute("size","16"),h.setAttribute("slot","breadcrumb"),h.setAttribute("data-breadcrumb-separator",""),s.after(h)})};this._registerTabs=()=>{this.registerPageNavigationTabs()};this.handleContentTabClick=t=>{let r=t.composedPath().find(a=>a instanceof HTMLElement&&a.hasAttribute("tab")&&a.closest(zs)===this);if(!r||r.hasAttribute("disabled"))return;let n=this.tabDefinitions.find(a=>a.id===r.getAttribute("tab"));n&&(t.preventDefault(),this.activateTabDefinition(n,!0,!0))}}async connectedCallback(){let t=super.connectedCallback();window.addEventListener("alt-press",this.handleAltPress),window.addEventListener("alt-up",this.handleAltUp),this.addEventListener("click",this.handleContentTabClick),this.prepareTabs(),this.refreshExpandingActionsState(),this.tabObserver=new MutationObserver(r=>{r.some(n=>n.type==="childList")&&this.prepareTabs()}),this.tabObserver.observe(this,{childList:!0}),this.actionObserver=new MutationObserver(r=>{r.some(n=>n.type==="childList")&&(this.refreshExpandingActionsState(),this.syncExpandingActionsToNavbar())}),this.actionObserver.observe(this,{childList:!0,subtree:!0}),await t}disconnectedCallback(){super.disconnectedCallback(),window.removeEventListener("alt-press",this.handleAltPress),window.removeEventListener("alt-up",this.handleAltUp),this.removeEventListener("click",this.handleContentTabClick),this.tabObserver?.disconnect(),this.tabObserver=null,this.actionObserver?.disconnect(),this.actionObserver=null}firstUpdated(t){super.firstUpdated(t),this.registerPagePanels(),this.syncExpandingActionsToNavbar(),setTimeout(()=>this.activateInitialPageTab(),20)}getOwnExpandingActions(){return Array.from(this.querySelectorAll("zn-expanding-action")).filter(t=>t.closest("zn-page")===this)}getNavbar(){return this.shadowRoot?.querySelector("zn-navbar")||null}refreshExpandingActionsState(){let t=this.getNavbar(),r=!!(t?.querySelector("zn-expanding-action")||t?.shadowRoot?.querySelector("zn-expanding-action")),n=this.getOwnExpandingActions().length>0||r;this.hasExpandingActions!==n&&(this.hasExpandingActions=n)}syncExpandingActionsToNavbar(){let t=this.getNavbar();t&&(this.getOwnExpandingActions().forEach(r=>t.addExpandingAction(r)),this.refreshExpandingActionsState())}prepareTabs(){let t=[],r=new Set;Array.from(this.children).filter(a=>a.tagName==="ZN-TAB").forEach((a,s)=>{let l=a.getAttribute("caption")||"Tab",d=a.getAttribute("id"),h=this.uniqueId(d!==null?d:this.captionToId(l),r),m=this.parsePriority(a.getAttribute("priority")),f=a.getAttribute("uri"),b=f?null:`page-tab-${s}`,g=a.hasAttribute("selected");a.id=h,f||(a.slot=b),t.push({id:h,caption:l,priority:m,sourceIndex:s,uri:f,slotName:b,selected:g})}),this.tabDefinitions=t.sort((a,s)=>this.compareTabs(a,s))}parsePriority(t){if(t===null||t.trim()==="")return null;let r=Number(t);return Number.isFinite(r)?r:null}compareTabs(t,r){return t.id===""&&r.id!==""?-1:t.id!==""&&r.id===""?1:t.priority!==null&&r.priority!==null&&t.priority!==r.priority?t.priority-r.priority:t.priority!==null&&r.priority===null?-1:t.priority===null&&r.priority!==null?1:t.sourceIndex-r.sourceIndex}captionToId(t){return t.trim().toLowerCase()==="overview"?"":t.trim().toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,"")||"tab"}uniqueId(t,r){let n=t,a=2;for(;r.has(n);)n=t===""?`tab-${a}`:`${t}-${a}`,a+=1;return r.add(n),n}handlePageScroll(t){let r=t.currentTarget.scrollTop>24;this.scrolled!==r&&(this.scrolled=r)}updated(t){super.updated(t),t.has("tabDefinitions")&&this.registerPagePanels(),(t.has("tabDefinitions")||t.has("hasExpandingActions"))&&this.syncExpandingActionsToNavbar()}handleNavigationSelect(t){let r=t.detail.item;if(this.getNavigationItemPage(r)!==this)return;let n=r.getAttribute("tab-uri"),a=r.getAttribute("tab");if(n){this.clickTab(r,!1,!0),this.syncNavigationActive(r);return}a!==null&&this.activateTab(a,!0,!0)}getNavigationItemPage(t){let r=t;for(;r;){if(r instanceof ar)return r;let n=r.getRootNode();if(!(n instanceof ShadowRoot))return t.closest("zn-page");r=n.host}return null}activateTab(t,r,n=!1){this.setActiveTab(t,r,!1,null,n);let a=this.shadowRoot?.querySelector(`zn-navbar li[tab="${CSS.escape(t)}"]`);a&&this.syncNavigationActive(a)}activateInitialPageTab(){let t=this.getStoredTab();if(t!==null){let s=this.tabDefinitions.find(l=>l.id===t||l.uri===t);if(s){this.activateTabDefinition(s);return}}let r=this.tabDefinitions.find(s=>s.selected);if(r){this.activateTabDefinition(r);return}let n=this.shadowRoot?.querySelector("#content > div[selected]"),a=this.tabDefinitions[0];!n&&a&&this.activateTab(a.id,!1)}getTabStoreKey(){return this.getPageHistoryKey()}activateDefaultTab(){let t=this.tabDefinitions.find(r=>r.selected)??this.tabDefinitions[0];t&&this.activateTabDefinition(t,!0)}getPageHistoryKey(){if(this.pageHistoryKey!==null)return this.pageHistoryKey;let t=[this],r=this.parentElement?.closest("zn-page")??null;for(;r;)t.unshift(r),r=r.parentElement?.closest("zn-page")??null;return this.pageHistoryKey=t.map(n=>n.id||n.getAttribute("caption")||"page").join("/"),this.pageHistoryKey}activateTabDefinition(t,r=!1,n=!1){if(t.uri){let a=this.findNavItemForUri(t.uri);if(a){this.clickTab(a,!1,n),this.syncNavigationActive(a);return}}this.activateTab(t.id,r,n)}findNavItemForUri(t){let r=this.shadowRoot?.querySelectorAll("zn-navbar li[tab-uri]")??[];for(let n of Array.from(r))if(n.getAttribute("tab-uri")===t)return n;return null}registerPagePanels(){this.shadowRoot?.querySelectorAll("#content > div[id]").forEach(t=>{this._addPanel(t)}),this.registerPageNavigationTabs(),setTimeout(()=>this.registerPageNavigationTabs())}registerPageNavigationTabs(){this.shadowRoot?.querySelectorAll("zn-navbar li[tab], zn-navbar li[tab-uri]").forEach(t=>this._addTab(t)),this.shadowRoot?.querySelectorAll("zn-navbar").forEach(t=>{t.shadowRoot?.querySelectorAll("li[tab], li[tab-uri]").forEach(r=>this._addTab(r))})}syncNavigationActive(t){(this.shadowRoot?.querySelectorAll("zn-navbar li[tab], zn-navbar li[tab-uri]")||[]).forEach(n=>{let a=n===t;n.classList.toggle("active",a),n.classList.toggle("zn-tb-active",a)})}render(){let t=!this.modal&&!this.nested&&this.pageSlotController.test("breadcrumb"),r=this.tabDefinitions.length>1||this.hasExpandingActions,n=this.entityId,a=this.fullLocation,s=this.previousPath,l=!!this.summary||this.pageSlotController.test("description");return u`
2022
2022
  <div class="page" part="base" @scroll="${this.handlePageScroll}">
2023
2023
  <div class="${M({page__header:!0,"page__header--scrolled-no-navigation":this.scrolled&&!r})}" part="header">
2024
2024
  <div class="${M({header:!0,"header--has-breadcrumb":t,"header--has-entity-id":n,"header--has-full-location":a,"header--has-navigation":r,"header--has-previous":s,"header--has-description":l})}">
@@ -2084,7 +2084,7 @@ import{a as Hn,b as X3,c as kr,d as c,e as V}from"./chunks/zn.UBLZO6CI.js";var a
2084
2084
  </div>
2085
2085
  </div>
2086
2086
  </div>
2087
- `}};sr.styles=[ln.styles,_(N1)],sr.dependencies={"zn-button":Ee,"zn-copy-button":Vu,"zn-expanding-action":wm,"zn-icon":oe,"zn-navbar":Ta,"zn-tab":zm},c([p()],sr.prototype,"caption",2),c([p({attribute:"entity-id"})],sr.prototype,"entityId",2),c([p({attribute:"entity-id-show",type:Boolean})],sr.prototype,"entityIdShow",2),c([p({attribute:"full-location"})],sr.prototype,"fullLocation",2),c([p({type:Boolean,reflect:!0})],sr.prototype,"modal",2),c([p({type:Boolean,reflect:!0})],sr.prototype,"nested",2),c([p({type:Boolean,reflect:!0})],sr.prototype,"primary",2),c([p({attribute:"previous-path"})],sr.prototype,"previousPath",2),c([p({attribute:"previous-target"})],sr.prototype,"previousTarget",2),c([p()],sr.prototype,"summary",2),c([I()],sr.prototype,"scrolled",2),c([I()],sr.prototype,"tabDefinitions",2),c([I()],sr.prototype,"hasExpandingActions",2);var _s=sr;var I8=_s;_s.define("zn-page");var O1=k`@keyframes rotate-gradient{from{--rotate:0deg}to{--rotate:360deg}}:host{text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-transform:none}*,*::before,*::after{box-sizing:border-box;border-width:0;border-style:solid;border-color:rgb(var(--zn-border-color))}[hidden]{display:none !important}.width-container,.form-container,.wide-form-container{height:100%;width:100%;margin:var(--zn-default-margin,0 auto)}.width-container{max-width:var(--zn-container)}.form-container{max-width:var(--zn-container-ph)}.wide-form-container{max-width:var(--zn-container-lg)}:host{display:block}.form-control-input{display:flex;align-items:center;gap:var(--zn-spacing-x-small)}zn-dialog{--width:min(80vw,900px);--icon-color:rgb(var(--zn-text))}.icon-picker__image-trigger{position:relative;flex:1;min-width:0;min-height:180px;border:1px solid var(--zn-input-border-color);border-radius:var(--zn-border-radius);cursor:pointer;transition:var(--zn-transition-medium) background,var(--zn-transition-medium) border-color}.icon-picker__image-trigger:focus-visible{border-color:var(--zn-color-primary-600);outline:var(--zn-focus-ring);outline-offset:var(--zn-focus-ring-offset)}.icon-picker__image-trigger:not(:focus-visible):hover{border-color:var(--zn-color-primary-700)}:host([disabled]) .icon-picker__image-trigger{cursor:not-allowed;opacity:0.5}.icon-picker__image-trigger-background{--zn-droparea-checker-size:12px;--zn-droparea-checker-a:var(--zn-color-neutral-50);--zn-droparea-checker-b:var(--zn-color-neutral-100);display:flex;align-items:center;justify-content:center;width:100%;height:100%;min-height:inherit;padding:var(--zn-spacing-large) var(--zn-spacing-medium);box-sizing:border-box;background-color:var(--zn-droparea-checker-a);background-image:linear-gradient(45deg,var(--zn-droparea-checker-b) 25%,transparent 25%),linear-gradient(-45deg,var(--zn-droparea-checker-b) 25%,transparent 25%),linear-gradient(45deg,transparent 75%,var(--zn-droparea-checker-b) 75%),linear-gradient(-45deg,transparent 75%,var(--zn-droparea-checker-b) 75%);background-size:var(--zn-droparea-checker-size) var(--zn-droparea-checker-size);background-position:0 0,0 calc(var(--zn-droparea-checker-size) / 2),calc(var(--zn-droparea-checker-size) / 2) calc(var(--zn-droparea-checker-size) / -2),calc(var(--zn-droparea-checker-size) / -2) 0;border-radius:calc(var(--zn-border-radius) - 1px)}.icon-picker__image-trigger-preview{display:block;width:100%;height:150px;-o-object-fit:contain;object-fit:contain}.icon-picker__image-clear{position:absolute;top:var(--zn-spacing-small);right:var(--zn-spacing-small);z-index:1}.icon-picker__dialog-layout{display:flex;gap:var(--zn-spacing-large);height:40vh}.icon-picker__dialog-main{flex:1;min-width:0;display:flex;flex-direction:column;overflow:hidden}.icon-picker__dialog-sidebar{width:180px;flex-shrink:0}@media (max-width:640px){zn-dialog{--width:100vw}zn-dialog::part(base){max-width:100%;max-height:100%;margin:0;border-radius:0;height:100dvh;width:100vw}.icon-picker__dialog-layout{height:calc(100dvh - 8rem);flex-direction:column}.icon-picker__dialog-sidebar{width:100%;flex-shrink:0}}.icon-picker__mode-switch{display:flex;gap:var(--zn-spacing-x-small);margin-bottom:var(--zn-spacing-small)}.icon-picker__upload{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:var(--zn-spacing-small);border:dashed 1px rgb(var(--zn-border-color));border-radius:var(--zn-border-radius);padding:var(--zn-spacing-large);color:rgb(var(--zn-text-muted))}.icon-picker__upload-preview{max-width:100%;max-height:160px;-o-object-fit:contain;object-fit:contain;border-radius:var(--zn-border-radius)}.icon-picker__upload-filename{font-size:var(--zn-font-size-small);color:rgb(var(--zn-text-muted));word-break:break-all}.icon-picker__dialog-controls{display:flex;gap:var(--zn-spacing-small);margin-bottom:var(--zn-spacing-small)}.icon-picker__library-select{flex:1;min-width:0}.icon-picker__color-input{width:140px;flex-shrink:0}.icon-picker__icon-input{margin-bottom:var(--zn-spacing-small)}.icon-picker__search{margin-bottom:var(--zn-spacing-small)}.icon-picker__free-input{margin-bottom:var(--zn-spacing-small)}.icon-picker__grid{display:flex;flex-wrap:wrap;gap:var(--zn-spacing-x-small);flex:1;overflow-y:auto;align-content:flex-start;border:solid 1px rgb(var(--zn-border-color));border-radius:var(--zn-border-radius);padding:var(--zn-spacing-x-small)}.icon-picker__grid-item{display:flex;align-items:center;justify-content:center;width:48px;height:48px;padding:0;border:2px solid transparent;border-radius:var(--zn-border-radius);background:transparent;color:var(--zn-text-color);cursor:pointer;transition:var(--zn-transition-fast) background-color,var(--zn-transition-fast) border-color}.icon-picker__grid-item:hover{background-color:rgba(var(--zn-color-primary),0.1)}.icon-picker__grid-item--selected{border-color:rgb(var(--zn-color-primary));background-color:rgba(var(--zn-color-primary),0.1)}.icon-picker__no-results{width:100%;text-align:center;padding:var(--zn-spacing-large);color:rgb(var(--zn-text-muted))}.icon-picker__preview{display:flex;flex-direction:column;align-items:center;gap:var(--zn-spacing-small);padding:var(--zn-spacing-medium);background-color:rgba(var(--zn-panel-secondary),0.5);border-radius:var(--zn-border-radius);text-align:center}.icon-picker__preview--empty{color:rgb(var(--zn-text-muted))}.icon-picker__preview-name{font-size:var(--zn-font-size-medium);font-family:var(--zn-font-mono);word-break:break-all}.icon-picker__preview-library{font-size:var(--zn-font-size-small);color:rgb(var(--zn-text-muted))}.icon-picker__preview-hint{font-size:var(--zn-font-size-small);color:rgb(var(--zn-text-muted))}.icon-picker__footer{display:flex;justify-content:flex-end;align-items:center;gap:var(--zn-spacing-small);--icon-color:currentColor}`;var Se=class Se extends S{constructor(){super(...arguments);this.formControlController=new re(this,{assumeInteractionOn:["zn-change"],value:t=>t._file??t.icon,setValue:(t,r)=>{t.clearFile(),t.icon=r??""}});this.name="";this.icon="";this.label="";this.library="material-symbols-outlined";this.color="";this.noColor=!1;this.noLibrary=!1;this.helpText="";this.disabled=!1;this.required=!1;this.triggerSubmit=!1;this.allowUpload=!1;this.accept="image/*";this.defaultValue="";this._dialogOpen=!1;this._searchQuery="";this._iconList=[];this._filteredIcons=[];this._pendingIcon="";this._pendingLibrary="";this._pendingColor="";this._pendingFile=null;this._pendingFileUrl=null;this._mode="icon";this._file=null;this._fileUrl=null}get value(){return this.icon}set value(t){this.icon=t}get file(){return this._file}get isImageValue(){return!!this._file||this.icon.includes("/")}get validity(){return this.required&&!this.icon&&!this._file?rs:et}get validationMessage(){return this.required&&!this.icon&&!this._file?"Please select an icon.":""}checkValidity(){return this.validity.valid}getForm(){return this.formControlController.getForm()}reportValidity(){return this.checkValidity()}setCustomValidity(t){this.formControlController.updateValidity()}isFreeInputLibrary(t){return Se.freeInputLibraries.has(t)}async getIconsForLibrary(t){try{switch(t){case"brands":return(await import("./chunks/zn.CU5HCKLN.js")).brandIcons;case"line":return(await import("./chunks/zn.7VCR5ZZL.js")).lineIcons;case"lucide":return(await import("./chunks/zn.R2EAU6OS.js")).lucideIcons;default:{let r=await import("./chunks/zn.NKUIXDNI.js");switch(t){case"material-outlined":return r.material_outlinedIcons;case"material-round":return r.material_roundIcons;case"material-sharp":return r.material_sharpIcons;case"material-two-tone":return r.material_two_toneIcons;case"material-symbols-outlined":return r.material_symbols_outlinedIcons;default:return r.materialIcons}}}}catch{return[]}}async openDialog(){this._pendingIcon=this.isImageValue?"":this.icon,this._pendingLibrary=this.library,this._pendingColor=this.color,this._searchQuery="",this._mode=this.allowUpload&&this.isImageValue?"upload":"icon",this._iconList=await this.getIconsForLibrary(this.library),this._filteredIcons=this._iconList.slice(0,200),this._dialogOpen=!0,await this.updateComplete,this._dialog.show()}closeDialog(){this.discardPendingFile(),this._dialog.hide(),this._dialogOpen=!1}handleConfirm(){this._mode==="upload"?this._pendingFile&&(this._fileUrl&&URL.revokeObjectURL(this._fileUrl),this._file=this._pendingFile,this._fileUrl=this._pendingFileUrl,this._pendingFile=null,this._pendingFileUrl=null,this.icon=""):(this.icon=this._pendingIcon,this.library=this._pendingLibrary,this.color=this._pendingColor,this.clearFile()),this.closeDialog(),this.emit("zn-change"),this.triggerSubmit&&this.formControlController.submit()}handleCancel(){this.closeDialog()}handleFileSelect(t){let r=t.target,n=r.files?.[0]??null;n&&(this.discardPendingFile(),this._pendingFile=n,this._pendingFileUrl=URL.createObjectURL(n),r.value="")}discardPendingFile(){this._pendingFileUrl&&URL.revokeObjectURL(this._pendingFileUrl),this._pendingFile=null,this._pendingFileUrl=null}clearFile(){this._fileUrl&&URL.revokeObjectURL(this._fileUrl),this._file=null,this._fileUrl=null}disconnectedCallback(){super.disconnectedCallback(),this.discardPendingFile(),this._fileUrl&&URL.revokeObjectURL(this._fileUrl)}syncHiddenInputs(){let t=[["icon",this.icon,!0],["library",this.library,!this.noLibrary],["color",this.color,!this.noColor]];for(let[r,n,a]of t){let s=`${this.name}[${r}]`,l=this.querySelector(`input[type="hidden"][name="${s}"]`);if(!this.name||!a){l?.remove();continue}l||(l=document.createElement("input"),l.type="hidden",l.name=s,this.appendChild(l)),l.value=n??""}}updated(t){super.updated(t),this.syncHiddenInputs()}handleSearchInput(t){let r=t.target;this._searchQuery=r.value.toLowerCase(),this.filterIcons()}filterIcons(){this._searchQuery?this._filteredIcons=this._iconList.filter(t=>t.includes(this._searchQuery)).slice(0,200):this._filteredIcons=this._iconList.slice(0,200)}handleIconSelect(t){this._pendingIcon=t}async handleLibraryChange(t){let r=t.target,n=this.isFreeInputLibrary(this._pendingLibrary);this._pendingLibrary=r.value;let a=this.isFreeInputLibrary(this._pendingLibrary);n!==a&&(this._pendingIcon=""),a||(this._iconList=await this.getIconsForLibrary(this._pendingLibrary),this.filterIcons())}handleColorInput(t){let r=t.target;this._pendingColor=String(r.value)}handleFreeInput(t){let r=t.target;this._pendingIcon=r.value}handleClear(t){t.stopPropagation(),this.icon="",this.color="",this.clearFile(),this.emit("zn-change"),this.triggerSubmit&&this.formControlController.submit()}_handleTriggerClick(){this.disabled||this.openDialog()}_handleTriggerKeyDown(t){(t.key==="Enter"||t.key===" ")&&(t.preventDefault(),this._handleTriggerClick())}render(){let t=!!this.label,r=!!this.helpText,n=!!this.icon||!!this._file,a=this._fileUrl??this.icon,s=n&&!this.isImageValue?this.library:F,l=this._pendingFileUrl??(this.isImageValue&&!this._file?this.icon:this._fileUrl);return u`
2087
+ `}};ar.styles=[ln.styles,_(N1)],ar.dependencies={"zn-button":Ee,"zn-copy-button":Vu,"zn-expanding-action":wm,"zn-icon":oe,"zn-navbar":Ta,"zn-tab":zm},c([p()],ar.prototype,"caption",2),c([p({attribute:"entity-id"})],ar.prototype,"entityId",2),c([p({attribute:"entity-id-show",type:Boolean})],ar.prototype,"entityIdShow",2),c([p({attribute:"full-location"})],ar.prototype,"fullLocation",2),c([p({type:Boolean,reflect:!0})],ar.prototype,"modal",2),c([p({type:Boolean,reflect:!0})],ar.prototype,"nested",2),c([p({type:Boolean,reflect:!0})],ar.prototype,"primary",2),c([p({attribute:"previous-path"})],ar.prototype,"previousPath",2),c([p({attribute:"previous-target"})],ar.prototype,"previousTarget",2),c([p()],ar.prototype,"summary",2),c([I()],ar.prototype,"scrolled",2),c([I()],ar.prototype,"tabDefinitions",2),c([I()],ar.prototype,"hasExpandingActions",2);var _s=ar;var I8=_s;_s.define("zn-page");var O1=k`@keyframes rotate-gradient{from{--rotate:0deg}to{--rotate:360deg}}:host{text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-transform:none}*,*::before,*::after{box-sizing:border-box;border-width:0;border-style:solid;border-color:rgb(var(--zn-border-color))}[hidden]{display:none !important}.width-container,.form-container,.wide-form-container{height:100%;width:100%;margin:var(--zn-default-margin,0 auto)}.width-container{max-width:var(--zn-container)}.form-container{max-width:var(--zn-container-ph)}.wide-form-container{max-width:var(--zn-container-lg)}:host{display:block}.form-control-input{display:flex;align-items:center;gap:var(--zn-spacing-x-small)}zn-dialog{--width:min(80vw,900px);--icon-color:rgb(var(--zn-text))}.icon-picker__image-trigger{position:relative;flex:1;min-width:0;min-height:180px;border:1px solid var(--zn-input-border-color);border-radius:var(--zn-border-radius);cursor:pointer;transition:var(--zn-transition-medium) background,var(--zn-transition-medium) border-color}.icon-picker__image-trigger:focus-visible{border-color:var(--zn-color-primary-600);outline:var(--zn-focus-ring);outline-offset:var(--zn-focus-ring-offset)}.icon-picker__image-trigger:not(:focus-visible):hover{border-color:var(--zn-color-primary-700)}:host([disabled]) .icon-picker__image-trigger{cursor:not-allowed;opacity:0.5}.icon-picker__image-trigger-background{--zn-droparea-checker-size:12px;--zn-droparea-checker-a:var(--zn-color-neutral-50);--zn-droparea-checker-b:var(--zn-color-neutral-100);display:flex;align-items:center;justify-content:center;width:100%;height:100%;min-height:inherit;padding:var(--zn-spacing-large) var(--zn-spacing-medium);box-sizing:border-box;background-color:var(--zn-droparea-checker-a);background-image:linear-gradient(45deg,var(--zn-droparea-checker-b) 25%,transparent 25%),linear-gradient(-45deg,var(--zn-droparea-checker-b) 25%,transparent 25%),linear-gradient(45deg,transparent 75%,var(--zn-droparea-checker-b) 75%),linear-gradient(-45deg,transparent 75%,var(--zn-droparea-checker-b) 75%);background-size:var(--zn-droparea-checker-size) var(--zn-droparea-checker-size);background-position:0 0,0 calc(var(--zn-droparea-checker-size) / 2),calc(var(--zn-droparea-checker-size) / 2) calc(var(--zn-droparea-checker-size) / -2),calc(var(--zn-droparea-checker-size) / -2) 0;border-radius:calc(var(--zn-border-radius) - 1px)}.icon-picker__image-trigger-preview{display:block;width:100%;height:150px;-o-object-fit:contain;object-fit:contain}.icon-picker__image-clear{position:absolute;top:var(--zn-spacing-small);right:var(--zn-spacing-small);z-index:1}.icon-picker__dialog-layout{display:flex;gap:var(--zn-spacing-large);height:40vh}.icon-picker__dialog-main{flex:1;min-width:0;display:flex;flex-direction:column;overflow:hidden}.icon-picker__dialog-sidebar{width:180px;flex-shrink:0}@media (max-width:640px){zn-dialog{--width:100vw}zn-dialog::part(base){max-width:100%;max-height:100%;margin:0;border-radius:0;height:100dvh;width:100vw}.icon-picker__dialog-layout{height:calc(100dvh - 8rem);flex-direction:column}.icon-picker__dialog-sidebar{width:100%;flex-shrink:0}}.icon-picker__mode-switch{display:flex;gap:var(--zn-spacing-x-small);margin-bottom:var(--zn-spacing-small)}.icon-picker__upload{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:var(--zn-spacing-small);border:dashed 1px rgb(var(--zn-border-color));border-radius:var(--zn-border-radius);padding:var(--zn-spacing-large);color:rgb(var(--zn-text-muted))}.icon-picker__upload-preview{max-width:100%;max-height:160px;-o-object-fit:contain;object-fit:contain;border-radius:var(--zn-border-radius)}.icon-picker__upload-filename{font-size:var(--zn-font-size-small);color:rgb(var(--zn-text-muted));word-break:break-all}.icon-picker__dialog-controls{display:flex;gap:var(--zn-spacing-small);margin-bottom:var(--zn-spacing-small)}.icon-picker__library-select{flex:1;min-width:0}.icon-picker__color-input{width:140px;flex-shrink:0}.icon-picker__icon-input{margin-bottom:var(--zn-spacing-small)}.icon-picker__search{margin-bottom:var(--zn-spacing-small)}.icon-picker__free-input{margin-bottom:var(--zn-spacing-small)}.icon-picker__grid{display:flex;flex-wrap:wrap;gap:var(--zn-spacing-x-small);flex:1;overflow-y:auto;align-content:flex-start;border:solid 1px rgb(var(--zn-border-color));border-radius:var(--zn-border-radius);padding:var(--zn-spacing-x-small)}.icon-picker__grid-item{display:flex;align-items:center;justify-content:center;width:48px;height:48px;padding:0;border:2px solid transparent;border-radius:var(--zn-border-radius);background:transparent;color:var(--zn-text-color);cursor:pointer;transition:var(--zn-transition-fast) background-color,var(--zn-transition-fast) border-color}.icon-picker__grid-item:hover{background-color:rgba(var(--zn-color-primary),0.1)}.icon-picker__grid-item--selected{border-color:rgb(var(--zn-color-primary));background-color:rgba(var(--zn-color-primary),0.1)}.icon-picker__no-results{width:100%;text-align:center;padding:var(--zn-spacing-large);color:rgb(var(--zn-text-muted))}.icon-picker__preview{display:flex;flex-direction:column;align-items:center;gap:var(--zn-spacing-small);padding:var(--zn-spacing-medium);background-color:rgba(var(--zn-panel-secondary),0.5);border-radius:var(--zn-border-radius);text-align:center}.icon-picker__preview--empty{color:rgb(var(--zn-text-muted))}.icon-picker__preview-name{font-size:var(--zn-font-size-medium);font-family:var(--zn-font-mono);word-break:break-all}.icon-picker__preview-library{font-size:var(--zn-font-size-small);color:rgb(var(--zn-text-muted))}.icon-picker__preview-hint{font-size:var(--zn-font-size-small);color:rgb(var(--zn-text-muted))}.icon-picker__footer{display:flex;justify-content:flex-end;align-items:center;gap:var(--zn-spacing-small);--icon-color:currentColor}`;var Se=class Se extends S{constructor(){super(...arguments);this.formControlController=new re(this,{assumeInteractionOn:["zn-change"],value:t=>t._file??t.icon,setValue:(t,r)=>{t.clearFile(),t.icon=r??""}});this.name="";this.icon="";this.label="";this.library="material-symbols-outlined";this.color="";this.noColor=!1;this.noLibrary=!1;this.helpText="";this.disabled=!1;this.required=!1;this.triggerSubmit=!1;this.allowUpload=!1;this.accept="image/*";this.defaultValue="";this._dialogOpen=!1;this._searchQuery="";this._iconList=[];this._filteredIcons=[];this._pendingIcon="";this._pendingLibrary="";this._pendingColor="";this._pendingFile=null;this._pendingFileUrl=null;this._mode="icon";this._file=null;this._fileUrl=null}get value(){return this.icon}set value(t){this.icon=t}get file(){return this._file}get isImageValue(){return!!this._file||this.icon.includes("/")}get validity(){return this.required&&!this.icon&&!this._file?rs:et}get validationMessage(){return this.required&&!this.icon&&!this._file?"Please select an icon.":""}checkValidity(){return this.validity.valid}getForm(){return this.formControlController.getForm()}reportValidity(){return this.checkValidity()}setCustomValidity(t){this.formControlController.updateValidity()}isFreeInputLibrary(t){return Se.freeInputLibraries.has(t)}async getIconsForLibrary(t){try{switch(t){case"brands":return(await import("./chunks/zn.CU5HCKLN.js")).brandIcons;case"line":return(await import("./chunks/zn.7VCR5ZZL.js")).lineIcons;case"lucide":return(await import("./chunks/zn.R2EAU6OS.js")).lucideIcons;default:{let r=await import("./chunks/zn.NKUIXDNI.js");switch(t){case"material-outlined":return r.material_outlinedIcons;case"material-round":return r.material_roundIcons;case"material-sharp":return r.material_sharpIcons;case"material-two-tone":return r.material_two_toneIcons;case"material-symbols-outlined":return r.material_symbols_outlinedIcons;default:return r.materialIcons}}}}catch{return[]}}async openDialog(){this._pendingIcon=this.isImageValue?"":this.icon,this._pendingLibrary=this.library,this._pendingColor=this.color,this._searchQuery="",this._mode=this.allowUpload&&this.isImageValue?"upload":"icon",this._iconList=await this.getIconsForLibrary(this.library),this._filteredIcons=this._iconList.slice(0,200),this._dialogOpen=!0,await this.updateComplete,this._dialog.show()}closeDialog(){this.discardPendingFile(),this._dialog.hide(),this._dialogOpen=!1}handleConfirm(){this._mode==="upload"?this._pendingFile&&(this._fileUrl&&URL.revokeObjectURL(this._fileUrl),this._file=this._pendingFile,this._fileUrl=this._pendingFileUrl,this._pendingFile=null,this._pendingFileUrl=null,this.icon=""):(this.icon=this._pendingIcon,this.library=this._pendingLibrary,this.color=this._pendingColor,this.clearFile()),this.closeDialog(),this.emit("zn-change"),this.triggerSubmit&&this.formControlController.submit()}handleCancel(){this.closeDialog()}handleFileSelect(t){let r=t.target,n=r.files?.[0]??null;n&&(this.discardPendingFile(),this._pendingFile=n,this._pendingFileUrl=URL.createObjectURL(n),r.value="")}discardPendingFile(){this._pendingFileUrl&&URL.revokeObjectURL(this._pendingFileUrl),this._pendingFile=null,this._pendingFileUrl=null}clearFile(){this._fileUrl&&URL.revokeObjectURL(this._fileUrl),this._file=null,this._fileUrl=null}disconnectedCallback(){super.disconnectedCallback(),this.discardPendingFile(),this._fileUrl&&URL.revokeObjectURL(this._fileUrl)}syncHiddenInputs(){let t=[["icon",this.icon,!0],["library",this.library,!this.noLibrary],["color",this.color,!this.noColor]];for(let[r,n,a]of t){let s=`${this.name}[${r}]`,l=this.querySelector(`input[type="hidden"][name="${s}"]`);if(!this.name||!a){l?.remove();continue}l||(l=document.createElement("input"),l.type="hidden",l.name=s,this.appendChild(l)),l.value=n??""}}updated(t){super.updated(t),this.syncHiddenInputs()}handleSearchInput(t){let r=t.target;this._searchQuery=r.value.toLowerCase(),this.filterIcons()}filterIcons(){this._searchQuery?this._filteredIcons=this._iconList.filter(t=>t.includes(this._searchQuery)).slice(0,200):this._filteredIcons=this._iconList.slice(0,200)}handleIconSelect(t){this._pendingIcon=t}async handleLibraryChange(t){let r=t.target,n=this.isFreeInputLibrary(this._pendingLibrary);this._pendingLibrary=r.value;let a=this.isFreeInputLibrary(this._pendingLibrary);n!==a&&(this._pendingIcon=""),a||(this._iconList=await this.getIconsForLibrary(this._pendingLibrary),this.filterIcons())}handleColorInput(t){let r=t.target;this._pendingColor=String(r.value)}handleFreeInput(t){let r=t.target;this._pendingIcon=r.value}handleClear(t){t.stopPropagation(),this.icon="",this.color="",this.clearFile(),this.emit("zn-change"),this.triggerSubmit&&this.formControlController.submit()}_handleTriggerClick(){this.disabled||this.openDialog()}_handleTriggerKeyDown(t){(t.key==="Enter"||t.key===" ")&&(t.preventDefault(),this._handleTriggerClick())}render(){let t=!!this.label,r=!!this.helpText,n=!!this.icon||!!this._file,a=this._fileUrl??this.icon,s=n&&!this.isImageValue?this.library:F,l=this._pendingFileUrl??(this.isImageValue&&!this._file?this.icon:this._fileUrl);return u`
2088
2088
  <div part="form-control"
2089
2089
  class="form-control form-control--medium ${t?"form-control--has-label":""} ${r?"form-control--has-help-text":""}">
2090
2090
 
@@ -2892,7 +2892,7 @@ import{a as Hn,b as X3,c as kr,d as c,e as V}from"./chunks/zn.UBLZO6CI.js";var a
2892
2892
  <zn-input type="text"
2893
2893
  class="query-builder__value"
2894
2894
  @zn-input="${a=>this._updateValue(t,a)}">
2895
- </zn-input>`;return qt(n)}_updateValue(t,r){let n=this._selectedRules.get(t);if(!n)return;let a=r.target;n.value=a.value,this._selectedRules.set(t,n),this._handleChange()}_getRulePosition(t){let r=this.container.querySelectorAll(".query-builder__row"),n=-1;return r.forEach((a,s)=>{a.id===t&&(n=s)}),n}_changeRule(t,r){let n=this._getRulePosition(t),a=r.target;a.popup.active=!1,a?.parentElement?.remove(),this._removeRule(t,r),this._addRule(r,"",n)}_removeRule(t,r){this._selectedRules.delete(t),r.target?.closest(".query-builder__row")?.remove(),this._handleChange()}checkValidity(){return this.input.checkValidity()}getForm(){return this._formController.getForm()}reportValidity(){return this.input.reportValidity()}setCustomValidity(t){this.input.setCustomValidity(t),this._formController.updateValidity()}};Zr.styles=[_(ys),_(ey)],Zr.dependencies={"zn-button":Ee,"zn-input":lt,"zn-option":We,"zn-select":Oe},c([B(".bulk-actions")],Zr.prototype,"container",2),c([B(".add-rule")],Zr.prototype,"addRule",2),c([B("input#main-input")],Zr.prototype,"input",2),c([p()],Zr.prototype,"name",2),c([p()],Zr.prototype,"value",2),c([p({type:Array})],Zr.prototype,"actions",2);var J8=Zr;Zr.define("zn-bulk-actions");var Z8=()=>{let o="attachment",i=new Date().getTime();return`${o}_${i}`},Jl=class{constructor(i,t){this._attachmentContainer=document.createElement("div");this._quill=i,this._options=t,typeof this._options.upload!="function"&&console.warn("[Quill Attachment Module] No upload function provided"),typeof this._options.onFileUploaded!="function"&&console.warn("[Quill Attachment Module] No file uploaded function provided"),this._quill.getModule("toolbar").addHandler("attachment",this._selectLocalImage.bind(this)),this._createAttachmentContainer()}_selectLocalImage(){this._fileHolder=document.createElement("input"),this._fileHolder.setAttribute("type","file"),this._fileHolder.setAttribute("accept","*/*"),this._fileHolder.onchange=this._fileChanged.bind(this),this._fileHolder.click()}_fileChanged(){if(!this._fileHolder?.files||this._fileHolder.files.length<0)return;let i=this._fileHolder.files[0];this.addAttachment(i)}addAttachment(i,t){let r=Z8(),n=a=>{this._insertAttachment({dataUrl:a,file:i,id:r})};if(t)n(t);else{let a=new FileReader;a.addEventListener("load",()=>{let s=a.result;n(s)},!1),a.readAsDataURL(i)}typeof this._options.upload=="function"&&this._options.upload(i).then(async({path:a,url:s})=>{await this._uploadAttachment(i,s),this._updateAttachment(r,s,a)}).catch(a=>{console.warn(a.message)})}_createAttachmentContainer(){let i=this._attachmentContainer;i.id="attachment-container",i.style.display="flex",i.style.flexWrap="wrap",i.style.gap="10px",i.style.position="absolute",i.style.bottom="0",i.style.left="0",i.style.right="0",i.style.padding="10px",this._quill.container.appendChild(i)}_insertAttachment({dataUrl:i,file:t,id:r}){this._attachmentContainer.appendChild(this._createAttachment(i,t,r))}_updateAttachment(i,t,r){let n=this._quill.container.querySelector(`#${i}`);if(!n)return;n.setAttribute("href",t);let a=n.querySelector(".attachment-name");a&&(r?a.textContent=r:a.textContent="Error uploading file"),this._options.onFileUploaded&&this._options.onFileUploaded(n,{url:t});let s=this._options.attachmentInput;if(s&&r){let l=s.value,d=l?JSON.parse(l):[];d.push(r),s.value=JSON.stringify(d)}}_createAttachment(i,t,r){let n=document.createElement("a");n.setAttribute("href",i),n.setAttribute("id",r),n.setAttribute("download",t.name),n.style.padding="10px",n.style.backgroundColor="white",n.style.border="1px solid #ccc",n.style.borderRadius="5px",n.style.display="flex",n.style.alignItems="center",n.style.gap="5px";let a=document.createElement("p");a.classList.add("attachment-name"),a.textContent="Uploading...",n.appendChild(a);let s=document.createElement("button");return s.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 30 30"><path d="M7 4a.995.995 0 0 0-.707.293l-2 2a.999.999 0 0 0 0 1.414L11.586 15l-7.293 7.293a.999.999 0 0 0 0 1.414l2 2a.999.999 0 0 0 1.414 0L15 18.414l7.293 7.293a.999.999 0 0 0 1.414 0l2-2a.999.999 0 0 0 0-1.414L18.414 15l7.293-7.293a.999.999 0 0 0 0-1.414l-2-2a.999.999 0 0 0-1.414 0L15 11.586 7.707 4.293A.996.996 0 0 0 7 4z"/></svg>',s.onclick=l=>{l.preventDefault(),l.stopImmediatePropagation(),this._removeAttachment(r)},n.appendChild(s),n}reset(){this._attachmentContainer.replaceChildren();let i=this._options.attachmentInput;i&&(i.value="")}_removeAttachment(i){let t=this._quill.container.querySelector(`#${i}`);t&&t.remove();let r=this._options.attachmentInput;if(r){let n=r.value,a=t?.querySelector(".attachment-name"),s=n?JSON.parse(n):[],l=s.indexOf(a?.textContent?a.textContent:"");l>-1&&(s.splice(l,1),r.value=JSON.stringify(s))}}_uploadAttachment(i,t){return new Promise((r,n)=>{let a=new XMLHttpRequest;a.open("PUT",t,!0),a.setRequestHeader("Content-Type",i.type),a.onload=()=>{a.status>=200&&a.status<300?r():n(new Error(`[Quill Attachment Module] Failed to upload file. Status: ${a.status}`))},a.onerror=()=>{n(new Error("[Quill Attachment Module] Error occurred while uploading file."))},a.send(i)})}};var J_=kr(ei(),1);var gC=typeof global=="object"&&global&&global.Object===Object&&global,Rp=gC;var bC=typeof self=="object"&&self&&self.Object===Object&&self,vC=Rp||bC||Function("return this")(),Bt=vC;var yC=Bt.Symbol,Pi=yC;var Nx=Object.prototype,xC=Nx.hasOwnProperty,wC=Nx.toString,lc=Pi?Pi.toStringTag:void 0;function zC(o){var i=xC.call(o,lc),t=o[lc];try{o[lc]=void 0;var r=!0}catch{}var n=wC.call(o);return r&&(i?o[lc]=t:delete o[lc]),n}var Ox=zC;var _C=Object.prototype,kC=_C.toString;function SC(o){return kC.call(o)}var Px=SC;var CC="[object Null]",EC="[object Undefined]",Hx=Pi?Pi.toStringTag:void 0;function TC(o){return o==null?o===void 0?EC:CC:Hx&&Hx in Object(o)?Ox(o):Px(o)}var hn=TC;function $C(o){return o!=null&&typeof o=="object"}var br=$C;var AC=Array.isArray,Hi=AC;function LC(o){var i=typeof o;return o!=null&&(i=="object"||i=="function")}var Lr=LC;function MC(o){return o}var Dp=MC;var qC="[object AsyncFunction]",IC="[object Function]",RC="[object GeneratorFunction]",DC="[object Proxy]";function NC(o){if(!Lr(o))return!1;var i=hn(o);return i==IC||i==RC||i==qC||i==DC}var Ms=NC;var OC=Bt["__core-js_shared__"],Np=OC;var Fx=(function(){var o=/[^.]+$/.exec(Np&&Np.keys&&Np.keys.IE_PROTO||"");return o?"Symbol(src)_1."+o:""})();function PC(o){return!!Fx&&Fx in o}var Bx=PC;var HC=Function.prototype,FC=HC.toString;function BC(o){if(o!=null){try{return FC.call(o)}catch{}try{return o+""}catch{}}return""}var to=BC;var VC=/[\\^$.*+?()[\]{}|]/g,UC=/^\[object .+?Constructor\]$/,jC=Function.prototype,GC=Object.prototype,KC=jC.toString,WC=GC.hasOwnProperty,YC=RegExp("^"+KC.call(WC).replace(VC,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function QC(o){if(!Lr(o)||Bx(o))return!1;var i=Ms(o)?YC:UC;return i.test(to(o))}var Vx=QC;function XC(o,i){return o?.[i]}var Ux=XC;function JC(o,i){var t=Ux(o,i);return Vx(t)?t:void 0}var ti=JC;var ZC=ti(Bt,"WeakMap"),Op=ZC;var jx=Object.create,eE=(function(){function o(){}return function(i){if(!Lr(i))return{};if(jx)return jx(i);o.prototype=i;var t=new o;return o.prototype=void 0,t}})(),Gx=eE;function tE(o,i,t){switch(t.length){case 0:return o.call(i);case 1:return o.call(i,t[0]);case 2:return o.call(i,t[0],t[1]);case 3:return o.call(i,t[0],t[1],t[2])}return o.apply(i,t)}var Kx=tE;function rE(o,i){var t=-1,r=o.length;for(i||(i=Array(r));++t<r;)i[t]=o[t];return i}var Pp=rE;var iE=800,nE=16,oE=Date.now;function aE(o){var i=0,t=0;return function(){var r=oE(),n=nE-(r-t);if(t=r,n>0){if(++i>=iE)return arguments[0]}else i=0;return o.apply(void 0,arguments)}}var Wx=aE;function sE(o){return function(){return o}}var Yx=sE;var lE=(function(){try{var o=ti(Object,"defineProperty");return o({},"",{}),o}catch{}})(),qs=lE;var cE=qs?function(o,i){return qs(o,"toString",{configurable:!0,enumerable:!1,value:Yx(i),writable:!0})}:Dp,Qx=cE;var dE=Wx(Qx),Xx=dE;function pE(o,i){for(var t=-1,r=o==null?0:o.length;++t<r&&i(o[t],t,o)!==!1;);return o}var Jx=pE;var hE=9007199254740991,uE=/^(?:0|[1-9]\d*)$/;function mE(o,i){var t=typeof o;return i=i??hE,!!i&&(t=="number"||t!="symbol"&&uE.test(o))&&o>-1&&o%1==0&&o<i}var Hp=mE;function fE(o,i,t){i=="__proto__"&&qs?qs(o,i,{configurable:!0,enumerable:!0,value:t,writable:!0}):o[i]=t}var Is=fE;function gE(o,i){return o===i||o!==o&&i!==i}var An=gE;var bE=Object.prototype,vE=bE.hasOwnProperty;function yE(o,i,t){var r=o[i];(!(vE.call(o,i)&&An(r,t))||t===void 0&&!(i in o))&&Is(o,i,t)}var Fp=yE;function xE(o,i,t,r){var n=!t;t||(t={});for(var a=-1,s=i.length;++a<s;){var l=i[a],d=r?r(t[l],o[l],l,t,o):void 0;d===void 0&&(d=o[l]),n?Is(t,l,d):Fp(t,l,d)}return t}var Ln=xE;var Zx=Math.max;function wE(o,i,t){return i=Zx(i===void 0?o.length-1:i,0),function(){for(var r=arguments,n=-1,a=Zx(r.length-i,0),s=Array(a);++n<a;)s[n]=r[i+n];n=-1;for(var l=Array(i+1);++n<i;)l[n]=r[n];return l[i]=t(s),Kx(o,this,l)}}var ew=wE;function zE(o,i){return Xx(ew(o,i,Dp),o+"")}var tw=zE;var _E=9007199254740991;function kE(o){return typeof o=="number"&&o>-1&&o%1==0&&o<=_E}var Bp=kE;function SE(o){return o!=null&&Bp(o.length)&&!Ms(o)}var qo=SE;function CE(o,i,t){if(!Lr(t))return!1;var r=typeof i;return(r=="number"?qo(t)&&Hp(i,t.length):r=="string"&&i in t)?An(t[i],o):!1}var rw=CE;function EE(o){return tw(function(i,t){var r=-1,n=t.length,a=n>1?t[n-1]:void 0,s=n>2?t[2]:void 0;for(a=o.length>3&&typeof a=="function"?(n--,a):void 0,s&&rw(t[0],t[1],s)&&(a=n<3?void 0:a,n=1),i=Object(i);++r<n;){var l=t[r];l&&o(i,l,r,a)}return i})}var iw=EE;var TE=Object.prototype;function $E(o){var i=o&&o.constructor,t=typeof i=="function"&&i.prototype||TE;return o===t}var Rs=$E;function AE(o,i){for(var t=-1,r=Array(o);++t<o;)r[t]=i(t);return r}var nw=AE;var LE="[object Arguments]";function ME(o){return br(o)&&hn(o)==LE}var lf=ME;var ow=Object.prototype,qE=ow.hasOwnProperty,IE=ow.propertyIsEnumerable,RE=lf((function(){return arguments})())?lf:function(o){return br(o)&&qE.call(o,"callee")&&!IE.call(o,"callee")},cc=RE;function DE(){return!1}var aw=DE;var cw=typeof exports=="object"&&exports&&!exports.nodeType&&exports,sw=cw&&typeof module=="object"&&module&&!module.nodeType&&module,NE=sw&&sw.exports===cw,lw=NE?Bt.Buffer:void 0,OE=lw?lw.isBuffer:void 0,PE=OE||aw,ro=PE;var HE="[object Arguments]",FE="[object Array]",BE="[object Boolean]",VE="[object Date]",UE="[object Error]",jE="[object Function]",GE="[object Map]",KE="[object Number]",WE="[object Object]",YE="[object RegExp]",QE="[object Set]",XE="[object String]",JE="[object WeakMap]",ZE="[object ArrayBuffer]",e7="[object DataView]",t7="[object Float32Array]",r7="[object Float64Array]",i7="[object Int8Array]",n7="[object Int16Array]",o7="[object Int32Array]",a7="[object Uint8Array]",s7="[object Uint8ClampedArray]",l7="[object Uint16Array]",c7="[object Uint32Array]",dt={};dt[t7]=dt[r7]=dt[i7]=dt[n7]=dt[o7]=dt[a7]=dt[s7]=dt[l7]=dt[c7]=!0;dt[HE]=dt[FE]=dt[ZE]=dt[BE]=dt[e7]=dt[VE]=dt[UE]=dt[jE]=dt[GE]=dt[KE]=dt[WE]=dt[YE]=dt[QE]=dt[XE]=dt[JE]=!1;function d7(o){return br(o)&&Bp(o.length)&&!!dt[hn(o)]}var dw=d7;function p7(o){return function(i){return o(i)}}var Ds=p7;var pw=typeof exports=="object"&&exports&&!exports.nodeType&&exports,dc=pw&&typeof module=="object"&&module&&!module.nodeType&&module,h7=dc&&dc.exports===pw,cf=h7&&Rp.process,u7=(function(){try{var o=dc&&dc.require&&dc.require("util").types;return o||cf&&cf.binding&&cf.binding("util")}catch{}})(),io=u7;var hw=io&&io.isTypedArray,m7=hw?Ds(hw):dw,Ns=m7;var f7=Object.prototype,g7=f7.hasOwnProperty;function b7(o,i){var t=Hi(o),r=!t&&cc(o),n=!t&&!r&&ro(o),a=!t&&!r&&!n&&Ns(o),s=t||r||n||a,l=s?nw(o.length,String):[],d=l.length;for(var h in o)(i||g7.call(o,h))&&!(s&&(h=="length"||n&&(h=="offset"||h=="parent")||a&&(h=="buffer"||h=="byteLength"||h=="byteOffset")||Hp(h,d)))&&l.push(h);return l}var Vp=b7;function v7(o,i){return function(t){return o(i(t))}}var Up=v7;var y7=Up(Object.keys,Object),uw=y7;var x7=Object.prototype,w7=x7.hasOwnProperty;function z7(o){if(!Rs(o))return uw(o);var i=[];for(var t in Object(o))w7.call(o,t)&&t!="constructor"&&i.push(t);return i}var mw=z7;function _7(o){return qo(o)?Vp(o):mw(o)}var Os=_7;function k7(o){var i=[];if(o!=null)for(var t in Object(o))i.push(t);return i}var fw=k7;var S7=Object.prototype,C7=S7.hasOwnProperty;function E7(o){if(!Lr(o))return fw(o);var i=Rs(o),t=[];for(var r in o)r=="constructor"&&(i||!C7.call(o,r))||t.push(r);return t}var gw=E7;function T7(o){return qo(o)?Vp(o,!0):gw(o)}var Mn=T7;var $7=ti(Object,"create"),no=$7;function A7(){this.__data__=no?no(null):{},this.size=0}var bw=A7;function L7(o){var i=this.has(o)&&delete this.__data__[o];return this.size-=i?1:0,i}var vw=L7;var M7="__lodash_hash_undefined__",q7=Object.prototype,I7=q7.hasOwnProperty;function R7(o){var i=this.__data__;if(no){var t=i[o];return t===M7?void 0:t}return I7.call(i,o)?i[o]:void 0}var yw=R7;var D7=Object.prototype,N7=D7.hasOwnProperty;function O7(o){var i=this.__data__;return no?i[o]!==void 0:N7.call(i,o)}var xw=O7;var P7="__lodash_hash_undefined__";function H7(o,i){var t=this.__data__;return this.size+=this.has(o)?0:1,t[o]=no&&i===void 0?P7:i,this}var ww=H7;function Ps(o){var i=-1,t=o==null?0:o.length;for(this.clear();++i<t;){var r=o[i];this.set(r[0],r[1])}}Ps.prototype.clear=bw;Ps.prototype.delete=vw;Ps.prototype.get=yw;Ps.prototype.has=xw;Ps.prototype.set=ww;var df=Ps;function F7(){this.__data__=[],this.size=0}var zw=F7;function B7(o,i){for(var t=o.length;t--;)if(An(o[t][0],i))return t;return-1}var Io=B7;var V7=Array.prototype,U7=V7.splice;function j7(o){var i=this.__data__,t=Io(i,o);if(t<0)return!1;var r=i.length-1;return t==r?i.pop():U7.call(i,t,1),--this.size,!0}var _w=j7;function G7(o){var i=this.__data__,t=Io(i,o);return t<0?void 0:i[t][1]}var kw=G7;function K7(o){return Io(this.__data__,o)>-1}var Sw=K7;function W7(o,i){var t=this.__data__,r=Io(t,o);return r<0?(++this.size,t.push([o,i])):t[r][1]=i,this}var Cw=W7;function Hs(o){var i=-1,t=o==null?0:o.length;for(this.clear();++i<t;){var r=o[i];this.set(r[0],r[1])}}Hs.prototype.clear=zw;Hs.prototype.delete=_w;Hs.prototype.get=kw;Hs.prototype.has=Sw;Hs.prototype.set=Cw;var Ro=Hs;var Y7=ti(Bt,"Map"),Do=Y7;function Q7(){this.size=0,this.__data__={hash:new df,map:new(Do||Ro),string:new df}}var Ew=Q7;function X7(o){var i=typeof o;return i=="string"||i=="number"||i=="symbol"||i=="boolean"?o!=="__proto__":o===null}var Tw=X7;function J7(o,i){var t=o.__data__;return Tw(i)?t[typeof i=="string"?"string":"hash"]:t.map}var No=J7;function Z7(o){var i=No(this,o).delete(o);return this.size-=i?1:0,i}var $w=Z7;function eT(o){return No(this,o).get(o)}var Aw=eT;function tT(o){return No(this,o).has(o)}var Lw=tT;function rT(o,i){var t=No(this,o),r=t.size;return t.set(o,i),this.size+=t.size==r?0:1,this}var Mw=rT;function Fs(o){var i=-1,t=o==null?0:o.length;for(this.clear();++i<t;){var r=o[i];this.set(r[0],r[1])}}Fs.prototype.clear=Ew;Fs.prototype.delete=$w;Fs.prototype.get=Aw;Fs.prototype.has=Lw;Fs.prototype.set=Mw;var jp=Fs;function iT(o,i){for(var t=-1,r=i.length,n=o.length;++t<r;)o[n+t]=i[t];return o}var Gp=iT;var nT=Up(Object.getPrototypeOf,Object),Bs=nT;var oT="[object Object]",aT=Function.prototype,sT=Object.prototype,qw=aT.toString,lT=sT.hasOwnProperty,cT=qw.call(Object);function dT(o){if(!br(o)||hn(o)!=oT)return!1;var i=Bs(o);if(i===null)return!0;var t=lT.call(i,"constructor")&&i.constructor;return typeof t=="function"&&t instanceof t&&qw.call(t)==cT}var Iw=dT;function pT(){this.__data__=new Ro,this.size=0}var Rw=pT;function hT(o){var i=this.__data__,t=i.delete(o);return this.size=i.size,t}var Dw=hT;function uT(o){return this.__data__.get(o)}var Nw=uT;function mT(o){return this.__data__.has(o)}var Ow=mT;var fT=200;function gT(o,i){var t=this.__data__;if(t instanceof Ro){var r=t.__data__;if(!Do||r.length<fT-1)return r.push([o,i]),this.size=++t.size,this;t=this.__data__=new jp(r)}return t.set(o,i),this.size=t.size,this}var Pw=gT;function Vs(o){var i=this.__data__=new Ro(o);this.size=i.size}Vs.prototype.clear=Rw;Vs.prototype.delete=Dw;Vs.prototype.get=Nw;Vs.prototype.has=Ow;Vs.prototype.set=Pw;var Oo=Vs;function bT(o,i){return o&&Ln(i,Os(i),o)}var Hw=bT;function vT(o,i){return o&&Ln(i,Mn(i),o)}var Fw=vT;var jw=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Bw=jw&&typeof module=="object"&&module&&!module.nodeType&&module,yT=Bw&&Bw.exports===jw,Vw=yT?Bt.Buffer:void 0,Uw=Vw?Vw.allocUnsafe:void 0;function xT(o,i){if(i)return o.slice();var t=o.length,r=Uw?Uw(t):new o.constructor(t);return o.copy(r),r}var Kp=xT;function wT(o,i){for(var t=-1,r=o==null?0:o.length,n=0,a=[];++t<r;){var s=o[t];i(s,t,o)&&(a[n++]=s)}return a}var Gw=wT;function zT(){return[]}var Wp=zT;var _T=Object.prototype,kT=_T.propertyIsEnumerable,Kw=Object.getOwnPropertySymbols,ST=Kw?function(o){return o==null?[]:(o=Object(o),Gw(Kw(o),function(i){return kT.call(o,i)}))}:Wp,Us=ST;function CT(o,i){return Ln(o,Us(o),i)}var Ww=CT;var ET=Object.getOwnPropertySymbols,TT=ET?function(o){for(var i=[];o;)Gp(i,Us(o)),o=Bs(o);return i}:Wp,Yp=TT;function $T(o,i){return Ln(o,Yp(o),i)}var Yw=$T;function AT(o,i,t){var r=i(o);return Hi(o)?r:Gp(r,t(o))}var Qp=AT;function LT(o){return Qp(o,Os,Us)}var pc=LT;function MT(o){return Qp(o,Mn,Yp)}var Qw=MT;var qT=ti(Bt,"DataView"),Xp=qT;var IT=ti(Bt,"Promise"),Jp=IT;var RT=ti(Bt,"Set"),Zp=RT;var Xw="[object Map]",DT="[object Object]",Jw="[object Promise]",Zw="[object Set]",ez="[object WeakMap]",tz="[object DataView]",NT=to(Xp),OT=to(Do),PT=to(Jp),HT=to(Zp),FT=to(Op),Na=hn;(Xp&&Na(new Xp(new ArrayBuffer(1)))!=tz||Do&&Na(new Do)!=Xw||Jp&&Na(Jp.resolve())!=Jw||Zp&&Na(new Zp)!=Zw||Op&&Na(new Op)!=ez)&&(Na=function(o){var i=hn(o),t=i==DT?o.constructor:void 0,r=t?to(t):"";if(r)switch(r){case NT:return tz;case OT:return Xw;case PT:return Jw;case HT:return Zw;case FT:return ez}return i});var oo=Na;var BT=Object.prototype,VT=BT.hasOwnProperty;function UT(o){var i=o.length,t=new o.constructor(i);return i&&typeof o[0]=="string"&&VT.call(o,"index")&&(t.index=o.index,t.input=o.input),t}var rz=UT;var jT=Bt.Uint8Array,js=jT;function GT(o){var i=new o.constructor(o.byteLength);return new js(i).set(new js(o)),i}var Gs=GT;function KT(o,i){var t=i?Gs(o.buffer):o.buffer;return new o.constructor(t,o.byteOffset,o.byteLength)}var iz=KT;var WT=/\w*$/;function YT(o){var i=new o.constructor(o.source,WT.exec(o));return i.lastIndex=o.lastIndex,i}var nz=YT;var oz=Pi?Pi.prototype:void 0,az=oz?oz.valueOf:void 0;function QT(o){return az?Object(az.call(o)):{}}var sz=QT;function XT(o,i){var t=i?Gs(o.buffer):o.buffer;return new o.constructor(t,o.byteOffset,o.length)}var eh=XT;var JT="[object Boolean]",ZT="[object Date]",e$="[object Map]",t$="[object Number]",r$="[object RegExp]",i$="[object Set]",n$="[object String]",o$="[object Symbol]",a$="[object ArrayBuffer]",s$="[object DataView]",l$="[object Float32Array]",c$="[object Float64Array]",d$="[object Int8Array]",p$="[object Int16Array]",h$="[object Int32Array]",u$="[object Uint8Array]",m$="[object Uint8ClampedArray]",f$="[object Uint16Array]",g$="[object Uint32Array]";function b$(o,i,t){var r=o.constructor;switch(i){case a$:return Gs(o);case JT:case ZT:return new r(+o);case s$:return iz(o,t);case l$:case c$:case d$:case p$:case h$:case u$:case m$:case f$:case g$:return eh(o,t);case e$:return new r;case t$:case n$:return new r(o);case r$:return nz(o);case i$:return new r;case o$:return sz(o)}}var lz=b$;function v$(o){return typeof o.constructor=="function"&&!Rs(o)?Gx(Bs(o)):{}}var th=v$;var y$="[object Map]";function x$(o){return br(o)&&oo(o)==y$}var cz=x$;var dz=io&&io.isMap,w$=dz?Ds(dz):cz,pz=w$;var z$="[object Set]";function _$(o){return br(o)&&oo(o)==z$}var hz=_$;var uz=io&&io.isSet,k$=uz?Ds(uz):hz,mz=k$;var S$=1,C$=2,E$=4,fz="[object Arguments]",T$="[object Array]",$$="[object Boolean]",A$="[object Date]",L$="[object Error]",gz="[object Function]",M$="[object GeneratorFunction]",q$="[object Map]",I$="[object Number]",bz="[object Object]",R$="[object RegExp]",D$="[object Set]",N$="[object String]",O$="[object Symbol]",P$="[object WeakMap]",H$="[object ArrayBuffer]",F$="[object DataView]",B$="[object Float32Array]",V$="[object Float64Array]",U$="[object Int8Array]",j$="[object Int16Array]",G$="[object Int32Array]",K$="[object Uint8Array]",W$="[object Uint8ClampedArray]",Y$="[object Uint16Array]",Q$="[object Uint32Array]",ot={};ot[fz]=ot[T$]=ot[H$]=ot[F$]=ot[$$]=ot[A$]=ot[B$]=ot[V$]=ot[U$]=ot[j$]=ot[G$]=ot[q$]=ot[I$]=ot[bz]=ot[R$]=ot[D$]=ot[N$]=ot[O$]=ot[K$]=ot[W$]=ot[Y$]=ot[Q$]=!0;ot[L$]=ot[gz]=ot[P$]=!1;function rh(o,i,t,r,n,a){var s,l=i&S$,d=i&C$,h=i&E$;if(t&&(s=n?t(o,r,n,a):t(o)),s!==void 0)return s;if(!Lr(o))return o;var m=Hi(o);if(m){if(s=rz(o),!l)return Pp(o,s)}else{var f=oo(o),b=f==gz||f==M$;if(ro(o))return Kp(o,l);if(f==bz||f==fz||b&&!n){if(s=d||b?{}:th(o),!l)return d?Yw(o,Fw(s,o)):Ww(o,Hw(s,o))}else{if(!ot[f])return n?o:{};s=lz(o,f,l)}}a||(a=new Oo);var g=a.get(o);if(g)return g;a.set(o,s),mz(o)?o.forEach(function(z){s.add(rh(z,i,t,z,o,a))}):pz(o)&&o.forEach(function(z,E){s.set(E,rh(z,i,t,E,o,a))});var v=h?d?Qw:pc:d?Mn:Os,y=m?void 0:v(o);return Jx(y||o,function(z,E){y&&(E=z,z=o[E]),Fp(s,E,rh(z,i,t,E,o,a))}),s}var vz=rh;var X$=1,J$=4;function Z$(o){return vz(o,X$|J$)}var qn=Z$;var eA="__lodash_hash_undefined__";function tA(o){return this.__data__.set(o,eA),this}var yz=tA;function rA(o){return this.__data__.has(o)}var xz=rA;function ih(o){var i=-1,t=o==null?0:o.length;for(this.__data__=new jp;++i<t;)this.add(o[i])}ih.prototype.add=ih.prototype.push=yz;ih.prototype.has=xz;var wz=ih;function iA(o,i){for(var t=-1,r=o==null?0:o.length;++t<r;)if(i(o[t],t,o))return!0;return!1}var zz=iA;function nA(o,i){return o.has(i)}var _z=nA;var oA=1,aA=2;function sA(o,i,t,r,n,a){var s=t&oA,l=o.length,d=i.length;if(l!=d&&!(s&&d>l))return!1;var h=a.get(o),m=a.get(i);if(h&&m)return h==i&&m==o;var f=-1,b=!0,g=t&aA?new wz:void 0;for(a.set(o,i),a.set(i,o);++f<l;){var v=o[f],y=i[f];if(r)var z=s?r(y,v,f,i,o,a):r(v,y,f,o,i,a);if(z!==void 0){if(z)continue;b=!1;break}if(g){if(!zz(i,function(E,N){if(!_z(g,N)&&(v===E||n(v,E,t,r,a)))return g.push(N)})){b=!1;break}}else if(!(v===y||n(v,y,t,r,a))){b=!1;break}}return a.delete(o),a.delete(i),b}var nh=sA;function lA(o){var i=-1,t=Array(o.size);return o.forEach(function(r,n){t[++i]=[n,r]}),t}var kz=lA;function cA(o){var i=-1,t=Array(o.size);return o.forEach(function(r){t[++i]=r}),t}var Sz=cA;var dA=1,pA=2,hA="[object Boolean]",uA="[object Date]",mA="[object Error]",fA="[object Map]",gA="[object Number]",bA="[object RegExp]",vA="[object Set]",yA="[object String]",xA="[object Symbol]",wA="[object ArrayBuffer]",zA="[object DataView]",Cz=Pi?Pi.prototype:void 0,pf=Cz?Cz.valueOf:void 0;function _A(o,i,t,r,n,a,s){switch(t){case zA:if(o.byteLength!=i.byteLength||o.byteOffset!=i.byteOffset)return!1;o=o.buffer,i=i.buffer;case wA:return!(o.byteLength!=i.byteLength||!a(new js(o),new js(i)));case hA:case uA:case gA:return An(+o,+i);case mA:return o.name==i.name&&o.message==i.message;case bA:case yA:return o==i+"";case fA:var l=kz;case vA:var d=r&dA;if(l||(l=Sz),o.size!=i.size&&!d)return!1;var h=s.get(o);if(h)return h==i;r|=pA,s.set(o,i);var m=nh(l(o),l(i),r,n,a,s);return s.delete(o),m;case xA:if(pf)return pf.call(o)==pf.call(i)}return!1}var Ez=_A;var kA=1,SA=Object.prototype,CA=SA.hasOwnProperty;function EA(o,i,t,r,n,a){var s=t&kA,l=pc(o),d=l.length,h=pc(i),m=h.length;if(d!=m&&!s)return!1;for(var f=d;f--;){var b=l[f];if(!(s?b in i:CA.call(i,b)))return!1}var g=a.get(o),v=a.get(i);if(g&&v)return g==i&&v==o;var y=!0;a.set(o,i),a.set(i,o);for(var z=s;++f<d;){b=l[f];var E=o[b],N=i[b];if(r)var U=s?r(N,E,b,i,o,a):r(E,N,b,o,i,a);if(!(U===void 0?E===N||n(E,N,t,r,a):U)){y=!1;break}z||(z=b=="constructor")}if(y&&!z){var R=o.constructor,C=i.constructor;R!=C&&"constructor"in o&&"constructor"in i&&!(typeof R=="function"&&R instanceof R&&typeof C=="function"&&C instanceof C)&&(y=!1)}return a.delete(o),a.delete(i),y}var Tz=EA;var TA=1,$z="[object Arguments]",Az="[object Array]",oh="[object Object]",$A=Object.prototype,Lz=$A.hasOwnProperty;function AA(o,i,t,r,n,a){var s=Hi(o),l=Hi(i),d=s?Az:oo(o),h=l?Az:oo(i);d=d==$z?oh:d,h=h==$z?oh:h;var m=d==oh,f=h==oh,b=d==h;if(b&&ro(o)){if(!ro(i))return!1;s=!0,m=!1}if(b&&!m)return a||(a=new Oo),s||Ns(o)?nh(o,i,t,r,n,a):Ez(o,i,d,t,r,n,a);if(!(t&TA)){var g=m&&Lz.call(o,"__wrapped__"),v=f&&Lz.call(i,"__wrapped__");if(g||v){var y=g?o.value():o,z=v?i.value():i;return a||(a=new Oo),n(y,z,t,r,a)}}return b?(a||(a=new Oo),Tz(o,i,t,r,n,a)):!1}var Mz=AA;function qz(o,i,t,r,n){return o===i?!0:o==null||i==null||!br(o)&&!br(i)?o!==o&&i!==i:Mz(o,i,t,r,qz,n)}var Iz=qz;function LA(o){return function(i,t,r){for(var n=-1,a=Object(i),s=r(i),l=s.length;l--;){var d=s[o?l:++n];if(t(a[d],d,a)===!1)break}return i}}var Rz=LA;var MA=Rz(),Dz=MA;function qA(o,i,t){(t!==void 0&&!An(o[i],t)||t===void 0&&!(i in o))&&Is(o,i,t)}var hc=qA;function IA(o){return br(o)&&qo(o)}var Nz=IA;function RA(o,i){if(!(i==="constructor"&&typeof o[i]=="function")&&i!="__proto__")return o[i]}var uc=RA;function DA(o){return Ln(o,Mn(o))}var Oz=DA;function NA(o,i,t,r,n,a,s){var l=uc(o,t),d=uc(i,t),h=s.get(d);if(h){hc(o,t,h);return}var m=a?a(l,d,t+"",o,i,s):void 0,f=m===void 0;if(f){var b=Hi(d),g=!b&&ro(d),v=!b&&!g&&Ns(d);m=d,b||g||v?Hi(l)?m=l:Nz(l)?m=Pp(l):g?(f=!1,m=Kp(d,!0)):v?(f=!1,m=eh(d,!0)):m=[]:Iw(d)||cc(d)?(m=l,cc(l)?m=Oz(l):(!Lr(l)||Ms(l))&&(m=th(d))):f=!1}f&&(s.set(d,m),n(m,d,r,a,s),s.delete(d)),hc(o,t,m)}var Pz=NA;function Hz(o,i,t,r,n){o!==i&&Dz(i,function(a,s){if(n||(n=new Oo),Lr(a))Pz(o,i,s,t,Hz,r,n);else{var l=r?r(uc(o,s),a,s+"",o,i,n):void 0;l===void 0&&(l=a),hc(o,s,l)}},Mn)}var Fz=Hz;function OA(o,i){return Iz(o,i)}var Oa=OA;var PA=iw(function(o,i,t){Fz(o,i,t)}),ri=PA;var gc={};X3(gc,{Attributor:()=>Vr,AttributorStore:()=>mc,BlockBlot:()=>Pa,ClassAttributor:()=>Vt,ContainerBlot:()=>Xs,EmbedBlot:()=>wt,InlineBlot:()=>ah,LeafBlot:()=>Ut,ParentBlot:()=>ii,Registry:()=>Fo,Scope:()=>X,ScrollBlot:()=>fc,StyleAttributor:()=>ni,TextBlot:()=>Js});var X=(o=>(o[o.TYPE=3]="TYPE",o[o.LEVEL=12]="LEVEL",o[o.ATTRIBUTE=13]="ATTRIBUTE",o[o.BLOT=14]="BLOT",o[o.INLINE=7]="INLINE",o[o.BLOCK=11]="BLOCK",o[o.BLOCK_BLOT=10]="BLOCK_BLOT",o[o.INLINE_BLOT=6]="INLINE_BLOT",o[o.BLOCK_ATTRIBUTE=9]="BLOCK_ATTRIBUTE",o[o.INLINE_ATTRIBUTE=5]="INLINE_ATTRIBUTE",o[o.ANY=15]="ANY",o))(X||{}),Vr=class{constructor(i,t,r={}){this.attrName=i,this.keyName=t;let n=X.TYPE&X.ATTRIBUTE;this.scope=r.scope!=null?r.scope&X.LEVEL|n:X.ATTRIBUTE,r.whitelist!=null&&(this.whitelist=r.whitelist)}static keys(i){return Array.from(i.attributes).map(t=>t.name)}add(i,t){return this.canAdd(i,t)?(i.setAttribute(this.keyName,t),!0):!1}canAdd(i,t){return this.whitelist==null?!0:typeof t=="string"?this.whitelist.indexOf(t.replace(/["']/g,""))>-1:this.whitelist.indexOf(t)>-1}remove(i){i.removeAttribute(this.keyName)}value(i){let t=i.getAttribute(this.keyName);return this.canAdd(i,t)&&t?t:""}},Ho=class extends Error{constructor(i){i="[Parchment] "+i,super(i),this.message=i,this.name=this.constructor.name}},Uz=class uf{constructor(){this.attributes={},this.classes={},this.tags={},this.types={}}static find(i,t=!1){if(i==null)return null;if(this.blots.has(i))return this.blots.get(i)||null;if(t){let r=null;try{r=i.parentNode}catch{return null}return this.find(r,t)}return null}create(i,t,r){let n=this.query(t);if(n==null)throw new Ho(`Unable to create ${t} blot`);let a=n,s=t instanceof Node||t.nodeType===Node.TEXT_NODE?t:a.create(r),l=new a(i,s,r);return uf.blots.set(l.domNode,l),l}find(i,t=!1){return uf.find(i,t)}query(i,t=X.ANY){let r;return typeof i=="string"?r=this.types[i]||this.attributes[i]:i instanceof Text||i.nodeType===Node.TEXT_NODE?r=this.types.text:typeof i=="number"?i&X.LEVEL&X.BLOCK?r=this.types.block:i&X.LEVEL&X.INLINE&&(r=this.types.inline):i instanceof Element&&((i.getAttribute("class")||"").split(/\s+/).some(n=>(r=this.classes[n],!!r)),r=r||this.tags[i.tagName]),r==null?null:"scope"in r&&t&X.LEVEL&r.scope&&t&X.TYPE&r.scope?r:null}register(...i){return i.map(t=>{let r="blotName"in t,n="attrName"in t;if(!r&&!n)throw new Ho("Invalid definition");if(r&&t.blotName==="abstract")throw new Ho("Cannot register abstract class");let a=r?t.blotName:n?t.attrName:void 0;return this.types[a]=t,n?typeof t.keyName=="string"&&(this.attributes[t.keyName]=t):r&&(t.className&&(this.classes[t.className]=t),t.tagName&&(Array.isArray(t.tagName)?t.tagName=t.tagName.map(s=>s.toUpperCase()):t.tagName=t.tagName.toUpperCase(),(Array.isArray(t.tagName)?t.tagName:[t.tagName]).forEach(s=>{(this.tags[s]==null||t.className==null)&&(this.tags[s]=t)}))),t})}};Uz.blots=new WeakMap;var Fo=Uz;function Bz(o,i){return(o.getAttribute("class")||"").split(/\s+/).filter(t=>t.indexOf(`${i}-`)===0)}var mf=class extends Vr{static keys(i){return(i.getAttribute("class")||"").split(/\s+/).map(t=>t.split("-").slice(0,-1).join("-"))}add(i,t){return this.canAdd(i,t)?(this.remove(i),i.classList.add(`${this.keyName}-${t}`),!0):!1}remove(i){Bz(i,this.keyName).forEach(t=>{i.classList.remove(t)}),i.classList.length===0&&i.removeAttribute("class")}value(i){let t=(Bz(i,this.keyName)[0]||"").slice(this.keyName.length+1);return this.canAdd(i,t)?t:""}},Vt=mf;function hf(o){let i=o.split("-"),t=i.slice(1).map(r=>r[0].toUpperCase()+r.slice(1)).join("");return i[0]+t}var ff=class extends Vr{static keys(i){return(i.getAttribute("style")||"").split(";").map(t=>t.split(":")[0].trim())}add(i,t){return this.canAdd(i,t)?(i.style[hf(this.keyName)]=t,!0):!1}remove(i){i.style[hf(this.keyName)]="",i.getAttribute("style")||i.removeAttribute("style")}value(i){let t=i.style[hf(this.keyName)];return this.canAdd(i,t)?t:""}},ni=ff,gf=class{constructor(i){this.attributes={},this.domNode=i,this.build()}attribute(i,t){t?i.add(this.domNode,t)&&(i.value(this.domNode)!=null?this.attributes[i.attrName]=i:delete this.attributes[i.attrName]):(i.remove(this.domNode),delete this.attributes[i.attrName])}build(){this.attributes={};let i=Fo.find(this.domNode);if(i==null)return;let t=Vr.keys(this.domNode),r=Vt.keys(this.domNode),n=ni.keys(this.domNode);t.concat(r).concat(n).forEach(a=>{let s=i.scroll.query(a,X.ATTRIBUTE);s instanceof Vr&&(this.attributes[s.attrName]=s)})}copy(i){Object.keys(this.attributes).forEach(t=>{let r=this.attributes[t].value(this.domNode);i.format(t,r)})}move(i){this.copy(i),Object.keys(this.attributes).forEach(t=>{this.attributes[t].remove(this.domNode)}),this.attributes={}}values(){return Object.keys(this.attributes).reduce((i,t)=>(i[t]=this.attributes[t].value(this.domNode),i),{})}},mc=gf,jz=class{constructor(i,t){this.scroll=i,this.domNode=t,Fo.blots.set(t,this),this.prev=null,this.next=null}static create(i){if(this.tagName==null)throw new Ho("Blot definition missing tagName");let t,r;return Array.isArray(this.tagName)?(typeof i=="string"?(r=i.toUpperCase(),parseInt(r,10).toString()===r&&(r=parseInt(r,10))):typeof i=="number"&&(r=i),typeof r=="number"?t=document.createElement(this.tagName[r-1]):r&&this.tagName.indexOf(r)>-1?t=document.createElement(r):t=document.createElement(this.tagName[0])):t=document.createElement(this.tagName),this.className&&t.classList.add(this.className),t}get statics(){return this.constructor}attach(){}clone(){let i=this.domNode.cloneNode(!1);return this.scroll.create(i)}detach(){this.parent!=null&&this.parent.removeChild(this),Fo.blots.delete(this.domNode)}deleteAt(i,t){this.isolate(i,t).remove()}formatAt(i,t,r,n){let a=this.isolate(i,t);if(this.scroll.query(r,X.BLOT)!=null&&n)a.wrap(r,n);else if(this.scroll.query(r,X.ATTRIBUTE)!=null){let s=this.scroll.create(this.statics.scope);a.wrap(s),s.format(r,n)}}insertAt(i,t,r){let n=r==null?this.scroll.create("text",t):this.scroll.create(t,r),a=this.split(i);this.parent.insertBefore(n,a||void 0)}isolate(i,t){let r=this.split(i);if(r==null)throw new Error("Attempt to isolate at end");return r.split(t),r}length(){return 1}offset(i=this.parent){return this.parent==null||this===i?0:this.parent.children.offset(this)+this.parent.offset(i)}optimize(i){this.statics.requiredContainer&&!(this.parent instanceof this.statics.requiredContainer)&&this.wrap(this.statics.requiredContainer.blotName)}remove(){this.domNode.parentNode!=null&&this.domNode.parentNode.removeChild(this.domNode),this.detach()}replaceWith(i,t){let r=typeof i=="string"?this.scroll.create(i,t):i;return this.parent!=null&&(this.parent.insertBefore(r,this.next||void 0),this.remove()),r}split(i,t){return i===0?this:this.next}update(i,t){}wrap(i,t){let r=typeof i=="string"?this.scroll.create(i,t):i;if(this.parent!=null&&this.parent.insertBefore(r,this.next||void 0),typeof r.appendChild!="function")throw new Ho(`Cannot wrap ${i}`);return r.appendChild(this),r}};jz.blotName="abstract";var Gz=jz,Kz=class extends Gz{static value(i){return!0}index(i,t){return this.domNode===i||this.domNode.compareDocumentPosition(i)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(t,1):-1}position(i,t){let r=Array.from(this.parent.domNode.childNodes).indexOf(this.domNode);return i>0&&(r+=1),[this.parent.domNode,r]}value(){return{[this.statics.blotName]:this.statics.value(this.domNode)||!0}}};Kz.scope=X.INLINE_BLOT;var HA=Kz,Ut=HA,bf=class{constructor(){this.head=null,this.tail=null,this.length=0}append(...i){if(this.insertBefore(i[0],null),i.length>1){let t=i.slice(1);this.append(...t)}}at(i){let t=this.iterator(),r=t();for(;r&&i>0;)i-=1,r=t();return r}contains(i){let t=this.iterator(),r=t();for(;r;){if(r===i)return!0;r=t()}return!1}indexOf(i){let t=this.iterator(),r=t(),n=0;for(;r;){if(r===i)return n;n+=1,r=t()}return-1}insertBefore(i,t){i!=null&&(this.remove(i),i.next=t,t!=null?(i.prev=t.prev,t.prev!=null&&(t.prev.next=i),t.prev=i,t===this.head&&(this.head=i)):this.tail!=null?(this.tail.next=i,i.prev=this.tail,this.tail=i):(i.prev=null,this.head=this.tail=i),this.length+=1)}offset(i){let t=0,r=this.head;for(;r!=null;){if(r===i)return t;t+=r.length(),r=r.next}return-1}remove(i){this.contains(i)&&(i.prev!=null&&(i.prev.next=i.next),i.next!=null&&(i.next.prev=i.prev),i===this.head&&(this.head=i.next),i===this.tail&&(this.tail=i.prev),this.length-=1)}iterator(i=this.head){return()=>{let t=i;return i!=null&&(i=i.next),t}}find(i,t=!1){let r=this.iterator(),n=r();for(;n;){let a=n.length();if(i<a||t&&i===a&&(n.next==null||n.next.length()!==0))return[n,i];i-=a,n=r()}return[null,0]}forEach(i){let t=this.iterator(),r=t();for(;r;)i(r),r=t()}forEachAt(i,t,r){if(t<=0)return;let[n,a]=this.find(i),s=i-a,l=this.iterator(n),d=l();for(;d&&s<i+t;){let h=d.length();i>s?r(d,i-s,Math.min(t,s+h-i)):r(d,0,Math.min(h,i+t-s)),s+=h,d=l()}}map(i){return this.reduce((t,r)=>(t.push(i(r)),t),[])}reduce(i,t){let r=this.iterator(),n=r();for(;n;)t=i(t,n),n=r();return t}};function Vz(o,i){let t=i.find(o);if(t)return t;try{return i.create(o)}catch{let r=i.create(X.INLINE);return Array.from(o.childNodes).forEach(n=>{r.domNode.appendChild(n)}),o.parentNode&&o.parentNode.replaceChild(r.domNode,o),r.attach(),r}}var Wz=class Po extends Gz{constructor(i,t){super(i,t),this.uiNode=null,this.build()}appendChild(i){this.insertBefore(i)}attach(){super.attach(),this.children.forEach(i=>{i.attach()})}attachUI(i){this.uiNode!=null&&this.uiNode.remove(),this.uiNode=i,Po.uiClass&&this.uiNode.classList.add(Po.uiClass),this.uiNode.setAttribute("contenteditable","false"),this.domNode.insertBefore(this.uiNode,this.domNode.firstChild)}build(){this.children=new bf,Array.from(this.domNode.childNodes).filter(i=>i!==this.uiNode).reverse().forEach(i=>{try{let t=Vz(i,this.scroll);this.insertBefore(t,this.children.head||void 0)}catch(t){if(t instanceof Ho)return;throw t}})}deleteAt(i,t){if(i===0&&t===this.length())return this.remove();this.children.forEachAt(i,t,(r,n,a)=>{r.deleteAt(n,a)})}descendant(i,t=0){let[r,n]=this.children.find(t);return i.blotName==null&&i(r)||i.blotName!=null&&r instanceof i?[r,n]:r instanceof Po?r.descendant(i,n):[null,-1]}descendants(i,t=0,r=Number.MAX_VALUE){let n=[],a=r;return this.children.forEachAt(t,r,(s,l,d)=>{(i.blotName==null&&i(s)||i.blotName!=null&&s instanceof i)&&n.push(s),s instanceof Po&&(n=n.concat(s.descendants(i,l,a))),a-=d}),n}detach(){this.children.forEach(i=>{i.detach()}),super.detach()}enforceAllowedChildren(){let i=!1;this.children.forEach(t=>{i||this.statics.allowedChildren.some(r=>t instanceof r)||(t.statics.scope===X.BLOCK_BLOT?(t.next!=null&&this.splitAfter(t),t.prev!=null&&this.splitAfter(t.prev),t.parent.unwrap(),i=!0):t instanceof Po?t.unwrap():t.remove())})}formatAt(i,t,r,n){this.children.forEachAt(i,t,(a,s,l)=>{a.formatAt(s,l,r,n)})}insertAt(i,t,r){let[n,a]=this.children.find(i);if(n)n.insertAt(a,t,r);else{let s=r==null?this.scroll.create("text",t):this.scroll.create(t,r);this.appendChild(s)}}insertBefore(i,t){i.parent!=null&&i.parent.children.remove(i);let r=null;this.children.insertBefore(i,t||null),i.parent=this,t!=null&&(r=t.domNode),(this.domNode.parentNode!==i.domNode||this.domNode.nextSibling!==r)&&this.domNode.insertBefore(i.domNode,r),i.attach()}length(){return this.children.reduce((i,t)=>i+t.length(),0)}moveChildren(i,t){this.children.forEach(r=>{i.insertBefore(r,t)})}optimize(i){if(super.optimize(i),this.enforceAllowedChildren(),this.uiNode!=null&&this.uiNode!==this.domNode.firstChild&&this.domNode.insertBefore(this.uiNode,this.domNode.firstChild),this.children.length===0)if(this.statics.defaultChild!=null){let t=this.scroll.create(this.statics.defaultChild.blotName);this.appendChild(t)}else this.remove()}path(i,t=!1){let[r,n]=this.children.find(i,t),a=[[this,i]];return r instanceof Po?a.concat(r.path(n,t)):(r!=null&&a.push([r,n]),a)}removeChild(i){this.children.remove(i)}replaceWith(i,t){let r=typeof i=="string"?this.scroll.create(i,t):i;return r instanceof Po&&this.moveChildren(r),super.replaceWith(r)}split(i,t=!1){if(!t){if(i===0)return this;if(i===this.length())return this.next}let r=this.clone();return this.parent&&this.parent.insertBefore(r,this.next||void 0),this.children.forEachAt(i,this.length(),(n,a,s)=>{let l=n.split(a,t);l!=null&&r.appendChild(l)}),r}splitAfter(i){let t=this.clone();for(;i.next!=null;)t.appendChild(i.next);return this.parent&&this.parent.insertBefore(t,this.next||void 0),t}unwrap(){this.parent&&this.moveChildren(this.parent,this.next||void 0),this.remove()}update(i,t){let r=[],n=[];i.forEach(a=>{a.target===this.domNode&&a.type==="childList"&&(r.push(...a.addedNodes),n.push(...a.removedNodes))}),n.forEach(a=>{if(a.parentNode!=null&&a.tagName!=="IFRAME"&&document.body.compareDocumentPosition(a)&Node.DOCUMENT_POSITION_CONTAINED_BY)return;let s=this.scroll.find(a);s!=null&&(s.domNode.parentNode==null||s.domNode.parentNode===this.domNode)&&s.detach()}),r.filter(a=>a.parentNode===this.domNode&&a!==this.uiNode).sort((a,s)=>a===s?0:a.compareDocumentPosition(s)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1).forEach(a=>{let s=null;a.nextSibling!=null&&(s=this.scroll.find(a.nextSibling));let l=Vz(a,this.scroll);(l.next!==s||l.next==null)&&(l.parent!=null&&l.parent.removeChild(this),this.insertBefore(l,s||void 0))}),this.enforceAllowedChildren()}};Wz.uiClass="";var FA=Wz,ii=FA;function BA(o,i){if(Object.keys(o).length!==Object.keys(i).length)return!1;for(let t in o)if(o[t]!==i[t])return!1;return!0}var Ks=class Ws extends ii{static create(i){return super.create(i)}static formats(i,t){let r=t.query(Ws.blotName);if(!(r!=null&&i.tagName===r.tagName)){if(typeof this.tagName=="string")return!0;if(Array.isArray(this.tagName))return i.tagName.toLowerCase()}}constructor(i,t){super(i,t),this.attributes=new mc(this.domNode)}format(i,t){if(i===this.statics.blotName&&!t)this.children.forEach(r=>{r instanceof Ws||(r=r.wrap(Ws.blotName,!0)),this.attributes.copy(r)}),this.unwrap();else{let r=this.scroll.query(i,X.INLINE);if(r==null)return;r instanceof Vr?this.attributes.attribute(r,t):t&&(i!==this.statics.blotName||this.formats()[i]!==t)&&this.replaceWith(i,t)}}formats(){let i=this.attributes.values(),t=this.statics.formats(this.domNode,this.scroll);return t!=null&&(i[this.statics.blotName]=t),i}formatAt(i,t,r,n){this.formats()[r]!=null||this.scroll.query(r,X.ATTRIBUTE)?this.isolate(i,t).format(r,n):super.formatAt(i,t,r,n)}optimize(i){super.optimize(i);let t=this.formats();if(Object.keys(t).length===0)return this.unwrap();let r=this.next;r instanceof Ws&&r.prev===this&&BA(t,r.formats())&&(r.moveChildren(this),r.remove())}replaceWith(i,t){let r=super.replaceWith(i,t);return this.attributes.copy(r),r}update(i,t){super.update(i,t),i.some(r=>r.target===this.domNode&&r.type==="attributes")&&this.attributes.build()}wrap(i,t){let r=super.wrap(i,t);return r instanceof Ws&&this.attributes.move(r),r}};Ks.allowedChildren=[Ks,Ut],Ks.blotName="inline",Ks.scope=X.INLINE_BLOT,Ks.tagName="SPAN";var VA=Ks,ah=VA,Ys=class vf extends ii{static create(i){return super.create(i)}static formats(i,t){let r=t.query(vf.blotName);if(!(r!=null&&i.tagName===r.tagName)){if(typeof this.tagName=="string")return!0;if(Array.isArray(this.tagName))return i.tagName.toLowerCase()}}constructor(i,t){super(i,t),this.attributes=new mc(this.domNode)}format(i,t){let r=this.scroll.query(i,X.BLOCK);r!=null&&(r instanceof Vr?this.attributes.attribute(r,t):i===this.statics.blotName&&!t?this.replaceWith(vf.blotName):t&&(i!==this.statics.blotName||this.formats()[i]!==t)&&this.replaceWith(i,t))}formats(){let i=this.attributes.values(),t=this.statics.formats(this.domNode,this.scroll);return t!=null&&(i[this.statics.blotName]=t),i}formatAt(i,t,r,n){this.scroll.query(r,X.BLOCK)!=null?this.format(r,n):super.formatAt(i,t,r,n)}insertAt(i,t,r){if(r==null||this.scroll.query(t,X.INLINE)!=null)super.insertAt(i,t,r);else{let n=this.split(i);if(n!=null){let a=this.scroll.create(t,r);n.parent.insertBefore(a,n)}else throw new Error("Attempt to insertAt after block boundaries")}}replaceWith(i,t){let r=super.replaceWith(i,t);return this.attributes.copy(r),r}update(i,t){super.update(i,t),i.some(r=>r.target===this.domNode&&r.type==="attributes")&&this.attributes.build()}};Ys.blotName="block",Ys.scope=X.BLOCK_BLOT,Ys.tagName="P",Ys.allowedChildren=[ah,Ys,Ut];var UA=Ys,Pa=UA,yf=class extends ii{checkMerge(){return this.next!==null&&this.next.statics.blotName===this.statics.blotName}deleteAt(i,t){super.deleteAt(i,t),this.enforceAllowedChildren()}formatAt(i,t,r,n){super.formatAt(i,t,r,n),this.enforceAllowedChildren()}insertAt(i,t,r){super.insertAt(i,t,r),this.enforceAllowedChildren()}optimize(i){super.optimize(i),this.children.length>0&&this.next!=null&&this.checkMerge()&&(this.next.moveChildren(this),this.next.remove())}};yf.blotName="container",yf.scope=X.BLOCK_BLOT;var jA=yf,Xs=jA,xf=class extends Ut{static formats(i,t){}format(i,t){super.formatAt(0,this.length(),i,t)}formatAt(i,t,r,n){i===0&&t===this.length()?this.format(r,n):super.formatAt(i,t,r,n)}formats(){return this.statics.formats(this.domNode,this.scroll)}},wt=xf,GA={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},KA=100,Qs=class extends ii{constructor(i,t){super(null,t),this.registry=i,this.scroll=this,this.build(),this.observer=new MutationObserver(r=>{this.update(r)}),this.observer.observe(this.domNode,GA),this.attach()}create(i,t){return this.registry.create(this,i,t)}find(i,t=!1){let r=this.registry.find(i,t);return r?r.scroll===this?r:t?this.find(r.scroll.domNode.parentNode,!0):null:null}query(i,t=X.ANY){return this.registry.query(i,t)}register(...i){return this.registry.register(...i)}build(){this.scroll!=null&&super.build()}detach(){super.detach(),this.observer.disconnect()}deleteAt(i,t){this.update(),i===0&&t===this.length()?this.children.forEach(r=>{r.remove()}):super.deleteAt(i,t)}formatAt(i,t,r,n){this.update(),super.formatAt(i,t,r,n)}insertAt(i,t,r){this.update(),super.insertAt(i,t,r)}optimize(i=[],t={}){super.optimize(t);let r=t.mutationsMap||new WeakMap,n=Array.from(this.observer.takeRecords());for(;n.length>0;)i.push(n.pop());let a=(d,h=!0)=>{d==null||d===this||d.domNode.parentNode!=null&&(r.has(d.domNode)||r.set(d.domNode,[]),h&&a(d.parent))},s=d=>{r.has(d.domNode)&&(d instanceof ii&&d.children.forEach(s),r.delete(d.domNode),d.optimize(t))},l=i;for(let d=0;l.length>0;d+=1){if(d>=KA)throw new Error("[Parchment] Maximum optimize iterations reached");for(l.forEach(h=>{let m=this.find(h.target,!0);m!=null&&(m.domNode===h.target&&(h.type==="childList"?(a(this.find(h.previousSibling,!1)),Array.from(h.addedNodes).forEach(f=>{let b=this.find(f,!1);a(b,!1),b instanceof ii&&b.children.forEach(g=>{a(g,!1)})})):h.type==="attributes"&&a(m.prev)),a(m))}),this.children.forEach(s),l=Array.from(this.observer.takeRecords()),n=l.slice();n.length>0;)i.push(n.pop())}}update(i,t={}){i=i||this.observer.takeRecords();let r=new WeakMap;i.map(n=>{let a=this.find(n.target,!0);return a==null?null:r.has(a.domNode)?(r.get(a.domNode).push(n),null):(r.set(a.domNode,[n]),a)}).forEach(n=>{n!=null&&n!==this&&r.has(n.domNode)&&n.update(r.get(n.domNode)||[],t)}),t.mutationsMap=r,r.has(this.domNode)&&super.update(r.get(this.domNode),t),this.optimize(i,t)}};Qs.blotName="scroll",Qs.defaultChild=Pa,Qs.allowedChildren=[Pa,Xs],Qs.scope=X.BLOCK_BLOT,Qs.tagName="DIV";var WA=Qs,fc=WA,wf=class Yz extends Ut{static create(i){return document.createTextNode(i)}static value(i){return i.data}constructor(i,t){super(i,t),this.text=this.statics.value(this.domNode)}deleteAt(i,t){this.domNode.data=this.text=this.text.slice(0,i)+this.text.slice(i+t)}index(i,t){return this.domNode===i?t:-1}insertAt(i,t,r){r==null?(this.text=this.text.slice(0,i)+t+this.text.slice(i),this.domNode.data=this.text):super.insertAt(i,t,r)}length(){return this.text.length}optimize(i){super.optimize(i),this.text=this.statics.value(this.domNode),this.text.length===0?this.remove():this.next instanceof Yz&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())}position(i,t=!1){return[this.domNode,i]}split(i,t=!1){if(!t){if(i===0)return this;if(i===this.length())return this.next}let r=this.scroll.create(this.domNode.splitText(i));return this.parent.insertBefore(r,this.next||void 0),this.text=this.statics.value(this.domNode),r}update(i,t){i.some(r=>r.type==="characterData"&&r.target===this.domNode)&&(this.text=this.statics.value(this.domNode))}value(){return this.text}};wf.blotName="text",wf.scope=X.INLINE_BLOT;var YA=wf,Js=YA;var Vo=kr(ei(),1);var zt=kr(ei(),1);var _f=kr(ei(),1);var bc=class extends wt{static value(){}optimize(){(this.prev||this.next)&&this.remove()}length(){return 0}value(){return""}};bc.blotName="break";bc.tagName="BR";var Mr=bc;var Rt=class extends Js{},QA={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function Ha(o){return o.replace(/[&<>"']/g,i=>QA[i])}var In=class In extends ah{static compare(i,t){let r=In.order.indexOf(i),n=In.order.indexOf(t);return r>=0||n>=0?r-n:i===t?0:i<t?-1:1}formatAt(i,t,r,n){if(In.compare(this.statics.blotName,r)<0&&this.scroll.query(r,X.BLOT)){let a=this.isolate(i,t);n&&a.wrap(r,n)}else super.formatAt(i,t,r,n)}optimize(i){if(super.optimize(i),this.parent instanceof In&&In.compare(this.statics.blotName,this.parent.statics.blotName)>0){let t=this.parent.isolate(this.offset(),this.length());this.moveChildren(t),t.wrap(this)}}};V(In,"allowedChildren",[In,Mr,wt,Rt]),V(In,"order",["cursor","inline","link","underline","strike","italic","bold","script","code"]);var zf=In,qr=zf;var Qz=1,Je=class extends Pa{constructor(){super(...arguments);V(this,"cache",{})}delta(){return this.cache.delta==null&&(this.cache.delta=kf(this)),this.cache.delta}deleteAt(t,r){super.deleteAt(t,r),this.cache={}}formatAt(t,r,n,a){r<=0||(this.scroll.query(n,X.BLOCK)?t+r===this.length()&&this.format(n,a):super.formatAt(t,Math.min(r,this.length()-t-1),n,a),this.cache={})}insertAt(t,r,n){if(n!=null){super.insertAt(t,r,n),this.cache={};return}if(r.length===0)return;let a=r.split(`
2895
+ </zn-input>`;return qt(n)}_updateValue(t,r){let n=this._selectedRules.get(t);if(!n)return;let a=r.target;n.value=a.value,this._selectedRules.set(t,n),this._handleChange()}_getRulePosition(t){let r=this.container.querySelectorAll(".query-builder__row"),n=-1;return r.forEach((a,s)=>{a.id===t&&(n=s)}),n}_changeRule(t,r){let n=this._getRulePosition(t),a=r.target;a.popup.active=!1,a?.parentElement?.remove(),this._removeRule(t,r),this._addRule(r,"",n)}_removeRule(t,r){this._selectedRules.delete(t),r.target?.closest(".query-builder__row")?.remove(),this._handleChange()}checkValidity(){return this.input.checkValidity()}getForm(){return this._formController.getForm()}reportValidity(){return this.input.reportValidity()}setCustomValidity(t){this.input.setCustomValidity(t),this._formController.updateValidity()}};Zr.styles=[_(ys),_(ey)],Zr.dependencies={"zn-button":Ee,"zn-input":lt,"zn-option":We,"zn-select":Oe},c([B(".bulk-actions")],Zr.prototype,"container",2),c([B(".add-rule")],Zr.prototype,"addRule",2),c([B("input#main-input")],Zr.prototype,"input",2),c([p()],Zr.prototype,"name",2),c([p()],Zr.prototype,"value",2),c([p({type:Array})],Zr.prototype,"actions",2);var J8=Zr;Zr.define("zn-bulk-actions");var Z8=()=>{let o="attachment",i=new Date().getTime();return`${o}_${i}`},Jl=class{constructor(i,t){this._attachmentContainer=document.createElement("div");this._quill=i,this._options=t,typeof this._options.upload!="function"&&console.warn("[Quill Attachment Module] No upload function provided"),typeof this._options.onFileUploaded!="function"&&console.warn("[Quill Attachment Module] No file uploaded function provided"),this._quill.getModule("toolbar").addHandler("attachment",this._selectLocalImage.bind(this)),this._createAttachmentContainer()}_selectLocalImage(){this._fileHolder=document.createElement("input"),this._fileHolder.setAttribute("type","file"),this._fileHolder.setAttribute("accept","*/*"),this._fileHolder.onchange=this._fileChanged.bind(this),this._fileHolder.click()}_fileChanged(){if(!this._fileHolder?.files||this._fileHolder.files.length<0)return;let i=this._fileHolder.files[0];this.addAttachment(i)}addAttachment(i,t){let r=Z8(),n=a=>{this._insertAttachment({dataUrl:a,file:i,id:r})};if(t)n(t);else{let a=new FileReader;a.addEventListener("load",()=>{let s=a.result;n(s)},!1),a.readAsDataURL(i)}typeof this._options.upload=="function"&&this._options.upload(i).then(async({path:a,url:s})=>{await this._uploadAttachment(i,s),this._updateAttachment(r,s,a)}).catch(a=>{console.warn(a.message)})}_createAttachmentContainer(){let i=this._attachmentContainer;i.id="attachment-container",i.style.display="flex",i.style.flexWrap="wrap",i.style.gap="10px",i.style.position="absolute",i.style.bottom="0",i.style.left="0",i.style.right="0",i.style.padding="10px",this._quill.container.appendChild(i)}_insertAttachment({dataUrl:i,file:t,id:r}){this._attachmentContainer.appendChild(this._createAttachment(i,t,r))}_updateAttachment(i,t,r){let n=this._quill.container.querySelector(`#${i}`);if(!n)return;n.setAttribute("href",t);let a=n.querySelector(".attachment-name");a&&(r?a.textContent=r:a.textContent="Error uploading file"),this._options.onFileUploaded&&this._options.onFileUploaded(n,{url:t});let s=this._options.attachmentInput;if(s&&r){let l=s.value,d=l?JSON.parse(l):[];d.push(r),s.value=JSON.stringify(d)}}_createAttachment(i,t,r){let n=document.createElement("a");n.setAttribute("href",i),n.setAttribute("id",r),n.setAttribute("download",t.name),n.style.padding="10px",n.style.backgroundColor="white",n.style.border="1px solid #ccc",n.style.borderRadius="5px",n.style.display="flex",n.style.alignItems="center",n.style.gap="5px";let a=document.createElement("p");a.classList.add("attachment-name"),a.textContent="Uploading...",n.appendChild(a);let s=document.createElement("button");return s.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 30 30"><path d="M7 4a.995.995 0 0 0-.707.293l-2 2a.999.999 0 0 0 0 1.414L11.586 15l-7.293 7.293a.999.999 0 0 0 0 1.414l2 2a.999.999 0 0 0 1.414 0L15 18.414l7.293 7.293a.999.999 0 0 0 1.414 0l2-2a.999.999 0 0 0 0-1.414L18.414 15l7.293-7.293a.999.999 0 0 0 0-1.414l-2-2a.999.999 0 0 0-1.414 0L15 11.586 7.707 4.293A.996.996 0 0 0 7 4z"/></svg>',s.onclick=l=>{l.preventDefault(),l.stopImmediatePropagation(),this._removeAttachment(r)},n.appendChild(s),n}reset(){this._attachmentContainer.replaceChildren();let i=this._options.attachmentInput;i&&(i.value="")}_removeAttachment(i){let t=this._quill.container.querySelector(`#${i}`);t&&t.remove();let r=this._options.attachmentInput;if(r){let n=r.value,a=t?.querySelector(".attachment-name"),s=n?JSON.parse(n):[],l=s.indexOf(a?.textContent?a.textContent:"");l>-1&&(s.splice(l,1),r.value=JSON.stringify(s))}}_uploadAttachment(i,t){return new Promise((r,n)=>{let a=new XMLHttpRequest;a.open("PUT",t,!0),a.setRequestHeader("Content-Type",i.type),a.onload=()=>{a.status>=200&&a.status<300?r():n(new Error(`[Quill Attachment Module] Failed to upload file. Status: ${a.status}`))},a.onerror=()=>{n(new Error("[Quill Attachment Module] Error occurred while uploading file."))},a.send(i)})}};var J_=kr(ei(),1);var gC=typeof global=="object"&&global&&global.Object===Object&&global,Rp=gC;var bC=typeof self=="object"&&self&&self.Object===Object&&self,vC=Rp||bC||Function("return this")(),Bt=vC;var yC=Bt.Symbol,Pi=yC;var Nx=Object.prototype,xC=Nx.hasOwnProperty,wC=Nx.toString,lc=Pi?Pi.toStringTag:void 0;function zC(o){var i=xC.call(o,lc),t=o[lc];try{o[lc]=void 0;var r=!0}catch{}var n=wC.call(o);return r&&(i?o[lc]=t:delete o[lc]),n}var Ox=zC;var _C=Object.prototype,kC=_C.toString;function SC(o){return kC.call(o)}var Px=SC;var CC="[object Null]",EC="[object Undefined]",Hx=Pi?Pi.toStringTag:void 0;function TC(o){return o==null?o===void 0?EC:CC:Hx&&Hx in Object(o)?Ox(o):Px(o)}var hn=TC;function $C(o){return o!=null&&typeof o=="object"}var gr=$C;var AC=Array.isArray,Hi=AC;function LC(o){var i=typeof o;return o!=null&&(i=="object"||i=="function")}var Lr=LC;function MC(o){return o}var Dp=MC;var qC="[object AsyncFunction]",IC="[object Function]",RC="[object GeneratorFunction]",DC="[object Proxy]";function NC(o){if(!Lr(o))return!1;var i=hn(o);return i==IC||i==RC||i==qC||i==DC}var Ms=NC;var OC=Bt["__core-js_shared__"],Np=OC;var Fx=(function(){var o=/[^.]+$/.exec(Np&&Np.keys&&Np.keys.IE_PROTO||"");return o?"Symbol(src)_1."+o:""})();function PC(o){return!!Fx&&Fx in o}var Bx=PC;var HC=Function.prototype,FC=HC.toString;function BC(o){if(o!=null){try{return FC.call(o)}catch{}try{return o+""}catch{}}return""}var to=BC;var VC=/[\\^$.*+?()[\]{}|]/g,UC=/^\[object .+?Constructor\]$/,jC=Function.prototype,GC=Object.prototype,KC=jC.toString,WC=GC.hasOwnProperty,YC=RegExp("^"+KC.call(WC).replace(VC,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function QC(o){if(!Lr(o)||Bx(o))return!1;var i=Ms(o)?YC:UC;return i.test(to(o))}var Vx=QC;function XC(o,i){return o?.[i]}var Ux=XC;function JC(o,i){var t=Ux(o,i);return Vx(t)?t:void 0}var ti=JC;var ZC=ti(Bt,"WeakMap"),Op=ZC;var jx=Object.create,eE=(function(){function o(){}return function(i){if(!Lr(i))return{};if(jx)return jx(i);o.prototype=i;var t=new o;return o.prototype=void 0,t}})(),Gx=eE;function tE(o,i,t){switch(t.length){case 0:return o.call(i);case 1:return o.call(i,t[0]);case 2:return o.call(i,t[0],t[1]);case 3:return o.call(i,t[0],t[1],t[2])}return o.apply(i,t)}var Kx=tE;function rE(o,i){var t=-1,r=o.length;for(i||(i=Array(r));++t<r;)i[t]=o[t];return i}var Pp=rE;var iE=800,nE=16,oE=Date.now;function aE(o){var i=0,t=0;return function(){var r=oE(),n=nE-(r-t);if(t=r,n>0){if(++i>=iE)return arguments[0]}else i=0;return o.apply(void 0,arguments)}}var Wx=aE;function sE(o){return function(){return o}}var Yx=sE;var lE=(function(){try{var o=ti(Object,"defineProperty");return o({},"",{}),o}catch{}})(),qs=lE;var cE=qs?function(o,i){return qs(o,"toString",{configurable:!0,enumerable:!1,value:Yx(i),writable:!0})}:Dp,Qx=cE;var dE=Wx(Qx),Xx=dE;function pE(o,i){for(var t=-1,r=o==null?0:o.length;++t<r&&i(o[t],t,o)!==!1;);return o}var Jx=pE;var hE=9007199254740991,uE=/^(?:0|[1-9]\d*)$/;function mE(o,i){var t=typeof o;return i=i??hE,!!i&&(t=="number"||t!="symbol"&&uE.test(o))&&o>-1&&o%1==0&&o<i}var Hp=mE;function fE(o,i,t){i=="__proto__"&&qs?qs(o,i,{configurable:!0,enumerable:!0,value:t,writable:!0}):o[i]=t}var Is=fE;function gE(o,i){return o===i||o!==o&&i!==i}var An=gE;var bE=Object.prototype,vE=bE.hasOwnProperty;function yE(o,i,t){var r=o[i];(!(vE.call(o,i)&&An(r,t))||t===void 0&&!(i in o))&&Is(o,i,t)}var Fp=yE;function xE(o,i,t,r){var n=!t;t||(t={});for(var a=-1,s=i.length;++a<s;){var l=i[a],d=r?r(t[l],o[l],l,t,o):void 0;d===void 0&&(d=o[l]),n?Is(t,l,d):Fp(t,l,d)}return t}var Ln=xE;var Zx=Math.max;function wE(o,i,t){return i=Zx(i===void 0?o.length-1:i,0),function(){for(var r=arguments,n=-1,a=Zx(r.length-i,0),s=Array(a);++n<a;)s[n]=r[i+n];n=-1;for(var l=Array(i+1);++n<i;)l[n]=r[n];return l[i]=t(s),Kx(o,this,l)}}var ew=wE;function zE(o,i){return Xx(ew(o,i,Dp),o+"")}var tw=zE;var _E=9007199254740991;function kE(o){return typeof o=="number"&&o>-1&&o%1==0&&o<=_E}var Bp=kE;function SE(o){return o!=null&&Bp(o.length)&&!Ms(o)}var qo=SE;function CE(o,i,t){if(!Lr(t))return!1;var r=typeof i;return(r=="number"?qo(t)&&Hp(i,t.length):r=="string"&&i in t)?An(t[i],o):!1}var rw=CE;function EE(o){return tw(function(i,t){var r=-1,n=t.length,a=n>1?t[n-1]:void 0,s=n>2?t[2]:void 0;for(a=o.length>3&&typeof a=="function"?(n--,a):void 0,s&&rw(t[0],t[1],s)&&(a=n<3?void 0:a,n=1),i=Object(i);++r<n;){var l=t[r];l&&o(i,l,r,a)}return i})}var iw=EE;var TE=Object.prototype;function $E(o){var i=o&&o.constructor,t=typeof i=="function"&&i.prototype||TE;return o===t}var Rs=$E;function AE(o,i){for(var t=-1,r=Array(o);++t<o;)r[t]=i(t);return r}var nw=AE;var LE="[object Arguments]";function ME(o){return gr(o)&&hn(o)==LE}var lf=ME;var ow=Object.prototype,qE=ow.hasOwnProperty,IE=ow.propertyIsEnumerable,RE=lf((function(){return arguments})())?lf:function(o){return gr(o)&&qE.call(o,"callee")&&!IE.call(o,"callee")},cc=RE;function DE(){return!1}var aw=DE;var cw=typeof exports=="object"&&exports&&!exports.nodeType&&exports,sw=cw&&typeof module=="object"&&module&&!module.nodeType&&module,NE=sw&&sw.exports===cw,lw=NE?Bt.Buffer:void 0,OE=lw?lw.isBuffer:void 0,PE=OE||aw,ro=PE;var HE="[object Arguments]",FE="[object Array]",BE="[object Boolean]",VE="[object Date]",UE="[object Error]",jE="[object Function]",GE="[object Map]",KE="[object Number]",WE="[object Object]",YE="[object RegExp]",QE="[object Set]",XE="[object String]",JE="[object WeakMap]",ZE="[object ArrayBuffer]",e7="[object DataView]",t7="[object Float32Array]",r7="[object Float64Array]",i7="[object Int8Array]",n7="[object Int16Array]",o7="[object Int32Array]",a7="[object Uint8Array]",s7="[object Uint8ClampedArray]",l7="[object Uint16Array]",c7="[object Uint32Array]",dt={};dt[t7]=dt[r7]=dt[i7]=dt[n7]=dt[o7]=dt[a7]=dt[s7]=dt[l7]=dt[c7]=!0;dt[HE]=dt[FE]=dt[ZE]=dt[BE]=dt[e7]=dt[VE]=dt[UE]=dt[jE]=dt[GE]=dt[KE]=dt[WE]=dt[YE]=dt[QE]=dt[XE]=dt[JE]=!1;function d7(o){return gr(o)&&Bp(o.length)&&!!dt[hn(o)]}var dw=d7;function p7(o){return function(i){return o(i)}}var Ds=p7;var pw=typeof exports=="object"&&exports&&!exports.nodeType&&exports,dc=pw&&typeof module=="object"&&module&&!module.nodeType&&module,h7=dc&&dc.exports===pw,cf=h7&&Rp.process,u7=(function(){try{var o=dc&&dc.require&&dc.require("util").types;return o||cf&&cf.binding&&cf.binding("util")}catch{}})(),io=u7;var hw=io&&io.isTypedArray,m7=hw?Ds(hw):dw,Ns=m7;var f7=Object.prototype,g7=f7.hasOwnProperty;function b7(o,i){var t=Hi(o),r=!t&&cc(o),n=!t&&!r&&ro(o),a=!t&&!r&&!n&&Ns(o),s=t||r||n||a,l=s?nw(o.length,String):[],d=l.length;for(var h in o)(i||g7.call(o,h))&&!(s&&(h=="length"||n&&(h=="offset"||h=="parent")||a&&(h=="buffer"||h=="byteLength"||h=="byteOffset")||Hp(h,d)))&&l.push(h);return l}var Vp=b7;function v7(o,i){return function(t){return o(i(t))}}var Up=v7;var y7=Up(Object.keys,Object),uw=y7;var x7=Object.prototype,w7=x7.hasOwnProperty;function z7(o){if(!Rs(o))return uw(o);var i=[];for(var t in Object(o))w7.call(o,t)&&t!="constructor"&&i.push(t);return i}var mw=z7;function _7(o){return qo(o)?Vp(o):mw(o)}var Os=_7;function k7(o){var i=[];if(o!=null)for(var t in Object(o))i.push(t);return i}var fw=k7;var S7=Object.prototype,C7=S7.hasOwnProperty;function E7(o){if(!Lr(o))return fw(o);var i=Rs(o),t=[];for(var r in o)r=="constructor"&&(i||!C7.call(o,r))||t.push(r);return t}var gw=E7;function T7(o){return qo(o)?Vp(o,!0):gw(o)}var Mn=T7;var $7=ti(Object,"create"),no=$7;function A7(){this.__data__=no?no(null):{},this.size=0}var bw=A7;function L7(o){var i=this.has(o)&&delete this.__data__[o];return this.size-=i?1:0,i}var vw=L7;var M7="__lodash_hash_undefined__",q7=Object.prototype,I7=q7.hasOwnProperty;function R7(o){var i=this.__data__;if(no){var t=i[o];return t===M7?void 0:t}return I7.call(i,o)?i[o]:void 0}var yw=R7;var D7=Object.prototype,N7=D7.hasOwnProperty;function O7(o){var i=this.__data__;return no?i[o]!==void 0:N7.call(i,o)}var xw=O7;var P7="__lodash_hash_undefined__";function H7(o,i){var t=this.__data__;return this.size+=this.has(o)?0:1,t[o]=no&&i===void 0?P7:i,this}var ww=H7;function Ps(o){var i=-1,t=o==null?0:o.length;for(this.clear();++i<t;){var r=o[i];this.set(r[0],r[1])}}Ps.prototype.clear=bw;Ps.prototype.delete=vw;Ps.prototype.get=yw;Ps.prototype.has=xw;Ps.prototype.set=ww;var df=Ps;function F7(){this.__data__=[],this.size=0}var zw=F7;function B7(o,i){for(var t=o.length;t--;)if(An(o[t][0],i))return t;return-1}var Io=B7;var V7=Array.prototype,U7=V7.splice;function j7(o){var i=this.__data__,t=Io(i,o);if(t<0)return!1;var r=i.length-1;return t==r?i.pop():U7.call(i,t,1),--this.size,!0}var _w=j7;function G7(o){var i=this.__data__,t=Io(i,o);return t<0?void 0:i[t][1]}var kw=G7;function K7(o){return Io(this.__data__,o)>-1}var Sw=K7;function W7(o,i){var t=this.__data__,r=Io(t,o);return r<0?(++this.size,t.push([o,i])):t[r][1]=i,this}var Cw=W7;function Hs(o){var i=-1,t=o==null?0:o.length;for(this.clear();++i<t;){var r=o[i];this.set(r[0],r[1])}}Hs.prototype.clear=zw;Hs.prototype.delete=_w;Hs.prototype.get=kw;Hs.prototype.has=Sw;Hs.prototype.set=Cw;var Ro=Hs;var Y7=ti(Bt,"Map"),Do=Y7;function Q7(){this.size=0,this.__data__={hash:new df,map:new(Do||Ro),string:new df}}var Ew=Q7;function X7(o){var i=typeof o;return i=="string"||i=="number"||i=="symbol"||i=="boolean"?o!=="__proto__":o===null}var Tw=X7;function J7(o,i){var t=o.__data__;return Tw(i)?t[typeof i=="string"?"string":"hash"]:t.map}var No=J7;function Z7(o){var i=No(this,o).delete(o);return this.size-=i?1:0,i}var $w=Z7;function eT(o){return No(this,o).get(o)}var Aw=eT;function tT(o){return No(this,o).has(o)}var Lw=tT;function rT(o,i){var t=No(this,o),r=t.size;return t.set(o,i),this.size+=t.size==r?0:1,this}var Mw=rT;function Fs(o){var i=-1,t=o==null?0:o.length;for(this.clear();++i<t;){var r=o[i];this.set(r[0],r[1])}}Fs.prototype.clear=Ew;Fs.prototype.delete=$w;Fs.prototype.get=Aw;Fs.prototype.has=Lw;Fs.prototype.set=Mw;var jp=Fs;function iT(o,i){for(var t=-1,r=i.length,n=o.length;++t<r;)o[n+t]=i[t];return o}var Gp=iT;var nT=Up(Object.getPrototypeOf,Object),Bs=nT;var oT="[object Object]",aT=Function.prototype,sT=Object.prototype,qw=aT.toString,lT=sT.hasOwnProperty,cT=qw.call(Object);function dT(o){if(!gr(o)||hn(o)!=oT)return!1;var i=Bs(o);if(i===null)return!0;var t=lT.call(i,"constructor")&&i.constructor;return typeof t=="function"&&t instanceof t&&qw.call(t)==cT}var Iw=dT;function pT(){this.__data__=new Ro,this.size=0}var Rw=pT;function hT(o){var i=this.__data__,t=i.delete(o);return this.size=i.size,t}var Dw=hT;function uT(o){return this.__data__.get(o)}var Nw=uT;function mT(o){return this.__data__.has(o)}var Ow=mT;var fT=200;function gT(o,i){var t=this.__data__;if(t instanceof Ro){var r=t.__data__;if(!Do||r.length<fT-1)return r.push([o,i]),this.size=++t.size,this;t=this.__data__=new jp(r)}return t.set(o,i),this.size=t.size,this}var Pw=gT;function Vs(o){var i=this.__data__=new Ro(o);this.size=i.size}Vs.prototype.clear=Rw;Vs.prototype.delete=Dw;Vs.prototype.get=Nw;Vs.prototype.has=Ow;Vs.prototype.set=Pw;var Oo=Vs;function bT(o,i){return o&&Ln(i,Os(i),o)}var Hw=bT;function vT(o,i){return o&&Ln(i,Mn(i),o)}var Fw=vT;var jw=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Bw=jw&&typeof module=="object"&&module&&!module.nodeType&&module,yT=Bw&&Bw.exports===jw,Vw=yT?Bt.Buffer:void 0,Uw=Vw?Vw.allocUnsafe:void 0;function xT(o,i){if(i)return o.slice();var t=o.length,r=Uw?Uw(t):new o.constructor(t);return o.copy(r),r}var Kp=xT;function wT(o,i){for(var t=-1,r=o==null?0:o.length,n=0,a=[];++t<r;){var s=o[t];i(s,t,o)&&(a[n++]=s)}return a}var Gw=wT;function zT(){return[]}var Wp=zT;var _T=Object.prototype,kT=_T.propertyIsEnumerable,Kw=Object.getOwnPropertySymbols,ST=Kw?function(o){return o==null?[]:(o=Object(o),Gw(Kw(o),function(i){return kT.call(o,i)}))}:Wp,Us=ST;function CT(o,i){return Ln(o,Us(o),i)}var Ww=CT;var ET=Object.getOwnPropertySymbols,TT=ET?function(o){for(var i=[];o;)Gp(i,Us(o)),o=Bs(o);return i}:Wp,Yp=TT;function $T(o,i){return Ln(o,Yp(o),i)}var Yw=$T;function AT(o,i,t){var r=i(o);return Hi(o)?r:Gp(r,t(o))}var Qp=AT;function LT(o){return Qp(o,Os,Us)}var pc=LT;function MT(o){return Qp(o,Mn,Yp)}var Qw=MT;var qT=ti(Bt,"DataView"),Xp=qT;var IT=ti(Bt,"Promise"),Jp=IT;var RT=ti(Bt,"Set"),Zp=RT;var Xw="[object Map]",DT="[object Object]",Jw="[object Promise]",Zw="[object Set]",ez="[object WeakMap]",tz="[object DataView]",NT=to(Xp),OT=to(Do),PT=to(Jp),HT=to(Zp),FT=to(Op),Na=hn;(Xp&&Na(new Xp(new ArrayBuffer(1)))!=tz||Do&&Na(new Do)!=Xw||Jp&&Na(Jp.resolve())!=Jw||Zp&&Na(new Zp)!=Zw||Op&&Na(new Op)!=ez)&&(Na=function(o){var i=hn(o),t=i==DT?o.constructor:void 0,r=t?to(t):"";if(r)switch(r){case NT:return tz;case OT:return Xw;case PT:return Jw;case HT:return Zw;case FT:return ez}return i});var oo=Na;var BT=Object.prototype,VT=BT.hasOwnProperty;function UT(o){var i=o.length,t=new o.constructor(i);return i&&typeof o[0]=="string"&&VT.call(o,"index")&&(t.index=o.index,t.input=o.input),t}var rz=UT;var jT=Bt.Uint8Array,js=jT;function GT(o){var i=new o.constructor(o.byteLength);return new js(i).set(new js(o)),i}var Gs=GT;function KT(o,i){var t=i?Gs(o.buffer):o.buffer;return new o.constructor(t,o.byteOffset,o.byteLength)}var iz=KT;var WT=/\w*$/;function YT(o){var i=new o.constructor(o.source,WT.exec(o));return i.lastIndex=o.lastIndex,i}var nz=YT;var oz=Pi?Pi.prototype:void 0,az=oz?oz.valueOf:void 0;function QT(o){return az?Object(az.call(o)):{}}var sz=QT;function XT(o,i){var t=i?Gs(o.buffer):o.buffer;return new o.constructor(t,o.byteOffset,o.length)}var eh=XT;var JT="[object Boolean]",ZT="[object Date]",e$="[object Map]",t$="[object Number]",r$="[object RegExp]",i$="[object Set]",n$="[object String]",o$="[object Symbol]",a$="[object ArrayBuffer]",s$="[object DataView]",l$="[object Float32Array]",c$="[object Float64Array]",d$="[object Int8Array]",p$="[object Int16Array]",h$="[object Int32Array]",u$="[object Uint8Array]",m$="[object Uint8ClampedArray]",f$="[object Uint16Array]",g$="[object Uint32Array]";function b$(o,i,t){var r=o.constructor;switch(i){case a$:return Gs(o);case JT:case ZT:return new r(+o);case s$:return iz(o,t);case l$:case c$:case d$:case p$:case h$:case u$:case m$:case f$:case g$:return eh(o,t);case e$:return new r;case t$:case n$:return new r(o);case r$:return nz(o);case i$:return new r;case o$:return sz(o)}}var lz=b$;function v$(o){return typeof o.constructor=="function"&&!Rs(o)?Gx(Bs(o)):{}}var th=v$;var y$="[object Map]";function x$(o){return gr(o)&&oo(o)==y$}var cz=x$;var dz=io&&io.isMap,w$=dz?Ds(dz):cz,pz=w$;var z$="[object Set]";function _$(o){return gr(o)&&oo(o)==z$}var hz=_$;var uz=io&&io.isSet,k$=uz?Ds(uz):hz,mz=k$;var S$=1,C$=2,E$=4,fz="[object Arguments]",T$="[object Array]",$$="[object Boolean]",A$="[object Date]",L$="[object Error]",gz="[object Function]",M$="[object GeneratorFunction]",q$="[object Map]",I$="[object Number]",bz="[object Object]",R$="[object RegExp]",D$="[object Set]",N$="[object String]",O$="[object Symbol]",P$="[object WeakMap]",H$="[object ArrayBuffer]",F$="[object DataView]",B$="[object Float32Array]",V$="[object Float64Array]",U$="[object Int8Array]",j$="[object Int16Array]",G$="[object Int32Array]",K$="[object Uint8Array]",W$="[object Uint8ClampedArray]",Y$="[object Uint16Array]",Q$="[object Uint32Array]",ot={};ot[fz]=ot[T$]=ot[H$]=ot[F$]=ot[$$]=ot[A$]=ot[B$]=ot[V$]=ot[U$]=ot[j$]=ot[G$]=ot[q$]=ot[I$]=ot[bz]=ot[R$]=ot[D$]=ot[N$]=ot[O$]=ot[K$]=ot[W$]=ot[Y$]=ot[Q$]=!0;ot[L$]=ot[gz]=ot[P$]=!1;function rh(o,i,t,r,n,a){var s,l=i&S$,d=i&C$,h=i&E$;if(t&&(s=n?t(o,r,n,a):t(o)),s!==void 0)return s;if(!Lr(o))return o;var m=Hi(o);if(m){if(s=rz(o),!l)return Pp(o,s)}else{var f=oo(o),b=f==gz||f==M$;if(ro(o))return Kp(o,l);if(f==bz||f==fz||b&&!n){if(s=d||b?{}:th(o),!l)return d?Yw(o,Fw(s,o)):Ww(o,Hw(s,o))}else{if(!ot[f])return n?o:{};s=lz(o,f,l)}}a||(a=new Oo);var g=a.get(o);if(g)return g;a.set(o,s),mz(o)?o.forEach(function(z){s.add(rh(z,i,t,z,o,a))}):pz(o)&&o.forEach(function(z,E){s.set(E,rh(z,i,t,E,o,a))});var v=h?d?Qw:pc:d?Mn:Os,y=m?void 0:v(o);return Jx(y||o,function(z,E){y&&(E=z,z=o[E]),Fp(s,E,rh(z,i,t,E,o,a))}),s}var vz=rh;var X$=1,J$=4;function Z$(o){return vz(o,X$|J$)}var qn=Z$;var eA="__lodash_hash_undefined__";function tA(o){return this.__data__.set(o,eA),this}var yz=tA;function rA(o){return this.__data__.has(o)}var xz=rA;function ih(o){var i=-1,t=o==null?0:o.length;for(this.__data__=new jp;++i<t;)this.add(o[i])}ih.prototype.add=ih.prototype.push=yz;ih.prototype.has=xz;var wz=ih;function iA(o,i){for(var t=-1,r=o==null?0:o.length;++t<r;)if(i(o[t],t,o))return!0;return!1}var zz=iA;function nA(o,i){return o.has(i)}var _z=nA;var oA=1,aA=2;function sA(o,i,t,r,n,a){var s=t&oA,l=o.length,d=i.length;if(l!=d&&!(s&&d>l))return!1;var h=a.get(o),m=a.get(i);if(h&&m)return h==i&&m==o;var f=-1,b=!0,g=t&aA?new wz:void 0;for(a.set(o,i),a.set(i,o);++f<l;){var v=o[f],y=i[f];if(r)var z=s?r(y,v,f,i,o,a):r(v,y,f,o,i,a);if(z!==void 0){if(z)continue;b=!1;break}if(g){if(!zz(i,function(E,N){if(!_z(g,N)&&(v===E||n(v,E,t,r,a)))return g.push(N)})){b=!1;break}}else if(!(v===y||n(v,y,t,r,a))){b=!1;break}}return a.delete(o),a.delete(i),b}var nh=sA;function lA(o){var i=-1,t=Array(o.size);return o.forEach(function(r,n){t[++i]=[n,r]}),t}var kz=lA;function cA(o){var i=-1,t=Array(o.size);return o.forEach(function(r){t[++i]=r}),t}var Sz=cA;var dA=1,pA=2,hA="[object Boolean]",uA="[object Date]",mA="[object Error]",fA="[object Map]",gA="[object Number]",bA="[object RegExp]",vA="[object Set]",yA="[object String]",xA="[object Symbol]",wA="[object ArrayBuffer]",zA="[object DataView]",Cz=Pi?Pi.prototype:void 0,pf=Cz?Cz.valueOf:void 0;function _A(o,i,t,r,n,a,s){switch(t){case zA:if(o.byteLength!=i.byteLength||o.byteOffset!=i.byteOffset)return!1;o=o.buffer,i=i.buffer;case wA:return!(o.byteLength!=i.byteLength||!a(new js(o),new js(i)));case hA:case uA:case gA:return An(+o,+i);case mA:return o.name==i.name&&o.message==i.message;case bA:case yA:return o==i+"";case fA:var l=kz;case vA:var d=r&dA;if(l||(l=Sz),o.size!=i.size&&!d)return!1;var h=s.get(o);if(h)return h==i;r|=pA,s.set(o,i);var m=nh(l(o),l(i),r,n,a,s);return s.delete(o),m;case xA:if(pf)return pf.call(o)==pf.call(i)}return!1}var Ez=_A;var kA=1,SA=Object.prototype,CA=SA.hasOwnProperty;function EA(o,i,t,r,n,a){var s=t&kA,l=pc(o),d=l.length,h=pc(i),m=h.length;if(d!=m&&!s)return!1;for(var f=d;f--;){var b=l[f];if(!(s?b in i:CA.call(i,b)))return!1}var g=a.get(o),v=a.get(i);if(g&&v)return g==i&&v==o;var y=!0;a.set(o,i),a.set(i,o);for(var z=s;++f<d;){b=l[f];var E=o[b],N=i[b];if(r)var U=s?r(N,E,b,i,o,a):r(E,N,b,o,i,a);if(!(U===void 0?E===N||n(E,N,t,r,a):U)){y=!1;break}z||(z=b=="constructor")}if(y&&!z){var R=o.constructor,C=i.constructor;R!=C&&"constructor"in o&&"constructor"in i&&!(typeof R=="function"&&R instanceof R&&typeof C=="function"&&C instanceof C)&&(y=!1)}return a.delete(o),a.delete(i),y}var Tz=EA;var TA=1,$z="[object Arguments]",Az="[object Array]",oh="[object Object]",$A=Object.prototype,Lz=$A.hasOwnProperty;function AA(o,i,t,r,n,a){var s=Hi(o),l=Hi(i),d=s?Az:oo(o),h=l?Az:oo(i);d=d==$z?oh:d,h=h==$z?oh:h;var m=d==oh,f=h==oh,b=d==h;if(b&&ro(o)){if(!ro(i))return!1;s=!0,m=!1}if(b&&!m)return a||(a=new Oo),s||Ns(o)?nh(o,i,t,r,n,a):Ez(o,i,d,t,r,n,a);if(!(t&TA)){var g=m&&Lz.call(o,"__wrapped__"),v=f&&Lz.call(i,"__wrapped__");if(g||v){var y=g?o.value():o,z=v?i.value():i;return a||(a=new Oo),n(y,z,t,r,a)}}return b?(a||(a=new Oo),Tz(o,i,t,r,n,a)):!1}var Mz=AA;function qz(o,i,t,r,n){return o===i?!0:o==null||i==null||!gr(o)&&!gr(i)?o!==o&&i!==i:Mz(o,i,t,r,qz,n)}var Iz=qz;function LA(o){return function(i,t,r){for(var n=-1,a=Object(i),s=r(i),l=s.length;l--;){var d=s[o?l:++n];if(t(a[d],d,a)===!1)break}return i}}var Rz=LA;var MA=Rz(),Dz=MA;function qA(o,i,t){(t!==void 0&&!An(o[i],t)||t===void 0&&!(i in o))&&Is(o,i,t)}var hc=qA;function IA(o){return gr(o)&&qo(o)}var Nz=IA;function RA(o,i){if(!(i==="constructor"&&typeof o[i]=="function")&&i!="__proto__")return o[i]}var uc=RA;function DA(o){return Ln(o,Mn(o))}var Oz=DA;function NA(o,i,t,r,n,a,s){var l=uc(o,t),d=uc(i,t),h=s.get(d);if(h){hc(o,t,h);return}var m=a?a(l,d,t+"",o,i,s):void 0,f=m===void 0;if(f){var b=Hi(d),g=!b&&ro(d),v=!b&&!g&&Ns(d);m=d,b||g||v?Hi(l)?m=l:Nz(l)?m=Pp(l):g?(f=!1,m=Kp(d,!0)):v?(f=!1,m=eh(d,!0)):m=[]:Iw(d)||cc(d)?(m=l,cc(l)?m=Oz(l):(!Lr(l)||Ms(l))&&(m=th(d))):f=!1}f&&(s.set(d,m),n(m,d,r,a,s),s.delete(d)),hc(o,t,m)}var Pz=NA;function Hz(o,i,t,r,n){o!==i&&Dz(i,function(a,s){if(n||(n=new Oo),Lr(a))Pz(o,i,s,t,Hz,r,n);else{var l=r?r(uc(o,s),a,s+"",o,i,n):void 0;l===void 0&&(l=a),hc(o,s,l)}},Mn)}var Fz=Hz;function OA(o,i){return Iz(o,i)}var Oa=OA;var PA=iw(function(o,i,t){Fz(o,i,t)}),ri=PA;var gc={};X3(gc,{Attributor:()=>Vr,AttributorStore:()=>mc,BlockBlot:()=>Pa,ClassAttributor:()=>Vt,ContainerBlot:()=>Xs,EmbedBlot:()=>wt,InlineBlot:()=>ah,LeafBlot:()=>Ut,ParentBlot:()=>ii,Registry:()=>Fo,Scope:()=>X,ScrollBlot:()=>fc,StyleAttributor:()=>ni,TextBlot:()=>Js});var X=(o=>(o[o.TYPE=3]="TYPE",o[o.LEVEL=12]="LEVEL",o[o.ATTRIBUTE=13]="ATTRIBUTE",o[o.BLOT=14]="BLOT",o[o.INLINE=7]="INLINE",o[o.BLOCK=11]="BLOCK",o[o.BLOCK_BLOT=10]="BLOCK_BLOT",o[o.INLINE_BLOT=6]="INLINE_BLOT",o[o.BLOCK_ATTRIBUTE=9]="BLOCK_ATTRIBUTE",o[o.INLINE_ATTRIBUTE=5]="INLINE_ATTRIBUTE",o[o.ANY=15]="ANY",o))(X||{}),Vr=class{constructor(i,t,r={}){this.attrName=i,this.keyName=t;let n=X.TYPE&X.ATTRIBUTE;this.scope=r.scope!=null?r.scope&X.LEVEL|n:X.ATTRIBUTE,r.whitelist!=null&&(this.whitelist=r.whitelist)}static keys(i){return Array.from(i.attributes).map(t=>t.name)}add(i,t){return this.canAdd(i,t)?(i.setAttribute(this.keyName,t),!0):!1}canAdd(i,t){return this.whitelist==null?!0:typeof t=="string"?this.whitelist.indexOf(t.replace(/["']/g,""))>-1:this.whitelist.indexOf(t)>-1}remove(i){i.removeAttribute(this.keyName)}value(i){let t=i.getAttribute(this.keyName);return this.canAdd(i,t)&&t?t:""}},Ho=class extends Error{constructor(i){i="[Parchment] "+i,super(i),this.message=i,this.name=this.constructor.name}},Uz=class uf{constructor(){this.attributes={},this.classes={},this.tags={},this.types={}}static find(i,t=!1){if(i==null)return null;if(this.blots.has(i))return this.blots.get(i)||null;if(t){let r=null;try{r=i.parentNode}catch{return null}return this.find(r,t)}return null}create(i,t,r){let n=this.query(t);if(n==null)throw new Ho(`Unable to create ${t} blot`);let a=n,s=t instanceof Node||t.nodeType===Node.TEXT_NODE?t:a.create(r),l=new a(i,s,r);return uf.blots.set(l.domNode,l),l}find(i,t=!1){return uf.find(i,t)}query(i,t=X.ANY){let r;return typeof i=="string"?r=this.types[i]||this.attributes[i]:i instanceof Text||i.nodeType===Node.TEXT_NODE?r=this.types.text:typeof i=="number"?i&X.LEVEL&X.BLOCK?r=this.types.block:i&X.LEVEL&X.INLINE&&(r=this.types.inline):i instanceof Element&&((i.getAttribute("class")||"").split(/\s+/).some(n=>(r=this.classes[n],!!r)),r=r||this.tags[i.tagName]),r==null?null:"scope"in r&&t&X.LEVEL&r.scope&&t&X.TYPE&r.scope?r:null}register(...i){return i.map(t=>{let r="blotName"in t,n="attrName"in t;if(!r&&!n)throw new Ho("Invalid definition");if(r&&t.blotName==="abstract")throw new Ho("Cannot register abstract class");let a=r?t.blotName:n?t.attrName:void 0;return this.types[a]=t,n?typeof t.keyName=="string"&&(this.attributes[t.keyName]=t):r&&(t.className&&(this.classes[t.className]=t),t.tagName&&(Array.isArray(t.tagName)?t.tagName=t.tagName.map(s=>s.toUpperCase()):t.tagName=t.tagName.toUpperCase(),(Array.isArray(t.tagName)?t.tagName:[t.tagName]).forEach(s=>{(this.tags[s]==null||t.className==null)&&(this.tags[s]=t)}))),t})}};Uz.blots=new WeakMap;var Fo=Uz;function Bz(o,i){return(o.getAttribute("class")||"").split(/\s+/).filter(t=>t.indexOf(`${i}-`)===0)}var mf=class extends Vr{static keys(i){return(i.getAttribute("class")||"").split(/\s+/).map(t=>t.split("-").slice(0,-1).join("-"))}add(i,t){return this.canAdd(i,t)?(this.remove(i),i.classList.add(`${this.keyName}-${t}`),!0):!1}remove(i){Bz(i,this.keyName).forEach(t=>{i.classList.remove(t)}),i.classList.length===0&&i.removeAttribute("class")}value(i){let t=(Bz(i,this.keyName)[0]||"").slice(this.keyName.length+1);return this.canAdd(i,t)?t:""}},Vt=mf;function hf(o){let i=o.split("-"),t=i.slice(1).map(r=>r[0].toUpperCase()+r.slice(1)).join("");return i[0]+t}var ff=class extends Vr{static keys(i){return(i.getAttribute("style")||"").split(";").map(t=>t.split(":")[0].trim())}add(i,t){return this.canAdd(i,t)?(i.style[hf(this.keyName)]=t,!0):!1}remove(i){i.style[hf(this.keyName)]="",i.getAttribute("style")||i.removeAttribute("style")}value(i){let t=i.style[hf(this.keyName)];return this.canAdd(i,t)?t:""}},ni=ff,gf=class{constructor(i){this.attributes={},this.domNode=i,this.build()}attribute(i,t){t?i.add(this.domNode,t)&&(i.value(this.domNode)!=null?this.attributes[i.attrName]=i:delete this.attributes[i.attrName]):(i.remove(this.domNode),delete this.attributes[i.attrName])}build(){this.attributes={};let i=Fo.find(this.domNode);if(i==null)return;let t=Vr.keys(this.domNode),r=Vt.keys(this.domNode),n=ni.keys(this.domNode);t.concat(r).concat(n).forEach(a=>{let s=i.scroll.query(a,X.ATTRIBUTE);s instanceof Vr&&(this.attributes[s.attrName]=s)})}copy(i){Object.keys(this.attributes).forEach(t=>{let r=this.attributes[t].value(this.domNode);i.format(t,r)})}move(i){this.copy(i),Object.keys(this.attributes).forEach(t=>{this.attributes[t].remove(this.domNode)}),this.attributes={}}values(){return Object.keys(this.attributes).reduce((i,t)=>(i[t]=this.attributes[t].value(this.domNode),i),{})}},mc=gf,jz=class{constructor(i,t){this.scroll=i,this.domNode=t,Fo.blots.set(t,this),this.prev=null,this.next=null}static create(i){if(this.tagName==null)throw new Ho("Blot definition missing tagName");let t,r;return Array.isArray(this.tagName)?(typeof i=="string"?(r=i.toUpperCase(),parseInt(r,10).toString()===r&&(r=parseInt(r,10))):typeof i=="number"&&(r=i),typeof r=="number"?t=document.createElement(this.tagName[r-1]):r&&this.tagName.indexOf(r)>-1?t=document.createElement(r):t=document.createElement(this.tagName[0])):t=document.createElement(this.tagName),this.className&&t.classList.add(this.className),t}get statics(){return this.constructor}attach(){}clone(){let i=this.domNode.cloneNode(!1);return this.scroll.create(i)}detach(){this.parent!=null&&this.parent.removeChild(this),Fo.blots.delete(this.domNode)}deleteAt(i,t){this.isolate(i,t).remove()}formatAt(i,t,r,n){let a=this.isolate(i,t);if(this.scroll.query(r,X.BLOT)!=null&&n)a.wrap(r,n);else if(this.scroll.query(r,X.ATTRIBUTE)!=null){let s=this.scroll.create(this.statics.scope);a.wrap(s),s.format(r,n)}}insertAt(i,t,r){let n=r==null?this.scroll.create("text",t):this.scroll.create(t,r),a=this.split(i);this.parent.insertBefore(n,a||void 0)}isolate(i,t){let r=this.split(i);if(r==null)throw new Error("Attempt to isolate at end");return r.split(t),r}length(){return 1}offset(i=this.parent){return this.parent==null||this===i?0:this.parent.children.offset(this)+this.parent.offset(i)}optimize(i){this.statics.requiredContainer&&!(this.parent instanceof this.statics.requiredContainer)&&this.wrap(this.statics.requiredContainer.blotName)}remove(){this.domNode.parentNode!=null&&this.domNode.parentNode.removeChild(this.domNode),this.detach()}replaceWith(i,t){let r=typeof i=="string"?this.scroll.create(i,t):i;return this.parent!=null&&(this.parent.insertBefore(r,this.next||void 0),this.remove()),r}split(i,t){return i===0?this:this.next}update(i,t){}wrap(i,t){let r=typeof i=="string"?this.scroll.create(i,t):i;if(this.parent!=null&&this.parent.insertBefore(r,this.next||void 0),typeof r.appendChild!="function")throw new Ho(`Cannot wrap ${i}`);return r.appendChild(this),r}};jz.blotName="abstract";var Gz=jz,Kz=class extends Gz{static value(i){return!0}index(i,t){return this.domNode===i||this.domNode.compareDocumentPosition(i)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(t,1):-1}position(i,t){let r=Array.from(this.parent.domNode.childNodes).indexOf(this.domNode);return i>0&&(r+=1),[this.parent.domNode,r]}value(){return{[this.statics.blotName]:this.statics.value(this.domNode)||!0}}};Kz.scope=X.INLINE_BLOT;var HA=Kz,Ut=HA,bf=class{constructor(){this.head=null,this.tail=null,this.length=0}append(...i){if(this.insertBefore(i[0],null),i.length>1){let t=i.slice(1);this.append(...t)}}at(i){let t=this.iterator(),r=t();for(;r&&i>0;)i-=1,r=t();return r}contains(i){let t=this.iterator(),r=t();for(;r;){if(r===i)return!0;r=t()}return!1}indexOf(i){let t=this.iterator(),r=t(),n=0;for(;r;){if(r===i)return n;n+=1,r=t()}return-1}insertBefore(i,t){i!=null&&(this.remove(i),i.next=t,t!=null?(i.prev=t.prev,t.prev!=null&&(t.prev.next=i),t.prev=i,t===this.head&&(this.head=i)):this.tail!=null?(this.tail.next=i,i.prev=this.tail,this.tail=i):(i.prev=null,this.head=this.tail=i),this.length+=1)}offset(i){let t=0,r=this.head;for(;r!=null;){if(r===i)return t;t+=r.length(),r=r.next}return-1}remove(i){this.contains(i)&&(i.prev!=null&&(i.prev.next=i.next),i.next!=null&&(i.next.prev=i.prev),i===this.head&&(this.head=i.next),i===this.tail&&(this.tail=i.prev),this.length-=1)}iterator(i=this.head){return()=>{let t=i;return i!=null&&(i=i.next),t}}find(i,t=!1){let r=this.iterator(),n=r();for(;n;){let a=n.length();if(i<a||t&&i===a&&(n.next==null||n.next.length()!==0))return[n,i];i-=a,n=r()}return[null,0]}forEach(i){let t=this.iterator(),r=t();for(;r;)i(r),r=t()}forEachAt(i,t,r){if(t<=0)return;let[n,a]=this.find(i),s=i-a,l=this.iterator(n),d=l();for(;d&&s<i+t;){let h=d.length();i>s?r(d,i-s,Math.min(t,s+h-i)):r(d,0,Math.min(h,i+t-s)),s+=h,d=l()}}map(i){return this.reduce((t,r)=>(t.push(i(r)),t),[])}reduce(i,t){let r=this.iterator(),n=r();for(;n;)t=i(t,n),n=r();return t}};function Vz(o,i){let t=i.find(o);if(t)return t;try{return i.create(o)}catch{let r=i.create(X.INLINE);return Array.from(o.childNodes).forEach(n=>{r.domNode.appendChild(n)}),o.parentNode&&o.parentNode.replaceChild(r.domNode,o),r.attach(),r}}var Wz=class Po extends Gz{constructor(i,t){super(i,t),this.uiNode=null,this.build()}appendChild(i){this.insertBefore(i)}attach(){super.attach(),this.children.forEach(i=>{i.attach()})}attachUI(i){this.uiNode!=null&&this.uiNode.remove(),this.uiNode=i,Po.uiClass&&this.uiNode.classList.add(Po.uiClass),this.uiNode.setAttribute("contenteditable","false"),this.domNode.insertBefore(this.uiNode,this.domNode.firstChild)}build(){this.children=new bf,Array.from(this.domNode.childNodes).filter(i=>i!==this.uiNode).reverse().forEach(i=>{try{let t=Vz(i,this.scroll);this.insertBefore(t,this.children.head||void 0)}catch(t){if(t instanceof Ho)return;throw t}})}deleteAt(i,t){if(i===0&&t===this.length())return this.remove();this.children.forEachAt(i,t,(r,n,a)=>{r.deleteAt(n,a)})}descendant(i,t=0){let[r,n]=this.children.find(t);return i.blotName==null&&i(r)||i.blotName!=null&&r instanceof i?[r,n]:r instanceof Po?r.descendant(i,n):[null,-1]}descendants(i,t=0,r=Number.MAX_VALUE){let n=[],a=r;return this.children.forEachAt(t,r,(s,l,d)=>{(i.blotName==null&&i(s)||i.blotName!=null&&s instanceof i)&&n.push(s),s instanceof Po&&(n=n.concat(s.descendants(i,l,a))),a-=d}),n}detach(){this.children.forEach(i=>{i.detach()}),super.detach()}enforceAllowedChildren(){let i=!1;this.children.forEach(t=>{i||this.statics.allowedChildren.some(r=>t instanceof r)||(t.statics.scope===X.BLOCK_BLOT?(t.next!=null&&this.splitAfter(t),t.prev!=null&&this.splitAfter(t.prev),t.parent.unwrap(),i=!0):t instanceof Po?t.unwrap():t.remove())})}formatAt(i,t,r,n){this.children.forEachAt(i,t,(a,s,l)=>{a.formatAt(s,l,r,n)})}insertAt(i,t,r){let[n,a]=this.children.find(i);if(n)n.insertAt(a,t,r);else{let s=r==null?this.scroll.create("text",t):this.scroll.create(t,r);this.appendChild(s)}}insertBefore(i,t){i.parent!=null&&i.parent.children.remove(i);let r=null;this.children.insertBefore(i,t||null),i.parent=this,t!=null&&(r=t.domNode),(this.domNode.parentNode!==i.domNode||this.domNode.nextSibling!==r)&&this.domNode.insertBefore(i.domNode,r),i.attach()}length(){return this.children.reduce((i,t)=>i+t.length(),0)}moveChildren(i,t){this.children.forEach(r=>{i.insertBefore(r,t)})}optimize(i){if(super.optimize(i),this.enforceAllowedChildren(),this.uiNode!=null&&this.uiNode!==this.domNode.firstChild&&this.domNode.insertBefore(this.uiNode,this.domNode.firstChild),this.children.length===0)if(this.statics.defaultChild!=null){let t=this.scroll.create(this.statics.defaultChild.blotName);this.appendChild(t)}else this.remove()}path(i,t=!1){let[r,n]=this.children.find(i,t),a=[[this,i]];return r instanceof Po?a.concat(r.path(n,t)):(r!=null&&a.push([r,n]),a)}removeChild(i){this.children.remove(i)}replaceWith(i,t){let r=typeof i=="string"?this.scroll.create(i,t):i;return r instanceof Po&&this.moveChildren(r),super.replaceWith(r)}split(i,t=!1){if(!t){if(i===0)return this;if(i===this.length())return this.next}let r=this.clone();return this.parent&&this.parent.insertBefore(r,this.next||void 0),this.children.forEachAt(i,this.length(),(n,a,s)=>{let l=n.split(a,t);l!=null&&r.appendChild(l)}),r}splitAfter(i){let t=this.clone();for(;i.next!=null;)t.appendChild(i.next);return this.parent&&this.parent.insertBefore(t,this.next||void 0),t}unwrap(){this.parent&&this.moveChildren(this.parent,this.next||void 0),this.remove()}update(i,t){let r=[],n=[];i.forEach(a=>{a.target===this.domNode&&a.type==="childList"&&(r.push(...a.addedNodes),n.push(...a.removedNodes))}),n.forEach(a=>{if(a.parentNode!=null&&a.tagName!=="IFRAME"&&document.body.compareDocumentPosition(a)&Node.DOCUMENT_POSITION_CONTAINED_BY)return;let s=this.scroll.find(a);s!=null&&(s.domNode.parentNode==null||s.domNode.parentNode===this.domNode)&&s.detach()}),r.filter(a=>a.parentNode===this.domNode&&a!==this.uiNode).sort((a,s)=>a===s?0:a.compareDocumentPosition(s)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1).forEach(a=>{let s=null;a.nextSibling!=null&&(s=this.scroll.find(a.nextSibling));let l=Vz(a,this.scroll);(l.next!==s||l.next==null)&&(l.parent!=null&&l.parent.removeChild(this),this.insertBefore(l,s||void 0))}),this.enforceAllowedChildren()}};Wz.uiClass="";var FA=Wz,ii=FA;function BA(o,i){if(Object.keys(o).length!==Object.keys(i).length)return!1;for(let t in o)if(o[t]!==i[t])return!1;return!0}var Ks=class Ws extends ii{static create(i){return super.create(i)}static formats(i,t){let r=t.query(Ws.blotName);if(!(r!=null&&i.tagName===r.tagName)){if(typeof this.tagName=="string")return!0;if(Array.isArray(this.tagName))return i.tagName.toLowerCase()}}constructor(i,t){super(i,t),this.attributes=new mc(this.domNode)}format(i,t){if(i===this.statics.blotName&&!t)this.children.forEach(r=>{r instanceof Ws||(r=r.wrap(Ws.blotName,!0)),this.attributes.copy(r)}),this.unwrap();else{let r=this.scroll.query(i,X.INLINE);if(r==null)return;r instanceof Vr?this.attributes.attribute(r,t):t&&(i!==this.statics.blotName||this.formats()[i]!==t)&&this.replaceWith(i,t)}}formats(){let i=this.attributes.values(),t=this.statics.formats(this.domNode,this.scroll);return t!=null&&(i[this.statics.blotName]=t),i}formatAt(i,t,r,n){this.formats()[r]!=null||this.scroll.query(r,X.ATTRIBUTE)?this.isolate(i,t).format(r,n):super.formatAt(i,t,r,n)}optimize(i){super.optimize(i);let t=this.formats();if(Object.keys(t).length===0)return this.unwrap();let r=this.next;r instanceof Ws&&r.prev===this&&BA(t,r.formats())&&(r.moveChildren(this),r.remove())}replaceWith(i,t){let r=super.replaceWith(i,t);return this.attributes.copy(r),r}update(i,t){super.update(i,t),i.some(r=>r.target===this.domNode&&r.type==="attributes")&&this.attributes.build()}wrap(i,t){let r=super.wrap(i,t);return r instanceof Ws&&this.attributes.move(r),r}};Ks.allowedChildren=[Ks,Ut],Ks.blotName="inline",Ks.scope=X.INLINE_BLOT,Ks.tagName="SPAN";var VA=Ks,ah=VA,Ys=class vf extends ii{static create(i){return super.create(i)}static formats(i,t){let r=t.query(vf.blotName);if(!(r!=null&&i.tagName===r.tagName)){if(typeof this.tagName=="string")return!0;if(Array.isArray(this.tagName))return i.tagName.toLowerCase()}}constructor(i,t){super(i,t),this.attributes=new mc(this.domNode)}format(i,t){let r=this.scroll.query(i,X.BLOCK);r!=null&&(r instanceof Vr?this.attributes.attribute(r,t):i===this.statics.blotName&&!t?this.replaceWith(vf.blotName):t&&(i!==this.statics.blotName||this.formats()[i]!==t)&&this.replaceWith(i,t))}formats(){let i=this.attributes.values(),t=this.statics.formats(this.domNode,this.scroll);return t!=null&&(i[this.statics.blotName]=t),i}formatAt(i,t,r,n){this.scroll.query(r,X.BLOCK)!=null?this.format(r,n):super.formatAt(i,t,r,n)}insertAt(i,t,r){if(r==null||this.scroll.query(t,X.INLINE)!=null)super.insertAt(i,t,r);else{let n=this.split(i);if(n!=null){let a=this.scroll.create(t,r);n.parent.insertBefore(a,n)}else throw new Error("Attempt to insertAt after block boundaries")}}replaceWith(i,t){let r=super.replaceWith(i,t);return this.attributes.copy(r),r}update(i,t){super.update(i,t),i.some(r=>r.target===this.domNode&&r.type==="attributes")&&this.attributes.build()}};Ys.blotName="block",Ys.scope=X.BLOCK_BLOT,Ys.tagName="P",Ys.allowedChildren=[ah,Ys,Ut];var UA=Ys,Pa=UA,yf=class extends ii{checkMerge(){return this.next!==null&&this.next.statics.blotName===this.statics.blotName}deleteAt(i,t){super.deleteAt(i,t),this.enforceAllowedChildren()}formatAt(i,t,r,n){super.formatAt(i,t,r,n),this.enforceAllowedChildren()}insertAt(i,t,r){super.insertAt(i,t,r),this.enforceAllowedChildren()}optimize(i){super.optimize(i),this.children.length>0&&this.next!=null&&this.checkMerge()&&(this.next.moveChildren(this),this.next.remove())}};yf.blotName="container",yf.scope=X.BLOCK_BLOT;var jA=yf,Xs=jA,xf=class extends Ut{static formats(i,t){}format(i,t){super.formatAt(0,this.length(),i,t)}formatAt(i,t,r,n){i===0&&t===this.length()?this.format(r,n):super.formatAt(i,t,r,n)}formats(){return this.statics.formats(this.domNode,this.scroll)}},wt=xf,GA={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},KA=100,Qs=class extends ii{constructor(i,t){super(null,t),this.registry=i,this.scroll=this,this.build(),this.observer=new MutationObserver(r=>{this.update(r)}),this.observer.observe(this.domNode,GA),this.attach()}create(i,t){return this.registry.create(this,i,t)}find(i,t=!1){let r=this.registry.find(i,t);return r?r.scroll===this?r:t?this.find(r.scroll.domNode.parentNode,!0):null:null}query(i,t=X.ANY){return this.registry.query(i,t)}register(...i){return this.registry.register(...i)}build(){this.scroll!=null&&super.build()}detach(){super.detach(),this.observer.disconnect()}deleteAt(i,t){this.update(),i===0&&t===this.length()?this.children.forEach(r=>{r.remove()}):super.deleteAt(i,t)}formatAt(i,t,r,n){this.update(),super.formatAt(i,t,r,n)}insertAt(i,t,r){this.update(),super.insertAt(i,t,r)}optimize(i=[],t={}){super.optimize(t);let r=t.mutationsMap||new WeakMap,n=Array.from(this.observer.takeRecords());for(;n.length>0;)i.push(n.pop());let a=(d,h=!0)=>{d==null||d===this||d.domNode.parentNode!=null&&(r.has(d.domNode)||r.set(d.domNode,[]),h&&a(d.parent))},s=d=>{r.has(d.domNode)&&(d instanceof ii&&d.children.forEach(s),r.delete(d.domNode),d.optimize(t))},l=i;for(let d=0;l.length>0;d+=1){if(d>=KA)throw new Error("[Parchment] Maximum optimize iterations reached");for(l.forEach(h=>{let m=this.find(h.target,!0);m!=null&&(m.domNode===h.target&&(h.type==="childList"?(a(this.find(h.previousSibling,!1)),Array.from(h.addedNodes).forEach(f=>{let b=this.find(f,!1);a(b,!1),b instanceof ii&&b.children.forEach(g=>{a(g,!1)})})):h.type==="attributes"&&a(m.prev)),a(m))}),this.children.forEach(s),l=Array.from(this.observer.takeRecords()),n=l.slice();n.length>0;)i.push(n.pop())}}update(i,t={}){i=i||this.observer.takeRecords();let r=new WeakMap;i.map(n=>{let a=this.find(n.target,!0);return a==null?null:r.has(a.domNode)?(r.get(a.domNode).push(n),null):(r.set(a.domNode,[n]),a)}).forEach(n=>{n!=null&&n!==this&&r.has(n.domNode)&&n.update(r.get(n.domNode)||[],t)}),t.mutationsMap=r,r.has(this.domNode)&&super.update(r.get(this.domNode),t),this.optimize(i,t)}};Qs.blotName="scroll",Qs.defaultChild=Pa,Qs.allowedChildren=[Pa,Xs],Qs.scope=X.BLOCK_BLOT,Qs.tagName="DIV";var WA=Qs,fc=WA,wf=class Yz extends Ut{static create(i){return document.createTextNode(i)}static value(i){return i.data}constructor(i,t){super(i,t),this.text=this.statics.value(this.domNode)}deleteAt(i,t){this.domNode.data=this.text=this.text.slice(0,i)+this.text.slice(i+t)}index(i,t){return this.domNode===i?t:-1}insertAt(i,t,r){r==null?(this.text=this.text.slice(0,i)+t+this.text.slice(i),this.domNode.data=this.text):super.insertAt(i,t,r)}length(){return this.text.length}optimize(i){super.optimize(i),this.text=this.statics.value(this.domNode),this.text.length===0?this.remove():this.next instanceof Yz&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())}position(i,t=!1){return[this.domNode,i]}split(i,t=!1){if(!t){if(i===0)return this;if(i===this.length())return this.next}let r=this.scroll.create(this.domNode.splitText(i));return this.parent.insertBefore(r,this.next||void 0),this.text=this.statics.value(this.domNode),r}update(i,t){i.some(r=>r.type==="characterData"&&r.target===this.domNode)&&(this.text=this.statics.value(this.domNode))}value(){return this.text}};wf.blotName="text",wf.scope=X.INLINE_BLOT;var YA=wf,Js=YA;var Vo=kr(ei(),1);var zt=kr(ei(),1);var _f=kr(ei(),1);var bc=class extends wt{static value(){}optimize(){(this.prev||this.next)&&this.remove()}length(){return 0}value(){return""}};bc.blotName="break";bc.tagName="BR";var Mr=bc;var Rt=class extends Js{},QA={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function Ha(o){return o.replace(/[&<>"']/g,i=>QA[i])}var In=class In extends ah{static compare(i,t){let r=In.order.indexOf(i),n=In.order.indexOf(t);return r>=0||n>=0?r-n:i===t?0:i<t?-1:1}formatAt(i,t,r,n){if(In.compare(this.statics.blotName,r)<0&&this.scroll.query(r,X.BLOT)){let a=this.isolate(i,t);n&&a.wrap(r,n)}else super.formatAt(i,t,r,n)}optimize(i){if(super.optimize(i),this.parent instanceof In&&In.compare(this.statics.blotName,this.parent.statics.blotName)>0){let t=this.parent.isolate(this.offset(),this.length());this.moveChildren(t),t.wrap(this)}}};V(In,"allowedChildren",[In,Mr,wt,Rt]),V(In,"order",["cursor","inline","link","underline","strike","italic","bold","script","code"]);var zf=In,qr=zf;var Qz=1,Je=class extends Pa{constructor(){super(...arguments);V(this,"cache",{})}delta(){return this.cache.delta==null&&(this.cache.delta=kf(this)),this.cache.delta}deleteAt(t,r){super.deleteAt(t,r),this.cache={}}formatAt(t,r,n,a){r<=0||(this.scroll.query(n,X.BLOCK)?t+r===this.length()&&this.format(n,a):super.formatAt(t,Math.min(r,this.length()-t-1),n,a),this.cache={})}insertAt(t,r,n){if(n!=null){super.insertAt(t,r,n),this.cache={};return}if(r.length===0)return;let a=r.split(`
2896
2896
  `),s=a.shift();s.length>0&&(t<this.length()-1||this.children.tail==null?super.insertAt(Math.min(t,this.length()-1),s):this.children.tail.insertAt(this.children.tail.length(),s),this.cache={});let l=this;a.reduce((d,h)=>(l=l.split(d,!0),l.insertAt(0,h),h.length),t+s.length)}insertBefore(t,r){let{head:n}=this.children;super.insertBefore(t,r),n instanceof Mr&&n.remove(),this.cache={}}length(){return this.cache.length==null&&(this.cache.length=super.length()+Qz),this.cache.length}moveChildren(t,r){super.moveChildren(t,r),this.cache={}}optimize(t){super.optimize(t),this.cache={}}path(t){return super.path(t,!0)}removeChild(t){super.removeChild(t),this.cache={}}split(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(r&&(t===0||t>=this.length()-Qz)){let a=this.clone();return t===0?(this.parent.insertBefore(a,this),this):(this.parent.insertBefore(a,this.next),a)}let n=super.split(t,r);return this.cache={},n}};Je.blotName="block";Je.tagName="P";Je.defaultChild=Mr;Je.allowedChildren=[Mr,qr,wt,Rt];var Xt=class extends wt{attach(){super.attach(),this.attributes=new mc(this.domNode)}delta(){return new _f.default().insert(this.value(),{...this.formats(),...this.attributes.values()})}format(i,t){let r=this.scroll.query(i,X.BLOCK_ATTRIBUTE);r!=null&&this.attributes.attribute(r,t)}formatAt(i,t,r,n){this.format(r,n)}insertAt(i,t,r){if(r!=null){super.insertAt(i,t,r);return}let n=t.split(`
2897
2897
  `),a=n.pop(),s=n.map(d=>{let h=this.scroll.create(Je.blotName);return h.insertAt(0,d),h}),l=this.split(i);s.forEach(d=>{this.parent.insertBefore(d,l)}),a&&this.parent.insertBefore(this.scroll.create("text",a),l)}};Xt.scope=X.BLOCK_BLOT;function kf(o){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return o.descendants(Ut).reduce((t,r)=>r.length()===0?t:t.insert(r.value(),oi(r,{},i)),new _f.default).insert(`
2898
2898
  `,oi(o))}function oi(o){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;return o==null||("formats"in o&&typeof o.formats=="function"&&(i={...i,...o.formats()},t&&delete i["code-token"]),o.parent==null||o.parent.statics.blotName==="scroll"||o.parent.statics.scope!==o.statics.scope)?i:oi(o.parent,i,t)}var Fi=class Fi extends wt{static value(){}constructor(i,t,r){super(i,t),this.selection=r,this.textNode=document.createTextNode(Fi.CONTENTS),this.domNode.appendChild(this.textNode),this.savedLength=0}detach(){this.parent!=null&&this.parent.removeChild(this)}format(i,t){if(this.savedLength!==0){super.format(i,t);return}let r=this,n=0;for(;r!=null&&r.statics.scope!==X.BLOCK_BLOT;)n+=r.offset(r.parent),r=r.parent;r!=null&&(this.savedLength=Fi.CONTENTS.length,r.optimize(),r.formatAt(n,Fi.CONTENTS.length,i,t),this.savedLength=0)}index(i,t){return i===this.textNode?0:super.index(i,t)}length(){return this.savedLength}position(){return[this.textNode,this.textNode.data.length]}remove(){super.remove(),this.parent=null}restore(){if(this.selection.composing||this.parent==null)return null;let i=this.selection.getNativeRange();for(;this.domNode.lastChild!=null&&this.domNode.lastChild!==this.textNode;)this.domNode.parentNode.insertBefore(this.domNode.lastChild,this.domNode);let t=this.prev instanceof Rt?this.prev:null,r=t?t.length():0,n=this.next instanceof Rt?this.next:null,a=n?n.text:"",{textNode:s}=this,l=s.data.split(Fi.CONTENTS).join("");s.data=Fi.CONTENTS;let d;if(t)d=t,(l||n)&&(t.insertAt(t.length(),l+a),n&&n.remove());else if(n)d=n,n.insertAt(0,l);else{let h=document.createTextNode(l);d=this.scroll.create(h),this.parent.insertBefore(d,this)}if(this.remove(),i){let h=(b,g)=>t&&b===t.domNode?g:b===s?r+g-1:n&&b===n.domNode?r+l.length+g:null,m=h(i.start.node,i.start.offset),f=h(i.end.node,i.end.offset);if(m!==null&&f!==null)return{startNode:d.domNode,startOffset:m,endNode:d.domNode,endOffset:f}}return null}update(i,t){if(i.some(r=>r.type==="characterData"&&r.target===this.textNode)){let r=this.restore();r&&(t.range=r)}}optimize(i){super.optimize(i);let{parent:t}=this;for(;t;){if(t.domNode.tagName==="A"){this.savedLength=Fi.CONTENTS.length,t.isolate(this.offset(t),this.length()).unwrap(),this.savedLength=0;break}t=t.parent}}value(){return""}};V(Fi,"blotName","cursor"),V(Fi,"className","ql-cursor"),V(Fi,"tagName","span"),V(Fi,"CONTENTS","\uFEFF");var Sf=Fi,Bo=Sf;var Ef=kr(Jz(),1);var yc=new WeakMap;var Tf=["error","warn","log","info"],$f="warn";function Zz(o){if($f&&Tf.indexOf(o)<=Tf.indexOf($f)){for(var i=arguments.length,t=new Array(i>1?i-1:0),r=1;r<i;r++)t[r-1]=arguments[r];console[o](...t)}}function Af(o){return Tf.reduce((i,t)=>(i[t]=Zz.bind(console,t,o),i),{})}Af.level=o=>{$f=o};Zz.level=Af.level;var _i=Af;var Lf=_i("quill:events"),ZA=["selectionchange","mousedown","mouseup","click"];ZA.forEach(o=>{document.addEventListener(o,function(){for(var i=arguments.length,t=new Array(i),r=0;r<i;r++)t[r]=arguments[r];Array.from(document.querySelectorAll(".ql-container")).forEach(n=>{let a=yc.get(n);a&&a.emitter&&a.emitter.handleDOM(...t)})})});var xc=class extends Ef.default{constructor(){super(),this.domListeners={},this.on("error",Lf.error)}emit(){for(var i=arguments.length,t=new Array(i),r=0;r<i;r++)t[r]=arguments[r];return Lf.log.call(Lf,...t),super.emit(...t)}handleDOM(i){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];(this.domListeners[i.type]||[]).forEach(a=>{let{node:s,handler:l}=a;(i.target===s||s.contains(i.target))&&l(i,...r)})}listenDOM(i,t,r){this.domListeners[i]||(this.domListeners[i]=[]),this.domListeners[i].push({node:t,handler:r})}};V(xc,"events",{EDITOR_CHANGE:"editor-change",SCROLL_BEFORE_UPDATE:"scroll-before-update",SCROLL_BLOT_MOUNT:"scroll-blot-mount",SCROLL_BLOT_UNMOUNT:"scroll-blot-unmount",SCROLL_OPTIMIZE:"scroll-optimize",SCROLL_UPDATE:"scroll-update",SCROLL_EMBED_UPDATE:"scroll-embed-update",SELECTION_CHANGE:"selection-change",TEXT_CHANGE:"text-change",COMPOSITION_BEFORE_START:"composition-before-start",COMPOSITION_START:"composition-start",COMPOSITION_BEFORE_END:"composition-before-end",COMPOSITION_END:"composition-end"}),V(xc,"sources",{API:"api",SILENT:"silent",USER:"user"});var J=xc;var Mf=_i("quill:selection"),jr=class{constructor(i){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;this.index=i,this.length=t}},If=class{constructor(i,t){this.emitter=t,this.scroll=i,this.composing=!1,this.mouseDown=!1,this.root=this.scroll.domNode,this.cursor=this.scroll.create("cursor",this),this.savedRange=new jr(0,0),this.lastRange=this.savedRange,this.lastNative=null,this.handleComposition(),this.handleDragging(),this.emitter.listenDOM("selectionchange",document,()=>{!this.mouseDown&&!this.composing&&setTimeout(this.update.bind(this,J.sources.USER),1)}),this.emitter.on(J.events.SCROLL_BEFORE_UPDATE,()=>{if(!this.hasFocus())return;let r=this.getNativeRange();r!=null&&r.start.node!==this.cursor.textNode&&this.emitter.once(J.events.SCROLL_UPDATE,(n,a)=>{try{this.root.contains(r.start.node)&&this.root.contains(r.end.node)&&this.setNativeRange(r.start.node,r.start.offset,r.end.node,r.end.offset);let s=a.some(l=>l.type==="characterData"||l.type==="childList"||l.type==="attributes"&&l.target===this.root);this.update(s?J.sources.SILENT:n)}catch{}})}),this.emitter.on(J.events.SCROLL_OPTIMIZE,(r,n)=>{if(n.range){let{startNode:a,startOffset:s,endNode:l,endOffset:d}=n.range;this.setNativeRange(a,s,l,d),this.update(J.sources.SILENT)}}),this.update(J.sources.SILENT)}handleComposition(){this.emitter.on(J.events.COMPOSITION_BEFORE_START,()=>{this.composing=!0}),this.emitter.on(J.events.COMPOSITION_END,()=>{if(this.composing=!1,this.cursor.parent){let i=this.cursor.restore();if(!i)return;setTimeout(()=>{this.setNativeRange(i.startNode,i.startOffset,i.endNode,i.endOffset)},1)}})}handleDragging(){this.emitter.listenDOM("mousedown",document.body,()=>{this.mouseDown=!0}),this.emitter.listenDOM("mouseup",document.body,()=>{this.mouseDown=!1,this.update(J.sources.USER)})}focus(){this.hasFocus()||(this.root.focus({preventScroll:!0}),this.setRange(this.savedRange))}format(i,t){this.scroll.update();let r=this.getNativeRange();if(!(r==null||!r.native.collapsed||this.scroll.query(i,X.BLOCK))){if(r.start.node!==this.cursor.textNode){let n=this.scroll.find(r.start.node,!1);if(n==null)return;if(n instanceof Ut){let a=n.split(r.start.offset);n.parent.insertBefore(this.cursor,a)}else n.insertBefore(this.cursor,r.start.node);this.cursor.attach()}this.cursor.format(i,t),this.scroll.optimize(),this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length),this.update()}}getBounds(i){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=this.scroll.length();i=Math.min(i,r-1),t=Math.min(i+t,r-1)-i;let n,[a,s]=this.scroll.leaf(i);if(a==null)return null;if(t>0&&s===a.length()){let[m]=this.scroll.leaf(i+1);if(m){let[f]=this.scroll.line(i),[b]=this.scroll.line(i+1);f===b&&(a=m,s=0)}}[n,s]=a.position(s,!0);let l=document.createRange();if(t>0)return l.setStart(n,s),[a,s]=this.scroll.leaf(i+t),a==null?null:([n,s]=a.position(s,!0),l.setEnd(n,s),l.getBoundingClientRect());let d="left",h;if(n instanceof Text){if(!n.data.length)return null;s<n.data.length?(l.setStart(n,s),l.setEnd(n,s+1)):(l.setStart(n,s-1),l.setEnd(n,s),d="right"),h=l.getBoundingClientRect()}else{if(!(a.domNode instanceof Element))return null;h=a.domNode.getBoundingClientRect(),s>0&&(d="right")}return{bottom:h.top+h.height,height:h.height,left:h[d],right:h[d],top:h.top,width:0}}getNativeRange(){let i=document.getSelection();if(i==null||i.rangeCount<=0)return null;let t=i.getRangeAt(0);if(t==null)return null;let r=this.normalizeNative(t);return Mf.info("getNativeRange",r),r}getRange(){let i=this.scroll.domNode;if("isConnected"in i&&!i.isConnected)return[null,null];let t=this.getNativeRange();return t==null?[null,null]:[this.normalizedToRange(t),t]}hasFocus(){return document.activeElement===this.root||document.activeElement!=null&&qf(this.root,document.activeElement)}normalizedToRange(i){let t=[[i.start.node,i.start.offset]];i.native.collapsed||t.push([i.end.node,i.end.offset]);let r=t.map(s=>{let[l,d]=s,h=this.scroll.find(l,!0),m=h.offset(this.scroll);return d===0?m:h instanceof Ut?m+h.index(l,d):m+h.length()}),n=Math.min(Math.max(...r),this.scroll.length()-1),a=Math.min(n,...r);return new jr(a,n-a)}normalizeNative(i){if(!qf(this.root,i.startContainer)||!i.collapsed&&!qf(this.root,i.endContainer))return null;let t={start:{node:i.startContainer,offset:i.startOffset},end:{node:i.endContainer,offset:i.endOffset},native:i};return[t.start,t.end].forEach(r=>{let{node:n,offset:a}=r;for(;!(n instanceof Text)&&n.childNodes.length>0;)if(n.childNodes.length>a)n=n.childNodes[a],a=0;else if(n.childNodes.length===a)n=n.lastChild,n instanceof Text?a=n.data.length:n.childNodes.length>0?a=n.childNodes.length:a=n.childNodes.length+1;else break;r.node=n,r.offset=a}),t}rangeToNative(i){let t=this.scroll.length(),r=(n,a)=>{n=Math.min(t-1,n);let[s,l]=this.scroll.leaf(n);return s?s.position(l,a):[null,-1]};return[...r(i.index,!1),...r(i.index+i.length,!0)]}setNativeRange(i,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:i,n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:t,a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(Mf.info("setNativeRange",i,t,r,n),i!=null&&(this.root.parentNode==null||i.parentNode==null||r.parentNode==null))return;let s=document.getSelection();if(s!=null)if(i!=null){this.hasFocus()||this.root.focus({preventScroll:!0});let{native:l}=this.getNativeRange()||{};if(l==null||a||i!==l.startContainer||t!==l.startOffset||r!==l.endContainer||n!==l.endOffset){i instanceof Element&&i.tagName==="BR"&&(t=Array.from(i.parentNode.childNodes).indexOf(i),i=i.parentNode),r instanceof Element&&r.tagName==="BR"&&(n=Array.from(r.parentNode.childNodes).indexOf(r),r=r.parentNode);let d=document.createRange();d.setStart(i,t),d.setEnd(r,n),s.removeAllRanges(),s.addRange(d)}}else s.removeAllRanges(),this.root.blur()}setRange(i){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:J.sources.API;if(typeof t=="string"&&(r=t,t=!1),Mf.info("setRange",i),i!=null){let n=this.rangeToNative(i);this.setNativeRange(...n,t)}else this.setNativeRange(null);this.update(r)}update(){let i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:J.sources.USER,t=this.lastRange,[r,n]=this.getRange();if(this.lastRange=r,this.lastNative=n,this.lastRange!=null&&(this.savedRange=this.lastRange),!Oa(t,this.lastRange)){if(!this.composing&&n!=null&&n.native.collapsed&&n.start.node!==this.cursor.textNode){let s=this.cursor.restore();s&&this.setNativeRange(s.startNode,s.startOffset,s.endNode,s.endOffset)}let a=[J.events.SELECTION_CHANGE,qn(this.lastRange),qn(t),i];this.emitter.emit(J.events.EDITOR_CHANGE,...a),i!==J.sources.SILENT&&this.emitter.emit(...a)}}};function qf(o,i){try{i.parentNode}catch{return!1}return o.contains(i)}var e_=If;var eL=/^[ -~]*$/,Df=class{constructor(i){this.scroll=i,this.delta=this.getDelta()}applyDelta(i){this.scroll.update();let t=this.scroll.length();this.scroll.batchStart();let r=t_(i),n=new zt.default;return rL(r.ops.slice()).reduce((s,l)=>{let d=zt.Op.length(l),h=l.attributes||{},m=!1,f=!1;if(l.insert!=null){if(n.retain(d),typeof l.insert=="string"){let v=l.insert;f=!v.endsWith(`
@@ -3064,7 +3064,7 @@ ${Ha(this.code(i,t))}
3064
3064
  class="textarea__control"
3065
3065
  title=${this.title}
3066
3066
  name=${O(this.name)}
3067
- .value=${ar(this.value)}
3067
+ .value=${or(this.value)}
3068
3068
  ?disabled=${this.disabled}
3069
3069
  ?readonly=${this.readonly}
3070
3070
  ?required=${this.required}
@@ -3375,7 +3375,7 @@ ${Ha(this.code(i,t))}
3375
3375
  * Copyright (c) 2017-2024, Slab
3376
3376
  * Copyright (c) 2014, Jason Chen
3377
3377
  * Copyright (c) 2013, salesforce.com
3378
- */.ql-container{box-sizing:border-box;font-family:Helvetica,Arial,sans-serif;font-size:13px;height:100%;margin:0;position:relative}.ql-container.ql-disabled .ql-tooltip{visibility:hidden}.ql-container:not(.ql-disabled) li[data-list=checked]>.ql-ui,.ql-container:not(.ql-disabled) li[data-list=unchecked]>.ql-ui{cursor:pointer}.ql-clipboard{left:-100000px;height:1px;overflow-y:hidden;position:absolute;top:50%}.ql-clipboard p{margin:0;padding:0}.ql-editor{box-sizing:border-box;counter-reset:list-0 list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9;line-height:1.42;height:100%;outline:none;overflow-y:auto;padding:12px 15px;-o-tab-size:4;tab-size:4;-moz-tab-size:4;text-align:left;white-space:pre-wrap;word-wrap:break-word}.ql-editor>*{cursor:text}.ql-editor p,.ql-editor ol,.ql-editor pre,.ql-editor blockquote,.ql-editor h1,.ql-editor h2,.ql-editor h3,.ql-editor h4,.ql-editor h5,.ql-editor h6{margin:0;padding:0}@supports (counter-set:none){.ql-editor p,.ql-editor h1,.ql-editor h2,.ql-editor h3,.ql-editor h4,.ql-editor h5,.ql-editor h6{counter-set:list-0 list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9}}@supports not (counter-set:none){.ql-editor p,.ql-editor h1,.ql-editor h2,.ql-editor h3,.ql-editor h4,.ql-editor h5,.ql-editor h6{counter-reset:list-0 list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9}}.ql-editor table{border-collapse:collapse}.ql-editor td{border:1px solid #000;padding:2px 5px}.ql-editor ol{padding-left:1.5em}.ql-editor li{list-style-type:none;padding-left:1.5em;position:relative}.ql-editor li>.ql-ui:before{display:inline-block;margin-left:-1.5em;margin-right:0.3em;text-align:right;white-space:nowrap;width:1.2em}.ql-editor li[data-list=checked]>.ql-ui,.ql-editor li[data-list=unchecked]>.ql-ui{color:#777}.ql-editor li[data-list=bullet]>.ql-ui:before{content:"•"}.ql-editor li[data-list=checked]>.ql-ui:before{content:"☑"}.ql-editor li[data-list=unchecked]>.ql-ui:before{content:"☐"}@supports (counter-set:none){.ql-editor li[data-list]{counter-set:list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9}}@supports not (counter-set:none){.ql-editor li[data-list]{counter-reset:list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9}}.ql-editor li[data-list=ordered]{counter-increment:list-0}.ql-editor li[data-list=ordered]>.ql-ui:before{content:counter(list-0,decimal) ". "}.ql-editor li[data-list=ordered].ql-indent-1{counter-increment:list-1}.ql-editor li[data-list=ordered].ql-indent-1>.ql-ui:before{content:counter(list-1,lower-alpha) ". "}@supports (counter-set:none){.ql-editor li[data-list].ql-indent-1{counter-set:list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9}}@supports not (counter-set:none){.ql-editor li[data-list].ql-indent-1{counter-reset:list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9}}.ql-editor li[data-list=ordered].ql-indent-2{counter-increment:list-2}.ql-editor li[data-list=ordered].ql-indent-2>.ql-ui:before{content:counter(list-2,lower-roman) ". "}@supports (counter-set:none){.ql-editor li[data-list].ql-indent-2{counter-set:list-3 list-4 list-5 list-6 list-7 list-8 list-9}}@supports not (counter-set:none){.ql-editor li[data-list].ql-indent-2{counter-reset:list-3 list-4 list-5 list-6 list-7 list-8 list-9}}.ql-editor li[data-list=ordered].ql-indent-3{counter-increment:list-3}.ql-editor li[data-list=ordered].ql-indent-3>.ql-ui:before{content:counter(list-3,decimal) ". "}@supports (counter-set:none){.ql-editor li[data-list].ql-indent-3{counter-set:list-4 list-5 list-6 list-7 list-8 list-9}}@supports not (counter-set:none){.ql-editor li[data-list].ql-indent-3{counter-reset:list-4 list-5 list-6 list-7 list-8 list-9}}.ql-editor li[data-list=ordered].ql-indent-4{counter-increment:list-4}.ql-editor li[data-list=ordered].ql-indent-4>.ql-ui:before{content:counter(list-4,lower-alpha) ". "}@supports (counter-set:none){.ql-editor li[data-list].ql-indent-4{counter-set:list-5 list-6 list-7 list-8 list-9}}@supports not (counter-set:none){.ql-editor li[data-list].ql-indent-4{counter-reset:list-5 list-6 list-7 list-8 list-9}}.ql-editor li[data-list=ordered].ql-indent-5{counter-increment:list-5}.ql-editor li[data-list=ordered].ql-indent-5>.ql-ui:before{content:counter(list-5,lower-roman) ". "}@supports (counter-set:none){.ql-editor li[data-list].ql-indent-5{counter-set:list-6 list-7 list-8 list-9}}@supports not (counter-set:none){.ql-editor li[data-list].ql-indent-5{counter-reset:list-6 list-7 list-8 list-9}}.ql-editor li[data-list=ordered].ql-indent-6{counter-increment:list-6}.ql-editor li[data-list=ordered].ql-indent-6>.ql-ui:before{content:counter(list-6,decimal) ". "}@supports (counter-set:none){.ql-editor li[data-list].ql-indent-6{counter-set:list-7 list-8 list-9}}@supports not (counter-set:none){.ql-editor li[data-list].ql-indent-6{counter-reset:list-7 list-8 list-9}}.ql-editor li[data-list=ordered].ql-indent-7{counter-increment:list-7}.ql-editor li[data-list=ordered].ql-indent-7>.ql-ui:before{content:counter(list-7,lower-alpha) ". "}@supports (counter-set:none){.ql-editor li[data-list].ql-indent-7{counter-set:list-8 list-9}}@supports not (counter-set:none){.ql-editor li[data-list].ql-indent-7{counter-reset:list-8 list-9}}.ql-editor li[data-list=ordered].ql-indent-8{counter-increment:list-8}.ql-editor li[data-list=ordered].ql-indent-8>.ql-ui:before{content:counter(list-8,lower-roman) ". "}@supports (counter-set:none){.ql-editor li[data-list].ql-indent-8{counter-set:list-9}}@supports not (counter-set:none){.ql-editor li[data-list].ql-indent-8{counter-reset:list-9}}.ql-editor li[data-list=ordered].ql-indent-9{counter-increment:list-9}.ql-editor li[data-list=ordered].ql-indent-9>.ql-ui:before{content:counter(list-9,decimal) ". "}.ql-editor .ql-indent-1:not(.ql-direction-rtl){padding-left:3em}.ql-editor li.ql-indent-1:not(.ql-direction-rtl){padding-left:4.5em}.ql-editor .ql-indent-1.ql-direction-rtl.ql-align-right{padding-right:3em}.ql-editor li.ql-indent-1.ql-direction-rtl.ql-align-right{padding-right:4.5em}.ql-editor .ql-indent-2:not(.ql-direction-rtl){padding-left:6em}.ql-editor li.ql-indent-2:not(.ql-direction-rtl){padding-left:7.5em}.ql-editor .ql-indent-2.ql-direction-rtl.ql-align-right{padding-right:6em}.ql-editor li.ql-indent-2.ql-direction-rtl.ql-align-right{padding-right:7.5em}.ql-editor .ql-indent-3:not(.ql-direction-rtl){padding-left:9em}.ql-editor li.ql-indent-3:not(.ql-direction-rtl){padding-left:10.5em}.ql-editor .ql-indent-3.ql-direction-rtl.ql-align-right{padding-right:9em}.ql-editor li.ql-indent-3.ql-direction-rtl.ql-align-right{padding-right:10.5em}.ql-editor .ql-indent-4:not(.ql-direction-rtl){padding-left:12em}.ql-editor li.ql-indent-4:not(.ql-direction-rtl){padding-left:13.5em}.ql-editor .ql-indent-4.ql-direction-rtl.ql-align-right{padding-right:12em}.ql-editor li.ql-indent-4.ql-direction-rtl.ql-align-right{padding-right:13.5em}.ql-editor .ql-indent-5:not(.ql-direction-rtl){padding-left:15em}.ql-editor li.ql-indent-5:not(.ql-direction-rtl){padding-left:16.5em}.ql-editor .ql-indent-5.ql-direction-rtl.ql-align-right{padding-right:15em}.ql-editor li.ql-indent-5.ql-direction-rtl.ql-align-right{padding-right:16.5em}.ql-editor .ql-indent-6:not(.ql-direction-rtl){padding-left:18em}.ql-editor li.ql-indent-6:not(.ql-direction-rtl){padding-left:19.5em}.ql-editor .ql-indent-6.ql-direction-rtl.ql-align-right{padding-right:18em}.ql-editor li.ql-indent-6.ql-direction-rtl.ql-align-right{padding-right:19.5em}.ql-editor .ql-indent-7:not(.ql-direction-rtl){padding-left:21em}.ql-editor li.ql-indent-7:not(.ql-direction-rtl){padding-left:22.5em}.ql-editor .ql-indent-7.ql-direction-rtl.ql-align-right{padding-right:21em}.ql-editor li.ql-indent-7.ql-direction-rtl.ql-align-right{padding-right:22.5em}.ql-editor .ql-indent-8:not(.ql-direction-rtl){padding-left:24em}.ql-editor li.ql-indent-8:not(.ql-direction-rtl){padding-left:25.5em}.ql-editor .ql-indent-8.ql-direction-rtl.ql-align-right{padding-right:24em}.ql-editor li.ql-indent-8.ql-direction-rtl.ql-align-right{padding-right:25.5em}.ql-editor .ql-indent-9:not(.ql-direction-rtl){padding-left:27em}.ql-editor li.ql-indent-9:not(.ql-direction-rtl){padding-left:28.5em}.ql-editor .ql-indent-9.ql-direction-rtl.ql-align-right{padding-right:27em}.ql-editor li.ql-indent-9.ql-direction-rtl.ql-align-right{padding-right:28.5em}.ql-editor li.ql-direction-rtl{padding-right:1.5em}.ql-editor li.ql-direction-rtl>.ql-ui:before{margin-left:0.3em;margin-right:-1.5em;text-align:left}.ql-editor table{table-layout:fixed;width:100%}.ql-editor table td{outline:none}.ql-editor .ql-code-block-container{font-family:monospace}.ql-editor .ql-video{display:block;max-width:100%}.ql-editor .ql-video.ql-align-center{margin:0 auto}.ql-editor .ql-video.ql-align-right{margin:0 0 0 auto}.ql-editor .ql-bg-black{background-color:#000}.ql-editor .ql-bg-red{background-color:#e60000}.ql-editor .ql-bg-orange{background-color:#f90}.ql-editor .ql-bg-yellow{background-color:#ff0}.ql-editor .ql-bg-green{background-color:#008a00}.ql-editor .ql-bg-blue{background-color:#06c}.ql-editor .ql-bg-purple{background-color:#93f}.ql-editor .ql-color-white{color:#fff}.ql-editor .ql-color-red{color:#e60000}.ql-editor .ql-color-orange{color:#f90}.ql-editor .ql-color-yellow{color:#ff0}.ql-editor .ql-color-green{color:#008a00}.ql-editor .ql-color-blue{color:#06c}.ql-editor .ql-color-purple{color:#93f}.ql-editor .ql-font-serif{font-family:Georgia,Times New Roman,serif}.ql-editor .ql-font-monospace{font-family:Monaco,Courier New,monospace}.ql-editor .ql-size-small{font-size:0.75em}.ql-editor .ql-size-large{font-size:1.5em}.ql-editor .ql-size-huge{font-size:2.5em}.ql-editor .ql-direction-rtl{direction:rtl;text-align:inherit}.ql-editor .ql-align-center{text-align:center}.ql-editor .ql-align-justify{text-align:justify}.ql-editor .ql-align-right{text-align:right}.ql-editor .ql-ui{position:absolute}.ql-editor.ql-blank::before{color:rgba(0,0,0,0.6);content:attr(data-placeholder);font-style:italic;left:15px;pointer-events:none;position:absolute;right:15px}.ql-snow.ql-toolbar:after,.ql-snow .ql-toolbar:after{clear:both;content:"";display:table}.ql-snow.ql-toolbar button,.ql-snow .ql-toolbar button{background:none;border:none;cursor:pointer;display:inline-block;float:left;height:24px;padding:3px 5px;width:28px}.ql-snow.ql-toolbar button svg,.ql-snow .ql-toolbar button svg{float:left;height:100%}.ql-snow.ql-toolbar button:active:hover,.ql-snow .ql-toolbar button:active:hover{outline:none}.ql-snow.ql-toolbar input.ql-image[type=file],.ql-snow .ql-toolbar input.ql-image[type=file]{display:none}.ql-snow.ql-toolbar button:hover,.ql-snow .ql-toolbar button:hover,.ql-snow.ql-toolbar button:focus,.ql-snow .ql-toolbar button:focus,.ql-snow.ql-toolbar button.ql-active,.ql-snow .ql-toolbar button.ql-active,.ql-snow.ql-toolbar .ql-picker-label:hover,.ql-snow .ql-toolbar .ql-picker-label:hover,.ql-snow.ql-toolbar .ql-picker-label.ql-active,.ql-snow .ql-toolbar .ql-picker-label.ql-active,.ql-snow.ql-toolbar .ql-picker-item:hover,.ql-snow .ql-toolbar .ql-picker-item:hover,.ql-snow.ql-toolbar .ql-picker-item.ql-selected,.ql-snow .ql-toolbar .ql-picker-item.ql-selected{color:#06c}.ql-snow.ql-toolbar button:hover .ql-fill,.ql-snow .ql-toolbar button:hover .ql-fill,.ql-snow.ql-toolbar button:focus .ql-fill,.ql-snow .ql-toolbar button:focus .ql-fill,.ql-snow.ql-toolbar button.ql-active .ql-fill,.ql-snow .ql-toolbar button.ql-active .ql-fill,.ql-snow.ql-toolbar .ql-picker-label:hover .ql-fill,.ql-snow .ql-toolbar .ql-picker-label:hover .ql-fill,.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-fill,.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-fill,.ql-snow.ql-toolbar .ql-picker-item:hover .ql-fill,.ql-snow .ql-toolbar .ql-picker-item:hover .ql-fill,.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-fill,.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-fill,.ql-snow.ql-toolbar button:hover .ql-stroke.ql-fill,.ql-snow .ql-toolbar button:hover .ql-stroke.ql-fill,.ql-snow.ql-toolbar button:focus .ql-stroke.ql-fill,.ql-snow .ql-toolbar button:focus .ql-stroke.ql-fill,.ql-snow.ql-toolbar button.ql-active .ql-stroke.ql-fill,.ql-snow .ql-toolbar button.ql-active .ql-stroke.ql-fill,.ql-snow.ql-toolbar .ql-picker-label:hover .ql-stroke.ql-fill,.ql-snow .ql-toolbar .ql-picker-label:hover .ql-stroke.ql-fill,.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-stroke.ql-fill,.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-stroke.ql-fill,.ql-snow.ql-toolbar .ql-picker-item:hover .ql-stroke.ql-fill,.ql-snow .ql-toolbar .ql-picker-item:hover .ql-stroke.ql-fill,.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-stroke.ql-fill,.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-stroke.ql-fill{fill:#06c}.ql-snow.ql-toolbar button:hover .ql-stroke,.ql-snow .ql-toolbar button:hover .ql-stroke,.ql-snow.ql-toolbar button:focus .ql-stroke,.ql-snow .ql-toolbar button:focus .ql-stroke,.ql-snow.ql-toolbar button.ql-active .ql-stroke,.ql-snow .ql-toolbar button.ql-active .ql-stroke,.ql-snow.ql-toolbar .ql-picker-label:hover .ql-stroke,.ql-snow .ql-toolbar .ql-picker-label:hover .ql-stroke,.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-stroke,.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-stroke,.ql-snow.ql-toolbar .ql-picker-item:hover .ql-stroke,.ql-snow .ql-toolbar .ql-picker-item:hover .ql-stroke,.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-stroke,.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-stroke,.ql-snow.ql-toolbar button:hover .ql-stroke-miter,.ql-snow .ql-toolbar button:hover .ql-stroke-miter,.ql-snow.ql-toolbar button:focus .ql-stroke-miter,.ql-snow .ql-toolbar button:focus .ql-stroke-miter,.ql-snow.ql-toolbar button.ql-active .ql-stroke-miter,.ql-snow .ql-toolbar button.ql-active .ql-stroke-miter,.ql-snow.ql-toolbar .ql-picker-label:hover .ql-stroke-miter,.ql-snow .ql-toolbar .ql-picker-label:hover .ql-stroke-miter,.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-stroke-miter,.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-stroke-miter,.ql-snow.ql-toolbar .ql-picker-item:hover .ql-stroke-miter,.ql-snow .ql-toolbar .ql-picker-item:hover .ql-stroke-miter,.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-stroke-miter,.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-stroke-miter{stroke:#06c}@media (pointer:coarse){.ql-snow.ql-toolbar button:hover:not(.ql-active),.ql-snow .ql-toolbar button:hover:not(.ql-active){color:#444}.ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-fill,.ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-fill,.ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-stroke.ql-fill,.ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-stroke.ql-fill{fill:#444}.ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-stroke,.ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-stroke,.ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-stroke-miter,.ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-stroke-miter{stroke:#444}}.ql-snow{box-sizing:border-box}.ql-snow *{box-sizing:border-box}.ql-snow .ql-hidden{display:none}.ql-snow .ql-out-bottom,.ql-snow .ql-out-top{visibility:hidden}.ql-snow .ql-tooltip{position:absolute;transform:translateY(10px)}.ql-snow .ql-tooltip a{cursor:pointer;text-decoration:none}.ql-snow .ql-tooltip.ql-flip{transform:translateY(-10px)}.ql-snow .ql-formats{display:inline-block;vertical-align:middle}.ql-snow .ql-formats:after{clear:both;content:"";display:table}.ql-snow .ql-stroke{fill:none;stroke:#444;stroke-linecap:round;stroke-linejoin:round;stroke-width:2}.ql-snow .ql-stroke-miter{fill:none;stroke:#444;stroke-miterlimit:10;stroke-width:2}.ql-snow .ql-fill,.ql-snow .ql-stroke.ql-fill{fill:#444}.ql-snow .ql-empty{fill:none}.ql-snow .ql-even{fill-rule:evenodd}.ql-snow .ql-thin,.ql-snow .ql-stroke.ql-thin{stroke-width:1}.ql-snow .ql-transparent{opacity:0.4}.ql-snow .ql-direction svg:last-child{display:none}.ql-snow .ql-direction.ql-active svg:last-child{display:inline}.ql-snow .ql-direction.ql-active svg:first-child{display:none}.ql-snow .ql-editor h1{font-size:2em}.ql-snow .ql-editor h2{font-size:1.5em}.ql-snow .ql-editor h3{font-size:1.17em}.ql-snow .ql-editor h4{font-size:1em}.ql-snow .ql-editor h5{font-size:0.83em}.ql-snow .ql-editor h6{font-size:0.67em}.ql-snow .ql-editor a{text-decoration:underline}.ql-snow .ql-editor blockquote{border-left:4px solid #ccc;margin-bottom:5px;margin-top:5px;padding-left:16px}.ql-snow .ql-editor code,.ql-snow .ql-editor .ql-code-block-container{background-color:#f0f0f0;border-radius:3px}.ql-snow .ql-editor .ql-code-block-container{margin-bottom:5px;margin-top:5px;padding:5px 10px}.ql-snow .ql-editor code{font-size:85%;padding:2px 4px}.ql-snow .ql-editor .ql-code-block-container{background-color:#23241f;color:#f8f8f2;overflow:visible}.ql-snow .ql-editor img{max-width:100%}.ql-snow .ql-picker{color:#444;display:inline-block;float:left;font-size:14px;font-weight:500;height:24px;position:relative;vertical-align:middle}.ql-snow .ql-picker-label{cursor:pointer;display:inline-block;height:100%;padding-left:8px;padding-right:2px;position:relative;width:100%}.ql-snow .ql-picker-label::before{display:inline-block;line-height:22px}.ql-snow .ql-picker-options{background-color:#fff;display:none;min-width:100%;padding:4px 8px;position:absolute;white-space:nowrap}.ql-snow .ql-picker-options .ql-picker-item{cursor:pointer;display:block;padding-bottom:5px;padding-top:5px}.ql-snow .ql-picker.ql-expanded .ql-picker-label{color:#ccc;z-index:2}.ql-snow .ql-picker.ql-expanded .ql-picker-label .ql-fill{fill:#ccc}.ql-snow .ql-picker.ql-expanded .ql-picker-label .ql-stroke{stroke:#ccc}.ql-snow .ql-picker.ql-expanded .ql-picker-options{display:block;margin-top:-1px;top:100%;z-index:1}.ql-snow .ql-color-picker,.ql-snow .ql-icon-picker{width:28px}.ql-snow .ql-color-picker .ql-picker-label,.ql-snow .ql-icon-picker .ql-picker-label{padding:2px 4px}.ql-snow .ql-color-picker .ql-picker-label svg,.ql-snow .ql-icon-picker .ql-picker-label svg{right:4px}.ql-snow .ql-icon-picker .ql-picker-options{padding:4px 0}.ql-snow .ql-icon-picker .ql-picker-item{height:24px;width:24px;padding:2px 4px}.ql-snow .ql-color-picker .ql-picker-options{padding:3px 5px;width:152px}.ql-snow .ql-color-picker .ql-picker-item{border:1px solid transparent;float:left;height:16px;margin:2px;padding:0;width:16px}.ql-snow .ql-picker:not(.ql-color-picker):not(.ql-icon-picker) svg{position:absolute;margin-top:-9px;right:0;top:50%;width:18px}.ql-snow .ql-picker.ql-header .ql-picker-label[data-label]:not([data-label=""])::before,.ql-snow .ql-picker.ql-font .ql-picker-label[data-label]:not([data-label=""])::before,.ql-snow .ql-picker.ql-size .ql-picker-label[data-label]:not([data-label=""])::before,.ql-snow .ql-picker.ql-header .ql-picker-item[data-label]:not([data-label=""])::before,.ql-snow .ql-picker.ql-font .ql-picker-item[data-label]:not([data-label=""])::before,.ql-snow .ql-picker.ql-size .ql-picker-item[data-label]:not([data-label=""])::before{content:attr(data-label)}.ql-snow .ql-picker.ql-header{width:98px}.ql-snow .ql-picker.ql-header .ql-picker-label::before,.ql-snow .ql-picker.ql-header .ql-picker-item::before{content:"Normal"}.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="1"]::before,.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="1"]::before{content:"Heading 1"}.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="2"]::before,.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="2"]::before{content:"Heading 2"}.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="3"]::before,.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="3"]::before{content:"Heading 3"}.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="4"]::before,.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="4"]::before{content:"Heading 4"}.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="5"]::before,.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="5"]::before{content:"Heading 5"}.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="6"]::before,.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="6"]::before{content:"Heading 6"}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="1"]::before{font-size:2em}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="2"]::before{font-size:1.5em}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="3"]::before{font-size:1.17em}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="4"]::before{font-size:1em}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="5"]::before{font-size:0.83em}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="6"]::before{font-size:0.67em}.ql-snow .ql-picker.ql-font{width:108px}.ql-snow .ql-picker.ql-font .ql-picker-label::before,.ql-snow .ql-picker.ql-font .ql-picker-item::before{content:"Sans Serif"}.ql-snow .ql-picker.ql-font .ql-picker-label[data-value=serif]::before,.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=serif]::before{content:"Serif"}.ql-snow .ql-picker.ql-font .ql-picker-label[data-value=monospace]::before,.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=monospace]::before{content:"Monospace"}.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=serif]::before{font-family:Georgia,Times New Roman,serif}.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=monospace]::before{font-family:Monaco,Courier New,monospace}.ql-snow .ql-picker.ql-size{width:98px}.ql-snow .ql-picker.ql-size .ql-picker-label::before,.ql-snow .ql-picker.ql-size .ql-picker-item::before{content:"Normal"}.ql-snow .ql-picker.ql-size .ql-picker-label[data-value=small]::before,.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=small]::before{content:"Small"}.ql-snow .ql-picker.ql-size .ql-picker-label[data-value=large]::before,.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=large]::before{content:"Large"}.ql-snow .ql-picker.ql-size .ql-picker-label[data-value=huge]::before,.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=huge]::before{content:"Huge"}.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=small]::before{font-size:10px}.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=large]::before{font-size:18px}.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=huge]::before{font-size:32px}.ql-snow .ql-color-picker.ql-background .ql-picker-item{background-color:#fff}.ql-snow .ql-color-picker.ql-color .ql-picker-item{background-color:#000}.ql-code-block-container{position:relative}.ql-code-block-container .ql-ui{right:5px;top:5px}.ql-toolbar.ql-snow{border:1px solid #ccc;box-sizing:border-box;font-family:"Helvetica Neue","Helvetica","Arial",sans-serif;padding:8px}.ql-toolbar.ql-snow .ql-formats{margin-right:15px}.ql-toolbar.ql-snow .ql-picker-label{border:1px solid transparent}.ql-toolbar.ql-snow .ql-picker-options{border:1px solid transparent;box-shadow:rgba(0,0,0,0.2) 0 2px 8px}.ql-toolbar.ql-snow .ql-picker.ql-expanded .ql-picker-label{border-color:#ccc}.ql-toolbar.ql-snow .ql-picker.ql-expanded .ql-picker-options{border-color:#ccc}.ql-toolbar.ql-snow .ql-color-picker .ql-picker-item.ql-selected,.ql-toolbar.ql-snow .ql-color-picker .ql-picker-item:hover{border-color:#000}.ql-toolbar.ql-snow+.ql-container.ql-snow{border-top:0}.ql-snow .ql-tooltip{background-color:#fff;border:1px solid #ccc;box-shadow:0 0 5px #ddd;color:#444;padding:5px 12px;white-space:nowrap}.ql-snow .ql-tooltip::before{content:"Visit URL:";line-height:26px;margin-right:8px}.ql-snow .ql-tooltip input[type=text]{display:none;border:1px solid #ccc;font-size:13px;height:26px;margin:0;padding:3px 5px;width:170px}.ql-snow .ql-tooltip a.ql-preview{display:inline-block;max-width:200px;overflow-x:hidden;text-overflow:ellipsis;vertical-align:top}.ql-snow .ql-tooltip a.ql-action::after{border-right:1px solid #ccc;content:"Edit";margin-left:16px;padding-right:8px}.ql-snow .ql-tooltip a.ql-remove::before{content:"Remove";margin-left:8px}.ql-snow .ql-tooltip a{line-height:26px}.ql-snow .ql-tooltip.ql-editing a.ql-preview,.ql-snow .ql-tooltip.ql-editing a.ql-remove{display:none}.ql-snow .ql-tooltip.ql-editing input[type=text]{display:inline-block}.ql-snow .ql-tooltip.ql-editing a.ql-action::after{border-right:0;content:"Save";padding-right:0}.ql-snow .ql-tooltip[data-mode=link]::before{content:"Enter link:"}.ql-snow .ql-tooltip[data-mode=formula]::before{content:"Enter formula:"}.ql-snow .ql-tooltip[data-mode=video]::before{content:"Enter video:"}.ql-snow a{color:#06c}.ql-container.ql-snow{border:1px solid #ccc}@keyframes rotate-gradient{from{--rotate:0deg}to{--rotate:360deg}}:host{text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-transform:none}*,*::before,*::after{box-sizing:border-box;border-width:0;border-style:solid;border-color:rgb(var(--zn-border-color))}[hidden]{display:none !important}.width-container,.form-container,.wide-form-container{height:100%;width:100%;margin:var(--zn-default-margin,0 auto)}.width-container{max-width:var(--zn-container)}.form-container{max-width:var(--zn-container-ph)}.wide-form-container{max-width:var(--zn-container-lg)}@container (width > 1024px){:host{--zn-gutter:16px}}@container (width > 1400px){:host{--zn-gutter:24px}}@container (width > 1500px){:host{--zn-gutter:32px}}:host,zn-editor{--editor-gutter:calc(var(--zn-gutter,0) + var(--zn-base-gap,0));width:100%;padding-inline:var(--editor-gutter)}:host ::-webkit-scrollbar{width:5px;height:5px}:host{}:host ::-webkit-scrollbar-track{background:transparent}:host{}:host ::-webkit-scrollbar-thumb{background:rgba(var(--inverse-base),0.2);border-radius:5px}:host{}:host ::-webkit-scrollbar-thumb:hover{background:rgba(var(--inverse-base),0.6)}:host{text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;min-height:170px;container-type:inline-size;display:flex;flex-direction:column;background-color:rgba(var(--zn-panel),var(--zn-panel-opacity));margin:0;padding:0;max-height:100%;flex:1;overflow:hidden}:host .ql-container{border:none;-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:transparent;resize:none;padding:20px 20px 0}:host .ql-toolbar{border:0 solid rgb(var(--zn-border-color));color:rgb(var(--zn-text-heading));display:flex;flex-wrap:wrap;gap:5px}:host .ql-toolbar>span.ql-formats{margin:0}:host .ql-toolbar>span{padding-top:2px;padding-bottom:2px}:host .ql-toolbar:after{display:none}:host .ql-editor{position:relative;width:100%;height:100%;max-height:100%;overflow-y:auto;flex-grow:1;color:rgb(var(--zn-text));background-color:rgba(var(--zn-panel),var(--zn-panel-opacity));font-size:15px;padding-inline:var(--editor-gutter)}:host .ql-editor img{height:auto}:host .ql-editor.ql-blank:before{right:calc(var(--zn-gutter,0) + var(--zn-base-gap,0));left:calc(var(--zn-gutter,0) + var(--zn-base-gap,0));color:rgb(var(--zn-text))}:host #editor{flex:1;height:0;padding:0}:host #toolbar-container,:host #action-container{justify-content:space-between;align-items:center;padding-inline:var(--editor-gutter)}:host #toolbar-container .wrap,:host #action-container .wrap{flex-grow:1}:host #action-container.ql-toolbar{border-bottom-width:0}:host .ql-stroke{stroke:rgb(var(--zn-text-heading))}:host .ql-fill{fill:rgb(var(--zn-text-heading))}:host .ql-picker-label:before{color:rgb(var(--zn-text-heading))}:host .ql-image svg{fill:currentColor}.ql-placeholder{width:110px}.ql-placeholder .ql-picker-label::before{content:"Placeholder"}.ql-code-block-container .ql-ui{color:rgb(var(--zn-text))}.ql-code-block{font-size:90%}:host #toolbar zn-button.ql-active .button{background-color:rgba(var(--zn-primary),0.2)}:host #toolbar zn-dropdown zn-menu zn-menu-item[checked] .menu-item{background-color:rgba(var(--zn-panel-highlight),var(--zn-panel-highlight-opacity));color:rgb(var(--zn-primary))}:host .ql-editor hr,:host .ql-editor .ql-hr{border:none;border-top:1px solid rgb(var(--zn-border-color));height:0;margin:var(--zn-spacing-small) 0;opacity:1}#toolbar{padding-inline:var(--editor-gutter)}`;var Be=class extends S{constructor(){super(...arguments);this.formControlController=new re(this,{});this.interactionType="chat";this.codeBlocksEnabled=!1;this.dividersEnabled=!1;this.linksEnabled=!1;this.attachmentsEnabled=!1;this.imagesEnabled=!1;this.videosEnabled=!1;this.datesEnabled=!1;this.emojisEnabled=!1;this.codeEnabled=!1;this.aiEnabled=!1;this.aiPath="";this.storeKey="";this.storeTtl=86400;this._content="";this._selectionRange={index:0,length:0};this._handleEditorInsert=t=>{let r=t.detail??{},n=r.mode;if(!(n!=="insert"&&n!=="replace")){if(t.stopPropagation(),r.html){this._insertHtml(n,r.html);return}r.text&&(this._content=r.text.trim(),n==="replace"?this._replaceTextAtSelection():this._insertTextAtSelection())}}}get validity(){return this.editorHtml.validity}get validationMessage(){return this.editorHtml.validationMessage}checkValidity(){return this.editorHtml.checkValidity()}getForm(){return this.formControlController.getForm()}reportValidity(){return this.editorHtml.reportValidity()}setCustomValidity(t){this.editorHtml.setCustomValidity(t),this.formControlController.updateValidity()}connectedCallback(){super.connectedCallback(),this._store=new Sr(this.localStorage?window.localStorage:window.sessionStorage,"zned:",this.storeTtl)}firstUpdated(t){this.formControlController.updateValidity();let r=this._getQuillKeyboardBindings(),n=this.id;if(n||(n="abc"),pp(document,"click",'[editor-id="'+n+'"]',g=>{this._handleEditorChange(g)}),ce.register({"modules/toolbar":u2},!0),this.datesEnabled&&ce.register({"modules/datePicker":t2},!0),this.emojisEnabled&&(ce.register({"modules/emoji":n2},!0),ce.register({"modules/headlessEmoji":a2},!0)),this.attachmentsEnabled&&ce.register({"modules/attachment":Jl},!0),ce.register({"modules/timeTracking":Gc},!0),ce.register({"modules/dragAndDrop":jc},!0),ce.register({"modules/imageResize":s2},!0),ce.register({"modules/contextMenu":Z_},!0),ce.register({"modules/dialog":r2},!0),this.aiEnabled&&ce.register("modules/ai",p2,!0),this.dividersEnabled){let g=ce.import("blots/block/embed");class v extends g{static create(){let z=document.createElement("hr");return z.classList.add("ql-hr"),z}}v.blotName="hr",v.tagName="HR",v.className="ql-hr",ce.register({"formats/hr":v},!0)}let a=this.getForm()?.querySelector('input[name="startTime"]'),s=this.getForm()?.querySelector('input[name="openTime"]'),l={codeBlocksEnabled:this.codeBlocksEnabled,dividersEnabled:this.dividersEnabled,linksEnabled:this.linksEnabled,attachmentsEnabled:this.attachmentsEnabled,imagesEnabled:this.imagesEnabled,videosEnabled:this.videosEnabled,datesEnabled:this.datesEnabled,emojisEnabled:this.emojisEnabled,codeEnabled:this.codeEnabled},d=new ce(this.editor,{modules:{toolbar:{container:this.toolbar,config:l},contextMenu:{config:l},keyboard:{bindings:r},dialog:{editorId:this.id},...this.datesEnabled&&{datePicker:{}},...this.emojisEnabled&&{emoji:{},headlessEmoji:{}},...this.aiEnabled&&{ai:{path:this.aiPath}},timeTracking:{startTimeInput:a,openTimeInput:s},...this.attachmentsEnabled&&{attachment:{attachmentInput:this.getForm()?.querySelector('input[name="attachments"]'),onFileUploaded:()=>{window.onbeforeunload=()=>null},upload:async g=>{window.onbeforeunload=()=>"You have unsaved changes. Are you sure you want to leave?";let v=new FormData;v.append("filename",g.name),v.append("size",g.size.toString()),v.append("mimeType",g.type);let y=await fetch(this.uploadAttachmentUrl,{method:"POST",body:v});if(!y.ok)throw new Error(`Upload request failed: ${y.status}`);let z=await y.json(),E=new URL(z.uploadUrl,new URL(this.uploadAttachmentUrl,window.location.href)).toString();return{path:z.uploadPath,url:E,filename:z.originalFilename}}}},imageResize:{},history:{}},placeholder:"Compose your reply...",theme:"snow",bounds:this.editor});this.quillElement=d,d.getModule("dialog")?.component?.addEventListener("zn-editor-insert",this._handleEditorInsert),this.getForm()?.addEventListener("submit",()=>{this._clearCachedContent(),setTimeout(()=>{this.quillElement.getModule("attachment")?.reset()},0)});let m=!!document.createElement("div").attachShadow({mode:"open"}).getSelection,f=g=>{try{if(m)return g?.getSelection()?.getRangeAt(0);{let v=window.getSelection();return v&&"getComposedRanges"in v&&typeof v.getComposedRanges=="function"?Array.isArray(v.getComposedRanges(g))?v.getComposedRanges(g)[0]:void 0:v?.getRangeAt(0)}}catch{return null}};if(d.selection.hasFocus=function(){return d.root.getRootNode().activeElement===d.root},d.selection.getNativeRange=function(){let g=d.root.getRootNode(),v=f(g);return v?d.selection.normalizeNative(v):null},d.selection.setNativeRange=function(g,v){let y=arguments.length>2&&arguments[2]!==void 0?arguments[2]:g,z=arguments.length>3&&arguments[3]!==void 0?arguments[3]:v,E=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(g!==null&&(d.selection.root.parentNode===null||g.parentNode===null||y.parentNode===null))return;let N=document.getSelection();if(N!==null)if(g!==null){d.selection.hasFocus()||d.selection.root.focus();let U=d.selection.getNativeRange()?.native;(U===null||E||g!==U?.startContainer||v!==U.startOffset||y!==U.endContainer||z!==U.endOffset)&&(g.tagName==="BR"&&(v=[].indexOf.call(g.parentNode.childNodes,g),g=g.parentNode),y.tagName==="BR"&&(z=[].indexOf.call(y.parentNode.childNodes,y),y=y.parentNode),N.setBaseAndExtent(g,v,y,z))}else N.removeAllRanges(),d.selection.root.blur(),document.body.focus()},document.addEventListener("selectionchange",()=>{this.quillElement.selection.update()}),document.addEventListener("zn-editor-update",this._handleTextChange.bind(this)),d.on("text-change",this._handleTextChange.bind(this)),d.on(ce.events.SELECTION_CHANGE,(g,v)=>{this._selectionRange=g??v}),this.storeKey&&this._isEmpty(this.value??"")){let g=this._store.get(this.storeKey);g&&(this.value=g,this.editorHtml.value=g)}let b=d.clipboard.convert({html:this.value});d.setContents(b,ce.sources.SILENT),this.emit("zn-element-added",{detail:{element:this.editor}}),super.firstUpdated(t)}_handleTextChange(){this.value=this.quillElement.getSemanticHTML(),this.editorHtml.value=this.value,this._cacheContent(),this.emit("zn-change")}_isEmpty(t){return t.match(/[^<pbr\s>/]/)===null}_cacheContent(){!this.storeKey||!this._store||(this._isEmpty(this.value)?this._store.remove(this.storeKey):this._store.set(this.storeKey,this.value))}_clearCachedContent(){this.storeKey&&this._store&&this._store.remove(this.storeKey)}_getQuillKeyboardBindings(){return{enter:{key:"Enter",shiftKey:!1,handler:()=>{let t=this.quillElement.getModule("headlessEmoji"),r=this.quillElement.getModule("contextMenu"),n=this.quillElement.getModule("dialog");if(t?.isOpen()||r?.isOpen()||n?.isOpen())return!1;if(this.interactionType==="chat"){let a=this.closest("form"),s=!!this.value&&this.value.trim().length>0&&!this._isEmpty(this.value),l=a?.querySelector('input[name="attachments"]'),d=!!l?.value&&l.value!=="[]";return a&&(s||d)?(this.emit("zn-submit",{detail:{value:this.value,element:this}}),a.requestSubmit(),this.quillElement.setText(""),!1):!0}return!0}}}}_handleEditorChange(t){let r=t.selectedTarget;if(!r.hasAttribute("editor-mode"))return;let n=r.getAttribute("editor-mode");if(n!=="replace"&&n!=="insert")return;t.preventDefault();let a=r.getAttribute("editor-content-id");if(!a)return;let s=pr(a),l=t.currentTarget instanceof Element&&t.currentTarget.closest(s)||t.selectedTarget instanceof Element&&t.selectedTarget.closest(s)||t.target instanceof Element&&t.target.closest(s)||t.composedPath()[0]?.closest(s)||Ge(s,document.documentElement,"")[0];if(!l)return;let d=l.textContent;(l instanceof HTMLInputElement||l instanceof Jo)&&(d=l.value),!(!d||d==="")&&(this._content=d.trim(),n==="replace"?this._replaceTextAtSelection():n==="insert"&&this._insertTextAtSelection())}_insertHtml(t,r){let n=this.quillElement,a=n.getSelection(),s;t==="replace"?a&&a.length>0?(n.deleteText(a.index,a.length),s=a.index):(n.setText(""),s=0):s=a?a.index:this._selectionRange.index;let l=n.getLength();n.clipboard.dangerouslyPasteHTML(s,r,ce.sources.USER),n.setSelection(s+Math.max(0,n.getLength()-l),0),this._closePopups()}_replaceTextAtSelection(){let t=this.quillElement.getSelection();t?t.length===0?(this.quillElement.setText(this._content||""),this.quillElement.setSelection(this._content?.length||0,0)):(this.quillElement.deleteText(t.index,t.length),this.quillElement.insertText(t.index,this._content||""),this.quillElement.setSelection(t.index+(this._content.length||0),0)):(this.quillElement.setText(this._content||""),this.quillElement.setSelection(this._content?.length||0,0)),this._closePopups()}_insertTextAtSelection(){let t=this.quillElement.getSelection(),r=t?t.index:this._selectionRange.index;this.quillElement.insertText(r,this._content||""),this.quillElement.setSelection(r+(this._content.length||0),0),this._closePopups()}_closePopups(){this._closeAiPanel(),this._closeDialog()}_closeAiPanel(){let t=this.quillElement.getModule("ai");t&&t.resetComponent()}_closeDialog(){let t=this.quillElement.getModule("dialog");t&&t.close()}render(){return u`
3378
+ */.ql-container{box-sizing:border-box;font-family:Helvetica,Arial,sans-serif;font-size:13px;height:100%;margin:0;position:relative}.ql-container.ql-disabled .ql-tooltip{visibility:hidden}.ql-container:not(.ql-disabled) li[data-list=checked]>.ql-ui,.ql-container:not(.ql-disabled) li[data-list=unchecked]>.ql-ui{cursor:pointer}.ql-clipboard{left:-100000px;height:1px;overflow-y:hidden;position:absolute;top:50%}.ql-clipboard p{margin:0;padding:0}.ql-editor{box-sizing:border-box;counter-reset:list-0 list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9;line-height:1.42;height:100%;outline:none;overflow-y:auto;padding:12px 15px;-o-tab-size:4;tab-size:4;-moz-tab-size:4;text-align:left;white-space:pre-wrap;word-wrap:break-word}.ql-editor>*{cursor:text}.ql-editor p,.ql-editor ol,.ql-editor pre,.ql-editor blockquote,.ql-editor h1,.ql-editor h2,.ql-editor h3,.ql-editor h4,.ql-editor h5,.ql-editor h6{margin:0;padding:0}@supports (counter-set:none){.ql-editor p,.ql-editor h1,.ql-editor h2,.ql-editor h3,.ql-editor h4,.ql-editor h5,.ql-editor h6{counter-set:list-0 list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9}}@supports not (counter-set:none){.ql-editor p,.ql-editor h1,.ql-editor h2,.ql-editor h3,.ql-editor h4,.ql-editor h5,.ql-editor h6{counter-reset:list-0 list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9}}.ql-editor table{border-collapse:collapse}.ql-editor td{border:1px solid #000;padding:2px 5px}.ql-editor ol{padding-left:1.5em}.ql-editor li{list-style-type:none;padding-left:1.5em;position:relative}.ql-editor li>.ql-ui:before{display:inline-block;margin-left:-1.5em;margin-right:0.3em;text-align:right;white-space:nowrap;width:1.2em}.ql-editor li[data-list=checked]>.ql-ui,.ql-editor li[data-list=unchecked]>.ql-ui{color:#777}.ql-editor li[data-list=bullet]>.ql-ui:before{content:"•"}.ql-editor li[data-list=checked]>.ql-ui:before{content:"☑"}.ql-editor li[data-list=unchecked]>.ql-ui:before{content:"☐"}@supports (counter-set:none){.ql-editor li[data-list]{counter-set:list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9}}@supports not (counter-set:none){.ql-editor li[data-list]{counter-reset:list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9}}.ql-editor li[data-list=ordered]{counter-increment:list-0}.ql-editor li[data-list=ordered]>.ql-ui:before{content:counter(list-0,decimal) ". "}.ql-editor li[data-list=ordered].ql-indent-1{counter-increment:list-1}.ql-editor li[data-list=ordered].ql-indent-1>.ql-ui:before{content:counter(list-1,lower-alpha) ". "}@supports (counter-set:none){.ql-editor li[data-list].ql-indent-1{counter-set:list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9}}@supports not (counter-set:none){.ql-editor li[data-list].ql-indent-1{counter-reset:list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9}}.ql-editor li[data-list=ordered].ql-indent-2{counter-increment:list-2}.ql-editor li[data-list=ordered].ql-indent-2>.ql-ui:before{content:counter(list-2,lower-roman) ". "}@supports (counter-set:none){.ql-editor li[data-list].ql-indent-2{counter-set:list-3 list-4 list-5 list-6 list-7 list-8 list-9}}@supports not (counter-set:none){.ql-editor li[data-list].ql-indent-2{counter-reset:list-3 list-4 list-5 list-6 list-7 list-8 list-9}}.ql-editor li[data-list=ordered].ql-indent-3{counter-increment:list-3}.ql-editor li[data-list=ordered].ql-indent-3>.ql-ui:before{content:counter(list-3,decimal) ". "}@supports (counter-set:none){.ql-editor li[data-list].ql-indent-3{counter-set:list-4 list-5 list-6 list-7 list-8 list-9}}@supports not (counter-set:none){.ql-editor li[data-list].ql-indent-3{counter-reset:list-4 list-5 list-6 list-7 list-8 list-9}}.ql-editor li[data-list=ordered].ql-indent-4{counter-increment:list-4}.ql-editor li[data-list=ordered].ql-indent-4>.ql-ui:before{content:counter(list-4,lower-alpha) ". "}@supports (counter-set:none){.ql-editor li[data-list].ql-indent-4{counter-set:list-5 list-6 list-7 list-8 list-9}}@supports not (counter-set:none){.ql-editor li[data-list].ql-indent-4{counter-reset:list-5 list-6 list-7 list-8 list-9}}.ql-editor li[data-list=ordered].ql-indent-5{counter-increment:list-5}.ql-editor li[data-list=ordered].ql-indent-5>.ql-ui:before{content:counter(list-5,lower-roman) ". "}@supports (counter-set:none){.ql-editor li[data-list].ql-indent-5{counter-set:list-6 list-7 list-8 list-9}}@supports not (counter-set:none){.ql-editor li[data-list].ql-indent-5{counter-reset:list-6 list-7 list-8 list-9}}.ql-editor li[data-list=ordered].ql-indent-6{counter-increment:list-6}.ql-editor li[data-list=ordered].ql-indent-6>.ql-ui:before{content:counter(list-6,decimal) ". "}@supports (counter-set:none){.ql-editor li[data-list].ql-indent-6{counter-set:list-7 list-8 list-9}}@supports not (counter-set:none){.ql-editor li[data-list].ql-indent-6{counter-reset:list-7 list-8 list-9}}.ql-editor li[data-list=ordered].ql-indent-7{counter-increment:list-7}.ql-editor li[data-list=ordered].ql-indent-7>.ql-ui:before{content:counter(list-7,lower-alpha) ". "}@supports (counter-set:none){.ql-editor li[data-list].ql-indent-7{counter-set:list-8 list-9}}@supports not (counter-set:none){.ql-editor li[data-list].ql-indent-7{counter-reset:list-8 list-9}}.ql-editor li[data-list=ordered].ql-indent-8{counter-increment:list-8}.ql-editor li[data-list=ordered].ql-indent-8>.ql-ui:before{content:counter(list-8,lower-roman) ". "}@supports (counter-set:none){.ql-editor li[data-list].ql-indent-8{counter-set:list-9}}@supports not (counter-set:none){.ql-editor li[data-list].ql-indent-8{counter-reset:list-9}}.ql-editor li[data-list=ordered].ql-indent-9{counter-increment:list-9}.ql-editor li[data-list=ordered].ql-indent-9>.ql-ui:before{content:counter(list-9,decimal) ". "}.ql-editor .ql-indent-1:not(.ql-direction-rtl){padding-left:3em}.ql-editor li.ql-indent-1:not(.ql-direction-rtl){padding-left:4.5em}.ql-editor .ql-indent-1.ql-direction-rtl.ql-align-right{padding-right:3em}.ql-editor li.ql-indent-1.ql-direction-rtl.ql-align-right{padding-right:4.5em}.ql-editor .ql-indent-2:not(.ql-direction-rtl){padding-left:6em}.ql-editor li.ql-indent-2:not(.ql-direction-rtl){padding-left:7.5em}.ql-editor .ql-indent-2.ql-direction-rtl.ql-align-right{padding-right:6em}.ql-editor li.ql-indent-2.ql-direction-rtl.ql-align-right{padding-right:7.5em}.ql-editor .ql-indent-3:not(.ql-direction-rtl){padding-left:9em}.ql-editor li.ql-indent-3:not(.ql-direction-rtl){padding-left:10.5em}.ql-editor .ql-indent-3.ql-direction-rtl.ql-align-right{padding-right:9em}.ql-editor li.ql-indent-3.ql-direction-rtl.ql-align-right{padding-right:10.5em}.ql-editor .ql-indent-4:not(.ql-direction-rtl){padding-left:12em}.ql-editor li.ql-indent-4:not(.ql-direction-rtl){padding-left:13.5em}.ql-editor .ql-indent-4.ql-direction-rtl.ql-align-right{padding-right:12em}.ql-editor li.ql-indent-4.ql-direction-rtl.ql-align-right{padding-right:13.5em}.ql-editor .ql-indent-5:not(.ql-direction-rtl){padding-left:15em}.ql-editor li.ql-indent-5:not(.ql-direction-rtl){padding-left:16.5em}.ql-editor .ql-indent-5.ql-direction-rtl.ql-align-right{padding-right:15em}.ql-editor li.ql-indent-5.ql-direction-rtl.ql-align-right{padding-right:16.5em}.ql-editor .ql-indent-6:not(.ql-direction-rtl){padding-left:18em}.ql-editor li.ql-indent-6:not(.ql-direction-rtl){padding-left:19.5em}.ql-editor .ql-indent-6.ql-direction-rtl.ql-align-right{padding-right:18em}.ql-editor li.ql-indent-6.ql-direction-rtl.ql-align-right{padding-right:19.5em}.ql-editor .ql-indent-7:not(.ql-direction-rtl){padding-left:21em}.ql-editor li.ql-indent-7:not(.ql-direction-rtl){padding-left:22.5em}.ql-editor .ql-indent-7.ql-direction-rtl.ql-align-right{padding-right:21em}.ql-editor li.ql-indent-7.ql-direction-rtl.ql-align-right{padding-right:22.5em}.ql-editor .ql-indent-8:not(.ql-direction-rtl){padding-left:24em}.ql-editor li.ql-indent-8:not(.ql-direction-rtl){padding-left:25.5em}.ql-editor .ql-indent-8.ql-direction-rtl.ql-align-right{padding-right:24em}.ql-editor li.ql-indent-8.ql-direction-rtl.ql-align-right{padding-right:25.5em}.ql-editor .ql-indent-9:not(.ql-direction-rtl){padding-left:27em}.ql-editor li.ql-indent-9:not(.ql-direction-rtl){padding-left:28.5em}.ql-editor .ql-indent-9.ql-direction-rtl.ql-align-right{padding-right:27em}.ql-editor li.ql-indent-9.ql-direction-rtl.ql-align-right{padding-right:28.5em}.ql-editor li.ql-direction-rtl{padding-right:1.5em}.ql-editor li.ql-direction-rtl>.ql-ui:before{margin-left:0.3em;margin-right:-1.5em;text-align:left}.ql-editor table{table-layout:fixed;width:100%}.ql-editor table td{outline:none}.ql-editor .ql-code-block-container{font-family:monospace}.ql-editor .ql-video{display:block;max-width:100%}.ql-editor .ql-video.ql-align-center{margin:0 auto}.ql-editor .ql-video.ql-align-right{margin:0 0 0 auto}.ql-editor .ql-bg-black{background-color:#000}.ql-editor .ql-bg-red{background-color:#e60000}.ql-editor .ql-bg-orange{background-color:#f90}.ql-editor .ql-bg-yellow{background-color:#ff0}.ql-editor .ql-bg-green{background-color:#008a00}.ql-editor .ql-bg-blue{background-color:#06c}.ql-editor .ql-bg-purple{background-color:#93f}.ql-editor .ql-color-white{color:#fff}.ql-editor .ql-color-red{color:#e60000}.ql-editor .ql-color-orange{color:#f90}.ql-editor .ql-color-yellow{color:#ff0}.ql-editor .ql-color-green{color:#008a00}.ql-editor .ql-color-blue{color:#06c}.ql-editor .ql-color-purple{color:#93f}.ql-editor .ql-font-serif{font-family:Georgia,Times New Roman,serif}.ql-editor .ql-font-monospace{font-family:Monaco,Courier New,monospace}.ql-editor .ql-size-small{font-size:0.75em}.ql-editor .ql-size-large{font-size:1.5em}.ql-editor .ql-size-huge{font-size:2.5em}.ql-editor .ql-direction-rtl{direction:rtl;text-align:inherit}.ql-editor .ql-align-center{text-align:center}.ql-editor .ql-align-justify{text-align:justify}.ql-editor .ql-align-right{text-align:right}.ql-editor .ql-ui{position:absolute}.ql-editor.ql-blank::before{color:rgba(0,0,0,0.6);content:attr(data-placeholder);font-style:italic;left:15px;pointer-events:none;position:absolute;right:15px}.ql-snow.ql-toolbar:after,.ql-snow .ql-toolbar:after{clear:both;content:"";display:table}.ql-snow.ql-toolbar button,.ql-snow .ql-toolbar button{background:none;border:none;cursor:pointer;display:inline-block;float:left;height:24px;padding:3px 5px;width:28px}.ql-snow.ql-toolbar button svg,.ql-snow .ql-toolbar button svg{float:left;height:100%}.ql-snow.ql-toolbar button:active:hover,.ql-snow .ql-toolbar button:active:hover{outline:none}.ql-snow.ql-toolbar input.ql-image[type=file],.ql-snow .ql-toolbar input.ql-image[type=file]{display:none}.ql-snow.ql-toolbar button:hover,.ql-snow .ql-toolbar button:hover,.ql-snow.ql-toolbar button:focus,.ql-snow .ql-toolbar button:focus,.ql-snow.ql-toolbar button.ql-active,.ql-snow .ql-toolbar button.ql-active,.ql-snow.ql-toolbar .ql-picker-label:hover,.ql-snow .ql-toolbar .ql-picker-label:hover,.ql-snow.ql-toolbar .ql-picker-label.ql-active,.ql-snow .ql-toolbar .ql-picker-label.ql-active,.ql-snow.ql-toolbar .ql-picker-item:hover,.ql-snow .ql-toolbar .ql-picker-item:hover,.ql-snow.ql-toolbar .ql-picker-item.ql-selected,.ql-snow .ql-toolbar .ql-picker-item.ql-selected{color:#06c}.ql-snow.ql-toolbar button:hover .ql-fill,.ql-snow .ql-toolbar button:hover .ql-fill,.ql-snow.ql-toolbar button:focus .ql-fill,.ql-snow .ql-toolbar button:focus .ql-fill,.ql-snow.ql-toolbar button.ql-active .ql-fill,.ql-snow .ql-toolbar button.ql-active .ql-fill,.ql-snow.ql-toolbar .ql-picker-label:hover .ql-fill,.ql-snow .ql-toolbar .ql-picker-label:hover .ql-fill,.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-fill,.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-fill,.ql-snow.ql-toolbar .ql-picker-item:hover .ql-fill,.ql-snow .ql-toolbar .ql-picker-item:hover .ql-fill,.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-fill,.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-fill,.ql-snow.ql-toolbar button:hover .ql-stroke.ql-fill,.ql-snow .ql-toolbar button:hover .ql-stroke.ql-fill,.ql-snow.ql-toolbar button:focus .ql-stroke.ql-fill,.ql-snow .ql-toolbar button:focus .ql-stroke.ql-fill,.ql-snow.ql-toolbar button.ql-active .ql-stroke.ql-fill,.ql-snow .ql-toolbar button.ql-active .ql-stroke.ql-fill,.ql-snow.ql-toolbar .ql-picker-label:hover .ql-stroke.ql-fill,.ql-snow .ql-toolbar .ql-picker-label:hover .ql-stroke.ql-fill,.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-stroke.ql-fill,.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-stroke.ql-fill,.ql-snow.ql-toolbar .ql-picker-item:hover .ql-stroke.ql-fill,.ql-snow .ql-toolbar .ql-picker-item:hover .ql-stroke.ql-fill,.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-stroke.ql-fill,.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-stroke.ql-fill{fill:#06c}.ql-snow.ql-toolbar button:hover .ql-stroke,.ql-snow .ql-toolbar button:hover .ql-stroke,.ql-snow.ql-toolbar button:focus .ql-stroke,.ql-snow .ql-toolbar button:focus .ql-stroke,.ql-snow.ql-toolbar button.ql-active .ql-stroke,.ql-snow .ql-toolbar button.ql-active .ql-stroke,.ql-snow.ql-toolbar .ql-picker-label:hover .ql-stroke,.ql-snow .ql-toolbar .ql-picker-label:hover .ql-stroke,.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-stroke,.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-stroke,.ql-snow.ql-toolbar .ql-picker-item:hover .ql-stroke,.ql-snow .ql-toolbar .ql-picker-item:hover .ql-stroke,.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-stroke,.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-stroke,.ql-snow.ql-toolbar button:hover .ql-stroke-miter,.ql-snow .ql-toolbar button:hover .ql-stroke-miter,.ql-snow.ql-toolbar button:focus .ql-stroke-miter,.ql-snow .ql-toolbar button:focus .ql-stroke-miter,.ql-snow.ql-toolbar button.ql-active .ql-stroke-miter,.ql-snow .ql-toolbar button.ql-active .ql-stroke-miter,.ql-snow.ql-toolbar .ql-picker-label:hover .ql-stroke-miter,.ql-snow .ql-toolbar .ql-picker-label:hover .ql-stroke-miter,.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-stroke-miter,.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-stroke-miter,.ql-snow.ql-toolbar .ql-picker-item:hover .ql-stroke-miter,.ql-snow .ql-toolbar .ql-picker-item:hover .ql-stroke-miter,.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-stroke-miter,.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-stroke-miter{stroke:#06c}@media (pointer:coarse){.ql-snow.ql-toolbar button:hover:not(.ql-active),.ql-snow .ql-toolbar button:hover:not(.ql-active){color:#444}.ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-fill,.ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-fill,.ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-stroke.ql-fill,.ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-stroke.ql-fill{fill:#444}.ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-stroke,.ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-stroke,.ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-stroke-miter,.ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-stroke-miter{stroke:#444}}.ql-snow{box-sizing:border-box}.ql-snow *{box-sizing:border-box}.ql-snow .ql-hidden{display:none}.ql-snow .ql-out-bottom,.ql-snow .ql-out-top{visibility:hidden}.ql-snow .ql-tooltip{position:absolute;transform:translateY(10px)}.ql-snow .ql-tooltip a{cursor:pointer;text-decoration:none}.ql-snow .ql-tooltip.ql-flip{transform:translateY(-10px)}.ql-snow .ql-formats{display:inline-block;vertical-align:middle}.ql-snow .ql-formats:after{clear:both;content:"";display:table}.ql-snow .ql-stroke{fill:none;stroke:#444;stroke-linecap:round;stroke-linejoin:round;stroke-width:2}.ql-snow .ql-stroke-miter{fill:none;stroke:#444;stroke-miterlimit:10;stroke-width:2}.ql-snow .ql-fill,.ql-snow .ql-stroke.ql-fill{fill:#444}.ql-snow .ql-empty{fill:none}.ql-snow .ql-even{fill-rule:evenodd}.ql-snow .ql-thin,.ql-snow .ql-stroke.ql-thin{stroke-width:1}.ql-snow .ql-transparent{opacity:0.4}.ql-snow .ql-direction svg:last-child{display:none}.ql-snow .ql-direction.ql-active svg:last-child{display:inline}.ql-snow .ql-direction.ql-active svg:first-child{display:none}.ql-snow .ql-editor h1{font-size:2em}.ql-snow .ql-editor h2{font-size:1.5em}.ql-snow .ql-editor h3{font-size:1.17em}.ql-snow .ql-editor h4{font-size:1em}.ql-snow .ql-editor h5{font-size:0.83em}.ql-snow .ql-editor h6{font-size:0.67em}.ql-snow .ql-editor a{text-decoration:underline}.ql-snow .ql-editor blockquote{border-left:4px solid #ccc;margin-bottom:5px;margin-top:5px;padding-left:16px}.ql-snow .ql-editor code,.ql-snow .ql-editor .ql-code-block-container{background-color:#f0f0f0;border-radius:3px}.ql-snow .ql-editor .ql-code-block-container{margin-bottom:5px;margin-top:5px;padding:5px 10px}.ql-snow .ql-editor code{font-size:85%;padding:2px 4px}.ql-snow .ql-editor .ql-code-block-container{background-color:#23241f;color:#f8f8f2;overflow:visible}.ql-snow .ql-editor img{max-width:100%}.ql-snow .ql-picker{color:#444;display:inline-block;float:left;font-size:14px;font-weight:500;height:24px;position:relative;vertical-align:middle}.ql-snow .ql-picker-label{cursor:pointer;display:inline-block;height:100%;padding-left:8px;padding-right:2px;position:relative;width:100%}.ql-snow .ql-picker-label::before{display:inline-block;line-height:22px}.ql-snow .ql-picker-options{background-color:#fff;display:none;min-width:100%;padding:4px 8px;position:absolute;white-space:nowrap}.ql-snow .ql-picker-options .ql-picker-item{cursor:pointer;display:block;padding-bottom:5px;padding-top:5px}.ql-snow .ql-picker.ql-expanded .ql-picker-label{color:#ccc;z-index:2}.ql-snow .ql-picker.ql-expanded .ql-picker-label .ql-fill{fill:#ccc}.ql-snow .ql-picker.ql-expanded .ql-picker-label .ql-stroke{stroke:#ccc}.ql-snow .ql-picker.ql-expanded .ql-picker-options{display:block;margin-top:-1px;top:100%;z-index:1}.ql-snow .ql-color-picker,.ql-snow .ql-icon-picker{width:28px}.ql-snow .ql-color-picker .ql-picker-label,.ql-snow .ql-icon-picker .ql-picker-label{padding:2px 4px}.ql-snow .ql-color-picker .ql-picker-label svg,.ql-snow .ql-icon-picker .ql-picker-label svg{right:4px}.ql-snow .ql-icon-picker .ql-picker-options{padding:4px 0}.ql-snow .ql-icon-picker .ql-picker-item{height:24px;width:24px;padding:2px 4px}.ql-snow .ql-color-picker .ql-picker-options{padding:3px 5px;width:152px}.ql-snow .ql-color-picker .ql-picker-item{border:1px solid transparent;float:left;height:16px;margin:2px;padding:0;width:16px}.ql-snow .ql-picker:not(.ql-color-picker):not(.ql-icon-picker) svg{position:absolute;margin-top:-9px;right:0;top:50%;width:18px}.ql-snow .ql-picker.ql-header .ql-picker-label[data-label]:not([data-label=""])::before,.ql-snow .ql-picker.ql-font .ql-picker-label[data-label]:not([data-label=""])::before,.ql-snow .ql-picker.ql-size .ql-picker-label[data-label]:not([data-label=""])::before,.ql-snow .ql-picker.ql-header .ql-picker-item[data-label]:not([data-label=""])::before,.ql-snow .ql-picker.ql-font .ql-picker-item[data-label]:not([data-label=""])::before,.ql-snow .ql-picker.ql-size .ql-picker-item[data-label]:not([data-label=""])::before{content:attr(data-label)}.ql-snow .ql-picker.ql-header{width:98px}.ql-snow .ql-picker.ql-header .ql-picker-label::before,.ql-snow .ql-picker.ql-header .ql-picker-item::before{content:"Normal"}.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="1"]::before,.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="1"]::before{content:"Heading 1"}.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="2"]::before,.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="2"]::before{content:"Heading 2"}.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="3"]::before,.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="3"]::before{content:"Heading 3"}.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="4"]::before,.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="4"]::before{content:"Heading 4"}.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="5"]::before,.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="5"]::before{content:"Heading 5"}.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="6"]::before,.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="6"]::before{content:"Heading 6"}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="1"]::before{font-size:2em}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="2"]::before{font-size:1.5em}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="3"]::before{font-size:1.17em}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="4"]::before{font-size:1em}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="5"]::before{font-size:0.83em}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="6"]::before{font-size:0.67em}.ql-snow .ql-picker.ql-font{width:108px}.ql-snow .ql-picker.ql-font .ql-picker-label::before,.ql-snow .ql-picker.ql-font .ql-picker-item::before{content:"Sans Serif"}.ql-snow .ql-picker.ql-font .ql-picker-label[data-value=serif]::before,.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=serif]::before{content:"Serif"}.ql-snow .ql-picker.ql-font .ql-picker-label[data-value=monospace]::before,.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=monospace]::before{content:"Monospace"}.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=serif]::before{font-family:Georgia,Times New Roman,serif}.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=monospace]::before{font-family:Monaco,Courier New,monospace}.ql-snow .ql-picker.ql-size{width:98px}.ql-snow .ql-picker.ql-size .ql-picker-label::before,.ql-snow .ql-picker.ql-size .ql-picker-item::before{content:"Normal"}.ql-snow .ql-picker.ql-size .ql-picker-label[data-value=small]::before,.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=small]::before{content:"Small"}.ql-snow .ql-picker.ql-size .ql-picker-label[data-value=large]::before,.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=large]::before{content:"Large"}.ql-snow .ql-picker.ql-size .ql-picker-label[data-value=huge]::before,.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=huge]::before{content:"Huge"}.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=small]::before{font-size:10px}.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=large]::before{font-size:18px}.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=huge]::before{font-size:32px}.ql-snow .ql-color-picker.ql-background .ql-picker-item{background-color:#fff}.ql-snow .ql-color-picker.ql-color .ql-picker-item{background-color:#000}.ql-code-block-container{position:relative}.ql-code-block-container .ql-ui{right:5px;top:5px}.ql-toolbar.ql-snow{border:1px solid #ccc;box-sizing:border-box;font-family:"Helvetica Neue","Helvetica","Arial",sans-serif;padding:8px}.ql-toolbar.ql-snow .ql-formats{margin-right:15px}.ql-toolbar.ql-snow .ql-picker-label{border:1px solid transparent}.ql-toolbar.ql-snow .ql-picker-options{border:1px solid transparent;box-shadow:rgba(0,0,0,0.2) 0 2px 8px}.ql-toolbar.ql-snow .ql-picker.ql-expanded .ql-picker-label{border-color:#ccc}.ql-toolbar.ql-snow .ql-picker.ql-expanded .ql-picker-options{border-color:#ccc}.ql-toolbar.ql-snow .ql-color-picker .ql-picker-item.ql-selected,.ql-toolbar.ql-snow .ql-color-picker .ql-picker-item:hover{border-color:#000}.ql-toolbar.ql-snow+.ql-container.ql-snow{border-top:0}.ql-snow .ql-tooltip{background-color:#fff;border:1px solid #ccc;box-shadow:0 0 5px #ddd;color:#444;padding:5px 12px;white-space:nowrap}.ql-snow .ql-tooltip::before{content:"Visit URL:";line-height:26px;margin-right:8px}.ql-snow .ql-tooltip input[type=text]{display:none;border:1px solid #ccc;font-size:13px;height:26px;margin:0;padding:3px 5px;width:170px}.ql-snow .ql-tooltip a.ql-preview{display:inline-block;max-width:200px;overflow-x:hidden;text-overflow:ellipsis;vertical-align:top}.ql-snow .ql-tooltip a.ql-action::after{border-right:1px solid #ccc;content:"Edit";margin-left:16px;padding-right:8px}.ql-snow .ql-tooltip a.ql-remove::before{content:"Remove";margin-left:8px}.ql-snow .ql-tooltip a{line-height:26px}.ql-snow .ql-tooltip.ql-editing a.ql-preview,.ql-snow .ql-tooltip.ql-editing a.ql-remove{display:none}.ql-snow .ql-tooltip.ql-editing input[type=text]{display:inline-block}.ql-snow .ql-tooltip.ql-editing a.ql-action::after{border-right:0;content:"Save";padding-right:0}.ql-snow .ql-tooltip[data-mode=link]::before{content:"Enter link:"}.ql-snow .ql-tooltip[data-mode=formula]::before{content:"Enter formula:"}.ql-snow .ql-tooltip[data-mode=video]::before{content:"Enter video:"}.ql-snow a{color:#06c}.ql-container.ql-snow{border:1px solid #ccc}@keyframes rotate-gradient{from{--rotate:0deg}to{--rotate:360deg}}:host{text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-transform:none}*,*::before,*::after{box-sizing:border-box;border-width:0;border-style:solid;border-color:rgb(var(--zn-border-color))}[hidden]{display:none !important}.width-container,.form-container,.wide-form-container{height:100%;width:100%;margin:var(--zn-default-margin,0 auto)}.width-container{max-width:var(--zn-container)}.form-container{max-width:var(--zn-container-ph)}.wide-form-container{max-width:var(--zn-container-lg)}@container (width > 1024px){:host{--zn-gutter:16px}}@container (width > 1400px){:host{--zn-gutter:24px}}@container (width > 1500px){:host{--zn-gutter:32px}}:host,zn-editor{--editor-gutter:calc(var(--zn-gutter,0) + var(--zn-base-gap,0));width:100%;padding-inline:var(--editor-gutter)}:host ::-webkit-scrollbar{width:5px;height:5px}:host{}:host ::-webkit-scrollbar-track{background:transparent}:host{}:host ::-webkit-scrollbar-thumb{background:rgba(var(--inverse-base),0.2);border-radius:5px}:host{}:host ::-webkit-scrollbar-thumb:hover{background:rgba(var(--inverse-base),0.6)}:host{text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;min-height:170px;container-type:inline-size;display:flex;flex-direction:column;background-color:rgba(var(--zn-panel),var(--zn-panel-opacity));margin:0;padding:0;max-height:100%;flex:1;overflow:hidden}:host .ql-container{border:none;-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:transparent;resize:none;padding:20px 20px 0}:host .ql-toolbar{border:0 solid rgb(var(--zn-border-color));color:rgb(var(--zn-text-heading));display:flex;flex-wrap:wrap;gap:5px}:host .ql-toolbar>span.ql-formats{margin:0}:host .ql-toolbar>span{padding-top:2px;padding-bottom:2px}:host .ql-toolbar:after{display:none}:host .ql-editor{position:relative;width:100%;height:100%;max-height:100%;overflow-y:auto;flex-grow:1;color:rgb(var(--zn-text));background-color:rgba(var(--zn-panel),var(--zn-panel-opacity));font-size:15px;padding-inline:var(--editor-gutter)}:host .ql-editor img{height:auto}:host .ql-editor.ql-blank:before{right:calc(var(--zn-gutter,0) + var(--zn-base-gap,0));left:calc(var(--zn-gutter,0) + var(--zn-base-gap,0));color:rgb(var(--zn-text))}:host #editor{flex:1;height:0;padding:0}:host #toolbar-container,:host #action-container{justify-content:space-between;align-items:center;padding-inline:var(--editor-gutter)}:host #toolbar-container .wrap,:host #action-container .wrap{flex-grow:1}:host #action-container.ql-toolbar{border-bottom-width:0}:host .ql-stroke{stroke:rgb(var(--zn-text-heading))}:host .ql-fill{fill:rgb(var(--zn-text-heading))}:host .ql-picker-label:before{color:rgb(var(--zn-text-heading))}:host .ql-image svg{fill:currentColor}.ql-placeholder{width:110px}.ql-placeholder .ql-picker-label::before{content:"Placeholder"}.ql-code-block-container .ql-ui{color:rgb(var(--zn-text))}.ql-code-block{font-size:90%}:host #toolbar zn-button.ql-active .button{background-color:rgba(var(--zn-primary),0.2)}:host #toolbar zn-dropdown zn-menu zn-menu-item[checked] .menu-item{background-color:rgba(var(--zn-panel-highlight),var(--zn-panel-highlight-opacity));color:rgb(var(--zn-primary))}:host .ql-editor hr,:host .ql-editor .ql-hr{border:none;border-top:1px solid rgb(var(--zn-border-color));height:0;margin:var(--zn-spacing-small) 0;opacity:1}#toolbar{padding-inline:var(--editor-gutter)}`;var Be=class extends S{constructor(){super(...arguments);this.formControlController=new re(this,{});this.interactionType="chat";this.codeBlocksEnabled=!1;this.dividersEnabled=!1;this.linksEnabled=!1;this.attachmentsEnabled=!1;this.imagesEnabled=!1;this.videosEnabled=!1;this.datesEnabled=!1;this.emojisEnabled=!1;this.codeEnabled=!1;this.aiEnabled=!1;this.aiPath="";this.storeKey="";this.storeTtl=86400;this._content="";this._selectionRange={index:0,length:0};this._handleEditorInsert=t=>{let r=t.detail??{},n=r.mode;if(!(n!=="insert"&&n!=="replace")){if(t.stopPropagation(),r.html){this._insertHtml(n,r.html);return}r.text&&(this._content=r.text.trim(),n==="replace"?this._replaceTextAtSelection():this._insertTextAtSelection())}}}get validity(){return this.editorHtml.validity}get validationMessage(){return this.editorHtml.validationMessage}checkValidity(){return this.editorHtml.checkValidity()}getForm(){return this.formControlController.getForm()}reportValidity(){return this.editorHtml.reportValidity()}setCustomValidity(t){this.editorHtml.setCustomValidity(t),this.formControlController.updateValidity()}connectedCallback(){super.connectedCallback(),this._store=new Sr(this.localStorage?window.localStorage:window.sessionStorage,"zned:",this.storeTtl)}firstUpdated(t){this.formControlController.updateValidity();let r=this._getQuillKeyboardBindings(),n=this.id;if(n||(n="abc"),pp(document,"click",'[editor-id="'+n+'"]',g=>{this._handleEditorChange(g)}),ce.register({"modules/toolbar":u2},!0),this.datesEnabled&&ce.register({"modules/datePicker":t2},!0),this.emojisEnabled&&(ce.register({"modules/emoji":n2},!0),ce.register({"modules/headlessEmoji":a2},!0)),this.attachmentsEnabled&&ce.register({"modules/attachment":Jl},!0),ce.register({"modules/timeTracking":Gc},!0),ce.register({"modules/dragAndDrop":jc},!0),ce.register({"modules/imageResize":s2},!0),ce.register({"modules/contextMenu":Z_},!0),ce.register({"modules/dialog":r2},!0),this.aiEnabled&&ce.register("modules/ai",p2,!0),this.dividersEnabled){let g=ce.import("blots/block/embed");class v extends g{static create(){let z=document.createElement("hr");return z.classList.add("ql-hr"),z}}v.blotName="hr",v.tagName="HR",v.className="ql-hr",ce.register({"formats/hr":v},!0)}let a=this.getForm()?.querySelector('input[name="startTime"]'),s=this.getForm()?.querySelector('input[name="openTime"]'),l={codeBlocksEnabled:this.codeBlocksEnabled,dividersEnabled:this.dividersEnabled,linksEnabled:this.linksEnabled,attachmentsEnabled:this.attachmentsEnabled,imagesEnabled:this.imagesEnabled,videosEnabled:this.videosEnabled,datesEnabled:this.datesEnabled,emojisEnabled:this.emojisEnabled,codeEnabled:this.codeEnabled},d=new ce(this.editor,{modules:{toolbar:{container:this.toolbar,config:l},contextMenu:{config:l},keyboard:{bindings:r},dialog:{editorId:this.id},...this.datesEnabled&&{datePicker:{}},...this.emojisEnabled&&{emoji:{},headlessEmoji:{}},...this.aiEnabled&&{ai:{path:this.aiPath}},timeTracking:{startTimeInput:a,openTimeInput:s},...this.attachmentsEnabled&&{attachment:{attachmentInput:this.getForm()?.querySelector('input[name="attachments"]'),onFileUploaded:()=>{window.onbeforeunload=()=>null},upload:async g=>{window.onbeforeunload=()=>"You have unsaved changes. Are you sure you want to leave?";let v=new FormData;v.append("filename",g.name),v.append("size",g.size.toString()),v.append("mimeType",g.type);let y=await fetch(this.uploadAttachmentUrl,{method:"POST",body:v});if(!y.ok)throw new Error(`Upload request failed: ${y.status}`);let z=await y.json(),E=new URL(z.uploadUrl,new URL(this.uploadAttachmentUrl,window.location.href)).toString();return{path:z.uploadPath,url:E,filename:z.originalFilename}}}},imageResize:{},history:{}},placeholder:"Compose your reply...",theme:"snow",bounds:this.editor});this.quillElement=d,d.getModule("dialog")?.component?.addEventListener("zn-editor-insert",this._handleEditorInsert),this.getForm()?.addEventListener("submit",()=>{this._clearCachedContent(),setTimeout(()=>{this.quillElement.getModule("attachment")?.reset()},0)});let m=!!document.createElement("div").attachShadow({mode:"open"}).getSelection,f=g=>{try{if(m)return g?.getSelection()?.getRangeAt(0);{let v=window.getSelection();return v&&"getComposedRanges"in v&&typeof v.getComposedRanges=="function"?Array.isArray(v.getComposedRanges(g))?v.getComposedRanges(g)[0]:void 0:v?.getRangeAt(0)}}catch{return null}};if(d.selection.hasFocus=function(){return d.root.getRootNode().activeElement===d.root},d.selection.getNativeRange=function(){let g=d.root.getRootNode(),v=f(g);return v?d.selection.normalizeNative(v):null},d.selection.setNativeRange=function(g,v){let y=arguments.length>2&&arguments[2]!==void 0?arguments[2]:g,z=arguments.length>3&&arguments[3]!==void 0?arguments[3]:v,E=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(g!==null&&(d.selection.root.parentNode===null||g.parentNode===null||y.parentNode===null))return;let N=document.getSelection();if(N!==null)if(g!==null){d.selection.hasFocus()||d.selection.root.focus();let U=d.selection.getNativeRange()?.native;(U===null||E||g!==U?.startContainer||v!==U.startOffset||y!==U.endContainer||z!==U.endOffset)&&(g.tagName==="BR"&&(v=[].indexOf.call(g.parentNode.childNodes,g),g=g.parentNode),y.tagName==="BR"&&(z=[].indexOf.call(y.parentNode.childNodes,y),y=y.parentNode),N.setBaseAndExtent(g,v,y,z))}else N.removeAllRanges(),d.selection.root.blur(),document.body.focus()},document.addEventListener("selectionchange",()=>{this.quillElement.selection.update()}),document.addEventListener("zn-editor-update",this._handleTextChange.bind(this)),d.on("text-change",this._handleTextChange.bind(this)),d.on(ce.events.SELECTION_CHANGE,(g,v)=>{this._selectionRange=g??v}),this.storeKey&&this._isEmpty(this.value??"")){let g=this._store.get(this.storeKey);g&&(this.value=g,this.editorHtml.value=g)}let b=d.clipboard.convert({html:this.value});d.setContents(b,ce.sources.SILENT),this.emit("zn-element-added",{detail:{element:this.editor}}),super.firstUpdated(t)}_handleTextChange(){this.value=this.quillElement.getSemanticHTML(),this.editorHtml.value=this.value,this._cacheContent(),this.emit("zn-change")}_isEmpty(t){return t.match(/[^<pbr\s>/]/)===null}_cacheContent(){!this.storeKey||!this._store||(this._isEmpty(this.value)?this._store.remove(this.storeKey):this._store.set(this.storeKey,this.value))}_clearCachedContent(){this.storeKey&&this._store&&this._store.remove(this.storeKey)}_getQuillKeyboardBindings(){return{enter:{key:"Enter",shiftKey:!1,handler:()=>{let t=this.quillElement.getModule("headlessEmoji"),r=this.quillElement.getModule("contextMenu"),n=this.quillElement.getModule("dialog");if(t?.isOpen()||r?.isOpen()||n?.isOpen())return!1;if(this.interactionType==="chat"){let a=this.closest("form"),s=!!this.value&&this.value.trim().length>0&&!this._isEmpty(this.value),l=a?.querySelector('input[name="attachments"]'),d=!!l?.value&&l.value!=="[]";return a&&(s||d)?(this.emit("zn-submit",{detail:{value:this.value,element:this}}),a.requestSubmit(),this.quillElement.setText(""),!1):!0}return!0}}}}_handleEditorChange(t){let r=t.selectedTarget;if(!r.hasAttribute("editor-mode"))return;let n=r.getAttribute("editor-mode");if(n!=="replace"&&n!=="insert")return;t.preventDefault();let a=r.getAttribute("editor-content-id");if(!a)return;let s=dr(a),l=t.currentTarget instanceof Element&&t.currentTarget.closest(s)||t.selectedTarget instanceof Element&&t.selectedTarget.closest(s)||t.target instanceof Element&&t.target.closest(s)||t.composedPath()[0]?.closest(s)||Ge(s,document.documentElement,"")[0];if(!l)return;let d=l.textContent;(l instanceof HTMLInputElement||l instanceof Jo)&&(d=l.value),!(!d||d==="")&&(this._content=d.trim(),n==="replace"?this._replaceTextAtSelection():n==="insert"&&this._insertTextAtSelection())}_insertHtml(t,r){let n=this.quillElement,a=n.getSelection(),s;t==="replace"?a&&a.length>0?(n.deleteText(a.index,a.length),s=a.index):(n.setText(""),s=0):s=a?a.index:this._selectionRange.index;let l=n.getLength();n.clipboard.dangerouslyPasteHTML(s,r,ce.sources.USER),n.setSelection(s+Math.max(0,n.getLength()-l),0),this._closePopups()}_replaceTextAtSelection(){let t=this.quillElement.getSelection();t?t.length===0?(this.quillElement.setText(this._content||""),this.quillElement.setSelection(this._content?.length||0,0)):(this.quillElement.deleteText(t.index,t.length),this.quillElement.insertText(t.index,this._content||""),this.quillElement.setSelection(t.index+(this._content.length||0),0)):(this.quillElement.setText(this._content||""),this.quillElement.setSelection(this._content?.length||0,0)),this._closePopups()}_insertTextAtSelection(){let t=this.quillElement.getSelection(),r=t?t.index:this._selectionRange.index;this.quillElement.insertText(r,this._content||""),this.quillElement.setSelection(r+(this._content.length||0),0),this._closePopups()}_closePopups(){this._closeAiPanel(),this._closeDialog()}_closeAiPanel(){let t=this.quillElement.getModule("ai");t&&t.resetComponent()}_closeDialog(){let t=this.quillElement.getModule("dialog");t&&t.close()}render(){return u`
3379
3379
  <zn-toolbar id="toolbar">
3380
3380
  <slot name="tools"></slot>
3381
3381
  </zn-toolbar>
@@ -3416,7 +3416,7 @@ ${Ha(this.code(i,t))}
3416
3416
  title=${this.title}
3417
3417
  name=${this.name}
3418
3418
  value=${O(this.value)}
3419
- .checked=${ar(this.checked)}
3419
+ .checked=${or(this.checked)}
3420
3420
  .disabled=${this.disabled}
3421
3421
  .required=${this.required}
3422
3422
  role="switch"
@@ -3484,8 +3484,8 @@ ${Ha(this.code(i,t))}
3484
3484
  title=${this.title}
3485
3485
  name=${this.name}
3486
3486
  value=${O(this.value)}
3487
- .indeterminate=${ar(this.indeterminate)}
3488
- .checked=${ar(this.checked)}
3487
+ .indeterminate=${or(this.indeterminate)}
3488
+ .checked=${or(this.checked)}
3489
3489
  .disabled=${this.disabled}
3490
3490
  .required=${this.required}
3491
3491
  aria-checked=${this.checked?"true":"false"}
@@ -3556,7 +3556,7 @@ ${Ha(this.code(i,t))}
3556
3556
  </div>
3557
3557
  </label>
3558
3558
  </div>
3559
- `}};ge.styles=[_($e),_(qh),_(b2)],ge.dependencies={"zn-icon":oe},c([B('input[type="checkbox"]')],ge.prototype,"input",2),c([I()],ge.prototype,"hasFocus",2),c([p()],ge.prototype,"title",2),c([p()],ge.prototype,"name",2),c([p()],ge.prototype,"value",2),c([p({attribute:"card-title"})],ge.prototype,"cardTitle",2),c([p({attribute:"unchecked-value",reflect:!0})],ge.prototype,"uncheckedValue",2),c([p({reflect:!0})],ge.prototype,"size",2),c([p({type:Boolean,reflect:!0})],ge.prototype,"disabled",2),c([p({type:Boolean,reflect:!0})],ge.prototype,"checked",2),c([p({type:Boolean,reflect:!0})],ge.prototype,"indeterminate",2),c([p({type:Boolean,reflect:!0})],ge.prototype,"contained",2),c([p({type:Boolean,reflect:!0})],ge.prototype,"square",2),c([p()],ge.prototype,"src",2),c([p({attribute:"image-alt"})],ge.prototype,"imageAlt",2),c([p({attribute:"image-position",reflect:!0})],ge.prototype,"imagePosition",2),c([p({attribute:"control-position",reflect:!0})],ge.prototype,"controlPosition",2),c([p({type:Boolean,reflect:!0})],ge.prototype,"borderless",2),c([p({type:Boolean,reflect:!0})],ge.prototype,"horizontal",2),c([Te("checked")],ge.prototype,"defaultChecked",2),c([p({reflect:!0})],ge.prototype,"form",2),c([p({type:Boolean,reflect:!0})],ge.prototype,"required",2),c([p({attribute:"submit-on-click",type:Boolean,reflect:!0})],ge.prototype,"submitOnClick",2),c([p({attribute:"description"})],ge.prototype,"description",2),c([p()],ge.prototype,"label",2),c([p({attribute:"label-tooltip"})],ge.prototype,"labelTooltip",2),c([p({attribute:"checked-icon"})],ge.prototype,"checkedIcon",2),c([p({attribute:"unchecked-icon"})],ge.prototype,"uncheckedIcon",2),c([p({reflect:!0})],ge.prototype,"color",2),c([p({attribute:"checked-color"})],ge.prototype,"checkedColor",2),c([p({attribute:"unchecked-color"})],ge.prototype,"uncheckedColor",2),c([W("disabled",{waitUntilFirstUpdate:!0})],ge.prototype,"handleDisabledChange",1),c([W(["checked","indeterminate"],{waitUntilFirstUpdate:!0})],ge.prototype,"handleStateChange",1);var UM=ge;ge.define("zn-checkbox");var v2=k`@keyframes rotate-gradient{from{--rotate:0deg}to{--rotate:360deg}}:host{text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-transform:none}*,*::before,*::after{box-sizing:border-box;border-width:0;border-style:solid;border-color:rgb(var(--zn-border-color))}[hidden]{display:none !important}.width-container,.form-container,.wide-form-container{height:100%;width:100%;margin:var(--zn-default-margin,0 auto)}.width-container{max-width:var(--zn-container)}.form-container{max-width:var(--zn-container-ph)}.wide-form-container{max-width:var(--zn-container-lg)}:host{display:flex;justify-content:flex-end;align-items:center;gap:var(--zn-spacing-small)}.form-actions__spacer{order:1;flex:1 1 auto}::slotted(*),zn-button{order:2}::slotted([align=start]){order:0}`;var vr=class extends S{constructor(){super(...arguments);this.submitText="Save";this.submitIcon="check@lu";this.withCancel=!1;this.cancelText="Cancel";this.cancelIcon="x@lu";this.withReset=!1;this.resetText="Reset";this.resetIcon="rotate-ccw@lu";this.handleCancel=()=>{this.emit("zn-cancel")};this.handleReset=()=>{this.getForm()?.reset()};this.handleSubmit=()=>{this.getForm()?.requestSubmit()}}getForm(){return this.form?this.getRootNode().querySelector(pr(this.form)):this.closest("form")}render(){return u`
3559
+ `}};ge.styles=[_($e),_(qh),_(b2)],ge.dependencies={"zn-icon":oe},c([B('input[type="checkbox"]')],ge.prototype,"input",2),c([I()],ge.prototype,"hasFocus",2),c([p()],ge.prototype,"title",2),c([p()],ge.prototype,"name",2),c([p()],ge.prototype,"value",2),c([p({attribute:"card-title"})],ge.prototype,"cardTitle",2),c([p({attribute:"unchecked-value",reflect:!0})],ge.prototype,"uncheckedValue",2),c([p({reflect:!0})],ge.prototype,"size",2),c([p({type:Boolean,reflect:!0})],ge.prototype,"disabled",2),c([p({type:Boolean,reflect:!0})],ge.prototype,"checked",2),c([p({type:Boolean,reflect:!0})],ge.prototype,"indeterminate",2),c([p({type:Boolean,reflect:!0})],ge.prototype,"contained",2),c([p({type:Boolean,reflect:!0})],ge.prototype,"square",2),c([p()],ge.prototype,"src",2),c([p({attribute:"image-alt"})],ge.prototype,"imageAlt",2),c([p({attribute:"image-position",reflect:!0})],ge.prototype,"imagePosition",2),c([p({attribute:"control-position",reflect:!0})],ge.prototype,"controlPosition",2),c([p({type:Boolean,reflect:!0})],ge.prototype,"borderless",2),c([p({type:Boolean,reflect:!0})],ge.prototype,"horizontal",2),c([Te("checked")],ge.prototype,"defaultChecked",2),c([p({reflect:!0})],ge.prototype,"form",2),c([p({type:Boolean,reflect:!0})],ge.prototype,"required",2),c([p({attribute:"submit-on-click",type:Boolean,reflect:!0})],ge.prototype,"submitOnClick",2),c([p({attribute:"description"})],ge.prototype,"description",2),c([p()],ge.prototype,"label",2),c([p({attribute:"label-tooltip"})],ge.prototype,"labelTooltip",2),c([p({attribute:"checked-icon"})],ge.prototype,"checkedIcon",2),c([p({attribute:"unchecked-icon"})],ge.prototype,"uncheckedIcon",2),c([p({reflect:!0})],ge.prototype,"color",2),c([p({attribute:"checked-color"})],ge.prototype,"checkedColor",2),c([p({attribute:"unchecked-color"})],ge.prototype,"uncheckedColor",2),c([W("disabled",{waitUntilFirstUpdate:!0})],ge.prototype,"handleDisabledChange",1),c([W(["checked","indeterminate"],{waitUntilFirstUpdate:!0})],ge.prototype,"handleStateChange",1);var UM=ge;ge.define("zn-checkbox");var v2=k`@keyframes rotate-gradient{from{--rotate:0deg}to{--rotate:360deg}}:host{text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-transform:none}*,*::before,*::after{box-sizing:border-box;border-width:0;border-style:solid;border-color:rgb(var(--zn-border-color))}[hidden]{display:none !important}.width-container,.form-container,.wide-form-container{height:100%;width:100%;margin:var(--zn-default-margin,0 auto)}.width-container{max-width:var(--zn-container)}.form-container{max-width:var(--zn-container-ph)}.wide-form-container{max-width:var(--zn-container-lg)}:host{display:flex;justify-content:flex-end;align-items:center;gap:var(--zn-spacing-small)}.form-actions__spacer{order:1;flex:1 1 auto}::slotted(*),zn-button{order:2}::slotted([align=start]){order:0}`;var br=class extends S{constructor(){super(...arguments);this.submitText="Save";this.submitIcon="check@lu";this.withCancel=!1;this.cancelText="Cancel";this.cancelIcon="x@lu";this.withReset=!1;this.resetText="Reset";this.resetIcon="rotate-ccw@lu";this.handleCancel=()=>{this.emit("zn-cancel")};this.handleReset=()=>{this.getForm()?.reset()};this.handleSubmit=()=>{this.getForm()?.requestSubmit()}}getForm(){return this.form?this.getRootNode().querySelector(dr(this.form)):this.closest("form")}render(){return u`
3560
3560
  <slot></slot>
3561
3561
  <span class="form-actions__spacer"></span>
3562
3562
  ${this.withCancel?u`
@@ -3569,7 +3569,7 @@ ${Ha(this.code(i,t))}
3569
3569
  </zn-button>`:""}
3570
3570
  <zn-button part="submit-button" color="primary" icon="${this.submitIcon}" @click="${this.handleSubmit}">
3571
3571
  ${this.submitText}
3572
- </zn-button>`}};vr.styles=_(v2),vr.dependencies={"zn-button":Ee},c([p({attribute:"submit-text"})],vr.prototype,"submitText",2),c([p({attribute:"submit-icon"})],vr.prototype,"submitIcon",2),c([p({attribute:"with-cancel",type:Boolean})],vr.prototype,"withCancel",2),c([p({attribute:"cancel-text"})],vr.prototype,"cancelText",2),c([p({attribute:"cancel-icon"})],vr.prototype,"cancelIcon",2),c([p({attribute:"with-reset",type:Boolean})],vr.prototype,"withReset",2),c([p({attribute:"reset-text"})],vr.prototype,"resetText",2),c([p({attribute:"reset-icon"})],vr.prototype,"resetIcon",2),c([p()],vr.prototype,"form",2);var jM=vr;vr.define("zn-form-actions");var y2=k`@keyframes rotate-gradient{from{--rotate:0deg}to{--rotate:360deg}}:host{text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-transform:none}*,*::before,*::after{box-sizing:border-box;border-width:0;border-style:solid;border-color:rgb(var(--zn-border-color))}[hidden]{display:none !important}.width-container,.form-container,.wide-form-container{height:100%;width:100%;margin:var(--zn-default-margin,0 auto)}.width-container{max-width:var(--zn-container)}.form-container{max-width:var(--zn-container-ph)}.wide-form-container{max-width:var(--zn-container-lg)}:host{display:block;line-height:var(--zn-line-height-dense);max-width:var(--zn-container-lg);--zn-col-gap:calc(var(--zn-spacing-medium,20px) * 3);--zn-form-group-sticky-top:var(--zn-spacing-medium,20px)}.form-control{position:relative;border:none;padding:0;margin:0}.form-control__label{padding:0}.form-control--has-label .form-control__label{font-weight:var(--zn-font-weight-bold);font-size:var(--zn-font-size-large)}.form-control__container{--zn-col-basis:200px}@container (min-width:670px){.form-control__text{position:sticky;top:var(--zn-form-group-sticky-top);align-self:flex-start}}.form-control__chip{margin-top:var(--zn-spacing-x-small)}.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.form-control-input{display:grid;grid-template-columns:minmax(0,1fr);gap:var(--zn-spacing-medium) var(--zn-spacing-small)}@media (min-width:768px){.form-control-input{grid-template-columns:repeat(6,minmax(0,1fr))}}.form-control-input>::slotted(*){grid-column:span 6/span 6}@media (min-width:768px){.form-control-input>::slotted([span="1"]){grid-column:span 1/span 1}}@media (min-width:768px){.form-control-input>::slotted([span="2"]){grid-column:span 2/span 2}}@media (min-width:768px){.form-control-input>::slotted([span="3"]){grid-column:span 3/span 3}}@media (min-width:768px){.form-control-input>::slotted([span="4"]){grid-column:span 4/span 4}}@media (min-width:768px){.form-control-input>::slotted([span="5"]){grid-column:span 5/span 5}}zn-cols::part(base){gap:var(--zn-gap)}@container (min-width:670px){zn-cols::part(base){gap:70px}}.form-control--pad .form-control__text{padding-top:var(--zn-base-gap);padding-left:var(--zn-base-gap)}`;var Ei=class extends S{constructor(){super(...arguments);this.hasSlotController=new Y(this,"help-text","label","chip");this.label="";this.labelTooltip="";this.helpText="";this.forceCols=!1;this.layout="1,2";this.pad=!1;this.tracked=null;this.animation=null;this.stickyTop=0;this.frame=0;this.rebind=!1;this.offset=0;this.resizeObserver=null;this.observedAncestors=new Set;this.onScroll=()=>this.schedule();this.onScrollEnd=()=>this.schedule(!0);this.onViewportResize=()=>this.schedule(!0)}connectedCallback(){super.connectedCallback(),this.resizeObserver??(this.resizeObserver=new ResizeObserver(()=>{this.rebind=!1,this.bind(),this.positionLabel()})),this.resizeObserver.observe(this),window.addEventListener("resize",this.onViewportResize)}disconnectedCallback(){super.disconnectedCallback(),this.resizeObserver?.disconnect(),this.observedAncestors.clear(),window.removeEventListener("resize",this.onViewportResize),this.detach(),cancelAnimationFrame(this.frame),this.frame=0}firstUpdated(t){super.firstUpdated(t),this.schedule(!0)}get labelColumn(){return this.shadowRoot?.querySelector(".form-control__text")??null}schedule(t=!1){this.rebind||(this.rebind=t),!this.frame&&(this.frame=requestAnimationFrame(()=>{this.frame=0,this.rebind&&(this.rebind=!1,this.bind()),this.positionLabel()}))}bind(){let t=this.labelColumn;if(!t)return;this.detach(),t.style.top="",this.stickyTop=parseFloat(getComputedStyle(t).top)||0;let r=this.nearestScrollContainer(t);if(!r)return;let n=this.scrollingAncestor(t);if(n!==r&&(t.style.top="0px",this.observeAncestors(t,n),!!n)){if(this.tracked=n,this.animation=this.scrollLinkedTravel(n),this.animation){this.animation.play(),this.scrollTarget(n)?.addEventListener("scrollend",this.onScrollEnd,{passive:!0});return}this.scrollTarget(n)?.addEventListener("scroll",this.onScroll,{passive:!0})}}scrollLinkedTravel(t){let r=this.labelColumn,n=this.fieldset;if(!r||!n||typeof ScrollTimeline>"u"||getComputedStyle(r).position!=="sticky"||!("rangeStart"in Animation.prototype))return null;let a=Math.max(0,n.clientHeight-r.offsetHeight);if(a<1)return null;let s=t.scrollTop+r.getBoundingClientRect().top-this.visibleTop(t)-this.stickyTop,l=new Animation(new KeyframeEffect(r,[{transform:"translateY(0px)"},{transform:`translateY(${a}px)`}],{fill:"both"}),new ScrollTimeline({source:t,axis:"block"}));return l.rangeStart=`${s}px`,l.rangeEnd=`${s+a}px`,l}detach(){let t=this.scrollTarget(this.tracked);t?.removeEventListener("scroll",this.onScroll),t?.removeEventListener("scrollend",this.onScrollEnd),this.tracked=null,this.animation?.cancel(),this.animation=null;let r=this.labelColumn;r&&(this.offset=0,r.style.transform="")}observeAncestors(t,r){let n=this.ancestors(t),a=r?n.indexOf(r):-1,s=new Set(n.slice(0,a<0?void 0:a).filter(l=>l!==this));for(let l of this.observedAncestors)s.has(l)||this.resizeObserver?.unobserve(l);for(let l of s)this.observedAncestors.has(l)||this.resizeObserver?.observe(l);this.observedAncestors=s}scrollTarget(t){return t?t===document.scrollingElement?window:t:null}visibleTop(t){return t===document.scrollingElement?0:t.getBoundingClientRect().top}get fieldset(){return this.shadowRoot?.querySelector(".form-control")??null}positionLabel(){if(this.animation)return;let t=this.labelColumn,r=this.fieldset;if(!t||!r)return;let n=0;if(this.tracked&&getComputedStyle(t).position==="sticky"){let a=this.visibleTop(this.tracked),s=t.getBoundingClientRect().top-this.offset,l=Math.max(0,r.clientHeight-t.offsetHeight);n=Math.min(Math.max(a+this.stickyTop-s,0),l)}Math.round(n)!==Math.round(this.offset)&&(this.offset=n,t.style.transform=n?`translateY(${n}px)`:"")}nearestScrollContainer(t){return this.ancestors(t).find(r=>{let n=getComputedStyle(r);return this.isScrollContainer(n.overflowY)||this.isScrollContainer(n.overflowX)})??null}scrollingAncestor(t){let r=this.ancestors(t).find(a=>{let s=getComputedStyle(a).overflowY;return(s==="auto"||s==="scroll"||s==="overlay")&&a.scrollHeight>a.clientHeight+1});if(r)return r;let n=document.scrollingElement;return n&&n.scrollHeight>n.clientHeight+1?n:null}isScrollContainer(t){return t==="auto"||t==="scroll"||t==="hidden"||t==="overlay"}ancestors(t){let r=[],n=t;for(;n;){let a=n instanceof Element&&n.assignedSlot?n.assignedSlot:n.parentNode instanceof ShadowRoot?n.parentNode.host:n.parentNode;a instanceof HTMLElement&&r.push(a),n=a}return r}render(){let t=this.hasSlotController.test("label"),r=this.hasSlotController.test("label-tooltip"),n=this.hasSlotController.test("help-text"),a=this.label?!0:t,s=this.labelTooltip?!0:r,l=this.helpText?!0:n,d=this.hasSlotController.test("chip");return u`
3572
+ </zn-button>`}};br.styles=_(v2),br.dependencies={"zn-button":Ee},c([p({attribute:"submit-text"})],br.prototype,"submitText",2),c([p({attribute:"submit-icon"})],br.prototype,"submitIcon",2),c([p({attribute:"with-cancel",type:Boolean})],br.prototype,"withCancel",2),c([p({attribute:"cancel-text"})],br.prototype,"cancelText",2),c([p({attribute:"cancel-icon"})],br.prototype,"cancelIcon",2),c([p({attribute:"with-reset",type:Boolean})],br.prototype,"withReset",2),c([p({attribute:"reset-text"})],br.prototype,"resetText",2),c([p({attribute:"reset-icon"})],br.prototype,"resetIcon",2),c([p()],br.prototype,"form",2);var jM=br;br.define("zn-form-actions");var y2=k`@keyframes rotate-gradient{from{--rotate:0deg}to{--rotate:360deg}}:host{text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-transform:none}*,*::before,*::after{box-sizing:border-box;border-width:0;border-style:solid;border-color:rgb(var(--zn-border-color))}[hidden]{display:none !important}.width-container,.form-container,.wide-form-container{height:100%;width:100%;margin:var(--zn-default-margin,0 auto)}.width-container{max-width:var(--zn-container)}.form-container{max-width:var(--zn-container-ph)}.wide-form-container{max-width:var(--zn-container-lg)}:host{display:block;line-height:var(--zn-line-height-dense);max-width:var(--zn-container-lg);--zn-col-gap:calc(var(--zn-spacing-medium,20px) * 3);--zn-form-group-sticky-top:var(--zn-spacing-medium,20px)}.form-control{position:relative;border:none;padding:0;margin:0}.form-control__label{padding:0}.form-control--has-label .form-control__label{font-weight:var(--zn-font-weight-bold);font-size:var(--zn-font-size-large)}.form-control__container{--zn-col-basis:200px}@container (min-width:670px){.form-control__text{position:sticky;top:var(--zn-form-group-sticky-top);align-self:flex-start}}.form-control__chip{margin-top:var(--zn-spacing-x-small)}.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.form-control-input{display:grid;grid-template-columns:minmax(0,1fr);gap:var(--zn-spacing-medium) var(--zn-spacing-small)}@media (min-width:768px){.form-control-input{grid-template-columns:repeat(6,minmax(0,1fr))}}.form-control-input>::slotted(*){grid-column:span 6/span 6}@media (min-width:768px){.form-control-input>::slotted([span="1"]){grid-column:span 1/span 1}}@media (min-width:768px){.form-control-input>::slotted([span="2"]){grid-column:span 2/span 2}}@media (min-width:768px){.form-control-input>::slotted([span="3"]){grid-column:span 3/span 3}}@media (min-width:768px){.form-control-input>::slotted([span="4"]){grid-column:span 4/span 4}}@media (min-width:768px){.form-control-input>::slotted([span="5"]){grid-column:span 5/span 5}}zn-cols::part(base){gap:var(--zn-gap)}@container (min-width:670px){zn-cols::part(base){gap:70px}}.form-control--pad .form-control__text{padding-top:var(--zn-base-gap);padding-left:var(--zn-base-gap)}`;var Ei=class extends S{constructor(){super(...arguments);this.hasSlotController=new Y(this,"help-text","label","chip");this.label="";this.labelTooltip="";this.helpText="";this.forceCols=!1;this.layout="1,2";this.pad=!1;this.tracked=null;this.animation=null;this.stickyTop=0;this.frame=0;this.rebind=!1;this.offset=0;this.resizeObserver=null;this.observedAncestors=new Set;this.onScroll=()=>this.schedule();this.onScrollEnd=()=>this.schedule(!0);this.onViewportResize=()=>this.schedule(!0)}connectedCallback(){super.connectedCallback(),this.resizeObserver??(this.resizeObserver=new ResizeObserver(()=>{this.rebind=!1,this.bind(),this.positionLabel()})),this.resizeObserver.observe(this),window.addEventListener("resize",this.onViewportResize)}disconnectedCallback(){super.disconnectedCallback(),this.resizeObserver?.disconnect(),this.observedAncestors.clear(),window.removeEventListener("resize",this.onViewportResize),this.detach(),cancelAnimationFrame(this.frame),this.frame=0}firstUpdated(t){super.firstUpdated(t),this.schedule(!0)}get labelColumn(){return this.shadowRoot?.querySelector(".form-control__text")??null}schedule(t=!1){this.rebind||(this.rebind=t),!this.frame&&(this.frame=requestAnimationFrame(()=>{this.frame=0,this.rebind&&(this.rebind=!1,this.bind()),this.positionLabel()}))}bind(){let t=this.labelColumn;if(!t)return;this.detach(),t.style.top="",this.stickyTop=parseFloat(getComputedStyle(t).top)||0;let r=this.nearestScrollContainer(t);if(!r)return;let n=this.scrollingAncestor(t);if(n!==r&&(t.style.top="0px",this.observeAncestors(t,n),!!n)){if(this.tracked=n,this.animation=this.scrollLinkedTravel(n),this.animation){this.animation.play(),this.scrollTarget(n)?.addEventListener("scrollend",this.onScrollEnd,{passive:!0});return}this.scrollTarget(n)?.addEventListener("scroll",this.onScroll,{passive:!0})}}scrollLinkedTravel(t){let r=this.labelColumn,n=this.fieldset;if(!r||!n||typeof ScrollTimeline>"u"||getComputedStyle(r).position!=="sticky"||!("rangeStart"in Animation.prototype))return null;let a=Math.max(0,n.clientHeight-r.offsetHeight);if(a<1)return null;let s=t.scrollTop+r.getBoundingClientRect().top-this.visibleTop(t)-this.stickyTop,l=new Animation(new KeyframeEffect(r,[{transform:"translateY(0px)"},{transform:`translateY(${a}px)`}],{fill:"both"}),new ScrollTimeline({source:t,axis:"block"}));return l.rangeStart=`${s}px`,l.rangeEnd=`${s+a}px`,l}detach(){let t=this.scrollTarget(this.tracked);t?.removeEventListener("scroll",this.onScroll),t?.removeEventListener("scrollend",this.onScrollEnd),this.tracked=null,this.animation?.cancel(),this.animation=null;let r=this.labelColumn;r&&(this.offset=0,r.style.transform="")}observeAncestors(t,r){let n=this.ancestors(t),a=r?n.indexOf(r):-1,s=new Set(n.slice(0,a<0?void 0:a).filter(l=>l!==this));for(let l of this.observedAncestors)s.has(l)||this.resizeObserver?.unobserve(l);for(let l of s)this.observedAncestors.has(l)||this.resizeObserver?.observe(l);this.observedAncestors=s}scrollTarget(t){return t?t===document.scrollingElement?window:t:null}visibleTop(t){return t===document.scrollingElement?0:t.getBoundingClientRect().top}get fieldset(){return this.shadowRoot?.querySelector(".form-control")??null}positionLabel(){if(this.animation)return;let t=this.labelColumn,r=this.fieldset;if(!t||!r)return;let n=0;if(this.tracked&&getComputedStyle(t).position==="sticky"){let a=this.visibleTop(this.tracked),s=t.getBoundingClientRect().top-this.offset,l=Math.max(0,r.clientHeight-t.offsetHeight);n=Math.min(Math.max(a+this.stickyTop-s,0),l)}Math.round(n)!==Math.round(this.offset)&&(this.offset=n,t.style.transform=n?`translateY(${n}px)`:"")}nearestScrollContainer(t){return this.ancestors(t).find(r=>{let n=getComputedStyle(r);return this.isScrollContainer(n.overflowY)||this.isScrollContainer(n.overflowX)})??null}scrollingAncestor(t){let r=this.ancestors(t).find(a=>{let s=getComputedStyle(a).overflowY;return(s==="auto"||s==="scroll"||s==="overlay")&&a.scrollHeight>a.clientHeight+1});if(r)return r;let n=document.scrollingElement;return n&&n.scrollHeight>n.clientHeight+1?n:null}isScrollContainer(t){return t==="auto"||t==="scroll"||t==="hidden"||t==="overlay"}ancestors(t){let r=[],n=t;for(;n;){let a=n instanceof Element&&n.assignedSlot?n.assignedSlot:n.parentNode instanceof ShadowRoot?n.parentNode.host:n.parentNode;a instanceof HTMLElement&&r.push(a),n=a}return r}render(){let t=this.hasSlotController.test("label"),r=this.hasSlotController.test("label-tooltip"),n=this.hasSlotController.test("help-text"),a=this.label?!0:t,s=this.labelTooltip?!0:r,l=this.helpText?!0:n,d=this.hasSlotController.test("chip");return u`
3573
3573
  <fieldset
3574
3574
  part="form-control"
3575
3575
  class="${M({"form-control":!0,"form-control--has-label":a,"form-control--has-label-tooltip":s,"form-control--has-help-text":l,"form-control--pad":this.pad})}"
@@ -3634,7 +3634,7 @@ ${Ha(this.code(i,t))}
3634
3634
  aria-labelledby="label">
3635
3635
  <slot @slotchange=${this.handleSlotChange}></slot>
3636
3636
  </div>
3637
- </div>`}};Nn.styles=[_($e),_(x2)],c([B("slot:not([name])")],Nn.prototype,"defaultSlot",2),c([p()],Nn.prototype,"label",2),c([p()],Nn.prototype,"gap",2);var GM=Nn;Nn.define("zn-input-group");var w2=k`@keyframes rotate-gradient{from{--rotate:0deg}to{--rotate:360deg}}:host{text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-transform:none}*,*::before,*::after{box-sizing:border-box;border-width:0;border-style:solid;border-color:rgb(var(--zn-border-color))}[hidden]{display:none !important}.width-container,.form-container,.wide-form-container{height:100%;width:100%;margin:var(--zn-default-margin,0 auto)}.width-container{max-width:var(--zn-container)}.form-container{max-width:var(--zn-container-ph)}.wide-form-container{max-width:var(--zn-container-lg)}:host{width:100%}:host select{border:none !important}`;var Et=class extends S{constructor(){super(...arguments);this.name="";this.value="";this.defaultValue="";this.checked=!1;this.linkedSelect="";this.cacheKey="";this.label="";this.selectFirst=!1;this.multiple=!1;this.placeholder="";this.clearable=!1;this.search=!1;this.helpText="";this.formControlController=new re(this,{value:t=>{let r=this.input;return r?r.value:t.value}});this.handleLinkedSelectChange=()=>{let t=this.serialisedValue();this.value=this.multiple?[]:this.selectFirst?Object.keys(this.currentOptions())[0]??"":"",this.requestUpdate(),this.formControlController.updateValidity(),t!==this.serialisedValue()&&this.emit("zn-change")};this.handleSelectChange=t=>{this.value=t.target.value}}get displayLabel(){return this.input.displayLabel}get validity(){return this.input?.validity}get validationMessage(){return this.input.validationMessage}connectedCallback(){super.connectedCallback();let t=0,r=this.parentElement;for(;t<10&&r&&r.tagName!=="DOCUMENT";){let n=r.querySelector(`[id="${this.linkedSelect}"]`);if(n instanceof Oe){this.linkedSelectElement=n;break}r=r.parentElement,t++}if(!this.linkedSelectElement)throw new Error(`Linked select element with name ${this.linkedSelect} not found`)}willUpdate(t){super.willUpdate(t),this.multiple&&!Array.isArray(this.value)&&(this.value=this.value?this.value.split(" "):[])}firstUpdated(t){this.linkedSelectElement?.addEventListener("zn-change",this.handleLinkedSelectChange),this.input.addEventListener("zn-change",this.handleChange),this.formControlController.updateValidity(),super.firstUpdated(t)}disconnectedCallback(){this.linkedSelectElement?.removeEventListener("zn-change",this.handleLinkedSelectChange),super.disconnectedCallback()}checkValidity(){return this.input.checkValidity()}getForm(){return this.formControlController.getForm()}reportValidity(){return this.input.reportValidity()}setCustomValidity(t){this.input.setCustomValidity(t),this.formControlController.updateValidity()}serialisedValue(){return Array.isArray(this.value)?this.value.join(" "):this.value}handleChange(t){this.value=t.target.value,this.formControlController.updateValidity()}currentOptions(){if(!this.options)return{};let t=this.linkedSelectElement?.value;return t||(t=Object.keys(this.options)[0]),(t?this.options[t]:{})??{}}render(){let t=this.currentOptions();return u`
3637
+ </div>`}};Nn.styles=[_($e),_(x2)],c([B("slot:not([name])")],Nn.prototype,"defaultSlot",2),c([p()],Nn.prototype,"label",2),c([p()],Nn.prototype,"gap",2);var GM=Nn;Nn.define("zn-input-group");var w2=k`@keyframes rotate-gradient{from{--rotate:0deg}to{--rotate:360deg}}:host{text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-transform:none}*,*::before,*::after{box-sizing:border-box;border-width:0;border-style:solid;border-color:rgb(var(--zn-border-color))}[hidden]{display:none !important}.width-container,.form-container,.wide-form-container{height:100%;width:100%;margin:var(--zn-default-margin,0 auto)}.width-container{max-width:var(--zn-container)}.form-container{max-width:var(--zn-container-ph)}.wide-form-container{max-width:var(--zn-container-lg)}:host{width:100%}:host select{border:none !important}`;var Et=class extends S{constructor(){super(...arguments);this.name="";this.value="";this.defaultValue="";this.checked=!1;this.linkedSelect="";this.cacheKey="";this.label="";this.selectFirst=!1;this.multiple=!1;this.placeholder="";this.clearable=!1;this.search=!1;this.helpText="";this.formControlController=new re(this,{value:t=>{let r=this.input;return r?r.value:t.value}});this.handleLinkedSelectChange=()=>{let t=this.serialisedValue(),r=Object.keys(this.currentOptions());this.multiple?this.value=r.length===1?r:[]:this.value=r[0]??"",this.requestUpdate(),this.formControlController.updateValidity(),t!==this.serialisedValue()&&this.emit("zn-change")};this.handleSelectChange=t=>{this.value=t.target.value}}get displayLabel(){return this.input.displayLabel}get validity(){return this.input?.validity}get validationMessage(){return this.input.validationMessage}connectedCallback(){super.connectedCallback();let t=0,r=this.parentElement;for(;t<10&&r&&r.tagName!=="DOCUMENT";){let n=r.querySelector(`[id="${this.linkedSelect}"]`);if(n instanceof Oe){this.linkedSelectElement=n;break}r=r.parentElement,t++}if(!this.linkedSelectElement)throw new Error(`Linked select element with name ${this.linkedSelect} not found`)}willUpdate(t){super.willUpdate(t),this.multiple&&!Array.isArray(this.value)&&(this.value=this.value?this.value.split(" "):[])}firstUpdated(t){this.linkedSelectElement?.addEventListener("zn-change",this.handleLinkedSelectChange),this.input.addEventListener("zn-change",this.handleChange),this.formControlController.updateValidity(),super.firstUpdated(t)}disconnectedCallback(){this.linkedSelectElement?.removeEventListener("zn-change",this.handleLinkedSelectChange),super.disconnectedCallback()}checkValidity(){return this.input.checkValidity()}getForm(){return this.formControlController.getForm()}reportValidity(){return this.input.reportValidity()}setCustomValidity(t){this.input.setCustomValidity(t),this.formControlController.updateValidity()}serialisedValue(){return Array.isArray(this.value)?this.value.join(" "):this.value}handleChange(t){this.value=t.target.value,this.formControlController.updateValidity()}currentOptions(){if(!this.options)return{};let t=this.linkedSelectElement?.value;return t||(t=Object.keys(this.options)[0]),(t?this.options[t]:{})??{}}render(){let t=this.currentOptions(),r=Object.keys(t).length?this.placeholder:"No options available";return u`
3638
3638
  <zn-select part="select"
3639
3639
  class="linked-select"
3640
3640
  name="${this.name}"
@@ -3644,13 +3644,13 @@ ${Ha(this.code(i,t))}
3644
3644
  ?multiple="${this.multiple}"
3645
3645
  ?clearable="${this.clearable}"
3646
3646
  ?search="${this.search}"
3647
- placeholder="${this.placeholder}"
3647
+ placeholder="${r}"
3648
3648
  help-text="${this.helpText}"
3649
3649
  .value="${this.value}"
3650
3650
  @zn-change=${this.handleSelectChange}
3651
3651
  label="${this.label}">
3652
- ${t&&Object.entries(t).map(([r,n])=>u`
3653
- <zn-option value="${r}">${n}</zn-option>
3652
+ ${t&&Object.entries(t).map(([n,a])=>u`
3653
+ <zn-option value="${n}">${a}</zn-option>
3654
3654
  `)}
3655
3655
  </zn-select>`}};Et.styles=_(w2),c([p()],Et.prototype,"name",2),c([p()],Et.prototype,"value",2),c([Te()],Et.prototype,"defaultValue",2),c([p({type:Boolean,reflect:!0})],Et.prototype,"checked",2),c([p({type:Array})],Et.prototype,"options",2),c([p({attribute:"linked-select"})],Et.prototype,"linkedSelect",2),c([p({attribute:"cache-key"})],Et.prototype,"cacheKey",2),c([p()],Et.prototype,"label",2),c([p({attribute:"select-first",type:Boolean})],Et.prototype,"selectFirst",2),c([p({type:Boolean,reflect:!0})],Et.prototype,"multiple",2),c([p()],Et.prototype,"placeholder",2),c([p({type:Boolean})],Et.prototype,"clearable",2),c([p({type:Boolean})],Et.prototype,"search",2),c([p({attribute:"help-text"})],Et.prototype,"helpText",2),c([B("zn-select")],Et.prototype,"input",2);var KM=Et;Et.define("zn-linked-select");var z2=k`@keyframes rotate-gradient{from{--rotate:0deg}to{--rotate:360deg}}:host{text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-transform:none}*,*::before,*::after{box-sizing:border-box;border-width:0;border-style:solid;border-color:rgb(var(--zn-border-color))}[hidden]{display:none !important}.width-container,.form-container,.wide-form-container{height:100%;width:100%;margin:var(--zn-default-margin,0 auto)}.width-container{max-width:var(--zn-container)}.form-container{max-width:var(--zn-container-ph)}.wide-form-container{max-width:var(--zn-container-lg)}:host{display:block}.form-control{display:flex;flex-direction:column}.form-control .form-control__label{padding-bottom:var(--zn-spacing-small)}.radio{position:relative;display:inline-flex;align-items:flex-start;font-family:var(--zn-input-font-family),sans-serif;font-weight:var(--zn-input-font-weight);color:var(--zn-input-label-color);cursor:pointer}.radio--small{--toggle-size:var(--zn-toggle-size-small);font-size:var(--zn-input-font-size-small)}.radio--small .radio__description{font-size:var(--zn-font-size-x-small)}.radio--medium{--toggle-size:var(--zn-toggle-size-medium);font-size:var(--zn-input-font-size-medium)}.radio--medium .radio__description,.radio--large .radio__description{font-size:var(--zn-input-font-size-small)}.radio--large{--toggle-size:var(--zn-toggle-size-large);font-size:var(--zn-input-font-size-large)}.radio__control{flex:0 0 auto;position:relative;display:inline-flex;align-items:center;justify-content:center;width:var(--toggle-size);height:var(--toggle-size);border:solid var(--zn-input-border-width) var(--zn-input-border-color);border-radius:50%;background-color:var(--zn-input-background-color);color:var(--zn-color-neutral-0);transition:var(--zn-transition-fast) border-color,var(--zn-transition-fast) background-color,var(--zn-transition-fast) color,var(--zn-transition-fast) box-shadow}.radio__input{position:absolute;opacity:0;padding:0;margin:0;pointer-events:none}.radio__checked-icon{--icon-size:var(--toggle-size);--icon-color:var(--zn-color-primary);display:inline-flex}.radio:not(.radio--checked):not(.radio--disabled) .radio__control:hover{border-color:rgb(var(--zn-primary));background-color:rgb(var(--zn-primary),0.2)}.radio--checked .radio__control{color:rgb(var(--zn-primary));border:none}.radio.radio--checked:not(.radio--disabled) .radio__control:hover{color:rgba(var(--zn-primary),0.6);border:none}.radio:not(.radio--checked):not(.radio--disabled) .radio__input:focus-visible~.radio__control{border-color:rgb(var(--zn-primary));outline:var(--zn-focus-ring);outline-offset:var(--zn-focus-ring-offset)}.radio.radio--checked:not(.radio--disabled) .radio__input:focus-visible~.radio__control{outline:var(--zn-focus-ring);outline-offset:var(--zn-focus-ring-offset)}.radio--disabled{opacity:0.5;cursor:not-allowed}.radio:not(.radio--checked) svg circle{opacity:0}:host-context([required]) .radio__label::after{display:none}:host([required]) .radio__label::after{display:none}:host(.radio-user-invalid) .radio__control{border-color:var(--zn-color-danger-600)}:host(.radio-user-invalid) .radio:not(.radio--checked):not(.radio--disabled) .radio__input:focus-visible~.radio__control{border-color:var(--zn-color-danger-600);outline:var(--zn-focus-ring-style) var(--zn-focus-ring-width) var(--zn-error-focus-ring-color);outline-offset:var(--zn-focus-ring-offset)}:host(.groupedRadio){margin-top:var(--zn-spacing-medium)}:host(.groupedRadio[horizontal]),:host(.groupedRadio[contained]){margin-top:var(--zn-spacing-small)}:host(.groupedRadio[horizontal][contained]){margin-top:0;height:100%}.radio__label{display:inline-block;color:var(--zn-input-label-color);line-height:var(--toggle-size);margin-inline-start:0.75em;-moz-user-select:none;user-select:none;-webkit-user-select:none}.radio--contained{padding:1.375rem var(--zn-spacing-large) 1.375rem var(--zn-spacing-medium);border:1px solid var(--zn-color-gray-400);width:100%;height:100%}:not(.radio--disabled).radio--contained:hover,:not(.radio--disabled).radio--contained.radio--checked:hover{background-color:var(--zn-color-purple-50);transition:var(--zn-transition-medium) all}.radio--contained.radio--checked .radio__label{color:var(--zn-color-purple-600);font-weight:var(--zn-font-weight-semibold)}.radio--contained.radio--checked .radio__description{color:var(--zn-color-gray-900);font-weight:var(--zn-font-weight-normal)}.radio--contained.radio--checked{background-color:var(--zn-color-purple-100);border:1px solid var(--zn-color-purple-600);outline:1px solid var(--zn-color-purple-600);transition:var(--zn-transition-medium) all}.radio:not(.radio--checked) svg circle{opacity:0}`;var Ie=class extends S{constructor(){super(...arguments);this.formControlController=new re(this,{value:t=>t.checked?t.value||"on":void 0,defaultValue:t=>t.defaultChecked,setValue:(t,r)=>t.checked=r});this.hasSlotController=new Y(this,"[default]","description","image");this.hasFocus=!1;this.title="";this.name="";this.cardTitle="";this.size="medium";this.disabled=!1;this.checked=!1;this.contained=!1;this.square=!1;this.src="";this.imageAlt="";this.imagePosition="left";this.controlPosition="start";this.horizontal=!1;this.defaultChecked=!1;this.form="";this.required=!1;this.description=""}get validity(){return this.input?.validity}get validationMessage(){return this.input.validationMessage}firstUpdated(){this.formControlController.updateValidity()}handleClick(){this.disabled||(this.checked=!this.checked,this.emit("zn-change"))}handleBlur(){this.hasFocus=!1,this.emit("zn-blur")}handleInput(){this.emit("zn-input")}handleInvalid(t){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(t)}handleFocus(){this.hasFocus=!0,this.emit("zn-focus")}handleSelectedContentClick(t){t.preventDefault()}handleDisabledChange(){this.formControlController.setValidity(this.disabled)}handleStateChange(){this.input.checked=this.checked,this.formControlController.updateValidity()}click(){this.input.click()}focus(t){this.input.focus(t)}blur(){this.input.blur()}checkValidity(){return this.input.checkValidity()}getForm(){return this.formControlController.getForm()}reportValidity(){return this.input.reportValidity()}setCustomValidity(t){this.input.setCustomValidity(t),this.formControlController.updateValidity()}render(){let t=this.hasSlotController.test("description"),r=this.description?!0:t,n=this.contained&&(!!this.src||this.hasSlotController.test("image")),a=this.hasSlotController.test("[default]"),s=this.contained&&(n||!!this.cardTitle||this.controlPosition!=="start"),l=this.hasSlotController.test("label"),d=this.hasSlotController.test("label-tooltip"),h=this.label||l;return u`
3656
3656
  <div
@@ -3681,7 +3681,7 @@ ${Ha(this.code(i,t))}
3681
3681
  title=${this.title}
3682
3682
  name=${this.name}
3683
3683
  value=${O(this.value)}
3684
- .checked=${ar(this.checked)}
3684
+ .checked=${or(this.checked)}
3685
3685
  .disabled=${this.disabled}
3686
3686
  .required=${this.required}
3687
3687
  aria-checked=${this.checked?"true":"false"}
@@ -3843,7 +3843,7 @@ ${Ha(this.code(i,t))}
3843
3843
  <slot name="help-text">${this.helpText}</slot>
3844
3844
  </div>
3845
3845
  </fieldset>
3846
- `}};pt.styles=[_($e),_(k2)],c([B("slot:not([name])")],pt.prototype,"defaultSlot",2),c([B(".radio-group__validation-input")],pt.prototype,"validationInput",2),c([I()],pt.prototype,"errorMessage",2),c([I()],pt.prototype,"defaultValue",2),c([p()],pt.prototype,"label",2),c([p({attribute:"label-tooltip"})],pt.prototype,"labelTooltip",2),c([p({attribute:"help-text"})],pt.prototype,"helpText",2),c([p()],pt.prototype,"name",2),c([p({reflect:!0})],pt.prototype,"value",2),c([p({reflect:!0})],pt.prototype,"size",2),c([p({type:Boolean,reflect:!0})],pt.prototype,"horizontal",2),c([p({type:Boolean,reflect:!0})],pt.prototype,"contained",2),c([p({type:Boolean,reflect:!0})],pt.prototype,"square",2),c([p({type:Boolean,reflect:!0})],pt.prototype,"wrap",2),c([p({reflect:!0})],pt.prototype,"form",2),c([p({type:Boolean,reflect:!0})],pt.prototype,"required",2),c([W("size",{waitUntilFirstUpdate:!0})],pt.prototype,"handleSizeChange",1),c([W("value")],pt.prototype,"handleValueChange",1);var QM=pt;pt.define("zn-radio-group");var S2=(o,i,t)=>{let r=new Map;for(let n=i;n<=t;n++)r.set(o[n],n);return r},Zo=yt(class extends ir{constructor(o){if(super(o),o.type!==dr.CHILD)throw Error("repeat() can only be used in text expressions")}dt(o,i,t){let r;t===void 0?t=i:i!==void 0&&(r=i);let n=[],a=[],s=0;for(let l of o)n[s]=r?r(l,s):s,a[s]=t(l,s),s++;return{values:a,keys:n}}render(o,i,t){return this.dt(o,i,t).values}update(o,[i,t,r]){let n=gv(o),{values:a,keys:s}=this.dt(i,t,r);if(!Array.isArray(n))return this.ut=s,a;let l=this.ut??(this.ut=[]),d=[],h,m,f=0,b=n.length-1,g=0,v=a.length-1;for(;f<=b&&g<=v;)if(n[f]===null)f++;else if(n[b]===null)b--;else if(l[f]===s[g])d[g]=vo(n[f],a[g]),f++,g++;else if(l[b]===s[v])d[v]=vo(n[b],a[v]),b--,v--;else if(l[f]===s[v])d[v]=vo(n[f],a[v]),as(o,d[v+1],n[f]),f++,v--;else if(l[b]===s[g])d[g]=vo(n[b],a[g]),as(o,n[f],n[b]),b--,g++;else if(h===void 0&&(h=S2(s,g,v),m=S2(l,f,b)),h.has(l[f]))if(h.has(l[b])){let y=m.get(s[g]),z=y!==void 0?n[y]:null;if(z===null){let E=as(o,n[f]);vo(E,a[g]),d[g]=E}else d[g]=vo(z,a[g]),as(o,n[f],z),n[y]=null;g++}else Ad(n[b]),b--;else Ad(n[f]),f++;for(;g<=v;){let y=as(o,d[v+1]);vo(y,a[g]),d[g++]=y}for(;f<=b;){let y=n[f++];y!==null&&Ad(y)}return this.ut=s,ss(o,d),vt}});var C2=k`@keyframes rotate-gradient{from{--rotate:0deg}to{--rotate:360deg}}:host{text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-transform:none}*,*::before,*::after{box-sizing:border-box;border-width:0;border-style:solid;border-color:rgb(var(--zn-border-color))}[hidden]{display:none !important}.width-container,.form-container,.wide-form-container{height:100%;width:100%;margin:var(--zn-default-margin,0 auto)}.width-container{max-width:var(--zn-container)}.form-container{max-width:var(--zn-container-ph)}.wide-form-container{max-width:var(--zn-container-lg)}:host{display:block}.input__control{border:0;clip-path:inset(50%);height:1px;margin:0;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px}.form-control--droparea .input__control{left:50%}.form-control-input{position:relative}.button__wrapper{align-items:center;display:flex;gap:var(--zn-input-spacing-medium)}.form-control--small .button__wrapper{gap:var(--zn-input-spacing-small)}:host([size=large]) .button__wrapper{gap:var(--zn-input-spacing-large)}.input__value{display:inline-flex;justify-content:center;align-items:center;gap:var(--zn-spacing-small);color:var(--zn-input-color);font-size:var(--zn-input-label-font-size-medium)}.input__value.input__value--hidden{display:none}.input__delete{cursor:pointer;color:var(--zn-input-color);font-size:var(--zn-input-label-font-size-medium)}.input__delete:hover{color:var(--zn-color-primary-600)}.input__value--placeholder{color:var(--zn-input-help-text-color)}.form-control--small .input__value{font-size:var(--zn-input-label-font-size-small)}.form-control--large .input__value{font-size:var(--zn-input-label-font-size-large)}.form-control--user-dragging:not([disabled]) .button::part(base){background:none;border-color:var(--zn-color-primary-900);color:var(--zn-color-primary-900)}.droparea{--highlight-color:var(--zn-color-primary-600);position:relative;border:1px solid var(--zn-input-border-color);border-radius:var(--zn-border-radius);font:var(--zn-font-size-medium);min-height:180px;transition:var(--zn-transition-medium) background,var(--zn-transition-medium) border-color}.droparea:focus-visible{border-color:var(--zn-color-primary-600);outline:var(--zn-focus-ring);outline-offset:var(--zn-focus-ring-offset)}:host([disabled]) .droparea{--highlight-color:var(--zn-color-neutral-600)}:host([disabled]) .input__value{display:none}.droparea__background{align-items:center;display:flex;justify-content:center;gap:var(--zn-spacing-x-small);padding:var(--zn-spacing-large) var(--zn-spacing-medium);width:100%;height:100%;min-height:inherit;box-sizing:border-box}.droparea__clear{position:absolute;top:var(--zn-spacing-small);right:var(--zn-spacing-small);z-index:1}.droparea__upload{text-transform:uppercase;letter-spacing:0.02em}.droparea--has-preview .droparea__background{--zn-droparea-checker-size:12px;--zn-droparea-checker-a:var(--zn-color-neutral-50);--zn-droparea-checker-b:var(--zn-color-neutral-100);background-color:var(--zn-droparea-checker-a);background-image:linear-gradient(45deg,var(--zn-droparea-checker-b) 25%,transparent 25%),linear-gradient(-45deg,var(--zn-droparea-checker-b) 25%,transparent 25%),linear-gradient(45deg,transparent 75%,var(--zn-droparea-checker-b) 75%),linear-gradient(-45deg,transparent 75%,var(--zn-droparea-checker-b) 75%);background-size:var(--zn-droparea-checker-size) var(--zn-droparea-checker-size);background-position:0 0,0 calc(var(--zn-droparea-checker-size) / 2),calc(var(--zn-droparea-checker-size) / 2) calc(var(--zn-droparea-checker-size) / -2),calc(var(--zn-droparea-checker-size) / -2) 0;border-radius:calc(var(--zn-border-radius) - 1px)}.droparea__preview{display:block;position:relative;z-index:1;width:100%;height:150px;max-width:100%;-o-object-fit:contain;object-fit:contain;overflow:hidden;overflow-wrap:anywhere;word-break:break-word;text-align:center;font-size:var(--zn-input-help-text-font-size-medium);color:var(--zn-input-color)}.droparea__filename{color:var(--zn-input-color);font-size:var(--zn-input-label-font-size-medium);font-weight:var(--zn-font-weight-medium);word-break:break-all;text-align:center;padding:0 var(--zn-spacing-3x-large)}.file-wrapper{display:flex;flex-direction:row;flex-wrap:wrap}.form-control--small .droparea{font:var(--zn-font-size-small);min-height:140px}.form-control--small .droparea__preview{height:110px}.form-control--large .droparea{font:var(--zn-font-size-large);min-height:220px}.form-control--large .droparea__preview{height:190px}:host([disabled]) .droparea,:host([disabled]) .input__value{cursor:not-allowed;opacity:0.5}:host(:not([disabled])) .form-control--user-dragging .droparea{background:var(--zn-color-primary-50);border-color:var(--zn-color-primary-600);cursor:pointer}:host(:not([disabled])) .droparea:not(:focus-visible):hover{--highlight-color:var(--zn-color-primary-800);border-color:var(--zn-color-primary-700);cursor:pointer}:host(:not([disabled])) .droparea:hover .droparea__upload::part(base),:host(:not([disabled])) .droparea__upload:hover::part(base),:host(:not([disabled])) .form-control--user-dragging .droparea__upload::part(base){background:var(--zn-color-primary-50);border-color:var(--zn-color-primary-700);color:var(--zn-color-primary-800)}.droparea__upload::part(icon){pointer-events:none}:host([data-user-invalid]:not([disabled])) .droparea{border-color:var(--zn-color-error)}.clear-confirm__text{margin:0;color:var(--zn-input-color)}.form-control__link{display:inline-block;margin-top:var(--zn-spacing-x-small);font-size:var(--zn-input-help-text-font-size-medium);color:var(--zn-color-primary-700);word-break:break-all;text-decoration:none;max-width:100%}.form-control__link:hover{color:var(--zn-color-primary-800);text-decoration:underline}`;var ve=class extends S{constructor(){super(...arguments);this.formControlController=new re(this,{assumeInteractionOn:["zn-change"],value:t=>t.uploadUrl?t.src?t.src:t.clearedByUser?"":void 0:t.files?.length?t.files:t.clearedByUser?"":void 0});this.clearedByUser=!1;this.hasSlotController=new Y(this,"help-text","label");this.localize=new Ft(this);this.userIsDragging=!1;this.fileObjectUrl=null;this.name="";this.defaultValue="";this.size="medium";this.label="";this.clearable=!1;this.helpText="";this.disabled=!1;this.droparea=!1;this.accept="";this.multiple=!1;this.webkitdirectory=!1;this.form="";this.required=!1;this.hideValue=!1;this.src="";this.triggerSubmit=!1;this.showLink=!1;this.uploadUrl="";this.uploading=!1;this.handleInvalid=t=>{this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(t)};this.handleDragOver=t=>{t.preventDefault(),t.stopPropagation(),this.userIsDragging=!0};this.handleDragLeave=t=>{t.preventDefault(),t.stopPropagation(),this.userIsDragging=!1};this.handleDrop=async t=>{if(t.preventDefault(),t.stopPropagation(),!t.dataTransfer)return;let r=await this.handleTransferItems(t.dataTransfer.items);if(this.userIsDragging=!1,!r)return;if(!this.multiple&&!this.webkitdirectory&&r.length>1){this.emit("zn-error");return}if(this.hasSlotController.test("trigger"))this.handleFiles(r);else{let a=this.inputChosen,s=this.dropareaIcon;if(this.droparea&&s){let l=Cn(s,"file.iconDrop",{dir:this.localize.dir()});yi(s,l.keyframes,l.options)}if(a){let l=Cn(a,"file.text.disappear",{dir:this.localize.dir()});await yi(a,l.keyframes,l.options)}if(this.handleFiles(r),a){let l=Cn(a,"file.text.appear",{dir:this.localize.dir()});await yi(a,l.keyframes,l.options)}}this.input.dispatchEvent(new Event("change"))};this.removeFile=t=>{t.preventDefault(),t.stopPropagation();let r=Array.from(this.files||[]),n=t.target.closest("[data-file-name]")?.getAttribute("data-file-name"),a=r.findIndex(l=>l.name===n);a!==-1&&r.splice(a,1);let s=new DataTransfer;r.forEach(l=>s.items.add(l)),this.files=s.files,s.files.length||(this.clearedByUser=!0),this.input.dispatchEvent(new Event("change"))};this.handleClearClick=t=>{t.preventDefault(),t.stopPropagation(),this.clearConfirmDialog?.show()};this.confirmClear=()=>{let t=(this.files?.length??0)>0;this.input.value="",this.files=null,t||(this.src=""),this.clearedByUser=!0,this.clearConfirmDialog?.hide(),this.input.dispatchEvent(new Event("change")),this.emit("zn-clear")}}set files(t){this.input&&(this.input.files=t,t?.length&&(this.clearedByUser=!1),this.updatePreview())}get files(){return this.input?.files}set value(t){if(this.uploadUrl){this.src=t??"";return}this.input&&(this.input.value=t)}get value(){return this.uploadUrl?this.src??"":this.input?.value}get validity(){return this.input?.validity}get validationMessage(){return this.input.validationMessage}checkValidity(){return this.input.checkValidity()}getForm(){return this.formControlController.getForm()}reportValidity(){return this.input.reportValidity()}setCustomValidity(t){this.input.setCustomValidity(t),this.formControlController.updateValidity()}handleDisabledChange(){this.formControlController.setValidity(this.disabled)}async handleValueChange(){await this.updateComplete,this.formControlController.updateValidity()}focus(t){if(this.droparea){this.dropareaWrapper?.focus(t);return}this.button?.focus(t)}blur(){if(this.droparea){this.dropareaWrapper?.blur();return}this.button?.blur()}handleFiles(t){if(!t){this.value="";return}this.files=t}async handleTransferItems(t){if(!t)return this.value="",new Promise((d,h)=>{h(new Error("No proper items found"))});let n=Array.from(t).map(d=>d.webkitGetAsEntry()).map(d=>this.getFilesFromEntry(d)),s=(await Promise.all(n)).flat(),l=new DataTransfer;return Array.from(s).forEach(d=>l.items.add(d)),l.files}async getFilesFromEntry(t){return t?t.isFile?new Promise((r,n)=>{t.file(a=>r([a]),n)}):t.isDirectory?new Promise((r,n)=>{t.createReader().readEntries(s=>{Promise.all(s.map(l=>this.getFilesFromEntry(l))).then(l=>{r(l.flat())}).catch(n)})}):[]:[]}handleClick(t){t.preventDefault(),this.input.click()}handleChange(t){t.preventDefault(),t.stopPropagation(),this.updatePreview();let r=this.files?.[0];if(this.uploadUrl&&r){this.uploadFile(r);return}this.emit("zn-input"),this.emit("zn-change"),this.triggerSubmit&&this.formControlController.submit()}async uploadFile(t){this.uploading=!0;try{let r=new FormData;r.append("file",t,t.name);let n=await fetch(this.uploadUrl,{method:"POST",body:r,credentials:"same-origin"});if(!n.ok)throw new Error(`upload failed with status ${n.status}`);let a=await n.json();if(!a.url)throw new Error("upload response missing url");this.src=a.url,this.input.value="",this.files=null,this.clearedByUser=!1,this.emit("zn-input"),this.emit("zn-change"),this.triggerSubmit&&this.formControlController.submit()}catch(r){console.warn("<zn-file> upload failed",r),this.input.value="",this.files=null,this.emit("zn-error")}finally{this.uploading=!1}}handleFocus(){this.emit("zn-focus")}handleBlur(){this.emit("zn-blur")}clear(){this.input&&(this.input.value=""),this.files=null,this.src="",this.updatePreview(),this.formControlController.updateValidity()}updatePreview(){this.fileObjectUrl&&(URL.revokeObjectURL(this.fileObjectUrl),this.fileObjectUrl=null);let t=this.files?.[0];t&&t.type.startsWith("image/")&&(this.fileObjectUrl=URL.createObjectURL(t))}get previewSrc(){return this.fileObjectUrl??this.src??""}disconnectedCallback(){super.disconnectedCallback(),this.fileObjectUrl&&(URL.revokeObjectURL(this.fileObjectUrl),this.fileObjectUrl=null)}renderFileValueWithDelete(){let t=Array.from(this.files||[]),r=this.clearable,n=this.localize.term("numFilesSelected",0,this.webkitdirectory);return u`
3846
+ `}};pt.styles=[_($e),_(k2)],c([B("slot:not([name])")],pt.prototype,"defaultSlot",2),c([B(".radio-group__validation-input")],pt.prototype,"validationInput",2),c([I()],pt.prototype,"errorMessage",2),c([I()],pt.prototype,"defaultValue",2),c([p()],pt.prototype,"label",2),c([p({attribute:"label-tooltip"})],pt.prototype,"labelTooltip",2),c([p({attribute:"help-text"})],pt.prototype,"helpText",2),c([p()],pt.prototype,"name",2),c([p({reflect:!0})],pt.prototype,"value",2),c([p({reflect:!0})],pt.prototype,"size",2),c([p({type:Boolean,reflect:!0})],pt.prototype,"horizontal",2),c([p({type:Boolean,reflect:!0})],pt.prototype,"contained",2),c([p({type:Boolean,reflect:!0})],pt.prototype,"square",2),c([p({type:Boolean,reflect:!0})],pt.prototype,"wrap",2),c([p({reflect:!0})],pt.prototype,"form",2),c([p({type:Boolean,reflect:!0})],pt.prototype,"required",2),c([W("size",{waitUntilFirstUpdate:!0})],pt.prototype,"handleSizeChange",1),c([W("value")],pt.prototype,"handleValueChange",1);var QM=pt;pt.define("zn-radio-group");var S2=(o,i,t)=>{let r=new Map;for(let n=i;n<=t;n++)r.set(o[n],n);return r},Zo=yt(class extends rr{constructor(o){if(super(o),o.type!==cr.CHILD)throw Error("repeat() can only be used in text expressions")}dt(o,i,t){let r;t===void 0?t=i:i!==void 0&&(r=i);let n=[],a=[],s=0;for(let l of o)n[s]=r?r(l,s):s,a[s]=t(l,s),s++;return{values:a,keys:n}}render(o,i,t){return this.dt(o,i,t).values}update(o,[i,t,r]){let n=gv(o),{values:a,keys:s}=this.dt(i,t,r);if(!Array.isArray(n))return this.ut=s,a;let l=this.ut??(this.ut=[]),d=[],h,m,f=0,b=n.length-1,g=0,v=a.length-1;for(;f<=b&&g<=v;)if(n[f]===null)f++;else if(n[b]===null)b--;else if(l[f]===s[g])d[g]=vo(n[f],a[g]),f++,g++;else if(l[b]===s[v])d[v]=vo(n[b],a[v]),b--,v--;else if(l[f]===s[v])d[v]=vo(n[f],a[v]),as(o,d[v+1],n[f]),f++,v--;else if(l[b]===s[g])d[g]=vo(n[b],a[g]),as(o,n[f],n[b]),b--,g++;else if(h===void 0&&(h=S2(s,g,v),m=S2(l,f,b)),h.has(l[f]))if(h.has(l[b])){let y=m.get(s[g]),z=y!==void 0?n[y]:null;if(z===null){let E=as(o,n[f]);vo(E,a[g]),d[g]=E}else d[g]=vo(z,a[g]),as(o,n[f],z),n[y]=null;g++}else Ad(n[b]),b--;else Ad(n[f]),f++;for(;g<=v;){let y=as(o,d[v+1]);vo(y,a[g]),d[g++]=y}for(;f<=b;){let y=n[f++];y!==null&&Ad(y)}return this.ut=s,ss(o,d),vt}});var C2=k`@keyframes rotate-gradient{from{--rotate:0deg}to{--rotate:360deg}}:host{text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-transform:none}*,*::before,*::after{box-sizing:border-box;border-width:0;border-style:solid;border-color:rgb(var(--zn-border-color))}[hidden]{display:none !important}.width-container,.form-container,.wide-form-container{height:100%;width:100%;margin:var(--zn-default-margin,0 auto)}.width-container{max-width:var(--zn-container)}.form-container{max-width:var(--zn-container-ph)}.wide-form-container{max-width:var(--zn-container-lg)}:host{display:block}.input__control{border:0;clip-path:inset(50%);height:1px;margin:0;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px}.form-control--droparea .input__control{left:50%}.form-control-input{position:relative}.button__wrapper{align-items:center;display:flex;gap:var(--zn-input-spacing-medium)}.form-control--small .button__wrapper{gap:var(--zn-input-spacing-small)}:host([size=large]) .button__wrapper{gap:var(--zn-input-spacing-large)}.input__value{display:inline-flex;justify-content:center;align-items:center;gap:var(--zn-spacing-small);color:var(--zn-input-color);font-size:var(--zn-input-label-font-size-medium)}.input__value.input__value--hidden{display:none}.input__delete{cursor:pointer;color:var(--zn-input-color);font-size:var(--zn-input-label-font-size-medium)}.input__delete:hover{color:var(--zn-color-primary-600)}.input__value--placeholder{color:var(--zn-input-help-text-color)}.form-control--small .input__value{font-size:var(--zn-input-label-font-size-small)}.form-control--large .input__value{font-size:var(--zn-input-label-font-size-large)}.form-control--user-dragging:not([disabled]) .button::part(base){background:none;border-color:var(--zn-color-primary-900);color:var(--zn-color-primary-900)}.droparea{--highlight-color:var(--zn-color-primary-600);position:relative;border:1px solid var(--zn-input-border-color);border-radius:var(--zn-border-radius);font:var(--zn-font-size-medium);min-height:180px;transition:var(--zn-transition-medium) background,var(--zn-transition-medium) border-color}.droparea:focus-visible{border-color:var(--zn-color-primary-600);outline:var(--zn-focus-ring);outline-offset:var(--zn-focus-ring-offset)}:host([disabled]) .droparea{--highlight-color:var(--zn-color-neutral-600)}:host([disabled]) .input__value{display:none}.droparea__background{align-items:center;display:flex;justify-content:center;gap:var(--zn-spacing-x-small);padding:var(--zn-spacing-large) var(--zn-spacing-medium);width:100%;height:100%;min-height:inherit;box-sizing:border-box}.droparea__clear{position:absolute;top:var(--zn-spacing-small);right:var(--zn-spacing-small);z-index:1}.droparea__upload{text-transform:uppercase;letter-spacing:0.02em}.droparea--has-preview .droparea__background{--zn-droparea-checker-size:12px;--zn-droparea-checker-a:var(--zn-color-neutral-50);--zn-droparea-checker-b:var(--zn-color-neutral-100);background-color:var(--zn-droparea-checker-a);background-image:linear-gradient(45deg,var(--zn-droparea-checker-b) 25%,transparent 25%),linear-gradient(-45deg,var(--zn-droparea-checker-b) 25%,transparent 25%),linear-gradient(45deg,transparent 75%,var(--zn-droparea-checker-b) 75%),linear-gradient(-45deg,transparent 75%,var(--zn-droparea-checker-b) 75%);background-size:var(--zn-droparea-checker-size) var(--zn-droparea-checker-size);background-position:0 0,0 calc(var(--zn-droparea-checker-size) / 2),calc(var(--zn-droparea-checker-size) / 2) calc(var(--zn-droparea-checker-size) / -2),calc(var(--zn-droparea-checker-size) / -2) 0;border-radius:calc(var(--zn-border-radius) - 1px)}.droparea__preview{display:block;position:relative;z-index:1;width:100%;height:150px;max-width:100%;-o-object-fit:contain;object-fit:contain;overflow:hidden;overflow-wrap:anywhere;word-break:break-word;text-align:center;font-size:var(--zn-input-help-text-font-size-medium);color:var(--zn-input-color)}.droparea__filename{color:var(--zn-input-color);font-size:var(--zn-input-label-font-size-medium);font-weight:var(--zn-font-weight-medium);word-break:break-all;text-align:center;padding:0 var(--zn-spacing-3x-large)}.file-wrapper{display:flex;flex-direction:row;flex-wrap:wrap}.form-control--small .droparea{font:var(--zn-font-size-small);min-height:140px}.form-control--small .droparea__preview{height:110px}.form-control--large .droparea{font:var(--zn-font-size-large);min-height:220px}.form-control--large .droparea__preview{height:190px}:host([disabled]) .droparea,:host([disabled]) .input__value{cursor:not-allowed;opacity:0.5}:host(:not([disabled])) .form-control--user-dragging .droparea{background:var(--zn-color-primary-50);border-color:var(--zn-color-primary-600);cursor:pointer}:host(:not([disabled])) .droparea:not(:focus-visible):hover{--highlight-color:var(--zn-color-primary-800);border-color:var(--zn-color-primary-700);cursor:pointer}:host(:not([disabled])) .droparea:hover .droparea__upload::part(base),:host(:not([disabled])) .droparea__upload:hover::part(base),:host(:not([disabled])) .form-control--user-dragging .droparea__upload::part(base){background:var(--zn-color-primary-50);border-color:var(--zn-color-primary-700);color:var(--zn-color-primary-800)}.droparea__upload::part(icon){pointer-events:none}:host([data-user-invalid]:not([disabled])) .droparea{border-color:var(--zn-color-error)}.clear-confirm__text{margin:0;color:var(--zn-input-color)}.form-control__link{display:inline-block;margin-top:var(--zn-spacing-x-small);font-size:var(--zn-input-help-text-font-size-medium);color:var(--zn-color-primary-700);word-break:break-all;text-decoration:none;max-width:100%}.form-control__link:hover{color:var(--zn-color-primary-800);text-decoration:underline}`;var ve=class extends S{constructor(){super(...arguments);this.formControlController=new re(this,{assumeInteractionOn:["zn-change"],value:t=>t.uploadUrl?t.src?t.src:t.clearedByUser?"":void 0:t.files?.length?t.files:t.clearedByUser?"":void 0});this.clearedByUser=!1;this.hasSlotController=new Y(this,"help-text","label");this.localize=new Ft(this);this.userIsDragging=!1;this.fileObjectUrl=null;this.name="";this.defaultValue="";this.size="medium";this.label="";this.clearable=!1;this.helpText="";this.disabled=!1;this.droparea=!1;this.accept="";this.multiple=!1;this.webkitdirectory=!1;this.form="";this.required=!1;this.hideValue=!1;this.src="";this.triggerSubmit=!1;this.showLink=!1;this.uploadUrl="";this.uploading=!1;this.handleInvalid=t=>{this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(t)};this.handleDragOver=t=>{t.preventDefault(),t.stopPropagation(),this.userIsDragging=!0};this.handleDragLeave=t=>{t.preventDefault(),t.stopPropagation(),this.userIsDragging=!1};this.handleDrop=async t=>{if(t.preventDefault(),t.stopPropagation(),!t.dataTransfer)return;let r=await this.handleTransferItems(t.dataTransfer.items);if(this.userIsDragging=!1,!r)return;if(!this.multiple&&!this.webkitdirectory&&r.length>1){this.emit("zn-error");return}if(this.hasSlotController.test("trigger"))this.handleFiles(r);else{let a=this.inputChosen,s=this.dropareaIcon;if(this.droparea&&s){let l=Cn(s,"file.iconDrop",{dir:this.localize.dir()});yi(s,l.keyframes,l.options)}if(a){let l=Cn(a,"file.text.disappear",{dir:this.localize.dir()});await yi(a,l.keyframes,l.options)}if(this.handleFiles(r),a){let l=Cn(a,"file.text.appear",{dir:this.localize.dir()});await yi(a,l.keyframes,l.options)}}this.input.dispatchEvent(new Event("change"))};this.removeFile=t=>{t.preventDefault(),t.stopPropagation();let r=Array.from(this.files||[]),n=t.target.closest("[data-file-name]")?.getAttribute("data-file-name"),a=r.findIndex(l=>l.name===n);a!==-1&&r.splice(a,1);let s=new DataTransfer;r.forEach(l=>s.items.add(l)),this.files=s.files,s.files.length||(this.clearedByUser=!0),this.input.dispatchEvent(new Event("change"))};this.handleClearClick=t=>{t.preventDefault(),t.stopPropagation(),this.clearConfirmDialog?.show()};this.confirmClear=()=>{let t=(this.files?.length??0)>0;this.input.value="",this.files=null,t||(this.src=""),this.clearedByUser=!0,this.clearConfirmDialog?.hide(),this.input.dispatchEvent(new Event("change")),this.emit("zn-clear")}}set files(t){this.input&&(this.input.files=t,t?.length&&(this.clearedByUser=!1),this.updatePreview())}get files(){return this.input?.files}set value(t){if(this.uploadUrl){this.src=t??"";return}this.input&&(this.input.value=t)}get value(){return this.uploadUrl?this.src??"":this.input?.value}get validity(){return this.input?.validity}get validationMessage(){return this.input.validationMessage}checkValidity(){return this.input.checkValidity()}getForm(){return this.formControlController.getForm()}reportValidity(){return this.input.reportValidity()}setCustomValidity(t){this.input.setCustomValidity(t),this.formControlController.updateValidity()}handleDisabledChange(){this.formControlController.setValidity(this.disabled)}async handleValueChange(){await this.updateComplete,this.formControlController.updateValidity()}focus(t){if(this.droparea){this.dropareaWrapper?.focus(t);return}this.button?.focus(t)}blur(){if(this.droparea){this.dropareaWrapper?.blur();return}this.button?.blur()}handleFiles(t){if(!t){this.value="";return}this.files=t}async handleTransferItems(t){if(!t)return this.value="",new Promise((d,h)=>{h(new Error("No proper items found"))});let n=Array.from(t).map(d=>d.webkitGetAsEntry()).map(d=>this.getFilesFromEntry(d)),s=(await Promise.all(n)).flat(),l=new DataTransfer;return Array.from(s).forEach(d=>l.items.add(d)),l.files}async getFilesFromEntry(t){return t?t.isFile?new Promise((r,n)=>{t.file(a=>r([a]),n)}):t.isDirectory?new Promise((r,n)=>{t.createReader().readEntries(s=>{Promise.all(s.map(l=>this.getFilesFromEntry(l))).then(l=>{r(l.flat())}).catch(n)})}):[]:[]}handleClick(t){t.preventDefault(),this.input.click()}handleChange(t){t.preventDefault(),t.stopPropagation(),this.updatePreview();let r=this.files?.[0];if(this.uploadUrl&&r){this.uploadFile(r);return}this.emit("zn-input"),this.emit("zn-change"),this.triggerSubmit&&this.formControlController.submit()}async uploadFile(t){this.uploading=!0;try{let r=new FormData;r.append("file",t,t.name);let n=await fetch(this.uploadUrl,{method:"POST",body:r,credentials:"same-origin"});if(!n.ok)throw new Error(`upload failed with status ${n.status}`);let a=await n.json();if(!a.url)throw new Error("upload response missing url");this.src=a.url,this.input.value="",this.files=null,this.clearedByUser=!1,this.emit("zn-input"),this.emit("zn-change"),this.triggerSubmit&&this.formControlController.submit()}catch(r){console.warn("<zn-file> upload failed",r),this.input.value="",this.files=null,this.emit("zn-error")}finally{this.uploading=!1}}handleFocus(){this.emit("zn-focus")}handleBlur(){this.emit("zn-blur")}clear(){this.input&&(this.input.value=""),this.files=null,this.src="",this.updatePreview(),this.formControlController.updateValidity()}updatePreview(){this.fileObjectUrl&&(URL.revokeObjectURL(this.fileObjectUrl),this.fileObjectUrl=null);let t=this.files?.[0];t&&t.type.startsWith("image/")&&(this.fileObjectUrl=URL.createObjectURL(t))}get previewSrc(){return this.fileObjectUrl??this.src??""}disconnectedCallback(){super.disconnectedCallback(),this.fileObjectUrl&&(URL.revokeObjectURL(this.fileObjectUrl),this.fileObjectUrl=null)}renderFileValueWithDelete(){let t=Array.from(this.files||[]),r=this.clearable,n=this.localize.term("numFilesSelected",0,this.webkitdirectory);return u`
3847
3847
  ${t?u`
3848
3848
  <div class="file_wrapper">
3849
3849
  ${Zo(t,a=>u`
@@ -4089,7 +4089,7 @@ ${Ha(this.code(i,t))}
4089
4089
  slot="prefix">${a.prefix}</span>`:""}
4090
4090
  ${this.iconOnly?void 0:a.value}
4091
4091
  </zn-option>`)}
4092
- </zn-select>`}_updatePrefix(){if(!this.select||!this.shadowRoot)return;let t=this.shadowRoot.querySelector(".select__icon");if(!(this.iconPosition!=="none"||this.iconOnly)){t&&(t.innerHTML=""),this._updateIconEmptyState();return}this.iconPosition==="none"&&this.iconOnly&&(this.iconPosition="start");let n=this.select.selectedOptions;if(!n||n.length===0){t&&(t.innerHTML=""),this._updateIconEmptyState();return}if(!t)return;let s=n[0].querySelector('[slot="prefix"]');s?(t.innerHTML="",t.appendChild(s.cloneNode(!0))):t.innerHTML="",this._updateIconEmptyState()}_updateIconEmptyState(){if(!this.shadowRoot)return;let t=this.shadowRoot.querySelector(".select__icon");!t||t.innerHTML.trim()===""?this.setAttribute("icon-empty",""):this.removeAttribute("icon-empty")}getPlaceholder(t){return this.value?(Array.isArray(this.value)?this.value.length>0:this.value.length>0)?"":`Choose a ${t.getName}`:`Choose a ${t.getName}`}_observeSelectDisabled(){this.select&&(this._syncDisabledState(),this.selectObserver.observe(this.select))}_syncDisabledState(){this.select&&(this.disabled=this.select.disabled)}_normalizeValue(){this.multiple?typeof this.value=="string"&&(this.value===""?this.value=[]:this.value=this.value.split(",").map(t=>t.trim()).filter(t=>t!=="")):Array.isArray(this.value)&&(this.value=this.value.length>0?this.value[0]:"")}};Me.styles=_(H2),Me.dependencies={"zn-select":Oe,"zn-option":We},c([B("#select")],Me.prototype,"select",2),c([p()],Me.prototype,"name",2),c([p({converter:{fromAttribute:t=>t||"",toAttribute:t=>Array.isArray(t)?t.join(","):t||""}})],Me.prototype,"value",2),c([Te()],Me.prototype,"defaultValue",2),c([p()],Me.prototype,"provider",2),c([p({attribute:"icon-position"})],Me.prototype,"iconPosition",2),c([p({attribute:"filter",converter:{fromAttribute:t=>t.split(","),toAttribute:t=>t.join(",")}})],Me.prototype,"filter",2),c([p({reflect:!0})],Me.prototype,"size",2),c([p({type:Boolean})],Me.prototype,"clearable",2),c([p({type:Boolean,attribute:"allow-all"})],Me.prototype,"allowAll",2),c([p({type:Boolean,attribute:"allow-common"})],Me.prototype,"allowCommon",2),c([p()],Me.prototype,"label",2),c([p({attribute:"label-tooltip"})],Me.prototype,"labelTooltip",2),c([p({attribute:"context-note"})],Me.prototype,"contextNote",2),c([p({reflect:!0})],Me.prototype,"placement",2),c([p({attribute:"help-text"})],Me.prototype,"helpText",2),c([p({type:Boolean,reflect:!0})],Me.prototype,"required",2),c([p({type:Boolean,reflect:!0})],Me.prototype,"disabled",2),c([p({attribute:"icon-only",type:Boolean,reflect:!0})],Me.prototype,"iconOnly",2),c([p({type:Boolean})],Me.prototype,"multiple",2),c([p({attribute:"select-first",type:Boolean})],Me.prototype,"selectFirst",2),c([p()],Me.prototype,"distinct",2),c([p()],Me.prototype,"conditional",2),c([p()],Me.prototype,"requires",2),c([W("value",{waitUntilFirstUpdate:!0})],Me.prototype,"handleValueChange",1);var dq=Me;Me.define("zn-data-select");var F2=k`@keyframes rotate-gradient{from{--rotate:0deg}to{--rotate:360deg}}:host{text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-transform:none}*,*::before,*::after{box-sizing:border-box;border-width:0;border-style:solid;border-color:rgb(var(--zn-border-color))}[hidden]{display:none !important}.width-container,.form-container,.wide-form-container{height:100%;width:100%;margin:var(--zn-default-margin,0 auto)}.width-container{max-width:var(--zn-container)}.form-container{max-width:var(--zn-container-ph)}.wide-form-container{max-width:var(--zn-container-lg)}:host{display:inline-block}.color-swatch{width:var(--zn-spacing-small);height:var(--zn-spacing-small);display:block;border-radius:var(--zn-border-radius-circle);flex-shrink:0}.color-swatch--red{background-color:var(--zn-color-red-500)}.color-swatch--blue{background-color:var(--zn-color-blue-500)}.color-swatch--orange{background-color:var(--zn-color-orange-500)}.color-swatch--yellow{background-color:var(--zn-color-yellow-400)}.color-swatch--indigo{background-color:var(--zn-color-indigo-500)}.color-swatch--violet{background-color:var(--zn-color-violet-500)}.color-swatch--green{background-color:var(--zn-color-green-500)}.color-swatch--pink{background-color:var(--zn-color-pink-500)}.color-swatch--gray{background-color:var(--zn-color-gray-500)}.color-swatch--empty{border:1px dashed var(--zn-color-neutral-400)}zn-select::part(combobox){width:-moz-fit-content;width:fit-content;padding-inline-end:var(--zn-spacing-2x-small)}zn-select::part(display-input){width:0;min-width:0;color:transparent;caret-color:transparent}zn-select::part(listbox){min-width:-moz-max-content;min-width:max-content;max-height:300px;padding-block:0}.color-swatch[part=swatch]{margin-inline-start:var(--zn-spacing-x-small);margin-inline-end:0}zn-option .color-swatch{margin-inline-end:var(--zn-spacing-x-small)}zn-select::part(clear-button),zn-select::part(expand-icon){margin-inline-start:var(--zn-spacing-2x-small)}zn-select::part(clear-button){margin-inline-start:var(--zn-spacing-x-small)}`;var yr=class extends S{constructor(){super(...arguments);this.value="";this.label="";this.helpText="";this.disabled=!1;this.required=!1;this.clearable=!1;this.formControlController=new re(this);this.handleInput=t=>{let r=t.target;this.value=r.value??""};this.handleClear=()=>{this.value=""}}get validity(){return this.select.validity}get validationMessage(){return this.select.validationMessage}checkValidity(){return this.select.checkValidity()}getForm(){return this.formControlController.getForm()}reportValidity(){return this.select.reportValidity()}setCustomValidity(t){this.select.setCustomValidity(t)}handleValueChange(){this.formControlController.updateValidity()}render(){return u`
4092
+ </zn-select>`}_updatePrefix(){if(!this.select||!this.shadowRoot)return;let t=this.shadowRoot.querySelector(".select__icon");if(!(this.iconPosition!=="none"||this.iconOnly)){t&&(t.innerHTML=""),this._updateIconEmptyState();return}this.iconPosition==="none"&&this.iconOnly&&(this.iconPosition="start");let n=this.select.selectedOptions;if(!n||n.length===0){t&&(t.innerHTML=""),this._updateIconEmptyState();return}if(!t)return;let s=n[0].querySelector('[slot="prefix"]');s?(t.innerHTML="",t.appendChild(s.cloneNode(!0))):t.innerHTML="",this._updateIconEmptyState()}_updateIconEmptyState(){if(!this.shadowRoot)return;let t=this.shadowRoot.querySelector(".select__icon");!t||t.innerHTML.trim()===""?this.setAttribute("icon-empty",""):this.removeAttribute("icon-empty")}getPlaceholder(t){return this.value?(Array.isArray(this.value)?this.value.length>0:this.value.length>0)?"":`Choose a ${t.getName}`:`Choose a ${t.getName}`}_observeSelectDisabled(){this.select&&(this._syncDisabledState(),this.selectObserver.observe(this.select))}_syncDisabledState(){this.select&&(this.disabled=this.select.disabled)}_normalizeValue(){this.multiple?typeof this.value=="string"&&(this.value===""?this.value=[]:this.value=this.value.split(",").map(t=>t.trim()).filter(t=>t!=="")):Array.isArray(this.value)&&(this.value=this.value.length>0?this.value[0]:"")}};Me.styles=_(H2),Me.dependencies={"zn-select":Oe,"zn-option":We},c([B("#select")],Me.prototype,"select",2),c([p()],Me.prototype,"name",2),c([p({converter:{fromAttribute:t=>t||"",toAttribute:t=>Array.isArray(t)?t.join(","):t||""}})],Me.prototype,"value",2),c([Te()],Me.prototype,"defaultValue",2),c([p()],Me.prototype,"provider",2),c([p({attribute:"icon-position"})],Me.prototype,"iconPosition",2),c([p({attribute:"filter",converter:{fromAttribute:t=>t.split(","),toAttribute:t=>t.join(",")}})],Me.prototype,"filter",2),c([p({reflect:!0})],Me.prototype,"size",2),c([p({type:Boolean})],Me.prototype,"clearable",2),c([p({type:Boolean,attribute:"allow-all"})],Me.prototype,"allowAll",2),c([p({type:Boolean,attribute:"allow-common"})],Me.prototype,"allowCommon",2),c([p()],Me.prototype,"label",2),c([p({attribute:"label-tooltip"})],Me.prototype,"labelTooltip",2),c([p({attribute:"context-note"})],Me.prototype,"contextNote",2),c([p({reflect:!0})],Me.prototype,"placement",2),c([p({attribute:"help-text"})],Me.prototype,"helpText",2),c([p({type:Boolean,reflect:!0})],Me.prototype,"required",2),c([p({type:Boolean,reflect:!0})],Me.prototype,"disabled",2),c([p({attribute:"icon-only",type:Boolean,reflect:!0})],Me.prototype,"iconOnly",2),c([p({type:Boolean})],Me.prototype,"multiple",2),c([p({attribute:"select-first",type:Boolean})],Me.prototype,"selectFirst",2),c([p()],Me.prototype,"distinct",2),c([p()],Me.prototype,"conditional",2),c([p()],Me.prototype,"requires",2),c([W("value",{waitUntilFirstUpdate:!0})],Me.prototype,"handleValueChange",1);var dq=Me;Me.define("zn-data-select");var F2=k`@keyframes rotate-gradient{from{--rotate:0deg}to{--rotate:360deg}}:host{text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-transform:none}*,*::before,*::after{box-sizing:border-box;border-width:0;border-style:solid;border-color:rgb(var(--zn-border-color))}[hidden]{display:none !important}.width-container,.form-container,.wide-form-container{height:100%;width:100%;margin:var(--zn-default-margin,0 auto)}.width-container{max-width:var(--zn-container)}.form-container{max-width:var(--zn-container-ph)}.wide-form-container{max-width:var(--zn-container-lg)}:host{display:inline-block}.color-swatch{width:var(--zn-spacing-small);height:var(--zn-spacing-small);display:block;border-radius:var(--zn-border-radius-circle);flex-shrink:0}.color-swatch--red{background-color:var(--zn-color-red-500)}.color-swatch--blue{background-color:var(--zn-color-blue-500)}.color-swatch--orange{background-color:var(--zn-color-orange-500)}.color-swatch--yellow{background-color:var(--zn-color-yellow-400)}.color-swatch--indigo{background-color:var(--zn-color-indigo-500)}.color-swatch--violet{background-color:var(--zn-color-violet-500)}.color-swatch--green{background-color:var(--zn-color-green-500)}.color-swatch--pink{background-color:var(--zn-color-pink-500)}.color-swatch--gray{background-color:var(--zn-color-gray-500)}.color-swatch--empty{border:1px dashed var(--zn-color-neutral-400)}zn-select::part(combobox){width:-moz-fit-content;width:fit-content;padding-inline-end:var(--zn-spacing-2x-small)}zn-select::part(display-input){width:0;min-width:0;color:transparent;caret-color:transparent}zn-select::part(listbox){min-width:-moz-max-content;min-width:max-content;max-height:300px;padding-block:0}.color-swatch[part=swatch]{margin-inline-start:var(--zn-spacing-x-small);margin-inline-end:0}zn-option .color-swatch{margin-inline-end:var(--zn-spacing-x-small)}zn-select::part(clear-button),zn-select::part(expand-icon){margin-inline-start:var(--zn-spacing-2x-small)}zn-select::part(clear-button){margin-inline-start:var(--zn-spacing-x-small)}`;var vr=class extends S{constructor(){super(...arguments);this.value="";this.label="";this.helpText="";this.disabled=!1;this.required=!1;this.clearable=!1;this.formControlController=new re(this);this.handleInput=t=>{let r=t.target;this.value=r.value??""};this.handleClear=()=>{this.value=""}}get validity(){return this.select.validity}get validationMessage(){return this.select.validationMessage}checkValidity(){return this.select.checkValidity()}getForm(){return this.formControlController.getForm()}reportValidity(){return this.select.reportValidity()}setCustomValidity(t){this.select.setCustomValidity(t)}handleValueChange(){this.formControlController.updateValidity()}render(){return u`
4093
4093
  <zn-select id="select"
4094
4094
  placement="bottom-start"
4095
4095
  label="${this.label}"
@@ -4109,7 +4109,7 @@ ${Ha(this.code(i,t))}
4109
4109
  <div slot="prefix" class="color-swatch color-swatch--${t.toLowerCase()}"></div>
4110
4110
  ${t}
4111
4111
  </zn-option>`)}
4112
- </zn-select>`}};yr.styles=_(F2),yr.dependencies={"zn-select":Oe,"zn-option":We},c([B("#select")],yr.prototype,"select",2),c([p()],yr.prototype,"name",2),c([p()],yr.prototype,"value",2),c([p()],yr.prototype,"label",2),c([p({attribute:"help-text"})],yr.prototype,"helpText",2),c([p({type:Boolean,reflect:!0})],yr.prototype,"disabled",2),c([p({type:Boolean,reflect:!0})],yr.prototype,"required",2),c([p({type:Boolean})],yr.prototype,"clearable",2),c([W("value",{waitUntilFirstUpdate:!0})],yr.prototype,"handleValueChange",1);var pq=yr;yr.define("zn-color-select");var B2=k`@keyframes rotate-gradient{from{--rotate:0deg}to{--rotate:360deg}}:host{text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-transform:none}*,*::before,*::after{box-sizing:border-box;border-width:0;border-style:solid;border-color:rgb(var(--zn-border-color))}[hidden]{display:none !important}.width-container,.form-container,.wide-form-container{height:100%;width:100%;margin:var(--zn-default-margin,0 auto)}.width-container{max-width:var(--zn-container)}.form-container{max-width:var(--zn-container-ph)}.wide-form-container{max-width:var(--zn-container-lg)}:host{display:block;max-width:100%;--menu-gap:var(--zn-spacing-x-small)}.button-menu--no-gap{--menu-gap:0}.button-menu{display:flex;flex-direction:row;justify-content:flex-end;margin:0;min-width:34px;max-width:var(--zn-max-width);gap:var(--menu-gap)}.button-menu--no-padding{padding:0}.button-menu__container{display:flex;flex-direction:row;gap:var(--menu-gap);margin:0;max-width:calc(100% - 34px)}.button-menu__container:empty{display:none}.button-menu ::slotted(*){display:contents}.button-menu zn-button{min-width:34px;flex-shrink:0}`;var Gr=class extends S{constructor(){super(...arguments);this.limit=-1;this.maxLevel=2;this.iconSize=20;this._buttons=[];this._originalButtons=[];this._resizeRafId=0;this.resizeObserver=new ut(this,{target:null,callback:()=>{this._resizeRafId||(this._resizeRafId=requestAnimationFrame(()=>{this._resizeRafId=0,this.containerWidth=this.offsetWidth}))}})}async firstUpdated(t){super.firstUpdated(t);let r=this.querySelectorAll("zn-button");for(let n of r)await n.updateComplete;this._originalButtons=Array.from(r).map(n=>({button:n,width:Math.max(n.offsetWidth,150)})),this.querySelectorAll("zn-button").forEach(n=>{n.remove()}),this.containerWidth=this.parentNode?this.parentNode.offsetWidth:0,this.maxWidth&&(this.containerWidth=Math.min(this.containerWidth,this.maxWidth))}watchContainerMaxWidth(){this.maxWidth&&(this.containerWidth=Math.min(this.containerWidth,this.maxWidth)),this.calculateVisibleButtons()}connectedCallback(){super.connectedCallback(),this.containerWidth=this.offsetWidth,this.parentNode&&this.resizeObserver.observe(this.parentNode)}calculateVisibleButtons(){let t=this.containerWidth,r=0,n=0,a=0,s=0,l=t;this._buttons=[...this._originalButtons],l-=50,this._buttons.sort((m,f)=>{let b=m.button.hasAttribute("primary")?1:m.button.hasAttribute("secondary")?2:3,g=f.button.hasAttribute("primary")?1:f.button.hasAttribute("secondary")?2:3;return b-g}),this._buttons.forEach(m=>{s++,m.button.hasAttribute("primary")?r++:m.button.hasAttribute("secondary")&&n++,l-m.width>0?(l-=m.width,a++):l=0}),this.maxLevel<2?this.limit=this.limit>0?Math.min(this.limit,r):r:this.maxLevel<3&&(this.limit=this.limit>0?Math.min(this.limit,r+n):r+n),this.limit>-1&&(a=Math.min(a,this.limit));let d=this.shadowRoot?.querySelector(".button-menu__container");d&&(d.innerHTML="");let h=this.shadowRoot?.querySelector("zn-menu");h&&(h.innerHTML=""),this._buttons.forEach((m,f)=>{f<a&&(this.shadowRoot?.querySelector(".button-menu__container")?.appendChild(m.button),(m.button.hasAttribute("primary")||m.button.hasAttribute("secondary"))&&m.button.setAttribute("text",""))}),this.calculateMenuButtons(s,a,this._buttons)}calculateMenuButtons(t,r,n){let a=this.shadowRoot?.querySelector("zn-menu"),s=this.shadowRoot?.querySelector("zn-dropdown");if(a&&s){let d=new Set,h={};s.toggleAttribute("hidden",n.length===0||n.length<=r),r!==n.length&&t>0&&(n.forEach((m,f)=>{if(f>=r){let b=document.createElement("zn-menu-item");b.textContent=this.getButtonLabel(m.button),b.setAttribute("id",m.button.id||`zn-button-menu-item-${f}`),b.setAttribute("role","menuitem");let g=m.button.attributes;for(let z of Array.from(g))z.name!=="icon"&&z.name!=="category"&&b.setAttribute(z.name,z.value);let v=m.button.getAttribute("icon");if(v){let z=document.createElement("zn-icon");z.setAttribute("src",v);let E=m.button.getAttribute("icon-library");E&&z.setAttribute("library",E),z.setAttribute("size","18"),z.setAttribute("slot","prefix"),b.appendChild(z)}let y=m.button.getAttribute("category")||"default";d.add(y),h[y]||(h[y]=[]),h[y].push(b)}}),d.forEach(m=>{if(m==="default")h[m].forEach(f=>{a.appendChild(f)});else if(h[m].length===1){let f=h[m][0];a.appendChild(f)}else{let f=document.createElement("zn-menu-item");f.innerText=m.charAt(0).toUpperCase()+m.slice(1);let b=document.createElement("zn-menu");b.setAttribute("slot","submenu"),b.setAttribute("variant",a.variant),h[m].forEach(g=>{b.appendChild(g)}),f.appendChild(b),a.appendChild(f)}}))}Ge("zn-confirm",this,"").forEach(d=>{d.updateTriggers()})}getButtonLabel(t){let r=t.shadowRoot?.querySelector('slot[part="label"]');return((r?[...r.assignedNodes({flatten:!0})].map(s=>s.textContent??"").join("").trim():"")||t.content||t.getAttribute("content")||t.caption||t.getAttribute("caption")||t.tooltip||t.getAttribute("tooltip")||t.getAttribute("aria-label")||t.button?.innerText||t.textContent||"").trim()}render(){return u`
4112
+ </zn-select>`}};vr.styles=_(F2),vr.dependencies={"zn-select":Oe,"zn-option":We},c([B("#select")],vr.prototype,"select",2),c([p()],vr.prototype,"name",2),c([p()],vr.prototype,"value",2),c([p()],vr.prototype,"label",2),c([p({attribute:"help-text"})],vr.prototype,"helpText",2),c([p({type:Boolean,reflect:!0})],vr.prototype,"disabled",2),c([p({type:Boolean,reflect:!0})],vr.prototype,"required",2),c([p({type:Boolean})],vr.prototype,"clearable",2),c([W("value",{waitUntilFirstUpdate:!0})],vr.prototype,"handleValueChange",1);var pq=vr;vr.define("zn-color-select");var B2=k`@keyframes rotate-gradient{from{--rotate:0deg}to{--rotate:360deg}}:host{text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-transform:none}*,*::before,*::after{box-sizing:border-box;border-width:0;border-style:solid;border-color:rgb(var(--zn-border-color))}[hidden]{display:none !important}.width-container,.form-container,.wide-form-container{height:100%;width:100%;margin:var(--zn-default-margin,0 auto)}.width-container{max-width:var(--zn-container)}.form-container{max-width:var(--zn-container-ph)}.wide-form-container{max-width:var(--zn-container-lg)}:host{display:block;max-width:100%;--menu-gap:var(--zn-spacing-x-small)}.button-menu--no-gap{--menu-gap:0}.button-menu{display:flex;flex-direction:row;justify-content:flex-end;margin:0;min-width:34px;max-width:var(--zn-max-width);gap:var(--menu-gap)}.button-menu--no-padding{padding:0}.button-menu__container{display:flex;flex-direction:row;gap:var(--menu-gap);margin:0;max-width:calc(100% - 34px)}.button-menu__container:empty{display:none}.button-menu ::slotted(*){display:contents}.button-menu zn-button{min-width:34px;flex-shrink:0}`;var Gr=class extends S{constructor(){super(...arguments);this.limit=-1;this.maxLevel=2;this.iconSize=20;this._buttons=[];this._originalButtons=[];this._resizeRafId=0;this.resizeObserver=new ut(this,{target:null,callback:()=>{this._resizeRafId||(this._resizeRafId=requestAnimationFrame(()=>{this._resizeRafId=0,this.containerWidth=this.offsetWidth}))}})}async firstUpdated(t){super.firstUpdated(t);let r=this.querySelectorAll("zn-button");for(let n of r)await n.updateComplete;this._originalButtons=Array.from(r).map(n=>({button:n,width:Math.max(n.offsetWidth,150)})),this.querySelectorAll("zn-button").forEach(n=>{n.remove()}),this.containerWidth=this.parentNode?this.parentNode.offsetWidth:0,this.maxWidth&&(this.containerWidth=Math.min(this.containerWidth,this.maxWidth))}watchContainerMaxWidth(){this.maxWidth&&(this.containerWidth=Math.min(this.containerWidth,this.maxWidth)),this.calculateVisibleButtons()}connectedCallback(){super.connectedCallback(),this.containerWidth=this.offsetWidth,this.parentNode&&this.resizeObserver.observe(this.parentNode)}calculateVisibleButtons(){let t=this.containerWidth,r=0,n=0,a=0,s=0,l=t;this._buttons=[...this._originalButtons],l-=50,this._buttons.sort((m,f)=>{let b=m.button.hasAttribute("primary")?1:m.button.hasAttribute("secondary")?2:3,g=f.button.hasAttribute("primary")?1:f.button.hasAttribute("secondary")?2:3;return b-g}),this._buttons.forEach(m=>{s++,m.button.hasAttribute("primary")?r++:m.button.hasAttribute("secondary")&&n++,l-m.width>0?(l-=m.width,a++):l=0}),this.maxLevel<2?this.limit=this.limit>0?Math.min(this.limit,r):r:this.maxLevel<3&&(this.limit=this.limit>0?Math.min(this.limit,r+n):r+n),this.limit>-1&&(a=Math.min(a,this.limit));let d=this.shadowRoot?.querySelector(".button-menu__container");d&&(d.innerHTML="");let h=this.shadowRoot?.querySelector("zn-menu");h&&(h.innerHTML=""),this._buttons.forEach((m,f)=>{f<a&&(this.shadowRoot?.querySelector(".button-menu__container")?.appendChild(m.button),(m.button.hasAttribute("primary")||m.button.hasAttribute("secondary"))&&m.button.setAttribute("text",""))}),this.calculateMenuButtons(s,a,this._buttons)}calculateMenuButtons(t,r,n){let a=this.shadowRoot?.querySelector("zn-menu"),s=this.shadowRoot?.querySelector("zn-dropdown");if(a&&s){let d=new Set,h={};s.toggleAttribute("hidden",n.length===0||n.length<=r),r!==n.length&&t>0&&(n.forEach((m,f)=>{if(f>=r){let b=document.createElement("zn-menu-item");b.textContent=this.getButtonLabel(m.button),b.setAttribute("id",m.button.id||`zn-button-menu-item-${f}`),b.setAttribute("role","menuitem");let g=m.button.attributes;for(let z of Array.from(g))z.name!=="icon"&&z.name!=="category"&&b.setAttribute(z.name,z.value);let v=m.button.getAttribute("icon");if(v){let z=document.createElement("zn-icon");z.setAttribute("src",v);let E=m.button.getAttribute("icon-library");E&&z.setAttribute("library",E),z.setAttribute("size","18"),z.setAttribute("slot","prefix"),b.appendChild(z)}let y=m.button.getAttribute("category")||"default";d.add(y),h[y]||(h[y]=[]),h[y].push(b)}}),d.forEach(m=>{if(m==="default")h[m].forEach(f=>{a.appendChild(f)});else if(h[m].length===1){let f=h[m][0];a.appendChild(f)}else{let f=document.createElement("zn-menu-item");f.innerText=m.charAt(0).toUpperCase()+m.slice(1);let b=document.createElement("zn-menu");b.setAttribute("slot","submenu"),b.setAttribute("variant",a.variant),h[m].forEach(g=>{b.appendChild(g)}),f.appendChild(b),a.appendChild(f)}}))}Ge("zn-confirm",this,"").forEach(d=>{d.updateTriggers()})}getButtonLabel(t){let r=t.shadowRoot?.querySelector('slot[part="label"]');return((r?[...r.assignedNodes({flatten:!0})].map(s=>s.textContent??"").join("").trim():"")||t.content||t.getAttribute("content")||t.caption||t.getAttribute("caption")||t.tooltip||t.getAttribute("tooltip")||t.getAttribute("aria-label")||t.button?.innerText||t.textContent||"").trim()}render(){return u`
4113
4113
  <div class="${M({"button-menu":!0,"button-menu--no-padding":this.noPadding,"button-menu--no-gap":this.noGap})}">
4114
4114
  <div class="button-menu__container"></div>
4115
4115
  <zn-dropdown placement="bottom-end">
@@ -4121,7 +4121,7 @@ ${Ha(this.code(i,t))}
4121
4121
  <zn-menu></zn-menu>
4122
4122
  </zn-dropdown>
4123
4123
  <slot></slot>
4124
- </div>`}addButton(t){t&&(t.classList.add("zn-button-menu__added"),this._originalButtons.push({button:t,width:Math.max(t.offsetWidth,150)}),this.calculateVisibleButtons())}setDynamicButtons(t){this.removeAllButtons(),!(!t||t.length===0)&&t.forEach(r=>{this.addButton(r)})}removeButton(t){let r=this.querySelector(`zn-button.${t}`);r&&(this._originalButtons=this._originalButtons.filter(a=>a.button!==r),r.remove());let n=this.querySelector(`zn-menu-item#${t}`);n&&this.shadowRoot?.querySelector("zn-menu")&&n.remove(),this.calculateVisibleButtons()}removeAllButtons(){let t=this.shadowRoot?.querySelectorAll("zn-button.zn-button-menu__added");t&&t.forEach(n=>{n.remove()});let r=this.shadowRoot?.querySelectorAll("zn-menu-item.zn-button-menu__added");r&&r?.forEach(n=>{n.remove()}),this._buttons=[],this._originalButtons=this._originalButtons.filter(n=>!n.button.classList.contains("zn-button-menu__added")),this.calculateVisibleButtons()}};Gr.styles=_(B2),c([p({type:Number,attribute:"max-width"})],Gr.prototype,"maxWidth",2),c([p({type:Number})],Gr.prototype,"containerWidth",2),c([p({type:Number,attribute:"limit"})],Gr.prototype,"limit",2),c([p({type:Number,attribute:"max-level"})],Gr.prototype,"maxLevel",2),c([p({type:Number,attribute:"icon-size",reflect:!0})],Gr.prototype,"iconSize",2),c([p({type:Boolean,attribute:"no-gap"})],Gr.prototype,"noGap",2),c([p({type:Boolean,attribute:"no-padding"})],Gr.prototype,"noPadding",2),c([W("containerWidth",{waitUntilFirstUpdate:!0})],Gr.prototype,"watchContainerMaxWidth",1);var hq=Gr;Gr.define("zn-button-menu");var V2=k`@keyframes rotate-gradient{from{--rotate:0deg}to{--rotate:360deg}}:host{text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-transform:none}*,*::before,*::after{box-sizing:border-box;border-width:0;border-style:solid;border-color:rgb(var(--zn-border-color))}[hidden]{display:none !important}.width-container,.form-container,.wide-form-container{height:100%;width:100%;margin:var(--zn-default-margin,0 auto)}.width-container{max-width:var(--zn-container)}.form-container{max-width:var(--zn-container-ph)}.wide-form-container{max-width:var(--zn-container-lg)}:host{--width:min(100vw,46rem);--header-spacing:var(--zn-spacing-large) var(--zn-spacing-large) var(--zn-spacing-medium);--body-spacing:var(--zn-spacing-medium) var(--zn-spacing-large);--footer-spacing:var(--zn-spacing-large);--icon-background-color:var(--zn-color-primary-200);--icon-color:var(--zn-color-primary-600);--caption-color:var(--zn-color-primary-600);display:contents}.slideout{left:unset;top:0;bottom:0;right:0;margin:0;max-height:100%;height:100%;overflow:hidden;overflow-y:auto;flex-direction:column;z-index:2;padding:0;width:1100px;background:rgb(var(--zn-body));box-shadow:0 0 10px 0 rgba(0,0,0,0.1)}.slideout::backdrop{background:var(--zn-overlay-background-color)}.slideout__header{flex:0 0 auto;display:flex;border-bottom:1px solid rgb(var(--zn-border-color));background-color:var(--zn-panel-background-color)}.slideout__title{display:flex;flex:1 1 auto;align-items:center;font:inherit;margin:0;color:rgb(var(--zn-text-panel-title));font-size:var(--zn-font-size-x-large);font-weight:var(--zn-font-weight-semibold);letter-spacing:var(--zn-letter-spacing-normal);line-height:var(--zn-font-size-x-large);padding:var(--header-spacing)}.slideout__header-actions{flex-shrink:0;display:flex;flex-wrap:wrap;justify-content:end;align-items:center;margin-left:auto;gap:var(--zn-spacing-x-small);padding:var(--header-spacing)}.slideout__header-actions zn-button,.slideout__header-actions::slotted(zn-button){flex:0 0 auto;display:flex;align-items:center;font-size:var(--zn-font-size-medium)}.slideout__body{flex:1 1 auto;display:block;padding:var(--body-spacing);overflow:auto;-webkit-overflow-scrolling:touch;color:var(--zn-color-text-default);font-size:var(--zn-font-size-medium);font-weight:var(--zn-font-weight-normal);letter-spacing:var(--zn-tracking-normal);line-height:var(--zn-line-height-dense)}.slideout__footer{display:flex;justify-content:space-between;flex:0 0 auto;padding:var(--footer-spacing);border-top:1px solid rgb(var(--zn-border-color))}.slideout__footer ::slotted(zn-button:not(:first-of-type)){margin-inline-start:var(--zn-spacing-x-small)}`;var ci=class extends S{constructor(){super(...arguments);this.localize=new Ft(this);this.open=!1;this.closeClickHandler=t=>{if(t.target instanceof HTMLElement&&t.target.hasAttribute("slideout-closer")){this.hide();return}for(let r of t.composedPath()){if(r===this)return;if(r instanceof HTMLElement){if(r.hasAttribute("modal-closer")){this.hide();return}if(r.localName==="zn-dialog"||r.localName==="zn-slideout")return}}}}firstUpdated(t){super.firstUpdated(t),this.open&&this.show()}connectedCallback(){if(super.connectedCallback(),this.addEventListener("click",this.closeClickHandler),this.shadowRoot?.addEventListener("click",this.closeClickHandler),this.trigger){let t=this.parentNode?.querySelector(pr(this.trigger));t&&t.addEventListener("click",()=>this.show())}}disconnectedCallback(){if(super.disconnectedCallback(),this.slideout.close(),ka(this),this.closeWatcher?.destroy(),this.removeEventListener("click",this.closeClickHandler),this.trigger){let t=this.parentElement?.querySelector(pr(this.trigger));t&&t.removeEventListener("click",()=>this.show())}}requestClose(t){this.emit("zn-request-close",{cancelable:!0,detail:{source:t}}).defaultPrevented||this.hide()}addOpenListeners(){"CloseWatcher"in window&&(this.closeWatcher?.destroy(),this.closeWatcher=new CloseWatcher,this.closeWatcher.onclose=()=>this.requestClose("keyboard"))}removeOpenListeners(){this.closeWatcher?.destroy()}async show(){this.emit("zn-show"),this.addOpenListeners(),this.open=!0,this.slideout.showModal();let{keyframes:t,options:r}=Cn(this,"slideout.show",{dir:this.localize.dir()});await yi(this.slideout,t,r)}async hide(){this.emit("zn-close"),this.removeOpenListeners();let{keyframes:t,options:r}=Cn(this,"slideout.hide",{dir:this.localize.dir()});await yi(this.slideout,t,r),this.open=!1,this.slideout.close()}render(){return u`
4124
+ </div>`}addButton(t){t&&(t.classList.add("zn-button-menu__added"),this._originalButtons.push({button:t,width:Math.max(t.offsetWidth,150)}),this.calculateVisibleButtons())}setDynamicButtons(t){this.removeAllButtons(),!(!t||t.length===0)&&t.forEach(r=>{this.addButton(r)})}removeButton(t){let r=this.querySelector(`zn-button.${t}`);r&&(this._originalButtons=this._originalButtons.filter(a=>a.button!==r),r.remove());let n=this.querySelector(`zn-menu-item#${t}`);n&&this.shadowRoot?.querySelector("zn-menu")&&n.remove(),this.calculateVisibleButtons()}removeAllButtons(){let t=this.shadowRoot?.querySelectorAll("zn-button.zn-button-menu__added");t&&t.forEach(n=>{n.remove()});let r=this.shadowRoot?.querySelectorAll("zn-menu-item.zn-button-menu__added");r&&r?.forEach(n=>{n.remove()}),this._buttons=[],this._originalButtons=this._originalButtons.filter(n=>!n.button.classList.contains("zn-button-menu__added")),this.calculateVisibleButtons()}};Gr.styles=_(B2),c([p({type:Number,attribute:"max-width"})],Gr.prototype,"maxWidth",2),c([p({type:Number})],Gr.prototype,"containerWidth",2),c([p({type:Number,attribute:"limit"})],Gr.prototype,"limit",2),c([p({type:Number,attribute:"max-level"})],Gr.prototype,"maxLevel",2),c([p({type:Number,attribute:"icon-size",reflect:!0})],Gr.prototype,"iconSize",2),c([p({type:Boolean,attribute:"no-gap"})],Gr.prototype,"noGap",2),c([p({type:Boolean,attribute:"no-padding"})],Gr.prototype,"noPadding",2),c([W("containerWidth",{waitUntilFirstUpdate:!0})],Gr.prototype,"watchContainerMaxWidth",1);var hq=Gr;Gr.define("zn-button-menu");var V2=k`@keyframes rotate-gradient{from{--rotate:0deg}to{--rotate:360deg}}:host{text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-transform:none}*,*::before,*::after{box-sizing:border-box;border-width:0;border-style:solid;border-color:rgb(var(--zn-border-color))}[hidden]{display:none !important}.width-container,.form-container,.wide-form-container{height:100%;width:100%;margin:var(--zn-default-margin,0 auto)}.width-container{max-width:var(--zn-container)}.form-container{max-width:var(--zn-container-ph)}.wide-form-container{max-width:var(--zn-container-lg)}:host{--width:min(100vw,46rem);--header-spacing:var(--zn-spacing-large) var(--zn-spacing-large) var(--zn-spacing-medium);--body-spacing:var(--zn-spacing-medium) var(--zn-spacing-large);--footer-spacing:var(--zn-spacing-large);--icon-background-color:var(--zn-color-primary-200);--icon-color:var(--zn-color-primary-600);--caption-color:var(--zn-color-primary-600);display:contents}.slideout{left:unset;top:0;bottom:0;right:0;margin:0;max-height:100%;height:100%;overflow:hidden;overflow-y:auto;flex-direction:column;z-index:2;padding:0;width:1100px;background:rgb(var(--zn-body));box-shadow:0 0 10px 0 rgba(0,0,0,0.1)}.slideout::backdrop{background:var(--zn-overlay-background-color)}.slideout__header{flex:0 0 auto;display:flex;border-bottom:1px solid rgb(var(--zn-border-color));background-color:var(--zn-panel-background-color)}.slideout__title{display:flex;flex:1 1 auto;align-items:center;font:inherit;margin:0;color:rgb(var(--zn-text-panel-title));font-size:var(--zn-font-size-x-large);font-weight:var(--zn-font-weight-semibold);letter-spacing:var(--zn-letter-spacing-normal);line-height:var(--zn-font-size-x-large);padding:var(--header-spacing)}.slideout__header-actions{flex-shrink:0;display:flex;flex-wrap:wrap;justify-content:end;align-items:center;margin-left:auto;gap:var(--zn-spacing-x-small);padding:var(--header-spacing)}.slideout__header-actions zn-button,.slideout__header-actions::slotted(zn-button){flex:0 0 auto;display:flex;align-items:center;font-size:var(--zn-font-size-medium)}.slideout__body{flex:1 1 auto;display:block;padding:var(--body-spacing);overflow:auto;-webkit-overflow-scrolling:touch;color:var(--zn-color-text-default);font-size:var(--zn-font-size-medium);font-weight:var(--zn-font-weight-normal);letter-spacing:var(--zn-tracking-normal);line-height:var(--zn-line-height-dense)}.slideout__footer{display:flex;justify-content:space-between;flex:0 0 auto;padding:var(--footer-spacing);border-top:1px solid rgb(var(--zn-border-color))}.slideout__footer ::slotted(zn-button:not(:first-of-type)){margin-inline-start:var(--zn-spacing-x-small)}`;var ci=class extends S{constructor(){super(...arguments);this.localize=new Ft(this);this.open=!1;this.closeClickHandler=t=>{if(t.target instanceof HTMLElement&&t.target.hasAttribute("slideout-closer")){this.hide();return}for(let r of t.composedPath()){if(r===this)return;if(r instanceof HTMLElement){if(r.hasAttribute("modal-closer")){this.hide();return}if(r.localName==="zn-dialog"||r.localName==="zn-slideout")return}}}}firstUpdated(t){super.firstUpdated(t),this.open&&this.show()}connectedCallback(){if(super.connectedCallback(),this.addEventListener("click",this.closeClickHandler),this.shadowRoot?.addEventListener("click",this.closeClickHandler),this.trigger){let t=this.parentNode?.querySelector(dr(this.trigger));t&&t.addEventListener("click",()=>this.show())}}disconnectedCallback(){if(super.disconnectedCallback(),this.slideout.close(),ka(this),this.closeWatcher?.destroy(),this.removeEventListener("click",this.closeClickHandler),this.trigger){let t=this.parentElement?.querySelector(dr(this.trigger));t&&t.removeEventListener("click",()=>this.show())}}requestClose(t){this.emit("zn-request-close",{cancelable:!0,detail:{source:t}}).defaultPrevented||this.hide()}addOpenListeners(){"CloseWatcher"in window&&(this.closeWatcher?.destroy(),this.closeWatcher=new CloseWatcher,this.closeWatcher.onclose=()=>this.requestClose("keyboard"))}removeOpenListeners(){this.closeWatcher?.destroy()}async show(){this.emit("zn-show"),this.addOpenListeners(),this.open=!0,this.slideout.showModal();let{keyframes:t,options:r}=Cn(this,"slideout.show",{dir:this.localize.dir()});await yi(this.slideout,t,r)}async hide(){this.emit("zn-close"),this.removeOpenListeners();let{keyframes:t,options:r}=Cn(this,"slideout.hide",{dir:this.localize.dir()});await yi(this.slideout,t,r),this.open=!1,this.slideout.close()}render(){return u`
4125
4125
  <dialog
4126
4126
  part="base"
4127
4127
  role="alertdialog"
@@ -4243,7 +4243,7 @@ ${Ha(this.code(i,t))}
4243
4243
  <zn-button icon="keyboard_arrow_down"></zn-button>
4244
4244
  </zn-button-group>
4245
4245
  </div>
4246
- `}checkValidity(){return this._isButton()&&this.button?this.button.checkValidity():!0}getForm(){return this.formControlController.getForm()}reportValidity(){return this._isButton()&&this.button?this.button.reportValidity():!0}setCustomValidity(t){this._isButton()&&(this.button.setCustomValidity(t),this.formControlController.updateValidity())}get validity(){return this._isButton()&&this.button?this.button.validity:et}get validationMessage(){return this._isButton()&&this.button?this.button.validationMessage:""}_isButton(){return this.type==="submit"||this.type==="button"||this.type==="reset"}};Kr.styles=_(W2),c([p()],Kr.prototype,"caption",2),c([p()],Kr.prototype,"href",2),c([p()],Kr.prototype,"name",2),c([p()],Kr.prototype,"value",2),c([Te()],Kr.prototype,"defaultValue",2),c([p()],Kr.prototype,"type",2),c([B("zn-dropdown")],Kr.prototype,"dropdown",2),c([B("zn-button#trigger-btn")],Kr.prototype,"button",2);var vq=Kr;Kr.define("zn-split-button");var Y2=k`@charset "UTF-8";@keyframes rotate-gradient{from{--rotate:0deg}to{--rotate:360deg}}:host{text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-transform:none}*,*::before,*::after{box-sizing:border-box;border-width:0;border-style:solid;border-color:rgb(var(--zn-border-color))}[hidden]{display:none !important}.width-container,.form-container,.wide-form-container{height:100%;width:100%;margin:var(--zn-default-margin,0 auto)}.width-container{max-width:var(--zn-container)}.form-container{max-width:var(--zn-container-ph)}.wide-form-container{max-width:var(--zn-container-lg)}.content-block{background-color:var(--zn-note-background,rgba(var(--zn-panel),var(--zn-panel-opacity)));border-bottom:1px solid rgb(var(--zn-border-color));padding-inline:calc(var(--zn-gutter,0) + var(--zn-base-gap,0))}.content-block-header{display:flex;align-items:center;gap:var(--zn-spacing-small);width:100%;max-width:100%;padding-block:var(--zn-spacing-small);position:relative}.content-block--collapsible .content-block-header{cursor:pointer}.content-block-header__icon{display:flex;align-items:center;flex-shrink:0}.content-block-header__main{display:flex;flex-direction:row;align-items:center;gap:var(--zn-spacing-small);min-width:0;flex-grow:1;overflow:hidden}.content-block-header__caption{font-weight:var(--zn-text-h1-font-weight);font-size:var(--zn-text-h1-font-size);color:rgba(var(--zn-text-panel-title),100%);line-height:var(--zn-icon-size,20px);margin:0;display:flex;align-items:center;gap:var(--zn-spacing-small);flex-shrink:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.content-block-header__subject{flex:1 1 auto;min-width:0;font-size:var(--zn-font-size-medium);overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.content-block-header__subject--empty{opacity:0.5}.content-block-header__description{flex:1 1 auto;min-width:0;font-size:var(--zn-font-size-medium);color:rgb(var(--zn-text-muted));overflow:hidden;white-space:nowrap;text-overflow:ellipsis;display:none}.content-block-header__attachments{display:inline-flex;align-items:center;gap:var(--zn-spacing-2x-small);font-size:var(--zn-font-size-small);color:rgb(var(--zn-text-muted));flex-shrink:0;margin-left:auto}.content-block-header__actions{display:flex;align-items:center;gap:var(--zn-spacing-small);margin-left:auto;flex-shrink:0}.content-block__attachments{display:none;flex-direction:row;flex-wrap:wrap;align-items:center;gap:var(--zn-spacing-small);padding-block-end:var(--zn-spacing-small)}.content-block__attachments--visible{display:flex}.content-block__attachments ::slotted(zn-chat-message-attachment){min-width:0}.content-block--short zn-sp,.content-block--short .content-block__attachments{display:none}.content-block--short .content-block-header__description{display:block}@container (max-width:599px){.content-block--short .content-block-header__description{display:none}}.text-section{font-family:var(--zn-font-sans);font-size:var(--zn-text-paragraph-font-size);font-weight:var(--zn-text-paragraph-font-weight);line-height:var(--zn-text-paragraph-line-height);color:var(--zn-text-paragraph-color);text-transform:var(--zn-text-paragraph-transform);letter-spacing:var(--zn-text-paragraph-letter-spacing,normal)}.text-section a{font-size:var(--zn-font-size-small);opacity:0.8}.hidden{display:none}ol{counter-reset:list-0 0}@supports (counter-set:none){ol li,ul li{counter-set:list-1 0 list-2 0 list-3 0 list-4 0 list-5 0 list-6 0 list-7 0 list-8 0 list-9 0}}ol,ul{padding:0;margin:0}li[data-list=checked]>.ql-ui,li[data-list=unchecked]>.ql-ui{color:#777}li{list-style-type:none;position:relative}ul>li::before{content:"•"}ol>li{counter-increment:list-0}ol>li::before{content:counter(list-0) ". "}li[data-list=checked]::before{content:"☑"}li[data-list=unchecked]::before{content:"☐"}li[data-list=checked]::before,li[data-list=unchecked]::before{color:#777}ol li::before,ul li::before{display:inline-block;margin-left:-1.5em;margin-right:0.3em;text-align:right;white-space:nowrap;width:1.2em}li:has(>.ql-ui)::before{content:none;display:none}`;var Jt=class extends S{constructor(){super(...arguments);this.time="";this.sender="";this.avatar="";this.subject="";this.subjectPlaceholder="";this.outbound=!1;this.noCollapse=!1;this.short=!1;this.defaultDisplay="text";this.hasSlotController=new Y(this,"text","html");this.attachmentCount=0;this._textRows=[];this._footerObserver=new He(this,{target:null,config:{subtree:!0,childList:!0,attributes:!0,attributeFilter:["href","download","caption"]},callback:()=>this._debouncedReplace()});this._replaceDebounce=0}connectedCallback(){super.connectedCallback(),this.iframe.then(t=>{if(t.contentDocument){let r=this.htmlNodes[0];if(r){let n=r?.innerHTML??"";n=n.replace(/&nbsp;/g," "),n=n.replace(/&lt;/g,"<"),n=n.replace(/&gt;/g,">"),n=n.replace(/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,"");let a="<style>body,html{background-color: #ffffff}img{max-width:100%; max-height: 500px;}</style>";t.srcdoc=a+n}}t.addEventListener("load",()=>{setTimeout(()=>this._resizeIframe(t),50)})})}disconnectedCallback(){this._replaceDebounce&&(clearTimeout(this._replaceDebounce),this._replaceDebounce=0),super.disconnectedCallback()}_collapseContent(t){this.noCollapse||t.composedPath().some(n=>n instanceof HTMLElement&&n.classList.contains("content-block-header__actions"))||(this.short=!this.short,this.requestUpdate(),this.updateComplete.then(()=>{this.short||this.iframe.then(n=>{n&&!n.classList.contains("hidden")&&this._resizeIframe(n)})}))}_toggleText(){let t=this.shadowRoot?.querySelector(".text-content");this.iframe.then(r=>{t&&(r.classList.add("hidden"),t.classList.remove("hidden"))})}_toggleHtml(){let t=this.shadowRoot?.querySelector(".text-content");this.iframe.then(r=>{t&&(r.classList.remove("hidden"),t.classList.add("hidden"),setTimeout(()=>this._resizeIframe(r),0))})}_resizeIframe(t){let r=n=>{let a=n.contentDocument;if(!a)return;n.style.height="auto";let s=a.body,l=a.documentElement,d=[s?.scrollHeight??0,l?.scrollHeight??0,s?.offsetHeight??0,l?.offsetHeight??0],h=Math.max(...d);h>0&&(n.style.height=`${h}px`)};t?r(t):this.iframe.then(n=>{n?.contentDocument&&requestAnimationFrame(()=>r(n))})}handleAttachmentsSlotChange(){this.syncAttachmentCount()}syncAttachmentCount(){let t=this.shadowRoot?.querySelector('slot[name="attachments"]');this.attachmentCount=t?.assignedElements().length??0}firstUpdated(t){super.firstUpdated(t),this.syncAttachmentCount(),Promise.resolve().then(()=>this.syncAttachmentCount());let r=this.shadowRoot?.querySelectorAll(".text-section");r&&r.length>0&&r.forEach(n=>{n.innerHTML=n.innerHTML.replace(/&nbsp;/g," "),n.innerHTML=n.innerHTML.replace(/<!--[\s\S]*?-->/g,""),n.innerHTML=n.innerHTML.replace(/<\/p><br>/g,"</p>")})}render(){let t=this.getTextSections(),r=this.querySelector(':scope > [slot="footer"]')!==null,n=this.hasSlotController.test("text"),a=this.hasSlotController.test("html"),s=n&&a,l=a&&(!n||this.defaultDisplay==="html");return u`
4246
+ `}checkValidity(){return this._isButton()&&this.button?this.button.checkValidity():!0}getForm(){return this.formControlController.getForm()}reportValidity(){return this._isButton()&&this.button?this.button.reportValidity():!0}setCustomValidity(t){this._isButton()&&(this.button.setCustomValidity(t),this.formControlController.updateValidity())}get validity(){return this._isButton()&&this.button?this.button.validity:et}get validationMessage(){return this._isButton()&&this.button?this.button.validationMessage:""}_isButton(){return this.type==="submit"||this.type==="button"||this.type==="reset"}};Kr.styles=_(W2),c([p()],Kr.prototype,"caption",2),c([p()],Kr.prototype,"href",2),c([p()],Kr.prototype,"name",2),c([p()],Kr.prototype,"value",2),c([Te()],Kr.prototype,"defaultValue",2),c([p()],Kr.prototype,"type",2),c([B("zn-dropdown")],Kr.prototype,"dropdown",2),c([B("zn-button#trigger-btn")],Kr.prototype,"button",2);var vq=Kr;Kr.define("zn-split-button");var Y2=k`@charset "UTF-8";@keyframes rotate-gradient{from{--rotate:0deg}to{--rotate:360deg}}:host{text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-transform:none}*,*::before,*::after{box-sizing:border-box;border-width:0;border-style:solid;border-color:rgb(var(--zn-border-color))}[hidden]{display:none !important}.width-container,.form-container,.wide-form-container{height:100%;width:100%;margin:var(--zn-default-margin,0 auto)}.width-container{max-width:var(--zn-container)}.form-container{max-width:var(--zn-container-ph)}.wide-form-container{max-width:var(--zn-container-lg)}.content-block{background-color:var(--zn-note-background,rgba(var(--zn-panel),var(--zn-panel-opacity)));border-bottom:1px solid rgb(var(--zn-border-color));padding-inline:calc(var(--zn-gutter,0) + var(--zn-base-gap,0))}.content-block-header{display:flex;align-items:center;gap:var(--zn-spacing-small);width:100%;max-width:100%;padding-block:var(--zn-spacing-small);position:relative}.content-block--collapsible .content-block-header{cursor:pointer}.content-block-header__icon{display:flex;align-items:center;flex-shrink:0}.content-block-header__main{display:flex;flex-direction:row;align-items:center;gap:var(--zn-spacing-small);min-width:0;flex-grow:1;overflow:hidden}.content-block-header__caption{font-weight:var(--zn-text-h1-font-weight);font-size:var(--zn-text-h1-font-size);color:rgba(var(--zn-text-panel-title),100%);line-height:var(--zn-icon-size,20px);margin:0;display:flex;align-items:center;gap:var(--zn-spacing-small);flex-shrink:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.content-block-header__description{flex:1 1 auto;min-width:0;font-size:var(--zn-font-size-medium);color:rgb(var(--zn-text-muted));overflow:hidden;white-space:nowrap;text-overflow:ellipsis;display:none}.content-block-header__attachments{display:inline-flex;align-items:center;gap:var(--zn-spacing-2x-small);font-size:var(--zn-font-size-small);color:rgb(var(--zn-text-muted));flex-shrink:0;margin-left:auto}.content-block-header__actions{display:flex;align-items:center;gap:var(--zn-spacing-small);margin-left:auto;flex-shrink:0}.content-block__attachments{display:none;flex-direction:row;flex-wrap:wrap;align-items:center;gap:var(--zn-spacing-small);padding-block-end:var(--zn-spacing-small)}.content-block__attachments--visible{display:flex}.content-block__attachments ::slotted(zn-chat-message-attachment){min-width:0}.content-block--short zn-sp,.content-block--short .content-block__attachments{display:none}.content-block--short .content-block-header__description{display:block}@container (max-width:599px){.content-block--short .content-block-header__description{display:none}}.text-section{font-family:var(--zn-font-sans);font-size:var(--zn-text-paragraph-font-size);font-weight:var(--zn-text-paragraph-font-weight);line-height:var(--zn-text-paragraph-line-height);color:var(--zn-text-paragraph-color);text-transform:var(--zn-text-paragraph-transform);letter-spacing:var(--zn-text-paragraph-letter-spacing,normal)}.text-section a{font-size:var(--zn-font-size-small);opacity:0.8}.hidden{display:none}ol{counter-reset:list-0 0}@supports (counter-set:none){ol li,ul li{counter-set:list-1 0 list-2 0 list-3 0 list-4 0 list-5 0 list-6 0 list-7 0 list-8 0 list-9 0}}ol,ul{padding:0;margin:0}li[data-list=checked]>.ql-ui,li[data-list=unchecked]>.ql-ui{color:#777}li{list-style-type:none;position:relative}ul>li::before{content:"•"}ol>li{counter-increment:list-0}ol>li::before{content:counter(list-0) ". "}li[data-list=checked]::before{content:"☑"}li[data-list=unchecked]::before{content:"☐"}li[data-list=checked]::before,li[data-list=unchecked]::before{color:#777}ol li::before,ul li::before{display:inline-block;margin-left:-1.5em;margin-right:0.3em;text-align:right;white-space:nowrap;width:1.2em}li:has(>.ql-ui)::before{content:none;display:none}`;var yr=class extends S{constructor(){super(...arguments);this.time="";this.sender="";this.avatar="";this.outbound=!1;this.noCollapse=!1;this.short=!1;this.defaultDisplay="text";this.hasSlotController=new Y(this,"text","html");this.attachmentCount=0;this._textRows=[];this._footerObserver=new He(this,{target:null,config:{subtree:!0,childList:!0,attributes:!0,attributeFilter:["href","download","caption"]},callback:()=>this._debouncedReplace()});this._replaceDebounce=0}connectedCallback(){super.connectedCallback(),this.iframe.then(t=>{if(t.contentDocument){let r=this.htmlNodes[0];if(r){let n=r?.innerHTML??"";n=n.replace(/&nbsp;/g," "),n=n.replace(/&lt;/g,"<"),n=n.replace(/&gt;/g,">"),n=n.replace(/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,"");let a="<style>body,html{background-color: #ffffff}img{max-width:100%; max-height: 500px;}</style>";t.srcdoc=a+n}}t.addEventListener("load",()=>{setTimeout(()=>this._resizeIframe(t),50)})})}disconnectedCallback(){this._replaceDebounce&&(clearTimeout(this._replaceDebounce),this._replaceDebounce=0),super.disconnectedCallback()}_collapseContent(t){this.noCollapse||t.composedPath().some(n=>n instanceof HTMLElement&&n.classList.contains("content-block-header__actions"))||(this.short=!this.short,this.requestUpdate(),this.updateComplete.then(()=>{this.short||this.iframe.then(n=>{n&&!n.classList.contains("hidden")&&this._resizeIframe(n)})}))}_toggleText(){let t=this.shadowRoot?.querySelector(".text-content");this.iframe.then(r=>{t&&(r.classList.add("hidden"),t.classList.remove("hidden"))})}_toggleHtml(){let t=this.shadowRoot?.querySelector(".text-content");this.iframe.then(r=>{t&&(r.classList.remove("hidden"),t.classList.add("hidden"),setTimeout(()=>this._resizeIframe(r),0))})}_resizeIframe(t){let r=n=>{let a=n.contentDocument;if(!a)return;n.style.height="auto";let s=a.body,l=a.documentElement,d=[s?.scrollHeight??0,l?.scrollHeight??0,s?.offsetHeight??0,l?.offsetHeight??0],h=Math.max(...d);h>0&&(n.style.height=`${h}px`)};t?r(t):this.iframe.then(n=>{n?.contentDocument&&requestAnimationFrame(()=>r(n))})}handleAttachmentsSlotChange(){this.syncAttachmentCount()}syncAttachmentCount(){let t=this.shadowRoot?.querySelector('slot[name="attachments"]');this.attachmentCount=t?.assignedElements().length??0}firstUpdated(t){super.firstUpdated(t),this.syncAttachmentCount(),Promise.resolve().then(()=>this.syncAttachmentCount());let r=this.shadowRoot?.querySelectorAll(".text-section");r&&r.length>0&&r.forEach(n=>{n.innerHTML=n.innerHTML.replace(/&nbsp;/g," "),n.innerHTML=n.innerHTML.replace(/<!--[\s\S]*?-->/g,""),n.innerHTML=n.innerHTML.replace(/<\/p><br>/g,"</p>")})}render(){let t=this.getTextSections(),r=this.querySelector(':scope > [slot="footer"]')!==null,n=this.hasSlotController.test("text"),a=this.hasSlotController.test("html"),s=n&&a,l=a&&(!n||this.defaultDisplay==="html");return u`
4247
4247
  <div class="${M({"content-block":!0,"content-block--outbound":this.outbound,"content-block--short":this.short,"content-block--collapsible":!this.noCollapse})}">
4248
4248
 
4249
4249
  <div class="content-block-header" @click="${this._collapseContent}">
@@ -4260,9 +4260,7 @@ ${Ha(this.code(i,t))}
4260
4260
  <span class="content-block-header__caption">
4261
4261
  <slot name="caption">${this.sender}</slot>
4262
4262
  </span>
4263
- ${this.subject||this.subjectPlaceholder?u`
4264
- <span class="${M({"content-block-header__subject":!0,"content-block-header__subject--empty":!this.subject})}">${this.subject||this.subjectPlaceholder}</span>`:u`
4265
- <span class="content-block-header__description">${this.truncateText()}</span>`}
4263
+ <span class="content-block-header__description">${this.truncateText()}</span>
4266
4264
  ${this.attachmentCount>0?u`
4267
4265
  <span class="content-block-header__attachments" part="header-attachments">
4268
4266
  <zn-icon src="paperclip@lu" size="14"></zn-icon>${this.attachmentCount}
@@ -4287,7 +4285,7 @@ ${Ha(this.code(i,t))}
4287
4285
  </div>
4288
4286
  </div>
4289
4287
 
4290
- <zn-sp no-gap flush-x>
4288
+ <zn-sp no-gap flush-x flush-t>
4291
4289
  <iframe class="${M({hidden:!l})}" title="Content block HTML preview"></iframe>
4292
4290
  <slot class="html-content" name="html" style="display: none;"></slot>
4293
4291
  <slot name="text" style="display: none;"></slot>
@@ -4314,7 +4312,7 @@ ${Ha(this.code(i,t))}
4314
4312
  </div>
4315
4313
  `}truncateText(){let t=this.querySelector('[slot="text"]');if(!t)return"";let r=t.innerText.replace(/<[^>]*>/g,"").trim();return r.length>32?r.substring(0,32)+"...":r}_handleSlotChange(t){let n=t.target.assignedElements({flatten:!0});!n||n.length===0||(n.forEach(a=>this._footerObserver.observe(a)),this._replaceImagePlaceholders(),setTimeout(()=>this._replaceImagePlaceholders(),50))}_debouncedReplace(){this._replaceDebounce&&clearTimeout(this._replaceDebounce),this._replaceDebounce=window.setTimeout(()=>this._replaceImagePlaceholders(),50)}_replaceImagePlaceholders(){let t=this.shadowRoot?.querySelector(".text-content");if(!t){this.updateComplete.then(()=>this._replaceImagePlaceholders());return}let r=this.querySelector(':scope > [slot="footer"]');if(!r)return;let n=Ge("a[href]",r,"");if(n.length===0)return;let a=t.innerHTML,s=new Set(["png","jpg","jpeg","gif","bmp","webp","svg","heic","tiff","tif","avif"]);n.forEach(l=>{let d=new Set,h=l.querySelector("zn-tile"),m=(h?.caption??h?.getAttribute?.("caption")??"").trim();m&&d.add(m);let f=(l.getAttribute("download")||"").trim();f&&d.add(f);let b=l.getAttribute("href")||"";d.forEach(g=>{let v=(g||"").trim();if(!v)return;let y=v.includes("/")?v.split("/").pop():v,z=y.toLowerCase(),E=z.includes(".")?z.split(".").pop():"";if(E&&!s.has(E))return;let N=y.replace(/"/g,"&quot;");a=a.replace(`[image: ${y}]`,()=>`<img src="${b}" alt="${N}" style="max-height: 500px; max-width: 100%">`)})}),t.innerHTML=a}getTextSections(){let t=this.querySelector('[slot="text"]'),r=[];if(t){let a=t.innerText.replace(/<br\s*\/?>/gi,`
4316
4314
  `).split(`
4317
- `),s=null,l=!1,d="text",h=a.some(m=>m.startsWith(">"));a.forEach(m=>{let f=m;if((f.startsWith("On")&&f.endsWith("wrote:")||f.startsWith("From:"))&&!h&&(l=!0),f.startsWith("--")&&(l=!1),d=l||f.startsWith(">")?"reply":"text",f.startsWith("Sent from")&&(d="reply"),f.trim()===""&&s==="reply"&&(d="reply"),d==="reply"&&f.startsWith(">")&&(f=f.substring(1).trim()),s===d){if(r.length===0){r.push({lines:[f],type:d}),s=d;return}r[r.length-1].lines.push(f)}else r.push({lines:[f],type:d}),s=d})}return this._textRows=r,this._textRows}showReply(t){let n=t.target.nextElementSibling;n&&n.classList.toggle("hidden")}};Jt.styles=_(Y2),c([p()],Jt.prototype,"time",2),c([p()],Jt.prototype,"sender",2),c([p()],Jt.prototype,"avatar",2),c([p()],Jt.prototype,"subject",2),c([p({attribute:"subject-placeholder"})],Jt.prototype,"subjectPlaceholder",2),c([p({type:Boolean,reflect:!0})],Jt.prototype,"outbound",2),c([p({type:Boolean,attribute:"no-collapse"})],Jt.prototype,"noCollapse",2),c([p({type:Boolean,reflect:!0})],Jt.prototype,"short",2),c([p({attribute:"default-display",reflect:!0})],Jt.prototype,"defaultDisplay",2),c([nv({slot:"html",flatten:!0})],Jt.prototype,"htmlNodes",2),c([iv("iframe")],Jt.prototype,"iframe",2),c([I()],Jt.prototype,"attachmentCount",2);var yq=Jt;Jt.define("zn-content-block");var Q2=k`@keyframes rotate-gradient{from{--rotate:0deg}to{--rotate:360deg}}:host{text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-transform:none}*,*::before,*::after{box-sizing:border-box;border-width:0;border-style:solid;border-color:rgb(var(--zn-border-color))}[hidden]{display:none !important}.width-container,.form-container,.wide-form-container{height:100%;width:100%;margin:var(--zn-default-margin,0 auto)}.width-container{max-width:var(--zn-container)}.form-container{max-width:var(--zn-container-ph)}.wide-form-container{max-width:var(--zn-container-lg)}:host{display:block}.filter-wrapper__submit{margin-top:var(--zn-spacing-medium)}`;var ea=class extends S{constructor(){super(...arguments);this.button="Filter";this.hasSubmitButton=!1;this.handleSubmit=t=>{t.preventDefault();let r=this.closest("zn-data-table");if(r){let n=["zn-input","zn-select","zn-query-builder","zn-data-select","zn-datepicker","input","select","textarea"],a=Array.from(this.querySelectorAll(n.join(","))),s={};a.forEach(l=>{!l.value&&l.hasAttribute("omit-empty")||(s[l.name]=l.value)}),r.requestParams=s,r.refresh()}}}connectedCallback(){super.connectedCallback();let t=this.querySelector("zn-button[submit]");t&&(this.hasSubmitButton=!0,t.addEventListener("click",this.handleSubmit))}renderDefaultButton(){return u`
4315
+ `),s=null,l=!1,d="text",h=a.some(m=>m.startsWith(">"));a.forEach(m=>{let f=m;if((f.startsWith("On")&&f.endsWith("wrote:")||f.startsWith("From:"))&&!h&&(l=!0),f.startsWith("--")&&(l=!1),d=l||f.startsWith(">")?"reply":"text",f.startsWith("Sent from")&&(d="reply"),f.trim()===""&&s==="reply"&&(d="reply"),d==="reply"&&f.startsWith(">")&&(f=f.substring(1).trim()),s===d){if(r.length===0){r.push({lines:[f],type:d}),s=d;return}r[r.length-1].lines.push(f)}else r.push({lines:[f],type:d}),s=d})}return this._textRows=r,this._textRows}showReply(t){let n=t.target.nextElementSibling;n&&n.classList.toggle("hidden")}};yr.styles=_(Y2),c([p()],yr.prototype,"time",2),c([p()],yr.prototype,"sender",2),c([p()],yr.prototype,"avatar",2),c([p({type:Boolean,reflect:!0})],yr.prototype,"outbound",2),c([p({type:Boolean,attribute:"no-collapse"})],yr.prototype,"noCollapse",2),c([p({type:Boolean,reflect:!0})],yr.prototype,"short",2),c([p({attribute:"default-display",reflect:!0})],yr.prototype,"defaultDisplay",2),c([nv({slot:"html",flatten:!0})],yr.prototype,"htmlNodes",2),c([iv("iframe")],yr.prototype,"iframe",2),c([I()],yr.prototype,"attachmentCount",2);var yq=yr;yr.define("zn-content-block");var Q2=k`@keyframes rotate-gradient{from{--rotate:0deg}to{--rotate:360deg}}:host{text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-transform:none}*,*::before,*::after{box-sizing:border-box;border-width:0;border-style:solid;border-color:rgb(var(--zn-border-color))}[hidden]{display:none !important}.width-container,.form-container,.wide-form-container{height:100%;width:100%;margin:var(--zn-default-margin,0 auto)}.width-container{max-width:var(--zn-container)}.form-container{max-width:var(--zn-container-ph)}.wide-form-container{max-width:var(--zn-container-lg)}:host{display:block}.filter-wrapper__submit{margin-top:var(--zn-spacing-medium)}`;var ea=class extends S{constructor(){super(...arguments);this.button="Filter";this.hasSubmitButton=!1;this.handleSubmit=t=>{t.preventDefault();let r=this.closest("zn-data-table");if(r){let n=["zn-input","zn-select","zn-query-builder","zn-data-select","zn-datepicker","input","select","textarea"],a=Array.from(this.querySelectorAll(n.join(","))),s={};a.forEach(l=>{!l.value&&l.hasAttribute("omit-empty")||(s[l.name]=l.value)}),r.requestParams=s,r.refresh()}}}connectedCallback(){super.connectedCallback();let t=this.querySelector("zn-button[submit]");t&&(this.hasSubmitButton=!0,t.addEventListener("click",this.handleSubmit))}renderDefaultButton(){return u`
4318
4316
  <zn-button part="search-button"
4319
4317
  class="filter-wrapper__submit"
4320
4318
  type="submit"
@@ -4399,7 +4397,7 @@ ${Ha(this.code(i,t))}
4399
4397
  <zn-option value="${t.url}">${t.name}</zn-option>
4400
4398
  `)}
4401
4399
  </zn-select>
4402
- `}};Wi.styles=_(ek),c([I()],Wi.prototype,"_isPlaying",2),c([p()],Wi.prototype,"value",2),c([p()],Wi.prototype,"label",2),c([p()],Wi.prototype,"placeholder",2),c([p({type:Object})],Wi.prototype,"files",2);var kq=Wi;Wi.define("zn-audio-select");var tk=yt(class extends ir{constructor(){super(...arguments),this.key=F}render(o,i){return this.key=o,i}update(o,[i,t]){return i!==this.key&&(ss(o),this.key=i),t}});var zg=[{id:"text",label:"Text"},{id:"inline",label:"Inline"},{id:"lists",label:"Lists"},{id:"admonitions",label:"Alerts"},{id:"blocks",label:"Blocks"},{id:"structured",label:"Structured"},{id:"media",label:"Media"},{id:"objects",label:"Objects"},{id:"breaks",label:"Breaks"},{id:"logic",label:"Logic"}],Ih=[{key:"text",label:"Text",icon:"text@lu",group:"text",prefix:""},{key:"paragraphs",label:"Paragraph",icon:"pilcrow@lu",group:"text",prefix:""},{key:"heading",label:"Heading 1",icon:"heading-1@lu",group:"text",prefix:"# "},{key:"h2",label:"Heading 2",icon:"heading-2@lu",group:"text",prefix:"## "},{key:"h3",label:"Heading 3",icon:"heading-3@lu",group:"text",prefix:"### "},{key:"asciidoc-section",label:"Section",icon:"section@lu",group:"text",prefix:"== "},{key:"attributes-title",label:"Title",icon:"captions@lu",group:"text",prefix:"."},{key:"unordered-list",label:"Bullet list",icon:"list@lu",group:"lists",prefix:"- ",keywords:["bullet","ul"]},{key:"ordered-list",label:"Numbered list",icon:"list-ordered@lu",group:"lists",prefix:"1. ",keywords:["ol"]},{key:"checkboxes",label:"Checklist",icon:"list-todo@lu",group:"lists",prefix:"- [ ] ",keywords:["task","todo"]},{key:"definition-list",label:"Definition list",icon:"book-a@lu",group:"lists",prefix:"Term:: Definition"},{key:"admonition",label:"Note",icon:"info@lu",group:"admonitions",prefix:"NOTE: "},{key:"tip",label:"Tip",icon:"lightbulb@lu",group:"admonitions",prefix:"TIP: "},{key:"warning",label:"Warning",icon:"triangle-alert@lu",group:"admonitions",prefix:"WARNING: "},{key:"important",label:"Important",icon:"circle-alert@lu",group:"admonitions",prefix:"IMPORTANT: "},{key:"caution",label:"Caution",icon:"shield-alert@lu",group:"admonitions",prefix:"CAUTION: "},{key:"danger",label:"Danger",icon:"octagon-alert@lu",group:"admonitions",prefix:"DANGER: "},{key:"success",label:"Success",icon:"circle-check@lu",group:"admonitions",prefix:"SUCCESS: "},{key:"notice",label:"Notice",icon:"megaphone@lu",group:"admonitions",prefix:"NOTICE: "},{key:"code-fence",label:"Code",icon:"code@lu",group:"blocks",prefix:"```\n\n```",caretOffset:4},{key:"blockquotes",label:"Quote",icon:"quote@lu",group:"blocks",prefix:`____
4400
+ `}};Wi.styles=_(ek),c([I()],Wi.prototype,"_isPlaying",2),c([p()],Wi.prototype,"value",2),c([p()],Wi.prototype,"label",2),c([p()],Wi.prototype,"placeholder",2),c([p({type:Object})],Wi.prototype,"files",2);var kq=Wi;Wi.define("zn-audio-select");var tk=yt(class extends rr{constructor(){super(...arguments),this.key=F}render(o,i){return this.key=o,i}update(o,[i,t]){return i!==this.key&&(ss(o),this.key=i),t}});var zg=[{id:"text",label:"Text"},{id:"inline",label:"Inline"},{id:"lists",label:"Lists"},{id:"admonitions",label:"Alerts"},{id:"blocks",label:"Blocks"},{id:"structured",label:"Structured"},{id:"media",label:"Media"},{id:"objects",label:"Objects"},{id:"breaks",label:"Breaks"},{id:"logic",label:"Logic"}],Ih=[{key:"text",label:"Text",icon:"text@lu",group:"text",prefix:""},{key:"paragraphs",label:"Paragraph",icon:"pilcrow@lu",group:"text",prefix:""},{key:"heading",label:"Heading 1",icon:"heading-1@lu",group:"text",prefix:"# "},{key:"h2",label:"Heading 2",icon:"heading-2@lu",group:"text",prefix:"## "},{key:"h3",label:"Heading 3",icon:"heading-3@lu",group:"text",prefix:"### "},{key:"asciidoc-section",label:"Section",icon:"section@lu",group:"text",prefix:"== "},{key:"attributes-title",label:"Title",icon:"captions@lu",group:"text",prefix:"."},{key:"unordered-list",label:"Bullet list",icon:"list@lu",group:"lists",prefix:"- ",keywords:["bullet","ul"]},{key:"ordered-list",label:"Numbered list",icon:"list-ordered@lu",group:"lists",prefix:"1. ",keywords:["ol"]},{key:"checkboxes",label:"Checklist",icon:"list-todo@lu",group:"lists",prefix:"- [ ] ",keywords:["task","todo"]},{key:"definition-list",label:"Definition list",icon:"book-a@lu",group:"lists",prefix:"Term:: Definition"},{key:"admonition",label:"Note",icon:"info@lu",group:"admonitions",prefix:"NOTE: "},{key:"tip",label:"Tip",icon:"lightbulb@lu",group:"admonitions",prefix:"TIP: "},{key:"warning",label:"Warning",icon:"triangle-alert@lu",group:"admonitions",prefix:"WARNING: "},{key:"important",label:"Important",icon:"circle-alert@lu",group:"admonitions",prefix:"IMPORTANT: "},{key:"caution",label:"Caution",icon:"shield-alert@lu",group:"admonitions",prefix:"CAUTION: "},{key:"danger",label:"Danger",icon:"octagon-alert@lu",group:"admonitions",prefix:"DANGER: "},{key:"success",label:"Success",icon:"circle-check@lu",group:"admonitions",prefix:"SUCCESS: "},{key:"notice",label:"Notice",icon:"megaphone@lu",group:"admonitions",prefix:"NOTICE: "},{key:"code-fence",label:"Code",icon:"code@lu",group:"blocks",prefix:"```\n\n```",caretOffset:4},{key:"blockquotes",label:"Quote",icon:"quote@lu",group:"blocks",prefix:`____
4403
4401
 
4404
4402
  ____`,caretOffset:5},{key:"verse",label:"Verse",icon:"feather@lu",group:"blocks",prefix:`[verse]
4405
4403
  ____
@@ -4477,7 +4475,7 @@ ${this.parseList(r)}`}let a=t.ordered?"ol":"ul";return`<${a}>${n.join(`</li>
4477
4475
  `)}</div></div>`}inline(i){let t=i,r=[],n=a=>{let s=`RMDPASS${r.length}`;return r.push(a),s};return t=t.replace(/\bpass:\[([^\]]*)]/gs,(a,s)=>n(s)).replace(/\+\+\+(.+?)\+\+\+/gs,(a,s)=>n(s)),t=t.replace(/{{([^}: ]+)(?::([^ }]+))?([^}]*)}}/g,(a,s,l="",d="")=>this.renderObject(s,l,cl(d))),t=t.replace(/"`([^`]+)`"/g,"&ldquo;$1&rdquo;"),t=t.replace(/``([^`]+)``/g,(a,s)=>`<span class="monospace">${Yc(s)}</span>`),t=t.replace(/`([^`\n]+)`/g,(a,s)=>`<span class="monospace">${Yc(s)}</span>`),t=t.replace(/___(.+?)___/g,"<u>$1</u>"),t=t.replace(/\(c\)|\(C\)/g,"\xA9").replace(/\(r\)|\(R\)/g,"\xAE").replace(/\(tm\)|\(TM\)/g,"\u2122").replace(/\(p\)|\(P\)/g,"\xA7").replace(/\(\+-\)/g,"\xB1").replace(/-\.-/g,"&#8226;"),t=t.replace(/:(\S+):/g,(a,s)=>Wq[s.replaceAll("-","_")]||a),t=t.replace(/kbd:\[([^\]]+)]/g,"<kbd>$1</kbd>"),t=t.replace(/[^#&]#([^#]+)#/g,'<mark class="highlight">$1</mark>'),t=t.replace(/{(.*?)}\((.*?)\)/g,'<span class="tooltip" title="$2">$1</span>'),t=t.replace(/!\[([^\]]*)]\((.*?)\s*"([^"]+)"\s*\)/g,(a,s,l,d)=>`<img src="${n(l)}" alt="${n(s)}" title="${n(d)}"/>`),t=t.replace(/!\[([^\]]*)]\(([^)]*)\)/g,(a,s,l)=>s?`<img src="${n(l)}" alt="${n(s)}"/>`:`<img src="${n(l)}"/>`),t=t.replace(/image::([^\[]+)\[([^\]]*)]/g,(a,s,l)=>{let[d,h,m]=l.split(",").map(f=>f.trim());return`<img class="block" src="${n(s)}"${d?` alt="${n(d)}"`:""}${h?` width="${h}"`:""}${m?` height="${m}"`:""}/>`}),t=t.replace(/\[([^\]]*)]\(([^)]*)\)/g,(a,s,l)=>`<a href="${n(l)}">${s}</a>`),t=t.replace(/([^="(])((?:http|ftp|https|mailto):\/\/[\w_-]+(?:(?:\.[\w_-]+)+)[\w.,@?^=%&:/~+#-]*[\w@?^=%&/~+#-])(?:\[([^\]\n]+)])?/g,(a,s,l,d)=>`${s}<a href="${n(l)}">${d||n(l)}</a>`),t=t.replace(/<<([\w\-_]+)(,([^>]+))?>>/g,(a,s,l,d)=>`<a href="#${s.replace(/^_/,"").replace(/_/g,"-")}">${d||Wc(s)}</a>`),t=t.replace(/footnote:\[([^\]]+)]/g,'<sup class="footnote">$1</sup>'),t=t.replace(/\*\*([^*]+?)\*\*/g,"<strong>$1</strong>"),t=t.replace(/__([^_]+?)__/g,"<em>$1</em>"),t=t.replace(/([^\\w])\*([^*]+)\*/g,"$1<strong>$2</strong>"),t=t.replace(/(\s|^)_([^_]+)_/g,"$1<em>$2</em>"),t=t.replace(/~~(.+?)~~/g,"<del>$1</del>"),t=t.replace(/~([^~]+?)~/g,"<sub>$1</sub>"),t=t.replace(/\^([^^]+?)\^/g,"<sup>$1</sup>"),t=t.replace(/\[( |x|_|\*)]/g,(a,s)=>s===" "?'<input type="checkbox" readonly="readonly">':s==="x"?'<input type="checkbox" readonly="readonly" checked>':s==="_"?'<input type="checkbox">':'<input type="checkbox" checked>'),t=t.replace(/(\[[^\]]+])##([^#]+)##/g,(a,s,l)=>`<span class="${cl(s).pos[0]}">${l}</span>`),t=t.replace(/<(\d+|\d+\.\d+)>/g,'<i class="conum" data-value="$1"></i>'),r.reduce((a,s,l)=>a.replaceAll(`RMDPASS${l}`,s),t)}renderObject(i,t,r){switch(i){case"link":{let n=r.named.text||Wc(t),a=r.named.target?` target="${r.named.target}"`:"",s=r.named.hreflang?` hreflang="${r.named.hreflang}"`:"";return`<a href="${r.named.href||t}"${a}${s}>${n}</a>`}case"button":{let n=r.named.text||Wc(t),a=r.named.color||"gray",s=r.named.target?` target="${r.named.target}"`:"";return`<a href="${r.named.href||`#${t}`}" class="btn btn--${a}"${s}>${n}</a>`}case"br":return"<br>";case"anchor":return r.named.name?`<a name="${r.named.name}"></a>`:"[ANCHOR MISSING NAME]";case"meter":{let n=r.named.id||"remarkd-meter-150";return`${r.named.label?`<label for="${n}" class="remarkd-meter-label">${r.named.label}</label>`:""}<meter id="${n}" class="remarkd-meter" min="${r.named.min||"0"}" max="${r.named.max||"100"}" value="${r.named.value||"0"}"">${r.named.text||""}</meter>`}case"video":{let n=r.named.aspect==="4:3"?"75":r.named.aspect==="1:1"?"100":r.named.aspect==="3:2"?"66.66":r.named.aspect==="8:5"?"62.5":"56.25";if(r.named.source==="self")return`<div class="video-container" style="padding-top: ${n}%"><video controls><source src="${t}" type="${r.named.type||"video/mp4"}"></video></div>`;let a=["rel=0"];return r.named.end&&a.unshift(`end=${r.named.end}`),r.named.start&&a.unshift(`start=${r.named.start}`),`<div class="video-container" style="padding-top: ${n}%"><iframe src="https://www.youtube.com/embed/${t}?${a.join(";")}" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe></div>`}case"ref":{let n={num:this.references.length+1,code:r.named.code||`${this.references.length+1}RM`,content:r.named.content||""};return this.references.push(n),`<sup class="reference"><a id="rmdref-bdy-${n.code}" href="#rmdref-ft-${n.code}">[${n.num}]</a></sup>`}case"reflist":return this.references.length?`<ol class="reference">${this.references.map(n=>`<li id="rmdref-ft-${n.code}"><a href="#rmdref-bdy-${n.code}" class="reference-tobody">^</a> ${this.inline(n.content)}</li>`).join("")}</ol>`:"";case"img":{let n=`display: ${r.named.display||"inline-block"};max-width: ${r.named["max-width"]||"100%"};`;r.named.float&&(n+=`float: ${r.named.float};`);let a=r.pos.filter(s=>s.startsWith(".")).map(s=>s.slice(1));return`<img src="${r.named.src||""}"${r.named.alt?` alt="${r.named.alt}"`:""} style="${n}"${a.length?` class="${a.join(" ")}"`:""} />`}default:return""}}replaceAttrs(i){for(let[t,r]of Object.entries(this.attrs))i=i.replaceAll(`{${t}}`,String(r));return i}addDocumentAttr(i){let t=i.match(/^:(!?[\w.-]+)(!)?:(.*)?$/);t&&(this.attrs[t[1]]=t[3]?.trim()||!t[2])}parseConditional(i){let t=i.match(/^(end)?if(def|ndef|eval|nempty|empty|true|false)?::([^\[]*)\[([^]*)]$/);if(!t)return{handled:!1};if(this.index++,t[1]==="end")return this.conditions.pop(),{handled:!0};let n=!this.conditions.includes(!1)&&this.validateCondition(t[2]||"def",t[3],t[4]);return t[2]!=="eval"&&t[4]?{handled:!0,inline:n?t[4]:void 0}:(this.conditions.push(n),{handled:!0})}validateCondition(i,t,r){return i==="eval"?Qq(r):t.split(",").some(a=>a.split("+").every(s=>{let l=this.attrs[s];return i==="def"?l!==void 0:i==="ndef"?l===void 0:i==="true"?l===!0||l==="true"||l==="1":i==="false"?l===!1||l==="false"||l==="0":i==="empty"?l===void 0||l==="":i==="nempty"?l!==void 0&&l!=="":!1}))}isBlockStart(i){return i==="```"||i==="____"||i==="|==="||/^[-=*.!]{4,10}$/.test(i)||/^#{1,6} /.test(i)||/^={2,6} /.test(i)||i.trim()==="<<<"||/^((\d*\.)+) /.test(i)||/^((\*|-){1,10}) /.test(i)||/^(end)?if(def|ndef|eval|nempty|empty|true|false)?::/.test(i)||/^!![\w-]+!!$/.test(i)||/^include::[^\[]+\[.*]\s*$/.test(i)||i.startsWith("_|_#")||i.startsWith("_-_#")||i.startsWith("_|- ")||/^[^:]+:: .+/.test(i)||/^(SUCCESS|WARNING|CAUTION|NOTE|NOTICE|IMPORTANT|DANGER|TIP)([:|)])/.test(i)||/^<(\d+|\d+\.\d+|\w|[^>])> /.test(i)||/^-{3}$/.test(i.trim())}};function vk(o){let i=[];for(let t of o.replace(/\r\n?/g,`
4478
4476
  `).replace(/\n$/,"").split(`
4479
4477
  `)){let r=t.replace(/{!(.*)!}/g,"$1");i.length&&i[i.length-1].endsWith("\\")?i[i.length-1]=i[i.length-1].replace(/[\\ ]+$/,"")+`
4480
- `+r:i.push(r)}return i}function qg(o,i){let t=new gk(o,!1,i.options);return t.attrs=i.attrs,t.parse().replace(/^<div class="remarkd-section section--level0 section--with-content">/,"").replace(/<\/div>$/,"")}function yk(o,i,t=0){if(t>10)return o;let r=[];for(let n of o){let a=n.match(/^t::partial::(.*)$/);if(!a){r.push(n);continue}let[s,l]=Vq(a[1]??""),d=xk(i,s);if(d===null){r.push(`File not found: ${s}`);continue}let h=vk(d);for(Uq(l,"strip-title")&&(h[0]??"").startsWith("=")&&(h=h.slice(1));h.length&&h[h.length-1].trim()==="";)h.pop();let m=Number.parseInt(l["drop-last"]??"0",10);m>0&&h.splice(-m),r.push(...yk(h,i,t+1))}return r}function Vq(o){let i=o.trim(),t={},r=i.match(/^(.*?)\[([^\]]*)]$/);if(r){i=r[1].trim();for(let n of r[2].split(",")){let a=n.trim();if(!a)continue;let s=a.indexOf("=");s===-1?t[a]="true":t[a.slice(0,s).trim()]=a.slice(s+1).trim().replace(/^["']|["']$/g,"")}}return[i,t]}function Uq(o,i){return i in o?!["0","false","no"].includes(o[i].toLowerCase()):!1}function xk(o,i){if(o.partials&&Object.prototype.hasOwnProperty.call(o.partials,i))return o.partials[i];let t=globalThis.process,r=t?.getBuiltinModule?.("node:fs");if(!r?.existsSync||!r?.readFileSync)return null;let n=jq(o.projectRoot||t?.cwd?.()||"",i);return r.existsSync(n)?r.readFileSync(n,"utf8"):null}function jq(o,i){return/^(\/|[A-Za-z]:[\\/])/.test(i)||!o?i:`${o.replace(/[\\/]+$/,"")}/${i.replace(/^[\\/]+/,"")}`}function cl(o){let i=o.trim().replace(/^\[/,"").replace(/]$/,""),t=[],r={},n=/(^|[\s,]+)([^, =}]+)(=(("([^"]*)")|([^\s,}]*)))?/g,a;for(;a=n.exec(i);){let s=a[2],l=a[6]||a[7]||"";t.push(s),r[s]=l}return{raw:i,pos:t,named:r}}function Gq(o){return!!o&&(o.pos[0]==="pros-cons"||o.pos[0]==="proscons"||"pros-cons"in o.named||"proscons"in o.named)}function Ga(o,i,t){return!o||!(i in o.named)?t:!["0","false","no","off"].includes((o.named[i]||"").toLowerCase())}function Kq(o,i){let t=i===0?o?.named["con-icon"]||"\u274C":o?.named["pro-icon"]||"\u2705";return`<span class="pros-cons-icon">${Yc(t)}</span>`}var Wq={"+1":"\u{1F44D}",thumbsup:"\u{1F44D}","-1":"\u{1F44E}",thumbsdown:"\u{1F44E}",eyes:"\u{1F440}",grinning:"\u{1F600}",grin:"\u{1F601}",joy:"\u{1F602}",smiley:"\u{1F603}",smile:"\u{1F604}",sweat_smile:"\u{1F605}",satisfied:"\u{1F606}",laughing:"\u{1F606}",innocent:"\u{1F607}",smiling_imp:"\u{1F608}",wink:"\u{1F609}",blush:"\u{1F60A}",yum:"\u{1F60B}",relieved:"\u{1F60C}",heart_eyes:"\u{1F60D}",sunglasses:"\u{1F60E}",smirk:"\u{1F60F}",neutral_face:"\u{1F610}",expressionless:"\u{1F611}",unamused:"\u{1F612}",sweat:"\u{1F613}",pensive:"\u{1F614}",confused:"\u{1F615}",confounded:"\u{1F616}",kissing:"\u{1F617}",kissing_heart:"\u{1F618}",kissing_smiling_eyes:"\u{1F619}",kissing_closed_eyes:"\u{1F61A}",stuck_out_tongue:"\u{1F61B}",stuck_out_tongue_winking_eye:"\u{1F61C}",stuck_out_tongue_closed_eyes:"\u{1F61D}",disappointed:"\u{1F61E}",worried:"\u{1F61F}",angry:"\u{1F620}",rage:"\u{1F621}",cry:"\u{1F622}",persevere:"\u{1F623}",triumph:"\u{1F624}",disappointed_relieved:"\u{1F625}",frowning:"\u{1F626}",anguished:"\u{1F627}",fearful:"\u{1F628}",weary:"\u{1F629}",sleepy:"\u{1F62A}",tired_face:"\u{1F62B}"};function Wc(o){return o.replace(/[-_]+/g," ").replace(/\b\w/g,i=>i.toUpperCase())}function Yq(o){return o.trim().toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-|-$/g,"")}function Qq(o){let i=o.trim().match(/^(.+?)\s*(===|==|!=|<=|<|>=|>|in|nin)\s*(.+)$/);if(!i)return!1;let t=i[1].trim(),r=i[2],n=i[3].trim();switch(r){case"===":return t===n;case"==":return t==n;case"!=":return t!=n;case"<=":return t<=n;case"<":return t<n;case">=":return t>=n;case">":return t>n;case"in":return n.split(",").map(a=>a.trim()).includes(t);case"nin":return!n.split(",").map(a=>a.trim()).includes(t);default:return!1}}function Yc(o){return o.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")}var Oh=class{constructor(i,t){this.visibleCount=1/0;this.resizeRafId=0;this.host=i,this.options=t,i.addController(this),new ut(i,{callback:()=>{this.resizeRafId||(this.resizeRafId=requestAnimationFrame(()=>{this.resizeRafId=0,this.measure()}))}})}hostUpdated(){this.measure()}measure(){let i=this.options.groups(),t=this.options.container();if(!i.length||!t)return;let r=getComputedStyle(t),n=parseFloat(r.paddingLeft)+parseFloat(r.paddingRight),a=[...t.children].filter(m=>!m.classList.contains("toolbar__group")).reduce((m,f)=>m+f.getBoundingClientRect().width,0),s=t.clientWidth-n-a;if(s<=0)return;i.forEach(m=>m.style.display="");let l=i.map(m=>m.getBoundingClientRect().width),h=l.reduce((m,f)=>m+f,0)<=s?i.length:this.countThatFit(l,s-(this.options.reserve??44));i.forEach((m,f)=>m.style.display=f<h?"":"none"),h!==this.visibleCount&&(this.visibleCount=h,this.host.requestUpdate())}countThatFit(i,t){let r=0,n=0;for(let a of i){if(r+a>t)break;r+=a,n++}return n}};var wk=k`@charset "UTF-8";@keyframes rotate-gradient{from{--rotate:0deg}to{--rotate:360deg}}:host{text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-transform:none}*,*::before,*::after{box-sizing:border-box;border-width:0;border-style:solid;border-color:rgb(var(--zn-border-color))}[hidden]{display:none !important}.width-container,.form-container,.wide-form-container{height:100%;width:100%;margin:var(--zn-default-margin,0 auto)}.width-container{max-width:var(--zn-container)}.form-container{max-width:var(--zn-container-ph)}.wide-form-container{max-width:var(--zn-container-lg)}.remarkd-rendered{--rmd-accent:#2367c8;--rmd-border:#d9dee7;--rmd-muted:#5f6d80;--rmd-soft:#eef5ff;--rmd-code-bg:#0f1626;--rmd-code-text:#f5f8ff;color:#18202f;font:15px/1.55 -apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif;word-wrap:break-word}.remarkd-rendered>.remarkd-section>:first-child,.remarkd-rendered>:first-child{margin-top:0}.remarkd-rendered p{margin:0 0 12px}.remarkd-rendered h1,.remarkd-rendered h2,.remarkd-rendered h3,.remarkd-rendered h4{line-height:1.2;margin:18px 0 10px}.remarkd-rendered h1{font-size:26px}.remarkd-rendered h2{font-size:21px}.remarkd-rendered h3{font-size:17px}.remarkd-rendered a{color:var(--rmd-accent)}.remarkd-rendered .btn{align-items:center;background:#f4f6f8;border:1px solid #cfd6df;border-radius:6px;color:#263241;cursor:pointer;display:inline-flex;font-weight:600;gap:6px;justify-content:center;line-height:1.2;margin:2px 4px 2px 0;min-height:36px;padding:8px 14px;text-align:center;text-decoration:none;transition:background-color 160ms ease,border-color 160ms ease,box-shadow 160ms ease,color 160ms ease;vertical-align:middle}.remarkd-rendered .btn:hover,.remarkd-rendered .btn:focus{background:#e9edf2;border-color:#b9c3cf;color:#182230;text-decoration:none}.remarkd-rendered .btn:focus{box-shadow:0 0 0 3px rgba(35,103,200,0.22);outline:none}.remarkd-rendered .btn--primary{background:#2367c8;border-color:#2367c8;color:#fff}.remarkd-rendered .btn--primary:hover,.remarkd-rendered .btn--primary:focus{background:#1d58ad;border-color:#1d58ad;color:#fff}.remarkd-rendered .btn--secondary{background:#263241;border-color:#263241;color:#fff}.remarkd-rendered .btn--secondary:hover,.remarkd-rendered .btn--secondary:focus{background:#1a2430;border-color:#1a2430;color:#fff}.remarkd-rendered .btn--success{background:#177245;border-color:#177245;color:#fff}.remarkd-rendered .btn--success:hover,.remarkd-rendered .btn--success:focus{background:#105d37;border-color:#105d37;color:#fff}.remarkd-rendered .btn--danger{background:#b42318;border-color:#b42318;color:#fff}.remarkd-rendered .btn--danger:hover,.remarkd-rendered .btn--danger:focus{background:#971b12;border-color:#971b12;color:#fff}.remarkd-rendered .monospace,.remarkd-rendered kbd{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:0.9em}.remarkd-rendered .monospace{background:#eef2f7;border-radius:4px;padding:1px 5px}.remarkd-rendered kbd{background:#f6f8fb;border:1px solid var(--rmd-border);border-bottom-width:2px;border-radius:5px;padding:1px 6px}.remarkd-rendered mark.highlight{background:#fff3bf;border-radius:3px;padding:0 3px}.remarkd-rendered .tooltip{border-bottom:1px dotted var(--rmd-muted);cursor:help}.remarkd-rendered sup.footnote,.remarkd-rendered sup.reference{color:var(--rmd-accent);font-size:0.75em}.remarkd-rendered ul,.remarkd-rendered ol{margin:0 0 12px;padding-left:24px}.remarkd-rendered li>p{margin:0 0 4px}.remarkd-rendered ol:not(.reference){counter-reset:remarkd-item}.remarkd-rendered ol:not(.reference)>li{counter-increment:remarkd-item}.remarkd-rendered ol:not(.reference)>li::marker{content:counters(remarkd-item,".") ". "}.remarkd-rendered input[type=checkbox]{margin-right:4px;vertical-align:middle}.remarkd-rendered dl{margin:0 0 12px}.remarkd-rendered dt{font-weight:700}.remarkd-rendered dd{margin:0 0 8px 18px;color:var(--rmd-muted)}.remarkd-rendered blockquote{margin:0 0 12px;padding:4px 16px;border-left:4px solid var(--rmd-border);color:var(--rmd-muted)}.remarkd-rendered .hint-note{margin:0 0 12px;padding:12px 14px;border-left:4px solid var(--rmd-accent);background:var(--rmd-soft);border-radius:0 6px 6px 0}.remarkd-rendered .hint-caption{color:var(--rmd-accent)}.remarkd-rendered .hint-tip,.remarkd-rendered .hint-warning,.remarkd-rendered .hint-important,.remarkd-rendered .hint-caution,.remarkd-rendered .hint-danger,.remarkd-rendered .hint-success,.remarkd-rendered .hint-notice{margin:0 0 12px;padding:12px 14px;border-left:4px solid var(--rmd-accent);background:#f6f8fb;border-radius:0 6px 6px 0}.remarkd-rendered .hint-tip,.remarkd-rendered .hint-success{border-left-color:#1f9d57;background:#eafaf1}.remarkd-rendered .hint-tip .hint-caption,.remarkd-rendered .hint-success .hint-caption{color:#1f7a47}.remarkd-rendered .hint-warning,.remarkd-rendered .hint-caution{border-left-color:#b7791f;background:#fdf6e3}.remarkd-rendered .hint-warning .hint-caption,.remarkd-rendered .hint-caution .hint-caption{color:#8a5a07}.remarkd-rendered .hint-danger{border-left-color:#c0392b;background:#fdecea}.remarkd-rendered .hint-danger .hint-caption{color:#a02b1f}.remarkd-rendered .verse-block{margin:0 0 12px;padding:12px 14px;background:#f6f8fb;border-radius:6px;font-family:inherit;white-space:pre-wrap}.remarkd-rendered code{display:block;margin:0 0 12px;padding:14px 16px;border-radius:8px;background:var(--rmd-code-bg);color:var(--rmd-code-text);font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:13px;line-height:1.5;white-space:pre;overflow-x:auto}.remarkd-rendered .listing-block{margin:0 0 12px;border:1px solid var(--rmd-border);border-radius:8px;overflow:hidden}.remarkd-rendered .listing-block .content{padding:14px 16px;background:#f6f8fb;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:13px;white-space:pre-wrap}.remarkd-rendered .callout{list-style:none;margin:0 0 6px;padding-left:28px;position:relative;color:var(--rmd-muted)}.remarkd-rendered .callout::before{content:attr(data-marker);position:absolute;left:0;top:0;display:inline-flex;align-items:center;justify-content:center;width:20px;height:20px;border-radius:50%;background:var(--rmd-accent);color:#fff;font-size:12px;font-weight:700}.remarkd-rendered .example-block,.remarkd-rendered .sidebar-block{margin:0 0 12px;border:1px solid var(--rmd-border);border-radius:8px}.remarkd-rendered .example-block .content,.remarkd-rendered .sidebar-block .content{padding:14px 16px}.remarkd-rendered .sidebar-block{background:#f6f8fb}.remarkd-rendered .title{display:block;font-weight:700;color:var(--rmd-muted);margin-bottom:6px}.remarkd-rendered .accordion-container{margin:0 0 12px;border:1px solid var(--rmd-border);border-radius:8px;overflow:hidden}.remarkd-rendered button.accordion{display:block;width:100%;text-align:left;padding:11px 14px;border:0;border-top:1px solid var(--rmd-border);background:#f6f8fb;font:inherit;font-weight:650;cursor:pointer}.remarkd-rendered button.accordion:first-child{border-top:0}.remarkd-rendered .accordion-container .panel{padding:12px 14px}.remarkd-rendered .tab-group{margin:0 0 12px;border:1px solid var(--rmd-border);border-radius:8px;overflow:hidden}.remarkd-rendered .tab-header{display:flex;flex-wrap:wrap;gap:4px;margin:0;padding:6px 6px 0;list-style:none;background:#f6f8fb;border-bottom:1px solid var(--rmd-border)}.remarkd-rendered .tab-header a{display:block;padding:7px 12px;border-radius:6px 6px 0 0;text-decoration:none;color:var(--rmd-muted);font-weight:650}.remarkd-rendered .tab-header a.active{background:#fff;color:var(--rmd-accent)}.remarkd-rendered .tabs .tab{padding:14px}.remarkd-rendered .tabs .tab+.tab{border-top:1px dashed var(--rmd-border)}.remarkd-rendered .steps-container{margin:0 0 12px;counter-reset:rmd-step}.remarkd-rendered .step{display:flex;gap:14px;padding:12px 0;border-top:1px solid var(--rmd-border)}.remarkd-rendered .step:first-child{border-top:0}.remarkd-rendered .step-content{flex:1}.remarkd-rendered .step-content h3{margin:0 0 6px;counter-increment:rmd-step}.remarkd-rendered .step-content h3::before{content:counter(rmd-step) ". ";color:var(--rmd-accent)}.remarkd-rendered .step-image img{max-width:120px;border-radius:6px}.remarkd-rendered .table-block{margin:0 0 12px}.remarkd-rendered .remarkd-table{border-collapse:collapse;width:100%}.remarkd-rendered .remarkd-table th,.remarkd-rendered .remarkd-table td{border:1px solid var(--rmd-border);padding:8px 10px;text-align:left}.remarkd-rendered .remarkd-table th{background:#eef2f7}.remarkd-rendered .remarkd-table--striped tbody tr:nth-child(even) td{background:#f8fafc}.remarkd-rendered .pros-cons-table th{background:#2367a6;color:#fff;font-size:1rem}.remarkd-rendered .pros-cons-table{table-layout:fixed}.remarkd-rendered .pros-cons-table .pros-cons-cell{width:50%}.remarkd-rendered .pros-cons-table--background .pros-cons-cell--con{background:#fae9e7}.remarkd-rendered .pros-cons-table--background .pros-cons-cell--pro{background:#e8f4ec}.remarkd-rendered .pros-cons-table--background.remarkd-table--striped tbody tr:nth-child(even) .pros-cons-cell--con{background:#f5d8d5}.remarkd-rendered .pros-cons-table--background.remarkd-table--striped tbody tr:nth-child(even) .pros-cons-cell--pro{background:#d4eadb}.remarkd-rendered .pros-cons-table--text-color .pros-cons-cell--con{color:#a62b25}.remarkd-rendered .pros-cons-table--text-color .pros-cons-cell--pro{color:#155d30}.remarkd-rendered .pros-cons-table .pros-cons-icon{display:inline-block;margin-right:8px}.remarkd-rendered img{max-width:100%}.remarkd-rendered img.block{display:block;margin:0 0 12px}.remarkd-rendered .align-center{text-align:center}.remarkd-rendered .align-right{text-align:right}.remarkd-rendered .align-center img.block{margin-left:auto;margin-right:auto}.remarkd-rendered .align-right img.block{margin-left:auto}.remarkd-rendered .video-container{position:relative;width:100%;margin:0 0 12px;background:#000;border-radius:8px;overflow:hidden}.remarkd-rendered .video-container iframe,.remarkd-rendered .video-container video{position:absolute;inset:0;width:100%;height:100%;border:0}.remarkd-rendered ol.reference{font-size:0.9em;color:var(--rmd-muted)}.remarkd-rendered .reference-tobody{text-decoration:none;margin-right:4px}.remarkd-rendered .remarkd-meter-label{display:block;font-size:0.85em;color:var(--rmd-muted)}.remarkd-rendered .remarkd-meter{width:180px;max-width:100%}.remarkd-rendered hr{border:0;border-top:1px solid var(--rmd-border);margin:18px 0}:host{display:block;overflow:hidden}.remarkd-editor{position:relative;display:flex;flex-direction:column;max-height:var(--remarkd-editor-max-height,100dvh);border:1px solid rgb(var(--zn-border-color));border-radius:var(--zn-border-radius);background-color:rgba(var(--zn-panel),var(--zn-panel-opacity))}.remarkd-editor__toolbar{display:flex;flex:none;gap:2px;flex-wrap:nowrap;padding:var(--zn-spacing-x-small);border-bottom:1px solid rgb(var(--zn-border-color))}.toolbar__group{display:flex;flex-shrink:0;gap:2px;align-items:center}.toolbar__group+.toolbar__group::before{content:"";align-self:stretch;margin-inline:4px;border-left:1px solid rgb(var(--zn-border-color))}.remarkd-editor__toolbar-more zn-menu{--zn-menu-max-height:var(--auto-size-available-height,60dvh)}.remarkd-editor__body{padding:var(--zn-spacing-large) var(--zn-spacing-large) var(--zn-spacing-large) 52px;min-height:var(--remarkd-editor-min-height,10rem);overflow-y:auto}.remarkd-editor__body--raw{display:flex;padding-left:var(--zn-spacing-large)}.remarkd-editor__raw-toggle{margin-left:auto}.remarkd-editor__raw{flex:1;min-height:var(--remarkd-editor-min-height,10rem);resize:vertical;border:0;background:transparent;color:inherit;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:0.875rem;line-height:1.5;padding:0;outline:none}.remarkd-editor--disabled{opacity:0.6;pointer-events:none}.remarkd-editor__block{position:relative;border-radius:var(--zn-border-radius)}.remarkd-editor__actions{position:absolute;left:-40px;top:4px;display:flex;flex-direction:column;align-items:center;gap:2px;opacity:0;transition:opacity 0.15s ease}.remarkd-editor__block:hover .remarkd-editor__actions,.remarkd-editor__actions:focus-within{opacity:1}.remarkd-editor__delete{position:absolute;top:2px;right:2px;z-index:5;opacity:0;transition:opacity 0.15s ease}.remarkd-editor__block:hover .remarkd-editor__delete,.remarkd-editor__delete:focus-within{opacity:1}.remarkd-editor__drag-handle{display:inline-flex;align-items:center;padding:2px;color:var(--zn-color-neutral-400,#9aa4b2);cursor:grab;touch-action:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.remarkd-editor__drag-handle:active{cursor:grabbing}.remarkd-editor__ghost{position:fixed;top:0;left:0;z-index:20;pointer-events:none;opacity:0.9;background:var(--zn-color-neutral-0,white);border-radius:var(--zn-border-radius);box-shadow:0 8px 24px rgba(0,0,0,0.15);max-width:50%;max-height:160px;overflow:hidden}.remarkd-editor__block--dragging{opacity:0.4}.remarkd-editor__block--drop-before::before,.remarkd-editor__block--drop-after::after{content:"";position:absolute;left:0;right:0;height:6px;border-radius:3px;background:rgba(var(--zn-primary),0.6);pointer-events:none}.remarkd-editor__block--drop-before::before{top:-4px}.remarkd-editor__block--drop-after::after{bottom:-4px}.remarkd-editor__rendered{padding:var(--zn-spacing-x-small);border-radius:var(--zn-border-radius);cursor:text}.remarkd-editor__rendered:hover{background:var(--zn-color-neutral-100)}.remarkd-editor__edit-shell{border:1px solid rgb(var(--zn-border-color));border-radius:var(--zn-border-radius);background:var(--zn-color-neutral-0,white);padding:var(--zn-spacing-x-small)}.remarkd-editor__edit-shell:focus-within{border-top-color:rgb(var(--zn-primary));border-right-color:rgb(var(--zn-primary));border-bottom-color:rgb(var(--zn-primary))}.remarkd-editor__edit-shell:not([class*=hint-]):focus-within{border-left-color:rgb(var(--zn-primary))}.remarkd-editor__input{display:block;width:100%;resize:none;overflow:hidden;border:0;background:transparent;color:inherit;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:0.875rem;line-height:1.5;padding:0;outline:none}.remarkd-editor__edit-shell[class*=hint-] .remarkd-editor__input{font:inherit}.remarkd-editor__edit-shell--h1 .remarkd-editor__input,.remarkd-editor__edit-shell--h2 .remarkd-editor__input,.remarkd-editor__edit-shell--h3 .remarkd-editor__input{font-family:inherit;font-weight:700;line-height:1.2}.remarkd-editor__edit-shell--h1 .remarkd-editor__input{font-size:26px}.remarkd-editor__edit-shell--h2 .remarkd-editor__input{font-size:21px}.remarkd-editor__edit-shell--h3 .remarkd-editor__input{font-size:17px}.remarkd-editor__edit-shell--code{background:var(--rmd-code-bg,#0f1626)}.remarkd-editor__edit-shell--code .remarkd-editor__input{color:var(--rmd-code-text,#f5f8ff)}.remarkd-editor__include{display:flex;align-items:center;gap:var(--zn-spacing-small);padding:var(--zn-spacing-small);border:1px dashed rgb(var(--zn-border-color));border-radius:var(--zn-border-radius);background:var(--zn-color-neutral-0,white)}.remarkd-editor__include-title{font-weight:600}.remarkd-editor__include-meta{color:var(--zn-color-neutral-400,#9aa4b2);font-size:var(--zn-font-size-small)}.remarkd-editor__include--missing{border-style:solid;border-color:rgb(var(--zn-color-error))}.remarkd-editor__include-scope{color:var(--zn-color-neutral-400,#9aa4b2);font-size:var(--zn-font-size-small)}.remarkd-editor__include-link{margin-left:auto;font-size:var(--zn-font-size-small)}.remarkd-editor__conditional{border-left:3px solid rgba(var(--zn-primary),0.5);padding-left:var(--zn-spacing-small)}.remarkd-editor__conditional-label{display:inline-flex;align-items:center;gap:4px;margin-bottom:var(--zn-spacing-x-small);color:rgb(var(--zn-primary));font-size:0.75rem;text-transform:uppercase;letter-spacing:0.04em}.remarkd-editor__meta{display:flex;flex-wrap:wrap;gap:var(--zn-spacing-x-small)}.remarkd-editor__variable{display:inline-flex;align-items:center;gap:var(--zn-spacing-x-small);padding:2px var(--zn-spacing-x-small);border:1px dashed rgb(var(--zn-border-color));border-radius:var(--zn-border-radius);font-size:0.875rem}.remarkd-editor__variable-name{font-family:ui-monospace,SFMono-Regular,Menlo,monospace}.remarkd-editor__variable-state{color:rgb(var(--zn-text-body));font-style:italic}.remarkd-editor__var{padding:0 2px;border-radius:3px;background:rgba(var(--zn-primary),0.12);color:rgb(var(--zn-primary));font-family:ui-monospace,SFMono-Regular,Menlo,monospace}.remarkd-editor__include-picker{display:flex;flex-direction:column;gap:var(--zn-spacing-x-small);padding:var(--zn-spacing-small);border:1px solid rgb(var(--zn-border-color));border-radius:var(--zn-border-radius);background:var(--zn-color-neutral-0,white)}.remarkd-editor__include-picker-head{display:flex;align-items:center;gap:var(--zn-spacing-x-small)}.remarkd-editor__include-filter{flex:1 1 auto}.remarkd-editor__include-option{display:flex;justify-content:space-between;gap:var(--zn-spacing-small);padding:var(--zn-spacing-x-small) var(--zn-spacing-small);border:0;border-radius:var(--zn-border-radius);background:none;cursor:pointer;text-align:left}.remarkd-editor__include-option:hover:not(:disabled){background:var(--zn-color-neutral-100)}.remarkd-editor__include-option:disabled{cursor:default;opacity:0.6}.remarkd-editor__include-option-meta,.remarkd-editor__include-picker-empty{color:var(--zn-color-neutral-400,#9aa4b2);font-size:var(--zn-font-size-small)}.remarkd-editor__image-controls{display:flex;flex-direction:column;gap:var(--zn-spacing-small);border:1px solid rgb(var(--zn-primary));border-radius:var(--zn-border-radius);background:var(--zn-color-neutral-0,white);padding:var(--zn-spacing-small)}.remarkd-editor__image-controls-preview{text-align:left}.remarkd-editor__image-controls-preview--center{text-align:center}.remarkd-editor__image-controls-preview--right{text-align:right}.remarkd-editor__image-controls-preview img{max-width:100%;max-height:240px}.remarkd-editor__image-row{display:flex;align-items:flex-end;gap:var(--zn-spacing-small);flex-wrap:wrap}.remarkd-editor__image-field{display:flex;flex-direction:column;gap:2px}.remarkd-editor__image-field span{font-size:var(--zn-input-label-font-size-small);color:var(--zn-input-label-color);font-weight:var(--zn-font-weight-semibold)}.remarkd-editor__image-field input{border:1px solid rgb(var(--zn-border-color));border-radius:var(--zn-border-radius);background:var(--zn-color-neutral-0,white);color:inherit;font:inherit;font-size:0.875rem;padding:4px 8px;outline:none}.remarkd-editor__image-field input:focus{border-color:rgb(var(--zn-primary))}.remarkd-editor__image-field:first-child input{width:100%}.remarkd-editor__image-buttons{display:flex;align-items:center;gap:var(--zn-spacing-x-small)}.remarkd-editor__image-buttons-spacer{margin-left:auto}.remarkd-editor__image-picker{display:flex;align-items:flex-start;gap:var(--zn-spacing-x-small);margin:var(--zn-spacing-x-small) 0}.remarkd-editor__image-picker zn-file{flex:1}.remarkd-editor__add{padding:var(--zn-spacing-x-small);min-height:1.8em;color:var(--zn-color-neutral-400,#9aa4b2);cursor:text}.remarkd-editor__edit-wrap{position:relative}.remarkd-editor__validation{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none;border:0;padding:0}.remarkd-editor__link-picker{display:flex;flex-direction:column;gap:var(--zn-spacing-x-small);margin-top:var(--zn-spacing-x-small);padding:var(--zn-spacing-small);border:1px solid rgb(var(--zn-border-color));border-radius:var(--zn-border-radius);background:var(--zn-color-neutral-0,white)}.remarkd-editor__link-picker-head{display:flex;align-items:center;gap:var(--zn-spacing-x-small)}.remarkd-editor__link-filter{flex:1 1 auto}.remarkd-editor__link-option{display:flex;justify-content:space-between;gap:var(--zn-spacing-small);padding:var(--zn-spacing-x-small) var(--zn-spacing-small);border:0;border-radius:var(--zn-border-radius);background:none;cursor:pointer;text-align:left}.remarkd-editor__link-option:hover{background:var(--zn-color-neutral-100)}.remarkd-editor__link-option-meta,.remarkd-editor__link-picker-empty{color:var(--zn-color-neutral-400,#9aa4b2);font-size:var(--zn-font-size-small)}.remarkd-editor__link--missing{text-decoration-line:underline;text-decoration-style:wavy;text-decoration-color:rgb(var(--zn-color-error))}.remarkd-editor__shortcut{color:rgb(var(--zn-text-muted));font-size:var(--zn-font-size-x-small)}`;var zk=/^include::([^[]+)\[(.*)]\s*$/,Sk="kb:(?:document|category|page)\\/[A-Za-z0-9_-]+",Xq=new RegExp(`^${Sk}$`),Jq=new RegExp(Sk,"g"),Zq=/^:([A-Za-z0-9_-]+)(!)?:\s*(.*)$/,eI=/^\.([^.\s].*)$/,tI=/^\[.+]$/;function rI(o){let i=Zq.exec(o);if(i)return{kind:"attribute",name:i[1],value:i[3],unset:!!i[2]};let t=eI.exec(o);return t?{kind:"title",text:t[1]}:tI.test(o)?{kind:"bracket",text:o}:null}function iI(o){let i=o.split(`
4478
+ `+r:i.push(r)}return i}function qg(o,i){let t=new gk(o,!1,i.options);return t.attrs=i.attrs,t.parse().replace(/^<div class="remarkd-section section--level0 section--with-content">/,"").replace(/<\/div>$/,"")}function yk(o,i,t=0){if(t>10)return o;let r=[];for(let n of o){let a=n.match(/^t::partial::(.*)$/);if(!a){r.push(n);continue}let[s,l]=Vq(a[1]??""),d=xk(i,s);if(d===null){r.push(`File not found: ${s}`);continue}let h=vk(d);for(Uq(l,"strip-title")&&(h[0]??"").startsWith("=")&&(h=h.slice(1));h.length&&h[h.length-1].trim()==="";)h.pop();let m=Number.parseInt(l["drop-last"]??"0",10);m>0&&h.splice(-m),r.push(...yk(h,i,t+1))}return r}function Vq(o){let i=o.trim(),t={},r=i.match(/^(.*?)\[([^\]]*)]$/);if(r){i=r[1].trim();for(let n of r[2].split(",")){let a=n.trim();if(!a)continue;let s=a.indexOf("=");s===-1?t[a]="true":t[a.slice(0,s).trim()]=a.slice(s+1).trim().replace(/^["']|["']$/g,"")}}return[i,t]}function Uq(o,i){return i in o?!["0","false","no"].includes(o[i].toLowerCase()):!1}function xk(o,i){if(o.partials&&Object.prototype.hasOwnProperty.call(o.partials,i))return o.partials[i];let t=globalThis.process,r=t?.getBuiltinModule?.("node:fs");if(!r?.existsSync||!r?.readFileSync)return null;let n=jq(o.projectRoot||t?.cwd?.()||"",i);return r.existsSync(n)?r.readFileSync(n,"utf8"):null}function jq(o,i){return/^(\/|[A-Za-z]:[\\/])/.test(i)||!o?i:`${o.replace(/[\\/]+$/,"")}/${i.replace(/^[\\/]+/,"")}`}function cl(o){let i=o.trim().replace(/^\[/,"").replace(/]$/,""),t=[],r={},n=/(^|[\s,]+)([^, =}]+)(=(("([^"]*)")|([^\s,}]*)))?/g,a;for(;a=n.exec(i);){let s=a[2],l=a[6]||a[7]||"";t.push(s),r[s]=l}return{raw:i,pos:t,named:r}}function Gq(o){return!!o&&(o.pos[0]==="pros-cons"||o.pos[0]==="proscons"||"pros-cons"in o.named||"proscons"in o.named)}function Ga(o,i,t){return!o||!(i in o.named)?t:!["0","false","no","off"].includes((o.named[i]||"").toLowerCase())}function Kq(o,i){let t=i===0?o?.named["con-icon"]||"\u274C":o?.named["pro-icon"]||"\u2705";return`<span class="pros-cons-icon">${Yc(t)}</span>`}var Wq={"+1":"\u{1F44D}",thumbsup:"\u{1F44D}","-1":"\u{1F44E}",thumbsdown:"\u{1F44E}",eyes:"\u{1F440}",grinning:"\u{1F600}",grin:"\u{1F601}",joy:"\u{1F602}",smiley:"\u{1F603}",smile:"\u{1F604}",sweat_smile:"\u{1F605}",satisfied:"\u{1F606}",laughing:"\u{1F606}",innocent:"\u{1F607}",smiling_imp:"\u{1F608}",wink:"\u{1F609}",blush:"\u{1F60A}",yum:"\u{1F60B}",relieved:"\u{1F60C}",heart_eyes:"\u{1F60D}",sunglasses:"\u{1F60E}",smirk:"\u{1F60F}",neutral_face:"\u{1F610}",expressionless:"\u{1F611}",unamused:"\u{1F612}",sweat:"\u{1F613}",pensive:"\u{1F614}",confused:"\u{1F615}",confounded:"\u{1F616}",kissing:"\u{1F617}",kissing_heart:"\u{1F618}",kissing_smiling_eyes:"\u{1F619}",kissing_closed_eyes:"\u{1F61A}",stuck_out_tongue:"\u{1F61B}",stuck_out_tongue_winking_eye:"\u{1F61C}",stuck_out_tongue_closed_eyes:"\u{1F61D}",disappointed:"\u{1F61E}",worried:"\u{1F61F}",angry:"\u{1F620}",rage:"\u{1F621}",cry:"\u{1F622}",persevere:"\u{1F623}",triumph:"\u{1F624}",disappointed_relieved:"\u{1F625}",frowning:"\u{1F626}",anguished:"\u{1F627}",fearful:"\u{1F628}",weary:"\u{1F629}",sleepy:"\u{1F62A}",tired_face:"\u{1F62B}"};function Wc(o){return o.replace(/[-_]+/g," ").replace(/\b\w/g,i=>i.toUpperCase())}function Yq(o){return o.trim().toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-|-$/g,"")}function Qq(o){let i=o.trim().match(/^(.+?)\s*(===|==|!=|<=|<|>=|>|in|nin)\s*(.+)$/);if(!i)return!1;let t=i[1].trim(),r=i[2],n=i[3].trim();switch(r){case"===":return t===n;case"==":return t==n;case"!=":return t!=n;case"<=":return t<=n;case"<":return t<n;case">=":return t>=n;case">":return t>n;case"in":return n.split(",").map(a=>a.trim()).includes(t);case"nin":return!n.split(",").map(a=>a.trim()).includes(t);default:return!1}}function Yc(o){return o.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")}var Oh=class{constructor(i,t){this.visibleCount=1/0;this.resizeRafId=0;this.host=i,this.options=t,i.addController(this),new ut(i,{callback:()=>{this.resizeRafId||(this.resizeRafId=requestAnimationFrame(()=>{this.resizeRafId=0,this.measure()}))}})}hostUpdated(){this.measure()}measure(){let i=this.options.groups(),t=this.options.container();if(!i.length||!t)return;let r=getComputedStyle(t),n=parseFloat(r.paddingLeft)+parseFloat(r.paddingRight),a=[...t.children].filter(m=>!m.classList.contains("toolbar__group")).reduce((m,f)=>m+f.getBoundingClientRect().width,0),s=t.clientWidth-n-a;if(s<=0)return;i.forEach(m=>m.style.display="");let l=i.map(m=>m.getBoundingClientRect().width),h=l.reduce((m,f)=>m+f,0)<=s?i.length:this.countThatFit(l,s-(this.options.reserve??44));i.forEach((m,f)=>m.style.display=f<h?"":"none"),h!==this.visibleCount&&(this.visibleCount=h,this.host.requestUpdate())}countThatFit(i,t){let r=0,n=0;for(let a of i){if(r+a>t)break;r+=a,n++}return n}};var wk=k`@charset "UTF-8";@keyframes rotate-gradient{from{--rotate:0deg}to{--rotate:360deg}}:host{text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-transform:none}*,*::before,*::after{box-sizing:border-box;border-width:0;border-style:solid;border-color:rgb(var(--zn-border-color))}[hidden]{display:none !important}.width-container,.form-container,.wide-form-container{height:100%;width:100%;margin:var(--zn-default-margin,0 auto)}.width-container{max-width:var(--zn-container)}.form-container{max-width:var(--zn-container-ph)}.wide-form-container{max-width:var(--zn-container-lg)}.remarkd-rendered{--rmd-accent:#2367c8;--rmd-border:#d9dee7;--rmd-muted:#5f6d80;--rmd-soft:#eef5ff;--rmd-code-bg:#0f1626;--rmd-code-text:#f5f8ff;color:#18202f;font:15px/1.55 -apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif;word-wrap:break-word}.remarkd-rendered>.remarkd-section>:first-child,.remarkd-rendered>:first-child{margin-top:0}.remarkd-rendered p{margin:0 0 12px}.remarkd-rendered h1,.remarkd-rendered h2,.remarkd-rendered h3,.remarkd-rendered h4{line-height:1.2;margin:18px 0 10px}.remarkd-rendered h1{font-size:26px}.remarkd-rendered h2{font-size:21px}.remarkd-rendered h3{font-size:17px}.remarkd-rendered a{color:var(--rmd-accent)}.remarkd-rendered .btn{align-items:center;background:#f4f6f8;border:1px solid #cfd6df;border-radius:6px;color:#263241;cursor:pointer;display:inline-flex;font-weight:600;gap:6px;justify-content:center;line-height:1.2;margin:2px 4px 2px 0;min-height:36px;padding:8px 14px;text-align:center;text-decoration:none;transition:background-color 160ms ease,border-color 160ms ease,box-shadow 160ms ease,color 160ms ease;vertical-align:middle}.remarkd-rendered .btn:hover,.remarkd-rendered .btn:focus{background:#e9edf2;border-color:#b9c3cf;color:#182230;text-decoration:none}.remarkd-rendered .btn:focus{box-shadow:0 0 0 3px rgba(35,103,200,0.22);outline:none}.remarkd-rendered .btn--primary{background:#2367c8;border-color:#2367c8;color:#fff}.remarkd-rendered .btn--primary:hover,.remarkd-rendered .btn--primary:focus{background:#1d58ad;border-color:#1d58ad;color:#fff}.remarkd-rendered .btn--secondary{background:#263241;border-color:#263241;color:#fff}.remarkd-rendered .btn--secondary:hover,.remarkd-rendered .btn--secondary:focus{background:#1a2430;border-color:#1a2430;color:#fff}.remarkd-rendered .btn--success{background:#177245;border-color:#177245;color:#fff}.remarkd-rendered .btn--success:hover,.remarkd-rendered .btn--success:focus{background:#105d37;border-color:#105d37;color:#fff}.remarkd-rendered .btn--danger{background:#b42318;border-color:#b42318;color:#fff}.remarkd-rendered .btn--danger:hover,.remarkd-rendered .btn--danger:focus{background:#971b12;border-color:#971b12;color:#fff}.remarkd-rendered .monospace,.remarkd-rendered kbd{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:0.9em}.remarkd-rendered .monospace{background:#eef2f7;border-radius:4px;padding:1px 5px}.remarkd-rendered kbd{background:#f6f8fb;border:1px solid var(--rmd-border);border-bottom-width:2px;border-radius:5px;padding:1px 6px}.remarkd-rendered mark.highlight{background:#fff3bf;border-radius:3px;padding:0 3px}.remarkd-rendered .tooltip{border-bottom:1px dotted var(--rmd-muted);cursor:help}.remarkd-rendered sup.footnote,.remarkd-rendered sup.reference{color:var(--rmd-accent);font-size:0.75em}.remarkd-rendered ul,.remarkd-rendered ol{margin:0 0 12px;padding-left:24px}.remarkd-rendered li>p{margin:0 0 4px}.remarkd-rendered ul,.remarkd-rendered ul ul ul ul,.remarkd-rendered ul ul ul ul ul ul ul{list-style-type:disc}.remarkd-rendered ul ul,.remarkd-rendered ul ul ul ul ul,.remarkd-rendered ul ul ul ul ul ul ul ul{list-style-type:circle}.remarkd-rendered ul ul ul,.remarkd-rendered ul ul ul ul ul ul,.remarkd-rendered ul ul ul ul ul ul ul ul ul{list-style-type:square}.remarkd-rendered ol:not(.reference){counter-reset:remarkd-item}.remarkd-rendered ol:not(.reference)>li{counter-increment:remarkd-item}.remarkd-rendered ol:not(.reference)>li::marker{content:counters(remarkd-item,".") ". "}.remarkd-rendered input[type=checkbox]{margin-right:4px;vertical-align:middle}.remarkd-rendered dl{margin:0 0 12px}.remarkd-rendered dt{font-weight:700}.remarkd-rendered dd{margin:0 0 8px 18px;color:var(--rmd-muted)}.remarkd-rendered blockquote{margin:0 0 12px;padding:4px 16px;border-left:4px solid var(--rmd-border);color:var(--rmd-muted)}.remarkd-rendered .hint-note{margin:0 0 12px;padding:12px 14px;border-left:4px solid var(--rmd-accent);background:var(--rmd-soft);border-radius:0 6px 6px 0}.remarkd-rendered .hint-caption{color:var(--rmd-accent)}.remarkd-rendered .hint-tip,.remarkd-rendered .hint-warning,.remarkd-rendered .hint-important,.remarkd-rendered .hint-caution,.remarkd-rendered .hint-danger,.remarkd-rendered .hint-success,.remarkd-rendered .hint-notice{margin:0 0 12px;padding:12px 14px;border-left:4px solid var(--rmd-accent);background:#f6f8fb;border-radius:0 6px 6px 0}.remarkd-rendered .hint-tip,.remarkd-rendered .hint-success{border-left-color:#1f9d57;background:#eafaf1}.remarkd-rendered .hint-tip .hint-caption,.remarkd-rendered .hint-success .hint-caption{color:#1f7a47}.remarkd-rendered .hint-warning,.remarkd-rendered .hint-caution{border-left-color:#b7791f;background:#fdf6e3}.remarkd-rendered .hint-warning .hint-caption,.remarkd-rendered .hint-caution .hint-caption{color:#8a5a07}.remarkd-rendered .hint-danger{border-left-color:#c0392b;background:#fdecea}.remarkd-rendered .hint-danger .hint-caption{color:#a02b1f}.remarkd-rendered .verse-block{margin:0 0 12px;padding:12px 14px;background:#f6f8fb;border-radius:6px;font-family:inherit;white-space:pre-wrap}.remarkd-rendered code{display:block;margin:0 0 12px;padding:14px 16px;border-radius:8px;background:var(--rmd-code-bg);color:var(--rmd-code-text);font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:13px;line-height:1.5;white-space:pre;overflow-x:auto}.remarkd-rendered .listing-block{margin:0 0 12px;border:1px solid var(--rmd-border);border-radius:8px;overflow:hidden}.remarkd-rendered .listing-block .content{padding:14px 16px;background:#f6f8fb;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:13px;white-space:pre-wrap}.remarkd-rendered .callout{list-style:none;margin:0 0 6px;padding-left:28px;position:relative;color:var(--rmd-muted)}.remarkd-rendered .callout::before{content:attr(data-marker);position:absolute;left:0;top:0;display:inline-flex;align-items:center;justify-content:center;width:20px;height:20px;border-radius:50%;background:var(--rmd-accent);color:#fff;font-size:12px;font-weight:700}.remarkd-rendered .example-block,.remarkd-rendered .sidebar-block{margin:0 0 12px;border:1px solid var(--rmd-border);border-radius:8px}.remarkd-rendered .example-block .content,.remarkd-rendered .sidebar-block .content{padding:14px 16px}.remarkd-rendered .sidebar-block{background:#f6f8fb}.remarkd-rendered .title{display:block;font-weight:700;color:var(--rmd-muted);margin-bottom:6px}.remarkd-rendered .accordion-container{margin:0 0 12px;border:1px solid var(--rmd-border);border-radius:8px;overflow:hidden}.remarkd-rendered button.accordion{display:block;width:100%;text-align:left;padding:11px 14px;border:0;border-top:1px solid var(--rmd-border);background:#f6f8fb;font:inherit;font-weight:650;cursor:pointer}.remarkd-rendered button.accordion:first-child{border-top:0}.remarkd-rendered .accordion-container .panel{padding:12px 14px}.remarkd-rendered .tab-group{margin:0 0 12px;border:1px solid var(--rmd-border);border-radius:8px;overflow:hidden}.remarkd-rendered .tab-header{display:flex;flex-wrap:wrap;gap:4px;margin:0;padding:6px 6px 0;list-style:none;background:#f6f8fb;border-bottom:1px solid var(--rmd-border)}.remarkd-rendered .tab-header a{display:block;padding:7px 12px;border-radius:6px 6px 0 0;text-decoration:none;color:var(--rmd-muted);font-weight:650}.remarkd-rendered .tab-header a.active{background:#fff;color:var(--rmd-accent)}.remarkd-rendered .tabs .tab{padding:14px}.remarkd-rendered .tabs .tab+.tab{border-top:1px dashed var(--rmd-border)}.remarkd-rendered .steps-container{margin:0 0 12px;counter-reset:rmd-step}.remarkd-rendered .step{display:flex;gap:14px;padding:12px 0;border-top:1px solid var(--rmd-border)}.remarkd-rendered .step:first-child{border-top:0}.remarkd-rendered .step-content{flex:1}.remarkd-rendered .step-content h3{margin:0 0 6px;counter-increment:rmd-step}.remarkd-rendered .step-content h3::before{content:counter(rmd-step) ". ";color:var(--rmd-accent)}.remarkd-rendered .step-image img{max-width:120px;border-radius:6px}.remarkd-rendered .table-block{margin:0 0 12px}.remarkd-rendered .remarkd-table{border-collapse:collapse;width:100%}.remarkd-rendered .remarkd-table th,.remarkd-rendered .remarkd-table td{border:1px solid var(--rmd-border);padding:8px 10px;text-align:left}.remarkd-rendered .remarkd-table th{background:#eef2f7}.remarkd-rendered .remarkd-table--striped tbody tr:nth-child(even) td{background:#f8fafc}.remarkd-rendered .pros-cons-table th{background:#2367a6;color:#fff;font-size:1rem}.remarkd-rendered .pros-cons-table{table-layout:fixed}.remarkd-rendered .pros-cons-table .pros-cons-cell{width:50%}.remarkd-rendered .pros-cons-table--background .pros-cons-cell--con{background:#fae9e7}.remarkd-rendered .pros-cons-table--background .pros-cons-cell--pro{background:#e8f4ec}.remarkd-rendered .pros-cons-table--background.remarkd-table--striped tbody tr:nth-child(even) .pros-cons-cell--con{background:#f5d8d5}.remarkd-rendered .pros-cons-table--background.remarkd-table--striped tbody tr:nth-child(even) .pros-cons-cell--pro{background:#d4eadb}.remarkd-rendered .pros-cons-table--text-color .pros-cons-cell--con{color:#a62b25}.remarkd-rendered .pros-cons-table--text-color .pros-cons-cell--pro{color:#155d30}.remarkd-rendered .pros-cons-table .pros-cons-icon{display:inline-block;margin-right:8px}.remarkd-rendered img{max-width:100%}.remarkd-rendered img.block{display:block;margin:0 0 12px}.remarkd-rendered .align-center{text-align:center}.remarkd-rendered .align-right{text-align:right}.remarkd-rendered .align-center img.block{margin-left:auto;margin-right:auto}.remarkd-rendered .align-right img.block{margin-left:auto}.remarkd-rendered .video-container{position:relative;width:100%;margin:0 0 12px;background:#000;border-radius:8px;overflow:hidden}.remarkd-rendered .video-container iframe,.remarkd-rendered .video-container video{position:absolute;inset:0;width:100%;height:100%;border:0}.remarkd-rendered ol.reference{font-size:0.9em;color:var(--rmd-muted)}.remarkd-rendered .reference-tobody{text-decoration:none;margin-right:4px}.remarkd-rendered .remarkd-meter-label{display:block;font-size:0.85em;color:var(--rmd-muted)}.remarkd-rendered .remarkd-meter{width:180px;max-width:100%}.remarkd-rendered hr{border:0;border-top:1px solid var(--rmd-border);margin:18px 0}:host{display:block;overflow:hidden}.remarkd-editor{position:relative;display:flex;flex-direction:column;max-height:var(--remarkd-editor-max-height,100dvh);border:1px solid rgb(var(--zn-border-color));border-radius:var(--zn-border-radius);background-color:rgba(var(--zn-panel),var(--zn-panel-opacity))}.remarkd-editor__toolbar{display:flex;flex:none;gap:2px;flex-wrap:nowrap;padding:var(--zn-spacing-x-small);border-bottom:1px solid rgb(var(--zn-border-color))}.toolbar__group{display:flex;flex-shrink:0;gap:2px;align-items:center}.toolbar__group+.toolbar__group::before{content:"";align-self:stretch;margin-inline:4px;border-left:1px solid rgb(var(--zn-border-color))}.remarkd-editor__toolbar-more zn-menu{--zn-menu-max-height:var(--auto-size-available-height,60dvh)}.remarkd-editor__body{padding:var(--zn-spacing-large) var(--zn-spacing-large) var(--zn-spacing-large) 52px;min-height:var(--remarkd-editor-min-height,10rem);overflow-y:auto}.remarkd-editor__body--raw{display:flex;padding-left:var(--zn-spacing-large)}.remarkd-editor__raw-toggle{margin-left:auto}.remarkd-editor__raw{flex:1;min-height:var(--remarkd-editor-min-height,10rem);resize:vertical;border:0;background:transparent;color:inherit;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:0.875rem;line-height:1.5;padding:0;outline:none}.remarkd-editor--disabled{opacity:0.6;pointer-events:none}.remarkd-editor__block{position:relative;border-radius:var(--zn-border-radius)}.remarkd-editor__actions{position:absolute;left:-40px;top:4px;display:flex;flex-direction:column;align-items:center;gap:2px;opacity:0;transition:opacity 0.15s ease}.remarkd-editor__block:hover .remarkd-editor__actions,.remarkd-editor__actions:focus-within{opacity:1}.remarkd-editor__delete{position:absolute;top:2px;right:2px;z-index:5;opacity:0;transition:opacity 0.15s ease}.remarkd-editor__block:hover .remarkd-editor__delete,.remarkd-editor__delete:focus-within{opacity:1}.remarkd-editor__drag-handle{display:inline-flex;align-items:center;padding:2px;color:var(--zn-color-neutral-400,#9aa4b2);cursor:grab;touch-action:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.remarkd-editor__drag-handle:active{cursor:grabbing}.remarkd-editor__ghost{position:fixed;top:0;left:0;z-index:20;pointer-events:none;opacity:0.9;background:var(--zn-color-neutral-0,white);border-radius:var(--zn-border-radius);box-shadow:0 8px 24px rgba(0,0,0,0.15);max-width:50%;max-height:160px;overflow:hidden}.remarkd-editor__block--dragging{opacity:0.4}.remarkd-editor__block--drop-before::before,.remarkd-editor__block--drop-after::after{content:"";position:absolute;left:0;right:0;height:6px;border-radius:3px;background:rgba(var(--zn-primary),0.6);pointer-events:none}.remarkd-editor__block--drop-before::before{top:-4px}.remarkd-editor__block--drop-after::after{bottom:-4px}.remarkd-editor__rendered{padding:var(--zn-spacing-x-small);border-radius:var(--zn-border-radius);cursor:text}.remarkd-editor__rendered:hover{background:var(--zn-color-neutral-100)}.remarkd-editor__edit-shell{border:1px solid rgb(var(--zn-border-color));border-radius:var(--zn-border-radius);background:var(--zn-color-neutral-0,white);padding:var(--zn-spacing-x-small)}.remarkd-editor__edit-shell:focus-within{border-top-color:rgb(var(--zn-primary));border-right-color:rgb(var(--zn-primary));border-bottom-color:rgb(var(--zn-primary))}.remarkd-editor__edit-shell:not([class*=hint-]):focus-within{border-left-color:rgb(var(--zn-primary))}.remarkd-editor__input{display:block;width:100%;resize:none;overflow:hidden;border:0;background:transparent;color:inherit;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:0.875rem;line-height:1.5;padding:0;outline:none}.remarkd-editor__edit-shell[class*=hint-] .remarkd-editor__input{font:inherit}.remarkd-editor__edit-shell--h1 .remarkd-editor__input,.remarkd-editor__edit-shell--h2 .remarkd-editor__input,.remarkd-editor__edit-shell--h3 .remarkd-editor__input{font-family:inherit;font-weight:700;line-height:1.2}.remarkd-editor__edit-shell--h1 .remarkd-editor__input{font-size:26px}.remarkd-editor__edit-shell--h2 .remarkd-editor__input{font-size:21px}.remarkd-editor__edit-shell--h3 .remarkd-editor__input{font-size:17px}.remarkd-editor__edit-shell--code{background:var(--rmd-code-bg,#0f1626)}.remarkd-editor__edit-shell--code .remarkd-editor__input{color:var(--rmd-code-text,#f5f8ff)}.remarkd-editor__include{display:flex;align-items:center;gap:var(--zn-spacing-small);padding:var(--zn-spacing-small);border:1px dashed rgb(var(--zn-border-color));border-radius:var(--zn-border-radius);background:var(--zn-color-neutral-0,white)}.remarkd-editor__include-title{font-weight:600}.remarkd-editor__include-meta{color:var(--zn-color-neutral-400,#9aa4b2);font-size:var(--zn-font-size-small)}.remarkd-editor__include--missing{border-style:solid;border-color:rgb(var(--zn-color-error))}.remarkd-editor__include-scope{color:var(--zn-color-neutral-400,#9aa4b2);font-size:var(--zn-font-size-small)}.remarkd-editor__include-link{margin-left:auto;font-size:var(--zn-font-size-small)}.remarkd-editor__conditional{border-left:3px solid rgba(var(--zn-primary),0.5);padding-left:var(--zn-spacing-small)}.remarkd-editor__conditional-label{display:inline-flex;align-items:center;gap:4px;margin-bottom:var(--zn-spacing-x-small);color:rgb(var(--zn-primary));font-size:0.75rem;text-transform:uppercase;letter-spacing:0.04em}.remarkd-editor__meta{display:flex;flex-wrap:wrap;gap:var(--zn-spacing-x-small)}.remarkd-editor__variable{display:inline-flex;align-items:center;gap:var(--zn-spacing-x-small);padding:2px var(--zn-spacing-x-small);border:1px dashed rgb(var(--zn-border-color));border-radius:var(--zn-border-radius);font-size:0.875rem}.remarkd-editor__variable-name{font-family:ui-monospace,SFMono-Regular,Menlo,monospace}.remarkd-editor__variable-state{color:rgb(var(--zn-text-body));font-style:italic}.remarkd-editor__var{padding:0 2px;border-radius:3px;background:rgba(var(--zn-primary),0.12);color:rgb(var(--zn-primary));font-family:ui-monospace,SFMono-Regular,Menlo,monospace}.remarkd-editor__include-picker{display:flex;flex-direction:column;gap:var(--zn-spacing-x-small);padding:var(--zn-spacing-small);border:1px solid rgb(var(--zn-border-color));border-radius:var(--zn-border-radius);background:var(--zn-color-neutral-0,white)}.remarkd-editor__include-picker-head{display:flex;align-items:center;gap:var(--zn-spacing-x-small)}.remarkd-editor__include-filter{flex:1 1 auto}.remarkd-editor__include-option{display:flex;justify-content:space-between;gap:var(--zn-spacing-small);padding:var(--zn-spacing-x-small) var(--zn-spacing-small);border:0;border-radius:var(--zn-border-radius);background:none;cursor:pointer;text-align:left}.remarkd-editor__include-option:hover:not(:disabled){background:var(--zn-color-neutral-100)}.remarkd-editor__include-option:disabled{cursor:default;opacity:0.6}.remarkd-editor__include-option-meta,.remarkd-editor__include-picker-empty{color:var(--zn-color-neutral-400,#9aa4b2);font-size:var(--zn-font-size-small)}.remarkd-editor__image-controls{display:flex;flex-direction:column;gap:var(--zn-spacing-small);border:1px solid rgb(var(--zn-primary));border-radius:var(--zn-border-radius);background:var(--zn-color-neutral-0,white);padding:var(--zn-spacing-small)}.remarkd-editor__image-controls-preview{text-align:left}.remarkd-editor__image-controls-preview--center{text-align:center}.remarkd-editor__image-controls-preview--right{text-align:right}.remarkd-editor__image-controls-preview img{max-width:100%;max-height:240px}.remarkd-editor__image-row{display:flex;align-items:flex-end;gap:var(--zn-spacing-small);flex-wrap:wrap}.remarkd-editor__image-field{display:flex;flex-direction:column;gap:2px}.remarkd-editor__image-field span{font-size:var(--zn-input-label-font-size-small);color:var(--zn-input-label-color);font-weight:var(--zn-font-weight-semibold)}.remarkd-editor__image-field input{border:1px solid rgb(var(--zn-border-color));border-radius:var(--zn-border-radius);background:var(--zn-color-neutral-0,white);color:inherit;font:inherit;font-size:0.875rem;padding:4px 8px;outline:none}.remarkd-editor__image-field input:focus{border-color:rgb(var(--zn-primary))}.remarkd-editor__image-field:first-child input{width:100%}.remarkd-editor__image-buttons{display:flex;align-items:center;gap:var(--zn-spacing-x-small)}.remarkd-editor__image-buttons-spacer{margin-left:auto}.remarkd-editor__image-picker{display:flex;align-items:flex-start;gap:var(--zn-spacing-x-small);margin:var(--zn-spacing-x-small) 0}.remarkd-editor__image-picker zn-file{flex:1}.remarkd-editor__add{padding:var(--zn-spacing-x-small);min-height:1.8em;color:var(--zn-color-neutral-400,#9aa4b2);cursor:text}.remarkd-editor__edit-wrap{position:relative}.remarkd-editor__validation{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none;border:0;padding:0}.remarkd-editor__link-picker{display:flex;flex-direction:column;gap:var(--zn-spacing-x-small);margin-top:var(--zn-spacing-x-small);padding:var(--zn-spacing-small);border:1px solid rgb(var(--zn-border-color));border-radius:var(--zn-border-radius);background:var(--zn-color-neutral-0,white)}.remarkd-editor__link-picker-head{display:flex;align-items:center;gap:var(--zn-spacing-x-small)}.remarkd-editor__link-filter{flex:1 1 auto}.remarkd-editor__link-option{display:flex;justify-content:space-between;gap:var(--zn-spacing-small);padding:var(--zn-spacing-x-small) var(--zn-spacing-small);border:0;border-radius:var(--zn-border-radius);background:none;cursor:pointer;text-align:left}.remarkd-editor__link-option:hover{background:var(--zn-color-neutral-100)}.remarkd-editor__link-option-meta,.remarkd-editor__link-picker-empty{color:var(--zn-color-neutral-400,#9aa4b2);font-size:var(--zn-font-size-small)}.remarkd-editor__link--missing{text-decoration-line:underline;text-decoration-style:wavy;text-decoration-color:rgb(var(--zn-color-error))}.remarkd-editor__shortcut{color:rgb(var(--zn-text-muted));font-size:var(--zn-font-size-x-small)}`;var zk=/^include::([^[]+)\[(.*)]\s*$/,Sk="kb:(?:document|category|page)\\/[A-Za-z0-9_-]+",Xq=new RegExp(`^${Sk}$`),Jq=new RegExp(Sk,"g"),Zq=/^:([A-Za-z0-9_-]+)(!)?:\s*(.*)$/,eI=/^\.([^.\s].*)$/,tI=/^\[.+]$/;function rI(o){let i=Zq.exec(o);if(i)return{kind:"attribute",name:i[1],value:i[3],unset:!!i[2]};let t=eI.exec(o);return t?{kind:"title",text:t[1]}:tI.test(o)?{kind:"bracket",text:o}:null}function iI(o){let i=o.split(`
4481
4479
  `).map(r=>r.trim()).filter(r=>r!=="");if(!i.length)return null;let t=[];for(let r of i){let n=rI(r);if(!n)return null;t.push(n)}return t}var _k="|===",kk=/^\|={3,}$/,Qc=/^(?:ifdef|ifndef)::[^[]*\[]$/,dl=/^ifeval::\[[^\]]*]$/,Ck=/^endif::\[]$/,nI=/^(ifdef|ifndef|iftrue|iffalse|ifempty|ifnempty)::([^[]+)\[([^\]]+)]\s*$/;function oI(o,i){let t=i.replace(/[\r\n]+/g," ").replace(/\[/g,"(").replace(/]/g,")").trim();return`include::${o}[${t}]`}function aI(o,i){return`[${i.replace(/[\r\n]/g," ").replace(/\[/g,"(").replace(/]/g,")").trim()}](${o})`}var sI=nk(Ih),lI=200;function cI(o){let i=o.indexOf("(");if(i===-1||!o.endsWith(")"))return null;let t=o.slice(0,i).replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return new RegExp(`^${t}\\([^)]*\\)`)}function Ig(o){try{return fk(o)}catch{return`<pre class="remarkd-editor__unparsed">${o.replace(/[&<>]/g,i=>({"&":"&amp;","<":"&lt;",">":"&gt;"})[i])}</pre>`}}function Ek(o,i){let t=1;for(let r=i;r<o.length;r++){let n=o[r].trimEnd();if(Qc.test(n)||dl.test(n))t++;else if(Ck.test(n)&&--t===0)return r}return-1}var Tk={ifdef:"is defined",ifndef:"is not defined",iftrue:"is true",iffalse:"is false",ifempty:"is empty",ifnempty:"is not empty"};function $k(o){if(dl.test(o))return`shown when ${o.slice(9,-1)}`;let i=o.slice(0,o.indexOf("::"));return`shown when ${o.slice(o.indexOf("::")+2,o.indexOf("["))} ${Tk[i]??"is defined"}`}function dI(o,i){return`shown when ${i} ${Tk[o]??"is defined"}`}function Ak(o){let i=[],t=[],r=()=>{t.length&&i.push({kind:"content",lines:t}),t=[]};for(let n=0;n<o.length;n++){let a=o[n].trimEnd();if(Qc.test(a)||dl.test(a)){r();let s=Ek(o,n+1),l=o.slice(n+1,s===-1?void 0:s);i.push({kind:"nested",label:$k(a),parts:Ak(l)}),n=s===-1?o.length:s;continue}t.push(o[n])}return r(),i}function pI(o){let i=o.length===1&&o[0].kind==="content"?o[0]:void 0;if(o.length===0||i){let t=i?.lines.join(`
4482
4480
  `).trim()??"";return u`
4483
4481
  <div class="remarkd-editor__conditional-body remarkd-rendered remarkd-editor__rendered--parsed">
@@ -4769,11 +4767,11 @@ ${this.parseList(r)}`}let a=t.ordered?"ol":"ul";return`<${a}>${n.join(`</li>
4769
4767
  icon="x@lu"
4770
4768
  tooltip="Cancel"
4771
4769
  @click=${this.closeImagePicker}></zn-button>
4772
- </div>`}};me.styles=_(wk),me.dependencies={"zn-dropdown":ur,"zn-menu":on,"zn-menu-item":xi,"zn-slash-menu":Ea},c([B(".remarkd-editor__validation")],me.prototype,"validationInput",2),c([B("zn-slash-menu")],me.prototype,"slashMenuElement",2),c([I()],me.prototype,"blocks",2),c([I()],me.prototype,"editingIndex",2),c([p({attribute:"slash-recent-key"})],me.prototype,"slashRecentKey",2),c([I()],me.prototype,"hasSlashMenu",2),c([I()],me.prototype,"imagePickerIndex",2),c([I()],me.prototype,"imageEdit",2),c([I()],me.prototype,"dropIndicator",2),c([I()],me.prototype,"dragIndex",2),c([I()],me.prototype,"editShell",2),c([I()],me.prototype,"rawMode",2),c([I()],me.prototype,"includeOptions",2),c([I()],me.prototype,"includeLoadFailed",2),c([I()],me.prototype,"includePickerIndex",2),c([I()],me.prototype,"includeQuery",2),c([I()],me.prototype,"linkPickerOpen",2),c([I()],me.prototype,"linkQuery",2),c([I()],me.prototype,"linkResults",2),c([I()],me.prototype,"linkSearchFailed",2),c([p()],me.prototype,"name",2),c([p()],me.prototype,"value",2),c([Te()],me.prototype,"defaultValue",2),c([p()],me.prototype,"placeholder",2),c([p({attribute:"attachment-url"})],me.prototype,"attachmentUrl",2),c([p({attribute:"include-url"})],me.prototype,"includeUrl",2),c([p({attribute:"link-url"})],me.prototype,"linkUrl",2),c([p({type:Boolean,attribute:"allow-raw",reflect:!0})],me.prototype,"allowRaw",2),c([p({type:Boolean,reflect:!0})],me.prototype,"required",2),c([p({type:Boolean,reflect:!0})],me.prototype,"readonly",2),c([p({type:Boolean,reflect:!0})],me.prototype,"disabled",2),c([W("value")],me.prototype,"handleValueChange",1),c([W("includeUrl",{waitUntilFirstUpdate:!0})],me.prototype,"handleIncludeUrlChange",1),c([W("linkUrl",{waitUntilFirstUpdate:!0})],me.prototype,"handleLinkUrlChange",1);var Ph=me;me.define("zn-remarkd-editor");var Lk=k`:host{display:block}.translations{padding:var(--zn-spacing-small) var(--zn-spacing-medium)}.translations__language{margin-bottom:var(--zn-spacing-medium)}.translations__body{display:block}.translations--flush,.translations--grouped{padding:0}`;var Le=class extends S{constructor(){super(...arguments);this.formControlController=new re(this);this.hasSlotController=new Y(this,"label","help-text");this.name="";this.value='{"en":""}';this.label="";this.helpText="";this.disabled=!1;this.required=!1;this.flush=!1;this.inputType="text";this.allowRaw=!1;this.attachmentUrl="";this.includeUrl="";this.linkUrl="";this.inlineEdit=!1;this.slashItems=[];this.slashPreset="";this.slashTrigger="/";this.slashHeading="Insert";this.slashHideKeys=!1;this.slashRecentKey="";this.grouped=!1;this.languages={en:"EN"};this.values={};this.defaultValue='{"en":""}';this._activeLanguage="en";this.handleLanguageSelect=t=>{t.stopPropagation();let r=t.target.value;typeof r=="string"&&r&&r!==this._activeLanguage&&this.switchLanguage(r)};this.handleLanguageInput=t=>{t.stopPropagation()};this.switchLanguage=t=>{this._activeLanguage=t,this.requestUpdate()};this.handleValueUpdate=t=>{let r=t.target;if(this._activeLanguage){let n=r.value;n!==this.values[this._activeLanguage]&&(this.values={...this.values,[this._activeLanguage]:n},this.updateValue())}};this.handleKeyDown=t=>{if(t.key==="Enter"){if(t.target instanceof dp||t.target instanceof Jo||t.target instanceof Ph)return;!(t.altKey||t.ctrlKey||t.metaKey||t.shiftKey)&&!t.defaultPrevented&&!t.isComposing&&this.formControlController.submit()}};this.handleSubmit=()=>{this.formControlController.submit()}}get validity(){return et}get validationMessage(){return""}checkValidity(){return!0}getForm(){return this.formControlController.getForm()}reportValidity(){return!0}setCustomValidity(){}setActiveLanguage(t){this._activeLanguage=t,this.requestUpdate()}getActiveLanguage(){return this._activeLanguage}addLanguageKey(t){let r=this.pendingValues();Object.prototype.hasOwnProperty.call(r,t)||(this.values={...r,[t]:""},this.updateValue())}getValueLanguages(){return Object.keys(this.pendingValues())}hasTranslation(t){return(this.pendingValues()[t]??"").trim()!==""}languageState(t){return this.hasTranslation(t)?{type:"success",label:"Translated"}:{type:"error",label:t==="en"?"Empty":"English"}}languageLabel(t){return this.languages[t]??t.toUpperCase()}pendingValues(){if(Object.keys(this.values).length>0)return this.values;try{return JSON.parse(this.value||"{}")}catch{return this.values}}firstUpdated(){this.hasAttribute("value")||(this.defaultValue=this.value),this.formControlController.updateValidity()}willUpdate(t){let r=t.has("value"),n=t.has("values");if(r&&n){let a=this.value==='{"en":""}',s=Object.keys(this.values).length===0;a&&!s?r=!1:!a&&s?n=!1:this.hasAttribute("values")&&!this.hasAttribute("value")?r=!1:this.hasAttribute("value")&&!this.hasAttribute("values")&&(n=!1)}if(r)try{let a=JSON.parse(this.value||"{}");JSON.stringify(a)!==JSON.stringify(this.values)&&(this.values=a)}catch{}if(n&&(this.value=JSON.stringify(this.values),!this.grouped)){let a=Object.prototype.hasOwnProperty.call(this.values,this._activeLanguage)||Object.prototype.hasOwnProperty.call(this.languages,this._activeLanguage);if(!this._activeLanguage||!a&&this._activeLanguage!=="en"){let s=Object.keys(this.values);s.length>0?this._activeLanguage=s[0]:this._activeLanguage="en"}}}updateValue(){this.value=JSON.stringify(this.values),this.emit("zn-change"),this.emit("zn-input")}renderField(t,r,n){let a=n?"rtl":"ltr";return this.inlineEdit?u`
4770
+ </div>`}};me.styles=_(wk),me.dependencies={"zn-dropdown":hr,"zn-menu":on,"zn-menu-item":xi,"zn-slash-menu":Ea},c([B(".remarkd-editor__validation")],me.prototype,"validationInput",2),c([B("zn-slash-menu")],me.prototype,"slashMenuElement",2),c([I()],me.prototype,"blocks",2),c([I()],me.prototype,"editingIndex",2),c([p({attribute:"slash-recent-key"})],me.prototype,"slashRecentKey",2),c([I()],me.prototype,"hasSlashMenu",2),c([I()],me.prototype,"imagePickerIndex",2),c([I()],me.prototype,"imageEdit",2),c([I()],me.prototype,"dropIndicator",2),c([I()],me.prototype,"dragIndex",2),c([I()],me.prototype,"editShell",2),c([I()],me.prototype,"rawMode",2),c([I()],me.prototype,"includeOptions",2),c([I()],me.prototype,"includeLoadFailed",2),c([I()],me.prototype,"includePickerIndex",2),c([I()],me.prototype,"includeQuery",2),c([I()],me.prototype,"linkPickerOpen",2),c([I()],me.prototype,"linkQuery",2),c([I()],me.prototype,"linkResults",2),c([I()],me.prototype,"linkSearchFailed",2),c([p()],me.prototype,"name",2),c([p()],me.prototype,"value",2),c([Te()],me.prototype,"defaultValue",2),c([p()],me.prototype,"placeholder",2),c([p({attribute:"attachment-url"})],me.prototype,"attachmentUrl",2),c([p({attribute:"include-url"})],me.prototype,"includeUrl",2),c([p({attribute:"link-url"})],me.prototype,"linkUrl",2),c([p({type:Boolean,attribute:"allow-raw",reflect:!0})],me.prototype,"allowRaw",2),c([p({type:Boolean,reflect:!0})],me.prototype,"required",2),c([p({type:Boolean,reflect:!0})],me.prototype,"readonly",2),c([p({type:Boolean,reflect:!0})],me.prototype,"disabled",2),c([W("value")],me.prototype,"handleValueChange",1),c([W("includeUrl",{waitUntilFirstUpdate:!0})],me.prototype,"handleIncludeUrlChange",1),c([W("linkUrl",{waitUntilFirstUpdate:!0})],me.prototype,"handleLinkUrlChange",1);var Ph=me;me.define("zn-remarkd-editor");var Lk=k`:host{display:block}.translations{padding:var(--zn-spacing-small) var(--zn-spacing-medium)}.translations__language{margin-bottom:var(--zn-spacing-medium)}.translations__body{display:block}.translations--flush,.translations--grouped{padding:0}`;var Le=class extends S{constructor(){super(...arguments);this.formControlController=new re(this);this.hasSlotController=new Y(this,"label","help-text");this.name="";this.value='{"en":""}';this.label="";this.helpText="";this.disabled=!1;this.required=!1;this.flush=!1;this.inputType="text";this.allowRaw=!1;this.attachmentUrl="";this.includeUrl="";this.linkUrl="";this.inlineEdit=!1;this.slashItems=[];this.slashPreset="";this.slashTrigger="/";this.slashHeading="Insert";this.slashHideKeys=!1;this.slashRecentKey="";this.grouped=!1;this.languages={en:"EN"};this.values={};this.defaultValue='{"en":""}';this._activeLanguage="en";this.handleLanguageSelect=t=>{t.stopPropagation();let r=t.target.value;typeof r=="string"&&r&&r!==this._activeLanguage&&this.switchLanguage(r)};this.handleLanguageInput=t=>{t.stopPropagation()};this.switchLanguage=t=>{this._activeLanguage=t,this.requestUpdate()};this.handleValueUpdate=t=>{let r=t.target;if(this._activeLanguage){let n=r.value;n!==this.values[this._activeLanguage]&&(this.values={...this.values,[this._activeLanguage]:n},this.updateValue())}};this.handleKeyDown=t=>{if(t.key==="Enter"){if(t.target instanceof dp||t.target instanceof Jo||t.target instanceof Ph)return;!(t.altKey||t.ctrlKey||t.metaKey||t.shiftKey)&&!t.defaultPrevented&&!t.isComposing&&this.formControlController.submit()}};this.handleSubmit=()=>{this.formControlController.submit()}}get validity(){return et}get validationMessage(){return""}checkValidity(){return!0}getForm(){return this.formControlController.getForm()}reportValidity(){return!0}setCustomValidity(){}setActiveLanguage(t){this._activeLanguage=t,this.requestUpdate()}getActiveLanguage(){return this._activeLanguage}addLanguageKey(t){let r=this.pendingValues();Object.prototype.hasOwnProperty.call(r,t)||(this.values={...r,[t]:""},this.updateValue())}getValueLanguages(){return Object.keys(this.pendingValues())}hasTranslation(t){return(this.pendingValues()[t]??"").trim()!==""}languageState(t){return this.hasTranslation(t)?{type:"success",label:"Translated"}:{type:"error",label:t==="en"?"Empty":"English"}}languageLabel(t){return this.languages[t]??t.toUpperCase()}pendingValues(){if(Object.keys(this.values).length>0)return this.values;try{return JSON.parse(this.value||"{}")}catch{return this.values}}firstUpdated(){this.hasAttribute("value")||(this.defaultValue=this.value),this.formControlController.updateValidity()}willUpdate(t){let r=t.has("value"),n=t.has("values");if(r&&n){let a=this.value==='{"en":""}',s=Object.keys(this.values).length===0;a&&!s?r=!1:!a&&s?n=!1:this.hasAttribute("values")&&!this.hasAttribute("value")?r=!1:this.hasAttribute("value")&&!this.hasAttribute("values")&&(n=!1)}if(r)try{let a=JSON.parse(this.value||"{}");JSON.stringify(a)!==JSON.stringify(this.values)&&(this.values=a)}catch{}if(n&&(this.value=JSON.stringify(this.values),!this.grouped)){let a=Object.prototype.hasOwnProperty.call(this.values,this._activeLanguage)||Object.prototype.hasOwnProperty.call(this.languages,this._activeLanguage);if(!this._activeLanguage||!a&&this._activeLanguage!=="en"){let s=Object.keys(this.values);s.length>0?this._activeLanguage=s[0]:this._activeLanguage="en"}}}updateValue(){this.value=JSON.stringify(this.values),this.emit("zn-change"),this.emit("zn-input")}renderField(t,r,n){let a=n?"rtl":"ltr";return this.inlineEdit?u`
4773
4771
  <zn-inline-edit
4774
4772
  input-type=${this.inputType}
4775
4773
  textarea-rows=${O(this.textareaRows)}
4776
- .value=${ar(t)}
4774
+ .value=${or(t)}
4777
4775
  name="${this.name}"
4778
4776
  placeholder="${r}"
4779
4777
  dir="${a}"
@@ -4790,7 +4788,7 @@ ${this.parseList(r)}`}let a=t.ordered?"ol":"ul";return`<${a}>${n.join(`</li>
4790
4788
  @zn-submit="${this.handleSubmit}"
4791
4789
  ></zn-inline-edit>`:this.inputType==="remarkd"?u`
4792
4790
  <zn-remarkd-editor
4793
- .value=${ar(t)}
4791
+ .value=${or(t)}
4794
4792
  name="${this.name}"
4795
4793
  placeholder="${r}"
4796
4794
  dir="${a}"
@@ -4805,7 +4803,7 @@ ${this.parseList(r)}`}let a=t.ordered?"ol":"ul";return`<${a}>${n.join(`</li>
4805
4803
  <zn-textarea
4806
4804
  rows=${O(this.textareaRows)}
4807
4805
  resize="auto"
4808
- .value=${ar(t)}
4806
+ .value=${or(t)}
4809
4807
  name="${this.name}"
4810
4808
  placeholder="${r}"
4811
4809
  dir="${a}"
@@ -4823,7 +4821,7 @@ ${this.parseList(r)}`}let a=t.ordered?"ol":"ul";return`<${a}>${n.join(`</li>
4823
4821
  <zn-input
4824
4822
  type="${this.inputType==="number"?"number":"text"}"
4825
4823
  clearable
4826
- .value=${ar(t)}
4824
+ .value=${or(t)}
4827
4825
  name="${this.name}"
4828
4826
  placeholder="${r}"
4829
4827
  dir="${a}"
@@ -5243,7 +5241,7 @@ Please report this to https://github.com/markedjs/marked.`,o){let r="<p>An error
5243
5241
  tooltip=${n}
5244
5242
  aria-pressed=${a?"true":"false"}
5245
5243
  ></zn-button>
5246
- `}};ht.styles=[rt.styles,_(r3)],c([B("zn-textarea")],ht.prototype,"textarea",2),c([B(".markdown-editor__preview")],ht.prototype,"previewEl",2),c([p()],ht.prototype,"name",2),c([p()],ht.prototype,"value",2),c([Te()],ht.prototype,"defaultValue",2),c([p()],ht.prototype,"label",2),c([p({attribute:"help-text"})],ht.prototype,"helpText",2),c([p()],ht.prototype,"placeholder",2),c([p({type:Number})],ht.prototype,"rows",2),c([p({reflect:!0,attribute:"view-mode"})],ht.prototype,"viewMode",2),c([p({attribute:"storage-key"})],ht.prototype,"storageKey",2),c([p({type:Boolean,reflect:!0})],ht.prototype,"required",2),c([p({type:Boolean,reflect:!0})],ht.prototype,"readonly",2),c([p({type:Boolean,reflect:!0})],ht.prototype,"disabled",2),c([p({type:Boolean,reflect:!0})],ht.prototype,"expanded",2),c([W("viewMode",{waitUntilFirstUpdate:!0})],ht.prototype,"handleViewModeChange",1),c([W("value",{waitUntilFirstUpdate:!0})],ht.prototype,"handleValueChange",1),c([W("markedReady",{waitUntilFirstUpdate:!0})],ht.prototype,"handleMarkedReady",1);var _R=ht;ht.define("zn-markdown-editor");var kR={},Kg=yt(class extends ir{constructor(){super(...arguments),this.ot=kR}render(o,i){return i()}update(o,[i,t]){if(Array.isArray(i)){if(Array.isArray(this.ot)&&this.ot.length===i.length&&i.every((r,n)=>r===this.ot[n]))return vt}else if(this.ot===i)return vt;return this.ot=Array.isArray(i)?Array.from(i):i,this.render(i,t)}});var SR={eq:"Is Equal To",neq:"Is Not Equal To",gt:"Greater Than",gte:"Greater Than or Equal To",lt:"Less Than",lte:"Less Than or Equal To",is:"Is","is-not":"Is Not",in:"Is One Of","not-in":"Is Not One Of",contains:"Contains","not-contains":"Does Not Contain","starts-with":"Starts With","ends-with":"Ends With",empty:"Is Empty","not-empty":"Is Not Empty",within:"Within the Last",before:"Before the Last",between:"Between",matches:"Matches"};function Wg(o){return o.label??SR[o.value]??o.value}var CR=[];function a3(o){let i=o.data?.conditions;return Array.isArray(i)?i:CR}var i3={id:"in"},Kh={id:"out"},id="__new__",ul="application/x-zn-flow-type",Gh;function Wh(){return Gh||(Gh=new Image,Gh.src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"),Gh}var bt=240,lr=60,Yg=bt+80,ER=Yg-bt,TR=40,$R=20,Qg=40,AR=40,LR=40,n3=240,MR=20,qR=20,IR=20,RR=240;function Xg(o,i,t,r=!1){let n=o.y+lr,a=n+Qg;if(t&&t.y>=n){if(t.y-n>RR)return a;let s=r?n+IR:a,l=Math.round((n+t.y)/2-i/2);return Math.max(s,Math.min(l,t.y-qR-i))}return a+AR}function Yh(o){let i=o.length*7.2,t=Math.max(1,Math.ceil(i/(n3-36)));return{w:Math.min(n3,Math.round(36+i)),h:LR+(t-1)*MR}}var Zt=20;function Dr(o){return Math.round(o/Zt)*Zt}var s3=10,DR=4,NR=20;function Jg(o,i){let t=o.m+i.m;return o.x<i.x+i.w+t&&i.x<o.x+o.w+t&&o.y<i.y+i.h+t&&i.y<o.y+o.h+t}function o3(o,i){return i?bt/2:o.label?Yh(o.label).w/2:$R}function nd(o,i,t=[]){let r=er(o,i(o.type)),n=o.x+bt/2;if(r.length<2)return r.map(()=>n);let a=r.map(m=>t.some(f=>f.source.node===o.id&&f.source.port===m.id)),s=[0];for(let m=1;m<r.length;m++){let f=a[m-1]&&a[m]?ER:TR,b=o3(r[m-1],a[m-1])+o3(r[m],a[m])+f;s.push(s[m-1]+Dr(b))}let l=s.filter((m,f)=>a[f]),d=l.length?l:s,h=(Math.min(...d)+Math.max(...d))/2;return s.map(m=>Math.round(n+m-h))}function rd(o,i,t,r){let n=[{x:o.x,y:o.y,w:bt,h:lr,m:s3}],a=er(o,i(o.type)),s=nd(o,i,r);return a.forEach((l,d)=>{if(!l.label)return;let h=Yh(l.label),m=r.find(b=>b.source.node===o.id&&b.source.port===l.id),f=m?t.find(b=>b.id===m.target.node):void 0;n.push({x:s[d]-h.w/2,y:Xg(o,h.h,f,a.length===1),w:h.w,h:h.h+NR,m:DR})}),n}function l3(o,i,t,r,n){let a=rd(o,t,r,n);return rd(i,t,r,n).some(s=>a.some(l=>Jg(l,s)))}function Qh(o,i,t,r){let n=rd(o,i,t,r).slice(1);return n.length?t.some(a=>a.id!==o.id&&rd(a,i,t,r).some(s=>n.some(l=>Jg(l,s)))):!1}function c3(o,i,t,r,n){let a={x:o.x,y:o.y,w:bt,h:lr,m:s3};return rd(i,t,r,n).some(s=>Jg(a,s))}var Zg=200,eb=120,d3=120,p3=80;function h3(o,i,t,r){return{x:o.x+bt*(t+1)/(r+1),y:o.y+(i==="in"?0:lr)}}function u3(){return{nodes:[],connections:[],notes:[]}}function Xh(o){return o?o.inputs??[i3]:[i3]}function tb(o){return o?o.outputs??[Kh]:[Kh]}function ia(o,i){return o.inputs??Xh(i)}function er(o,i){return o.outputs??tb(i)}function od(o,i){return ia(o,i)[0]?.id??null}function m3(o,i){let t=new Set,r=n=>{for(let a of o.connections)a.source.node===n&&!t.has(a.target.node)&&(t.add(a.target.node),r(a.target.node))};return r(i),t}function na(o,i){let t=new Set(o.map(h=>h.id)),r=new Map(o.map(h=>[h.id,[]])),n=new Set;for(let h of i)!t.has(h.source.node)||!t.has(h.target.node)||(r.get(h.source.node).push(h),n.add(h.target.node));let a=new Set,s=new Set,l=new Set,d=h=>{s.add(h),l.add(h);for(let m of r.get(h)??[])l.has(m.target.node)?a.add(m):s.has(m.target.node)||d(m.target.node);l.delete(h)};return o.filter(h=>!n.has(h.id)).forEach(h=>d(h.id)),o.forEach(h=>{s.has(h.id)||d(h.id)}),a}var f3=k`@keyframes rotate-gradient{from{--rotate:0deg}to{--rotate:360deg}}:host{text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-transform:none}*,*::before,*::after{box-sizing:border-box;border-width:0;border-style:solid;border-color:rgb(var(--zn-border-color))}[hidden]{display:none !important}.width-container,.form-container,.wide-form-container{height:100%;width:100%;margin:var(--zn-default-margin,0 auto)}.width-container{max-width:var(--zn-container)}.form-container{max-width:var(--zn-container-ph)}.wide-form-container{max-width:var(--zn-container-lg)}:host{display:block;font-size:0.8125rem}.editor{display:flex;flex-direction:column;gap:14px}.picker{display:flex;flex-direction:column;gap:10px;padding:12px;border:1px solid rgb(var(--zn-border-color));border-radius:8px;background:rgb(var(--zn-panel))}.picker__head{display:flex;align-items:center;justify-content:space-between;font-weight:600}.picker__back{flex:0 0 auto}.picker__list{display:flex;flex-direction:column}.picker__item{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;padding:10px 12px;margin-top:-1px;border:1px solid rgb(var(--zn-border-color));background:rgb(var(--zn-panel));color:rgb(var(--zn-text));font-size:0.8125rem;text-align:left;cursor:pointer}.picker__item:first-child{margin-top:0;border-top-left-radius:8px;border-top-right-radius:8px}.picker__item:last-child{border-bottom-left-radius:8px;border-bottom-right-radius:8px}.picker__item:hover{background:rgb(var(--zn-color-tab))}.picker__item-text{display:flex;flex-direction:column;gap:2px;min-width:0}.picker__item-label{font-weight:500}.picker__item-description{font-size:0.75rem;color:rgb(var(--zn-color-muted-text))}.picker__empty{margin:0;padding:10px 2px;font-size:0.75rem;color:rgb(var(--zn-color-muted-text))}.conditions{display:flex;flex-direction:column;align-items:flex-start;gap:12px}.group{display:flex;flex-direction:column;align-items:flex-start;gap:12px;width:100%;padding:14px;border:1px solid rgb(var(--zn-border-color));border-radius:8px;background:rgb(var(--zn-panel))}.and-rule{font-family:var(--zn-font-sans);font-size:var(--zn-text-paragraph-font-size);font-weight:var(--zn-text-paragraph-font-weight);line-height:var(--zn-text-paragraph-line-height);color:var(--zn-text-paragraph-color);text-transform:var(--zn-text-paragraph-transform);letter-spacing:var(--zn-text-paragraph-letter-spacing,normal);display:flex;align-items:center;gap:10px;width:100%;color:rgb(var(--zn-color-success))}.and-rule::after{content:"";flex:1;height:1px;background:color-mix(in srgb,rgb(var(--zn-color-success)) 50%,transparent)}.or-label{font-family:var(--zn-font-sans);font-size:var(--zn-text-paragraph-font-size);font-weight:var(--zn-text-paragraph-font-weight);line-height:var(--zn-text-paragraph-line-height);color:var(--zn-text-paragraph-color);text-transform:var(--zn-text-paragraph-transform);letter-spacing:var(--zn-text-paragraph-letter-spacing,normal);margin:2px 0;color:rgb(var(--zn-color-error))}.condition{display:flex;flex-direction:column;gap:10px;width:100%}.condition__head{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%}.condition__name{font-family:var(--zn-font-sans);font-size:var(--zn-text-heading-section-font-size);font-weight:var(--zn-text-heading-section-font-weight);line-height:var(--zn-text-heading-section-line-height);color:var(--zn-text-heading-section-color);text-transform:var(--zn-text-heading-section-transform);letter-spacing:var(--zn-text-heading-section-letter-spacing,normal)}.condition__remove{flex:0 0 auto}.condition__row{display:flex;align-items:center;flex-wrap:wrap;gap:6px}.condition__row-label,.condition__suffix{font-size:0.75rem;color:rgb(var(--zn-color-muted-text));white-space:nowrap}.control{min-width:0}.control--operator{flex:1 1 0;min-width:120px}.control--number{flex:0 0 auto;width:80px}.control--unit{flex:1 1 0}.control--value{flex:1 1 0;min-width:100px}zn-select.control::part(display-input){text-overflow:ellipsis}.actions{display:flex;align-items:center;gap:8px;margin-top:2px;padding-top:16px;border-top:1px solid rgb(var(--zn-border-color))}`;var Yi=class Yi extends S{constructor(){super(...arguments);this.filters=[];this.value=[];this._draft=[];this._picker=null;this._search="";this._valueJson="";this._save=()=>{this._emit("flow-conditions-save",{conditions:JSON.parse(JSON.stringify(this._draft))})};this._cancel=()=>{this._emit("flow-conditions-cancel")}}willUpdate(t){if(super.willUpdate(t),t.has("value")){let r=JSON.stringify(this.value??[]);r!==this._valueJson&&(this._valueJson=r,this._draft=JSON.parse(r),this._picker=null,this._search="")}}_emit(t,r){this.dispatchEvent(new CustomEvent(t,{bubbles:!0,composed:!0,detail:r}))}_cloneDraft(){return this._draft.map(t=>t.map(r=>({...r,values:{...r.values}})))}_addCondition(t){let r={};t.fields.forEach(s=>{r[s.id]={...s.operators?.length?{operator:s.operators[0].value}:{},...s.value!==void 0?{value:s.value}:{},...s.units?.length?{unit:s.units[0].value}:{}}});let n=this._cloneDraft(),a=Math.min(this._picker??0,n.length);a===n.length&&n.push([]),n[a].push({filter:t.id,values:r}),this._draft=n,this._picker=null,this._search=""}_removeCondition(t,r){let n=this._cloneDraft();n[t].splice(r,1),this._draft=n.filter(a=>a.length)}_setField(t,r,n,a){let s=this._cloneDraft(),l=s[t][r];l.values[n]={...l.values[n],...a},this._draft=s}_renderPicker(){let t=this._search.trim().toLowerCase(),r=this.filters.filter(n=>!t||n.label.toLowerCase().includes(t));return u`
5244
+ `}};ht.styles=[rt.styles,_(r3)],c([B("zn-textarea")],ht.prototype,"textarea",2),c([B(".markdown-editor__preview")],ht.prototype,"previewEl",2),c([p()],ht.prototype,"name",2),c([p()],ht.prototype,"value",2),c([Te()],ht.prototype,"defaultValue",2),c([p()],ht.prototype,"label",2),c([p({attribute:"help-text"})],ht.prototype,"helpText",2),c([p()],ht.prototype,"placeholder",2),c([p({type:Number})],ht.prototype,"rows",2),c([p({reflect:!0,attribute:"view-mode"})],ht.prototype,"viewMode",2),c([p({attribute:"storage-key"})],ht.prototype,"storageKey",2),c([p({type:Boolean,reflect:!0})],ht.prototype,"required",2),c([p({type:Boolean,reflect:!0})],ht.prototype,"readonly",2),c([p({type:Boolean,reflect:!0})],ht.prototype,"disabled",2),c([p({type:Boolean,reflect:!0})],ht.prototype,"expanded",2),c([W("viewMode",{waitUntilFirstUpdate:!0})],ht.prototype,"handleViewModeChange",1),c([W("value",{waitUntilFirstUpdate:!0})],ht.prototype,"handleValueChange",1),c([W("markedReady",{waitUntilFirstUpdate:!0})],ht.prototype,"handleMarkedReady",1);var _R=ht;ht.define("zn-markdown-editor");var kR={},Kg=yt(class extends rr{constructor(){super(...arguments),this.ot=kR}render(o,i){return i()}update(o,[i,t]){if(Array.isArray(i)){if(Array.isArray(this.ot)&&this.ot.length===i.length&&i.every((r,n)=>r===this.ot[n]))return vt}else if(this.ot===i)return vt;return this.ot=Array.isArray(i)?Array.from(i):i,this.render(i,t)}});var SR={eq:"Is Equal To",neq:"Is Not Equal To",gt:"Greater Than",gte:"Greater Than or Equal To",lt:"Less Than",lte:"Less Than or Equal To",is:"Is","is-not":"Is Not",in:"Is One Of","not-in":"Is Not One Of",contains:"Contains","not-contains":"Does Not Contain","starts-with":"Starts With","ends-with":"Ends With",empty:"Is Empty","not-empty":"Is Not Empty",within:"Within the Last",before:"Before the Last",between:"Between",matches:"Matches"};function Wg(o){return o.label??SR[o.value]??o.value}var CR=[];function a3(o){let i=o.data?.conditions;return Array.isArray(i)?i:CR}var i3={id:"in"},Kh={id:"out"},id="__new__",ul="application/x-zn-flow-type",Gh;function Wh(){return Gh||(Gh=new Image,Gh.src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"),Gh}var bt=240,sr=60,Yg=bt+80,ER=Yg-bt,TR=40,$R=20,Qg=40,AR=40,LR=40,n3=240,MR=20,qR=20,IR=20,RR=240;function Xg(o,i,t,r=!1){let n=o.y+sr,a=n+Qg;if(t&&t.y>=n){if(t.y-n>RR)return a;let s=r?n+IR:a,l=Math.round((n+t.y)/2-i/2);return Math.max(s,Math.min(l,t.y-qR-i))}return a+AR}function Yh(o){let i=o.length*7.2,t=Math.max(1,Math.ceil(i/(n3-36)));return{w:Math.min(n3,Math.round(36+i)),h:LR+(t-1)*MR}}var Jt=20;function Dr(o){return Math.round(o/Jt)*Jt}var s3=10,DR=4,NR=20;function Jg(o,i){let t=o.m+i.m;return o.x<i.x+i.w+t&&i.x<o.x+o.w+t&&o.y<i.y+i.h+t&&i.y<o.y+o.h+t}function o3(o,i){return i?bt/2:o.label?Yh(o.label).w/2:$R}function nd(o,i,t=[]){let r=Zt(o,i(o.type)),n=o.x+bt/2;if(r.length<2)return r.map(()=>n);let a=r.map(m=>t.some(f=>f.source.node===o.id&&f.source.port===m.id)),s=[0];for(let m=1;m<r.length;m++){let f=a[m-1]&&a[m]?ER:TR,b=o3(r[m-1],a[m-1])+o3(r[m],a[m])+f;s.push(s[m-1]+Dr(b))}let l=s.filter((m,f)=>a[f]),d=l.length?l:s,h=(Math.min(...d)+Math.max(...d))/2;return s.map(m=>Math.round(n+m-h))}function rd(o,i,t,r){let n=[{x:o.x,y:o.y,w:bt,h:sr,m:s3}],a=Zt(o,i(o.type)),s=nd(o,i,r);return a.forEach((l,d)=>{if(!l.label)return;let h=Yh(l.label),m=r.find(b=>b.source.node===o.id&&b.source.port===l.id),f=m?t.find(b=>b.id===m.target.node):void 0;n.push({x:s[d]-h.w/2,y:Xg(o,h.h,f,a.length===1),w:h.w,h:h.h+NR,m:DR})}),n}function l3(o,i,t,r,n){let a=rd(o,t,r,n);return rd(i,t,r,n).some(s=>a.some(l=>Jg(l,s)))}function Qh(o,i,t,r){let n=rd(o,i,t,r).slice(1);return n.length?t.some(a=>a.id!==o.id&&rd(a,i,t,r).some(s=>n.some(l=>Jg(l,s)))):!1}function c3(o,i,t,r,n){let a={x:o.x,y:o.y,w:bt,h:sr,m:s3};return rd(i,t,r,n).some(s=>Jg(a,s))}var Zg=200,eb=120,d3=120,p3=80;function h3(o,i,t,r){return{x:o.x+bt*(t+1)/(r+1),y:o.y+(i==="in"?0:sr)}}function u3(){return{nodes:[],connections:[],notes:[]}}function Xh(o){return o?o.inputs??[i3]:[i3]}function tb(o){return o?o.outputs??[Kh]:[Kh]}function ia(o,i){return o.inputs??Xh(i)}function Zt(o,i){return o.outputs??tb(i)}function od(o,i){return ia(o,i)[0]?.id??null}function m3(o,i){let t=new Set,r=n=>{for(let a of o.connections)a.source.node===n&&!t.has(a.target.node)&&(t.add(a.target.node),r(a.target.node))};return r(i),t}function na(o,i){let t=new Set(o.map(h=>h.id)),r=new Map(o.map(h=>[h.id,[]])),n=new Set;for(let h of i)!t.has(h.source.node)||!t.has(h.target.node)||(r.get(h.source.node).push(h),n.add(h.target.node));let a=new Set,s=new Set,l=new Set,d=h=>{s.add(h),l.add(h);for(let m of r.get(h)??[])l.has(m.target.node)?a.add(m):s.has(m.target.node)||d(m.target.node);l.delete(h)};return o.filter(h=>!n.has(h.id)).forEach(h=>d(h.id)),o.forEach(h=>{s.has(h.id)||d(h.id)}),a}var f3=k`@keyframes rotate-gradient{from{--rotate:0deg}to{--rotate:360deg}}:host{text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-transform:none}*,*::before,*::after{box-sizing:border-box;border-width:0;border-style:solid;border-color:rgb(var(--zn-border-color))}[hidden]{display:none !important}.width-container,.form-container,.wide-form-container{height:100%;width:100%;margin:var(--zn-default-margin,0 auto)}.width-container{max-width:var(--zn-container)}.form-container{max-width:var(--zn-container-ph)}.wide-form-container{max-width:var(--zn-container-lg)}:host{display:block;font-size:0.8125rem}.editor{display:flex;flex-direction:column;gap:14px}.picker{display:flex;flex-direction:column;gap:10px;padding:12px;border:1px solid rgb(var(--zn-border-color));border-radius:8px;background:rgb(var(--zn-panel))}.picker__head{display:flex;align-items:center;justify-content:space-between;font-weight:600}.picker__back{flex:0 0 auto}.picker__list{display:flex;flex-direction:column}.picker__item{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;padding:10px 12px;margin-top:-1px;border:1px solid rgb(var(--zn-border-color));background:rgb(var(--zn-panel));color:rgb(var(--zn-text));font-size:0.8125rem;text-align:left;cursor:pointer}.picker__item:first-child{margin-top:0;border-top-left-radius:8px;border-top-right-radius:8px}.picker__item:last-child{border-bottom-left-radius:8px;border-bottom-right-radius:8px}.picker__item:hover{background:rgb(var(--zn-color-tab))}.picker__item-text{display:flex;flex-direction:column;gap:2px;min-width:0}.picker__item-label{font-weight:500}.picker__item-description{font-size:0.75rem;color:rgb(var(--zn-color-muted-text))}.picker__empty{margin:0;padding:10px 2px;font-size:0.75rem;color:rgb(var(--zn-color-muted-text))}.conditions{display:flex;flex-direction:column;align-items:flex-start;gap:12px}.group{display:flex;flex-direction:column;align-items:flex-start;gap:12px;width:100%;padding:14px;border:1px solid rgb(var(--zn-border-color));border-radius:8px;background:rgb(var(--zn-panel))}.and-rule{font-family:var(--zn-font-sans);font-size:var(--zn-text-paragraph-font-size);font-weight:var(--zn-text-paragraph-font-weight);line-height:var(--zn-text-paragraph-line-height);color:var(--zn-text-paragraph-color);text-transform:var(--zn-text-paragraph-transform);letter-spacing:var(--zn-text-paragraph-letter-spacing,normal);display:flex;align-items:center;gap:10px;width:100%;color:rgb(var(--zn-color-success))}.and-rule::after{content:"";flex:1;height:1px;background:color-mix(in srgb,rgb(var(--zn-color-success)) 50%,transparent)}.or-label{font-family:var(--zn-font-sans);font-size:var(--zn-text-paragraph-font-size);font-weight:var(--zn-text-paragraph-font-weight);line-height:var(--zn-text-paragraph-line-height);color:var(--zn-text-paragraph-color);text-transform:var(--zn-text-paragraph-transform);letter-spacing:var(--zn-text-paragraph-letter-spacing,normal);margin:2px 0;color:rgb(var(--zn-color-error))}.condition{display:flex;flex-direction:column;gap:10px;width:100%}.condition__head{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%}.condition__name{font-family:var(--zn-font-sans);font-size:var(--zn-text-heading-section-font-size);font-weight:var(--zn-text-heading-section-font-weight);line-height:var(--zn-text-heading-section-line-height);color:var(--zn-text-heading-section-color);text-transform:var(--zn-text-heading-section-transform);letter-spacing:var(--zn-text-heading-section-letter-spacing,normal)}.condition__remove{flex:0 0 auto}.condition__row{display:flex;align-items:center;flex-wrap:wrap;gap:6px}.condition__row-label,.condition__suffix{font-size:0.75rem;color:rgb(var(--zn-color-muted-text));white-space:nowrap}.control{min-width:0}.control--operator{flex:1 1 0;min-width:120px}.control--number{flex:0 0 auto;width:80px}.control--unit{flex:1 1 0}.control--value{flex:1 1 0;min-width:100px}zn-select.control::part(display-input){text-overflow:ellipsis}.actions{display:flex;align-items:center;gap:8px;margin-top:2px;padding-top:16px;border-top:1px solid rgb(var(--zn-border-color))}`;var Yi=class Yi extends S{constructor(){super(...arguments);this.filters=[];this.value=[];this._draft=[];this._picker=null;this._search="";this._valueJson="";this._save=()=>{this._emit("flow-conditions-save",{conditions:JSON.parse(JSON.stringify(this._draft))})};this._cancel=()=>{this._emit("flow-conditions-cancel")}}willUpdate(t){if(super.willUpdate(t),t.has("value")){let r=JSON.stringify(this.value??[]);r!==this._valueJson&&(this._valueJson=r,this._draft=JSON.parse(r),this._picker=null,this._search="")}}_emit(t,r){this.dispatchEvent(new CustomEvent(t,{bubbles:!0,composed:!0,detail:r}))}_cloneDraft(){return this._draft.map(t=>t.map(r=>({...r,values:{...r.values}})))}_addCondition(t){let r={};t.fields.forEach(s=>{r[s.id]={...s.operators?.length?{operator:s.operators[0].value}:{},...s.value!==void 0?{value:s.value}:{},...s.units?.length?{unit:s.units[0].value}:{}}});let n=this._cloneDraft(),a=Math.min(this._picker??0,n.length);a===n.length&&n.push([]),n[a].push({filter:t.id,values:r}),this._draft=n,this._picker=null,this._search=""}_removeCondition(t,r){let n=this._cloneDraft();n[t].splice(r,1),this._draft=n.filter(a=>a.length)}_setField(t,r,n,a){let s=this._cloneDraft(),l=s[t][r];l.values[n]={...l.values[n],...a},this._draft=s}_renderPicker(){let t=this._search.trim().toLowerCase(),r=this.filters.filter(n=>!t||n.label.toLowerCase().includes(t));return u`
5247
5245
  <div part="picker" class="picker">
5248
5246
  <div class="picker__head">
5249
5247
  <span>Add Filters</span>
@@ -5362,7 +5360,7 @@ Please report this to https://github.com/markedjs/marked.`,o){let r="<p>An error
5362
5360
  <zn-button class="actions__cancel" icon="x@lu" @click="${this._cancel}" panel-bg>Cancel</zn-button>
5363
5361
  </div>
5364
5362
  </div>
5365
- `}};Yi.styles=_(f3),Yi.dependencies={"zn-button":Ee,"zn-icon":oe,"zn-input":lt,"zn-option":We,"zn-select":Oe},c([p({attribute:!1})],Yi.prototype,"filters",2),c([p({attribute:!1})],Yi.prototype,"value",2),c([I()],Yi.prototype,"_draft",2),c([I()],Yi.prototype,"_picker",2),c([I()],Yi.prototype,"_search",2);var ml=Yi;var rb=ml;ml.define("zn-flow-branch-conditions");var g3=k`@keyframes rotate-gradient{from{--rotate:0deg}to{--rotate:360deg}}:host{text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-transform:none}*,*::before,*::after{box-sizing:border-box;border-width:0;border-style:solid;border-color:rgb(var(--zn-border-color))}[hidden]{display:none !important}.width-container,.form-container,.wide-form-container{height:100%;width:100%;margin:var(--zn-default-margin,0 auto)}.width-container{max-width:var(--zn-container)}.form-container{max-width:var(--zn-container-ph)}.wide-form-container{max-width:var(--zn-container-lg)}:host{--node-accent:rgb(var(--zn-color-primary));--port-size:11px;position:absolute;top:0;left:0;display:block;-webkit-user-select:none;-moz-user-select:none;user-select:none;touch-action:none}:host([dragging]) .card{cursor:grabbing}.card{position:relative;display:flex;flex-direction:column;justify-content:center;width:100%;height:100%;padding:0 10px;background:rgb(var(--zn-panel));border:1px solid rgb(var(--zn-border-color));border-radius:10px;box-shadow:0 1px 2px rgba(var(--zn-shadow),0.4);cursor:grab;transition:border-color 0.12s ease,box-shadow 0.12s ease}.card:hover{border-color:rgb(var(--zn-color-border-active))}.card.selected{border-color:var(--node-accent);box-shadow:0 0 0 2px color-mix(in srgb,var(--node-accent) 35%,transparent)}.card.link-target{border-color:rgb(var(--zn-color-primary));box-shadow:0 0 0 3px color-mix(in srgb,rgb(var(--zn-color-primary)) 30%,transparent)}.card.error{border-color:rgb(var(--zn-color-error));background:color-mix(in srgb,rgb(var(--zn-color-error)) 6%,rgb(var(--zn-panel)))}.body{display:flex;align-items:center;gap:10px}.icon-tile{display:flex;align-items:center;justify-content:center;flex:0 0 auto;width:36px;height:36px;border-radius:8px;color:var(--node-accent);background:color-mix(in srgb,var(--node-accent) 14%,transparent)}.text{display:flex;flex-direction:column;min-width:0;flex:1 1 auto}.text .title{font-size:0.8125rem;font-weight:600;color:rgb(var(--zn-text));white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.text .subtitle{font-size:0.75rem;color:rgb(var(--zn-color-muted-text));white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.menu{flex:0 0 auto}zn-menu-item.danger{color:rgb(var(--zn-color-error))}.ports{position:absolute;left:0;width:100%;height:0}.ports--in{top:0}.ports--out{bottom:0}.port{position:absolute;left:0;top:0;transform:translate(-50%,-50%);width:var(--port-size);height:var(--port-size);border-radius:50%;background:rgb(var(--zn-panel));border:2px solid var(--node-accent);box-sizing:border-box;pointer-events:none}.port--in{transition:transform 0.12s ease,background 0.12s ease,box-shadow 0.12s ease}:host([link-target]) .port--in{transform:translate(-50%,-50%) scale(1.4);background:rgb(var(--zn-color-primary));border-color:rgb(var(--zn-color-primary));box-shadow:0 0 0 4px color-mix(in srgb,rgb(var(--zn-color-primary)) 25%,transparent)}.port--out{pointer-events:auto;cursor:pointer;transition:transform 0.12s ease,background 0.12s ease,box-shadow 0.12s ease}.port--out:hover{transform:translate(-50%,-50%) scale(1.4);background:var(--node-accent);box-shadow:0 0 0 4px color-mix(in srgb,var(--node-accent) 25%,transparent)}.port-wrap{position:absolute}.port-label{position:absolute;top:calc(var(--port-size) / 2 + 3px);left:8px;font-size:0.625rem;font-weight:600;letter-spacing:0.02em;color:rgb(var(--zn-color-muted-text));white-space:nowrap;pointer-events:none}`;var ui=class extends S{constructor(){super(...arguments);this.selected=!1;this.error=!1;this.dragging=!1;this.linkTarget=!1;this._onBodyPointerDown=t=>{if(t.button!==0)return;let r=t.target;r.closest(".port")||r.closest("zn-dropdown")||(t.stopPropagation(),this._emit("flow-node-select",{nodeId:this.node.id}),this._emit("flow-node-grab",{nodeId:this.node.id,clientX:t.clientX,clientY:t.clientY}))}}updated(t){super.updated(t),this.style.width=`${bt}px`,this.style.height=`${lr}px`,this.style.setProperty("--node-accent",this.type?.color??"rgb(var(--zn-color-primary))")}get nodeTitle(){return this.node?.label??this.type?.label??this.node?.type??"Node"}get nodeSubtitle(){let t=this.node?.data?.subtitle??this.node?.data?.description;return typeof t=="string"?t:this.type?.description??""}_emit(t,r){this.dispatchEvent(new CustomEvent(t,{bubbles:!0,composed:!0,detail:r}))}_action(t){this._emit("flow-node-action",{nodeId:this.node.id,action:t})}_renderPorts(t,r){let n=t.length;return u`
5363
+ `}};Yi.styles=_(f3),Yi.dependencies={"zn-button":Ee,"zn-icon":oe,"zn-input":lt,"zn-option":We,"zn-select":Oe},c([p({attribute:!1})],Yi.prototype,"filters",2),c([p({attribute:!1})],Yi.prototype,"value",2),c([I()],Yi.prototype,"_draft",2),c([I()],Yi.prototype,"_picker",2),c([I()],Yi.prototype,"_search",2);var ml=Yi;var rb=ml;ml.define("zn-flow-branch-conditions");var g3=k`@keyframes rotate-gradient{from{--rotate:0deg}to{--rotate:360deg}}:host{text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-transform:none}*,*::before,*::after{box-sizing:border-box;border-width:0;border-style:solid;border-color:rgb(var(--zn-border-color))}[hidden]{display:none !important}.width-container,.form-container,.wide-form-container{height:100%;width:100%;margin:var(--zn-default-margin,0 auto)}.width-container{max-width:var(--zn-container)}.form-container{max-width:var(--zn-container-ph)}.wide-form-container{max-width:var(--zn-container-lg)}:host{--node-accent:rgb(var(--zn-color-primary));--port-size:11px;position:absolute;top:0;left:0;display:block;-webkit-user-select:none;-moz-user-select:none;user-select:none;touch-action:none}:host([dragging]) .card{cursor:grabbing}.card{position:relative;display:flex;flex-direction:column;justify-content:center;width:100%;height:100%;padding:0 10px;background:rgb(var(--zn-panel));border:1px solid rgb(var(--zn-border-color));border-radius:10px;box-shadow:0 1px 2px rgba(var(--zn-shadow),0.4);cursor:grab;transition:border-color 0.12s ease,box-shadow 0.12s ease}.card:hover{border-color:rgb(var(--zn-color-border-active))}.card.selected{border-color:var(--node-accent);box-shadow:0 0 0 2px color-mix(in srgb,var(--node-accent) 35%,transparent)}.card.link-target{border-color:rgb(var(--zn-color-primary));box-shadow:0 0 0 3px color-mix(in srgb,rgb(var(--zn-color-primary)) 30%,transparent)}.card.error{border-color:rgb(var(--zn-color-error));background:color-mix(in srgb,rgb(var(--zn-color-error)) 6%,rgb(var(--zn-panel)))}.body{display:flex;align-items:center;gap:10px}.icon-tile{display:flex;align-items:center;justify-content:center;flex:0 0 auto;width:36px;height:36px;border-radius:8px;color:var(--node-accent);background:color-mix(in srgb,var(--node-accent) 14%,transparent)}.text{display:flex;flex-direction:column;min-width:0;flex:1 1 auto}.text .title{font-size:0.8125rem;font-weight:600;color:rgb(var(--zn-text));white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.text .subtitle{font-size:0.75rem;color:rgb(var(--zn-color-muted-text));white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.menu{flex:0 0 auto}zn-menu-item.danger{color:rgb(var(--zn-color-error))}.ports{position:absolute;left:0;width:100%;height:0}.ports--in{top:0}.ports--out{bottom:0}.port{position:absolute;left:0;top:0;transform:translate(-50%,-50%);width:var(--port-size);height:var(--port-size);border-radius:50%;background:rgb(var(--zn-panel));border:2px solid var(--node-accent);box-sizing:border-box;pointer-events:none}.port--in{transition:transform 0.12s ease,background 0.12s ease,box-shadow 0.12s ease}:host([link-target]) .port--in{transform:translate(-50%,-50%) scale(1.4);background:rgb(var(--zn-color-primary));border-color:rgb(var(--zn-color-primary));box-shadow:0 0 0 4px color-mix(in srgb,rgb(var(--zn-color-primary)) 25%,transparent)}.port--out{pointer-events:auto;cursor:pointer;transition:transform 0.12s ease,background 0.12s ease,box-shadow 0.12s ease}.port--out:hover{transform:translate(-50%,-50%) scale(1.4);background:var(--node-accent);box-shadow:0 0 0 4px color-mix(in srgb,var(--node-accent) 25%,transparent)}.port-wrap{position:absolute}.port-label{position:absolute;top:calc(var(--port-size) / 2 + 3px);left:8px;font-size:0.625rem;font-weight:600;letter-spacing:0.02em;color:rgb(var(--zn-color-muted-text));white-space:nowrap;pointer-events:none}`;var ui=class extends S{constructor(){super(...arguments);this.selected=!1;this.error=!1;this.dragging=!1;this.linkTarget=!1;this._onBodyPointerDown=t=>{if(t.button!==0)return;let r=t.target;r.closest(".port")||r.closest("zn-dropdown")||(t.stopPropagation(),this._emit("flow-node-select",{nodeId:this.node.id}),this._emit("flow-node-grab",{nodeId:this.node.id,clientX:t.clientX,clientY:t.clientY}))}}updated(t){super.updated(t),this.style.width=`${bt}px`,this.style.height=`${sr}px`,this.style.setProperty("--node-accent",this.type?.color??"rgb(var(--zn-color-primary))")}get nodeTitle(){return this.node?.label??this.type?.label??this.node?.type??"Node"}get nodeSubtitle(){let t=this.node?.data?.subtitle??this.node?.data?.description;return typeof t=="string"?t:this.type?.description??""}_emit(t,r){this.dispatchEvent(new CustomEvent(t,{bubbles:!0,composed:!0,detail:r}))}_action(t){this._emit("flow-node-action",{nodeId:this.node.id,action:t})}_renderPorts(t,r){let n=t.length;return u`
5366
5364
  <div class="ports ports--${r}">
5367
5365
  ${t.map((a,s)=>{let l=`${100*(s+1)/(n+1)}%`;return u`
5368
5366
  <div class="port-wrap" style="left:${l}">
@@ -5371,7 +5369,7 @@ Please report this to https://github.com/markedjs/marked.`,o){let r="<p>An error
5371
5369
  </div>
5372
5370
  `})}
5373
5371
  </div>
5374
- `}render(){if(!this.node)return u``;let t=ia(this.node,this.type),r=er(this.node,this.type);return u`
5372
+ `}render(){if(!this.node)return u``;let t=ia(this.node,this.type),r=Zt(this.node,this.type);return u`
5375
5373
  <div
5376
5374
  part="base"
5377
5375
  class="${M({card:!0,selected:this.selected,error:this.error,"link-target":this.linkTarget})}"
@@ -5411,11 +5409,11 @@ Please report this to https://github.com/markedjs/marked.`,o){let r="<p>An error
5411
5409
  </div>
5412
5410
  </div>`:""}
5413
5411
  </div>
5414
- `}};ui.styles=_(g3),ui.dependencies={"zn-icon":oe,"zn-button":Ee,"zn-dropdown":ur,"zn-menu":on,"zn-menu-item":xi},c([p({attribute:!1})],ui.prototype,"node",2),c([p({attribute:!1})],ui.prototype,"type",2),c([p({type:Boolean,reflect:!0})],ui.prototype,"selected",2),c([p({type:Boolean,reflect:!0})],ui.prototype,"error",2),c([p({type:Boolean,reflect:!0})],ui.prototype,"dragging",2),c([p({type:Boolean,reflect:!0,attribute:"link-target"})],ui.prototype,"linkTarget",2);var b3=ui;ui.define("zn-flow-node");var v3=k`@keyframes rotate-gradient{from{--rotate:0deg}to{--rotate:360deg}}:host{text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-transform:none}*,*::before,*::after{box-sizing:border-box;border-width:0;border-style:solid;border-color:rgb(var(--zn-border-color))}[hidden]{display:none !important}.width-container,.form-container,.wide-form-container{height:100%;width:100%;margin:var(--zn-default-margin,0 auto)}.width-container{max-width:var(--zn-container)}.form-container{max-width:var(--zn-container-ph)}.wide-form-container{max-width:var(--zn-container-lg)}:host{display:block;position:relative;width:100%;height:100%;overflow:hidden}.viewport{position:absolute;inset:0;overflow:hidden;background-color:rgb(var(--zn-color-body));background-image:radial-gradient(rgb(var(--zn-color-border)) 1px,transparent 1px);background-size:20px 20px;cursor:grab;touch-action:none}.viewport.grabbing,.viewport.grabbing *{cursor:grabbing !important}.viewport.connecting,.viewport.connecting *{cursor:crosshair !important}.viewport.resizing,.viewport.resizing *{cursor:nwse-resize !important}.viewport.linking{cursor:crosshair}.viewport.step-dragging .add-point{color:rgb(var(--zn-panel));background:rgb(var(--zn-color-primary));border-style:solid;box-shadow:0 0 0 4px color-mix(in srgb,rgb(var(--zn-color-primary)) 22%,transparent)}.connections{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;overflow:visible}.connections .wire{fill:none;stroke:rgb(var(--zn-color-primary));stroke-width:2}.connections .wire--stub{stroke:rgb(var(--zn-color-border-active));stroke-dasharray:4 4}.connections .wire--preview{stroke-dasharray:6 4}.connections .wire--loop{stroke:rgb(var(--zn-color-warning))}.connections marker path{fill:rgb(var(--zn-color-primary))}.connections marker#flow-arrow-loop path{fill:rgb(var(--zn-color-warning))}.add-point{position:absolute;top:0;left:0;display:flex;align-items:center;justify-content:center;width:24px;height:24px;margin:-12px;padding:0;border-radius:50%;color:rgb(var(--zn-color-primary));background:rgb(var(--zn-panel));border:1px dashed rgb(var(--zn-color-border-active));cursor:pointer;transition:background 0.12s ease,color 0.12s ease}.add-point:hover{color:rgb(var(--zn-panel));background:rgb(var(--zn-color-primary));border-style:solid}.add-point--target{color:rgb(var(--zn-panel));background:rgb(var(--zn-color-primary));border-style:solid;box-shadow:0 0 0 4px color-mix(in srgb,rgb(var(--zn-color-primary)) 25%,transparent)}.add-point--wire{width:20px;height:20px;margin:-10px}.layer{position:absolute;top:0;left:0;transform-origin:0 0;width:0;height:0}.node-pos{position:absolute;top:0;left:0}.branch-pill{display:flex;align-items:center;justify-content:center;width:-moz-max-content;width:max-content;max-width:240px;box-sizing:border-box;text-align:center;overflow-wrap:anywhere;overflow:hidden;padding:0 18px;border-radius:10px;font:inherit;font-size:0.8125rem;font-weight:600;line-height:20px;color:rgb(var(--zn-text));background:color-mix(in srgb,rgb(var(--zn-color-primary)) 8%,rgb(var(--zn-panel)));border:1px solid color-mix(in srgb,rgb(var(--zn-color-primary)) 45%,transparent);cursor:pointer;transition:border-color 0.12s ease,box-shadow 0.12s ease}.branch-pill:hover{border-color:rgb(var(--zn-color-primary));box-shadow:0 1px 3px rgba(var(--zn-shadow),0.4)}.branch-pill--selected{border-color:rgb(var(--zn-color-primary));background:color-mix(in srgb,rgb(var(--zn-color-primary)) 16%,rgb(var(--zn-panel)))}.branch-pill--loop{background:color-mix(in srgb,rgb(var(--zn-color-warning)) 10%,rgb(var(--zn-panel)));border-color:color-mix(in srgb,rgb(var(--zn-color-warning)) 55%,transparent)}.branch-pill--loop:hover{border-color:rgb(var(--zn-color-warning))}.branch-pill--loop.branch-pill--selected{border-color:rgb(var(--zn-color-warning));background:color-mix(in srgb,rgb(var(--zn-color-warning)) 18%,rgb(var(--zn-panel)))}.branch-pill-wrap{position:absolute;top:0;left:0;transform:translateX(-50%);display:flex;align-items:stretch}.branch-pill-wrap::after{content:"";position:absolute;left:100%;top:0;width:40px;height:100%}.branch-pill-wrap:hover .branch-pill-delete{opacity:1;transform:translate(0,-50%);pointer-events:auto;transition-delay:0.15s}.branch-pill-port{position:absolute;z-index:1;left:50%;bottom:0;transform:translate(-50%,50%);width:11px;height:11px;box-sizing:border-box;border-radius:50%;background:rgb(var(--zn-panel));border:2px solid rgb(var(--zn-color-primary));cursor:pointer;transition:transform 0.12s ease,box-shadow 0.12s ease}.branch-pill-port:hover{transform:translate(-50%,50%) scale(1.35);box-shadow:0 0 0 4px color-mix(in srgb,rgb(var(--zn-color-primary)) 20%,transparent)}.branch-pill-delete{position:absolute;z-index:1;left:calc(100% + 8px);top:50%;transform:translate(-10px,-50%);display:flex;align-items:center;justify-content:center;width:24px;height:24px;padding:0;border:none;border-radius:50%;background:rgb(var(--zn-color-error));color:white;cursor:pointer;opacity:0;pointer-events:none;transition:opacity 0.15s ease,transform 0.15s ease}.branch-pill-delete:hover{filter:brightness(1.1)}.drop-ghost{position:absolute;top:0;left:0;display:flex;align-items:center;gap:10px;padding:0 12px;border:2px dashed rgb(var(--zn-color-primary));border-radius:10px;background:color-mix(in srgb,rgb(var(--zn-color-primary)) 10%,rgb(var(--zn-panel)));opacity:0.9;pointer-events:none}.drop-ghost__icon{--node-accent:rgb(var(--zn-color-primary));display:flex;align-items:center;justify-content:center;flex:0 0 auto;width:36px;height:36px;border-radius:8px;color:var(--node-accent);background:color-mix(in srgb,var(--node-accent) 16%,rgb(var(--zn-panel)))}.drop-ghost__label{font-size:0.8125rem;font-weight:600;color:rgb(var(--zn-text));white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.toolbar{position:absolute;top:16px;display:flex;align-items:center;gap:2px;padding:3px;background:rgb(var(--zn-panel));border:1px solid rgb(var(--zn-border-color));border-radius:8px;box-shadow:0 1px 3px rgba(var(--zn-shadow),0.4);z-index:2}.toolbar--history{left:16px}.toolbar--zoom{right:16px}.bin{position:absolute;right:16px;bottom:16px;z-index:2;display:flex;align-items:center;justify-content:center;width:48px;height:48px;border-radius:12px;color:rgb(var(--zn-color-muted-text));background:rgb(var(--zn-panel));border:1px dashed rgb(var(--zn-color-border-active));box-shadow:0 1px 3px rgba(var(--zn-shadow),0.4);transition:background 0.12s ease,color 0.12s ease,transform 0.12s ease}.bin--over{color:rgb(var(--zn-panel));background:rgb(var(--zn-color-error));border-style:solid;border-color:rgb(var(--zn-color-error));transform:scale(1.12)}.note{position:absolute;display:flex;flex-direction:column;background:#fef9c3;border:1px solid #fde68a;border-radius:4px;box-shadow:0 2px 6px rgba(0,0,0,0.12)}.note__resize{position:absolute;right:0;bottom:0;width:16px;height:16px;cursor:nwse-resize;background:linear-gradient(135deg,transparent 0 50%,#d9c64a 50% 60%,transparent 60% 70%,#d9c64a 70% 80%,transparent 80%)}.note__bar{display:flex;justify-content:flex-end;height:20px;cursor:grab}.note__close{width:20px;height:20px;padding:0;font-size:14px;line-height:1;color:#92400e;background:transparent;cursor:pointer}.note__text{flex:1;margin:0;padding:0 10px 10px;resize:none;border:none;outline:none;background:transparent;font:inherit;font-size:0.8125rem;color:#713f12}`;var ib=.25,y3=2,x3=.15,nb=40,OR=20,PR=48,ob=20,w3=10,HR=8,z3=40,FR=20,ad=ul,kt=class kt extends S{constructor(){super(...arguments);this.nodes=[];this.connections=[];this.notes=[];this.selectedNodeId=null;this.errorNodes=new Set;this.movingNodeId=null;this.dragType=null;this.selectedBranch=null;this.zoom=1;this.panX=0;this.panY=0;this.drag=null;this._overBin=!1;this._dropGhost=null;this._linking=null;this._linkPos=null;this._linkTarget=null;this._linkClient=null;this._linkScrollRaf=null;this._dragMoved=!1;this._viewInitialised=!1;this._onWheel=t=>{if(t.composedPath().some(d=>d instanceof HTMLTextAreaElement))return;t.preventDefault(),this._viewInitialised=!0;let r=t.deltaMode===1?16:t.deltaMode===2?100:1,n=t.deltaX*r,a=t.deltaY*r;if(t.ctrlKey||t.metaKey){let d=Math.min(y3,Math.max(ib,this.zoom*Math.exp(-a*.0015)));if(d===this.zoom)return;let h=this.getBoundingClientRect(),m=t.clientX-h.left,f=t.clientY-h.top,b=(m-this.panX)/this.zoom,g=(f-this.panY)/this.zoom;this.zoom=+d.toFixed(3),this.panX=Math.round(m-b*this.zoom),this.panY=Math.round(f-g*this.zoom);return}let s=t.shiftKey&&!n?a:n,l=t.shiftKey&&!n?0:a;this.panX-=Math.round(s),this.panY-=Math.round(l)};this._onBackgroundPointerDown=t=>{if(t.button===1){t.preventDefault(),this._viewInitialised=!0,this.drag={kind:"pan",ox:t.clientX,oy:t.clientY,px:this.panX,py:this.panY},this._setupWindow("grabbing");return}if(t.button===0){if(this._viewInitialised=!0,this._linking){let r=this._linking,n=this._linkTarget;if(this._cancelLink(),n){this._emit("flow-link-assign",{nodeId:r.nodeId,port:r.port,targetId:n});return}}this._emit("flow-node-select",{nodeId:null}),this.drag={kind:"pan",ox:t.clientX,oy:t.clientY,px:this.panX,py:this.panY},this._setupWindow("grabbing")}};this._onNodeGrab=t=>{if(this._linking){let a=this._linking;this._cancelLink(),a.nodeId!==t.detail.nodeId&&this._emit("flow-link-assign",{nodeId:a.nodeId,port:a.port,targetId:t.detail.nodeId});return}let r=this.nodes.find(a=>a.id===t.detail.nodeId);if(!r)return;let n=this.screenToCanvas(t.detail.clientX,t.detail.clientY);this.drag={kind:"node",id:r.id,offX:n.x-r.x,offY:n.y-r.y,startX:r.x,startY:r.y},this._dragMoved=!1,this._setupWindow("grabbing")};this._onNodeSelect=t=>{this._linking&&t.detail.nodeId&&t.stopPropagation()};this._onPortClick=t=>{let{nodeId:r}=t.detail;if(this._linking&&this._linking.nodeId!==r){let s=this._linking;this._cancelLink(),this._emit("flow-link-assign",{nodeId:s.nodeId,port:s.port,targetId:r});return}let n=this.nodes.find(s=>s.id===r);if(!n)return;let a=er(n,this._typeFor(n)).find(s=>!this.connections.some(l=>l.source.node===r&&l.source.port===s.id));!a&&this._typeFor(n)?.fixedOutputs||this._startLink(r,a?.id??id)};this._onLinkPointerMove=t=>{this._linkClient={x:t.clientX,y:t.clientY},this._updateLinkFromClient(t.clientX,t.clientY)};this._linkEdgeScroll=()=>{if(this._linkScrollRaf=null,!!this._linking){if(this._linkClient){let t=this.getBoundingClientRect(),r=48,n=14,a=m=>Math.min(n,Math.ceil((r-m)/r*n)),{x:s,y:l}=this._linkClient,d=0,h=0;s<t.left+r?d=a(s-t.left):s>t.right-r&&(d=-a(t.right-s)),l<t.top+r?h=a(l-t.top):l>t.bottom-r&&(h=-a(t.bottom-l)),(d||h)&&(this.panX+=d,this.panY+=h,this._updateLinkFromClient(s,l))}this._linkScrollRaf=requestAnimationFrame(this._linkEdgeScroll)}};this._onLinkKeyDown=t=>{t.key==="Escape"&&this._cancelLink()};this._cancelLink=()=>{this._linking&&(this._linking=null,this._linkPos=null,this._linkTarget=null,this._linkClient=null,this._linkScrollRaf!==null&&(cancelAnimationFrame(this._linkScrollRaf),this._linkScrollRaf=null),window.removeEventListener("pointermove",this._onLinkPointerMove),window.removeEventListener("keydown",this._onLinkKeyDown),window.removeEventListener("blur",this._cancelLink))};this._onPointerMove=t=>{if(!this.drag)return;if(this.drag.kind==="pan"){this.panX=this.drag.px+(t.clientX-this.drag.ox),this.panY=this.drag.py+(t.clientY-this.drag.oy);return}let r=this.screenToCanvas(t.clientX,t.clientY);if(this.drag.kind==="node"){this._overBin=this._binHit(t.clientX,t.clientY);let n=this.nodes.find(a=>a.id===this.drag.id);if(n){let a={x:Dr(r.x-this.drag.offX),y:Dr(r.y-this.drag.offY)},s=new Set(this.connections.filter(h=>h.target.node===n.id&&h.source.node!==n.id).map(h=>h.source.node)),l=h=>{let m={...n,...h},f=this.nodes.map(g=>g.id===n.id?m:g),b=g=>this.registry?.get(g);return f.some(g=>g!==m&&l3(m,g,b,f,this.connections))?!1:![...s].some(g=>{let v=f.find(y=>y.id===g);return!!v&&Qh(v,b,f,this.connections)})},d=l(a)?a:l({x:a.x,y:n.y})?{x:a.x,y:n.y}:l({x:n.x,y:a.y})?{x:n.x,y:a.y}:null;d&&(d.x!==n.x||d.y!==n.y)&&(this._dragMoved||this._beginMove(),n.x=d.x,n.y=d.y,this.requestUpdate())}}else if(this.drag.kind==="note"){let n=this.notes.find(a=>a.id===this.drag.id);n&&(this._dragMoved||this._beginMove(),n.x=Dr(r.x-this.drag.offX),n.y=Dr(r.y-this.drag.offY),this.requestUpdate())}else if(this.drag.kind==="note-resize"){let n=this.notes.find(a=>a.id===this.drag.id);n&&(this._dragMoved||this._beginMove(),n.width=Math.max(d3,Dr(r.x-n.x)),n.height=Math.max(p3,Dr(r.y-n.y)),this.requestUpdate())}};this._onPointerUp=()=>{let t=this.drag,r=this._overBin;if(this.drag=null,this._overBin=!1,this._teardownWindow(),!!t){if(t.kind==="node"&&this._dragMoved&&r){let n=this.nodes.find(a=>a.id===t.id);n&&(n.x=t.startX,n.y=t.startY),this._emit("flow-node-action",{nodeId:t.id,action:"delete"});return}(t.kind==="node"||t.kind==="note"||t.kind==="note-resize")&&this._dragMoved&&this._emit("flow-change-commit")}};this._onViewportDragOver=t=>{if(!t.dataTransfer?.types.includes(ad))return;this._viewInitialised=!0,t.preventDefault();let r=t.composedPath().some(a=>a instanceof Element&&a.classList.contains("add-point"));t.dataTransfer.dropEffect=r?"copy":"move";let n=this.screenToCanvas(t.clientX,t.clientY);this._dropGhost={x:Dr(n.x-bt/2),y:Dr(n.y-lr/2)}};this._onViewportDragLeave=t=>{let r=this.getBoundingClientRect();(t.clientX<r.left||t.clientX>r.right||t.clientY<r.top||t.clientY>r.bottom)&&(this._dropGhost=null)};this._clearDropGhost=()=>{this._dropGhost=null};this._onAddPointDragOver=t=>{t.dataTransfer?.types.includes(ad)&&(t.preventDefault(),t.dataTransfer.dropEffect="copy")};this._onBinDragOver=t=>{t.dataTransfer?.types.includes(ad)&&(t.preventDefault(),t.stopPropagation(),t.dataTransfer.dropEffect="move",this._overBin=!0,this._dropGhost=null)};this._onBinDragLeave=()=>{this._overBin=!1};this._onBinDrop=t=>{t.preventDefault(),t.stopPropagation(),this._overBin=!1,this._dropGhost=null}}connectedCallback(){super.connectedCallback(),this.addEventListener("flow-node-grab",this._onNodeGrab),this.addEventListener("flow-node-select",this._onNodeSelect),this.addEventListener("flow-port-click",this._onPortClick),this.addEventListener("wheel",this._onWheel,{passive:!1})}disconnectedCallback(){this.removeEventListener("flow-node-grab",this._onNodeGrab),this.removeEventListener("flow-node-select",this._onNodeSelect),this.removeEventListener("flow-port-click",this._onPortClick),this.removeEventListener("wheel",this._onWheel),this._cancelLink(),this._teardownWindow(),super.disconnectedCallback()}updated(t){if(super.updated(t),this.style.setProperty("--flow-zoom",String(this.zoom)),t.has("dragType")&&!this.dragType&&(this._dropGhost=null),!this._viewInitialised&&this.nodes.length){let r=this.getBoundingClientRect();r.width&&r.height&&(this._viewInitialised=!0,this._resetView())}}_emit(t,r){this.dispatchEvent(new CustomEvent(t,{bubbles:!0,composed:!0,detail:r}))}screenToCanvas(t,r){let n=this.getBoundingClientRect();return{x:(t-n.left-this.panX)/this.zoom,y:(r-n.top-this.panY)/this.zoom}}_typeFor(t){return this.registry?.get(t.type)}_setupWindow(t=""){window.addEventListener("pointermove",this._onPointerMove),window.addEventListener("pointerup",this._onPointerUp),t&&(document.body.style.cursor=t)}_teardownWindow(){window.removeEventListener("pointermove",this._onPointerMove),window.removeEventListener("pointerup",this._onPointerUp),document.body.style.cursor=""}_onBranchPortClick(t,r){if(this._linking){let n=this._linking;this._cancelLink(),n.nodeId!==t&&this._emit("flow-link-assign",{nodeId:n.nodeId,port:n.port,targetId:t});return}this._startLink(t,r)}_startLink(t,r){this._linking={nodeId:t,port:r},this._linkPos=null,this._linkClient=null,window.addEventListener("pointermove",this._onLinkPointerMove),window.addEventListener("keydown",this._onLinkKeyDown),window.addEventListener("blur",this._cancelLink),this._linkScrollRaf=requestAnimationFrame(this._linkEdgeScroll)}_updateLinkFromClient(t,r){let n=this.screenToCanvas(t,r);this._linkPos=n;let a=this._linking;if(!a)return;let s=12,l=this.nodes.find(d=>d.id!==a.nodeId&&n.x>=d.x-s&&n.x<=d.x+bt+s&&n.y>=d.y-s&&n.y<=d.y+lr+s&&ia(d,this._typeFor(d)).length>0);this._linkTarget=l?.id??null}_binHit(t,r){let n=this.shadowRoot?.querySelector(".bin")?.getBoundingClientRect();return!!n&&t>=n.left&&t<=n.right&&r>=n.top&&r<=n.bottom}_beginMove(){this._dragMoved=!0,this._emit("flow-interaction-start")}_outputLayout(t){let r=er(t,this._typeFor(t)),n=t.x+bt/2,a=t.y+lr,s=a+Qg,l=nd(t,h=>this.registry?.get(h),this.connections),d=r.map((h,m)=>{let f=this.connections.find(E=>E.source.node===t.id&&E.source.port===h.id),b=f?this.nodes.find(E=>E.id===f.target.node):void 0,g=l[m],v=h.label?Yh(h.label).h:0,y=h.label?Xg(t,v,b,r.length===1):null,z=y===null?s:y+v;return{port:h,conn:f,child:b,x:g,pillTop:y,pillH:v,exitY:z}});return{cx:n,by:a,busY:s,branches:d}}_inputAnchor(t,r){let n=ia(t,this._typeFor(t)),a=Math.max(n.findIndex(s=>s.id===r),0);return{x:h3(t,"in",a,n.length).x,y:t.y}}_elbowMidOffsets(){let t=new Map;for(let n of this.nodes){let{branches:a}=this._outputLayout(n);for(let s of a){if(!s.conn||!s.child)continue;let{x:l,y:d}=this._inputAnchor(s.child,s.conn.target.port);if(l===s.x||d-ob<s.exitY)continue;let h=Dr((s.exitY+d)/2),m=`${s.conn.target.node}:${s.conn.target.port}`,f=t.get(h)??new Map;t.set(h,f),f.set(m,[...f.get(m)??[],s.conn.id])}}let r=new Map;for(let n of t.values()){if(n.size<2)continue;let a=[...n.keys()].sort();a.forEach((s,l)=>{let d=(l-Math.floor((a.length-1)/2))*FR;n.get(s).forEach(h=>r.set(h,d))})}return r}_segmentBlocked(t,r,n,a=!0){let l=a?PR:8,d=Math.min(t.x,r.x),h=Math.max(t.x,r.x),m=Math.min(t.y,r.y),f=Math.max(t.y,r.y);return this.nodes.some(b=>!n.has(b.id)&&d<b.x+bt+8&&h>b.x-8&&m<b.y+lr+8&&f>b.y-l)}_routeClear(t,r,n=!0){for(let a=0;a<t.length-1;a++)if(this._segmentBlocked(t[a],t[a+1],r,n))return!1;return!0}_routePoints(t,r,n,a=0,s,l=!1){let{x:d,y:h}=this._inputAnchor(r,n),m=new Set(s?[r.id,s]:[r.id]),f=h-ob>=t.y?this._forwardRoutes(t,d,h,a,m):this._aroundRoutes(t,d,h,m,l);for(let b of[!0,!1])for(let g of f)if(this._routeClear(g,m,b))return g;return f[0]}_forwardRoutes(t,r,n,a,s){let l=[],d=Math.round((t.y+n)/2)+a,h=n-t.y,m=Math.min(n-12,Math.ceil((t.y+h/4)/Zt)*Zt),f=Math.max(m,Math.floor((n-h/4)/Zt)*Zt),b=y=>Math.max(m,Math.min(f,y));if(r===t.x)l.push([t,{x:r,y:n}]);else for(let y=0;y<=20;y++)for(let z of y===0?[d]:[d+y*Zt,d-y*Zt]){let E=b(z);E!==z&&y>0||l.push([t,{x:t.x,y:E},{x:r,y:E},{x:r,y:n}])}l.push(...this._aroundRoutes(t,r,n,s,!1));let g=Math.floor(h/2/10)*10,v=Math.max(10,Math.round(h/4/10)*10);for(let y=0;y<=12;y++)for(let z of y===0?[v]:[v+y*10,v-y*10]){if(z<10||z>g)continue;let E=t.y+z,N=n-z;if(!(N<E))for(let U=1;U<=14;U++)for(let R of[1,-1]){let C=t.x+R*U*Zt;l.push([t,{x:t.x,y:E},{x:C,y:E},{x:C,y:N},{x:r,y:N},{x:r,y:n}])}}return l}_aroundRoutes(t,r,n,a,s){let l=t.y+OR,d=n-ob,h=this.nodes.filter(y=>!a.has(y.id)&&y.y+lr>Math.min(l,d)-Zt&&y.y<Math.max(l,d)+Zt);if(!h.length)return[];let m=Math.max(...h.map(y=>y.x+bt))+z3,f=Math.min(...h.map(y=>y.x))-z3,b=y=>Math.abs(y-t.x)+Math.abs(y-r),g=s?b(m)<=b(f):r>=(f+m)/2,v=[];for(let y of g?[1,-1]:[-1,1]){let z=y>0?m:f;for(let E=0;E<=20;E++){let N=z+y*E*Zt;v.push([t,{x:t.x,y:l},{x:N,y:l},{x:N,y:d},{x:r,y:d},{x:r,y:n}])}}return v}static _pathFrom(t){return t.map((r,n)=>`${n===0?"M":"L"} ${r.x} ${r.y}`).join(" ")}_addPoints(){if(!this.movingNodeId&&!this.dragType)return[];let t=[];for(let r of this.nodes){let{branches:n}=this._outputLayout(r);n.forEach(a=>{a.conn||t.push({nodeId:r.id,port:a.port.id,px:a.x,py:a.exitY+nb})})}return t}_wirePoints(){if(this.movingNodeId)return[];let t=this._elbowMidOffsets(),r=na(this.nodes,this.connections),n=[];for(let d of this.nodes){let{branches:h}=this._outputLayout(d);h.forEach(m=>{if(!m.conn||!m.child)return;let f=t.get(m.conn.id)??0,b=this._routePoints({x:m.x,y:m.exitY},m.child,m.conn.target.port,f,d.id,r.has(m.conn)),g=0,v=-1;for(let $=0;$<b.length-1;$++){let L=Math.abs(b[$+1].x-b[$].x)+Math.abs(b[$+1].y-b[$].y);L>v&&(v=L,g=$)}let y=b[g],z=b[g+1],E=Math.abs(z.x-y.x)+Math.abs(z.y-y.y),N=Math.sign(z.x-y.x),U=Math.sign(z.y-y.y),R=$=>({px:y.x+N*$,py:y.y+U*$}),C=Math.max(0,(g===b.length-2?E-HR:E)/2);n.push({connectionId:m.conn.id,at:R,d:C,len:E})})}let a=w3,s=(d,h)=>this.nodes.some(m=>d>m.x-a&&d<m.x+bt+a&&h>m.y-a&&h<m.y+lr+a),l=[];for(let d of n){let h=f=>s(f.px,f.py)||l.some(b=>Math.hypot(b.px-f.px,b.py-f.py)<w3*2+6),m=d.at(d.d);if(h(m))e:for(let f=Zt/2;f<=d.len;f+=Zt/2)for(let b of[d.d-f,d.d+f]){if(b<0||b>d.len)continue;let g=d.at(b);if(!h(g)){m=g;break e}}l.push({connectionId:d.connectionId,...m})}return l}_screenFromCanvas(t,r){let n=this.getBoundingClientRect();return{clientX:n.left+this.panX+t*this.zoom,clientY:n.top+this.panY+r*this.zoom}}_onAddClick(t,r,n){if(t.stopPropagation(),this.movingNodeId){this._emit("flow-output-move-target",{nodeId:r,port:n});return}this._startLink(r,n)}_onWireAddClick(t,r,n,a){t.stopPropagation(),this._emit("flow-wire-pick",{connectionId:r,...this._screenFromCanvas(n,a)})}_onAddDrop(t,r,n){let a=t.dataTransfer?.getData(ad);a&&(t.preventDefault(),t.stopPropagation(),this._emit("flow-output-assign",{nodeId:r,port:n,type:a}))}_onWireDrop(t,r){let n=t.dataTransfer?.getData(ad);n&&(t.preventDefault(),t.stopPropagation(),this._emit("flow-wire-assign",{connectionId:r,type:n}))}_zoomBy(t){this._viewInitialised=!0,this.zoom=Math.min(y3,Math.max(ib,+(this.zoom+t).toFixed(2)))}_contentBounds(){if(!this.nodes.length&&!this.notes.length)return null;let t=1/0,r=1/0,n=-1/0,a=-1/0;for(let s of this.nodes){t=Math.min(t,s.x),n=Math.max(n,s.x+bt),r=Math.min(r,s.y),a=Math.max(a,s.y+lr);for(let l of this._outputLayout(s).branches)t=Math.min(t,l.x-70),n=Math.max(n,l.x+70),a=Math.max(a,l.exitY+nb+14)}for(let s of this.notes)t=Math.min(t,s.x),n=Math.max(n,s.x+(s.width??Zg)),r=Math.min(r,s.y),a=Math.max(a,s.y+(s.height??eb));return{x:t,y:r,width:n-t,height:a-r}}_resetView(){let t=this.getBoundingClientRect(),r=this._contentBounds();if(!r||!t.width||!t.height){this.zoom=1,this.panX=0,this.panY=0;return}let n=60,a=Math.min(1,(t.width-n*2)/r.width,(t.height-n*2)/r.height);this.zoom=Math.max(ib,+a.toFixed(2)),this.panX=Math.round((t.width-r.width*this.zoom)/2-r.x*this.zoom),this.panY=Math.round((t.height-r.height*this.zoom)/2-r.y*this.zoom)}_viewportCursorClass(){return this.drag?this.drag.kind==="note-resize"?"resizing":"grabbing":""}_renderConnections(){let t=`translate(${this.panX} ${this.panY}) scale(${this.zoom})`,r=this._elbowMidOffsets(),n=na(this.nodes,this.connections),a=[],s=!!(this.movingNodeId||this.dragType);for(let l of this.nodes){let{cx:d,by:h,busY:m,branches:f}=this._outputLayout(l),b=f.filter(z=>z.conn&&z.child||z.pillTop!==null||s);if(!b.length)continue;a.push(Ji`<path class="wire" d="M ${d} ${h} L ${d} ${m}"></path>`);let g=[d,...b.map(z=>z.x)],v=Math.min(...g),y=Math.max(...g);y-v>.5&&a.push(Ji`<path class="wire" d="M ${v} ${m} L ${y} ${m}"></path>`),b.forEach(z=>{if(z.pillTop!==null&&a.push(Ji`<path class="wire" d="M ${z.x} ${Math.min(m,z.pillTop-10)} L ${z.x} ${z.pillTop}" marker-end="url(#flow-arrow)"></path>`),z.conn&&z.child){let E=r.get(z.conn.id)??0,N=n.has(z.conn),U=this._routePoints({x:z.x,y:z.exitY},z.child,z.conn.target.port,E,l.id,N);a.push(Ji`<path
5412
+ `}};ui.styles=_(g3),ui.dependencies={"zn-icon":oe,"zn-button":Ee,"zn-dropdown":hr,"zn-menu":on,"zn-menu-item":xi},c([p({attribute:!1})],ui.prototype,"node",2),c([p({attribute:!1})],ui.prototype,"type",2),c([p({type:Boolean,reflect:!0})],ui.prototype,"selected",2),c([p({type:Boolean,reflect:!0})],ui.prototype,"error",2),c([p({type:Boolean,reflect:!0})],ui.prototype,"dragging",2),c([p({type:Boolean,reflect:!0,attribute:"link-target"})],ui.prototype,"linkTarget",2);var b3=ui;ui.define("zn-flow-node");var v3=k`@keyframes rotate-gradient{from{--rotate:0deg}to{--rotate:360deg}}:host{text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-transform:none}*,*::before,*::after{box-sizing:border-box;border-width:0;border-style:solid;border-color:rgb(var(--zn-border-color))}[hidden]{display:none !important}.width-container,.form-container,.wide-form-container{height:100%;width:100%;margin:var(--zn-default-margin,0 auto)}.width-container{max-width:var(--zn-container)}.form-container{max-width:var(--zn-container-ph)}.wide-form-container{max-width:var(--zn-container-lg)}:host{display:block;position:relative;width:100%;height:100%;overflow:hidden}.viewport{position:absolute;inset:0;overflow:hidden;background-color:rgb(var(--zn-color-body));background-image:radial-gradient(rgb(var(--zn-color-border)) 1px,transparent 1px);background-size:20px 20px;cursor:grab;touch-action:none}.viewport.grabbing,.viewport.grabbing *{cursor:grabbing !important}.viewport.connecting,.viewport.connecting *{cursor:crosshair !important}.viewport.resizing,.viewport.resizing *{cursor:nwse-resize !important}.viewport.linking{cursor:crosshair}.viewport.step-dragging .add-point{color:rgb(var(--zn-panel));background:rgb(var(--zn-color-primary));border-style:solid;box-shadow:0 0 0 4px color-mix(in srgb,rgb(var(--zn-color-primary)) 22%,transparent)}.connections{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;overflow:visible}.connections .wire{fill:none;stroke:rgb(var(--zn-color-primary));stroke-width:2}.connections .wire--stub{stroke:rgb(var(--zn-color-border-active));stroke-dasharray:4 4}.connections .wire--preview{stroke-dasharray:6 4}.connections .wire--loop{stroke:rgb(var(--zn-color-warning))}.connections marker path{fill:rgb(var(--zn-color-primary))}.connections marker#flow-arrow-loop path{fill:rgb(var(--zn-color-warning))}.add-point{position:absolute;top:0;left:0;display:flex;align-items:center;justify-content:center;width:24px;height:24px;margin:-12px;padding:0;border-radius:50%;color:rgb(var(--zn-color-primary));background:rgb(var(--zn-panel));border:1px dashed rgb(var(--zn-color-border-active));cursor:pointer;transition:background 0.12s ease,color 0.12s ease}.add-point:hover{color:rgb(var(--zn-panel));background:rgb(var(--zn-color-primary));border-style:solid}.add-point--target{color:rgb(var(--zn-panel));background:rgb(var(--zn-color-primary));border-style:solid;box-shadow:0 0 0 4px color-mix(in srgb,rgb(var(--zn-color-primary)) 25%,transparent)}.add-point--wire{width:20px;height:20px;margin:-10px}.layer{position:absolute;top:0;left:0;transform-origin:0 0;width:0;height:0}.node-pos{position:absolute;top:0;left:0}.branch-pill{display:flex;align-items:center;justify-content:center;width:-moz-max-content;width:max-content;max-width:240px;box-sizing:border-box;text-align:center;overflow-wrap:anywhere;overflow:hidden;padding:0 18px;border-radius:10px;font:inherit;font-size:0.8125rem;font-weight:600;line-height:20px;color:rgb(var(--zn-text));background:color-mix(in srgb,rgb(var(--zn-color-primary)) 8%,rgb(var(--zn-panel)));border:1px solid color-mix(in srgb,rgb(var(--zn-color-primary)) 45%,transparent);cursor:pointer;transition:border-color 0.12s ease,box-shadow 0.12s ease}.branch-pill:hover{border-color:rgb(var(--zn-color-primary));box-shadow:0 1px 3px rgba(var(--zn-shadow),0.4)}.branch-pill--selected{border-color:rgb(var(--zn-color-primary));background:color-mix(in srgb,rgb(var(--zn-color-primary)) 16%,rgb(var(--zn-panel)))}.branch-pill--loop{background:color-mix(in srgb,rgb(var(--zn-color-warning)) 10%,rgb(var(--zn-panel)));border-color:color-mix(in srgb,rgb(var(--zn-color-warning)) 55%,transparent)}.branch-pill--loop:hover{border-color:rgb(var(--zn-color-warning))}.branch-pill--loop.branch-pill--selected{border-color:rgb(var(--zn-color-warning));background:color-mix(in srgb,rgb(var(--zn-color-warning)) 18%,rgb(var(--zn-panel)))}.branch-pill-wrap{position:absolute;top:0;left:0;transform:translateX(-50%);display:flex;align-items:stretch}.branch-pill-wrap::after{content:"";position:absolute;left:100%;top:0;width:40px;height:100%}.branch-pill-wrap:hover .branch-pill-delete{opacity:1;transform:translate(0,-50%);pointer-events:auto;transition-delay:0.15s}.branch-pill-port{position:absolute;z-index:1;left:50%;bottom:0;transform:translate(-50%,50%);width:11px;height:11px;box-sizing:border-box;border-radius:50%;background:rgb(var(--zn-panel));border:2px solid rgb(var(--zn-color-primary));cursor:pointer;transition:transform 0.12s ease,box-shadow 0.12s ease}.branch-pill-port:hover{transform:translate(-50%,50%) scale(1.35);box-shadow:0 0 0 4px color-mix(in srgb,rgb(var(--zn-color-primary)) 20%,transparent)}.branch-pill-delete{position:absolute;z-index:1;left:calc(100% + 8px);top:50%;transform:translate(-10px,-50%);display:flex;align-items:center;justify-content:center;width:24px;height:24px;padding:0;border:none;border-radius:50%;background:rgb(var(--zn-color-error));color:white;cursor:pointer;opacity:0;pointer-events:none;transition:opacity 0.15s ease,transform 0.15s ease}.branch-pill-delete:hover{filter:brightness(1.1)}.drop-ghost{position:absolute;top:0;left:0;display:flex;align-items:center;gap:10px;padding:0 12px;border:2px dashed rgb(var(--zn-color-primary));border-radius:10px;background:color-mix(in srgb,rgb(var(--zn-color-primary)) 10%,rgb(var(--zn-panel)));opacity:0.9;pointer-events:none}.drop-ghost__icon{--node-accent:rgb(var(--zn-color-primary));display:flex;align-items:center;justify-content:center;flex:0 0 auto;width:36px;height:36px;border-radius:8px;color:var(--node-accent);background:color-mix(in srgb,var(--node-accent) 16%,rgb(var(--zn-panel)))}.drop-ghost__label{font-size:0.8125rem;font-weight:600;color:rgb(var(--zn-text));white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.toolbar{position:absolute;top:16px;display:flex;align-items:center;gap:2px;padding:3px;background:rgb(var(--zn-panel));border:1px solid rgb(var(--zn-border-color));border-radius:8px;box-shadow:0 1px 3px rgba(var(--zn-shadow),0.4);z-index:2}.toolbar--history{left:16px}.toolbar--zoom{right:16px}.bin{position:absolute;right:16px;bottom:16px;z-index:2;display:flex;align-items:center;justify-content:center;width:48px;height:48px;border-radius:12px;color:rgb(var(--zn-color-muted-text));background:rgb(var(--zn-panel));border:1px dashed rgb(var(--zn-color-border-active));box-shadow:0 1px 3px rgba(var(--zn-shadow),0.4);transition:background 0.12s ease,color 0.12s ease,transform 0.12s ease}.bin--over{color:rgb(var(--zn-panel));background:rgb(var(--zn-color-error));border-style:solid;border-color:rgb(var(--zn-color-error));transform:scale(1.12)}.note{position:absolute;display:flex;flex-direction:column;background:#fef9c3;border:1px solid #fde68a;border-radius:4px;box-shadow:0 2px 6px rgba(0,0,0,0.12)}.note__resize{position:absolute;right:0;bottom:0;width:16px;height:16px;cursor:nwse-resize;background:linear-gradient(135deg,transparent 0 50%,#d9c64a 50% 60%,transparent 60% 70%,#d9c64a 70% 80%,transparent 80%)}.note__bar{display:flex;justify-content:flex-end;height:20px;cursor:grab}.note__close{width:20px;height:20px;padding:0;font-size:14px;line-height:1;color:#92400e;background:transparent;cursor:pointer}.note__text{flex:1;margin:0;padding:0 10px 10px;resize:none;border:none;outline:none;background:transparent;font:inherit;font-size:0.8125rem;color:#713f12}`;var ib=.25,y3=2,x3=.15,nb=40,OR=20,PR=48,ob=20,w3=10,HR=8,z3=40,FR=20,ad=ul,kt=class kt extends S{constructor(){super(...arguments);this.nodes=[];this.connections=[];this.notes=[];this.selectedNodeId=null;this.errorNodes=new Set;this.movingNodeId=null;this.dragType=null;this.selectedBranch=null;this.zoom=1;this.panX=0;this.panY=0;this.drag=null;this._overBin=!1;this._dropGhost=null;this._linking=null;this._linkPos=null;this._linkTarget=null;this._linkClient=null;this._linkScrollRaf=null;this._dragMoved=!1;this._viewInitialised=!1;this._onWheel=t=>{if(t.composedPath().some(d=>d instanceof HTMLTextAreaElement))return;t.preventDefault(),this._viewInitialised=!0;let r=t.deltaMode===1?16:t.deltaMode===2?100:1,n=t.deltaX*r,a=t.deltaY*r;if(t.ctrlKey||t.metaKey){let d=Math.min(y3,Math.max(ib,this.zoom*Math.exp(-a*.0015)));if(d===this.zoom)return;let h=this.getBoundingClientRect(),m=t.clientX-h.left,f=t.clientY-h.top,b=(m-this.panX)/this.zoom,g=(f-this.panY)/this.zoom;this.zoom=+d.toFixed(3),this.panX=Math.round(m-b*this.zoom),this.panY=Math.round(f-g*this.zoom);return}let s=t.shiftKey&&!n?a:n,l=t.shiftKey&&!n?0:a;this.panX-=Math.round(s),this.panY-=Math.round(l)};this._onBackgroundPointerDown=t=>{if(t.button===1){t.preventDefault(),this._viewInitialised=!0,this.drag={kind:"pan",ox:t.clientX,oy:t.clientY,px:this.panX,py:this.panY},this._setupWindow("grabbing");return}if(t.button===0){if(this._viewInitialised=!0,this._linking){let r=this._linking,n=this._linkTarget;if(this._cancelLink(),n){this._emit("flow-link-assign",{nodeId:r.nodeId,port:r.port,targetId:n});return}}this._emit("flow-node-select",{nodeId:null}),this.drag={kind:"pan",ox:t.clientX,oy:t.clientY,px:this.panX,py:this.panY},this._setupWindow("grabbing")}};this._onNodeGrab=t=>{if(this._linking){let a=this._linking;this._cancelLink(),a.nodeId!==t.detail.nodeId&&this._emit("flow-link-assign",{nodeId:a.nodeId,port:a.port,targetId:t.detail.nodeId});return}let r=this.nodes.find(a=>a.id===t.detail.nodeId);if(!r)return;let n=this.screenToCanvas(t.detail.clientX,t.detail.clientY);this.drag={kind:"node",id:r.id,offX:n.x-r.x,offY:n.y-r.y,startX:r.x,startY:r.y},this._dragMoved=!1,this._setupWindow("grabbing")};this._onNodeSelect=t=>{this._linking&&t.detail.nodeId&&t.stopPropagation()};this._onPortClick=t=>{let{nodeId:r}=t.detail;if(this._linking&&this._linking.nodeId!==r){let s=this._linking;this._cancelLink(),this._emit("flow-link-assign",{nodeId:s.nodeId,port:s.port,targetId:r});return}let n=this.nodes.find(s=>s.id===r);if(!n)return;let a=Zt(n,this._typeFor(n)).find(s=>!this.connections.some(l=>l.source.node===r&&l.source.port===s.id));!a&&this._typeFor(n)?.fixedOutputs||this._startLink(r,a?.id??id)};this._onLinkPointerMove=t=>{this._linkClient={x:t.clientX,y:t.clientY},this._updateLinkFromClient(t.clientX,t.clientY)};this._linkEdgeScroll=()=>{if(this._linkScrollRaf=null,!!this._linking){if(this._linkClient){let t=this.getBoundingClientRect(),r=48,n=14,a=m=>Math.min(n,Math.ceil((r-m)/r*n)),{x:s,y:l}=this._linkClient,d=0,h=0;s<t.left+r?d=a(s-t.left):s>t.right-r&&(d=-a(t.right-s)),l<t.top+r?h=a(l-t.top):l>t.bottom-r&&(h=-a(t.bottom-l)),(d||h)&&(this.panX+=d,this.panY+=h,this._updateLinkFromClient(s,l))}this._linkScrollRaf=requestAnimationFrame(this._linkEdgeScroll)}};this._onLinkKeyDown=t=>{t.key==="Escape"&&this._cancelLink()};this._cancelLink=()=>{this._linking&&(this._linking=null,this._linkPos=null,this._linkTarget=null,this._linkClient=null,this._linkScrollRaf!==null&&(cancelAnimationFrame(this._linkScrollRaf),this._linkScrollRaf=null),window.removeEventListener("pointermove",this._onLinkPointerMove),window.removeEventListener("keydown",this._onLinkKeyDown),window.removeEventListener("blur",this._cancelLink))};this._onPointerMove=t=>{if(!this.drag)return;if(this.drag.kind==="pan"){this.panX=this.drag.px+(t.clientX-this.drag.ox),this.panY=this.drag.py+(t.clientY-this.drag.oy);return}let r=this.screenToCanvas(t.clientX,t.clientY);if(this.drag.kind==="node"){this._overBin=this._binHit(t.clientX,t.clientY);let n=this.nodes.find(a=>a.id===this.drag.id);if(n){let a={x:Dr(r.x-this.drag.offX),y:Dr(r.y-this.drag.offY)},s=new Set(this.connections.filter(h=>h.target.node===n.id&&h.source.node!==n.id).map(h=>h.source.node)),l=h=>{let m={...n,...h},f=this.nodes.map(g=>g.id===n.id?m:g),b=g=>this.registry?.get(g);return f.some(g=>g!==m&&l3(m,g,b,f,this.connections))?!1:![...s].some(g=>{let v=f.find(y=>y.id===g);return!!v&&Qh(v,b,f,this.connections)})},d=l(a)?a:l({x:a.x,y:n.y})?{x:a.x,y:n.y}:l({x:n.x,y:a.y})?{x:n.x,y:a.y}:null;d&&(d.x!==n.x||d.y!==n.y)&&(this._dragMoved||this._beginMove(),n.x=d.x,n.y=d.y,this.requestUpdate())}}else if(this.drag.kind==="note"){let n=this.notes.find(a=>a.id===this.drag.id);n&&(this._dragMoved||this._beginMove(),n.x=Dr(r.x-this.drag.offX),n.y=Dr(r.y-this.drag.offY),this.requestUpdate())}else if(this.drag.kind==="note-resize"){let n=this.notes.find(a=>a.id===this.drag.id);n&&(this._dragMoved||this._beginMove(),n.width=Math.max(d3,Dr(r.x-n.x)),n.height=Math.max(p3,Dr(r.y-n.y)),this.requestUpdate())}};this._onPointerUp=()=>{let t=this.drag,r=this._overBin;if(this.drag=null,this._overBin=!1,this._teardownWindow(),!!t){if(t.kind==="node"&&this._dragMoved&&r){let n=this.nodes.find(a=>a.id===t.id);n&&(n.x=t.startX,n.y=t.startY),this._emit("flow-node-action",{nodeId:t.id,action:"delete"});return}(t.kind==="node"||t.kind==="note"||t.kind==="note-resize")&&this._dragMoved&&this._emit("flow-change-commit")}};this._onViewportDragOver=t=>{if(!t.dataTransfer?.types.includes(ad))return;this._viewInitialised=!0,t.preventDefault();let r=t.composedPath().some(a=>a instanceof Element&&a.classList.contains("add-point"));t.dataTransfer.dropEffect=r?"copy":"move";let n=this.screenToCanvas(t.clientX,t.clientY);this._dropGhost={x:Dr(n.x-bt/2),y:Dr(n.y-sr/2)}};this._onViewportDragLeave=t=>{let r=this.getBoundingClientRect();(t.clientX<r.left||t.clientX>r.right||t.clientY<r.top||t.clientY>r.bottom)&&(this._dropGhost=null)};this._clearDropGhost=()=>{this._dropGhost=null};this._onAddPointDragOver=t=>{t.dataTransfer?.types.includes(ad)&&(t.preventDefault(),t.dataTransfer.dropEffect="copy")};this._onBinDragOver=t=>{t.dataTransfer?.types.includes(ad)&&(t.preventDefault(),t.stopPropagation(),t.dataTransfer.dropEffect="move",this._overBin=!0,this._dropGhost=null)};this._onBinDragLeave=()=>{this._overBin=!1};this._onBinDrop=t=>{t.preventDefault(),t.stopPropagation(),this._overBin=!1,this._dropGhost=null}}connectedCallback(){super.connectedCallback(),this.addEventListener("flow-node-grab",this._onNodeGrab),this.addEventListener("flow-node-select",this._onNodeSelect),this.addEventListener("flow-port-click",this._onPortClick),this.addEventListener("wheel",this._onWheel,{passive:!1})}disconnectedCallback(){this.removeEventListener("flow-node-grab",this._onNodeGrab),this.removeEventListener("flow-node-select",this._onNodeSelect),this.removeEventListener("flow-port-click",this._onPortClick),this.removeEventListener("wheel",this._onWheel),this._cancelLink(),this._teardownWindow(),super.disconnectedCallback()}updated(t){if(super.updated(t),this.style.setProperty("--flow-zoom",String(this.zoom)),t.has("dragType")&&!this.dragType&&(this._dropGhost=null),!this._viewInitialised&&this.nodes.length){let r=this.getBoundingClientRect();r.width&&r.height&&(this._viewInitialised=!0,this._resetView())}}_emit(t,r){this.dispatchEvent(new CustomEvent(t,{bubbles:!0,composed:!0,detail:r}))}screenToCanvas(t,r){let n=this.getBoundingClientRect();return{x:(t-n.left-this.panX)/this.zoom,y:(r-n.top-this.panY)/this.zoom}}_typeFor(t){return this.registry?.get(t.type)}_setupWindow(t=""){window.addEventListener("pointermove",this._onPointerMove),window.addEventListener("pointerup",this._onPointerUp),t&&(document.body.style.cursor=t)}_teardownWindow(){window.removeEventListener("pointermove",this._onPointerMove),window.removeEventListener("pointerup",this._onPointerUp),document.body.style.cursor=""}_onBranchPortClick(t,r){if(this._linking){let n=this._linking;this._cancelLink(),n.nodeId!==t&&this._emit("flow-link-assign",{nodeId:n.nodeId,port:n.port,targetId:t});return}this._startLink(t,r)}_startLink(t,r){this._linking={nodeId:t,port:r},this._linkPos=null,this._linkClient=null,window.addEventListener("pointermove",this._onLinkPointerMove),window.addEventListener("keydown",this._onLinkKeyDown),window.addEventListener("blur",this._cancelLink),this._linkScrollRaf=requestAnimationFrame(this._linkEdgeScroll)}_updateLinkFromClient(t,r){let n=this.screenToCanvas(t,r);this._linkPos=n;let a=this._linking;if(!a)return;let s=12,l=this.nodes.find(d=>d.id!==a.nodeId&&n.x>=d.x-s&&n.x<=d.x+bt+s&&n.y>=d.y-s&&n.y<=d.y+sr+s&&ia(d,this._typeFor(d)).length>0);this._linkTarget=l?.id??null}_binHit(t,r){let n=this.shadowRoot?.querySelector(".bin")?.getBoundingClientRect();return!!n&&t>=n.left&&t<=n.right&&r>=n.top&&r<=n.bottom}_beginMove(){this._dragMoved=!0,this._emit("flow-interaction-start")}_outputLayout(t){let r=Zt(t,this._typeFor(t)),n=t.x+bt/2,a=t.y+sr,s=a+Qg,l=nd(t,h=>this.registry?.get(h),this.connections),d=r.map((h,m)=>{let f=this.connections.find(E=>E.source.node===t.id&&E.source.port===h.id),b=f?this.nodes.find(E=>E.id===f.target.node):void 0,g=l[m],v=h.label?Yh(h.label).h:0,y=h.label?Xg(t,v,b,r.length===1):null,z=y===null?s:y+v;return{port:h,conn:f,child:b,x:g,pillTop:y,pillH:v,exitY:z}});return{cx:n,by:a,busY:s,branches:d}}_inputAnchor(t,r){let n=ia(t,this._typeFor(t)),a=Math.max(n.findIndex(s=>s.id===r),0);return{x:h3(t,"in",a,n.length).x,y:t.y}}_elbowMidOffsets(){let t=new Map;for(let n of this.nodes){let{branches:a}=this._outputLayout(n);for(let s of a){if(!s.conn||!s.child)continue;let{x:l,y:d}=this._inputAnchor(s.child,s.conn.target.port);if(l===s.x||d-ob<s.exitY)continue;let h=Dr((s.exitY+d)/2),m=`${s.conn.target.node}:${s.conn.target.port}`,f=t.get(h)??new Map;t.set(h,f),f.set(m,[...f.get(m)??[],s.conn.id])}}let r=new Map;for(let n of t.values()){if(n.size<2)continue;let a=[...n.keys()].sort();a.forEach((s,l)=>{let d=(l-Math.floor((a.length-1)/2))*FR;n.get(s).forEach(h=>r.set(h,d))})}return r}_segmentBlocked(t,r,n,a=!0){let l=a?PR:8,d=Math.min(t.x,r.x),h=Math.max(t.x,r.x),m=Math.min(t.y,r.y),f=Math.max(t.y,r.y);return this.nodes.some(b=>!n.has(b.id)&&d<b.x+bt+8&&h>b.x-8&&m<b.y+sr+8&&f>b.y-l)}_routeClear(t,r,n=!0){for(let a=0;a<t.length-1;a++)if(this._segmentBlocked(t[a],t[a+1],r,n))return!1;return!0}_routePoints(t,r,n,a=0,s,l=!1){let{x:d,y:h}=this._inputAnchor(r,n),m=new Set(s?[r.id,s]:[r.id]),f=h-ob>=t.y?this._forwardRoutes(t,d,h,a,m):this._aroundRoutes(t,d,h,m,l);for(let b of[!0,!1])for(let g of f)if(this._routeClear(g,m,b))return g;return f[0]}_forwardRoutes(t,r,n,a,s){let l=[],d=Math.round((t.y+n)/2)+a,h=n-t.y,m=Math.min(n-12,Math.ceil((t.y+h/4)/Jt)*Jt),f=Math.max(m,Math.floor((n-h/4)/Jt)*Jt),b=y=>Math.max(m,Math.min(f,y));if(r===t.x)l.push([t,{x:r,y:n}]);else for(let y=0;y<=20;y++)for(let z of y===0?[d]:[d+y*Jt,d-y*Jt]){let E=b(z);E!==z&&y>0||l.push([t,{x:t.x,y:E},{x:r,y:E},{x:r,y:n}])}l.push(...this._aroundRoutes(t,r,n,s,!1));let g=Math.floor(h/2/10)*10,v=Math.max(10,Math.round(h/4/10)*10);for(let y=0;y<=12;y++)for(let z of y===0?[v]:[v+y*10,v-y*10]){if(z<10||z>g)continue;let E=t.y+z,N=n-z;if(!(N<E))for(let U=1;U<=14;U++)for(let R of[1,-1]){let C=t.x+R*U*Jt;l.push([t,{x:t.x,y:E},{x:C,y:E},{x:C,y:N},{x:r,y:N},{x:r,y:n}])}}return l}_aroundRoutes(t,r,n,a,s){let l=t.y+OR,d=n-ob,h=this.nodes.filter(y=>!a.has(y.id)&&y.y+sr>Math.min(l,d)-Jt&&y.y<Math.max(l,d)+Jt);if(!h.length)return[];let m=Math.max(...h.map(y=>y.x+bt))+z3,f=Math.min(...h.map(y=>y.x))-z3,b=y=>Math.abs(y-t.x)+Math.abs(y-r),g=s?b(m)<=b(f):r>=(f+m)/2,v=[];for(let y of g?[1,-1]:[-1,1]){let z=y>0?m:f;for(let E=0;E<=20;E++){let N=z+y*E*Jt;v.push([t,{x:t.x,y:l},{x:N,y:l},{x:N,y:d},{x:r,y:d},{x:r,y:n}])}}return v}static _pathFrom(t){return t.map((r,n)=>`${n===0?"M":"L"} ${r.x} ${r.y}`).join(" ")}_addPoints(){if(!this.movingNodeId&&!this.dragType)return[];let t=[];for(let r of this.nodes){let{branches:n}=this._outputLayout(r);n.forEach(a=>{a.conn||t.push({nodeId:r.id,port:a.port.id,px:a.x,py:a.exitY+nb})})}return t}_wirePoints(){if(this.movingNodeId)return[];let t=this._elbowMidOffsets(),r=na(this.nodes,this.connections),n=[];for(let d of this.nodes){let{branches:h}=this._outputLayout(d);h.forEach(m=>{if(!m.conn||!m.child)return;let f=t.get(m.conn.id)??0,b=this._routePoints({x:m.x,y:m.exitY},m.child,m.conn.target.port,f,d.id,r.has(m.conn)),g=0,v=-1;for(let $=0;$<b.length-1;$++){let L=Math.abs(b[$+1].x-b[$].x)+Math.abs(b[$+1].y-b[$].y);L>v&&(v=L,g=$)}let y=b[g],z=b[g+1],E=Math.abs(z.x-y.x)+Math.abs(z.y-y.y),N=Math.sign(z.x-y.x),U=Math.sign(z.y-y.y),R=$=>({px:y.x+N*$,py:y.y+U*$}),C=Math.max(0,(g===b.length-2?E-HR:E)/2);n.push({connectionId:m.conn.id,at:R,d:C,len:E})})}let a=w3,s=(d,h)=>this.nodes.some(m=>d>m.x-a&&d<m.x+bt+a&&h>m.y-a&&h<m.y+sr+a),l=[];for(let d of n){let h=f=>s(f.px,f.py)||l.some(b=>Math.hypot(b.px-f.px,b.py-f.py)<w3*2+6),m=d.at(d.d);if(h(m))e:for(let f=Jt/2;f<=d.len;f+=Jt/2)for(let b of[d.d-f,d.d+f]){if(b<0||b>d.len)continue;let g=d.at(b);if(!h(g)){m=g;break e}}l.push({connectionId:d.connectionId,...m})}return l}_screenFromCanvas(t,r){let n=this.getBoundingClientRect();return{clientX:n.left+this.panX+t*this.zoom,clientY:n.top+this.panY+r*this.zoom}}_onAddClick(t,r,n){if(t.stopPropagation(),this.movingNodeId){this._emit("flow-output-move-target",{nodeId:r,port:n});return}this._startLink(r,n)}_onWireAddClick(t,r,n,a){t.stopPropagation(),this._emit("flow-wire-pick",{connectionId:r,...this._screenFromCanvas(n,a)})}_onAddDrop(t,r,n){let a=t.dataTransfer?.getData(ad);a&&(t.preventDefault(),t.stopPropagation(),this._emit("flow-output-assign",{nodeId:r,port:n,type:a}))}_onWireDrop(t,r){let n=t.dataTransfer?.getData(ad);n&&(t.preventDefault(),t.stopPropagation(),this._emit("flow-wire-assign",{connectionId:r,type:n}))}_zoomBy(t){this._viewInitialised=!0,this.zoom=Math.min(y3,Math.max(ib,+(this.zoom+t).toFixed(2)))}_contentBounds(){if(!this.nodes.length&&!this.notes.length)return null;let t=1/0,r=1/0,n=-1/0,a=-1/0;for(let s of this.nodes){t=Math.min(t,s.x),n=Math.max(n,s.x+bt),r=Math.min(r,s.y),a=Math.max(a,s.y+sr);for(let l of this._outputLayout(s).branches)t=Math.min(t,l.x-70),n=Math.max(n,l.x+70),a=Math.max(a,l.exitY+nb+14)}for(let s of this.notes)t=Math.min(t,s.x),n=Math.max(n,s.x+(s.width??Zg)),r=Math.min(r,s.y),a=Math.max(a,s.y+(s.height??eb));return{x:t,y:r,width:n-t,height:a-r}}_resetView(){let t=this.getBoundingClientRect(),r=this._contentBounds();if(!r||!t.width||!t.height){this.zoom=1,this.panX=0,this.panY=0;return}let n=60,a=Math.min(1,(t.width-n*2)/r.width,(t.height-n*2)/r.height);this.zoom=Math.max(ib,+a.toFixed(2)),this.panX=Math.round((t.width-r.width*this.zoom)/2-r.x*this.zoom),this.panY=Math.round((t.height-r.height*this.zoom)/2-r.y*this.zoom)}_viewportCursorClass(){return this.drag?this.drag.kind==="note-resize"?"resizing":"grabbing":""}_renderConnections(){let t=`translate(${this.panX} ${this.panY}) scale(${this.zoom})`,r=this._elbowMidOffsets(),n=na(this.nodes,this.connections),a=[],s=!!(this.movingNodeId||this.dragType);for(let l of this.nodes){let{cx:d,by:h,busY:m,branches:f}=this._outputLayout(l),b=f.filter(z=>z.conn&&z.child||z.pillTop!==null||s);if(!b.length)continue;a.push(Ji`<path class="wire" d="M ${d} ${h} L ${d} ${m}"></path>`);let g=[d,...b.map(z=>z.x)],v=Math.min(...g),y=Math.max(...g);y-v>.5&&a.push(Ji`<path class="wire" d="M ${v} ${m} L ${y} ${m}"></path>`),b.forEach(z=>{if(z.pillTop!==null&&a.push(Ji`<path class="wire" d="M ${z.x} ${Math.min(m,z.pillTop-10)} L ${z.x} ${z.pillTop}" marker-end="url(#flow-arrow)"></path>`),z.conn&&z.child){let E=r.get(z.conn.id)??0,N=n.has(z.conn),U=this._routePoints({x:z.x,y:z.exitY},z.child,z.conn.target.port,E,l.id,N);a.push(Ji`<path
5415
5413
  class="wire wire--link ${N?"wire--loop":""}"
5416
5414
  d="${kt._pathFrom(U)}"
5417
5415
  marker-end="url(#${N?"flow-arrow-loop":"flow-arrow"})"
5418
- ></path>`)}else s&&a.push(Ji`<path class="wire wire--stub" d="M ${z.x} ${z.exitY} L ${z.x} ${z.exitY+nb-11}"></path>`)})}if(this._linking&&this._linkPos){let l=this.nodes.find(d=>d.id===this._linking.nodeId);if(l){let d=this._outputLayout(l).branches.find(b=>b.port.id===this._linking.port),h=d!==void 0&&d.pillTop!==null?{x:d.x,y:d.exitY}:{x:l.x+bt/2,y:l.y+lr},m=this._linkTarget?this.nodes.find(b=>b.id===this._linkTarget):void 0,f=m?this._inputAnchor(m,od(m,this._typeFor(m))??""):this._linkPos;a.push(Ji`<path class="wire wire--preview" d="M ${h.x} ${h.y} L ${f.x} ${f.y}" marker-end="url(#flow-arrow)"></path>`)}}return u`
5416
+ ></path>`)}else s&&a.push(Ji`<path class="wire wire--stub" d="M ${z.x} ${z.exitY} L ${z.x} ${z.exitY+nb-11}"></path>`)})}if(this._linking&&this._linkPos){let l=this.nodes.find(d=>d.id===this._linking.nodeId);if(l){let d=this._outputLayout(l).branches.find(b=>b.port.id===this._linking.port),h=d!==void 0&&d.pillTop!==null?{x:d.x,y:d.exitY}:{x:l.x+bt/2,y:l.y+sr},m=this._linkTarget?this.nodes.find(b=>b.id===this._linkTarget):void 0,f=m?this._inputAnchor(m,od(m,this._typeFor(m))??""):this._linkPos;a.push(Ji`<path class="wire wire--preview" d="M ${h.x} ${h.y} L ${f.x} ${f.y}" marker-end="url(#flow-arrow)"></path>`)}}return u`
5419
5417
  <svg class="connections" part="connections">
5420
5418
  <defs>
5421
5419
  <marker id="flow-arrow" markerWidth="10" markerHeight="10" refX="7" refY="3" orient="auto"
@@ -5484,7 +5482,7 @@ Please report this to https://github.com/markedjs/marked.`,o){let r="<p>An error
5484
5482
  `)}_renderDropGhost(){if(!this._dropGhost)return"";let t=this.dragType?this.registry?.get(this.dragType):void 0;return u`
5485
5483
  <div
5486
5484
  class="drop-ghost"
5487
- style="transform:translate(${this._dropGhost.x}px, ${this._dropGhost.y}px);width:${bt}px;height:${lr}px"
5485
+ style="transform:translate(${this._dropGhost.x}px, ${this._dropGhost.y}px);width:${bt}px;height:${sr}px"
5488
5486
  >
5489
5487
  <div class="drop-ghost__icon" style="--node-accent:${t?.color??"rgb(var(--zn-color-primary))"}">
5490
5488
  <zn-icon src="${t?.icon??"circle"}" library="${O(t?.iconLibrary)}" size="20"></zn-icon>
@@ -5579,7 +5577,7 @@ Please report this to https://github.com/markedjs/marked.`,o){let r="<p>An error
5579
5577
  <zn-collapsible caption="${this.caption??""}" default="${this.collapsed?"closed":"open"}">
5580
5578
  <slot></slot>
5581
5579
  </zn-collapsible>
5582
- `}};Pn.styles=_(k3),Pn.dependencies={"zn-collapsible":_a},c([p()],Pn.prototype,"caption",2),c([p({type:Boolean,reflect:!0})],Pn.prototype,"collapsed",2);var ab=Pn;Pn.define("zn-flow-step-group");var Jh=class{constructor(){this.types=new Map}register(i){return this.types.set(i.type,i),this}registerAll(i){return i.forEach(t=>this.register(t)),this}get(i){return this.types.get(i)}has(i){return this.types.has(i)}all(){return Array.from(this.types.values())}byGroup(i){return this.all().filter(t=>t.group===i)}categories(i){let t=new Map;for(let r of this.byGroup(i)){let n=r.category??"",a=t.get(n)??[];a.push(r),t.set(n,a)}return t}clear(){this.types.clear()}};var S3=bt+80,Zh=220,sb=40,sd=o=>o.reduce((i,t)=>i+t,0)/o.length;function C3(o,i){let t=new Map,r=o.nodes;if(!r.length)return t;let n=new Map(r.map(C=>[C.id,C])),a=new Map(r.map(C=>[C.id,[]])),s=new Map(r.map(C=>[C.id,[]]));for(let C of o.connections)!n.has(C.source.node)||!n.has(C.target.node)||(a.get(C.target.node).push(C),s.get(C.source.node).push(C));let l=na(r,o.connections),d=new Map,h=C=>{let $=d.get(C);if($!==void 0)return $;let L=a.get(C).filter(ne=>!l.has(ne)),K=L.length?Math.max(...L.map(ne=>h(ne.source.node)))+1:0;return d.set(C,K),K};r.forEach(C=>h(C.id)),r.forEach(C=>{if(a.get(C.id).some(K=>!l.has(K)))return;let $=s.get(C.id).filter(K=>!l.has(K));if(!$.length)return;let L=Math.min(...$.map(K=>d.get(K.target.node)))-1;L>d.get(C.id)&&d.set(C.id,L)});let m=Array.from({length:Math.max(...d.values())+1},()=>[]);r.forEach(C=>m[d.get(C.id)].push(C));let f=C=>{let $=n.get(C.source.node),L=er($,i($.type)),K=Math.max(L.length,1),ne=Math.max(L.findIndex(we=>we.id===C.source.port),0);return K===1?0:(ne-(K-1)/2)*Yg},b=new Map,g=C=>{let $=a.get(C.id).filter(L=>!l.has(L)&&b.has(L.source.node));return $.length?sd($.map(L=>{let K=n.get(L.source.node),ne=er(K,i(K.type)),we=Math.max(ne.length,1),De=Math.max(ne.findIndex(Pe=>Pe.id===L.source.port),0);return b.get(K.id)+(De+1)/(we+1)-.5})):null},v=C=>{let $=s.get(C.id).filter(L=>!l.has(L)&&b.has(L.target.node));return $.length?sd($.map(L=>b.get(L.target.node))):null};m[0].sort((C,$)=>C.x-$.x).forEach((C,$)=>b.set(C.id,$));for(let C=1;C<m.length;C++)m[C].sort(($,L)=>(g($)??0)-(g(L)??0)).forEach(($,L)=>b.set($.id,L));for(let C=1;C<m.length;C++){let $=L=>g(L)??v(L)??0;m[C].sort((L,K)=>$(L)-$(K)).forEach((L,K)=>b.set(L.id,K))}let y=new Map,z=(C,$)=>{let L=C.map(De=>$(De)??y.get(De.id)??0),K=-1/0,ne=L.map(De=>K=Math.max(De,K+S3)),we=sd(ne.map((De,Pe)=>De-L[Pe]));C.forEach((De,Pe)=>y.set(De.id,ne[Pe]-we))},E=C=>{let $=a.get(C.id).filter(L=>!l.has(L)&&y.has(L.source.node));return $.length?sd($.map(L=>y.get(L.source.node)+f(L))):null},N=C=>{let $=s.get(C.id).filter(L=>!l.has(L)&&y.has(L.target.node));return $.length?sd($.map(L=>y.get(L.target.node)-f(L))):null};m[0].forEach((C,$)=>y.set(C.id,$*S3));for(let C=1;C<m.length;C++)z(m[C],E);for(let C=m.length-2;C>=0;C--)z(m[C],N);for(let C=1;C<m.length;C++)z(m[C],E);let U=[...y.values()].filter(Number.isFinite),R=U.length?Math.min(...U):0;return r.forEach(C=>{let $=y.get(C.id);t.set(C.id,{x:Dr(Number.isFinite($)?$-R+sb:sb),y:sb+d.get(C.id)*Zh})}),t}var E3=k`@keyframes rotate-gradient{from{--rotate:0deg}to{--rotate:360deg}}:host{text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-transform:none}*,*::before,*::after{box-sizing:border-box;border-width:0;border-style:solid;border-color:rgb(var(--zn-border-color))}[hidden]{display:none !important}.width-container,.form-container,.wide-form-container{height:100%;width:100%;margin:var(--zn-default-margin,0 auto)}.width-container{max-width:var(--zn-container)}.form-container{max-width:var(--zn-container-ph)}.wide-form-container{max-width:var(--zn-container-lg)}:host ::-webkit-scrollbar{width:5px;height:5px}:host{}:host ::-webkit-scrollbar-track{background:transparent}:host{}:host ::-webkit-scrollbar-thumb{background:rgba(var(--inverse-base),0.2);border-radius:5px}:host{}:host ::-webkit-scrollbar-thumb:hover{background:rgba(var(--inverse-base),0.6)}:host{display:block;width:100%;height:100%;min-height:480px;color:rgb(var(--zn-text))}.builder{--steps-width:343px;--side-width:500px;display:grid;grid-template-columns:var(--steps-width) minmax(0,1fr) var(--side-width);grid-template-rows:auto minmax(0,1fr);width:100%;height:100%;background:rgb(var(--zn-panel));border:1px solid rgb(var(--zn-border-color));border-radius:8px;overflow:hidden;transition:grid-template-columns 0.2s ease}.builder--steps-collapsed{--steps-width:0px}.builder--steps-collapsed .steps{border-right:none}.builder--side-collapsed{--side-width:0px}.builder--side-collapsed .sidebar,.builder--side-collapsed .inspector{padding:0;border-left:none}.header{grid-row:1;grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:10px 14px;border-bottom:1px solid rgb(var(--zn-border-color));background:rgb(var(--zn-panel))}.header[hidden]{display:none}.header__group{display:flex;align-items:center;gap:8px}.steps,.inspector,.sidebar{grid-row:2;display:flex;flex-direction:column;min-height:0;min-width:0;overflow:hidden;background:rgb(var(--zn-panel))}.canvas-cell{grid-row:2;position:relative;min-width:0;min-height:0}.panel-toggle{position:absolute;top:50%;z-index:6;transform:translateY(-50%);display:flex;align-items:center;justify-content:center;width:24px;height:24px;padding:0;border-radius:50%;color:rgb(var(--zn-color-muted-text));background:rgb(var(--zn-panel));border:1px solid rgb(var(--zn-border-color));box-shadow:0 1px 3px rgba(var(--zn-shadow),0.4);cursor:pointer;transition:left 0.2s ease,right 0.2s ease,color 0.12s ease,border-color 0.12s ease}.panel-toggle:hover{color:rgb(var(--zn-text));border-color:rgb(var(--zn-color-border-active))}.panel-toggle--left{left:-12px}.panel-toggle--left.panel-toggle--tucked{left:8px}.panel-toggle--right{right:-12px}.panel-toggle--right.panel-toggle--tucked{right:8px}.steps{--zn-active-nav-background:var(--zn-panel);--navbar-page-inactive-tab-background:rgb(var(--zn-color-tab));--navbar-page-inactive-tab-filter:none;border-right:1px solid rgb(var(--zn-border-color))}.steps-content{flex:1;min-height:0;display:flex;flex-direction:column}.steps-panel{display:flex;flex-direction:column;min-height:0;height:100%}.steps-hint{margin:0;padding:12px var(--zn-base-gap);font-size:0.8125rem;line-height:1.4;color:rgb(var(--zn-color-muted-text))}.steps-scroll ::-webkit-scrollbar{width:5px;height:5px}.steps-scroll{}.steps-scroll ::-webkit-scrollbar-track{background:transparent}.steps-scroll{}.steps-scroll ::-webkit-scrollbar-thumb{background:rgba(var(--inverse-base),0.2);border-radius:5px}.steps-scroll{}.steps-scroll ::-webkit-scrollbar-thumb:hover{background:rgba(var(--inverse-base),0.6)}.steps-scroll{flex:1;min-height:0;overflow-y:auto;padding-bottom:16px}.steps-scroll zn-flow-step-group{display:block;border-top:1px solid rgb(var(--zn-border-color))}.steps-uncategorized{padding:8px var(--zn-base-gap)}.steps-empty{padding:16px var(--zn-base-gap);font-size:0.8125rem;color:rgb(var(--zn-color-muted-text))}.declarations{display:none}.title-block{padding:16px;border-bottom:1px solid rgb(var(--zn-border-color))}.title-block .heading{font-size:0.9375rem;font-weight:600}.title-block .subheading{margin-top:2px;font-size:0.75rem;color:rgb(var(--zn-color-muted-text))}.search{padding:12px 12px 8px}.step{display:flex;align-items:center;gap:10px;padding:8px 10px;margin-bottom:6px;background:rgb(var(--zn-panel));border:1px solid rgb(var(--zn-border-color));border-radius:8px;font-size:0.8125rem;cursor:grab;transition:border-color 0.12s ease,box-shadow 0.12s ease}.step:hover{border-color:rgb(var(--zn-color-border-active));box-shadow:0 1px 3px rgba(var(--zn-shadow),0.4)}.step:active{cursor:grabbing}.step__icon{--node-accent:rgb(var(--zn-color-primary));display:flex;align-items:center;justify-content:center;flex:0 0 auto;width:28px;height:28px;border-radius:6px;color:var(--node-accent);background:color-mix(in srgb,var(--node-accent) 14%,transparent)}.step__label{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.inspector{border-left:1px solid rgb(var(--zn-border-color));animation:inspector-in 0.18s ease}.inspector-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;height:100%;padding:24px;text-align:center;color:rgb(var(--zn-color-muted-text));font-size:0.8125rem}.inspector-head{display:flex;align-items:center;gap:12px;padding:16px;border-bottom:1px solid rgb(var(--zn-border-color))}.inspector-head__icon{--node-accent:rgb(var(--zn-color-primary));display:flex;align-items:center;justify-content:center;flex:0 0 auto;width:36px;height:36px;border-radius:8px;color:var(--node-accent);background:color-mix(in srgb,var(--node-accent) 14%,transparent)}.inspector-head__text{flex:1;min-width:0}.inspector-head__title-row{display:flex;align-items:center;gap:6px;min-width:0}.inspector-head__title-row .inspector-head__title{min-width:0}.inspector-head__title{font-size:0.875rem;font-weight:600}.inspector-head__title,.inspector-head__type{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.inspector-head__type{font-size:0.75rem;color:rgb(var(--zn-color-muted-text))}.inspector-body ::-webkit-scrollbar{width:5px;height:5px}.inspector-body{}.inspector-body ::-webkit-scrollbar-track{background:transparent}.inspector-body{}.inspector-body ::-webkit-scrollbar-thumb{background:rgba(var(--inverse-base),0.2);border-radius:5px}.inspector-body{}.inspector-body ::-webkit-scrollbar-thumb:hover{background:rgba(var(--inverse-base),0.6)}.inspector-body{display:flex;flex-direction:column;gap:14px;flex:1;min-height:0;overflow-y:auto;padding:16px}.inspector-hint{margin:0;font-size:0.75rem;color:rgb(var(--zn-color-muted-text))}.inspector-loop-tag{display:inline-flex;align-items:center;flex:0 0 auto;gap:3px;padding:2px 8px;border-radius:999px;font-size:0.6875rem;font-weight:600;line-height:1;color:rgb(var(--zn-color-warning));background:color-mix(in srgb,rgb(var(--zn-color-warning)) 14%,transparent)}.inspector-close{display:flex;align-items:center;justify-content:center;flex:0 0 auto;margin-left:auto;width:28px;height:28px;padding:0;border-radius:6px;color:rgb(var(--zn-color-muted-text));background:transparent;cursor:pointer}.inspector-close:hover{background:rgb(var(--zn-color-tab));color:rgb(var(--zn-text))}@keyframes inspector-in{from{transform:translateX(32px);opacity:0.3}to{transform:translateX(0);opacity:1}}.sidebar ::-webkit-scrollbar{width:5px;height:5px}.sidebar{}.sidebar ::-webkit-scrollbar-track{background:transparent}.sidebar{}.sidebar ::-webkit-scrollbar-thumb{background:rgba(var(--inverse-base),0.2);border-radius:5px}.sidebar{}.sidebar ::-webkit-scrollbar-thumb:hover{background:rgba(var(--inverse-base),0.6)}.sidebar{border-left:1px solid rgb(var(--zn-border-color));overflow-y:auto;padding:16px}.sidebar-section__head{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px;font-size:0.8125rem;font-weight:600}.sidebar-count{min-width:20px;padding:0 6px;font-size:0.75rem;line-height:18px;text-align:center;border-radius:9px;color:rgb(var(--zn-color-muted-text));background:rgb(var(--zn-color-tab))}.sidebar-empty{margin:0;font-size:0.75rem;color:rgb(var(--zn-color-muted-text))}.sidebar-error{display:flex;align-items:center;gap:8px;width:100%;margin-bottom:6px;padding:8px 10px;font-size:0.8125rem;text-align:left;color:rgb(var(--zn-color-error));background:color-mix(in srgb,rgb(var(--zn-color-error)) 7%,transparent);border:1px solid color-mix(in srgb,rgb(var(--zn-color-error)) 25%,transparent);border-radius:8px;cursor:pointer}.picker{position:fixed;z-index:21;width:220px;max-height:320px;overflow-y:auto;padding:6px;background:rgb(var(--zn-panel));border:1px solid rgb(var(--zn-border-color));border-radius:8px;box-shadow:0 6px 24px rgba(var(--zn-shadow),0.5)}.picker ::-webkit-scrollbar{width:5px;height:5px}.picker{}.picker ::-webkit-scrollbar-track{background:transparent}.picker{}.picker ::-webkit-scrollbar-thumb{background:rgba(var(--inverse-base),0.2);border-radius:5px}.picker{}.picker ::-webkit-scrollbar-thumb:hover{background:rgba(var(--inverse-base),0.6)}.picker-backdrop{position:fixed;inset:0;z-index:20}.picker-group{padding:8px 8px 4px;font-size:0.6875rem;font-weight:600;text-transform:uppercase;letter-spacing:0.04em;color:rgb(var(--zn-color-muted-text))}.picker-item{display:flex;align-items:center;gap:10px;width:100%;padding:7px 8px;font-size:0.8125rem;text-align:left;background:transparent;border-radius:6px;cursor:pointer}.picker-item:hover{background:rgb(var(--zn-color-tab))}.picker-item__icon{--node-accent:rgb(var(--zn-color-primary));display:flex;align-items:center;justify-content:center;flex:0 0 auto;width:26px;height:26px;border-radius:6px;color:var(--node-accent);background:color-mix(in srgb,var(--node-accent) 14%,transparent)}.picker-empty{margin:0;padding:10px;font-size:0.75rem;color:rgb(var(--zn-color-muted-text))}.save-status{position:absolute;left:16px;bottom:16px;z-index:5;display:flex;align-items:center;gap:6px;padding:5px 10px;font-size:0.75rem;color:rgb(var(--zn-color-muted-text));background:rgb(var(--zn-panel));border:1px solid rgb(var(--zn-border-color));border-radius:8px;box-shadow:0 1px 3px rgba(var(--zn-shadow),0.4);pointer-events:none;transition:color 0.15s ease,border-color 0.15s ease}.save-status--saved{color:rgb(var(--zn-color-success));border-color:color-mix(in srgb,rgb(var(--zn-color-success)) 45%,transparent)}.restore-banner{position:absolute;top:16px;left:50%;transform:translateX(-50%);z-index:5;display:flex;align-items:center;flex-wrap:wrap;justify-content:center;gap:8px;width:-moz-max-content;width:max-content;max-width:calc(100% - 32px);padding:8px 12px;font-size:0.8125rem;color:rgb(var(--zn-text));background:rgb(var(--zn-panel));border:1px solid rgb(var(--zn-border-color));border-radius:8px;box-shadow:0 2px 8px rgba(var(--zn-shadow),0.5)}.restore-banner span{flex:1 1 auto;min-width:min(160px,100%)}.restore-banner button{flex:0 0 auto;padding:3px 10px;font-size:0.75rem;font-weight:600;border-radius:6px;cursor:pointer}.restore-banner__restore{color:rgb(var(--zn-panel));background:rgb(var(--zn-color-primary))}.restore-banner__restore:hover{filter:brightness(1.1)}.restore-banner__dismiss{color:rgb(var(--zn-color-muted-text));background:transparent}.restore-banner__dismiss:hover{background:rgb(var(--zn-color-tab))}.move-banner{position:absolute;top:16px;left:50%;transform:translateX(-50%);z-index:5;display:flex;align-items:center;gap:8px;padding:8px 12px;font-size:0.8125rem;color:rgb(var(--zn-panel));background:rgb(var(--zn-color-primary));border-radius:8px;box-shadow:0 2px 8px rgba(var(--zn-shadow),0.5)}.move-banner button{padding:2px 8px;font-size:0.75rem;font-weight:600;color:rgb(var(--zn-panel));background:rgba(255,255,255,0.2);border-radius:6px;cursor:pointer}`;var BR=50,T3=ul,VR=5,UR=1440*60*1e3;function $3(o){let i=Math.floor(o/1e3);if(i<10)return"just now";if(i<60)return`${i}s ago`;let t=Math.floor(i/60);if(t<60)return`${t}m ago`;let r=Math.floor(t/60);return r<24?`${r}h ago`:`${Math.floor(r/24)}d ago`}var A3=[{group:"entrypoint",label:"Entrypoint"},{group:"trigger",label:"Triggers"},{group:"action",label:"Actions"},{group:"rule",label:"Rules"}],ze=class ze extends S{constructor(){super(...arguments);this.nodeTypes=[];this.heading="";this.subheading="";this.errorNodes=[];this.autoSave=null;this.entrypointsHint="";this.triggersHint="";this.actionsHint="";this.rulesHint="";this.registry=new Jh;this._state=u3();this._selectedNodeId=null;this._selectedBranch=null;this._search="";this._activeGroup=null;this._hasSlot=new Y(this,"header-left","header-right");this._stepsCollapsed=!1;this._sideCollapsed=!1;this._movingNodeId=null;this._picker=null;this._draggingType=null;this._history=[];this._redo=[];this._seq=0;this._untangleRaf=null;this._untangleSettle=null;this._configRevision=0;this._autoSaveTimer=null;this._statusTimer=null;this._justSavedTimer=null;this._restoring=!1;this._lastSavedAt=null;this._justSaved=!1;this._statusNow=Date.now();this._restorePrompt=null;this._autoSaveTick=()=>{if(this._restorePrompt)return;let t=this.getState();if(!(!t.nodes.length&&!t.connections.length&&!t.notes.length))try{localStorage.setItem(this._autoSaveKey,JSON.stringify({savedAt:Date.now(),state:t})),this._lastSavedAt=Date.now(),this._justSaved=!0,this._justSavedTimer!==null&&clearTimeout(this._justSavedTimer),this._justSavedTimer=window.setTimeout(()=>this._justSaved=!1,2500)}catch{}};this._onKeyDown=t=>{t.key==="Escape"&&(this._movingNodeId||this._picker||this._selectedBranch)&&(this._movingNodeId=null,this._picker=null,this._selectedBranch=null)};this._registerSlottedTypes=()=>{let t=!1;this.querySelectorAll("zn-flow-step").forEach(r=>{let n=this._typeFromStep(r);n&&!this.registry.has(n.type)&&(this.registry.register(n),t=!0)}),t&&this.requestUpdate()};this.undo=()=>{let t=this._history.pop();t&&(this._cancelUntangle(),this._redo.push(this._clone(this._state)),this._state=t,this._configRevision++,this._syncSelection(),this._commit())};this.redo=()=>{let t=this._redo.pop();t&&(this._cancelUntangle(),this._history.push(this._clone(this._state)),this._state=t,this._configRevision++,this._syncSelection(),this._commit())};this.untangle=()=>{if(!this._state.nodes.length)return;this._cancelUntangle(),this._pushHistory();let t=C3(this._state,f=>this.registry.get(f)),r=this._state.nodes.map(f=>({n:f,from:{x:f.x,y:f.y},to:t.get(f.id)})).filter(f=>!!f.to),n=()=>{r.forEach(({n:f,to:b})=>{f.x=b.x,f.y=b.y})},a=()=>{this._untangleSettle=null,n(),this._commit()};if(this._untangleSettle=n,window.matchMedia("(prefers-reduced-motion: reduce)").matches){a();return}let s=500,l=f=>f<.5?4*f*f*f:1-Math.pow(-2*f+2,3)/2,d=this.shadowRoot?.querySelector("zn-flow-canvas"),h=performance.now(),m=f=>{let b=Math.min(1,(f-h)/s);if(b>=1){this._untangleRaf=null,a();return}let g=l(b);r.forEach(({n:v,from:y,to:z})=>{v.x=Math.round(y.x+(z.x-y.x)*g),v.y=Math.round(y.y+(z.y-y.y)*g)}),d?.requestUpdate(),this._untangleRaf=requestAnimationFrame(m)};this._untangleRaf=requestAnimationFrame(m)};this._commit=()=>{this._pruneConnections(),this._state={nodes:[...this._state.nodes],connections:[...this._state.connections],notes:[...this._state.notes]},this._restorePrompt=null,this.emit("zn-flow-change",{detail:{state:this.getState()}})};this._onBranchPick=t=>{this._select(null),this._sideCollapsed=!1,this._selectedBranch={nodeId:t.detail.nodeId,port:t.detail.port}};this._onBranchDelete=t=>{let r=this._state.nodes.find(a=>a.id===t.detail.nodeId);if(!r||this.registry.get(r.type)?.fixedOutputs)return;this._pushHistory();let n=er(r,this.registry.get(r.type)).filter(a=>a.id!==t.detail.port);r.outputs=n.length?n:[{...Kh}],this._state.connections=this._state.connections.filter(a=>!(a.source.node===r.id&&a.source.port===t.detail.port)),this._selectedBranch?.nodeId===t.detail.nodeId&&this._selectedBranch.port===t.detail.port&&(this._selectedBranch=null),this._commit()};this._onSelect=t=>{if(t.detail.nodeId===null&&this._movingNodeId){this._movingNodeId=null;return}this._select(t.detail.nodeId)};this._onNodeAction=t=>{let{nodeId:r,action:n}=t.detail;n==="delete"?this._deleteNode(r):n==="duplicate"?this._duplicateNode(r):n==="move"&&(this._movingNodeId=r)};this._onInteractionStart=()=>{this._pushHistory()};this._onOutputAssign=t=>{this._addNodeAtOutput(t.detail.nodeId,t.detail.port,t.detail.type)};this._onLinkAssign=t=>{this._linkNodeAtOutput(t.detail.nodeId,t.detail.port,t.detail.targetId)};this._onWirePick=t=>{this._picker={x:t.detail.clientX,y:t.detail.clientY,target:{kind:"wire",connectionId:t.detail.connectionId}}};this._onWireAssign=t=>{this._insertNodeOnWire(t.detail.connectionId,t.detail.type)};this._onOutputMoveTarget=t=>{let r=this._movingNodeId;if(this._movingNodeId=null,!r)return;let n=t.detail.nodeId;if(n===r)return;let a=this._state.nodes.find(b=>b.id===n),s=this._state.nodes.find(b=>b.id===r);if(!a||!s)return;let l=od(s,this.registry.get(s.type));if(l===null||this._refusesBranch(a,t.detail.port))return;this._pushHistory();let d=this._ensureOutput(a,t.detail.port);this._ensureBranchLabel(a,d),this._state.connections=this._state.connections.filter(b=>b.target.node!==r);let h={id:this._id("conn"),source:{node:n,port:d},target:{node:r,port:l}};this._state.connections.push(h);let m=this._positionBelowOutput(a,d),f=this._freePosition(m.x,m.y,r);s.x=f.x,s.y=f.y,this.emit("zn-flow-connect",{detail:{connection:h}}),this._commit()};this._onAddNote=()=>{this._pushHistory(),this._state.notes.push({id:this._id("note"),x:80,y:80,text:""}),this._commit()};this._onNoteChange=t=>{let r=this._state.notes.find(n=>n.id===t.detail.noteId);r&&(r.text=t.detail.text,this._commit())};this._onNoteDelete=t=>{this._pushHistory(),this._state.notes=this._state.notes.filter(r=>r.id!==t.detail.noteId),this._commit()};this._onDragEnd=()=>{this._draggingType=null};this._onStepDrag=t=>{this._draggingType=t.detail.type};this._onCanvasDragOver=t=>{t.preventDefault()};this._onCanvasDrop=t=>{let r=t.dataTransfer?.getData(T3);if(!r)return;t.preventDefault();let a=this.shadowRoot?.querySelector("zn-flow-canvas")?.screenToCanvas(t.clientX,t.clientY)??{x:t.clientX,y:t.clientY};this._addNode(r,a.x-bt/2,a.y-lr/2)}}get _listeners(){return[["flow-node-select",this._onSelect],["flow-node-action",this._onNodeAction],["flow-interaction-start",this._onInteractionStart],["flow-change-commit",this._commit],["flow-output-assign",this._onOutputAssign],["flow-link-assign",this._onLinkAssign],["flow-output-move-target",this._onOutputMoveTarget],["flow-wire-pick",this._onWirePick],["flow-wire-assign",this._onWireAssign],["flow-branch-pick",this._onBranchPick],["flow-branch-delete",this._onBranchDelete],["flow-step-drag",this._onStepDrag],["flow-step-drag-end",this._onDragEnd],["flow-undo",this.undo],["flow-redo",this.redo],["flow-untangle",this.untangle],["flow-add-note",this._onAddNote],["flow-note-change",this._onNoteChange],["flow-note-delete",this._onNoteDelete]]}connectedCallback(){super.connectedCallback(),this._listeners.forEach(([t,r])=>this.addEventListener(t,r)),document.addEventListener("keydown",this._onKeyDown)}disconnectedCallback(){this._listeners.forEach(([t,r])=>this.removeEventListener(t,r)),document.removeEventListener("keydown",this._onKeyDown),this._cancelUntangle(),this._stopAutoSave(),this._justSavedTimer!==null&&(clearTimeout(this._justSavedTimer),this._justSavedTimer=null),super.disconnectedCallback()}get _autoSaveKey(){return`zn-flow-builder:${this.id||this.heading||"flow"}`}_stopAutoSave(){this._autoSaveTimer!==null&&(clearInterval(this._autoSaveTimer),this._autoSaveTimer=null),this._statusTimer!==null&&(clearInterval(this._statusTimer),this._statusTimer=null)}_restartAutoSave(){if(this._stopAutoSave(),this.autoSave===null)return;let t=this._readAutoSave();t&&(this._lastSavedAt=t.savedAt),this._autoSaveTimer=window.setInterval(this._autoSaveTick,this.autoSave*6e4),this._statusTimer=window.setInterval(()=>this._statusNow=Date.now(),3e4)}_readAutoSave(){try{let t=localStorage.getItem(this._autoSaveKey);if(!t)return null;let r=JSON.parse(t);return!r.state||Date.now()-r.savedAt>UR?(localStorage.removeItem(this._autoSaveKey),null):r}catch{return null}}restoreAutoSave(){let t=this._readAutoSave();if(!t)return!1;this._restoring=!0;try{this.setState(t.state)}finally{this._restoring=!1}return this._restorePrompt=null,!0}_offerRestoreIfNewer(){if(this.autoSave===null||this._restoring)return;let t=this._readAutoSave();this._restorePrompt=t&&JSON.stringify(t.state)!==JSON.stringify(this._state)?{savedAt:t.savedAt}:null}willUpdate(t){t.has("nodeTypes")&&this.nodeTypes?.length&&this.registry.registerAll(this.nodeTypes),t.has("autoSave")&&this._restartAutoSave(),super.willUpdate(t)}firstUpdated(t){super.firstUpdated(t),this._registerSlottedTypes()}static _parsePorts(t){if(t===null)return;let r=t.trim();if(r==="")return[];try{let n=JSON.parse(r);return Array.isArray(n)?n.map(a=>typeof a=="string"?{id:a}:a):void 0}catch{return}}static _parseFilterOptions(t){if(t===null)return;let r=t.trim();if(r!==""){if(r.startsWith("["))try{let n=JSON.parse(r);return Array.isArray(n)?n.map(a=>typeof a=="string"?{value:a}:a):void 0}catch{return}return r.split(",").map(n=>n.trim()).filter(Boolean).map(n=>({value:n}))}}static _nestedFilterOptions(t,r){let n=Array.from(t.querySelectorAll(`:scope > ${r}`));if(n.length)return n.map(a=>{let s=a.textContent?.trim()??"",l=a.getAttribute("value");return l!==null&&s?{value:l,label:s}:{value:l??s}})}static _filterFieldFromEl(t){let r=t.getAttribute("id");if(!r)return null;let n=t.getAttribute("value"),a=t.getAttribute("type");return{id:r,label:t.getAttribute("label")??void 0,type:a??void 0,operators:ze._nestedFilterOptions(t,"zn-flow-operator")??ze._parseFilterOptions(t.getAttribute("operators")),options:ze._nestedFilterOptions(t,"zn-flow-option")??ze._parseFilterOptions(t.getAttribute("options")),units:ze._nestedFilterOptions(t,"zn-flow-unit")??ze._parseFilterOptions(t.getAttribute("units")),suffix:t.getAttribute("suffix")??void 0,placeholder:t.getAttribute("placeholder")??void 0,value:n===null?void 0:a==="number"?Number(n):n}}static _parseBranchFilters(t){let r=s=>s?.map(l=>typeof l=="string"?{value:l}:l),n=t.getAttribute("branch-filters");if(n)try{let s=JSON.parse(n);if(Array.isArray(s))return s.map(l=>({...l,fields:(l.fields??[]).map(d=>({...d,...d.operators?{operators:r(d.operators)}:{},...d.options?{options:r(d.options)}:{},...d.units?{units:r(d.units)}:{}}))}))}catch{}let a=Array.from(t.querySelectorAll(":scope > zn-flow-filter")).map(s=>{let l=s.getAttribute("id")??s.getAttribute("label");return l?{id:l,label:s.getAttribute("label")??l,description:s.getAttribute("description")??void 0,fields:Array.from(s.querySelectorAll(":scope > zn-flow-filter-field")).map(d=>ze._filterFieldFromEl(d)).filter(d=>!!d)}:null}).filter(s=>!!s);return a.length?a:void 0}_typeFromStep(t){let r=t.getAttribute("type");if(!r)return null;let n=Array.from(t.childNodes).filter(a=>a.nodeType===Node.TEXT_NODE).map(a=>a.textContent??"").join("").trim();return{type:r,label:t.getAttribute("label")??(n||r),group:t.getAttribute("group")??"action",category:t.getAttribute("category")??void 0,icon:t.getAttribute("icon")??void 0,iconLibrary:t.getAttribute("icon-library")??void 0,color:t.getAttribute("color")??void 0,description:t.getAttribute("description")??void 0,inputs:ze._parsePorts(t.getAttribute("inputs")),outputs:ze._parsePorts(t.getAttribute("outputs")),fixedOutputs:t.hasAttribute("fixed-outputs"),branchFilters:ze._parseBranchFilters(t)}}registerNodeType(t){return this.registry.register(t),this.requestUpdate(),this}registerNodeTypes(t){return this.registry.registerAll(t),this.requestUpdate(),this}getState(){return this._clone(this._state)}setState(t){this._cancelUntangle(),this._state=t,this._history=[],this._redo=[],this._selectedNodeId=null,this._configRevision++,this._offerRestoreIfNewer()}get value(){return JSON.stringify(this._state)}set value(t){try{let r=JSON.parse(t);this.setState({nodes:r.nodes??[],connections:r.connections??[],notes:r.notes??[]})}catch{}}toJSON(){return this.getState()}_cancelUntangle(){this._untangleRaf!==null&&(cancelAnimationFrame(this._untangleRaf),this._untangleRaf=null),this._untangleSettle?.(),this._untangleSettle=null}_clone(t){return JSON.parse(JSON.stringify(t))}_pushHistory(){this._history.push(this._clone(this._state)),this._history.length>BR&&this._history.shift(),this._redo=[]}_pruneConnections(){let t=new Map(this._state.nodes.map(r=>[r.id,r]));this._state.connections=this._state.connections.filter(r=>{let n=t.get(r.source.node),a=t.get(r.target.node);if(!n||!a)return!1;let s=er(n,this.registry.get(n.type)).some(d=>d.id===r.source.port),l=ia(a,this.registry.get(a.type)).some(d=>d.id===r.target.port);return s&&l})}_syncSelection(){this._selectedNodeId&&!this._state.nodes.some(t=>t.id===this._selectedNodeId)&&(this._selectedNodeId=null),this._selectedBranch&&!this._branchSelection()&&(this._selectedBranch=null)}_branchSelection(){if(!this._selectedBranch)return null;let t=this._state.nodes.find(n=>n.id===this._selectedBranch.nodeId);if(!t)return null;let r=er(t,this.registry.get(t.type)).find(n=>n.id===this._selectedBranch.port);return r?{node:t,port:r}:null}_id(t){return`${t}-${Date.now().toString(36)}-${++this._seq}`}_freePosition(t,r,n){let a=new Set(this._state.connections.filter(d=>n&&d.target.node===n&&d.source.node!==n).map(d=>d.source.node)),s=(d,h)=>{let m=n?this._state.nodes.map(b=>b.id===n?{...b,x:d,y:h}:b):this._state.nodes,f=b=>this.registry.get(b);return m.some(b=>b.id!==n&&c3({x:d,y:h},b,f,m,this._state.connections))?!0:[...a].some(b=>{let g=m.find(v=>v.id===b);return!!g&&Qh(g,f,m,this._state.connections)})};if(t=Dr(t),r=Dr(r),!s(t,r))return{x:t,y:r};let l=Zt*2;for(let d=1;d<40;d++)for(let h=-d;h<=d;h++)for(let m=-d;m<=d;m++)if(Math.max(Math.abs(m),Math.abs(h))===d&&!s(t+m*l,r+h*l))return{x:t+m*l,y:r+h*l};return{x:t,y:r}}_addNode(t,r,n){let a=this.registry.get(t);if(!a)return;this._pushHistory();let s=this._freePosition(r,n),l={id:this._id("node"),type:t,x:s.x,y:s.y,data:{...a.defaultData??{}}};this._state.nodes.push(l),this._select(l.id),this._commit()}_deleteNode(t){this._pushHistory(),this._state.nodes=this._state.nodes.filter(r=>r.id!==t),this._state.connections=this._state.connections.filter(r=>r.source.node!==t&&r.target.node!==t),this._selectedNodeId===t&&this._select(null),this._commit()}_duplicateNode(t){let r=this._state.nodes.find(s=>s.id===t);if(!r)return;this._pushHistory();let n=this._freePosition(r.x+Zt*2,r.y+Zt*2),a={...this._clone({nodes:[r],connections:[],notes:[]}).nodes[0],id:this._id("node"),x:n.x,y:n.y};this._state.nodes.push(a),this._select(a.id),this._commit()}_positionBelowOutput(t,r){let n=er(t,this.registry.get(t.type)),a=Math.max(n.findIndex(l=>l.id===r),0),s=nd(t,l=>this.registry.get(l),this._state.connections)[a];return{x:Math.round(s-bt/2),y:t.y+Zh}}_refusesBranch(t,r){return r===id&&!!this.registry.get(t.type)?.fixedOutputs}_ensureOutput(t,r){if(r!==id)return r;let n=er(t,this.registry.get(t.type)).map(s=>({...s})),a=this._id("branch");return n.push({id:a,label:"Branch"}),t.outputs=n,a}_ensureBranchLabel(t,r){let n=er(t,this.registry.get(t.type)).map(s=>({...s})),a=n.find(s=>s.id===r);a&&!a.label&&(a.label="Branch",t.outputs=n)}_addNodeAtOutput(t,r,n){let a=this._state.nodes.find(b=>b.id===t),s=this.registry.get(n);if(!a||!s)return;let l=Xh(s)[0]?.id;if(!l||this._refusesBranch(a,r))return;this._pushHistory(),r=this._ensureOutput(a,r),this._ensureBranchLabel(a,r);let d=this._positionBelowOutput(a,r),h=this._freePosition(d.x,d.y),m={id:this._id("node"),type:n,x:h.x,y:h.y,data:{...s.defaultData??{}}},f={id:this._id("conn"),source:{node:t,port:r},target:{node:m.id,port:l}};this._state.nodes.push(m),this._state.connections.push(f),this.emit("zn-flow-connect",{detail:{connection:f}}),this._select(m.id),this._commit()}_linkNodeAtOutput(t,r,n){let a=this._state.nodes.find(h=>h.id===t),s=this._state.nodes.find(h=>h.id===n);if(!a||!s||t===n)return;let l=od(s,this.registry.get(s.type));if(l===null||this._refusesBranch(a,r))return;this._pushHistory(),r=this._ensureOutput(a,r),this._ensureBranchLabel(a,r);let d={id:this._id("conn"),source:{node:t,port:r},target:{node:n,port:l}};this._state.connections.push(d),this.emit("zn-flow-connect",{detail:{connection:d}}),this._select(null),this._selectedBranch={nodeId:t,port:r},this._commit()}_insertNodeOnWire(t,r){let n=this._state.connections.find(z=>z.id===t),a=this.registry.get(r);if(!n||!a)return;let s=this._state.nodes.find(z=>z.id===n.source.node),l=this._state.nodes.find(z=>z.id===n.target.node);if(!s||!l)return;let d=Xh(a)[0]?.id;if(!d)return;this._pushHistory();let h=tb(a).map(z=>({...z}));h.length||h.push({id:this._id("branch")}),h[0].label||(h[0].label="Branch");let m=this._positionBelowOutput(s,n.source.port),f=m.y+Zh;if(l.y<f){let z=f-l.y,E=m3(this._state,l.id);E.add(l.id),this._state.nodes.forEach(N=>{E.has(N.id)&&(N.y+=z)})}let b=this._freePosition(m.x,m.y),g={id:this._id("node"),type:r,x:b.x,y:b.y,outputs:h,data:{...a.defaultData??{}}},v=n.target.port;n.target={node:g.id,port:d};let y={id:this._id("conn"),source:{node:g.id,port:h[0].id},target:{node:l.id,port:v}};this._state.nodes.push(g),this._state.connections.push(y),this.emit("zn-flow-connect",{detail:{connection:y}}),this._select(g.id),this._commit()}_select(t){this._selectedBranch=null,t&&(this._sideCollapsed=!1),this._selectedNodeId!==t&&(this._selectedNodeId=t,this.emit("zn-flow-selection-change",{detail:{nodeId:t}}))}_onDragStart(t,r){t.dataTransfer&&(this._draggingType=r,t.dataTransfer.setData(T3,r),t.dataTransfer.effectAllowed="copyMove",t.dataTransfer.setDragImage(Wh(),0,0))}_renderSteps(){return u`
5580
+ `}};Pn.styles=_(k3),Pn.dependencies={"zn-collapsible":_a},c([p()],Pn.prototype,"caption",2),c([p({type:Boolean,reflect:!0})],Pn.prototype,"collapsed",2);var ab=Pn;Pn.define("zn-flow-step-group");var Jh=class{constructor(){this.types=new Map}register(i){return this.types.set(i.type,i),this}registerAll(i){return i.forEach(t=>this.register(t)),this}get(i){return this.types.get(i)}has(i){return this.types.has(i)}all(){return Array.from(this.types.values())}byGroup(i){return this.all().filter(t=>t.group===i)}categories(i){let t=new Map;for(let r of this.byGroup(i)){let n=r.category??"",a=t.get(n)??[];a.push(r),t.set(n,a)}return t}clear(){this.types.clear()}};var S3=bt+80,Zh=220,sb=40,sd=o=>o.reduce((i,t)=>i+t,0)/o.length;function C3(o,i){let t=new Map,r=o.nodes;if(!r.length)return t;let n=new Map(r.map(C=>[C.id,C])),a=new Map(r.map(C=>[C.id,[]])),s=new Map(r.map(C=>[C.id,[]]));for(let C of o.connections)!n.has(C.source.node)||!n.has(C.target.node)||(a.get(C.target.node).push(C),s.get(C.source.node).push(C));let l=na(r,o.connections),d=new Map,h=C=>{let $=d.get(C);if($!==void 0)return $;let L=a.get(C).filter(ne=>!l.has(ne)),K=L.length?Math.max(...L.map(ne=>h(ne.source.node)))+1:0;return d.set(C,K),K};r.forEach(C=>h(C.id)),r.forEach(C=>{if(a.get(C.id).some(K=>!l.has(K)))return;let $=s.get(C.id).filter(K=>!l.has(K));if(!$.length)return;let L=Math.min(...$.map(K=>d.get(K.target.node)))-1;L>d.get(C.id)&&d.set(C.id,L)});let m=Array.from({length:Math.max(...d.values())+1},()=>[]);r.forEach(C=>m[d.get(C.id)].push(C));let f=C=>{let $=n.get(C.source.node),L=Zt($,i($.type)),K=Math.max(L.length,1),ne=Math.max(L.findIndex(we=>we.id===C.source.port),0);return K===1?0:(ne-(K-1)/2)*Yg},b=new Map,g=C=>{let $=a.get(C.id).filter(L=>!l.has(L)&&b.has(L.source.node));return $.length?sd($.map(L=>{let K=n.get(L.source.node),ne=Zt(K,i(K.type)),we=Math.max(ne.length,1),De=Math.max(ne.findIndex(Pe=>Pe.id===L.source.port),0);return b.get(K.id)+(De+1)/(we+1)-.5})):null},v=C=>{let $=s.get(C.id).filter(L=>!l.has(L)&&b.has(L.target.node));return $.length?sd($.map(L=>b.get(L.target.node))):null};m[0].sort((C,$)=>C.x-$.x).forEach((C,$)=>b.set(C.id,$));for(let C=1;C<m.length;C++)m[C].sort(($,L)=>(g($)??0)-(g(L)??0)).forEach(($,L)=>b.set($.id,L));for(let C=1;C<m.length;C++){let $=L=>g(L)??v(L)??0;m[C].sort((L,K)=>$(L)-$(K)).forEach((L,K)=>b.set(L.id,K))}let y=new Map,z=(C,$)=>{let L=C.map(De=>$(De)??y.get(De.id)??0),K=-1/0,ne=L.map(De=>K=Math.max(De,K+S3)),we=sd(ne.map((De,Pe)=>De-L[Pe]));C.forEach((De,Pe)=>y.set(De.id,ne[Pe]-we))},E=C=>{let $=a.get(C.id).filter(L=>!l.has(L)&&y.has(L.source.node));return $.length?sd($.map(L=>y.get(L.source.node)+f(L))):null},N=C=>{let $=s.get(C.id).filter(L=>!l.has(L)&&y.has(L.target.node));return $.length?sd($.map(L=>y.get(L.target.node)-f(L))):null};m[0].forEach((C,$)=>y.set(C.id,$*S3));for(let C=1;C<m.length;C++)z(m[C],E);for(let C=m.length-2;C>=0;C--)z(m[C],N);for(let C=1;C<m.length;C++)z(m[C],E);let U=[...y.values()].filter(Number.isFinite),R=U.length?Math.min(...U):0;return r.forEach(C=>{let $=y.get(C.id);t.set(C.id,{x:Dr(Number.isFinite($)?$-R+sb:sb),y:sb+d.get(C.id)*Zh})}),t}var E3=k`@keyframes rotate-gradient{from{--rotate:0deg}to{--rotate:360deg}}:host{text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-transform:none}*,*::before,*::after{box-sizing:border-box;border-width:0;border-style:solid;border-color:rgb(var(--zn-border-color))}[hidden]{display:none !important}.width-container,.form-container,.wide-form-container{height:100%;width:100%;margin:var(--zn-default-margin,0 auto)}.width-container{max-width:var(--zn-container)}.form-container{max-width:var(--zn-container-ph)}.wide-form-container{max-width:var(--zn-container-lg)}:host ::-webkit-scrollbar{width:5px;height:5px}:host{}:host ::-webkit-scrollbar-track{background:transparent}:host{}:host ::-webkit-scrollbar-thumb{background:rgba(var(--inverse-base),0.2);border-radius:5px}:host{}:host ::-webkit-scrollbar-thumb:hover{background:rgba(var(--inverse-base),0.6)}:host{display:block;width:100%;height:100%;min-height:480px;color:rgb(var(--zn-text))}.builder{--steps-width:343px;--side-width:500px;display:grid;grid-template-columns:var(--steps-width) minmax(0,1fr) var(--side-width);grid-template-rows:auto minmax(0,1fr);width:100%;height:100%;background:rgb(var(--zn-panel));border:1px solid rgb(var(--zn-border-color));border-radius:8px;overflow:hidden;transition:grid-template-columns 0.2s ease}.builder--steps-collapsed{--steps-width:0px}.builder--steps-collapsed .steps{border-right:none}.builder--side-collapsed{--side-width:0px}.builder--side-collapsed .sidebar,.builder--side-collapsed .inspector{padding:0;border-left:none}.header{grid-row:1;grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:10px 14px;border-bottom:1px solid rgb(var(--zn-border-color));background:rgb(var(--zn-panel))}.header[hidden]{display:none}.header__group{display:flex;align-items:center;gap:8px}.steps,.inspector,.sidebar{grid-row:2;display:flex;flex-direction:column;min-height:0;min-width:0;overflow:hidden;background:rgb(var(--zn-panel))}.canvas-cell{grid-row:2;position:relative;min-width:0;min-height:0}.panel-toggle{position:absolute;top:50%;z-index:6;transform:translateY(-50%);display:flex;align-items:center;justify-content:center;width:24px;height:24px;padding:0;border-radius:50%;color:rgb(var(--zn-color-muted-text));background:rgb(var(--zn-panel));border:1px solid rgb(var(--zn-border-color));box-shadow:0 1px 3px rgba(var(--zn-shadow),0.4);cursor:pointer;transition:left 0.2s ease,right 0.2s ease,color 0.12s ease,border-color 0.12s ease}.panel-toggle:hover{color:rgb(var(--zn-text));border-color:rgb(var(--zn-color-border-active))}.panel-toggle--left{left:-12px}.panel-toggle--left.panel-toggle--tucked{left:8px}.panel-toggle--right{right:-12px}.panel-toggle--right.panel-toggle--tucked{right:8px}.steps{--zn-active-nav-background:var(--zn-panel);--navbar-page-inactive-tab-background:rgb(var(--zn-color-tab));--navbar-page-inactive-tab-filter:none;border-right:1px solid rgb(var(--zn-border-color))}.steps-content{flex:1;min-height:0;display:flex;flex-direction:column}.steps-panel{display:flex;flex-direction:column;min-height:0;height:100%}.steps-hint{margin:0;padding:12px var(--zn-base-gap);font-size:0.8125rem;line-height:1.4;color:rgb(var(--zn-color-muted-text))}.steps-scroll ::-webkit-scrollbar{width:5px;height:5px}.steps-scroll{}.steps-scroll ::-webkit-scrollbar-track{background:transparent}.steps-scroll{}.steps-scroll ::-webkit-scrollbar-thumb{background:rgba(var(--inverse-base),0.2);border-radius:5px}.steps-scroll{}.steps-scroll ::-webkit-scrollbar-thumb:hover{background:rgba(var(--inverse-base),0.6)}.steps-scroll{flex:1;min-height:0;overflow-y:auto;padding-bottom:16px}.steps-scroll zn-flow-step-group{display:block;border-top:1px solid rgb(var(--zn-border-color))}.steps-uncategorized{padding:8px var(--zn-base-gap)}.steps-empty{padding:16px var(--zn-base-gap);font-size:0.8125rem;color:rgb(var(--zn-color-muted-text))}.declarations{display:none}.title-block{padding:16px;border-bottom:1px solid rgb(var(--zn-border-color))}.title-block .heading{font-size:0.9375rem;font-weight:600}.title-block .subheading{margin-top:2px;font-size:0.75rem;color:rgb(var(--zn-color-muted-text))}.search{padding:12px 12px 8px}.step{display:flex;align-items:center;gap:10px;padding:8px 10px;margin-bottom:6px;background:rgb(var(--zn-panel));border:1px solid rgb(var(--zn-border-color));border-radius:8px;font-size:0.8125rem;cursor:grab;transition:border-color 0.12s ease,box-shadow 0.12s ease}.step:hover{border-color:rgb(var(--zn-color-border-active));box-shadow:0 1px 3px rgba(var(--zn-shadow),0.4)}.step:active{cursor:grabbing}.step__icon{--node-accent:rgb(var(--zn-color-primary));display:flex;align-items:center;justify-content:center;flex:0 0 auto;width:28px;height:28px;border-radius:6px;color:var(--node-accent);background:color-mix(in srgb,var(--node-accent) 14%,transparent)}.step__label{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.inspector{border-left:1px solid rgb(var(--zn-border-color));animation:inspector-in 0.18s ease}.inspector-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;height:100%;padding:24px;text-align:center;color:rgb(var(--zn-color-muted-text));font-size:0.8125rem}.inspector-head{display:flex;align-items:center;gap:12px;padding:16px;border-bottom:1px solid rgb(var(--zn-border-color))}.inspector-head__icon{--node-accent:rgb(var(--zn-color-primary));display:flex;align-items:center;justify-content:center;flex:0 0 auto;width:36px;height:36px;border-radius:8px;color:var(--node-accent);background:color-mix(in srgb,var(--node-accent) 14%,transparent)}.inspector-head__text{flex:1;min-width:0}.inspector-head__title-row{display:flex;align-items:center;gap:6px;min-width:0}.inspector-head__title-row .inspector-head__title{min-width:0}.inspector-head__title{font-size:0.875rem;font-weight:600}.inspector-head__title,.inspector-head__type{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.inspector-head__type{font-size:0.75rem;color:rgb(var(--zn-color-muted-text))}.inspector-body ::-webkit-scrollbar{width:5px;height:5px}.inspector-body{}.inspector-body ::-webkit-scrollbar-track{background:transparent}.inspector-body{}.inspector-body ::-webkit-scrollbar-thumb{background:rgba(var(--inverse-base),0.2);border-radius:5px}.inspector-body{}.inspector-body ::-webkit-scrollbar-thumb:hover{background:rgba(var(--inverse-base),0.6)}.inspector-body{display:flex;flex-direction:column;gap:14px;flex:1;min-height:0;overflow-y:auto;padding:16px}.inspector-hint{margin:0;font-size:0.75rem;color:rgb(var(--zn-color-muted-text))}.inspector-loop-tag{display:inline-flex;align-items:center;flex:0 0 auto;gap:3px;padding:2px 8px;border-radius:999px;font-size:0.6875rem;font-weight:600;line-height:1;color:rgb(var(--zn-color-warning));background:color-mix(in srgb,rgb(var(--zn-color-warning)) 14%,transparent)}.inspector-close{display:flex;align-items:center;justify-content:center;flex:0 0 auto;margin-left:auto;width:28px;height:28px;padding:0;border-radius:6px;color:rgb(var(--zn-color-muted-text));background:transparent;cursor:pointer}.inspector-close:hover{background:rgb(var(--zn-color-tab));color:rgb(var(--zn-text))}@keyframes inspector-in{from{transform:translateX(32px);opacity:0.3}to{transform:translateX(0);opacity:1}}.sidebar ::-webkit-scrollbar{width:5px;height:5px}.sidebar{}.sidebar ::-webkit-scrollbar-track{background:transparent}.sidebar{}.sidebar ::-webkit-scrollbar-thumb{background:rgba(var(--inverse-base),0.2);border-radius:5px}.sidebar{}.sidebar ::-webkit-scrollbar-thumb:hover{background:rgba(var(--inverse-base),0.6)}.sidebar{border-left:1px solid rgb(var(--zn-border-color));overflow-y:auto;padding:16px}.sidebar-section__head{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px;font-size:0.8125rem;font-weight:600}.sidebar-count{min-width:20px;padding:0 6px;font-size:0.75rem;line-height:18px;text-align:center;border-radius:9px;color:rgb(var(--zn-color-muted-text));background:rgb(var(--zn-color-tab))}.sidebar-empty{margin:0;font-size:0.75rem;color:rgb(var(--zn-color-muted-text))}.sidebar-error{display:flex;align-items:center;gap:8px;width:100%;margin-bottom:6px;padding:8px 10px;font-size:0.8125rem;text-align:left;color:rgb(var(--zn-color-error));background:color-mix(in srgb,rgb(var(--zn-color-error)) 7%,transparent);border:1px solid color-mix(in srgb,rgb(var(--zn-color-error)) 25%,transparent);border-radius:8px;cursor:pointer}.picker{position:fixed;z-index:21;width:220px;max-height:320px;overflow-y:auto;padding:6px;background:rgb(var(--zn-panel));border:1px solid rgb(var(--zn-border-color));border-radius:8px;box-shadow:0 6px 24px rgba(var(--zn-shadow),0.5)}.picker ::-webkit-scrollbar{width:5px;height:5px}.picker{}.picker ::-webkit-scrollbar-track{background:transparent}.picker{}.picker ::-webkit-scrollbar-thumb{background:rgba(var(--inverse-base),0.2);border-radius:5px}.picker{}.picker ::-webkit-scrollbar-thumb:hover{background:rgba(var(--inverse-base),0.6)}.picker-backdrop{position:fixed;inset:0;z-index:20}.picker-group{padding:8px 8px 4px;font-size:0.6875rem;font-weight:600;text-transform:uppercase;letter-spacing:0.04em;color:rgb(var(--zn-color-muted-text))}.picker-item{display:flex;align-items:center;gap:10px;width:100%;padding:7px 8px;font-size:0.8125rem;text-align:left;background:transparent;border-radius:6px;cursor:pointer}.picker-item:hover{background:rgb(var(--zn-color-tab))}.picker-item__icon{--node-accent:rgb(var(--zn-color-primary));display:flex;align-items:center;justify-content:center;flex:0 0 auto;width:26px;height:26px;border-radius:6px;color:var(--node-accent);background:color-mix(in srgb,var(--node-accent) 14%,transparent)}.picker-empty{margin:0;padding:10px;font-size:0.75rem;color:rgb(var(--zn-color-muted-text))}.save-status{position:absolute;left:16px;bottom:16px;z-index:5;display:flex;align-items:center;gap:6px;padding:5px 10px;font-size:0.75rem;color:rgb(var(--zn-color-muted-text));background:rgb(var(--zn-panel));border:1px solid rgb(var(--zn-border-color));border-radius:8px;box-shadow:0 1px 3px rgba(var(--zn-shadow),0.4);pointer-events:none;transition:color 0.15s ease,border-color 0.15s ease}.save-status--saved{color:rgb(var(--zn-color-success));border-color:color-mix(in srgb,rgb(var(--zn-color-success)) 45%,transparent)}.restore-banner{position:absolute;top:16px;left:50%;transform:translateX(-50%);z-index:5;display:flex;align-items:center;flex-wrap:wrap;justify-content:center;gap:8px;width:-moz-max-content;width:max-content;max-width:calc(100% - 32px);padding:8px 12px;font-size:0.8125rem;color:rgb(var(--zn-text));background:rgb(var(--zn-panel));border:1px solid rgb(var(--zn-border-color));border-radius:8px;box-shadow:0 2px 8px rgba(var(--zn-shadow),0.5)}.restore-banner span{flex:1 1 auto;min-width:min(160px,100%)}.restore-banner button{flex:0 0 auto;padding:3px 10px;font-size:0.75rem;font-weight:600;border-radius:6px;cursor:pointer}.restore-banner__restore{color:rgb(var(--zn-panel));background:rgb(var(--zn-color-primary))}.restore-banner__restore:hover{filter:brightness(1.1)}.restore-banner__dismiss{color:rgb(var(--zn-color-muted-text));background:transparent}.restore-banner__dismiss:hover{background:rgb(var(--zn-color-tab))}.move-banner{position:absolute;top:16px;left:50%;transform:translateX(-50%);z-index:5;display:flex;align-items:center;gap:8px;padding:8px 12px;font-size:0.8125rem;color:rgb(var(--zn-panel));background:rgb(var(--zn-color-primary));border-radius:8px;box-shadow:0 2px 8px rgba(var(--zn-shadow),0.5)}.move-banner button{padding:2px 8px;font-size:0.75rem;font-weight:600;color:rgb(var(--zn-panel));background:rgba(255,255,255,0.2);border-radius:6px;cursor:pointer}`;var BR=50,T3=ul,VR=5,UR=1440*60*1e3;function $3(o){let i=Math.floor(o/1e3);if(i<10)return"just now";if(i<60)return`${i}s ago`;let t=Math.floor(i/60);if(t<60)return`${t}m ago`;let r=Math.floor(t/60);return r<24?`${r}h ago`:`${Math.floor(r/24)}d ago`}var A3=[{group:"entrypoint",label:"Entrypoint"},{group:"trigger",label:"Triggers"},{group:"action",label:"Actions"},{group:"rule",label:"Rules"}],ze=class ze extends S{constructor(){super(...arguments);this.nodeTypes=[];this.heading="";this.subheading="";this.errorNodes=[];this.autoSave=null;this.entrypointsHint="";this.triggersHint="";this.actionsHint="";this.rulesHint="";this.registry=new Jh;this._state=u3();this._selectedNodeId=null;this._selectedBranch=null;this._search="";this._activeGroup=null;this._hasSlot=new Y(this,"header-left","header-right");this._stepsCollapsed=!1;this._sideCollapsed=!1;this._movingNodeId=null;this._picker=null;this._draggingType=null;this._history=[];this._redo=[];this._seq=0;this._untangleRaf=null;this._untangleSettle=null;this._configRevision=0;this._autoSaveTimer=null;this._statusTimer=null;this._justSavedTimer=null;this._restoring=!1;this._lastSavedAt=null;this._justSaved=!1;this._statusNow=Date.now();this._restorePrompt=null;this._autoSaveTick=()=>{if(this._restorePrompt)return;let t=this.getState();if(!(!t.nodes.length&&!t.connections.length&&!t.notes.length))try{localStorage.setItem(this._autoSaveKey,JSON.stringify({savedAt:Date.now(),state:t})),this._lastSavedAt=Date.now(),this._justSaved=!0,this._justSavedTimer!==null&&clearTimeout(this._justSavedTimer),this._justSavedTimer=window.setTimeout(()=>this._justSaved=!1,2500)}catch{}};this._onKeyDown=t=>{t.key==="Escape"&&(this._movingNodeId||this._picker||this._selectedBranch)&&(this._movingNodeId=null,this._picker=null,this._selectedBranch=null)};this._registerSlottedTypes=()=>{let t=!1;this.querySelectorAll("zn-flow-step").forEach(r=>{let n=this._typeFromStep(r);n&&!this.registry.has(n.type)&&(this.registry.register(n),t=!0)}),t&&this.requestUpdate()};this.undo=()=>{let t=this._history.pop();t&&(this._cancelUntangle(),this._redo.push(this._clone(this._state)),this._state=t,this._configRevision++,this._syncSelection(),this._commit())};this.redo=()=>{let t=this._redo.pop();t&&(this._cancelUntangle(),this._history.push(this._clone(this._state)),this._state=t,this._configRevision++,this._syncSelection(),this._commit())};this.untangle=()=>{if(!this._state.nodes.length)return;this._cancelUntangle(),this._pushHistory();let t=C3(this._state,f=>this.registry.get(f)),r=this._state.nodes.map(f=>({n:f,from:{x:f.x,y:f.y},to:t.get(f.id)})).filter(f=>!!f.to),n=()=>{r.forEach(({n:f,to:b})=>{f.x=b.x,f.y=b.y})},a=()=>{this._untangleSettle=null,n(),this._commit()};if(this._untangleSettle=n,window.matchMedia("(prefers-reduced-motion: reduce)").matches){a();return}let s=500,l=f=>f<.5?4*f*f*f:1-Math.pow(-2*f+2,3)/2,d=this.shadowRoot?.querySelector("zn-flow-canvas"),h=performance.now(),m=f=>{let b=Math.min(1,(f-h)/s);if(b>=1){this._untangleRaf=null,a();return}let g=l(b);r.forEach(({n:v,from:y,to:z})=>{v.x=Math.round(y.x+(z.x-y.x)*g),v.y=Math.round(y.y+(z.y-y.y)*g)}),d?.requestUpdate(),this._untangleRaf=requestAnimationFrame(m)};this._untangleRaf=requestAnimationFrame(m)};this._commit=()=>{this._pruneConnections(),this._state={nodes:[...this._state.nodes],connections:[...this._state.connections],notes:[...this._state.notes]},this._restorePrompt=null,this.emit("zn-flow-change",{detail:{state:this.getState()}})};this._onBranchPick=t=>{this._select(null),this._sideCollapsed=!1,this._selectedBranch={nodeId:t.detail.nodeId,port:t.detail.port}};this._onBranchDelete=t=>{let r=this._state.nodes.find(a=>a.id===t.detail.nodeId);if(!r||this.registry.get(r.type)?.fixedOutputs)return;this._pushHistory();let n=Zt(r,this.registry.get(r.type)).filter(a=>a.id!==t.detail.port);r.outputs=n.length?n:[{...Kh}],this._state.connections=this._state.connections.filter(a=>!(a.source.node===r.id&&a.source.port===t.detail.port)),this._selectedBranch?.nodeId===t.detail.nodeId&&this._selectedBranch.port===t.detail.port&&(this._selectedBranch=null),this._commit()};this._onSelect=t=>{if(t.detail.nodeId===null&&this._movingNodeId){this._movingNodeId=null;return}this._select(t.detail.nodeId)};this._onNodeAction=t=>{let{nodeId:r,action:n}=t.detail;n==="delete"?this._deleteNode(r):n==="duplicate"?this._duplicateNode(r):n==="move"&&(this._movingNodeId=r)};this._onInteractionStart=()=>{this._pushHistory()};this._onOutputAssign=t=>{this._addNodeAtOutput(t.detail.nodeId,t.detail.port,t.detail.type)};this._onLinkAssign=t=>{this._linkNodeAtOutput(t.detail.nodeId,t.detail.port,t.detail.targetId)};this._onWirePick=t=>{this._picker={x:t.detail.clientX,y:t.detail.clientY,target:{kind:"wire",connectionId:t.detail.connectionId}}};this._onWireAssign=t=>{this._insertNodeOnWire(t.detail.connectionId,t.detail.type)};this._onOutputMoveTarget=t=>{let r=this._movingNodeId;if(this._movingNodeId=null,!r)return;let n=t.detail.nodeId;if(n===r)return;let a=this._state.nodes.find(b=>b.id===n),s=this._state.nodes.find(b=>b.id===r);if(!a||!s)return;let l=od(s,this.registry.get(s.type));if(l===null||this._refusesBranch(a,t.detail.port))return;this._pushHistory();let d=this._ensureOutput(a,t.detail.port);this._ensureBranchLabel(a,d),this._state.connections=this._state.connections.filter(b=>b.target.node!==r);let h={id:this._id("conn"),source:{node:n,port:d},target:{node:r,port:l}};this._state.connections.push(h);let m=this._positionBelowOutput(a,d),f=this._freePosition(m.x,m.y,r);s.x=f.x,s.y=f.y,this.emit("zn-flow-connect",{detail:{connection:h}}),this._commit()};this._onAddNote=()=>{this._pushHistory(),this._state.notes.push({id:this._id("note"),x:80,y:80,text:""}),this._commit()};this._onNoteChange=t=>{let r=this._state.notes.find(n=>n.id===t.detail.noteId);r&&(r.text=t.detail.text,this._commit())};this._onNoteDelete=t=>{this._pushHistory(),this._state.notes=this._state.notes.filter(r=>r.id!==t.detail.noteId),this._commit()};this._onDragEnd=()=>{this._draggingType=null};this._onStepDrag=t=>{this._draggingType=t.detail.type};this._onCanvasDragOver=t=>{t.preventDefault()};this._onCanvasDrop=t=>{let r=t.dataTransfer?.getData(T3);if(!r)return;t.preventDefault();let a=this.shadowRoot?.querySelector("zn-flow-canvas")?.screenToCanvas(t.clientX,t.clientY)??{x:t.clientX,y:t.clientY};this._addNode(r,a.x-bt/2,a.y-sr/2)}}get _listeners(){return[["flow-node-select",this._onSelect],["flow-node-action",this._onNodeAction],["flow-interaction-start",this._onInteractionStart],["flow-change-commit",this._commit],["flow-output-assign",this._onOutputAssign],["flow-link-assign",this._onLinkAssign],["flow-output-move-target",this._onOutputMoveTarget],["flow-wire-pick",this._onWirePick],["flow-wire-assign",this._onWireAssign],["flow-branch-pick",this._onBranchPick],["flow-branch-delete",this._onBranchDelete],["flow-step-drag",this._onStepDrag],["flow-step-drag-end",this._onDragEnd],["flow-undo",this.undo],["flow-redo",this.redo],["flow-untangle",this.untangle],["flow-add-note",this._onAddNote],["flow-note-change",this._onNoteChange],["flow-note-delete",this._onNoteDelete]]}connectedCallback(){super.connectedCallback(),this._listeners.forEach(([t,r])=>this.addEventListener(t,r)),document.addEventListener("keydown",this._onKeyDown)}disconnectedCallback(){this._listeners.forEach(([t,r])=>this.removeEventListener(t,r)),document.removeEventListener("keydown",this._onKeyDown),this._cancelUntangle(),this._stopAutoSave(),this._justSavedTimer!==null&&(clearTimeout(this._justSavedTimer),this._justSavedTimer=null),super.disconnectedCallback()}get _autoSaveKey(){return`zn-flow-builder:${this.id||this.heading||"flow"}`}_stopAutoSave(){this._autoSaveTimer!==null&&(clearInterval(this._autoSaveTimer),this._autoSaveTimer=null),this._statusTimer!==null&&(clearInterval(this._statusTimer),this._statusTimer=null)}_restartAutoSave(){if(this._stopAutoSave(),this.autoSave===null)return;let t=this._readAutoSave();t&&(this._lastSavedAt=t.savedAt),this._autoSaveTimer=window.setInterval(this._autoSaveTick,this.autoSave*6e4),this._statusTimer=window.setInterval(()=>this._statusNow=Date.now(),3e4)}_readAutoSave(){try{let t=localStorage.getItem(this._autoSaveKey);if(!t)return null;let r=JSON.parse(t);return!r.state||Date.now()-r.savedAt>UR?(localStorage.removeItem(this._autoSaveKey),null):r}catch{return null}}restoreAutoSave(){let t=this._readAutoSave();if(!t)return!1;this._restoring=!0;try{this.setState(t.state)}finally{this._restoring=!1}return this._restorePrompt=null,!0}_offerRestoreIfNewer(){if(this.autoSave===null||this._restoring)return;let t=this._readAutoSave();this._restorePrompt=t&&JSON.stringify(t.state)!==JSON.stringify(this._state)?{savedAt:t.savedAt}:null}willUpdate(t){t.has("nodeTypes")&&this.nodeTypes?.length&&this.registry.registerAll(this.nodeTypes),t.has("autoSave")&&this._restartAutoSave(),super.willUpdate(t)}firstUpdated(t){super.firstUpdated(t),this._registerSlottedTypes()}static _parsePorts(t){if(t===null)return;let r=t.trim();if(r==="")return[];try{let n=JSON.parse(r);return Array.isArray(n)?n.map(a=>typeof a=="string"?{id:a}:a):void 0}catch{return}}static _parseFilterOptions(t){if(t===null)return;let r=t.trim();if(r!==""){if(r.startsWith("["))try{let n=JSON.parse(r);return Array.isArray(n)?n.map(a=>typeof a=="string"?{value:a}:a):void 0}catch{return}return r.split(",").map(n=>n.trim()).filter(Boolean).map(n=>({value:n}))}}static _nestedFilterOptions(t,r){let n=Array.from(t.querySelectorAll(`:scope > ${r}`));if(n.length)return n.map(a=>{let s=a.textContent?.trim()??"",l=a.getAttribute("value");return l!==null&&s?{value:l,label:s}:{value:l??s}})}static _filterFieldFromEl(t){let r=t.getAttribute("id");if(!r)return null;let n=t.getAttribute("value"),a=t.getAttribute("type");return{id:r,label:t.getAttribute("label")??void 0,type:a??void 0,operators:ze._nestedFilterOptions(t,"zn-flow-operator")??ze._parseFilterOptions(t.getAttribute("operators")),options:ze._nestedFilterOptions(t,"zn-flow-option")??ze._parseFilterOptions(t.getAttribute("options")),units:ze._nestedFilterOptions(t,"zn-flow-unit")??ze._parseFilterOptions(t.getAttribute("units")),suffix:t.getAttribute("suffix")??void 0,placeholder:t.getAttribute("placeholder")??void 0,value:n===null?void 0:a==="number"?Number(n):n}}static _parseBranchFilters(t){let r=s=>s?.map(l=>typeof l=="string"?{value:l}:l),n=t.getAttribute("branch-filters");if(n)try{let s=JSON.parse(n);if(Array.isArray(s))return s.map(l=>({...l,fields:(l.fields??[]).map(d=>({...d,...d.operators?{operators:r(d.operators)}:{},...d.options?{options:r(d.options)}:{},...d.units?{units:r(d.units)}:{}}))}))}catch{}let a=Array.from(t.querySelectorAll(":scope > zn-flow-filter")).map(s=>{let l=s.getAttribute("id")??s.getAttribute("label");return l?{id:l,label:s.getAttribute("label")??l,description:s.getAttribute("description")??void 0,fields:Array.from(s.querySelectorAll(":scope > zn-flow-filter-field")).map(d=>ze._filterFieldFromEl(d)).filter(d=>!!d)}:null}).filter(s=>!!s);return a.length?a:void 0}_typeFromStep(t){let r=t.getAttribute("type");if(!r)return null;let n=Array.from(t.childNodes).filter(a=>a.nodeType===Node.TEXT_NODE).map(a=>a.textContent??"").join("").trim();return{type:r,label:t.getAttribute("label")??(n||r),group:t.getAttribute("group")??"action",category:t.getAttribute("category")??void 0,icon:t.getAttribute("icon")??void 0,iconLibrary:t.getAttribute("icon-library")??void 0,color:t.getAttribute("color")??void 0,description:t.getAttribute("description")??void 0,inputs:ze._parsePorts(t.getAttribute("inputs")),outputs:ze._parsePorts(t.getAttribute("outputs")),fixedOutputs:t.hasAttribute("fixed-outputs"),branchFilters:ze._parseBranchFilters(t)}}registerNodeType(t){return this.registry.register(t),this.requestUpdate(),this}registerNodeTypes(t){return this.registry.registerAll(t),this.requestUpdate(),this}getState(){return this._clone(this._state)}setState(t){this._cancelUntangle(),this._state=t,this._history=[],this._redo=[],this._selectedNodeId=null,this._configRevision++,this._offerRestoreIfNewer()}get value(){return JSON.stringify(this._state)}set value(t){try{let r=JSON.parse(t);this.setState({nodes:r.nodes??[],connections:r.connections??[],notes:r.notes??[]})}catch{}}toJSON(){return this.getState()}_cancelUntangle(){this._untangleRaf!==null&&(cancelAnimationFrame(this._untangleRaf),this._untangleRaf=null),this._untangleSettle?.(),this._untangleSettle=null}_clone(t){return JSON.parse(JSON.stringify(t))}_pushHistory(){this._history.push(this._clone(this._state)),this._history.length>BR&&this._history.shift(),this._redo=[]}_pruneConnections(){let t=new Map(this._state.nodes.map(r=>[r.id,r]));this._state.connections=this._state.connections.filter(r=>{let n=t.get(r.source.node),a=t.get(r.target.node);if(!n||!a)return!1;let s=Zt(n,this.registry.get(n.type)).some(d=>d.id===r.source.port),l=ia(a,this.registry.get(a.type)).some(d=>d.id===r.target.port);return s&&l})}_syncSelection(){this._selectedNodeId&&!this._state.nodes.some(t=>t.id===this._selectedNodeId)&&(this._selectedNodeId=null),this._selectedBranch&&!this._branchSelection()&&(this._selectedBranch=null)}_branchSelection(){if(!this._selectedBranch)return null;let t=this._state.nodes.find(n=>n.id===this._selectedBranch.nodeId);if(!t)return null;let r=Zt(t,this.registry.get(t.type)).find(n=>n.id===this._selectedBranch.port);return r?{node:t,port:r}:null}_id(t){return`${t}-${Date.now().toString(36)}-${++this._seq}`}_freePosition(t,r,n){let a=new Set(this._state.connections.filter(d=>n&&d.target.node===n&&d.source.node!==n).map(d=>d.source.node)),s=(d,h)=>{let m=n?this._state.nodes.map(b=>b.id===n?{...b,x:d,y:h}:b):this._state.nodes,f=b=>this.registry.get(b);return m.some(b=>b.id!==n&&c3({x:d,y:h},b,f,m,this._state.connections))?!0:[...a].some(b=>{let g=m.find(v=>v.id===b);return!!g&&Qh(g,f,m,this._state.connections)})};if(t=Dr(t),r=Dr(r),!s(t,r))return{x:t,y:r};let l=Jt*2;for(let d=1;d<40;d++)for(let h=-d;h<=d;h++)for(let m=-d;m<=d;m++)if(Math.max(Math.abs(m),Math.abs(h))===d&&!s(t+m*l,r+h*l))return{x:t+m*l,y:r+h*l};return{x:t,y:r}}_addNode(t,r,n){let a=this.registry.get(t);if(!a)return;this._pushHistory();let s=this._freePosition(r,n),l={id:this._id("node"),type:t,x:s.x,y:s.y,data:{...a.defaultData??{}}};this._state.nodes.push(l),this._select(l.id),this._commit()}_deleteNode(t){this._pushHistory(),this._state.nodes=this._state.nodes.filter(r=>r.id!==t),this._state.connections=this._state.connections.filter(r=>r.source.node!==t&&r.target.node!==t),this._selectedNodeId===t&&this._select(null),this._commit()}_duplicateNode(t){let r=this._state.nodes.find(s=>s.id===t);if(!r)return;this._pushHistory();let n=this._freePosition(r.x+Jt*2,r.y+Jt*2),a={...this._clone({nodes:[r],connections:[],notes:[]}).nodes[0],id:this._id("node"),x:n.x,y:n.y};this._state.nodes.push(a),this._select(a.id),this._commit()}_positionBelowOutput(t,r){let n=Zt(t,this.registry.get(t.type)),a=Math.max(n.findIndex(l=>l.id===r),0),s=nd(t,l=>this.registry.get(l),this._state.connections)[a];return{x:Math.round(s-bt/2),y:t.y+Zh}}_refusesBranch(t,r){return r===id&&!!this.registry.get(t.type)?.fixedOutputs}_ensureOutput(t,r){if(r!==id)return r;let n=Zt(t,this.registry.get(t.type)).map(s=>({...s})),a=this._id("branch");return n.push({id:a,label:"Branch"}),t.outputs=n,a}_ensureBranchLabel(t,r){let n=Zt(t,this.registry.get(t.type)).map(s=>({...s})),a=n.find(s=>s.id===r);a&&!a.label&&(a.label="Branch",t.outputs=n)}_addNodeAtOutput(t,r,n){let a=this._state.nodes.find(b=>b.id===t),s=this.registry.get(n);if(!a||!s)return;let l=Xh(s)[0]?.id;if(!l||this._refusesBranch(a,r))return;this._pushHistory(),r=this._ensureOutput(a,r),this._ensureBranchLabel(a,r);let d=this._positionBelowOutput(a,r),h=this._freePosition(d.x,d.y),m={id:this._id("node"),type:n,x:h.x,y:h.y,data:{...s.defaultData??{}}},f={id:this._id("conn"),source:{node:t,port:r},target:{node:m.id,port:l}};this._state.nodes.push(m),this._state.connections.push(f),this.emit("zn-flow-connect",{detail:{connection:f}}),this._select(m.id),this._commit()}_linkNodeAtOutput(t,r,n){let a=this._state.nodes.find(h=>h.id===t),s=this._state.nodes.find(h=>h.id===n);if(!a||!s||t===n)return;let l=od(s,this.registry.get(s.type));if(l===null||this._refusesBranch(a,r))return;this._pushHistory(),r=this._ensureOutput(a,r),this._ensureBranchLabel(a,r);let d={id:this._id("conn"),source:{node:t,port:r},target:{node:n,port:l}};this._state.connections.push(d),this.emit("zn-flow-connect",{detail:{connection:d}}),this._select(null),this._selectedBranch={nodeId:t,port:r},this._commit()}_insertNodeOnWire(t,r){let n=this._state.connections.find(z=>z.id===t),a=this.registry.get(r);if(!n||!a)return;let s=this._state.nodes.find(z=>z.id===n.source.node),l=this._state.nodes.find(z=>z.id===n.target.node);if(!s||!l)return;let d=Xh(a)[0]?.id;if(!d)return;this._pushHistory();let h=tb(a).map(z=>({...z}));h.length||h.push({id:this._id("branch")}),h[0].label||(h[0].label="Branch");let m=this._positionBelowOutput(s,n.source.port),f=m.y+Zh;if(l.y<f){let z=f-l.y,E=m3(this._state,l.id);E.add(l.id),this._state.nodes.forEach(N=>{E.has(N.id)&&(N.y+=z)})}let b=this._freePosition(m.x,m.y),g={id:this._id("node"),type:r,x:b.x,y:b.y,outputs:h,data:{...a.defaultData??{}}},v=n.target.port;n.target={node:g.id,port:d};let y={id:this._id("conn"),source:{node:g.id,port:h[0].id},target:{node:l.id,port:v}};this._state.nodes.push(g),this._state.connections.push(y),this.emit("zn-flow-connect",{detail:{connection:y}}),this._select(g.id),this._commit()}_select(t){this._selectedBranch=null,t&&(this._sideCollapsed=!1),this._selectedNodeId!==t&&(this._selectedNodeId=t,this.emit("zn-flow-selection-change",{detail:{nodeId:t}}))}_onDragStart(t,r){t.dataTransfer&&(this._draggingType=r,t.dataTransfer.setData(T3,r),t.dataTransfer.effectAllowed="copyMove",t.dataTransfer.setDragImage(Wh(),0,0))}_renderSteps(){return u`
5583
5581
  <aside part="steps" class="steps">
5584
5582
  <div class="title-block">
5585
5583
  <div class="heading">${this.heading||"Flow Builder"}</div>
@@ -5636,7 +5634,7 @@ Please report this to https://github.com/markedjs/marked.`,o){let r="<p>An error
5636
5634
  <div class="steps-uncategorized">${f}</div>`})}
5637
5635
  </div>
5638
5636
  </div>
5639
- `}_renderInspector(t){let r=this.registry.get(t.type),n=r?.renderConfig,a=l=>{t.data={...t.data,...l},this._commit()},s=[t.id,this._configRevision,er(t,r).map(l=>l.id).join("|")];return u`
5637
+ `}_renderInspector(t){let r=this.registry.get(t.type),n=r?.renderConfig,a=l=>{t.data={...t.data,...l},this._commit()},s=[t.id,this._configRevision,Zt(t,r).map(l=>l.id).join("|")];return u`
5640
5638
  <aside part="inspector" class="inspector">
5641
5639
  <div class="inspector-head">
5642
5640
  <span
@@ -5665,7 +5663,7 @@ Please report this to https://github.com/markedjs/marked.`,o){let r="<p>An error
5665
5663
  `}
5666
5664
  </div>
5667
5665
  </aside>
5668
- `}_updateBranch(t,r,n){let a=this.registry.get(t.type);t.outputs=er(t,a).map(s=>s.id===r?{...s,...n,id:s.id}:s),this._commit()}_saveBranchConditions(t,r,n){this._pushHistory(),this._updateBranch(t,r.id,{data:{...r.data,conditions:n}}),this._selectedBranch=null}_renderBranchEditor(t,r){let n=this.registry.get(t.type),a=n?.renderBranchConfig,s=g=>this._updateBranch(t,r.id,g),l=[t.id,r.id,this._configRevision,JSON.stringify(r.data??null)],d=this._state.connections.find(g=>g.source.node===t.id&&g.source.port===r.id),h=!!d&&na(this._state.nodes,this._state.connections).has(d),m=h?"rgb(var(--zn-color-warning))":n?.color??"rgb(var(--zn-color-primary))",f=h?this._state.nodes.find(g=>g.id===d.target.node):void 0,b=f?f.label??this.registry.get(f.type)?.label??f.type:"";return u`
5666
+ `}_updateBranch(t,r,n){let a=this.registry.get(t.type);t.outputs=Zt(t,a).map(s=>s.id===r?{...s,...n,id:s.id}:s),this._commit()}_saveBranchConditions(t,r,n){this._pushHistory(),this._updateBranch(t,r.id,{data:{...r.data,conditions:n}}),this._selectedBranch=null}_renderBranchEditor(t,r){let n=this.registry.get(t.type),a=n?.renderBranchConfig,s=g=>this._updateBranch(t,r.id,g),l=[t.id,r.id,this._configRevision,JSON.stringify(r.data??null)],d=this._state.connections.find(g=>g.source.node===t.id&&g.source.port===r.id),h=!!d&&na(this._state.nodes,this._state.connections).has(d),m=h?"rgb(var(--zn-color-warning))":n?.color??"rgb(var(--zn-color-primary))",f=h?this._state.nodes.find(g=>g.id===d.target.node):void 0,b=f?f.label??this.registry.get(f.type)?.label??f.type:"";return u`
5669
5667
  <aside part="inspector" class="inspector">
5670
5668
  <div class="inspector-head">
5671
5669
  <span
@@ -6258,7 +6256,7 @@ Please report this to https://github.com/markedjs/marked.`,o){let r="<p>An error
6258
6256
  @zn-error="${this._onFrameError}"></zn-preview-frame>
6259
6257
  </div>
6260
6258
  </div>
6261
- </div>`}};Re.styles=_(H3),Re.dependencies={"zn-collapsible":_a,"zn-preview-frame":fb,"zn-icon":oe,"zn-button":Ee,"zn-button-group":jl,"zn-tabs":ln,"zn-navbar":Ta,"zn-select":Oe,"zn-option":We},c([p()],Re.prototype,"src",2),c([p({attribute:"frame-origin"})],Re.prototype,"frameOrigin",2),c([p({attribute:"data-uri"})],Re.prototype,"dataUri",2),c([p({reflect:!0})],Re.prototype,"mode",2),c([p({reflect:!0})],Re.prototype,"device",2),c([p({type:Number,attribute:"min-height"})],Re.prototype,"minHeight",2),c([p({type:Number})],Re.prototype,"debounce",2),c([p()],Re.prototype,"action",2),c([p({type:Number,attribute:"save-debounce"})],Re.prototype,"saveDebounce",2),c([p({type:Array})],Re.prototype,"sections",2),c([p({attribute:"section-layout"})],Re.prototype,"sectionLayout",2),c([p({type:Array})],Re.prototype,"sources",2),c([p({type:Boolean,reflect:!0,attribute:"controls-collapsed"})],Re.prototype,"controlsCollapsed",2),c([p({type:Boolean,reflect:!0})],Re.prototype,"standalone",2),c([p({attribute:"controls-caption"})],Re.prototype,"controlsCaption",2),c([p({attribute:"preview-caption"})],Re.prototype,"previewCaption",2),c([p({attribute:"submit-label"})],Re.prototype,"submitLabel",2),c([p({type:Boolean})],Re.prototype,"manual",2),c([B("zn-preview-frame")],Re.prototype,"frame",2),c([B("slot:not([name])")],Re.prototype,"controlsSlot",2),c([is(".editor__section-slot")],Re.prototype,"sectionSlots",2),c([I()],Re.prototype,"error",2),c([I()],Re.prototype,"_submitting",2),c([I()],Re.prototype,"_sourceIndex",2);var aD=Re;Re.define("zn-theme-editor");var F3=k`@keyframes rotate-gradient{from{--rotate:0deg}to{--rotate:360deg}}:host{text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-transform:none}*,*::before,*::after{box-sizing:border-box;border-width:0;border-style:solid;border-color:rgb(var(--zn-border-color))}[hidden]{display:none !important}.width-container,.form-container,.wide-form-container{height:100%;width:100%;margin:var(--zn-default-margin,0 auto)}.width-container{max-width:var(--zn-container)}.form-container{max-width:var(--zn-container-ph)}.wide-form-container{max-width:var(--zn-container-lg)}:host{--slot-height:18px;--gutter-width:64px;--open-color:rgb(var(--zn-primary));--reduced-color:rgba(var(--zn-primary),0.3);--closed-color:var(--zn-color-neutral-0);--grid-line-color:rgb(var(--zn-border-color));display:block}.schedule-builder{color:rgb(var(--zn-text));font-size:var(--zn-font-size-small)}.schedule-builder--disabled{opacity:0.6;pointer-events:none}.schedule-builder__toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:var(--zn-spacing-small);margin-bottom:var(--zn-spacing-x-small)}.schedule-builder__hint{flex:1 1 240px;margin:0;color:var(--zn-color-neutral-500);font-size:var(--zn-font-size-small)}.legend{display:flex;align-items:center;flex-wrap:wrap;gap:var(--zn-spacing-small);margin:0;padding:0;list-style:none}.legend__item{display:inline-flex;align-items:center;gap:var(--zn-spacing-2x-small);color:var(--zn-color-neutral-600);font-size:var(--zn-font-size-x-small);white-space:nowrap}.legend__swatch{width:14px;height:14px;border:1px solid var(--grid-line-color);border-radius:var(--zn-border-radius-small);background-color:var(--closed-color)}.legend__swatch--open{border-color:transparent;background-color:var(--open-color)}.timezone{flex:0 1 auto;width:260px;max-width:100%}.view-toggle{display:inline-flex;overflow:hidden;border:1px solid var(--grid-line-color);border-radius:var(--zn-border-radius)}.view-toggle__button{display:inline-flex;align-items:center;justify-content:center;padding:4px 10px;border:none;background:none;color:var(--zn-color-neutral-500);cursor:pointer}.view-toggle__button:not(:first-child){border-left:1px solid var(--grid-line-color)}.view-toggle__button:hover{background-color:var(--zn-color-neutral-100)}.view-toggle__button:focus-visible{outline:2px solid var(--zn-focus-ring-color);outline-offset:-2px}.view-toggle__button--active{background-color:var(--zn-color-primary-100);color:var(--zn-color-primary-700)}.view-toggle__button--active:hover{background-color:var(--zn-color-primary-100)}.schedule-builder__calendar{display:flex;align-items:flex-start;gap:var(--zn-spacing-medium)}.calendar{flex:1 1 auto;min-width:0;overflow:hidden;border:1px solid var(--grid-line-color);border-radius:var(--zn-border-radius);background-color:var(--zn-panel-background-color)}.calendar__head,.calendar__body{display:grid;grid-template-columns:var(--gutter-width) repeat(var(--columns),minmax(0,1fr))}.calendar__head{border-bottom:1px solid var(--grid-line-color);background-color:var(--zn-color-neutral-50)}.calendar__head-cell{display:flex;flex-direction:column;gap:2px;padding:var(--zn-spacing-x-small);border-left:1px solid var(--grid-line-color);overflow:hidden}.calendar__head-day{font-weight:var(--zn-font-weight-semibold,600);white-space:nowrap}.calendar__head-hours{color:var(--zn-color-neutral-500);font-size:var(--zn-font-size-x-small);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.calendar__head-cell--closed .calendar__head-day,.calendar__head-cell--closed .calendar__head-hours{color:var(--zn-color-neutral-400)}.calendar__body{padding-top:var(--zn-spacing-x-small);padding-bottom:var(--zn-spacing-x-small)}.calendar__gutter{display:grid;grid-auto-rows:calc(var(--slot-height) * var(--slots-per-hour))}.calendar__hour{position:relative}.calendar__hour span{position:absolute;top:0;right:var(--zn-spacing-x-small);transform:translateY(-50%);color:var(--zn-color-neutral-500);font-size:var(--zn-font-size-x-small);font-variant-numeric:tabular-nums;white-space:nowrap}.calendar__canvas{display:grid;grid-column:span var(--columns);grid-template-columns:repeat(var(--columns),minmax(0,1fr));touch-action:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.calendar__col{display:grid;grid-auto-rows:var(--slot-height);border-left:1px solid var(--grid-line-color)}.calendar__slot{border-bottom:1px dotted rgba(var(--zn-border-color),0.6);background-color:var(--closed-color)}.calendar__slot--hour{border-top:1px solid rgba(var(--zn-border-color),0.6)}.calendar__slot--open{background-color:var(--open-color);border-bottom-color:rgba(255,255,255,0.25)}.calendar__slot--reduced{background-color:var(--reduced-color);border-bottom-color:rgba(255,255,255,0.4)}.schedule-builder:not(.schedule-builder--readonly):not(.schedule-builder--disabled) .calendar__canvas{cursor:crosshair}.summary{flex:0 0 260px;max-width:260px}.summary__title{margin:0 0 var(--zn-spacing-x-small);color:var(--zn-color-neutral-500);font-size:var(--zn-font-size-x-small);font-weight:var(--zn-font-weight-semibold,600);letter-spacing:0.06em;text-transform:uppercase}.summary__list{margin:0}.summary__row{display:flex;align-items:baseline;justify-content:space-between;gap:var(--zn-spacing-x-small);padding:var(--zn-spacing-x-small) 0;border-bottom:1px solid var(--grid-line-color)}.summary__row dt{font-weight:var(--zn-font-weight-semibold,600)}.summary__row dd{margin:0;font-variant-numeric:tabular-nums;text-align:right}.summary__closed{color:var(--zn-color-neutral-400)}.summary__row--total{border-bottom:none}.summary__row--total dd{font-weight:var(--zn-font-weight-semibold,600)}.list{display:flex;flex-direction:column}.list__row{display:grid;grid-template-columns:56px minmax(0,1fr) auto;align-items:center;gap:var(--zn-spacing-x-small);padding:var(--zn-spacing-x-small) var(--zn-spacing-2x-small);border-bottom:1px solid var(--grid-line-color)}.list__row--editing{border-radius:var(--zn-border-radius);background-color:var(--zn-color-primary-50)}.list__day{font-weight:var(--zn-font-weight-semibold,600)}.list__day--closed{color:var(--zn-color-neutral-400)}.list__ranges{display:flex;align-items:center;flex-wrap:wrap;gap:var(--zn-spacing-x-small);min-height:32px}.list__closed{color:var(--zn-color-neutral-400)}.list__note{color:var(--zn-color-neutral-500);font-size:var(--zn-font-size-x-small)}.list__chip{padding:6px 10px;border:none;border-radius:var(--zn-border-radius);background-color:var(--zn-color-primary-100);color:var(--zn-color-primary-700);font-family:inherit;font-size:var(--zn-font-size-small);font-variant-numeric:tabular-nums;cursor:pointer}.list__chip:hover:not([disabled]){background-color:var(--zn-color-primary-200)}.list__chip[disabled]{cursor:default}.list__chip:focus-visible{outline:2px solid var(--zn-focus-ring-color);outline-offset:1px}.list__chip--reduced{background-color:var(--zn-color-warning-50);color:var(--zn-color-warning-600)}.list__chip--reduced:hover:not([disabled]){background-color:var(--zn-color-warning-50)}.list__editor{display:flex;align-items:center;gap:var(--zn-spacing-2x-small)}.list__editor zn-input{width:130px}.list__editor-separator{color:var(--zn-color-neutral-500)}.list__remove{display:inline-flex;align-items:center;justify-content:center;padding:4px;border:none;border-radius:var(--zn-border-radius);background:none;color:var(--zn-color-neutral-500);cursor:pointer}.list__remove:hover{background-color:var(--zn-color-neutral-100);color:rgb(var(--zn-text))}.list__add{display:inline-flex;align-items:center;gap:var(--zn-spacing-2x-small);padding:4px var(--zn-spacing-x-small);border:none;border-radius:var(--zn-border-radius);background:none;color:rgb(var(--zn-text));font-family:inherit;font-size:var(--zn-font-size-x-small);font-weight:var(--zn-font-weight-semibold,600);letter-spacing:0.04em;text-transform:uppercase;white-space:nowrap;cursor:pointer}.list__add:hover{background-color:var(--zn-color-neutral-100)}.list__add:focus-visible{outline:2px solid var(--zn-focus-ring-color);outline-offset:-2px}@media (max-width:900px){.schedule-builder__calendar{flex-direction:column}.summary{flex:1 1 auto;max-width:none;width:100%}}`;var cr=["mon","tue","wed","thu","fri","sat","sun"],vl={mon:{short:"Mon",long:"Monday"},tue:{short:"Tue",long:"Tuesday"},wed:{short:"Wed",long:"Wednesday"},thu:{short:"Thu",long:"Thursday"},fri:{short:"Fri",long:"Friday"},sat:{short:"Sat",long:"Saturday"},sun:{short:"Sun",long:"Sunday"}},Ai=1440;function yl(){return{mon:[],tue:[],wed:[],thu:[],fri:[],sat:[],sun:[]}}function fi(o){if(typeof o=="number"&&Number.isFinite(o))return Math.min(Math.max(Math.round(o),0),Ai);if(typeof o!="string")return null;let i=/^(\d{1,2}):(\d{2})(?::\d{2})?$/.exec(o.trim());if(!i)return null;let t=Number(i[1]),r=Number(i[2]);if(t>24||r>59)return null;let n=t*60+r;return n>Ai?null:n}function Wr(o){let i=Math.min(Math.max(Math.round(o),0),Ai),t=Math.floor(i/60),r=i%60;return`${String(t).padStart(2,"0")}:${String(r).padStart(2,"0")}`}function xl(o){let i=[];o.forEach(r=>{let n=fi(r?.start),a=fi(r?.end);n===null||a===null||a<=n||i.push([n,a])}),i.sort((r,n)=>r[0]-n[0]);let t=[];return i.forEach(r=>{let n=t[t.length-1];if(n&&r[0]<=n[1]){n[1]=Math.max(n[1],r[1]);return}t.push([r[0],r[1]])}),t.map(([r,n])=>({start:Wr(r),end:Wr(n)}))}function iu(o){if(!Array.isArray(o))return[];let i=[];return o.forEach(t=>{if(typeof t=="string"){let[r,n]=t.split(/\s*[-–—]\s*/);r&&n&&i.push({start:r,end:n});return}if(t&&typeof t=="object"){let r=t;r.start&&r.end&&i.push({start:String(r.start),end:String(r.end)})}}),xl(i)}function sD(o,i,t){return xl([...o,{start:Wr(i),end:Wr(t)}])}function lD(o,i,t){let r=[];return o.forEach(n=>{let a=fi(n.start),s=fi(n.end);if(!(a===null||s===null)){if(s<=i||a>=t){r.push(n);return}a<i&&r.push({start:Wr(a),end:Wr(i)}),s>t&&r.push({start:Wr(t),end:Wr(s)})}}),xl(r)}function cD(o){return o.reduce((i,t)=>{let r=fi(t.start),n=fi(t.end);return r===null||n===null?i:i+(n-r)},0)}function nu(o){if(!o)return null;let i=/^(\d{4})-(\d{2})-(\d{2})/.exec(o.trim());if(!i)return null;let t=new Date(Number(i[1]),Number(i[2])-1,Number(i[3]));return Number.isNaN(t.getTime())?null:t}function dD(o){return nu(o.date??o.from)}function pD(o){return nu(o.to??o.date??o.from)}function B3(o){if(o.days?.length)return o.days.filter(s=>cr.includes(s));let i=dD(o),t=pD(o);if(!i||!t)return[];let r=Date.UTC(i.getFullYear(),i.getMonth(),i.getDate()),n=Date.UTC(t.getFullYear(),t.getMonth(),t.getDate());return Math.round((n-r)/864e5)>=cr.length-1?[...cr]:[]}function gb(o){return o.closed?[]:o.ranges?iu(o.ranges):null}var Qa=7*Ai;function wl(o){let i=o.filter(([r,n])=>n>r).sort((r,n)=>r[0]-n[0]),t=[];return i.forEach(r=>{let n=t[t.length-1];if(n&&r[0]<=n[1]){n[1]=Math.max(n[1],r[1]);return}t.push([r[0],r[1]])}),t}function yb(o){let i=[];return cr.forEach((t,r)=>{let n=r*Ai;o[t].forEach(a=>{let s=fi(a.start),l=fi(a.end);s===null||l===null||l<=s||i.push([n+s,n+l])})}),wl(i)}function hD(o){let i=yl();return wl(o).forEach(([t,r])=>{let n=t;for(;n<r;){let a=Math.min(Math.floor(n/Ai),cr.length-1),s=a*Ai,l=Math.min(r,s+Ai);i[cr[a]].push({start:Wr(n-s),end:Wr(l-s)}),n=l}}),cr.forEach(t=>{i[t]=xl(i[t])}),i}function U3(o,i){if(!i)return o.map(r=>[r[0],r[1]]);let t=[];return o.forEach(([r,n])=>{let a=Math.min(n-r,Qa),s=((r+i)%Qa+Qa)%Qa,l=s+a;if(l<=Qa){t.push([s,l]);return}t.push([s,Qa]),t.push([0,l-Qa])}),wl(t)}function bb(o,i){return i?hD(U3(yb(o),i)):o}function uD(o,i){let t=wl(o);return wl(i).forEach(([r,n])=>{let a=[];t.forEach(([s,l])=>{if(l<=r||s>=n){a.push([s,l]);return}s<r&&a.push([s,r]),l>n&&a.push([n,l])}),t=a}),t}function vb(o,i){return o.some(([t,r])=>i>=t&&i<r)}function Xa(o,i){if(!o)return 0;try{let t=new Intl.DateTimeFormat("en-US",{timeZone:o,hour12:!1,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}).formatToParts(i),r=s=>Number(t.find(l=>l.type===s)?.value),n=r("hour")%24,a=Date.UTC(r("year"),r("month")-1,r("day"),n,r("minute"),r("second"));return Math.round((a-i.getTime())/6e4)}catch{return 0}}function mD(o){let i=o<0?"-":"+",t=Math.abs(o);return`UTC${i}${String(Math.floor(t/60)).padStart(2,"0")}:${String(t%60).padStart(2,"0")}`}function fD(o,i){return!o.label&&o.zone==="UTC"?"UTC":`${o.label??o.zone.replace(/_/g," ")} (${mD(Xa(o.zone,i))})`}function V3(){try{return Intl.DateTimeFormat().resolvedOptions().timeZone||"UTC"}catch{return"UTC"}}var gD=[{zone:"America/New_York",label:"US Eastern"},{zone:"America/Chicago",label:"US Central"},{zone:"America/Denver",label:"US Mountain"},{zone:"America/Los_Angeles",label:"US Pacific"},{zone:"Europe/London",label:"UK"},{zone:"Australia/Sydney",label:"Australia"}],bD=["UTC","Pacific/Auckland","Australia/Sydney","Australia/Brisbane","Australia/Adelaide","Australia/Perth","Asia/Tokyo","Asia/Seoul","Asia/Shanghai","Asia/Hong_Kong","Asia/Singapore","Asia/Bangkok","Asia/Jakarta","Asia/Kolkata","Asia/Karachi","Asia/Dubai","Europe/Moscow","Africa/Nairobi","Europe/Istanbul","Europe/Athens","Africa/Johannesburg","Europe/Berlin","Europe/Paris","Europe/Madrid","Europe/Amsterdam","Europe/Dublin","Europe/London","Europe/Lisbon","Atlantic/Reykjavik","America/Sao_Paulo","America/Argentina/Buenos_Aires","America/Halifax","America/New_York","America/Toronto","America/Chicago","America/Mexico_City","America/Denver","America/Phoenix","America/Los_Angeles","America/Vancouver","America/Anchorage","Pacific/Honolulu"],j3=["Pacific/Midway","Pacific/Honolulu","Pacific/Marquesas","America/Anchorage","America/Los_Angeles","America/Vancouver","America/Tijuana","America/Denver","America/Phoenix","America/Edmonton","America/Chicago","America/Mexico_City","America/Winnipeg","America/Guatemala","America/New_York","America/Toronto","America/Bogota","America/Lima","America/Panama","America/Halifax","America/Puerto_Rico","America/Santiago","America/St_Johns","America/Sao_Paulo","America/Argentina/Buenos_Aires","America/Montevideo","America/Noronha","America/Nuuk","Atlantic/Azores","Atlantic/Cape_Verde","UTC","Europe/London","Europe/Dublin","Europe/Lisbon","Atlantic/Reykjavik","Africa/Abidjan","Africa/Casablanca","Africa/Lagos","Africa/Algiers","Europe/Paris","Europe/Berlin","Europe/Madrid","Europe/Rome","Europe/Amsterdam","Europe/Brussels","Europe/Zurich","Europe/Vienna","Europe/Prague","Europe/Warsaw","Europe/Stockholm","Europe/Oslo","Europe/Copenhagen","Europe/Budapest","Europe/Athens","Europe/Helsinki","Europe/Bucharest","Europe/Kyiv","Africa/Cairo","Africa/Johannesburg","Asia/Jerusalem","Europe/Istanbul","Europe/Moscow","Africa/Nairobi","Asia/Riyadh","Asia/Baghdad","Asia/Tehran","Asia/Dubai","Asia/Baku","Asia/Tbilisi","Asia/Kabul","Asia/Karachi","Asia/Tashkent","Asia/Kolkata","Asia/Colombo","Asia/Kathmandu","Asia/Dhaka","Asia/Almaty","Asia/Yangon","Asia/Bangkok","Asia/Jakarta","Asia/Ho_Chi_Minh","Asia/Shanghai","Asia/Hong_Kong","Asia/Singapore","Asia/Kuala_Lumpur","Asia/Taipei","Asia/Manila","Asia/Tokyo","Asia/Seoul","Australia/Perth","Australia/Eucla","Australia/Darwin","Australia/Adelaide","Australia/Brisbane","Australia/Sydney","Australia/Melbourne","Australia/Hobart","Pacific/Guam","Pacific/Noumea","Pacific/Auckland","Pacific/Fiji","Pacific/Chatham","Pacific/Tongatapu","Pacific/Kiritimati"];function vD(){return typeof Intl.supportedValuesOf=="function"?Intl.supportedValuesOf("timeZone"):j3}function yD(o){switch(o.toLowerCase()){case"en":return gD;case"offsets":return bD.map(i=>({zone:i}));case"common":return j3.map(i=>({zone:i}));case"all":return vD().map(i=>({zone:i}));default:return[{zone:o}]}}var ye=class extends S{constructor(){super();this.formControlController=new re(this,{assumeInteractionOn:["zn-change"]});this.hasSlotController=new Y(this,"help-text","label");this.localize=new Ft(this);this._days=yl();this._exceptions=[];this._dragPreview=null;this._editing=null;this._dragMode="open";this._dragAnchor=null;this._dragPointerId=null;this.value="";this.defaultValue="";this.label="";this.helpText="";this.view="calendar";this.openLabel="Available";this.closedLabel="Closed";this.noToggle=!1;this.hideSummary=!1;this.startHour=6;this.endHour=22;this.interval=30;this.weekStart="mon";this.timeFormat="24";this.displayTimezone="";this.saveTimezone="";this.showTimezone=!1;this.timezones=[];this.referenceDate="";this.disabled=!1;this.readonly=!1;this.required=!1;this._customValidity="";this._handleCanvasPointerDown=t=>{if(!this._isEditable||t.button!==0)return;let r=this._pointerPosition(t);if(!r)return;let n=this._orderedDays[r.col],a=yb(this._storedAsShown);this._dragMode=vb(a,this._slotMinute(n,r.row))?"close":"open",this._dragAnchor=r,this._dragPointerId=t.pointerId,this._dragPreview=this._buildDragPreview(r),this.canvas.setPointerCapture(t.pointerId),t.preventDefault()};this._handleCanvasPointerMove=t=>{if(!this._dragAnchor||t.pointerId!==this._dragPointerId)return;let r=this._pointerPosition(t);r&&(this._dragPreview=this._buildDragPreview(r))};this._handleCanvasPointerUp=t=>{if(!this._dragAnchor||t.pointerId!==this._dragPointerId)return;let r=this._pointerPosition(t)??this._dragAnchor,n=this._buildDragPreview(r);this._dragAnchor=null,this._dragPointerId=null,this._dragPreview=null,this.canvas.hasPointerCapture(t.pointerId)&&this.canvas.releasePointerCapture(t.pointerId),this._commitShownDays(n)};this._handleCanvasPointerCancel=()=>{this._dragAnchor=null,this._dragPointerId=null,this._dragPreview=null};this.internals=typeof this.attachInternals=="function"?this.attachInternals():null}get schedule(){return{...this._saveZone?{timezone:this._saveZone}:{},days:this._cloneDays(this._days),exceptions:this._exceptions}}set schedule(t){this._applySchedule(t),this._commit(!1)}get exceptions(){return this._exceptions}set exceptions(t){this._exceptions=Array.isArray(t)?t:[],this._commit(!1)}get validity(){return this.internals?.validity??et}get validationMessage(){return this.internals?.validationMessage??""}get _isZoned(){return!!(this.saveTimezone||this.displayTimezone||this.showTimezone)}get _saveZone(){return this.saveTimezone?this.saveTimezone:this._isZoned?"UTC":""}get _displayZone(){return this.displayTimezone==="auto"?V3():this.displayTimezone||this._saveZone}get _reference(){return nu(this.referenceDate)??new Date}get _offsetDelta(){let t=this._saveZone,r=this._displayZone;if(!t||!r||t===r)return 0;let n=this._reference;return Xa(r,n)-Xa(t,n)}get _orderedDays(){let t=Math.max(cr.indexOf(this.weekStart),0);return[...cr.slice(t),...cr.slice(0,t)]}get _interval(){let t=Math.round(this.interval);return[5,10,15,20,30,60].includes(t)?t:30}get _startMinute(){return Math.min(Math.max(Math.round(this.startHour),0),23)*60}get _endMinute(){let t=Math.min(Math.max(Math.round(this.endHour),1),24)*60;return t<=this._startMinute?Math.min(this._startMinute+60,Ai):t}get _slotCount(){return Math.ceil((this._endMinute-this._startMinute)/this._interval)}get _slotsPerHour(){return Math.max(Math.round(60/this._interval),1)}get _isEditable(){return!this.disabled&&!this.readonly}get _hasHours(){return cr.some(t=>this._days[t].length>0)}connectedCallback(){super.connectedCallback(),this.value&&this._applySchedule(this.value),this._syncFormValue()}firstUpdated(){this._commit(!1)}handleValueChange(){this.value!==this._serialise()&&(this._applySchedule(this.value),this._syncFormValue())}handleValidationStateChange(){this._syncFormValue()}checkValidity(){return this.internals?.checkValidity()??!0}getForm(){return this.formControlController.getForm()}reportValidity(){return this.internals?.reportValidity()??!0}setCustomValidity(t){this._customValidity=t,this._syncFormValue(),this.formControlController.updateValidity()}setDay(t,r){cr.includes(t)&&(this._days={...this._days,[t]:iu(r)},this._commit())}getDay(t){return this._days[t]??[]}get displayedDays(){return this._cloneDays(this._storedAsShown)}setDisplayDay(t,r){cr.includes(t)&&this._commitShownDays({...this._storedAsShown,[t]:iu(r)})}formResetCallback(){this._applySchedule(this.defaultValue),this._commit(!1)}formStateRestoreCallback(t){this._applySchedule(t),this._commit(!1)}_cloneDays(t){let r=yl();return cr.forEach(n=>{r[n]=t[n].map(a=>({...a}))}),r}_serialise(){return JSON.stringify(this.schedule)}_applySchedule(t){let r=t;if(typeof t=="string"){let d=t.trim();if(!d){this._days=yl(),this._exceptions=[];return}try{r=JSON.parse(d)}catch{return}}if(!r||typeof r!="object"){this._days=yl(),this._exceptions=[];return}let n=r,a=n.days??n,s=yl();cr.forEach(d=>{s[d]=iu(a?.[d])});let l=typeof n.timezone=="string"?n.timezone:"";if(l&&!this.saveTimezone)this.saveTimezone=l;else if(l&&l!==this.saveTimezone){let d=this._reference,h=Xa(this.saveTimezone,d)-Xa(l,d);this._days=bb(s,h),this._exceptions=Array.isArray(n.exceptions)?n.exceptions:[];return}this._days=s,this._exceptions=Array.isArray(n.exceptions)?n.exceptions:[]}_syncFormValue(){if(!this.internals)return;this.internals.setFormValue(this.value);let t=this.shadowRoot?.querySelector(".schedule-builder")??void 0;if(this._customValidity){this.internals.setValidity({customError:!0},this._customValidity,t);return}if(this.required&&!this._hasHours){this.internals.setValidity({valueMissing:!0},"Please open at least one period.",t);return}this.internals.setValidity({})}_commit(t=!0){let r=this._serialise();r!==this.value&&(this.value=r),this._syncFormValue(),this.formControlController.updateValidity(),t&&this.emit("zn-change")}_formatTime(t){let r=fi(t);if(r===null)return t;if(this.timeFormat==="24")return Wr(r);let n=Math.floor(r/60)%24,a=r%60,s=n<12?"am":"pm",l=n%12===0?12:n%12;return a===0?`${l}${s}`:`${l}:${String(a).padStart(2,"0")}${s}`}_formatRange(t){return`${this._formatTime(t.start)}\u2013${this._formatTime(t.end)}`}_formatDate(t){let r=nu(t);return r?this.localize.date(r,{day:"numeric",month:"short"}):""}_summariseDay(t,r){let n=r[t];return n.length?n.map(a=>this._formatRange(a)).join(", "):this.closedLabel}get _storedAsShown(){return bb(this._days,this._offsetDelta)}get _shownDays(){return this._dragPreview??this._storedAsShown}_commitShownDays(t){this._days=bb(t,-this._offsetDelta),this._commit()}_exceptionsForDay(t){return this._exceptions.filter(r=>B3(r).includes(t))}get _shownReductionSpans(){let t=[];return this._exceptions.forEach(r=>{let n=gb(r);n!==null&&B3(r).forEach(a=>{let s=cr.indexOf(a)*Ai;t.push(...uD([[s,s+Ai]],n.reduce((l,d)=>{let h=fi(d.start),m=fi(d.end);return h!==null&&m!==null&&l.push([s+h,s+m]),l},[])))})}),U3(wl(t),this._offsetDelta)}_slotMinute(t,r){return cr.indexOf(t)*Ai+this._startMinute+r*this._interval+this._interval/2}_slotState(t,r,n,a){let s=this._slotMinute(t,r);return vb(n,s)?vb(a,s)?"reduced":"open":"closed"}_pointerPosition(t){if(!this.canvas)return null;let r=this.canvas.getBoundingClientRect();if(!r.width||!r.height)return null;let n=this._orderedDays.length,a=Math.floor((t.clientX-r.left)/r.width*n),s=Math.floor((t.clientY-r.top)/r.height*this._slotCount);return{col:Math.min(Math.max(a,0),n-1),row:Math.min(Math.max(s,0),this._slotCount-1)}}_buildDragPreview(t){let r=this._dragAnchor,n=this._cloneDays(this._storedAsShown),a=Math.min(r.col,t.col),s=Math.max(r.col,t.col),l=Math.min(r.row,t.row),d=Math.max(r.row,t.row),h=this._startMinute+l*this._interval,m=Math.min(this._startMinute+(d+1)*this._interval,this._endMinute);return this._orderedDays.slice(a,s+1).forEach(b=>{n[b]=this._dragMode==="open"?sD(n[b],h,m):lD(n[b],h,m)}),n}_handleViewToggle(t){this.view!==t&&(this._editing=null,this.view=t)}_nextFreeRange(t){if(!t.length)return{start:"09:00",end:"17:00"};let r=this._startMinute;for(let a of t){let s=fi(a.start)??0,l=fi(a.end)??0;if(s-r>=60)break;r=Math.max(r,l)}let n=Math.min(r,Ai-60);return{start:Wr(n),end:Wr(n+60)}}_handleAddRange(t){if(!this._isEditable)return;let r=this._storedAsShown,n=this._nextFreeRange(r[t]),a=xl([...r[t],n]);this._commitShownDays({...r,[t]:a}),this._editing={day:t,index:Math.max(a.findIndex(s=>s.start===n.start),0)}}_handleRemoveRange(t,r){if(!this._isEditable)return;let n=this._storedAsShown;this._editing=null,this._commitShownDays({...n,[t]:n[t].filter((a,s)=>s!==r)})}_handleRangeEdit(t,r,n,a){let s=fi(a);if(s===null)return;let l=this._storedAsShown,d=xl(l[t].map((h,m)=>m===r?{...h,[n]:Wr(s)}:h));this._editing&&this._editing.day===t&&this._editing.index>=d.length&&(this._editing=d.length?{day:t,index:d.length-1}:null),this._commitShownDays({...l,[t]:d})}_handleEditorKeyDown(t){(t.key==="Enter"||t.key==="Escape")&&(t.preventDefault(),t.stopPropagation(),this._editing=null)}_handleEditorFocusOut(t){let r=t.currentTarget,n=t.relatedTarget;n&&r.contains(n)||(this._editing=null)}_renderToolbar(){let t=!this.noToggle,r=this.view==="calendar";return!t&&!r&&!this.showTimezone?F:u`
6259
+ </div>`}};Re.styles=_(H3),Re.dependencies={"zn-collapsible":_a,"zn-preview-frame":fb,"zn-icon":oe,"zn-button":Ee,"zn-button-group":jl,"zn-tabs":ln,"zn-navbar":Ta,"zn-select":Oe,"zn-option":We},c([p()],Re.prototype,"src",2),c([p({attribute:"frame-origin"})],Re.prototype,"frameOrigin",2),c([p({attribute:"data-uri"})],Re.prototype,"dataUri",2),c([p({reflect:!0})],Re.prototype,"mode",2),c([p({reflect:!0})],Re.prototype,"device",2),c([p({type:Number,attribute:"min-height"})],Re.prototype,"minHeight",2),c([p({type:Number})],Re.prototype,"debounce",2),c([p()],Re.prototype,"action",2),c([p({type:Number,attribute:"save-debounce"})],Re.prototype,"saveDebounce",2),c([p({type:Array})],Re.prototype,"sections",2),c([p({attribute:"section-layout"})],Re.prototype,"sectionLayout",2),c([p({type:Array})],Re.prototype,"sources",2),c([p({type:Boolean,reflect:!0,attribute:"controls-collapsed"})],Re.prototype,"controlsCollapsed",2),c([p({type:Boolean,reflect:!0})],Re.prototype,"standalone",2),c([p({attribute:"controls-caption"})],Re.prototype,"controlsCaption",2),c([p({attribute:"preview-caption"})],Re.prototype,"previewCaption",2),c([p({attribute:"submit-label"})],Re.prototype,"submitLabel",2),c([p({type:Boolean})],Re.prototype,"manual",2),c([B("zn-preview-frame")],Re.prototype,"frame",2),c([B("slot:not([name])")],Re.prototype,"controlsSlot",2),c([is(".editor__section-slot")],Re.prototype,"sectionSlots",2),c([I()],Re.prototype,"error",2),c([I()],Re.prototype,"_submitting",2),c([I()],Re.prototype,"_sourceIndex",2);var aD=Re;Re.define("zn-theme-editor");var F3=k`@keyframes rotate-gradient{from{--rotate:0deg}to{--rotate:360deg}}:host{text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-transform:none}*,*::before,*::after{box-sizing:border-box;border-width:0;border-style:solid;border-color:rgb(var(--zn-border-color))}[hidden]{display:none !important}.width-container,.form-container,.wide-form-container{height:100%;width:100%;margin:var(--zn-default-margin,0 auto)}.width-container{max-width:var(--zn-container)}.form-container{max-width:var(--zn-container-ph)}.wide-form-container{max-width:var(--zn-container-lg)}:host{--slot-height:18px;--gutter-width:64px;--open-color:rgb(var(--zn-primary));--reduced-color:rgba(var(--zn-primary),0.3);--closed-color:var(--zn-color-neutral-0);--grid-line-color:rgb(var(--zn-border-color));display:block}.schedule-builder{color:rgb(var(--zn-text));font-size:var(--zn-font-size-small)}.schedule-builder--disabled{opacity:0.6;pointer-events:none}.schedule-builder__toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:var(--zn-spacing-small);margin-bottom:var(--zn-spacing-x-small)}.schedule-builder__hint{flex:1 1 240px;margin:0;color:var(--zn-color-neutral-500);font-size:var(--zn-font-size-small)}.legend{display:flex;align-items:center;flex-wrap:wrap;gap:var(--zn-spacing-small);margin:0;padding:0;list-style:none}.legend__item{display:inline-flex;align-items:center;gap:var(--zn-spacing-2x-small);color:var(--zn-color-neutral-600);font-size:var(--zn-font-size-x-small);white-space:nowrap}.legend__swatch{width:14px;height:14px;border:1px solid var(--grid-line-color);border-radius:var(--zn-border-radius-small);background-color:var(--closed-color)}.legend__swatch--open{border-color:transparent;background-color:var(--open-color)}.timezone{flex:0 1 auto;width:260px;max-width:100%}.view-toggle{display:inline-flex;overflow:hidden;border:1px solid var(--grid-line-color);border-radius:var(--zn-border-radius)}.view-toggle__button{display:inline-flex;align-items:center;justify-content:center;padding:4px 10px;border:none;background:none;color:var(--zn-color-neutral-500);cursor:pointer}.view-toggle__button:not(:first-child){border-left:1px solid var(--grid-line-color)}.view-toggle__button:hover{background-color:var(--zn-color-neutral-100)}.view-toggle__button:focus-visible{outline:2px solid var(--zn-focus-ring-color);outline-offset:-2px}.view-toggle__button--active{background-color:var(--zn-color-primary-100);color:var(--zn-color-primary-700)}.view-toggle__button--active:hover{background-color:var(--zn-color-primary-100)}.schedule-builder__calendar{display:flex;align-items:flex-start;gap:var(--zn-spacing-medium)}.calendar{flex:1 1 auto;min-width:0;overflow:hidden;border:1px solid var(--grid-line-color);border-radius:var(--zn-border-radius);background-color:var(--zn-panel-background-color)}.calendar__head,.calendar__body{display:grid;grid-template-columns:var(--gutter-width) repeat(var(--columns),minmax(0,1fr))}.calendar__head{border-bottom:1px solid var(--grid-line-color);background-color:var(--zn-color-neutral-50)}.calendar__head-cell{display:flex;flex-direction:column;gap:2px;padding:var(--zn-spacing-x-small);border-left:1px solid var(--grid-line-color);overflow:hidden}.calendar__head-day{font-weight:var(--zn-font-weight-semibold,600);white-space:nowrap}.calendar__head-hours{color:var(--zn-color-neutral-500);font-size:var(--zn-font-size-x-small);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.calendar__head-cell--closed .calendar__head-day,.calendar__head-cell--closed .calendar__head-hours{color:var(--zn-color-neutral-400)}.calendar__body{padding-top:var(--zn-spacing-x-small);padding-bottom:var(--zn-spacing-x-small)}.calendar__gutter{display:grid;grid-auto-rows:calc(var(--slot-height) * var(--slots-per-hour))}.calendar__hour{position:relative}.calendar__hour span{position:absolute;top:0;right:var(--zn-spacing-x-small);transform:translateY(-50%);color:var(--zn-color-neutral-500);font-size:var(--zn-font-size-x-small);font-variant-numeric:tabular-nums;white-space:nowrap}.calendar__canvas{display:grid;grid-column:span var(--columns);grid-template-columns:repeat(var(--columns),minmax(0,1fr));touch-action:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.calendar__col{display:grid;grid-auto-rows:var(--slot-height);border-left:1px solid var(--grid-line-color)}.calendar__slot{border-bottom:1px dotted rgba(var(--zn-border-color),0.6);background-color:var(--closed-color)}.calendar__slot--hour{border-top:1px solid rgba(var(--zn-border-color),0.6)}.calendar__slot--open{background-color:var(--open-color);border-bottom-color:rgba(255,255,255,0.25)}.calendar__slot--reduced{background-color:var(--reduced-color);border-bottom-color:rgba(255,255,255,0.4)}.schedule-builder:not(.schedule-builder--readonly):not(.schedule-builder--disabled) .calendar__canvas{cursor:crosshair}.summary{flex:0 0 260px;max-width:260px}.summary__title{margin:0 0 var(--zn-spacing-x-small);color:var(--zn-color-neutral-500);font-size:var(--zn-font-size-x-small);font-weight:var(--zn-font-weight-semibold,600);letter-spacing:0.06em;text-transform:uppercase}.summary__list{margin:0}.summary__row{display:flex;align-items:baseline;justify-content:space-between;gap:var(--zn-spacing-x-small);padding:var(--zn-spacing-x-small) 0;border-bottom:1px solid var(--grid-line-color)}.summary__row dt{font-weight:var(--zn-font-weight-semibold,600)}.summary__row dd{margin:0;font-variant-numeric:tabular-nums;text-align:right}.summary__closed{color:var(--zn-color-neutral-400)}.summary__row--total{border-bottom:none}.summary__row--total dd{font-weight:var(--zn-font-weight-semibold,600)}.list{display:flex;flex-direction:column}.list__row{display:grid;grid-template-columns:56px minmax(0,1fr) auto;align-items:center;gap:var(--zn-spacing-x-small);padding:var(--zn-spacing-x-small) var(--zn-spacing-2x-small);border-bottom:1px solid var(--grid-line-color)}.list__row--editing{border-radius:var(--zn-border-radius);background-color:var(--zn-color-primary-50)}.list__day{font-weight:var(--zn-font-weight-semibold,600)}.list__day--closed{color:var(--zn-color-neutral-400)}.list__ranges{display:flex;align-items:center;flex-wrap:wrap;gap:var(--zn-spacing-x-small);min-height:32px}.list__closed{color:var(--zn-color-neutral-400)}.list__note{color:var(--zn-color-neutral-500);font-size:var(--zn-font-size-x-small)}.list__chip{padding:6px 10px;border:none;border-radius:var(--zn-border-radius);background-color:var(--zn-color-primary-100);color:var(--zn-color-primary-700);font-family:inherit;font-size:var(--zn-font-size-small);font-variant-numeric:tabular-nums;cursor:pointer}.list__chip:hover:not([disabled]){background-color:var(--zn-color-primary-200)}.list__chip[disabled]{cursor:default}.list__chip:focus-visible{outline:2px solid var(--zn-focus-ring-color);outline-offset:1px}.list__chip--reduced{background-color:var(--zn-color-warning-50);color:var(--zn-color-warning-600)}.list__chip--reduced:hover:not([disabled]){background-color:var(--zn-color-warning-50)}.list__editor{display:flex;align-items:center;gap:var(--zn-spacing-2x-small)}.list__editor zn-input{width:130px}.list__editor-separator{color:var(--zn-color-neutral-500)}.list__remove{display:inline-flex;align-items:center;justify-content:center;padding:4px;border:none;border-radius:var(--zn-border-radius);background:none;color:var(--zn-color-neutral-500);cursor:pointer}.list__remove:hover{background-color:var(--zn-color-neutral-100);color:rgb(var(--zn-text))}.list__add{display:inline-flex;align-items:center;gap:var(--zn-spacing-2x-small);padding:4px var(--zn-spacing-x-small);border:none;border-radius:var(--zn-border-radius);background:none;color:rgb(var(--zn-text));font-family:inherit;font-size:var(--zn-font-size-x-small);font-weight:var(--zn-font-weight-semibold,600);letter-spacing:0.04em;text-transform:uppercase;white-space:nowrap;cursor:pointer}.list__add:hover{background-color:var(--zn-color-neutral-100)}.list__add:focus-visible{outline:2px solid var(--zn-focus-ring-color);outline-offset:-2px}@media (max-width:900px){.schedule-builder__calendar{flex-direction:column}.summary{flex:1 1 auto;max-width:none;width:100%}}`;var lr=["mon","tue","wed","thu","fri","sat","sun"],vl={mon:{short:"Mon",long:"Monday"},tue:{short:"Tue",long:"Tuesday"},wed:{short:"Wed",long:"Wednesday"},thu:{short:"Thu",long:"Thursday"},fri:{short:"Fri",long:"Friday"},sat:{short:"Sat",long:"Saturday"},sun:{short:"Sun",long:"Sunday"}},Ai=1440;function yl(){return{mon:[],tue:[],wed:[],thu:[],fri:[],sat:[],sun:[]}}function fi(o){if(typeof o=="number"&&Number.isFinite(o))return Math.min(Math.max(Math.round(o),0),Ai);if(typeof o!="string")return null;let i=/^(\d{1,2}):(\d{2})(?::\d{2})?$/.exec(o.trim());if(!i)return null;let t=Number(i[1]),r=Number(i[2]);if(t>24||r>59)return null;let n=t*60+r;return n>Ai?null:n}function Wr(o){let i=Math.min(Math.max(Math.round(o),0),Ai),t=Math.floor(i/60),r=i%60;return`${String(t).padStart(2,"0")}:${String(r).padStart(2,"0")}`}function xl(o){let i=[];o.forEach(r=>{let n=fi(r?.start),a=fi(r?.end);n===null||a===null||a<=n||i.push([n,a])}),i.sort((r,n)=>r[0]-n[0]);let t=[];return i.forEach(r=>{let n=t[t.length-1];if(n&&r[0]<=n[1]){n[1]=Math.max(n[1],r[1]);return}t.push([r[0],r[1]])}),t.map(([r,n])=>({start:Wr(r),end:Wr(n)}))}function iu(o){if(!Array.isArray(o))return[];let i=[];return o.forEach(t=>{if(typeof t=="string"){let[r,n]=t.split(/\s*[-–—]\s*/);r&&n&&i.push({start:r,end:n});return}if(t&&typeof t=="object"){let r=t;r.start&&r.end&&i.push({start:String(r.start),end:String(r.end)})}}),xl(i)}function sD(o,i,t){return xl([...o,{start:Wr(i),end:Wr(t)}])}function lD(o,i,t){let r=[];return o.forEach(n=>{let a=fi(n.start),s=fi(n.end);if(!(a===null||s===null)){if(s<=i||a>=t){r.push(n);return}a<i&&r.push({start:Wr(a),end:Wr(i)}),s>t&&r.push({start:Wr(t),end:Wr(s)})}}),xl(r)}function cD(o){return o.reduce((i,t)=>{let r=fi(t.start),n=fi(t.end);return r===null||n===null?i:i+(n-r)},0)}function nu(o){if(!o)return null;let i=/^(\d{4})-(\d{2})-(\d{2})/.exec(o.trim());if(!i)return null;let t=new Date(Number(i[1]),Number(i[2])-1,Number(i[3]));return Number.isNaN(t.getTime())?null:t}function dD(o){return nu(o.date??o.from)}function pD(o){return nu(o.to??o.date??o.from)}function B3(o){if(o.days?.length)return o.days.filter(s=>lr.includes(s));let i=dD(o),t=pD(o);if(!i||!t)return[];let r=Date.UTC(i.getFullYear(),i.getMonth(),i.getDate()),n=Date.UTC(t.getFullYear(),t.getMonth(),t.getDate());return Math.round((n-r)/864e5)>=lr.length-1?[...lr]:[]}function gb(o){return o.closed?[]:o.ranges?iu(o.ranges):null}var Qa=7*Ai;function wl(o){let i=o.filter(([r,n])=>n>r).sort((r,n)=>r[0]-n[0]),t=[];return i.forEach(r=>{let n=t[t.length-1];if(n&&r[0]<=n[1]){n[1]=Math.max(n[1],r[1]);return}t.push([r[0],r[1]])}),t}function yb(o){let i=[];return lr.forEach((t,r)=>{let n=r*Ai;o[t].forEach(a=>{let s=fi(a.start),l=fi(a.end);s===null||l===null||l<=s||i.push([n+s,n+l])})}),wl(i)}function hD(o){let i=yl();return wl(o).forEach(([t,r])=>{let n=t;for(;n<r;){let a=Math.min(Math.floor(n/Ai),lr.length-1),s=a*Ai,l=Math.min(r,s+Ai);i[lr[a]].push({start:Wr(n-s),end:Wr(l-s)}),n=l}}),lr.forEach(t=>{i[t]=xl(i[t])}),i}function U3(o,i){if(!i)return o.map(r=>[r[0],r[1]]);let t=[];return o.forEach(([r,n])=>{let a=Math.min(n-r,Qa),s=((r+i)%Qa+Qa)%Qa,l=s+a;if(l<=Qa){t.push([s,l]);return}t.push([s,Qa]),t.push([0,l-Qa])}),wl(t)}function bb(o,i){return i?hD(U3(yb(o),i)):o}function uD(o,i){let t=wl(o);return wl(i).forEach(([r,n])=>{let a=[];t.forEach(([s,l])=>{if(l<=r||s>=n){a.push([s,l]);return}s<r&&a.push([s,r]),l>n&&a.push([n,l])}),t=a}),t}function vb(o,i){return o.some(([t,r])=>i>=t&&i<r)}function Xa(o,i){if(!o)return 0;try{let t=new Intl.DateTimeFormat("en-US",{timeZone:o,hour12:!1,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}).formatToParts(i),r=s=>Number(t.find(l=>l.type===s)?.value),n=r("hour")%24,a=Date.UTC(r("year"),r("month")-1,r("day"),n,r("minute"),r("second"));return Math.round((a-i.getTime())/6e4)}catch{return 0}}function mD(o){let i=o<0?"-":"+",t=Math.abs(o);return`UTC${i}${String(Math.floor(t/60)).padStart(2,"0")}:${String(t%60).padStart(2,"0")}`}function fD(o,i){return!o.label&&o.zone==="UTC"?"UTC":`${o.label??o.zone.replace(/_/g," ")} (${mD(Xa(o.zone,i))})`}function V3(){try{return Intl.DateTimeFormat().resolvedOptions().timeZone||"UTC"}catch{return"UTC"}}var gD=[{zone:"America/New_York",label:"US Eastern"},{zone:"America/Chicago",label:"US Central"},{zone:"America/Denver",label:"US Mountain"},{zone:"America/Los_Angeles",label:"US Pacific"},{zone:"Europe/London",label:"UK"},{zone:"Australia/Sydney",label:"Australia"}],bD=["UTC","Pacific/Auckland","Australia/Sydney","Australia/Brisbane","Australia/Adelaide","Australia/Perth","Asia/Tokyo","Asia/Seoul","Asia/Shanghai","Asia/Hong_Kong","Asia/Singapore","Asia/Bangkok","Asia/Jakarta","Asia/Kolkata","Asia/Karachi","Asia/Dubai","Europe/Moscow","Africa/Nairobi","Europe/Istanbul","Europe/Athens","Africa/Johannesburg","Europe/Berlin","Europe/Paris","Europe/Madrid","Europe/Amsterdam","Europe/Dublin","Europe/London","Europe/Lisbon","Atlantic/Reykjavik","America/Sao_Paulo","America/Argentina/Buenos_Aires","America/Halifax","America/New_York","America/Toronto","America/Chicago","America/Mexico_City","America/Denver","America/Phoenix","America/Los_Angeles","America/Vancouver","America/Anchorage","Pacific/Honolulu"],j3=["Pacific/Midway","Pacific/Honolulu","Pacific/Marquesas","America/Anchorage","America/Los_Angeles","America/Vancouver","America/Tijuana","America/Denver","America/Phoenix","America/Edmonton","America/Chicago","America/Mexico_City","America/Winnipeg","America/Guatemala","America/New_York","America/Toronto","America/Bogota","America/Lima","America/Panama","America/Halifax","America/Puerto_Rico","America/Santiago","America/St_Johns","America/Sao_Paulo","America/Argentina/Buenos_Aires","America/Montevideo","America/Noronha","America/Nuuk","Atlantic/Azores","Atlantic/Cape_Verde","UTC","Europe/London","Europe/Dublin","Europe/Lisbon","Atlantic/Reykjavik","Africa/Abidjan","Africa/Casablanca","Africa/Lagos","Africa/Algiers","Europe/Paris","Europe/Berlin","Europe/Madrid","Europe/Rome","Europe/Amsterdam","Europe/Brussels","Europe/Zurich","Europe/Vienna","Europe/Prague","Europe/Warsaw","Europe/Stockholm","Europe/Oslo","Europe/Copenhagen","Europe/Budapest","Europe/Athens","Europe/Helsinki","Europe/Bucharest","Europe/Kyiv","Africa/Cairo","Africa/Johannesburg","Asia/Jerusalem","Europe/Istanbul","Europe/Moscow","Africa/Nairobi","Asia/Riyadh","Asia/Baghdad","Asia/Tehran","Asia/Dubai","Asia/Baku","Asia/Tbilisi","Asia/Kabul","Asia/Karachi","Asia/Tashkent","Asia/Kolkata","Asia/Colombo","Asia/Kathmandu","Asia/Dhaka","Asia/Almaty","Asia/Yangon","Asia/Bangkok","Asia/Jakarta","Asia/Ho_Chi_Minh","Asia/Shanghai","Asia/Hong_Kong","Asia/Singapore","Asia/Kuala_Lumpur","Asia/Taipei","Asia/Manila","Asia/Tokyo","Asia/Seoul","Australia/Perth","Australia/Eucla","Australia/Darwin","Australia/Adelaide","Australia/Brisbane","Australia/Sydney","Australia/Melbourne","Australia/Hobart","Pacific/Guam","Pacific/Noumea","Pacific/Auckland","Pacific/Fiji","Pacific/Chatham","Pacific/Tongatapu","Pacific/Kiritimati"];function vD(){return typeof Intl.supportedValuesOf=="function"?Intl.supportedValuesOf("timeZone"):j3}function yD(o){switch(o.toLowerCase()){case"en":return gD;case"offsets":return bD.map(i=>({zone:i}));case"common":return j3.map(i=>({zone:i}));case"all":return vD().map(i=>({zone:i}));default:return[{zone:o}]}}var ye=class extends S{constructor(){super();this.formControlController=new re(this,{assumeInteractionOn:["zn-change"]});this.hasSlotController=new Y(this,"help-text","label");this.localize=new Ft(this);this._days=yl();this._exceptions=[];this._dragPreview=null;this._editing=null;this._dragMode="open";this._dragAnchor=null;this._dragPointerId=null;this.value="";this.defaultValue="";this.label="";this.helpText="";this.view="calendar";this.openLabel="Available";this.closedLabel="Closed";this.noToggle=!1;this.hideSummary=!1;this.startHour=6;this.endHour=22;this.interval=30;this.weekStart="mon";this.timeFormat="24";this.displayTimezone="";this.saveTimezone="";this.showTimezone=!1;this.timezones=[];this.referenceDate="";this.disabled=!1;this.readonly=!1;this.required=!1;this._customValidity="";this._handleCanvasPointerDown=t=>{if(!this._isEditable||t.button!==0)return;let r=this._pointerPosition(t);if(!r)return;let n=this._orderedDays[r.col],a=yb(this._storedAsShown);this._dragMode=vb(a,this._slotMinute(n,r.row))?"close":"open",this._dragAnchor=r,this._dragPointerId=t.pointerId,this._dragPreview=this._buildDragPreview(r),this.canvas.setPointerCapture(t.pointerId),t.preventDefault()};this._handleCanvasPointerMove=t=>{if(!this._dragAnchor||t.pointerId!==this._dragPointerId)return;let r=this._pointerPosition(t);r&&(this._dragPreview=this._buildDragPreview(r))};this._handleCanvasPointerUp=t=>{if(!this._dragAnchor||t.pointerId!==this._dragPointerId)return;let r=this._pointerPosition(t)??this._dragAnchor,n=this._buildDragPreview(r);this._dragAnchor=null,this._dragPointerId=null,this._dragPreview=null,this.canvas.hasPointerCapture(t.pointerId)&&this.canvas.releasePointerCapture(t.pointerId),this._commitShownDays(n)};this._handleCanvasPointerCancel=()=>{this._dragAnchor=null,this._dragPointerId=null,this._dragPreview=null};this.internals=typeof this.attachInternals=="function"?this.attachInternals():null}get schedule(){return{...this._saveZone?{timezone:this._saveZone}:{},days:this._cloneDays(this._days),exceptions:this._exceptions}}set schedule(t){this._applySchedule(t),this._commit(!1)}get exceptions(){return this._exceptions}set exceptions(t){this._exceptions=Array.isArray(t)?t:[],this._commit(!1)}get validity(){return this.internals?.validity??et}get validationMessage(){return this.internals?.validationMessage??""}get _isZoned(){return!!(this.saveTimezone||this.displayTimezone||this.showTimezone)}get _saveZone(){return this.saveTimezone?this.saveTimezone:this._isZoned?"UTC":""}get _displayZone(){return this.displayTimezone==="auto"?V3():this.displayTimezone||this._saveZone}get _reference(){return nu(this.referenceDate)??new Date}get _offsetDelta(){let t=this._saveZone,r=this._displayZone;if(!t||!r||t===r)return 0;let n=this._reference;return Xa(r,n)-Xa(t,n)}get _orderedDays(){let t=Math.max(lr.indexOf(this.weekStart),0);return[...lr.slice(t),...lr.slice(0,t)]}get _interval(){let t=Math.round(this.interval);return[5,10,15,20,30,60].includes(t)?t:30}get _startMinute(){return Math.min(Math.max(Math.round(this.startHour),0),23)*60}get _endMinute(){let t=Math.min(Math.max(Math.round(this.endHour),1),24)*60;return t<=this._startMinute?Math.min(this._startMinute+60,Ai):t}get _slotCount(){return Math.ceil((this._endMinute-this._startMinute)/this._interval)}get _slotsPerHour(){return Math.max(Math.round(60/this._interval),1)}get _isEditable(){return!this.disabled&&!this.readonly}get _hasHours(){return lr.some(t=>this._days[t].length>0)}connectedCallback(){super.connectedCallback(),this.value&&this._applySchedule(this.value),this._syncFormValue()}firstUpdated(){this._commit(!1)}handleValueChange(){this.value!==this._serialise()&&(this._applySchedule(this.value),this._syncFormValue())}handleValidationStateChange(){this._syncFormValue()}checkValidity(){return this.internals?.checkValidity()??!0}getForm(){return this.formControlController.getForm()}reportValidity(){return this.internals?.reportValidity()??!0}setCustomValidity(t){this._customValidity=t,this._syncFormValue(),this.formControlController.updateValidity()}setDay(t,r){lr.includes(t)&&(this._days={...this._days,[t]:iu(r)},this._commit())}getDay(t){return this._days[t]??[]}get displayedDays(){return this._cloneDays(this._storedAsShown)}setDisplayDay(t,r){lr.includes(t)&&this._commitShownDays({...this._storedAsShown,[t]:iu(r)})}formResetCallback(){this._applySchedule(this.defaultValue),this._commit(!1)}formStateRestoreCallback(t){this._applySchedule(t),this._commit(!1)}_cloneDays(t){let r=yl();return lr.forEach(n=>{r[n]=t[n].map(a=>({...a}))}),r}_serialise(){return JSON.stringify(this.schedule)}_applySchedule(t){let r=t;if(typeof t=="string"){let d=t.trim();if(!d){this._days=yl(),this._exceptions=[];return}try{r=JSON.parse(d)}catch{return}}if(!r||typeof r!="object"){this._days=yl(),this._exceptions=[];return}let n=r,a=n.days??n,s=yl();lr.forEach(d=>{s[d]=iu(a?.[d])});let l=typeof n.timezone=="string"?n.timezone:"";if(l&&!this.saveTimezone)this.saveTimezone=l;else if(l&&l!==this.saveTimezone){let d=this._reference,h=Xa(this.saveTimezone,d)-Xa(l,d);this._days=bb(s,h),this._exceptions=Array.isArray(n.exceptions)?n.exceptions:[];return}this._days=s,this._exceptions=Array.isArray(n.exceptions)?n.exceptions:[]}_syncFormValue(){if(!this.internals)return;this.internals.setFormValue(this.value);let t=this.shadowRoot?.querySelector(".schedule-builder")??void 0;if(this._customValidity){this.internals.setValidity({customError:!0},this._customValidity,t);return}if(this.required&&!this._hasHours){this.internals.setValidity({valueMissing:!0},"Please open at least one period.",t);return}this.internals.setValidity({})}_commit(t=!0){let r=this._serialise();r!==this.value&&(this.value=r),this._syncFormValue(),this.formControlController.updateValidity(),t&&this.emit("zn-change")}_formatTime(t){let r=fi(t);if(r===null)return t;if(this.timeFormat==="24")return Wr(r);let n=Math.floor(r/60)%24,a=r%60,s=n<12?"am":"pm",l=n%12===0?12:n%12;return a===0?`${l}${s}`:`${l}:${String(a).padStart(2,"0")}${s}`}_formatRange(t){return`${this._formatTime(t.start)}\u2013${this._formatTime(t.end)}`}_formatDate(t){let r=nu(t);return r?this.localize.date(r,{day:"numeric",month:"short"}):""}_summariseDay(t,r){let n=r[t];return n.length?n.map(a=>this._formatRange(a)).join(", "):this.closedLabel}get _storedAsShown(){return bb(this._days,this._offsetDelta)}get _shownDays(){return this._dragPreview??this._storedAsShown}_commitShownDays(t){this._days=bb(t,-this._offsetDelta),this._commit()}_exceptionsForDay(t){return this._exceptions.filter(r=>B3(r).includes(t))}get _shownReductionSpans(){let t=[];return this._exceptions.forEach(r=>{let n=gb(r);n!==null&&B3(r).forEach(a=>{let s=lr.indexOf(a)*Ai;t.push(...uD([[s,s+Ai]],n.reduce((l,d)=>{let h=fi(d.start),m=fi(d.end);return h!==null&&m!==null&&l.push([s+h,s+m]),l},[])))})}),U3(wl(t),this._offsetDelta)}_slotMinute(t,r){return lr.indexOf(t)*Ai+this._startMinute+r*this._interval+this._interval/2}_slotState(t,r,n,a){let s=this._slotMinute(t,r);return vb(n,s)?vb(a,s)?"reduced":"open":"closed"}_pointerPosition(t){if(!this.canvas)return null;let r=this.canvas.getBoundingClientRect();if(!r.width||!r.height)return null;let n=this._orderedDays.length,a=Math.floor((t.clientX-r.left)/r.width*n),s=Math.floor((t.clientY-r.top)/r.height*this._slotCount);return{col:Math.min(Math.max(a,0),n-1),row:Math.min(Math.max(s,0),this._slotCount-1)}}_buildDragPreview(t){let r=this._dragAnchor,n=this._cloneDays(this._storedAsShown),a=Math.min(r.col,t.col),s=Math.max(r.col,t.col),l=Math.min(r.row,t.row),d=Math.max(r.row,t.row),h=this._startMinute+l*this._interval,m=Math.min(this._startMinute+(d+1)*this._interval,this._endMinute);return this._orderedDays.slice(a,s+1).forEach(b=>{n[b]=this._dragMode==="open"?sD(n[b],h,m):lD(n[b],h,m)}),n}_handleViewToggle(t){this.view!==t&&(this._editing=null,this.view=t)}_nextFreeRange(t){if(!t.length)return{start:"09:00",end:"17:00"};let r=this._startMinute;for(let a of t){let s=fi(a.start)??0,l=fi(a.end)??0;if(s-r>=60)break;r=Math.max(r,l)}let n=Math.min(r,Ai-60);return{start:Wr(n),end:Wr(n+60)}}_handleAddRange(t){if(!this._isEditable)return;let r=this._storedAsShown,n=this._nextFreeRange(r[t]),a=xl([...r[t],n]);this._commitShownDays({...r,[t]:a}),this._editing={day:t,index:Math.max(a.findIndex(s=>s.start===n.start),0)}}_handleRemoveRange(t,r){if(!this._isEditable)return;let n=this._storedAsShown;this._editing=null,this._commitShownDays({...n,[t]:n[t].filter((a,s)=>s!==r)})}_handleRangeEdit(t,r,n,a){let s=fi(a);if(s===null)return;let l=this._storedAsShown,d=xl(l[t].map((h,m)=>m===r?{...h,[n]:Wr(s)}:h));this._editing&&this._editing.day===t&&this._editing.index>=d.length&&(this._editing=d.length?{day:t,index:d.length-1}:null),this._commitShownDays({...l,[t]:d})}_handleEditorKeyDown(t){(t.key==="Enter"||t.key==="Escape")&&(t.preventDefault(),t.stopPropagation(),this._editing=null)}_handleEditorFocusOut(t){let r=t.currentTarget,n=t.relatedTarget;n&&r.contains(n)||(this._editing=null)}_renderToolbar(){let t=!this.noToggle,r=this.view==="calendar";return!t&&!r&&!this.showTimezone?F:u`
6262
6260
  <div class="schedule-builder__toolbar" part="toolbar">
6263
6261
  ${this.view==="calendar"&&this._isEditable?u`<p class="schedule-builder__hint">
6264
6262
  Drag across the grid to open hours; drag over open hours to close them.
@@ -6338,7 +6336,7 @@ Please report this to https://github.com/markedjs/marked.`,o){let r="<p>An error
6338
6336
  </div>
6339
6337
  `}_renderCalendarColumn(t,r,n){let a=[];for(let s=0;s<this._slotCount;s++){let l=this._slotState(t,s,r,n);a.push(u`
6340
6338
  <div class=${M({calendar__slot:!0,"calendar__slot--open":l==="open","calendar__slot--reduced":l==="reduced","calendar__slot--hour":s%this._slotsPerHour===0})}></div>`)}return u`
6341
- <div class="calendar__col" role="row" aria-label=${vl[t].long}>${a}</div>`}_renderSummary(t){let r=cr.reduce((n,a)=>n+cD(t[a]),0)/60;return u`
6339
+ <div class="calendar__col" role="row" aria-label=${vl[t].long}>${a}</div>`}_renderSummary(t){let r=lr.reduce((n,a)=>n+cD(t[a]),0)/60;return u`
6342
6340
  <aside class="summary" part="summary">
6343
6341
  <h4 class="summary__title">Hours by day</h4>
6344
6342
  <dl class="summary__list">
@@ -6575,4 +6573,4 @@ Please report this to https://github.com/markedjs/marked.`,o){let r="<p>An error
6575
6573
  `:""}
6576
6574
  <div part="content" class="background__content"><slot></slot></div>
6577
6575
  </div>
6578
- `}};Or.styles=_(W3),Or.dependencies={"zn-icon":oe},c([p()],Or.prototype,"image",2),c([p()],Or.prototype,"color",2),c([p({attribute:"image-strength",reflect:!0})],Or.prototype,"imageStrength",2),c([p({reflect:!0})],Or.prototype,"motion",2),c([p({reflect:!0})],Or.prototype,"overlay",2),c([p({attribute:"overlay-tone",reflect:!0})],Or.prototype,"overlayTone",2),c([p({attribute:"floating-icons"})],Or.prototype,"floatingIcons",2),c([p({type:Boolean,reflect:!0})],Or.prototype,"paused",2);var SD=Or;Or.define("zn-background");export{s4 as AbsoluteContainer,fq as ActionBar,Bu as Alert,gI as AnimatedButton,kq as AudioSelect,SD as Background,J8 as BulkActions,Ee as Button,jl as ButtonGroup,hq as ButtonMenu,x8 as ChannelTile,k8 as Chart,P4 as ChatMessage,H4 as ChatMessageAttachment,UM as Checkbox,JM as CheckboxGroup,jn as Chip,_a as Collapsible,pq as ColorSelect,m8 as Cols,Ca as Confirm,yq as ContentBlock,Vu as CopyButton,dq as DataSelect,h8 as DataTable,Zd as DataTableFilter,lm as DataTableSearch,mq as DataTableSort,sm as Datepicker,f8 as DefinedLabel,Sa as Dialog,ur as Dropdown,BM as Editor,Gi as EditorDialog,dg as EditorQuickAction,Uc as EditorTool,cm as EmptyState,wm as ExpandingAction,XM as File,zq as FilterContainer,xq as FilterWrapper,rb as FlowBranchConditions,jR as FlowBuilder,KR as FlowStep,ab as FlowStepGroup,GR as FlowSteps,jM as FormActions,yg as FormGroup,T8 as Header,dm as HoverContainer,oe as Icon,R8 as IconPicker,dp as InlineEdit,lt as Input,GM as InputGroup,ZM as Item,mI as Key,fI as KeyContainer,KM as LinkedSelect,_R as MarkdownEditor,on as Menu,xi as MenuItem,Ta as Navbar,g8 as Note,im as OptGroup,We as Option,X8 as OrderTable,I8 as Page,tD as PageBuilder,gq as PageNav,pb as PagePaletteItem,hb as PageSectionCard,D8 as Pagination,H8 as Pane,pm as Panel,Ul as Popup,fb as PreviewFrame,yI as PriorityList,Q8 as ProgressBar,Y8 as ProgressTile,t8 as QueryBuilder,WM as Radio,QM as RadioGroup,YM as Rating,Ph as RemarkdEditor,_q as Reveal,xD as ScheduleBuilder,W8 as ScrollContainer,Oe as Select,wq as SettingsContainer,V8 as Sidebar,E8 as SimpleChart,hm as Skeleton,Yl as SlashItem,Ea as SlashMenu,uq as Slideout,j8 as Sp,vq as SplitButton,B8 as SplitPane,K8 as Stat,bq as StatusIndicator,G8 as Stepper,um as Style,zm as Tab,P8 as Table,ln as Tabs,Jo as Textarea,aD as ThemeEditor,_D as Thumbnail,kD as ThumbnailGroup,b8 as Tile,v8 as TileGroup,y8 as TileProperty,O8 as Timer,VM as Toggle,gi as Tooltip,bI as TranslationGroup,uI as Translations,N8 as VerticalStepper,F4 as Well,S as ZincElement,Xu as caretRectFrom,z5 as clearFormStoreValues,u5 as deepQuery,m5 as deepQueryAll,Ge as deepQuerySelectorAll,Qu as getCaretCoordinates,mU as getCaretRect,pr as idSelector,qt as litToHTML,pp as on};
6576
+ `}};Or.styles=_(W3),Or.dependencies={"zn-icon":oe},c([p()],Or.prototype,"image",2),c([p()],Or.prototype,"color",2),c([p({attribute:"image-strength",reflect:!0})],Or.prototype,"imageStrength",2),c([p({reflect:!0})],Or.prototype,"motion",2),c([p({reflect:!0})],Or.prototype,"overlay",2),c([p({attribute:"overlay-tone",reflect:!0})],Or.prototype,"overlayTone",2),c([p({attribute:"floating-icons"})],Or.prototype,"floatingIcons",2),c([p({type:Boolean,reflect:!0})],Or.prototype,"paused",2);var SD=Or;Or.define("zn-background");export{s4 as AbsoluteContainer,fq as ActionBar,Bu as Alert,gI as AnimatedButton,kq as AudioSelect,SD as Background,J8 as BulkActions,Ee as Button,jl as ButtonGroup,hq as ButtonMenu,x8 as ChannelTile,k8 as Chart,P4 as ChatMessage,H4 as ChatMessageAttachment,UM as Checkbox,JM as CheckboxGroup,jn as Chip,_a as Collapsible,pq as ColorSelect,m8 as Cols,Ca as Confirm,yq as ContentBlock,Vu as CopyButton,dq as DataSelect,h8 as DataTable,Zd as DataTableFilter,lm as DataTableSearch,mq as DataTableSort,sm as Datepicker,f8 as DefinedLabel,Sa as Dialog,hr as Dropdown,BM as Editor,Gi as EditorDialog,dg as EditorQuickAction,Uc as EditorTool,cm as EmptyState,wm as ExpandingAction,XM as File,zq as FilterContainer,xq as FilterWrapper,rb as FlowBranchConditions,jR as FlowBuilder,KR as FlowStep,ab as FlowStepGroup,GR as FlowSteps,jM as FormActions,yg as FormGroup,T8 as Header,dm as HoverContainer,oe as Icon,R8 as IconPicker,dp as InlineEdit,lt as Input,GM as InputGroup,ZM as Item,mI as Key,fI as KeyContainer,KM as LinkedSelect,_R as MarkdownEditor,on as Menu,xi as MenuItem,Ta as Navbar,g8 as Note,im as OptGroup,We as Option,X8 as OrderTable,I8 as Page,tD as PageBuilder,gq as PageNav,pb as PagePaletteItem,hb as PageSectionCard,D8 as Pagination,H8 as Pane,pm as Panel,Ul as Popup,fb as PreviewFrame,yI as PriorityList,Q8 as ProgressBar,Y8 as ProgressTile,t8 as QueryBuilder,WM as Radio,QM as RadioGroup,YM as Rating,Ph as RemarkdEditor,_q as Reveal,xD as ScheduleBuilder,W8 as ScrollContainer,Oe as Select,wq as SettingsContainer,V8 as Sidebar,E8 as SimpleChart,hm as Skeleton,Yl as SlashItem,Ea as SlashMenu,uq as Slideout,j8 as Sp,vq as SplitButton,B8 as SplitPane,K8 as Stat,bq as StatusIndicator,G8 as Stepper,um as Style,zm as Tab,P8 as Table,ln as Tabs,Jo as Textarea,aD as ThemeEditor,_D as Thumbnail,kD as ThumbnailGroup,b8 as Tile,v8 as TileGroup,y8 as TileProperty,O8 as Timer,VM as Toggle,gi as Tooltip,bI as TranslationGroup,uI as Translations,N8 as VerticalStepper,F4 as Well,S as ZincElement,Xu as caretRectFrom,z5 as clearFormStoreValues,u5 as deepQuery,m5 as deepQueryAll,Ge as deepQuerySelectorAll,Qu as getCaretCoordinates,mU as getCaretRect,dr as idSelector,qt as litToHTML,pp as on};