@kubex/zinc 1.1.130 → 1.1.131

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 Fn,b as h3,c as _r,d as c,e as V}from"./chunks/zn.UBLZO6CI.js";var Ku=Fn((Ul,Wu)=>{(function(o,i){typeof Ul=="object"&&typeof Wu=="object"?Wu.exports=i():typeof define=="function"&&define.amd?define([],i):typeof Ul=="object"?Ul.AirDatepicker=i():o.AirDatepicker=i()})(Ul,(function(){return(function(){"use strict";var o={d:function(O,x){for(var E in x)o.o(x,E)&&!o.o(O,E)&&Object.defineProperty(O,E,{enumerable:!0,get:x[E]})},o:function(O,x){return Object.prototype.hasOwnProperty.call(O,x)}},i={};o.d(i,{default:function(){return ae}});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(O){let x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:document;return typeof O=="string"?x.querySelector(O):O}function a(){let{tagName:O="div",className:x="",innerHtml:E="",id:w="",attrs:D={}}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},q=document.createElement(O);return x&&q.classList.add(...x.split(" ")),w&&(q.id=w),E&&(q.innerHTML=E),D&&s(q,D),q}function s(O,x){for(let[E,w]of Object.entries(x))w!==void 0&&O.setAttribute(E,w);return O}function l(O){return new Date(O.getFullYear(),O.getMonth()+1,0).getDate()}function p(O){let x=O.getHours(),{hours:E,dayPeriod:w}=h(x);return{year:O.getFullYear(),month:O.getMonth(),fullMonth:O.getMonth()+1<10?"0"+(O.getMonth()+1):O.getMonth()+1,date:O.getDate(),fullDate:O.getDate()<10?"0"+O.getDate():O.getDate(),day:O.getDay(),hours:x,fullHours:m(x),hours12:E,dayPeriod:w,fullHours12:m(E),minutes:O.getMinutes(),fullMinutes:O.getMinutes()<10?"0"+O.getMinutes():O.getMinutes()}}function h(O){return{dayPeriod:O>11?"pm":"am",hours:O%12==0?12:O%12}}function m(O){return O<10?"0"+O:O}function f(O){let x=10*Math.floor(O.getFullYear()/10);return[x,x+9]}function b(){let O=[];for(var x=arguments.length,E=new Array(x),w=0;w<x;w++)E[w]=arguments[w];return E.forEach((D=>{if(typeof D=="object")for(let q in D)D[q]&&O.push(q);else D&&O.push(D)})),O.join(" ")}function g(O,x){let E=arguments.length>2&&arguments[2]!==void 0?arguments[2]:t.days;if(!O||!x)return!1;let w=p(O),D=p(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}[E]}function v(O,x,E){let w=S(O,!1).getTime(),D=S(x,!1).getTime();return E?w>=D:w>D}function y(O,x){return!v(O,x,!0)}function S(O){let x=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1],E=new Date(O.getTime());return typeof x!="boolean"||x||(function(w){w.setHours(0,0,0,0)})(E),E}function T(O,x,E){O.length?O.forEach((w=>{w.addEventListener(x,E)})):O.addEventListener(x,E)}function N(O,x){return!(!O||O===document||O instanceof DocumentFragment)&&(O.matches(x)?O:N(O.parentNode,x))}function U(O,x,E){return O>E?E:O<x?x:O}function I(O){for(var x=arguments.length,E=new Array(x>1?x-1:0),w=1;w<x;w++)E[w-1]=arguments[w];return E.filter((D=>D)).forEach((D=>{for(let[q,A]of Object.entries(D))if(A!==void 0&&A.toString()==="[object Object]"){let H=O[q]!==void 0?O[q].toString():void 0,j=A.toString(),Q=Array.isArray(A)?[]:{};O[q]=O[q]?H!==j?Q:O[q]:Q,I(O[q],A)}else O[q]=A})),O}function C(O){let x=O;return O instanceof Date||(typeof O=="string"&&/^\d{4}-\d{2}-\d{2}$/.test(O)&&(O+="T00:00:00"),x=new Date(O)),isNaN(x.getTime())&&(console.log(`Unable to convert value "${O}" to Date object`),x=!1),x}function $(O){let x="\\s|\\.|-|/|\\\\|,|\\$|\\!|\\?|:|;";return new RegExp("(^|>|"+x+")("+O+")($|<|"+x+")","g")}function L(O,x,E){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 O?Object.defineProperty(O,x,{value:E,enumerable:!0,configurable:!0,writable:!0}):O[x]=E,O}class W{constructor(){let{type:x,date:E,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=E,this.dp=w,this.opts=D,this.body=q,this.customData=!1,this.init()}init(){var x,E;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):((E=this.customData)===null||E===void 0?void 0:E.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:E,month:w,fullMonth:D,date:q,fullDate:A}=p(this.date),H=((x=this.customData)===null||x===void 0?void 0:x.attrs)||{};this.$cell=a({attrs:{"data-year":E,"data-month":w,"data-date":q,"data-iso-date":`${E}-${D}-${A}`,...H}}),this.$cell.adpCell=this}_getClassName(){var x;let E=new Date,{selectOtherMonths:w,selectOtherYears:D}=this.opts,{minDate:q,maxDate:A,isDateDisabled:H}=this.dp,{day:j}=p(this.date),Q=this._isOutOfMinMaxRange(),ie=H(this.date),te=b("air-datepicker-cell",`-${this.singleType}-`,{"-current-":g(E,this.date,this.type),"-min-date-":q&&g(q,this.date,this.type),"-max-date-":A&&g(A,this.date,this.type)}),se="";switch(this.type){case t.days:se=b({"-weekend-":this.dp.isWeekend(j),"-other-month-":this.isOtherMonth,"-disabled-":this.isOtherMonth&&!w||Q||ie});break;case t.months:se=b({"-disabled-":Q});break;case t.years:se=b({"-other-decade-":this.isOtherDecade,"-disabled-":Q||this.isOtherDecade&&!D})}return b(te,se,(x=this.customData)===null||x===void 0?void 0:x.classes).split(" ")}_getHtml(){var x;let{year:E,month:w,date:D}=p(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?"":E}}_isOutOfMinMaxRange(){let{minDate:x,maxDate:E}=this.dp,{type:w,date:D}=this,{month:q,year:A,date:H}=p(D),j=w===t.days,Q=w===t.years,ie=!!x&&new Date(A,Q?x.getMonth():q,j?H:x.getDate()),te=!!E&&new Date(A,Q?E.getMonth():q,j?H:E.getDate());return x&&E?y(ie,x)||v(te,E):x?y(ie,x):E?v(te,E):void 0}destroy(){this.unbindDatepickerEvents()}_handleRangeStatus(){let{selectedDates:x,focusDate:E,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&&E){let se=v(E,x[0]);A=se?x[0]:E,H=se?E: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 oe(O,x,E){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 O?Object.defineProperty(O,x,{value:E,enumerable:!0,configurable:!0,writable:!0}):O[x]=E,O}let xe={[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 Ne{constructor(x){let{dp:E,type:w,opts:D}=x;oe(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)})),oe(this,"handleDayNameClick",(q=>{let A=q.target.getAttribute("data-day-index");this.opts.onClickDayName({dayIndex:Number(A),datepicker:this.dp})})),oe(this,"onChangeCurrentView",(q=>{q!==this.type?this.hide():(this.show(),this.render())})),oe(this,"onMouseOverCell",(q=>{let A=N(q.target,De);this.dp.setFocusDate(!!A&&A.adpCell.date)})),oe(this,"onMouseOutCell",(()=>{this.dp.setFocusDate(!1)})),oe(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)})),oe(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)})),oe(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:se,minutes:Ct}=p(ie);te.setHours(se),te.setMinutes(Ct),this.dp.rangeDateFrom=te,this.dp.replaceDate(ie,te)}if(this.rangeToFocused&&!y(te,ie)){let{hours:se,minutes:Ct}=p(Q);te.setHours(se),te.setMinutes(Ct),this.dp.rangeDateTo=te,this.dp.replaceDate(Q,te)}}})),oe(this,"onMouseUp",(()=>{this.pressed=!1,this.rangeFromFocused=!1,this.rangeToFocused=!1})),oe(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()})),oe(this,"render",(()=>{this.destroyCells(),this._generateCells(),this.cells.forEach((q=>{this.$cells.appendChild(q.render())}))})),this.dp=E,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:E}=this.opts;T(this.$el,"mouseover",this.onMouseOverCell),T(this.$el,"mouseout",this.onMouseOutCell),T(this.$el,"click",this.onClickBody),x&&E&&(T(this.$el,"mousedown",this.onMouseDown),T(this.$el,"mousemove",this.onMouseMove),T(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:xe[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,E="",w=this.dp.isWeekend,{onClickDayName:D}=this.opts,q=x,A=0;for(;A<7;){let H=q%7;E+=`<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 E}renderDayNames(){this.$names.innerHTML=this._getDayNamesHtml()}_generateCell(x){let{type:E,dp:w,opts:D}=this;return new W({type:E,dp:w,opts:D,date:x,body:this})}_generateCells(){Ne.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,E){let{viewDate:w,opts:{fixedHeight:D},locale:{firstDay:q}}=x,A=l(w),{year:H,month:j}=p(w),Q=new Date(H,j,1),ie=new Date(H,j,A),te=Q.getDay()-q,se=6-ie.getDay()+q;te=te<0?te+7:te,se=se>6?se-7:se;let Ct=(function(la,Wh){let{year:td,month:d3,date:p3}=p(la);return new Date(td,d3,p3-Wh)})(Q,te),Yr=A+te+se,zr=Ct.getDate(),{year:yn,month:fl}=p(Ct),aa=0;D&&(Yr=42);let sa=[];for(;aa<Yr;){let la=new Date(yn,fl,zr+aa);E&&E(la),sa.push(la),aa++}return sa}static getMonthsDates(x,E){let{year:w}=x.parsedViewDate,D=0,q=[];for(;D<12;){let A=new Date(w,D);q.push(A),E&&E(A),D++}return q}static getYearsDates(x,E){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),E&&E(j),A++}return H}static getDatesFunction(){let x=arguments.length>0&&arguments[0]!==void 0?arguments[0]:t.days;return{[t.days]:Ne.getDaysDates,[t.months]:Ne.getMonthsDates,[t.years]:Ne.getYearsDates}[x]}}function rt(O,x,E){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 O?Object.defineProperty(O,x,{value:E,enumerable:!0,configurable:!0,writable:!0}):O[x]=E,O}class er{constructor(x){let{dp:E,opts:w}=x;rt(this,"onClickNav",(D=>{let q=N(D.target,".air-datepicker-nav--action");if(!q)return;let A=q.dataset.action;this.dp[A]()})),rt(this,"onChangeViewDate",(()=>{this.render(),this._resetNavStatus(),this.handleNavStatus()})),rt(this,"onChangeCurrentView",(()=>{this.render(),this._resetNavStatus(),this.handleNavStatus()})),rt(this,"onClickNavTitle",(()=>{this.dp.isFinalView||this.dp.up()})),rt(this,"update",(()=>{let{prevHtml:D,nextHtml:q}=this.opts;this.$prev.innerHTML=D,this.$next.innerHTML=q,this._resetNavStatus(),this.render(),this.handleNavStatus()})),rt(this,"renderDelay",(()=>{setTimeout(this.render)})),rt(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=E,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:E}=this,w=E.navTitles[x.currentView];return typeof w=="function"?w(x):x.formatDate(x.viewDate,w)}handleNavStatus(){let{disableNavWhenOutOfRange:x}=this.opts,{minDate:E,maxDate:w}=this.dp;if(!E&&!w||!x)return;let{year:D,month:q}=this.dp.parsedViewDate,A=!!E&&p(E),H=!!w&&p(w);switch(this.dp.currentView){case t.days:E&&A.month>=q&&A.year>=D&&this._disableNav("prev"),w&&H.month<=q&&H.year<=D&&this._disableNav("next");break;case t.months:E&&A.year>=D&&this._disableNav("prev"),w&&H.year<=D&&this._disableNav("next");break;case t.years:{let j=f(this.dp.viewDate);E&&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 E=arguments.length,w=new Array(E>1?E-1:0),D=1;D<E;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:E}=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">${E}</div>`}get isNavIsFunction(){let{navTitles:x}=this.opts;return Object.keys(x).find((E=>typeof x[E]=="function"))}}var Pr={today:{content:O=>O.locale.today,onClick:O=>O.setViewDate(new Date)},clear:{content:O=>O.locale.clear,onClick:O=>O.clear()}};class wr{constructor(x){let{dp:E,opts:w}=x;this.dp=E,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((E=>{let w=E;typeof E=="string"&&Pr[E]&&(w=Pr[E]);let D=this.createButton(w);w.onClick&&this.attachEventToButton(D,w.onClick),this.$el.appendChild(D)}))}attachEventToButton(x,E){x.addEventListener("click",(()=>{E(this.dp)}))}createButton(x){let{content:E,className:w,tagName:D="button",attrs:q={}}=x;return a({tagName:D,innerHtml:`<span tabindex='-1'>${typeof E=="function"?E(this.dp):E}</span>`,className:b("air-datepicker-button",w),attrs:q})}render(){this.generateButtons()}}function Nt(O,x,E){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 O?Object.defineProperty(O,x,{value:E,enumerable:!0,configurable:!0,writable:!0}):O[x]=E,O}class tr{constructor(){let{opts:x,dp:E}=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=E;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"),T(this.$ranges,x,this.onChangeInputRange),T(this.$ranges,"mouseenter",this.onMouseEnterLeave),T(this.$ranges,"mouseleave",this.onMouseEnterLeave),T(this.$ranges,"focus",this.onFocus),T(this.$ranges,"mousedown",this.onFocus),T(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:E,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="${E}" 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=E=>n(E,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:E,maxDate:w}=this.dp;E&&g(x,E)&&this.setMinTimeFromMinDate(E),w&&g(x,w)&&this.setMaxTimeFromMaxDate(w)}}setCurrentTime(x){let{hours:E,minutes:w}=x?p(x):this;this.hours=U(E,this.minHours,this.maxHours),this.minutes=U(w,this.minMinutes,this.maxMinutes)}setMinMaxTimeFromOptions(){let{minHours:x,minMinutes:E,maxHours:w,maxMinutes:D}=this.opts;this.minHours=U(x,0,23),this.minMinutes=U(E,0,59),this.maxHours=U(w,0,23),this.maxMinutes=U(D,0,59)}setMinTimeFromMinDate(x){let{lastSelectedDate:E}=this.dp;this.minHours=x.getHours(),E&&E.getHours()>x.getHours()?this.minMinutes=this.opts.minMinutes:this.minMinutes=x.getMinutes()}setMaxTimeFromMaxDate(x){let{lastSelectedDate:E}=this.dp;this.maxHours=x.getHours(),E&&E.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:E,dayPeriod:w}=h(x);this.displayHours=this.ampm?E:x,this.dayPeriod=w}get hours(){return this._hours}render(){this.updateSliders(),this.updateText()}}function Mt(O,x,E){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 O?Object.defineProperty(O,x,{value:E,enumerable:!0,configurable:!0,writable:!0}):O[x]=E,O}class uo{constructor(x){let{dp:E,opts:w}=x;Mt(this,"pressedKeys",new Set),Mt(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()]])),Mt(this,"handleHotKey",(D=>{let q=this.hotKeys.get(D),A=p(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})})),Mt(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})),Mt(this,"isArrow",(D=>D>=37&&D<=40)),Mt(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()})),Mt(this,"onKeyUp",(D=>{this.removeKey(D.key)})),this.dp=E,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:E,selectedDates:w,parsedViewDate:{year:D,month:q}}=this.dp,A=x||w[w.length-1];if(!A)switch(E){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 E=this.getInitialFocusDate(),{currentView:w}=this.dp,{days:D,months:q,years:A}=t,H=p(E),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 Qa={on(O,x){this.__events||(this.__events={}),this.__events[O]?this.__events[O].push(x):this.__events[O]=[x]},off(O,x){this.__events&&this.__events[O]&&(this.__events[O]=this.__events[O].filter((E=>E!==x)))},removeAllEvents(){this.__events={}},trigger(O){for(var x=arguments.length,E=new Array(x>1?x-1:0),w=1;w<x;w++)E[w-1]=arguments[w];this.__events&&this.__events[O]&&this.__events[O].forEach((D=>{D(...E)}))}};function ue(O,x,E){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 O?Object.defineProperty(O,x,{value:E,enumerable:!0,configurable:!0,writable:!0}):O[x]=E,O}let Yi="",Qi="",he=!1;class ae{static buildGlobalContainer(x){he=!0,Yi=a({className:x,id:x}),n("body").appendChild(Yi)}constructor(x,E){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(),se=w.$el.getBoundingClientRect(),Ct=w.$datepicker.offsetParent,Yr=w.$el.offsetParent,zr=w.$datepicker.getBoundingClientRect(),yn=A.split(" "),fl=window.scrollY,aa=window.scrollX,sa=w.opts.offset,la=yn[0],Wh=yn[1];if(ie)w.$datepicker.style.cssText="left: 50%; top: 50%";else{if(Ct===Yr&&Ct!==document.body&&(se={top:w.$el.offsetTop,left:w.$el.offsetLeft,width:te.width,height:w.$el.offsetHeight},fl=0,aa=0),Ct!==Yr&&Ct!==document.body){let td=Ct.getBoundingClientRect();se={top:te.top-td.top,left:te.left-td.left,width:te.width,height:te.height},fl=0,aa=0}switch(la){case"top":j=se.top-zr.height-sa;break;case"right":Q=se.left+se.width+sa;break;case"bottom":j=se.top+se.height+sa;break;case"left":Q=se.left-zr.width-sa}switch(Wh){case"top":j=se.top;break;case"right":Q=se.left+se.width-zr.width;break;case"bottom":j=se.top+se.height-zr.height;break;case"left":Q=se.left;break;case"center":/left|right/.test(la)?j=se.top+se.height/2-zr.height/2:Q=se.left+se.width/2-zr.width/2}w.$datepicker.style.cssText=`left: ${Q+aa}px; top: ${j+fl}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",se=te?A(Q?H:H[0]):H.map((Ct=>this.formatDate(Ct,A)));return se=te?se:se.join(ie),se})),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 Ne({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=I({},w.opts),{silent:Q}=H;I(w.opts,A);let{timepicker:ie,buttons:te,range:se,selectedDates:Ct,isMobile:Yr}=w.opts,zr=w.visible||w.treatAsInline;w._createMinMaxDates(),w._limitViewDateByMaxMinDates(),w._handleLocale(),Ct&&(w.selectedDates=[],w.selectDate(Ct,{silent:Q})),A.view&&w.setCurrentView(A.view,{silent:Q}),w._setInputValue(),j.range&&!se?(w.rangeDateTo=!1,w.rangeDateFrom=!1):!j.range&&se&&w.selectedDates.length&&(w.rangeDateFrom=w.selectedDates[0],w.rangeDateTo=w.selectedDates[1]),j.timepicker&&!ie?(zr&&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)):zr&&j.buttons&&te&&w.buttons.clearHtml().render(),!j.isMobile&&Yr?(w.treatAsInline||Qi||w._createMobileOverlay(),w._addMobileAttributes(),w.visible&&w._showMobileOverlay()):j.isMobile&&!Yr&&(w._removeMobileAttributes(),w.visible&&(Qi.classList.remove("-active-"),typeof w.opts.position!="function"&&w.setPosition())),zr&&(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}=p(A);return H!==this.parsedViewDate.month})),ue(this,"isOtherYear",(A=>{let{year:H}=p(A);return H!==this.parsedViewDate.year})),ue(this,"isOtherDecade",(A=>{let{year:H}=p(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,se=ie;ie||(se=Q);let Ct=this.getCell(se,this.currentViewSingular),Yr=Ct&&Ct.adpCell;Yr&&Yr.isDisabled||(se.setHours(H),se.setMinutes(j),ie?(this._setInputValue(),te&&this._triggerOnSelect()):this.selectDate(se))})),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 Ne.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=I({},r,E),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:E,opts:{inline:w,isMobile:D,selectedDates:q,keyboardNav:A,onlyTimepicker:H}}=this,j=n("body");(!he||he&&Yi&&!j.contains(Yi))&&!w&&this.elIsInput&&!this.$customContainer&&ae.buildGlobalContainer(ae.defaultGlobalContainerId),!D||Qi||E||this._createMobileOverlay(),this._handleLocale(),this._bindSubEvents(),this._createMinMaxDates(),this._limitViewDateByMaxMinDates(),this.elIsInput&&(w||this._bindEvents(),A&&!H&&(this.keyboardNav=new uo({dp:this,opts:x}))),q&&this.selectDate(q,{silent:!0}),this.opts.visible&&!E&&this.show(),D&&!E&&this.$el.setAttribute("readonly",!0),E&&this._createComponents()}_createMobileOverlay(){Qi=a({className:"air-datepicker-overlay"}),Yi.appendChild(Qi)}_createComponents(){let{opts:x,treatAsInline:E,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&&!E&&this._addMobileAttributes(),this.views[this.currentView]=new Ne({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(){Qi.addEventListener("click",this._onClickOverlay),this.$datepicker.classList.add("-is-mobile-"),this.$el.setAttribute("readonly",!0)}_removeMobileAttributes(){Qi.removeEventListener("click",this._onClickOverlay),this.$datepicker.classList.remove("-is-mobile-"),this.initialReadonly||this.initialReadonly===""||this.$el.removeAttribute("readonly")}_createMinMaxDates(){let{minDate:x,maxDate:E}=this.opts;this.minDate=!!x&&C(x),this.maxDate=!!E&&C(E)}_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 wr({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 E,w;this.elIsInput?x?(E=this.$datepicker,(w=this.$el).parentNode.insertBefore(E,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:E,firstDay:w,timepicker:D,onlyTimepicker:q,timeFormat:A,dateTimeSeparator:H}=this.opts;var j;this.locale=(j=x,JSON.parse(JSON.stringify(j))),E&&(this.locale.dateFormat=E),A!==void 0&&A!==""&&(this.locale.timeFormat=A);let{timeFormat:Q}=this.locale;if(w!==""&&(this.locale.firstDay=w),D&&typeof E!="function"){let ie=Q?H:"";this.locale.dateFormat=[this.locale.dateFormat,Q||""].join(ie)}q&&typeof E!="function"&&(this.locale.dateFormat=this.locale.timeFormat)}_setPositionClasses(x){if(typeof x=="function")return void this.$datepicker.classList.add("-custom-position-");let E=(x=x.split(" "))[0],w=`air-datepicker -${E}-${x[1]}- -from-${E}-`;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:E,maxDate:w}=this;w&&v(x,w)&&this.setViewDate(w),E&&y(x,E)&&this.setViewDate(E)}formatDate(){let x=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.viewDate,E=arguments.length>1?arguments[1]:void 0;if(x=C(x),!(x instanceof Date))return;let w=E,D=this.locale,q=p(x),A=q.dayPeriod,H=f(x),j=ae.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 E,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:se,autoClose:Ct,onBeforeSelect:Yr}=this.opts,zr=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&&(E=new Date(x.getFullYear(),x.getMonth(),1)),D===t.years&&x.getFullYear()!==q.year&&ie&&(E=new Date(x.getFullYear(),0,1)),E&&this.setViewDate(E),te&&!se){if(zr===te)return;this._checkIfDateIsSelected(x)||A.push(x)}else if(se)switch(zr){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),Ct&&!this.timepickerIsActive&&this.visible&&(te||se?se&&zr===1&&this.hide():this.hide()),new Promise((yn=>{setTimeout(yn)}))}}unselectDate(x){let E=this.selectedDates,w=this;if((x=C(x))instanceof Date)return E.some(((D,q)=>{if(g(D,x))return E.splice(q,1),w.selectedDates.length?(w.rangeDateTo="",w.rangeDateFrom=E[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,E){let w=this.selectedDates.find((q=>g(q,x,this.currentView))),D=this.selectedDates.indexOf(w);D<0||g(this.selectedDates[D],E,this.currentView)||(this.selectedDates[D]=E,this.trigger(t.eventChangeSelectedDate,{action:t.actionSelectDate,date:E,updateTime:!0}),this._updateLastSelectedDate(E))}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((E=>{setTimeout(E)}))}show(){let{onShow:x,isMobile:E}=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),E&&this._showMobileOverlay()}hide(){let{onHide:x,isMobile:E}=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)})),E&&Qi.classList.remove("-active-")}_triggerOnSelect(){let x=[],E=[],{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(S),E=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?E:E[0],datepicker:this})}_handleAlreadySelectedDates(x,E){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:E}):H,ie=!!(A&&j===1&&x),te=ie?S(E):E;A&&!Q&&(j!==2&&this.selectDate(te),j===2&&g(D,q))||(Q?this.unselectDate(te):this._updateLastSelectedDate(ie?te:x))}_handleUpDownActions(x,E){if(!((x=C(x||this.focusDate||this.viewDate))instanceof Date))return;let w=E==="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 E=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}=p(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[E]):void 0}_showMobileOverlay(){Qi.classList.add("-active-")}_hasTransition(){return window.getComputedStyle(this.$datepicker).getPropertyValue("transition-duration").split(", ").reduce(((x,E)=>parseFloat(E)+x),0)>0}get shouldUpdateDOM(){return this.visible||this.treatAsInline}get parsedViewDate(){return p(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||Yi}static replacer(x,E,w){return x.replace(E,(function(D,q,A,H){return q+w+H}))}}var ze;return ue(ae,"defaults",r),ue(ae,"version","3.6.0"),ue(ae,"defaultGlobalContainerId","air-datepicker-global-container"),ze=ae.prototype,Object.assign(ze,Qa),i.default})()}))});var H1=Fn((Oie,P1)=>{var zi=-1,Br=1,Yt=0;function Wl(o,i,t,r,n){if(o===i)return o?[[Yt,o]]:[];if(t!=null){var a=_8(o,i,t);if(a)return a}var s=hm(o,i),l=o.substring(0,s);o=o.substring(s),i=i.substring(s),s=np(o,i);var p=o.substring(o.length-s);o=o.substring(0,o.length-s),i=i.substring(0,i.length-s);var h=f8(o,i);return l&&h.unshift([Yt,l]),p&&h.push([Yt,p]),um(h,n),r&&v8(h),h}function f8(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)],[Yt,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=b8(o,i);if(s){var l=s[0],p=s[1],h=s[2],m=s[3],f=s[4],b=Wl(l,h),g=Wl(p,m);return b.concat([[Yt,f]],g)}return g8(o,i)}function g8(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),p=new Array(s),h=0;h<s;h++)l[h]=-1,p[h]=-1;l[a+1]=0,p[a+1]=0;for(var m=t-r,f=m%2!==0,b=0,g=0,v=0,y=0,S=0;S<n;S++){for(var T=-S+b;T<=S-g;T+=2){var N=a+T,U;T===-S||T!==S&&l[N-1]<l[N+1]?U=l[N+1]:U=l[N-1]+1;for(var I=U-T;U<t&&I<r&&o.charAt(U)===i.charAt(I);)U++,I++;if(l[N]=U,U>t)g+=2;else if(I>r)b+=2;else if(f){var C=a+m-T;if(C>=0&&C<s&&p[C]!==-1){var $=t-p[C];if(U>=$)return A1(o,i,U,I)}}}for(var L=-S+v;L<=S-y;L+=2){var C=a+L,$;L===-S||L!==S&&p[C-1]<p[C+1]?$=p[C+1]:$=p[C-1]+1;for(var W=$-L;$<t&&W<r&&o.charAt(t-$-1)===i.charAt(r-W-1);)$++,W++;if(p[C]=$,$>t)y+=2;else if(W>r)v+=2;else if(!f){var N=a+m-L;if(N>=0&&N<s&&l[N]!==-1){var U=l[N],I=a+U-N;if($=t-$,U>=$)return A1(o,i,U,I)}}}}return[[zi,o],[Br,i]]}function A1(o,i,t,r){var n=o.substring(0,t),a=i.substring(0,r),s=o.substring(t),l=i.substring(r),p=Wl(n,a),h=Wl(s,l);return p.concat(h)}function hm(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 D1(o.charCodeAt(n-1))&&n--,n}function M1(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),p=i.indexOf(l);if(p==-1)return a;s+=p,(p==0||o.substring(n-s)==i.substring(0,s))&&(a=s,s++)}}function np(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 R1(o.charCodeAt(o.length-n))&&n--,n}function b8(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 S=g.substring(y,y+Math.floor(g.length/4)),T=-1,N="",U,I,C,$;(T=v.indexOf(S,T+1))!==-1;){var L=hm(g.substring(y),v.substring(T)),W=np(g.substring(0,y),v.substring(0,T));N.length<W+L&&(N=v.substring(T-W,T)+v.substring(T,T+L),U=g.substring(0,y-W),I=g.substring(y+L),C=v.substring(0,T-W),$=v.substring(T+L))}return N.length*2>=g.length?[U,I,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 p,h,m,f;o.length>i.length?(p=l[0],h=l[1],m=l[2],f=l[3]):(m=l[0],f=l[1],p=l[2],h=l[3]);var b=l[4];return[p,h,m,f,b]}function v8(o){for(var i=!1,t=[],r=0,n=null,a=0,s=0,l=0,p=0,h=0;a<o.length;)o[a][0]==Yt?(t[r++]=a,s=p,l=h,p=0,h=0,n=o[a][1]):(o[a][0]==Br?p+=o[a][1].length:h+=o[a][1].length,n&&n.length<=Math.max(s,l)&&n.length<=Math.max(p,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,p=0,h=0,n=null,i=!0)),a++;for(i&&um(o),w8(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=M1(m,f),g=M1(f,m);b>=g?(b>=m.length/2||b>=f.length/2)&&(o.splice(a,0,[Yt,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,[Yt,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 L1=/[^a-zA-Z0-9]/,q1=/\s/,I1=/[\r\n]/,y8=/\n\r?\n$/,x8=/^\r?\n\r?\n/;function w8(o){function i(g,v){if(!g||!v)return 6;var y=g.charAt(g.length-1),S=v.charAt(0),T=y.match(L1),N=S.match(L1),U=T&&y.match(q1),I=N&&S.match(q1),C=U&&y.match(I1),$=I&&S.match(I1),L=C&&g.match(y8),W=$&&v.match(x8);return L||W?5:C||$?4:T&&!U&&I?3:U||I?2:T||N?1:0}for(var t=1;t<o.length-1;){if(o[t-1][0]==Yt&&o[t+1][0]==Yt){var r=o[t-1][1],n=o[t][1],a=o[t+1][1],s=np(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 p=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,p=r,h=n,m=a)}o[t-1][1]!=p&&(p?o[t-1][1]=p:(o.splice(t-1,1),t--),o[t][1]=h,m?o[t+1][1]=m:(o.splice(t+1,1),t--))}t++}}function um(o,i){o.push([Yt,""]);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 Yt:var p=t-n-r-1;if(i){if(p>=0&&O1(o[p][1])){var h=o[p][1].slice(-1);if(o[p][1]=o[p][1].slice(0,-1),a=h+a,s=h+s,!o[p][1]){o.splice(p,1),t--;var m=p-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--),p=m}}if(N1(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=hm(s,a),l!==0&&(p>=0?o[p][1]+=s.substring(0,l):(o.splice(0,0,[Yt,s.substring(0,l)]),t++),s=s.substring(l),a=a.substring(l)),l=np(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]===Yt?(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]===Yt&&o[t+1][0]===Yt&&(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&&um(o,i)}function D1(o){return o>=55296&&o<=56319}function R1(o){return o>=56320&&o<=57343}function N1(o){return R1(o.charCodeAt(0))}function O1(o){return D1(o.charCodeAt(o.length-1))}function z8(o){for(var i=[],t=0;t<o.length;t++)o[t][1].length>0&&i.push(o[t]);return i}function pm(o,i,t,r){return O1(o)||N1(r)?null:z8([[Yt,o],[zi,i],[Br,t],[Yt,r]])}function _8(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,p=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=p.slice(0,v),S=b.slice(0,v);if(y!==S)break e;var T=p.slice(v),N=b.slice(v);return pm(y,T,N,h)}e:{if(m!==null&&m!==l)break e;var U=l,b=i.slice(0,U),g=i.slice(U);if(b!==p)break e;var I=Math.min(a-U,s-U),C=h.slice(h.length-I),$=g.slice(g.length-I);if(C!==$)break e;var T=h.slice(0,h.length-I),N=g.slice(0,g.length-I);return pm(p,T,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,I=C.length;if(s<v+I)break e;var S=i.slice(0,v),$=i.slice(s-I);if(y!==S||C!==$)break e;var T=o.slice(v,a-I),N=i.slice(v,s-I);return pm(y,T,N,C)}return null}function op(o,i,t,r){return Wl(o,i,t,r,!0)}op.INSERT=Br;op.DELETE=zi;op.EQUAL=Yt;P1.exports=op});var Tm=Fn((Kl,ys)=>{var k8=200,J1="__lodash_hash_undefined__",Z1=9007199254740991,wm="[object Arguments]",C8="[object Array]",ey="[object Boolean]",ty="[object Date]",S8="[object Error]",zm="[object Function]",ry="[object GeneratorFunction]",ap="[object Map]",iy="[object Number]",_m="[object Object]",F1="[object Promise]",ny="[object RegExp]",sp="[object Set]",oy="[object String]",ay="[object Symbol]",fm="[object WeakMap]",sy="[object ArrayBuffer]",lp="[object DataView]",ly="[object Float32Array]",cy="[object Float64Array]",dy="[object Int8Array]",py="[object Int16Array]",hy="[object Int32Array]",uy="[object Uint8Array]",my="[object Uint8ClampedArray]",fy="[object Uint16Array]",gy="[object Uint32Array]",E8=/[\\^$.*+?()[\]{}|]/g,T8=/\w*$/,$8=/^\[object .+?Constructor\]$/,A8=/^(?:0|[1-9]\d*)$/,et={};et[wm]=et[C8]=et[sy]=et[lp]=et[ey]=et[ty]=et[ly]=et[cy]=et[dy]=et[py]=et[hy]=et[ap]=et[iy]=et[_m]=et[ny]=et[sp]=et[oy]=et[ay]=et[uy]=et[my]=et[fy]=et[gy]=!0;et[S8]=et[zm]=et[fm]=!1;var M8=typeof global=="object"&&global&&global.Object===Object&&global,L8=typeof self=="object"&&self&&self.Object===Object&&self,Kn=M8||L8||Function("return this")(),by=typeof Kl=="object"&&Kl&&!Kl.nodeType&&Kl,B1=by&&typeof ys=="object"&&ys&&!ys.nodeType&&ys,q8=B1&&B1.exports===by;function I8(o,i){return o.set(i[0],i[1]),o}function D8(o,i){return o.add(i),o}function R8(o,i){for(var t=-1,r=o?o.length:0;++t<r&&i(o[t],t,o)!==!1;);return o}function N8(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 O8(o,i){for(var t=-1,r=Array(o);++t<o;)r[t]=i(t);return r}function P8(o,i){return o?.[i]}function yy(o){var i=!1;if(o!=null&&typeof o.toString!="function")try{i=!!(o+"")}catch{}return i}function V1(o){var i=-1,t=Array(o.size);return o.forEach(function(r,n){t[++i]=[n,r]}),t}function km(o,i){return function(t){return o(i(t))}}function U1(o){var i=-1,t=Array(o.size);return o.forEach(function(r){t[++i]=r}),t}var H8=Array.prototype,F8=Function.prototype,cp=Object.prototype,mm=Kn["__core-js_shared__"],j1=(function(){var o=/[^.]+$/.exec(mm&&mm.keys&&mm.keys.IE_PROTO||"");return o?"Symbol(src)_1."+o:""})(),xy=F8.toString,$o=cp.hasOwnProperty,dp=cp.toString,B8=RegExp("^"+xy.call($o).replace(E8,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),G1=q8?Kn.Buffer:void 0,W1=Kn.Symbol,K1=Kn.Uint8Array,V8=km(Object.getPrototypeOf,Object),U8=Object.create,j8=cp.propertyIsEnumerable,G8=H8.splice,Y1=Object.getOwnPropertySymbols,W8=G1?G1.isBuffer:void 0,K8=km(Object.keys,Object),gm=zs(Kn,"DataView"),Yl=zs(Kn,"Map"),bm=zs(Kn,"Promise"),vm=zs(Kn,"Set"),ym=zs(Kn,"WeakMap"),Ql=zs(Object,"create"),Y8=$a(gm),Q8=$a(Yl),X8=$a(bm),J8=$a(vm),Z8=$a(ym),Q1=W1?W1.prototype:void 0,X1=Q1?Q1.valueOf:void 0;function Ta(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 e9(){this.__data__=Ql?Ql(null):{}}function t9(o){return this.has(o)&&delete this.__data__[o]}function r9(o){var i=this.__data__;if(Ql){var t=i[o];return t===J1?void 0:t}return $o.call(i,o)?i[o]:void 0}function i9(o){var i=this.__data__;return Ql?i[o]!==void 0:$o.call(i,o)}function n9(o,i){var t=this.__data__;return t[o]=Ql&&i===void 0?J1:i,this}Ta.prototype.clear=e9;Ta.prototype.delete=t9;Ta.prototype.get=r9;Ta.prototype.has=i9;Ta.prototype.set=n9;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 o9(){this.__data__=[]}function a9(o){var i=this.__data__,t=pp(i,o);if(t<0)return!1;var r=i.length-1;return t==r?i.pop():G8.call(i,t,1),!0}function s9(o){var i=this.__data__,t=pp(i,o);return t<0?void 0:i[t][1]}function l9(o){return pp(this.__data__,o)>-1}function c9(o,i){var t=this.__data__,r=pp(t,o);return r<0?t.push([o,i]):t[r][1]=i,this}Yn.prototype.clear=o9;Yn.prototype.delete=a9;Yn.prototype.get=s9;Yn.prototype.has=l9;Yn.prototype.set=c9;function xs(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 d9(){this.__data__={hash:new Ta,map:new(Yl||Yn),string:new Ta}}function p9(o){return hp(this,o).delete(o)}function h9(o){return hp(this,o).get(o)}function u9(o){return hp(this,o).has(o)}function m9(o,i){return hp(this,o).set(o,i),this}xs.prototype.clear=d9;xs.prototype.delete=p9;xs.prototype.get=h9;xs.prototype.has=u9;xs.prototype.set=m9;function ws(o){this.__data__=new Yn(o)}function f9(){this.__data__=new Yn}function g9(o){return this.__data__.delete(o)}function b9(o){return this.__data__.get(o)}function v9(o){return this.__data__.has(o)}function y9(o,i){var t=this.__data__;if(t instanceof Yn){var r=t.__data__;if(!Yl||r.length<k8-1)return r.push([o,i]),this;t=this.__data__=new xs(r)}return t.set(o,i),this}ws.prototype.clear=f9;ws.prototype.delete=g9;ws.prototype.get=b9;ws.prototype.has=v9;ws.prototype.set=y9;function x9(o,i){var t=Sm(o)||U9(o)?O8(o.length,String):[],r=t.length,n=!!r;for(var a in o)(i||$o.call(o,a))&&!(n&&(a=="length"||H9(a,r)))&&t.push(a);return t}function wy(o,i,t){var r=o[i];(!($o.call(o,i)&&Cy(r,t))||t===void 0&&!(i in o))&&(o[i]=t)}function pp(o,i){for(var t=o.length;t--;)if(Cy(o[t][0],i))return t;return-1}function w9(o,i){return o&&zy(i,Em(i),o)}function xm(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(!up(o))return o;var p=Sm(o);if(p){if(l=N9(o),!i)return I9(o,l)}else{var h=Ea(o),m=h==zm||h==ry;if(G9(o))return E9(o,i);if(h==_m||h==wm||m&&!a){if(yy(o))return a?o:{};if(l=O9(m?{}:o),!i)return D9(o,w9(l,o))}else{if(!et[h])return a?o:{};l=P9(o,h,xm,i)}}s||(s=new ws);var f=s.get(o);if(f)return f;if(s.set(o,l),!p)var b=t?R9(o):Em(o);return R8(b||o,function(g,v){b&&(v=g,g=o[v]),wy(l,v,xm(g,i,t,r,v,o,s))}),l}function z9(o){return up(o)?U8(o):{}}function _9(o,i,t){var r=i(o);return Sm(o)?r:N8(r,t(o))}function k9(o){return dp.call(o)}function C9(o){if(!up(o)||B9(o))return!1;var i=Ey(o)||yy(o)?B8:$8;return i.test($a(o))}function S9(o){if(!ky(o))return K8(o);var i=[];for(var t in Object(o))$o.call(o,t)&&t!="constructor"&&i.push(t);return i}function E9(o,i){if(i)return o.slice();var t=new o.constructor(o.length);return o.copy(t),t}function Cm(o){var i=new o.constructor(o.byteLength);return new K1(i).set(new K1(o)),i}function T9(o,i){var t=i?Cm(o.buffer):o.buffer;return new o.constructor(t,o.byteOffset,o.byteLength)}function $9(o,i,t){var r=i?t(V1(o),!0):V1(o);return vy(r,I8,new o.constructor)}function A9(o){var i=new o.constructor(o.source,T8.exec(o));return i.lastIndex=o.lastIndex,i}function M9(o,i,t){var r=i?t(U1(o),!0):U1(o);return vy(r,D8,new o.constructor)}function L9(o){return X1?Object(X1.call(o)):{}}function q9(o,i){var t=i?Cm(o.buffer):o.buffer;return new o.constructor(t,o.byteOffset,o.length)}function I9(o,i){var t=-1,r=o.length;for(i||(i=Array(r));++t<r;)i[t]=o[t];return i}function zy(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;wy(t,s,l===void 0?o[s]:l)}return t}function D9(o,i){return zy(o,_y(o),i)}function R9(o){return _9(o,Em,_y)}function hp(o,i){var t=o.__data__;return F9(i)?t[typeof i=="string"?"string":"hash"]:t.map}function zs(o,i){var t=P8(o,i);return C9(t)?t:void 0}var _y=Y1?km(Y1,Object):Y9,Ea=k9;(gm&&Ea(new gm(new ArrayBuffer(1)))!=lp||Yl&&Ea(new Yl)!=ap||bm&&Ea(bm.resolve())!=F1||vm&&Ea(new vm)!=sp||ym&&Ea(new ym)!=fm)&&(Ea=function(o){var i=dp.call(o),t=i==_m?o.constructor:void 0,r=t?$a(t):void 0;if(r)switch(r){case Y8:return lp;case Q8:return ap;case X8:return F1;case J8:return sp;case Z8:return fm}return i});function N9(o){var i=o.length,t=o.constructor(i);return i&&typeof o[0]=="string"&&$o.call(o,"index")&&(t.index=o.index,t.input=o.input),t}function O9(o){return typeof o.constructor=="function"&&!ky(o)?z9(V8(o)):{}}function P9(o,i,t,r){var n=o.constructor;switch(i){case sy:return Cm(o);case ey:case ty:return new n(+o);case lp:return T9(o,r);case ly:case cy:case dy:case py:case hy:case uy:case my:case fy:case gy:return q9(o,r);case ap:return $9(o,r,t);case iy:case oy:return new n(o);case ny:return A9(o);case sp:return M9(o,r,t);case ay:return L9(o)}}function H9(o,i){return i=i??Z1,!!i&&(typeof o=="number"||A8.test(o))&&o>-1&&o%1==0&&o<i}function F9(o){var i=typeof o;return i=="string"||i=="number"||i=="symbol"||i=="boolean"?o!=="__proto__":o===null}function B9(o){return!!j1&&j1 in o}function ky(o){var i=o&&o.constructor,t=typeof i=="function"&&i.prototype||cp;return o===t}function $a(o){if(o!=null){try{return xy.call(o)}catch{}try{return o+""}catch{}}return""}function V9(o){return xm(o,!0,!0)}function Cy(o,i){return o===i||o!==o&&i!==i}function U9(o){return j9(o)&&$o.call(o,"callee")&&(!j8.call(o,"callee")||dp.call(o)==wm)}var Sm=Array.isArray;function Sy(o){return o!=null&&W9(o.length)&&!Ey(o)}function j9(o){return K9(o)&&Sy(o)}var G9=W8||Q9;function Ey(o){var i=up(o)?dp.call(o):"";return i==zm||i==ry}function W9(o){return typeof o=="number"&&o>-1&&o%1==0&&o<=Z1}function up(o){var i=typeof o;return!!o&&(i=="object"||i=="function")}function K9(o){return!!o&&typeof o=="object"}function Em(o){return Sy(o)?x9(o):S9(o)}function Y9(){return[]}function Q9(){return!1}ys.exports=V9});var Hm=Fn((Xl,ks)=>{var X9=200,Pm="__lodash_hash_undefined__",wp=1,Py=2,Hy=9007199254740991,mp="[object Arguments]",Lm="[object Array]",J9="[object AsyncFunction]",Fy="[object Boolean]",By="[object Date]",Vy="[object Error]",Uy="[object Function]",Z9="[object GeneratorFunction]",fp="[object Map]",jy="[object Number]",e6="[object Null]",_s="[object Object]",Ty="[object Promise]",t6="[object Proxy]",Gy="[object RegExp]",gp="[object Set]",Wy="[object String]",r6="[object Symbol]",i6="[object Undefined]",qm="[object WeakMap]",Ky="[object ArrayBuffer]",bp="[object DataView]",n6="[object Float32Array]",o6="[object Float64Array]",a6="[object Int8Array]",s6="[object Int16Array]",l6="[object Int32Array]",c6="[object Uint8Array]",d6="[object Uint8ClampedArray]",p6="[object Uint16Array]",h6="[object Uint32Array]",u6=/[\\^$.*+?()[\]{}|]/g,m6=/^\[object .+?Constructor\]$/,f6=/^(?:0|[1-9]\d*)$/,st={};st[n6]=st[o6]=st[a6]=st[s6]=st[l6]=st[c6]=st[d6]=st[p6]=st[h6]=!0;st[mp]=st[Lm]=st[Ky]=st[Fy]=st[bp]=st[By]=st[Vy]=st[Uy]=st[fp]=st[jy]=st[_s]=st[Gy]=st[gp]=st[Wy]=st[qm]=!1;var Yy=typeof global=="object"&&global&&global.Object===Object&&global,g6=typeof self=="object"&&self&&self.Object===Object&&self,Qn=Yy||g6||Function("return this")(),Qy=typeof Xl=="object"&&Xl&&!Xl.nodeType&&Xl,$y=Qy&&typeof ks=="object"&&ks&&!ks.nodeType&&ks,Xy=$y&&$y.exports===Qy,$m=Xy&&Yy.process,Ay=(function(){try{return $m&&$m.binding&&$m.binding("util")}catch{}})(),My=Ay&&Ay.isTypedArray;function b6(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 v6(o,i){for(var t=-1,r=i.length,n=o.length;++t<r;)o[n+t]=i[t];return o}function y6(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 x6(o,i){for(var t=-1,r=Array(o);++t<o;)r[t]=i(t);return r}function w6(o){return function(i){return o(i)}}function z6(o,i){return o.has(i)}function _6(o,i){return o?.[i]}function k6(o){var i=-1,t=Array(o.size);return o.forEach(function(r,n){t[++i]=[n,r]}),t}function C6(o,i){return function(t){return o(i(t))}}function S6(o){var i=-1,t=Array(o.size);return o.forEach(function(r){t[++i]=r}),t}var E6=Array.prototype,T6=Function.prototype,zp=Object.prototype,Am=Qn["__core-js_shared__"],Jy=T6.toString,$n=zp.hasOwnProperty,Ly=(function(){var o=/[^.]+$/.exec(Am&&Am.keys&&Am.keys.IE_PROTO||"");return o?"Symbol(src)_1."+o:""})(),Zy=zp.toString,$6=RegExp("^"+Jy.call($n).replace(u6,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),qy=Xy?Qn.Buffer:void 0,vp=Qn.Symbol,Iy=Qn.Uint8Array,ex=zp.propertyIsEnumerable,A6=E6.splice,Aa=vp?vp.toStringTag:void 0,Dy=Object.getOwnPropertySymbols,M6=qy?qy.isBuffer:void 0,L6=C6(Object.keys,Object),Im=Cs(Qn,"DataView"),Jl=Cs(Qn,"Map"),Dm=Cs(Qn,"Promise"),Rm=Cs(Qn,"Set"),Nm=Cs(Qn,"WeakMap"),Zl=Cs(Object,"create"),q6=qa(Im),I6=qa(Jl),D6=qa(Dm),R6=qa(Rm),N6=qa(Nm),Ry=vp?vp.prototype:void 0,Mm=Ry?Ry.valueOf:void 0;function Ma(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 O6(){this.__data__=Zl?Zl(null):{},this.size=0}function P6(o){var i=this.has(o)&&delete this.__data__[o];return this.size-=i?1:0,i}function H6(o){var i=this.__data__;if(Zl){var t=i[o];return t===Pm?void 0:t}return $n.call(i,o)?i[o]:void 0}function F6(o){var i=this.__data__;return Zl?i[o]!==void 0:$n.call(i,o)}function B6(o,i){var t=this.__data__;return this.size+=this.has(o)?0:1,t[o]=Zl&&i===void 0?Pm:i,this}Ma.prototype.clear=O6;Ma.prototype.delete=P6;Ma.prototype.get=H6;Ma.prototype.has=F6;Ma.prototype.set=B6;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 V6(){this.__data__=[],this.size=0}function U6(o){var i=this.__data__,t=_p(i,o);if(t<0)return!1;var r=i.length-1;return t==r?i.pop():A6.call(i,t,1),--this.size,!0}function j6(o){var i=this.__data__,t=_p(i,o);return t<0?void 0:i[t][1]}function G6(o){return _p(this.__data__,o)>-1}function W6(o,i){var t=this.__data__,r=_p(t,o);return r<0?(++this.size,t.push([o,i])):t[r][1]=i,this}Xn.prototype.clear=V6;Xn.prototype.delete=U6;Xn.prototype.get=j6;Xn.prototype.has=G6;Xn.prototype.set=W6;function La(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 K6(){this.size=0,this.__data__={hash:new Ma,map:new(Jl||Xn),string:new Ma}}function Y6(o){var i=kp(this,o).delete(o);return this.size-=i?1:0,i}function Q6(o){return kp(this,o).get(o)}function X6(o){return kp(this,o).has(o)}function J6(o,i){var t=kp(this,o),r=t.size;return t.set(o,i),this.size+=t.size==r?0:1,this}La.prototype.clear=K6;La.prototype.delete=Y6;La.prototype.get=Q6;La.prototype.has=X6;La.prototype.set=J6;function yp(o){var i=-1,t=o==null?0:o.length;for(this.__data__=new La;++i<t;)this.add(o[i])}function Z6(o){return this.__data__.set(o,Pm),this}function eC(o){return this.__data__.has(o)}yp.prototype.add=yp.prototype.push=Z6;yp.prototype.has=eC;function Mo(o){var i=this.__data__=new Xn(o);this.size=i.size}function tC(){this.__data__=new Xn,this.size=0}function rC(o){var i=this.__data__,t=i.delete(o);return this.size=i.size,t}function iC(o){return this.__data__.get(o)}function nC(o){return this.__data__.has(o)}function oC(o,i){var t=this.__data__;if(t instanceof Xn){var r=t.__data__;if(!Jl||r.length<X9-1)return r.push([o,i]),this.size=++t.size,this;t=this.__data__=new La(r)}return t.set(o,i),this.size=t.size,this}Mo.prototype.clear=tC;Mo.prototype.delete=rC;Mo.prototype.get=iC;Mo.prototype.has=nC;Mo.prototype.set=oC;function aC(o,i){var t=xp(o),r=!t&&wC(o),n=!t&&!r&&Om(o),a=!t&&!r&&!n&&sx(o),s=t||r||n||a,l=s?x6(o.length,String):[],p=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")||gC(h,p)))&&l.push(h);return l}function _p(o,i){for(var t=o.length;t--;)if(ix(o[t][0],i))return t;return-1}function sC(o,i,t){var r=i(o);return xp(o)?r:v6(r,t(o))}function tc(o){return o==null?o===void 0?i6:e6:Aa&&Aa in Object(o)?mC(o):xC(o)}function Ny(o){return ec(o)&&tc(o)==mp}function tx(o,i,t,r,n){return o===i?!0:o==null||i==null||!ec(o)&&!ec(i)?o!==o&&i!==i:lC(o,i,t,r,tx,n)}function lC(o,i,t,r,n,a){var s=xp(o),l=xp(i),p=s?Lm:Ao(o),h=l?Lm:Ao(i);p=p==mp?_s:p,h=h==mp?_s:h;var m=p==_s,f=h==_s,b=p==h;if(b&&Om(o)){if(!Om(i))return!1;s=!0,m=!1}if(b&&!m)return a||(a=new Mo),s||sx(o)?rx(o,i,t,r,n,a):hC(o,i,p,t,r,n,a);if(!(t&wp)){var g=m&&$n.call(o,"__wrapped__"),v=f&&$n.call(i,"__wrapped__");if(g||v){var y=g?o.value():o,S=v?i.value():i;return a||(a=new Mo),n(y,S,t,r,a)}}return b?(a||(a=new Mo),uC(o,i,t,r,n,a)):!1}function cC(o){if(!ax(o)||vC(o))return!1;var i=nx(o)?$6:m6;return i.test(qa(o))}function dC(o){return ec(o)&&ox(o.length)&&!!st[tc(o)]}function pC(o){if(!yC(o))return L6(o);var i=[];for(var t in Object(o))$n.call(o,t)&&t!="constructor"&&i.push(t);return i}function rx(o,i,t,r,n,a){var s=t&wp,l=o.length,p=i.length;if(l!=p&&!(s&&p>l))return!1;var h=a.get(o);if(h&&a.get(i))return h==i;var m=-1,f=!0,b=t&Py?new yp: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(!y6(i,function(S,T){if(!z6(b,T)&&(g===S||n(g,S,t,r,a)))return b.push(T)})){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 hC(o,i,t,r,n,a,s){switch(t){case bp:if(o.byteLength!=i.byteLength||o.byteOffset!=i.byteOffset)return!1;o=o.buffer,i=i.buffer;case Ky:return!(o.byteLength!=i.byteLength||!a(new Iy(o),new Iy(i)));case Fy:case By:case jy:return ix(+o,+i);case Vy:return o.name==i.name&&o.message==i.message;case Gy:case Wy:return o==i+"";case fp:var l=k6;case gp:var p=r&wp;if(l||(l=S6),o.size!=i.size&&!p)return!1;var h=s.get(o);if(h)return h==i;r|=Py,s.set(o,i);var m=rx(l(o),l(i),r,n,a,s);return s.delete(o),m;case r6:if(Mm)return Mm.call(o)==Mm.call(i)}return!1}function uC(o,i,t,r,n,a){var s=t&wp,l=Oy(o),p=l.length,h=Oy(i),m=h.length;if(p!=m&&!s)return!1;for(var f=p;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<p;){b=l[f];var S=o[b],T=i[b];if(r)var N=s?r(T,S,b,i,o,a):r(S,T,b,o,i,a);if(!(N===void 0?S===T||n(S,T,t,r,a):N)){v=!1;break}y||(y=b=="constructor")}if(v&&!y){var U=o.constructor,I=i.constructor;U!=I&&"constructor"in o&&"constructor"in i&&!(typeof U=="function"&&U instanceof U&&typeof I=="function"&&I instanceof I)&&(v=!1)}return a.delete(o),a.delete(i),v}function Oy(o){return sC(o,kC,fC)}function kp(o,i){var t=o.__data__;return bC(i)?t[typeof i=="string"?"string":"hash"]:t.map}function Cs(o,i){var t=_6(o,i);return cC(t)?t:void 0}function mC(o){var i=$n.call(o,Aa),t=o[Aa];try{o[Aa]=void 0;var r=!0}catch{}var n=Zy.call(o);return r&&(i?o[Aa]=t:delete o[Aa]),n}var fC=Dy?function(o){return o==null?[]:(o=Object(o),b6(Dy(o),function(i){return ex.call(o,i)}))}:CC,Ao=tc;(Im&&Ao(new Im(new ArrayBuffer(1)))!=bp||Jl&&Ao(new Jl)!=fp||Dm&&Ao(Dm.resolve())!=Ty||Rm&&Ao(new Rm)!=gp||Nm&&Ao(new Nm)!=qm)&&(Ao=function(o){var i=tc(o),t=i==_s?o.constructor:void 0,r=t?qa(t):"";if(r)switch(r){case q6:return bp;case I6:return fp;case D6:return Ty;case R6:return gp;case N6:return qm}return i});function gC(o,i){return i=i??Hy,!!i&&(typeof o=="number"||f6.test(o))&&o>-1&&o%1==0&&o<i}function bC(o){var i=typeof o;return i=="string"||i=="number"||i=="symbol"||i=="boolean"?o!=="__proto__":o===null}function vC(o){return!!Ly&&Ly in o}function yC(o){var i=o&&o.constructor,t=typeof i=="function"&&i.prototype||zp;return o===t}function xC(o){return Zy.call(o)}function qa(o){if(o!=null){try{return Jy.call(o)}catch{}try{return o+""}catch{}}return""}function ix(o,i){return o===i||o!==o&&i!==i}var wC=Ny((function(){return arguments})())?Ny:function(o){return ec(o)&&$n.call(o,"callee")&&!ex.call(o,"callee")},xp=Array.isArray;function zC(o){return o!=null&&ox(o.length)&&!nx(o)}var Om=M6||SC;function _C(o,i){return tx(o,i)}function nx(o){if(!ax(o))return!1;var i=tc(o);return i==Uy||i==Z9||i==J9||i==t6}function ox(o){return typeof o=="number"&&o>-1&&o%1==0&&o<=Hy}function ax(o){var i=typeof o;return o!=null&&(i=="object"||i=="function")}function ec(o){return o!=null&&typeof o=="object"}var sx=My?w6(My):dC;function kC(o){return zC(o)?aC(o):pC(o)}function CC(){return[]}function SC(){return!1}ks.exports=_C});var lx=Fn(Bm=>{"use strict";Object.defineProperty(Bm,"__esModule",{value:!0});var EC=Tm(),TC=Hm(),Fm;(function(o){function i(a={},s={},l=!1){typeof a!="object"&&(a={}),typeof s!="object"&&(s={});let p=EC(s);l||(p=Object.keys(p).reduce((h,m)=>(p[m]!=null&&(h[m]=p[m]),h),{}));for(let h in a)a[h]!==void 0&&s[h]===void 0&&(p[h]=a[h]);return Object.keys(p).length>0?p: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((p,h)=>(TC(a[h],s[h])||(p[h]=s[h]===void 0?null:s[h]),p),{});return Object.keys(l).length>0?l:void 0}o.diff=t;function r(a={},s={}){a=a||{};let l=Object.keys(s).reduce((p,h)=>(s[h]!==a[h]&&a[h]!==void 0&&(p[h]=s[h]),p),{});return Object.keys(a).reduce((p,h)=>(a[h]!==s[h]&&s[h]===void 0&&(p[h]=null),p),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 p=Object.keys(s).reduce((h,m)=>(a[m]===void 0&&(h[m]=s[m]),h),{});return Object.keys(p).length>0?p:void 0}o.transform=n})(Fm||(Fm={}));Bm.default=Fm});var jm=Fn(Um=>{"use strict";Object.defineProperty(Um,"__esModule",{value:!0});var Vm;(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})(Vm||(Vm={}));Um.default=Vm});var dx=Fn(Wm=>{"use strict";Object.defineProperty(Wm,"__esModule",{value:!0});var cx=jm(),Gm=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=cx.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]?cx.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[]}};Wm.default=Gm});var ei=Fn((Zn,Sp)=>{"use strict";Object.defineProperty(Zn,"__esModule",{value:!0});Zn.AttributeMap=Zn.OpIterator=Zn.Op=void 0;var Cp=H1(),$C=Tm(),Km=Hm(),Ia=lx();Zn.AttributeMap=Ia.default;var Jn=jm();Zn.Op=Jn.default;var Ni=dx();Zn.OpIterator=Ni.default;var AC="\0",px=(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=$C(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(Km(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 Ni.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 Ni.default(this.ops),r=new Ni.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()),p=t.next(l),h=r.next(l);if(h.retain){let m={};if(typeof p.retain=="number")m.retain=typeof h.retain=="number"?l:h.retain;else if(typeof h.retain=="number")p.retain==null?m.insert=p.insert:m.retain=p.retain;else{let b=p.retain==null?"insert":"retain",[g,v,y]=px(p[b],h.retain),S=o.getHandler(g);m[b]={[g]:S.compose(v,y,b==="retain")}}let f=Ia.default.compose(p.attributes,h.attributes,typeof p.retain=="number");if(f&&(m.attributes=f),s.push(m),!r.hasNext()&&Km(s.ops[s.ops.length-1],m)){let b=new o(t.rest());return s.concat(b).chop()}}else typeof h.delete=="number"&&(typeof p.retain=="number"||typeof p.retain=="object"&&p.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(p=>p.map(h=>{if(h.insert!=null)return typeof h.insert=="string"?h.insert:AC;let m=p===i?"on":"with";throw new Error("diff() called "+m+" non-document")}).join("")),n=new o,a=Cp(r[0],r[1],t,!0),s=new Ni.default(this.ops),l=new Ni.default(i.ops);return a.forEach(p=>{let h=p[1].length;for(;h>0;){let m=0;switch(p[0]){case Cp.INSERT:m=Math.min(l.peekLength(),h),n.push(l.next(m));break;case Cp.DELETE:m=Math.min(h,s.peekLength()),s.next(m),n.delete(m);break;case Cp.EQUAL:m=Math.min(s.peekLength(),l.peekLength(),h);let f=s.next(m),b=l.next(m);Km(f.insert,b.insert)?n.retain(m,Ia.default.diff(f.attributes,b.attributes)):n.push(b).delete(m);break}h-=m}}),n.chop()}eachLine(i,t=`
1
+ import{a as Fn,b as h3,c as _r,d as c,e as V}from"./chunks/zn.UBLZO6CI.js";var Ku=Fn((Ul,Wu)=>{(function(o,i){typeof Ul=="object"&&typeof Wu=="object"?Wu.exports=i():typeof define=="function"&&define.amd?define([],i):typeof Ul=="object"?Ul.AirDatepicker=i():o.AirDatepicker=i()})(Ul,(function(){return(function(){"use strict";var o={d:function(O,x){for(var E in x)o.o(x,E)&&!o.o(O,E)&&Object.defineProperty(O,E,{enumerable:!0,get:x[E]})},o:function(O,x){return Object.prototype.hasOwnProperty.call(O,x)}},i={};o.d(i,{default:function(){return ae}});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(O){let x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:document;return typeof O=="string"?x.querySelector(O):O}function a(){let{tagName:O="div",className:x="",innerHtml:E="",id:w="",attrs:R={}}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},q=document.createElement(O);return x&&q.classList.add(...x.split(" ")),w&&(q.id=w),E&&(q.innerHTML=E),R&&s(q,R),q}function s(O,x){for(let[E,w]of Object.entries(x))w!==void 0&&O.setAttribute(E,w);return O}function l(O){return new Date(O.getFullYear(),O.getMonth()+1,0).getDate()}function p(O){let x=O.getHours(),{hours:E,dayPeriod:w}=h(x);return{year:O.getFullYear(),month:O.getMonth(),fullMonth:O.getMonth()+1<10?"0"+(O.getMonth()+1):O.getMonth()+1,date:O.getDate(),fullDate:O.getDate()<10?"0"+O.getDate():O.getDate(),day:O.getDay(),hours:x,fullHours:m(x),hours12:E,dayPeriod:w,fullHours12:m(E),minutes:O.getMinutes(),fullMinutes:O.getMinutes()<10?"0"+O.getMinutes():O.getMinutes()}}function h(O){return{dayPeriod:O>11?"pm":"am",hours:O%12==0?12:O%12}}function m(O){return O<10?"0"+O:O}function f(O){let x=10*Math.floor(O.getFullYear()/10);return[x,x+9]}function b(){let O=[];for(var x=arguments.length,E=new Array(x),w=0;w<x;w++)E[w]=arguments[w];return E.forEach((R=>{if(typeof R=="object")for(let q in R)R[q]&&O.push(q);else R&&O.push(R)})),O.join(" ")}function g(O,x){let E=arguments.length>2&&arguments[2]!==void 0?arguments[2]:t.days;if(!O||!x)return!1;let w=p(O),R=p(x);return{[t.days]:w.date===R.date&&w.month===R.month&&w.year===R.year,[t.months]:w.month===R.month&&w.year===R.year,[t.years]:w.year===R.year}[E]}function v(O,x,E){let w=S(O,!1).getTime(),R=S(x,!1).getTime();return E?w>=R:w>R}function y(O,x){return!v(O,x,!0)}function S(O){let x=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1],E=new Date(O.getTime());return typeof x!="boolean"||x||(function(w){w.setHours(0,0,0,0)})(E),E}function T(O,x,E){O.length?O.forEach((w=>{w.addEventListener(x,E)})):O.addEventListener(x,E)}function N(O,x){return!(!O||O===document||O instanceof DocumentFragment)&&(O.matches(x)?O:N(O.parentNode,x))}function U(O,x,E){return O>E?E:O<x?x:O}function I(O){for(var x=arguments.length,E=new Array(x>1?x-1:0),w=1;w<x;w++)E[w-1]=arguments[w];return E.filter((R=>R)).forEach((R=>{for(let[q,A]of Object.entries(R))if(A!==void 0&&A.toString()==="[object Object]"){let H=O[q]!==void 0?O[q].toString():void 0,j=A.toString(),Q=Array.isArray(A)?[]:{};O[q]=O[q]?H!==j?Q:O[q]:Q,I(O[q],A)}else O[q]=A})),O}function C(O){let x=O;return O instanceof Date||(typeof O=="string"&&/^\d{4}-\d{2}-\d{2}$/.test(O)&&(O+="T00:00:00"),x=new Date(O)),isNaN(x.getTime())&&(console.log(`Unable to convert value "${O}" to Date object`),x=!1),x}function $(O){let x="\\s|\\.|-|/|\\\\|,|\\$|\\!|\\?|:|;";return new RegExp("(^|>|"+x+")("+O+")($|<|"+x+")","g")}function L(O,x,E){return(x=(function(w){var R=(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 R=="symbol"?R:String(R)})(x))in O?Object.defineProperty(O,x,{value:E,enumerable:!0,configurable:!0,writable:!0}):O[x]=E,O}class W{constructor(){let{type:x,date:E,dp:w,opts:R,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=E,this.dp=w,this.opts=R,this.body=q,this.customData=!1,this.init()}init(){var x,E;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):((E=this.customData)===null||E===void 0?void 0:E.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:E,month:w,fullMonth:R,date:q,fullDate:A}=p(this.date),H=((x=this.customData)===null||x===void 0?void 0:x.attrs)||{};this.$cell=a({attrs:{"data-year":E,"data-month":w,"data-date":q,"data-iso-date":`${E}-${R}-${A}`,...H}}),this.$cell.adpCell=this}_getClassName(){var x;let E=new Date,{selectOtherMonths:w,selectOtherYears:R}=this.opts,{minDate:q,maxDate:A,isDateDisabled:H}=this.dp,{day:j}=p(this.date),Q=this._isOutOfMinMaxRange(),ie=H(this.date),te=b("air-datepicker-cell",`-${this.singleType}-`,{"-current-":g(E,this.date,this.type),"-min-date-":q&&g(q,this.date,this.type),"-max-date-":A&&g(A,this.date,this.type)}),se="";switch(this.type){case t.days:se=b({"-weekend-":this.dp.isWeekend(j),"-other-month-":this.isOtherMonth,"-disabled-":this.isOtherMonth&&!w||Q||ie});break;case t.months:se=b({"-disabled-":Q});break;case t.years:se=b({"-other-decade-":this.isOtherDecade,"-disabled-":Q||this.isOtherDecade&&!R})}return b(te,se,(x=this.customData)===null||x===void 0?void 0:x.classes).split(" ")}_getHtml(){var x;let{year:E,month:w,date:R}=p(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?"":R;case t.months:return this.dp.locale[this.opts.monthsField][w];case t.years:return!A&&this.isOtherDecade?"":E}}_isOutOfMinMaxRange(){let{minDate:x,maxDate:E}=this.dp,{type:w,date:R}=this,{month:q,year:A,date:H}=p(R),j=w===t.days,Q=w===t.years,ie=!!x&&new Date(A,Q?x.getMonth():q,j?H:x.getDate()),te=!!E&&new Date(A,Q?E.getMonth():q,j?H:E.getDate());return x&&E?y(ie,x)||v(te,E):x?y(ie,x):E?v(te,E):void 0}destroy(){this.unbindDatepickerEvents()}_handleRangeStatus(){let{selectedDates:x,focusDate:E,rangeDateTo:w,rangeDateFrom:R}=this.dp,q=x.length;if(this.$cell.classList.remove("-range-from-","-range-to-","-in-range-"),!q)return;let A=R,H=w;if(q===1&&E){let se=v(E,x[0]);A=se?x[0]:E,H=se?E: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 oe(O,x,E){return(x=(function(w){var R=(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 R=="symbol"?R:String(R)})(x))in O?Object.defineProperty(O,x,{value:E,enumerable:!0,configurable:!0,writable:!0}):O[x]=E,O}let xe={[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 Ne{constructor(x){let{dp:E,type:w,opts:R}=x;oe(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)})),oe(this,"handleDayNameClick",(q=>{let A=q.target.getAttribute("data-day-index");this.opts.onClickDayName({dayIndex:Number(A),datepicker:this.dp})})),oe(this,"onChangeCurrentView",(q=>{q!==this.type?this.hide():(this.show(),this.render())})),oe(this,"onMouseOverCell",(q=>{let A=N(q.target,De);this.dp.setFocusDate(!!A&&A.adpCell.date)})),oe(this,"onMouseOutCell",(()=>{this.dp.setFocusDate(!1)})),oe(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)})),oe(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)})),oe(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:se,minutes:Ct}=p(ie);te.setHours(se),te.setMinutes(Ct),this.dp.rangeDateFrom=te,this.dp.replaceDate(ie,te)}if(this.rangeToFocused&&!y(te,ie)){let{hours:se,minutes:Ct}=p(Q);te.setHours(se),te.setMinutes(Ct),this.dp.rangeDateTo=te,this.dp.replaceDate(Q,te)}}})),oe(this,"onMouseUp",(()=>{this.pressed=!1,this.rangeFromFocused=!1,this.rangeToFocused=!1})),oe(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()})),oe(this,"render",(()=>{this.destroyCells(),this._generateCells(),this.cells.forEach((q=>{this.$cells.appendChild(q.render())}))})),this.dp=E,this.type=w,this.opts=R,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:E}=this.opts;T(this.$el,"mouseover",this.onMouseOverCell),T(this.$el,"mouseout",this.onMouseOutCell),T(this.$el,"click",this.onClickBody),x&&E&&(T(this.$el,"mousedown",this.onMouseDown),T(this.$el,"mousemove",this.onMouseMove),T(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:xe[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,E="",w=this.dp.isWeekend,{onClickDayName:R}=this.opts,q=x,A=0;for(;A<7;){let H=q%7;E+=`<div class="${b("air-datepicker-body--day-name",{[t.cssClassWeekend]:w(H),"-clickable-":!!R})}" data-day-index='${H}'>${this.dp.locale.daysMin[H]}</div>`,A++,q++}return E}renderDayNames(){this.$names.innerHTML=this._getDayNamesHtml()}_generateCell(x){let{type:E,dp:w,opts:R}=this;return new W({type:E,dp:w,opts:R,date:x,body:this})}_generateCells(){Ne.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,E){let{viewDate:w,opts:{fixedHeight:R},locale:{firstDay:q}}=x,A=l(w),{year:H,month:j}=p(w),Q=new Date(H,j,1),ie=new Date(H,j,A),te=Q.getDay()-q,se=6-ie.getDay()+q;te=te<0?te+7:te,se=se>6?se-7:se;let Ct=(function(la,Wh){let{year:td,month:d3,date:p3}=p(la);return new Date(td,d3,p3-Wh)})(Q,te),Yr=A+te+se,zr=Ct.getDate(),{year:yn,month:fl}=p(Ct),aa=0;R&&(Yr=42);let sa=[];for(;aa<Yr;){let la=new Date(yn,fl,zr+aa);E&&E(la),sa.push(la),aa++}return sa}static getMonthsDates(x,E){let{year:w}=x.parsedViewDate,R=0,q=[];for(;R<12;){let A=new Date(w,R);q.push(A),E&&E(A),R++}return q}static getYearsDates(x,E){let w=f(x.viewDate),R=w[0]-1,q=w[1]+1,A=R,H=[];for(;A<=q;){let j=new Date(A,0);H.push(j),E&&E(j),A++}return H}static getDatesFunction(){let x=arguments.length>0&&arguments[0]!==void 0?arguments[0]:t.days;return{[t.days]:Ne.getDaysDates,[t.months]:Ne.getMonthsDates,[t.years]:Ne.getYearsDates}[x]}}function it(O,x,E){return(x=(function(w){var R=(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 R=="symbol"?R:String(R)})(x))in O?Object.defineProperty(O,x,{value:E,enumerable:!0,configurable:!0,writable:!0}):O[x]=E,O}class er{constructor(x){let{dp:E,opts:w}=x;it(this,"onClickNav",(R=>{let q=N(R.target,".air-datepicker-nav--action");if(!q)return;let A=q.dataset.action;this.dp[A]()})),it(this,"onChangeViewDate",(()=>{this.render(),this._resetNavStatus(),this.handleNavStatus()})),it(this,"onChangeCurrentView",(()=>{this.render(),this._resetNavStatus(),this.handleNavStatus()})),it(this,"onClickNavTitle",(()=>{this.dp.isFinalView||this.dp.up()})),it(this,"update",(()=>{let{prevHtml:R,nextHtml:q}=this.opts;this.$prev.innerHTML=R,this.$next.innerHTML=q,this._resetNavStatus(),this.render(),this.handleNavStatus()})),it(this,"renderDelay",(()=>{setTimeout(this.render)})),it(this,"render",(()=>{this.$title.innerHTML=this._getTitle(),(function(R,q){for(let A in q)q[A]?R.classList.add(A):R.classList.remove(A)})(this.$title,{"-disabled-":this.dp.isFinalView})})),this.dp=E,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:E}=this,w=E.navTitles[x.currentView];return typeof w=="function"?w(x):x.formatDate(x.viewDate,w)}handleNavStatus(){let{disableNavWhenOutOfRange:x}=this.opts,{minDate:E,maxDate:w}=this.dp;if(!E&&!w||!x)return;let{year:R,month:q}=this.dp.parsedViewDate,A=!!E&&p(E),H=!!w&&p(w);switch(this.dp.currentView){case t.days:E&&A.month>=q&&A.year>=R&&this._disableNav("prev"),w&&H.month<=q&&H.year<=R&&this._disableNav("next");break;case t.months:E&&A.year>=R&&this._disableNav("prev"),w&&H.year<=R&&this._disableNav("next");break;case t.years:{let j=f(this.dp.viewDate);E&&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 E=arguments.length,w=new Array(E>1?E-1:0),R=1;R<E;R++)w[R-1]=arguments[R];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:E}=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">${E}</div>`}get isNavIsFunction(){let{navTitles:x}=this.opts;return Object.keys(x).find((E=>typeof x[E]=="function"))}}var Pr={today:{content:O=>O.locale.today,onClick:O=>O.setViewDate(new Date)},clear:{content:O=>O.locale.clear,onClick:O=>O.clear()}};class wr{constructor(x){let{dp:E,opts:w}=x;this.dp=E,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((E=>{let w=E;typeof E=="string"&&Pr[E]&&(w=Pr[E]);let R=this.createButton(w);w.onClick&&this.attachEventToButton(R,w.onClick),this.$el.appendChild(R)}))}attachEventToButton(x,E){x.addEventListener("click",(()=>{E(this.dp)}))}createButton(x){let{content:E,className:w,tagName:R="button",attrs:q={}}=x;return a({tagName:R,innerHtml:`<span tabindex='-1'>${typeof E=="function"?E(this.dp):E}</span>`,className:b("air-datepicker-button",w),attrs:q})}render(){this.generateButtons()}}function Nt(O,x,E){return(x=(function(w){var R=(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 R=="symbol"?R:String(R)})(x))in O?Object.defineProperty(O,x,{value:E,enumerable:!0,configurable:!0,writable:!0}):O[x]=E,O}class tr{constructor(){let{opts:x,dp:E}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Nt(this,"toggleTimepickerIsActive",(R=>{this.dp.timepickerIsActive=R})),Nt(this,"onChangeSelectedDate",(R=>{let{date:q,updateTime:A=!1}=R;q&&(this.setMinMaxTime(q),this.setCurrentTime(!!A&&q),this.addTimeToDate(q))})),Nt(this,"onChangeLastSelectedDate",(R=>{R&&(this.setTime(R),this.render())})),Nt(this,"onChangeInputRange",(R=>{let q=R.target;this[q.getAttribute("name")]=q.value,this.updateText(),this.dp.trigger(t.eventChangeTime,{hours:this.hours,minutes:this.minutes})})),Nt(this,"onMouseEnterLeave",(R=>{let q=R.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=E;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"),T(this.$ranges,x,this.onChangeInputRange),T(this.$ranges,"mouseenter",this.onMouseEnterLeave),T(this.$ranges,"mouseleave",this.onMouseEnterLeave),T(this.$ranges,"focus",this.onFocus),T(this.$ranges,"mousedown",this.onFocus),T(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:E,displayHours:w,minutes:R,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(R)}</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="${E}" min="${q}" max="${H}" step="${ie}"/> </div> <div class="air-datepicker-time--row"> <input type="range" name="minutes" value="${R}" min="${A}" max="${j}" step="${te}"/> </div></div>`}defineDOM(){let x=E=>n(E,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:E,maxDate:w}=this.dp;E&&g(x,E)&&this.setMinTimeFromMinDate(E),w&&g(x,w)&&this.setMaxTimeFromMaxDate(w)}}setCurrentTime(x){let{hours:E,minutes:w}=x?p(x):this;this.hours=U(E,this.minHours,this.maxHours),this.minutes=U(w,this.minMinutes,this.maxMinutes)}setMinMaxTimeFromOptions(){let{minHours:x,minMinutes:E,maxHours:w,maxMinutes:R}=this.opts;this.minHours=U(x,0,23),this.minMinutes=U(E,0,59),this.maxHours=U(w,0,23),this.maxMinutes=U(R,0,59)}setMinTimeFromMinDate(x){let{lastSelectedDate:E}=this.dp;this.minHours=x.getHours(),E&&E.getHours()>x.getHours()?this.minMinutes=this.opts.minMinutes:this.minMinutes=x.getMinutes()}setMaxTimeFromMaxDate(x){let{lastSelectedDate:E}=this.dp;this.maxHours=x.getHours(),E&&E.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:E,dayPeriod:w}=h(x);this.displayHours=this.ampm?E:x,this.dayPeriod=w}get hours(){return this._hours}render(){this.updateSliders(),this.updateText()}}function Mt(O,x,E){return(x=(function(w){var R=(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 R=="symbol"?R:String(R)})(x))in O?Object.defineProperty(O,x,{value:E,enumerable:!0,configurable:!0,writable:!0}):O[x]=E,O}class uo{constructor(x){let{dp:E,opts:w}=x;Mt(this,"pressedKeys",new Set),Mt(this,"hotKeys",new Map([[[["Control","ArrowRight"],["Control","ArrowUp"]],R=>R.month++],[[["Control","ArrowLeft"],["Control","ArrowDown"]],R=>R.month--],[[["Shift","ArrowRight"],["Shift","ArrowUp"]],R=>R.year++],[[["Shift","ArrowLeft"],["Shift","ArrowDown"]],R=>R.year--],[[["Alt","ArrowRight"],["Alt","ArrowUp"]],R=>R.year+=10],[[["Alt","ArrowLeft"],["Alt","ArrowDown"]],R=>R.year-=10],[["Control","Shift","ArrowUp"],(R,q)=>q.up()]])),Mt(this,"handleHotKey",(R=>{let q=this.hotKeys.get(R),A=p(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})})),Mt(this,"isHotKeyPressed",(()=>{let R=!1,q=this.pressedKeys.size,A=H=>this.pressedKeys.has(H);for(let[H]of this.hotKeys){if(R)break;if(Array.isArray(H[0]))H.forEach((j=>{R||q!==j.length||(R=j.every(A)&&H)}));else{if(q!==H.length)continue;R=H.every(A)&&H}}return R})),Mt(this,"isArrow",(R=>R>=37&&R<=40)),Mt(this,"onKeyDown",(R=>{if(!this.dp.visible&&!this.dp.treatAsInline)return;let{key:q,which:A}=R,{dp:H,dp:{focusDate:j},opts:Q}=this;this.registerKey(q);let ie=this.isHotKeyPressed();if(ie)return R.preventDefault(),void this.handleHotKey(ie);if(this.isArrow(A))return R.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()})),Mt(this,"onKeyUp",(R=>{this.removeKey(R.key)})),this.dp=E,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:E,selectedDates:w,parsedViewDate:{year:R,month:q}}=this.dp,A=x||w[w.length-1];if(!A)switch(E){case t.days:A=new Date(R,q,new Date().getDate());break;case t.months:A=new Date(R,q,1);break;case t.years:A=new Date(R,0,1)}return A}focusNextCell(x){let E=this.getInitialFocusDate(),{currentView:w}=this.dp,{days:R,months:q,years:A}=t,H=p(E),j=H.year,Q=H.month,ie=H.date;switch(x){case"ArrowLeft":w===R&&(ie-=1),w===q&&(Q-=1),w===A&&(j-=1);break;case"ArrowUp":w===R&&(ie-=7),w===q&&(Q-=3),w===A&&(j-=4);break;case"ArrowRight":w===R&&(ie+=1),w===q&&(Q+=1),w===A&&(j+=1);break;case"ArrowDown":w===R&&(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 Qa={on(O,x){this.__events||(this.__events={}),this.__events[O]?this.__events[O].push(x):this.__events[O]=[x]},off(O,x){this.__events&&this.__events[O]&&(this.__events[O]=this.__events[O].filter((E=>E!==x)))},removeAllEvents(){this.__events={}},trigger(O){for(var x=arguments.length,E=new Array(x>1?x-1:0),w=1;w<x;w++)E[w-1]=arguments[w];this.__events&&this.__events[O]&&this.__events[O].forEach((R=>{R(...E)}))}};function ue(O,x,E){return(x=(function(w){var R=(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 R=="symbol"?R:String(R)})(x))in O?Object.defineProperty(O,x,{value:E,enumerable:!0,configurable:!0,writable:!0}):O[x]=E,O}let Yi="",Qi="",he=!1;class ae{static buildGlobalContainer(x){he=!0,Yi=a({className:x,id:x}),n("body").appendChild(Yi)}constructor(x,E){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(),se=w.$el.getBoundingClientRect(),Ct=w.$datepicker.offsetParent,Yr=w.$el.offsetParent,zr=w.$datepicker.getBoundingClientRect(),yn=A.split(" "),fl=window.scrollY,aa=window.scrollX,sa=w.opts.offset,la=yn[0],Wh=yn[1];if(ie)w.$datepicker.style.cssText="left: 50%; top: 50%";else{if(Ct===Yr&&Ct!==document.body&&(se={top:w.$el.offsetTop,left:w.$el.offsetLeft,width:te.width,height:w.$el.offsetHeight},fl=0,aa=0),Ct!==Yr&&Ct!==document.body){let td=Ct.getBoundingClientRect();se={top:te.top-td.top,left:te.left-td.left,width:te.width,height:te.height},fl=0,aa=0}switch(la){case"top":j=se.top-zr.height-sa;break;case"right":Q=se.left+se.width+sa;break;case"bottom":j=se.top+se.height+sa;break;case"left":Q=se.left-zr.width-sa}switch(Wh){case"top":j=se.top;break;case"right":Q=se.left+se.width-zr.width;break;case"bottom":j=se.top+se.height-zr.height;break;case"left":Q=se.left;break;case"center":/left|right/.test(la)?j=se.top+se.height/2-zr.height/2:Q=se.left+se.width/2-zr.width/2}w.$datepicker.style.cssText=`left: ${Q+aa}px; top: ${j+fl}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",se=te?A(Q?H:H[0]):H.map((Ct=>this.formatDate(Ct,A)));return se=te?se:se.join(ie),se})),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 Ne({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=I({},w.opts),{silent:Q}=H;I(w.opts,A);let{timepicker:ie,buttons:te,range:se,selectedDates:Ct,isMobile:Yr}=w.opts,zr=w.visible||w.treatAsInline;w._createMinMaxDates(),w._limitViewDateByMaxMinDates(),w._handleLocale(),Ct&&(w.selectedDates=[],w.selectDate(Ct,{silent:Q})),A.view&&w.setCurrentView(A.view,{silent:Q}),w._setInputValue(),j.range&&!se?(w.rangeDateTo=!1,w.rangeDateFrom=!1):!j.range&&se&&w.selectedDates.length&&(w.rangeDateFrom=w.selectedDates[0],w.rangeDateTo=w.selectedDates[1]),j.timepicker&&!ie?(zr&&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)):zr&&j.buttons&&te&&w.buttons.clearHtml().render(),!j.isMobile&&Yr?(w.treatAsInline||Qi||w._createMobileOverlay(),w._addMobileAttributes(),w.visible&&w._showMobileOverlay()):j.isMobile&&!Yr&&(w._removeMobileAttributes(),w.visible&&(Qi.classList.remove("-active-"),typeof w.opts.position!="function"&&w.setPosition())),zr&&(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}=p(A);return H!==this.parsedViewDate.month})),ue(this,"isOtherYear",(A=>{let{year:H}=p(A);return H!==this.parsedViewDate.year})),ue(this,"isOtherDecade",(A=>{let{year:H}=p(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,se=ie;ie||(se=Q);let Ct=this.getCell(se,this.currentViewSingular),Yr=Ct&&Ct.adpCell;Yr&&Yr.isDisabled||(se.setHours(H),se.setMinutes(j),ie?(this._setInputValue(),te&&this._triggerOnSelect()):this.selectDate(se))})),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 Ne.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=I({},r,E),this.$customContainer=!!this.opts.container&&n(this.opts.container),this.$altField=n(this.opts.altField||!1);let{view:R,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=R,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:E,opts:{inline:w,isMobile:R,selectedDates:q,keyboardNav:A,onlyTimepicker:H}}=this,j=n("body");(!he||he&&Yi&&!j.contains(Yi))&&!w&&this.elIsInput&&!this.$customContainer&&ae.buildGlobalContainer(ae.defaultGlobalContainerId),!R||Qi||E||this._createMobileOverlay(),this._handleLocale(),this._bindSubEvents(),this._createMinMaxDates(),this._limitViewDateByMaxMinDates(),this.elIsInput&&(w||this._bindEvents(),A&&!H&&(this.keyboardNav=new uo({dp:this,opts:x}))),q&&this.selectDate(q,{silent:!0}),this.opts.visible&&!E&&this.show(),R&&!E&&this.$el.setAttribute("readonly",!0),E&&this._createComponents()}_createMobileOverlay(){Qi=a({className:"air-datepicker-overlay"}),Yi.appendChild(Qi)}_createComponents(){let{opts:x,treatAsInline:E,opts:{inline:w,buttons:R,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&&!E&&this._addMobileAttributes(),this.views[this.currentView]=new Ne({dp:this,type:this.currentView,opts:x}),this.nav=new er({dp:this,opts:x}),q&&this._addTimepicker(),R&&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(){Qi.addEventListener("click",this._onClickOverlay),this.$datepicker.classList.add("-is-mobile-"),this.$el.setAttribute("readonly",!0)}_removeMobileAttributes(){Qi.removeEventListener("click",this._onClickOverlay),this.$datepicker.classList.remove("-is-mobile-"),this.initialReadonly||this.initialReadonly===""||this.$el.removeAttribute("readonly")}_createMinMaxDates(){let{minDate:x,maxDate:E}=this.opts;this.minDate=!!x&&C(x),this.maxDate=!!E&&C(E)}_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 wr({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 E,w;this.elIsInput?x?(E=this.$datepicker,(w=this.$el).parentNode.insertBefore(E,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:E,firstDay:w,timepicker:R,onlyTimepicker:q,timeFormat:A,dateTimeSeparator:H}=this.opts;var j;this.locale=(j=x,JSON.parse(JSON.stringify(j))),E&&(this.locale.dateFormat=E),A!==void 0&&A!==""&&(this.locale.timeFormat=A);let{timeFormat:Q}=this.locale;if(w!==""&&(this.locale.firstDay=w),R&&typeof E!="function"){let ie=Q?H:"";this.locale.dateFormat=[this.locale.dateFormat,Q||""].join(ie)}q&&typeof E!="function"&&(this.locale.dateFormat=this.locale.timeFormat)}_setPositionClasses(x){if(typeof x=="function")return void this.$datepicker.classList.add("-custom-position-");let E=(x=x.split(" "))[0],w=`air-datepicker -${E}-${x[1]}- -from-${E}-`;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:E,maxDate:w}=this;w&&v(x,w)&&this.setViewDate(w),E&&y(x,E)&&this.setViewDate(E)}formatDate(){let x=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.viewDate,E=arguments.length>1?arguments[1]:void 0;if(x=C(x),!(x instanceof Date))return;let w=E,R=this.locale,q=p(x),A=q.dayPeriod,H=f(x),j=ae.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:R.daysShort[q.day],EEEE:R.days[q.day],d:q.date,dd:q.fullDate,M:q.month+1,MM:q.fullMonth,MMM:R.monthsShort[q.month],MMMM:R.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 E,w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{currentView:R,parsedViewDate:q,selectedDates:A}=this,{updateTime:H,silent:j}=w,{moveToOtherMonthsOnSelect:Q,moveToOtherYearsOnSelect:ie,multipleDates:te,range:se,autoClose:Ct,onBeforeSelect:Yr}=this.opts,zr=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(R===t.days&&x.getMonth()!==q.month&&Q&&(E=new Date(x.getFullYear(),x.getMonth(),1)),R===t.years&&x.getFullYear()!==q.year&&ie&&(E=new Date(x.getFullYear(),0,1)),E&&this.setViewDate(E),te&&!se){if(zr===te)return;this._checkIfDateIsSelected(x)||A.push(x)}else if(se)switch(zr){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),Ct&&!this.timepickerIsActive&&this.visible&&(te||se?se&&zr===1&&this.hide():this.hide()),new Promise((yn=>{setTimeout(yn)}))}}unselectDate(x){let E=this.selectedDates,w=this;if((x=C(x))instanceof Date)return E.some(((R,q)=>{if(g(R,x))return E.splice(q,1),w.selectedDates.length?(w.rangeDateTo="",w.rangeDateFrom=E[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,E){let w=this.selectedDates.find((q=>g(q,x,this.currentView))),R=this.selectedDates.indexOf(w);R<0||g(this.selectedDates[R],E,this.currentView)||(this.selectedDates[R]=E,this.trigger(t.eventChangeSelectedDate,{action:t.actionSelectDate,date:E,updateTime:!0}),this._updateLastSelectedDate(E))}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((E=>{setTimeout(E)}))}show(){let{onShow:x,isMobile:E}=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),E&&this._showMobileOverlay()}hide(){let{onHide:x,isMobile:E}=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((R=>{!this.customHide&&(R&&w||!R&&!w)&&this._finishHide(),x&&x(R)})),E&&Qi.classList.remove("-active-")}_triggerOnSelect(){let x=[],E=[],{selectedDates:w,locale:R,opts:{onSelect:q,multipleDates:A,range:H}}=this,j=A||H,Q=typeof R.dateFormat=="function";w.length&&(x=w.map(S),E=Q?A?R.dateFormat(x):x.map((ie=>R.dateFormat(ie))):x.map((ie=>this.formatDate(ie,R.dateFormat)))),q({date:j?x:x[0],formattedDate:j?E:E[0],datepicker:this})}_handleAlreadySelectedDates(x,E){let{selectedDates:w,rangeDateFrom:R,rangeDateTo:q}=this,{range:A,toggleSelected:H}=this.opts,j=w.length,Q=typeof H=="function"?H({datepicker:this,date:E}):H,ie=!!(A&&j===1&&x),te=ie?S(E):E;A&&!Q&&(j!==2&&this.selectDate(te),j===2&&g(R,q))||(Q?this.unselectDate(te):this._updateLastSelectedDate(ie?te:x))}_handleUpDownActions(x,E){if(!((x=C(x||this.focusDate||this.viewDate))instanceof Date))return;let w=E==="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 E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:t.day;if(!((x=C(x))instanceof Date))return;let{year:w,month:R,date:q}=p(x),A=`[data-year="${w}"]`,H=`[data-month="${R}"]`,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[E]):void 0}_showMobileOverlay(){Qi.classList.add("-active-")}_hasTransition(){return window.getComputedStyle(this.$datepicker).getPropertyValue("transition-duration").split(", ").reduce(((x,E)=>parseFloat(E)+x),0)>0}get shouldUpdateDOM(){return this.visible||this.treatAsInline}get parsedViewDate(){return p(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||Yi}static replacer(x,E,w){return x.replace(E,(function(R,q,A,H){return q+w+H}))}}var ze;return ue(ae,"defaults",r),ue(ae,"version","3.6.0"),ue(ae,"defaultGlobalContainerId","air-datepicker-global-container"),ze=ae.prototype,Object.assign(ze,Qa),i.default})()}))});var H1=Fn((Oie,P1)=>{var zi=-1,Br=1,Yt=0;function Wl(o,i,t,r,n){if(o===i)return o?[[Yt,o]]:[];if(t!=null){var a=_8(o,i,t);if(a)return a}var s=hm(o,i),l=o.substring(0,s);o=o.substring(s),i=i.substring(s),s=np(o,i);var p=o.substring(o.length-s);o=o.substring(0,o.length-s),i=i.substring(0,i.length-s);var h=f8(o,i);return l&&h.unshift([Yt,l]),p&&h.push([Yt,p]),um(h,n),r&&v8(h),h}function f8(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)],[Yt,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=b8(o,i);if(s){var l=s[0],p=s[1],h=s[2],m=s[3],f=s[4],b=Wl(l,h),g=Wl(p,m);return b.concat([[Yt,f]],g)}return g8(o,i)}function g8(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),p=new Array(s),h=0;h<s;h++)l[h]=-1,p[h]=-1;l[a+1]=0,p[a+1]=0;for(var m=t-r,f=m%2!==0,b=0,g=0,v=0,y=0,S=0;S<n;S++){for(var T=-S+b;T<=S-g;T+=2){var N=a+T,U;T===-S||T!==S&&l[N-1]<l[N+1]?U=l[N+1]:U=l[N-1]+1;for(var I=U-T;U<t&&I<r&&o.charAt(U)===i.charAt(I);)U++,I++;if(l[N]=U,U>t)g+=2;else if(I>r)b+=2;else if(f){var C=a+m-T;if(C>=0&&C<s&&p[C]!==-1){var $=t-p[C];if(U>=$)return A1(o,i,U,I)}}}for(var L=-S+v;L<=S-y;L+=2){var C=a+L,$;L===-S||L!==S&&p[C-1]<p[C+1]?$=p[C+1]:$=p[C-1]+1;for(var W=$-L;$<t&&W<r&&o.charAt(t-$-1)===i.charAt(r-W-1);)$++,W++;if(p[C]=$,$>t)y+=2;else if(W>r)v+=2;else if(!f){var N=a+m-L;if(N>=0&&N<s&&l[N]!==-1){var U=l[N],I=a+U-N;if($=t-$,U>=$)return A1(o,i,U,I)}}}}return[[zi,o],[Br,i]]}function A1(o,i,t,r){var n=o.substring(0,t),a=i.substring(0,r),s=o.substring(t),l=i.substring(r),p=Wl(n,a),h=Wl(s,l);return p.concat(h)}function hm(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 D1(o.charCodeAt(n-1))&&n--,n}function M1(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),p=i.indexOf(l);if(p==-1)return a;s+=p,(p==0||o.substring(n-s)==i.substring(0,s))&&(a=s,s++)}}function np(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 R1(o.charCodeAt(o.length-n))&&n--,n}function b8(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 S=g.substring(y,y+Math.floor(g.length/4)),T=-1,N="",U,I,C,$;(T=v.indexOf(S,T+1))!==-1;){var L=hm(g.substring(y),v.substring(T)),W=np(g.substring(0,y),v.substring(0,T));N.length<W+L&&(N=v.substring(T-W,T)+v.substring(T,T+L),U=g.substring(0,y-W),I=g.substring(y+L),C=v.substring(0,T-W),$=v.substring(T+L))}return N.length*2>=g.length?[U,I,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 p,h,m,f;o.length>i.length?(p=l[0],h=l[1],m=l[2],f=l[3]):(m=l[0],f=l[1],p=l[2],h=l[3]);var b=l[4];return[p,h,m,f,b]}function v8(o){for(var i=!1,t=[],r=0,n=null,a=0,s=0,l=0,p=0,h=0;a<o.length;)o[a][0]==Yt?(t[r++]=a,s=p,l=h,p=0,h=0,n=o[a][1]):(o[a][0]==Br?p+=o[a][1].length:h+=o[a][1].length,n&&n.length<=Math.max(s,l)&&n.length<=Math.max(p,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,p=0,h=0,n=null,i=!0)),a++;for(i&&um(o),w8(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=M1(m,f),g=M1(f,m);b>=g?(b>=m.length/2||b>=f.length/2)&&(o.splice(a,0,[Yt,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,[Yt,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 L1=/[^a-zA-Z0-9]/,q1=/\s/,I1=/[\r\n]/,y8=/\n\r?\n$/,x8=/^\r?\n\r?\n/;function w8(o){function i(g,v){if(!g||!v)return 6;var y=g.charAt(g.length-1),S=v.charAt(0),T=y.match(L1),N=S.match(L1),U=T&&y.match(q1),I=N&&S.match(q1),C=U&&y.match(I1),$=I&&S.match(I1),L=C&&g.match(y8),W=$&&v.match(x8);return L||W?5:C||$?4:T&&!U&&I?3:U||I?2:T||N?1:0}for(var t=1;t<o.length-1;){if(o[t-1][0]==Yt&&o[t+1][0]==Yt){var r=o[t-1][1],n=o[t][1],a=o[t+1][1],s=np(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 p=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,p=r,h=n,m=a)}o[t-1][1]!=p&&(p?o[t-1][1]=p:(o.splice(t-1,1),t--),o[t][1]=h,m?o[t+1][1]=m:(o.splice(t+1,1),t--))}t++}}function um(o,i){o.push([Yt,""]);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 Yt:var p=t-n-r-1;if(i){if(p>=0&&O1(o[p][1])){var h=o[p][1].slice(-1);if(o[p][1]=o[p][1].slice(0,-1),a=h+a,s=h+s,!o[p][1]){o.splice(p,1),t--;var m=p-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--),p=m}}if(N1(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=hm(s,a),l!==0&&(p>=0?o[p][1]+=s.substring(0,l):(o.splice(0,0,[Yt,s.substring(0,l)]),t++),s=s.substring(l),a=a.substring(l)),l=np(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]===Yt?(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]===Yt&&o[t+1][0]===Yt&&(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&&um(o,i)}function D1(o){return o>=55296&&o<=56319}function R1(o){return o>=56320&&o<=57343}function N1(o){return R1(o.charCodeAt(0))}function O1(o){return D1(o.charCodeAt(o.length-1))}function z8(o){for(var i=[],t=0;t<o.length;t++)o[t][1].length>0&&i.push(o[t]);return i}function pm(o,i,t,r){return O1(o)||N1(r)?null:z8([[Yt,o],[zi,i],[Br,t],[Yt,r]])}function _8(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,p=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=p.slice(0,v),S=b.slice(0,v);if(y!==S)break e;var T=p.slice(v),N=b.slice(v);return pm(y,T,N,h)}e:{if(m!==null&&m!==l)break e;var U=l,b=i.slice(0,U),g=i.slice(U);if(b!==p)break e;var I=Math.min(a-U,s-U),C=h.slice(h.length-I),$=g.slice(g.length-I);if(C!==$)break e;var T=h.slice(0,h.length-I),N=g.slice(0,g.length-I);return pm(p,T,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,I=C.length;if(s<v+I)break e;var S=i.slice(0,v),$=i.slice(s-I);if(y!==S||C!==$)break e;var T=o.slice(v,a-I),N=i.slice(v,s-I);return pm(y,T,N,C)}return null}function op(o,i,t,r){return Wl(o,i,t,r,!0)}op.INSERT=Br;op.DELETE=zi;op.EQUAL=Yt;P1.exports=op});var Tm=Fn((Kl,ys)=>{var k8=200,J1="__lodash_hash_undefined__",Z1=9007199254740991,wm="[object Arguments]",C8="[object Array]",ey="[object Boolean]",ty="[object Date]",S8="[object Error]",zm="[object Function]",ry="[object GeneratorFunction]",ap="[object Map]",iy="[object Number]",_m="[object Object]",F1="[object Promise]",ny="[object RegExp]",sp="[object Set]",oy="[object String]",ay="[object Symbol]",fm="[object WeakMap]",sy="[object ArrayBuffer]",lp="[object DataView]",ly="[object Float32Array]",cy="[object Float64Array]",dy="[object Int8Array]",py="[object Int16Array]",hy="[object Int32Array]",uy="[object Uint8Array]",my="[object Uint8ClampedArray]",fy="[object Uint16Array]",gy="[object Uint32Array]",E8=/[\\^$.*+?()[\]{}|]/g,T8=/\w*$/,$8=/^\[object .+?Constructor\]$/,A8=/^(?:0|[1-9]\d*)$/,tt={};tt[wm]=tt[C8]=tt[sy]=tt[lp]=tt[ey]=tt[ty]=tt[ly]=tt[cy]=tt[dy]=tt[py]=tt[hy]=tt[ap]=tt[iy]=tt[_m]=tt[ny]=tt[sp]=tt[oy]=tt[ay]=tt[uy]=tt[my]=tt[fy]=tt[gy]=!0;tt[S8]=tt[zm]=tt[fm]=!1;var M8=typeof global=="object"&&global&&global.Object===Object&&global,L8=typeof self=="object"&&self&&self.Object===Object&&self,Kn=M8||L8||Function("return this")(),by=typeof Kl=="object"&&Kl&&!Kl.nodeType&&Kl,B1=by&&typeof ys=="object"&&ys&&!ys.nodeType&&ys,q8=B1&&B1.exports===by;function I8(o,i){return o.set(i[0],i[1]),o}function D8(o,i){return o.add(i),o}function R8(o,i){for(var t=-1,r=o?o.length:0;++t<r&&i(o[t],t,o)!==!1;);return o}function N8(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 O8(o,i){for(var t=-1,r=Array(o);++t<o;)r[t]=i(t);return r}function P8(o,i){return o?.[i]}function yy(o){var i=!1;if(o!=null&&typeof o.toString!="function")try{i=!!(o+"")}catch{}return i}function V1(o){var i=-1,t=Array(o.size);return o.forEach(function(r,n){t[++i]=[n,r]}),t}function km(o,i){return function(t){return o(i(t))}}function U1(o){var i=-1,t=Array(o.size);return o.forEach(function(r){t[++i]=r}),t}var H8=Array.prototype,F8=Function.prototype,cp=Object.prototype,mm=Kn["__core-js_shared__"],j1=(function(){var o=/[^.]+$/.exec(mm&&mm.keys&&mm.keys.IE_PROTO||"");return o?"Symbol(src)_1."+o:""})(),xy=F8.toString,$o=cp.hasOwnProperty,dp=cp.toString,B8=RegExp("^"+xy.call($o).replace(E8,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),G1=q8?Kn.Buffer:void 0,W1=Kn.Symbol,K1=Kn.Uint8Array,V8=km(Object.getPrototypeOf,Object),U8=Object.create,j8=cp.propertyIsEnumerable,G8=H8.splice,Y1=Object.getOwnPropertySymbols,W8=G1?G1.isBuffer:void 0,K8=km(Object.keys,Object),gm=zs(Kn,"DataView"),Yl=zs(Kn,"Map"),bm=zs(Kn,"Promise"),vm=zs(Kn,"Set"),ym=zs(Kn,"WeakMap"),Ql=zs(Object,"create"),Y8=$a(gm),Q8=$a(Yl),X8=$a(bm),J8=$a(vm),Z8=$a(ym),Q1=W1?W1.prototype:void 0,X1=Q1?Q1.valueOf:void 0;function Ta(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 e9(){this.__data__=Ql?Ql(null):{}}function t9(o){return this.has(o)&&delete this.__data__[o]}function r9(o){var i=this.__data__;if(Ql){var t=i[o];return t===J1?void 0:t}return $o.call(i,o)?i[o]:void 0}function i9(o){var i=this.__data__;return Ql?i[o]!==void 0:$o.call(i,o)}function n9(o,i){var t=this.__data__;return t[o]=Ql&&i===void 0?J1:i,this}Ta.prototype.clear=e9;Ta.prototype.delete=t9;Ta.prototype.get=r9;Ta.prototype.has=i9;Ta.prototype.set=n9;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 o9(){this.__data__=[]}function a9(o){var i=this.__data__,t=pp(i,o);if(t<0)return!1;var r=i.length-1;return t==r?i.pop():G8.call(i,t,1),!0}function s9(o){var i=this.__data__,t=pp(i,o);return t<0?void 0:i[t][1]}function l9(o){return pp(this.__data__,o)>-1}function c9(o,i){var t=this.__data__,r=pp(t,o);return r<0?t.push([o,i]):t[r][1]=i,this}Yn.prototype.clear=o9;Yn.prototype.delete=a9;Yn.prototype.get=s9;Yn.prototype.has=l9;Yn.prototype.set=c9;function xs(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 d9(){this.__data__={hash:new Ta,map:new(Yl||Yn),string:new Ta}}function p9(o){return hp(this,o).delete(o)}function h9(o){return hp(this,o).get(o)}function u9(o){return hp(this,o).has(o)}function m9(o,i){return hp(this,o).set(o,i),this}xs.prototype.clear=d9;xs.prototype.delete=p9;xs.prototype.get=h9;xs.prototype.has=u9;xs.prototype.set=m9;function ws(o){this.__data__=new Yn(o)}function f9(){this.__data__=new Yn}function g9(o){return this.__data__.delete(o)}function b9(o){return this.__data__.get(o)}function v9(o){return this.__data__.has(o)}function y9(o,i){var t=this.__data__;if(t instanceof Yn){var r=t.__data__;if(!Yl||r.length<k8-1)return r.push([o,i]),this;t=this.__data__=new xs(r)}return t.set(o,i),this}ws.prototype.clear=f9;ws.prototype.delete=g9;ws.prototype.get=b9;ws.prototype.has=v9;ws.prototype.set=y9;function x9(o,i){var t=Sm(o)||U9(o)?O8(o.length,String):[],r=t.length,n=!!r;for(var a in o)(i||$o.call(o,a))&&!(n&&(a=="length"||H9(a,r)))&&t.push(a);return t}function wy(o,i,t){var r=o[i];(!($o.call(o,i)&&Cy(r,t))||t===void 0&&!(i in o))&&(o[i]=t)}function pp(o,i){for(var t=o.length;t--;)if(Cy(o[t][0],i))return t;return-1}function w9(o,i){return o&&zy(i,Em(i),o)}function xm(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(!up(o))return o;var p=Sm(o);if(p){if(l=N9(o),!i)return I9(o,l)}else{var h=Ea(o),m=h==zm||h==ry;if(G9(o))return E9(o,i);if(h==_m||h==wm||m&&!a){if(yy(o))return a?o:{};if(l=O9(m?{}:o),!i)return D9(o,w9(l,o))}else{if(!tt[h])return a?o:{};l=P9(o,h,xm,i)}}s||(s=new ws);var f=s.get(o);if(f)return f;if(s.set(o,l),!p)var b=t?R9(o):Em(o);return R8(b||o,function(g,v){b&&(v=g,g=o[v]),wy(l,v,xm(g,i,t,r,v,o,s))}),l}function z9(o){return up(o)?U8(o):{}}function _9(o,i,t){var r=i(o);return Sm(o)?r:N8(r,t(o))}function k9(o){return dp.call(o)}function C9(o){if(!up(o)||B9(o))return!1;var i=Ey(o)||yy(o)?B8:$8;return i.test($a(o))}function S9(o){if(!ky(o))return K8(o);var i=[];for(var t in Object(o))$o.call(o,t)&&t!="constructor"&&i.push(t);return i}function E9(o,i){if(i)return o.slice();var t=new o.constructor(o.length);return o.copy(t),t}function Cm(o){var i=new o.constructor(o.byteLength);return new K1(i).set(new K1(o)),i}function T9(o,i){var t=i?Cm(o.buffer):o.buffer;return new o.constructor(t,o.byteOffset,o.byteLength)}function $9(o,i,t){var r=i?t(V1(o),!0):V1(o);return vy(r,I8,new o.constructor)}function A9(o){var i=new o.constructor(o.source,T8.exec(o));return i.lastIndex=o.lastIndex,i}function M9(o,i,t){var r=i?t(U1(o),!0):U1(o);return vy(r,D8,new o.constructor)}function L9(o){return X1?Object(X1.call(o)):{}}function q9(o,i){var t=i?Cm(o.buffer):o.buffer;return new o.constructor(t,o.byteOffset,o.length)}function I9(o,i){var t=-1,r=o.length;for(i||(i=Array(r));++t<r;)i[t]=o[t];return i}function zy(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;wy(t,s,l===void 0?o[s]:l)}return t}function D9(o,i){return zy(o,_y(o),i)}function R9(o){return _9(o,Em,_y)}function hp(o,i){var t=o.__data__;return F9(i)?t[typeof i=="string"?"string":"hash"]:t.map}function zs(o,i){var t=P8(o,i);return C9(t)?t:void 0}var _y=Y1?km(Y1,Object):Y9,Ea=k9;(gm&&Ea(new gm(new ArrayBuffer(1)))!=lp||Yl&&Ea(new Yl)!=ap||bm&&Ea(bm.resolve())!=F1||vm&&Ea(new vm)!=sp||ym&&Ea(new ym)!=fm)&&(Ea=function(o){var i=dp.call(o),t=i==_m?o.constructor:void 0,r=t?$a(t):void 0;if(r)switch(r){case Y8:return lp;case Q8:return ap;case X8:return F1;case J8:return sp;case Z8:return fm}return i});function N9(o){var i=o.length,t=o.constructor(i);return i&&typeof o[0]=="string"&&$o.call(o,"index")&&(t.index=o.index,t.input=o.input),t}function O9(o){return typeof o.constructor=="function"&&!ky(o)?z9(V8(o)):{}}function P9(o,i,t,r){var n=o.constructor;switch(i){case sy:return Cm(o);case ey:case ty:return new n(+o);case lp:return T9(o,r);case ly:case cy:case dy:case py:case hy:case uy:case my:case fy:case gy:return q9(o,r);case ap:return $9(o,r,t);case iy:case oy:return new n(o);case ny:return A9(o);case sp:return M9(o,r,t);case ay:return L9(o)}}function H9(o,i){return i=i??Z1,!!i&&(typeof o=="number"||A8.test(o))&&o>-1&&o%1==0&&o<i}function F9(o){var i=typeof o;return i=="string"||i=="number"||i=="symbol"||i=="boolean"?o!=="__proto__":o===null}function B9(o){return!!j1&&j1 in o}function ky(o){var i=o&&o.constructor,t=typeof i=="function"&&i.prototype||cp;return o===t}function $a(o){if(o!=null){try{return xy.call(o)}catch{}try{return o+""}catch{}}return""}function V9(o){return xm(o,!0,!0)}function Cy(o,i){return o===i||o!==o&&i!==i}function U9(o){return j9(o)&&$o.call(o,"callee")&&(!j8.call(o,"callee")||dp.call(o)==wm)}var Sm=Array.isArray;function Sy(o){return o!=null&&W9(o.length)&&!Ey(o)}function j9(o){return K9(o)&&Sy(o)}var G9=W8||Q9;function Ey(o){var i=up(o)?dp.call(o):"";return i==zm||i==ry}function W9(o){return typeof o=="number"&&o>-1&&o%1==0&&o<=Z1}function up(o){var i=typeof o;return!!o&&(i=="object"||i=="function")}function K9(o){return!!o&&typeof o=="object"}function Em(o){return Sy(o)?x9(o):S9(o)}function Y9(){return[]}function Q9(){return!1}ys.exports=V9});var Hm=Fn((Xl,ks)=>{var X9=200,Pm="__lodash_hash_undefined__",wp=1,Py=2,Hy=9007199254740991,mp="[object Arguments]",Lm="[object Array]",J9="[object AsyncFunction]",Fy="[object Boolean]",By="[object Date]",Vy="[object Error]",Uy="[object Function]",Z9="[object GeneratorFunction]",fp="[object Map]",jy="[object Number]",e6="[object Null]",_s="[object Object]",Ty="[object Promise]",t6="[object Proxy]",Gy="[object RegExp]",gp="[object Set]",Wy="[object String]",r6="[object Symbol]",i6="[object Undefined]",qm="[object WeakMap]",Ky="[object ArrayBuffer]",bp="[object DataView]",n6="[object Float32Array]",o6="[object Float64Array]",a6="[object Int8Array]",s6="[object Int16Array]",l6="[object Int32Array]",c6="[object Uint8Array]",d6="[object Uint8ClampedArray]",p6="[object Uint16Array]",h6="[object Uint32Array]",u6=/[\\^$.*+?()[\]{}|]/g,m6=/^\[object .+?Constructor\]$/,f6=/^(?:0|[1-9]\d*)$/,st={};st[n6]=st[o6]=st[a6]=st[s6]=st[l6]=st[c6]=st[d6]=st[p6]=st[h6]=!0;st[mp]=st[Lm]=st[Ky]=st[Fy]=st[bp]=st[By]=st[Vy]=st[Uy]=st[fp]=st[jy]=st[_s]=st[Gy]=st[gp]=st[Wy]=st[qm]=!1;var Yy=typeof global=="object"&&global&&global.Object===Object&&global,g6=typeof self=="object"&&self&&self.Object===Object&&self,Qn=Yy||g6||Function("return this")(),Qy=typeof Xl=="object"&&Xl&&!Xl.nodeType&&Xl,$y=Qy&&typeof ks=="object"&&ks&&!ks.nodeType&&ks,Xy=$y&&$y.exports===Qy,$m=Xy&&Yy.process,Ay=(function(){try{return $m&&$m.binding&&$m.binding("util")}catch{}})(),My=Ay&&Ay.isTypedArray;function b6(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 v6(o,i){for(var t=-1,r=i.length,n=o.length;++t<r;)o[n+t]=i[t];return o}function y6(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 x6(o,i){for(var t=-1,r=Array(o);++t<o;)r[t]=i(t);return r}function w6(o){return function(i){return o(i)}}function z6(o,i){return o.has(i)}function _6(o,i){return o?.[i]}function k6(o){var i=-1,t=Array(o.size);return o.forEach(function(r,n){t[++i]=[n,r]}),t}function C6(o,i){return function(t){return o(i(t))}}function S6(o){var i=-1,t=Array(o.size);return o.forEach(function(r){t[++i]=r}),t}var E6=Array.prototype,T6=Function.prototype,zp=Object.prototype,Am=Qn["__core-js_shared__"],Jy=T6.toString,$n=zp.hasOwnProperty,Ly=(function(){var o=/[^.]+$/.exec(Am&&Am.keys&&Am.keys.IE_PROTO||"");return o?"Symbol(src)_1."+o:""})(),Zy=zp.toString,$6=RegExp("^"+Jy.call($n).replace(u6,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),qy=Xy?Qn.Buffer:void 0,vp=Qn.Symbol,Iy=Qn.Uint8Array,ex=zp.propertyIsEnumerable,A6=E6.splice,Aa=vp?vp.toStringTag:void 0,Dy=Object.getOwnPropertySymbols,M6=qy?qy.isBuffer:void 0,L6=C6(Object.keys,Object),Im=Cs(Qn,"DataView"),Jl=Cs(Qn,"Map"),Dm=Cs(Qn,"Promise"),Rm=Cs(Qn,"Set"),Nm=Cs(Qn,"WeakMap"),Zl=Cs(Object,"create"),q6=qa(Im),I6=qa(Jl),D6=qa(Dm),R6=qa(Rm),N6=qa(Nm),Ry=vp?vp.prototype:void 0,Mm=Ry?Ry.valueOf:void 0;function Ma(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 O6(){this.__data__=Zl?Zl(null):{},this.size=0}function P6(o){var i=this.has(o)&&delete this.__data__[o];return this.size-=i?1:0,i}function H6(o){var i=this.__data__;if(Zl){var t=i[o];return t===Pm?void 0:t}return $n.call(i,o)?i[o]:void 0}function F6(o){var i=this.__data__;return Zl?i[o]!==void 0:$n.call(i,o)}function B6(o,i){var t=this.__data__;return this.size+=this.has(o)?0:1,t[o]=Zl&&i===void 0?Pm:i,this}Ma.prototype.clear=O6;Ma.prototype.delete=P6;Ma.prototype.get=H6;Ma.prototype.has=F6;Ma.prototype.set=B6;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 V6(){this.__data__=[],this.size=0}function U6(o){var i=this.__data__,t=_p(i,o);if(t<0)return!1;var r=i.length-1;return t==r?i.pop():A6.call(i,t,1),--this.size,!0}function j6(o){var i=this.__data__,t=_p(i,o);return t<0?void 0:i[t][1]}function G6(o){return _p(this.__data__,o)>-1}function W6(o,i){var t=this.__data__,r=_p(t,o);return r<0?(++this.size,t.push([o,i])):t[r][1]=i,this}Xn.prototype.clear=V6;Xn.prototype.delete=U6;Xn.prototype.get=j6;Xn.prototype.has=G6;Xn.prototype.set=W6;function La(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 K6(){this.size=0,this.__data__={hash:new Ma,map:new(Jl||Xn),string:new Ma}}function Y6(o){var i=kp(this,o).delete(o);return this.size-=i?1:0,i}function Q6(o){return kp(this,o).get(o)}function X6(o){return kp(this,o).has(o)}function J6(o,i){var t=kp(this,o),r=t.size;return t.set(o,i),this.size+=t.size==r?0:1,this}La.prototype.clear=K6;La.prototype.delete=Y6;La.prototype.get=Q6;La.prototype.has=X6;La.prototype.set=J6;function yp(o){var i=-1,t=o==null?0:o.length;for(this.__data__=new La;++i<t;)this.add(o[i])}function Z6(o){return this.__data__.set(o,Pm),this}function eC(o){return this.__data__.has(o)}yp.prototype.add=yp.prototype.push=Z6;yp.prototype.has=eC;function Mo(o){var i=this.__data__=new Xn(o);this.size=i.size}function tC(){this.__data__=new Xn,this.size=0}function rC(o){var i=this.__data__,t=i.delete(o);return this.size=i.size,t}function iC(o){return this.__data__.get(o)}function nC(o){return this.__data__.has(o)}function oC(o,i){var t=this.__data__;if(t instanceof Xn){var r=t.__data__;if(!Jl||r.length<X9-1)return r.push([o,i]),this.size=++t.size,this;t=this.__data__=new La(r)}return t.set(o,i),this.size=t.size,this}Mo.prototype.clear=tC;Mo.prototype.delete=rC;Mo.prototype.get=iC;Mo.prototype.has=nC;Mo.prototype.set=oC;function aC(o,i){var t=xp(o),r=!t&&wC(o),n=!t&&!r&&Om(o),a=!t&&!r&&!n&&sx(o),s=t||r||n||a,l=s?x6(o.length,String):[],p=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")||gC(h,p)))&&l.push(h);return l}function _p(o,i){for(var t=o.length;t--;)if(ix(o[t][0],i))return t;return-1}function sC(o,i,t){var r=i(o);return xp(o)?r:v6(r,t(o))}function tc(o){return o==null?o===void 0?i6:e6:Aa&&Aa in Object(o)?mC(o):xC(o)}function Ny(o){return ec(o)&&tc(o)==mp}function tx(o,i,t,r,n){return o===i?!0:o==null||i==null||!ec(o)&&!ec(i)?o!==o&&i!==i:lC(o,i,t,r,tx,n)}function lC(o,i,t,r,n,a){var s=xp(o),l=xp(i),p=s?Lm:Ao(o),h=l?Lm:Ao(i);p=p==mp?_s:p,h=h==mp?_s:h;var m=p==_s,f=h==_s,b=p==h;if(b&&Om(o)){if(!Om(i))return!1;s=!0,m=!1}if(b&&!m)return a||(a=new Mo),s||sx(o)?rx(o,i,t,r,n,a):hC(o,i,p,t,r,n,a);if(!(t&wp)){var g=m&&$n.call(o,"__wrapped__"),v=f&&$n.call(i,"__wrapped__");if(g||v){var y=g?o.value():o,S=v?i.value():i;return a||(a=new Mo),n(y,S,t,r,a)}}return b?(a||(a=new Mo),uC(o,i,t,r,n,a)):!1}function cC(o){if(!ax(o)||vC(o))return!1;var i=nx(o)?$6:m6;return i.test(qa(o))}function dC(o){return ec(o)&&ox(o.length)&&!!st[tc(o)]}function pC(o){if(!yC(o))return L6(o);var i=[];for(var t in Object(o))$n.call(o,t)&&t!="constructor"&&i.push(t);return i}function rx(o,i,t,r,n,a){var s=t&wp,l=o.length,p=i.length;if(l!=p&&!(s&&p>l))return!1;var h=a.get(o);if(h&&a.get(i))return h==i;var m=-1,f=!0,b=t&Py?new yp: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(!y6(i,function(S,T){if(!z6(b,T)&&(g===S||n(g,S,t,r,a)))return b.push(T)})){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 hC(o,i,t,r,n,a,s){switch(t){case bp:if(o.byteLength!=i.byteLength||o.byteOffset!=i.byteOffset)return!1;o=o.buffer,i=i.buffer;case Ky:return!(o.byteLength!=i.byteLength||!a(new Iy(o),new Iy(i)));case Fy:case By:case jy:return ix(+o,+i);case Vy:return o.name==i.name&&o.message==i.message;case Gy:case Wy:return o==i+"";case fp:var l=k6;case gp:var p=r&wp;if(l||(l=S6),o.size!=i.size&&!p)return!1;var h=s.get(o);if(h)return h==i;r|=Py,s.set(o,i);var m=rx(l(o),l(i),r,n,a,s);return s.delete(o),m;case r6:if(Mm)return Mm.call(o)==Mm.call(i)}return!1}function uC(o,i,t,r,n,a){var s=t&wp,l=Oy(o),p=l.length,h=Oy(i),m=h.length;if(p!=m&&!s)return!1;for(var f=p;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<p;){b=l[f];var S=o[b],T=i[b];if(r)var N=s?r(T,S,b,i,o,a):r(S,T,b,o,i,a);if(!(N===void 0?S===T||n(S,T,t,r,a):N)){v=!1;break}y||(y=b=="constructor")}if(v&&!y){var U=o.constructor,I=i.constructor;U!=I&&"constructor"in o&&"constructor"in i&&!(typeof U=="function"&&U instanceof U&&typeof I=="function"&&I instanceof I)&&(v=!1)}return a.delete(o),a.delete(i),v}function Oy(o){return sC(o,kC,fC)}function kp(o,i){var t=o.__data__;return bC(i)?t[typeof i=="string"?"string":"hash"]:t.map}function Cs(o,i){var t=_6(o,i);return cC(t)?t:void 0}function mC(o){var i=$n.call(o,Aa),t=o[Aa];try{o[Aa]=void 0;var r=!0}catch{}var n=Zy.call(o);return r&&(i?o[Aa]=t:delete o[Aa]),n}var fC=Dy?function(o){return o==null?[]:(o=Object(o),b6(Dy(o),function(i){return ex.call(o,i)}))}:CC,Ao=tc;(Im&&Ao(new Im(new ArrayBuffer(1)))!=bp||Jl&&Ao(new Jl)!=fp||Dm&&Ao(Dm.resolve())!=Ty||Rm&&Ao(new Rm)!=gp||Nm&&Ao(new Nm)!=qm)&&(Ao=function(o){var i=tc(o),t=i==_s?o.constructor:void 0,r=t?qa(t):"";if(r)switch(r){case q6:return bp;case I6:return fp;case D6:return Ty;case R6:return gp;case N6:return qm}return i});function gC(o,i){return i=i??Hy,!!i&&(typeof o=="number"||f6.test(o))&&o>-1&&o%1==0&&o<i}function bC(o){var i=typeof o;return i=="string"||i=="number"||i=="symbol"||i=="boolean"?o!=="__proto__":o===null}function vC(o){return!!Ly&&Ly in o}function yC(o){var i=o&&o.constructor,t=typeof i=="function"&&i.prototype||zp;return o===t}function xC(o){return Zy.call(o)}function qa(o){if(o!=null){try{return Jy.call(o)}catch{}try{return o+""}catch{}}return""}function ix(o,i){return o===i||o!==o&&i!==i}var wC=Ny((function(){return arguments})())?Ny:function(o){return ec(o)&&$n.call(o,"callee")&&!ex.call(o,"callee")},xp=Array.isArray;function zC(o){return o!=null&&ox(o.length)&&!nx(o)}var Om=M6||SC;function _C(o,i){return tx(o,i)}function nx(o){if(!ax(o))return!1;var i=tc(o);return i==Uy||i==Z9||i==J9||i==t6}function ox(o){return typeof o=="number"&&o>-1&&o%1==0&&o<=Hy}function ax(o){var i=typeof o;return o!=null&&(i=="object"||i=="function")}function ec(o){return o!=null&&typeof o=="object"}var sx=My?w6(My):dC;function kC(o){return zC(o)?aC(o):pC(o)}function CC(){return[]}function SC(){return!1}ks.exports=_C});var lx=Fn(Bm=>{"use strict";Object.defineProperty(Bm,"__esModule",{value:!0});var EC=Tm(),TC=Hm(),Fm;(function(o){function i(a={},s={},l=!1){typeof a!="object"&&(a={}),typeof s!="object"&&(s={});let p=EC(s);l||(p=Object.keys(p).reduce((h,m)=>(p[m]!=null&&(h[m]=p[m]),h),{}));for(let h in a)a[h]!==void 0&&s[h]===void 0&&(p[h]=a[h]);return Object.keys(p).length>0?p: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((p,h)=>(TC(a[h],s[h])||(p[h]=s[h]===void 0?null:s[h]),p),{});return Object.keys(l).length>0?l:void 0}o.diff=t;function r(a={},s={}){a=a||{};let l=Object.keys(s).reduce((p,h)=>(s[h]!==a[h]&&a[h]!==void 0&&(p[h]=s[h]),p),{});return Object.keys(a).reduce((p,h)=>(a[h]!==s[h]&&s[h]===void 0&&(p[h]=null),p),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 p=Object.keys(s).reduce((h,m)=>(a[m]===void 0&&(h[m]=s[m]),h),{});return Object.keys(p).length>0?p:void 0}o.transform=n})(Fm||(Fm={}));Bm.default=Fm});var jm=Fn(Um=>{"use strict";Object.defineProperty(Um,"__esModule",{value:!0});var Vm;(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})(Vm||(Vm={}));Um.default=Vm});var dx=Fn(Wm=>{"use strict";Object.defineProperty(Wm,"__esModule",{value:!0});var cx=jm(),Gm=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=cx.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]?cx.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[]}};Wm.default=Gm});var ei=Fn((Zn,Sp)=>{"use strict";Object.defineProperty(Zn,"__esModule",{value:!0});Zn.AttributeMap=Zn.OpIterator=Zn.Op=void 0;var Cp=H1(),$C=Tm(),Km=Hm(),Ia=lx();Zn.AttributeMap=Ia.default;var Jn=jm();Zn.Op=Jn.default;var Ni=dx();Zn.OpIterator=Ni.default;var AC="\0",px=(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=$C(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(Km(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 Ni.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 Ni.default(this.ops),r=new Ni.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()),p=t.next(l),h=r.next(l);if(h.retain){let m={};if(typeof p.retain=="number")m.retain=typeof h.retain=="number"?l:h.retain;else if(typeof h.retain=="number")p.retain==null?m.insert=p.insert:m.retain=p.retain;else{let b=p.retain==null?"insert":"retain",[g,v,y]=px(p[b],h.retain),S=o.getHandler(g);m[b]={[g]:S.compose(v,y,b==="retain")}}let f=Ia.default.compose(p.attributes,h.attributes,typeof p.retain=="number");if(f&&(m.attributes=f),s.push(m),!r.hasNext()&&Km(s.ops[s.ops.length-1],m)){let b=new o(t.rest());return s.concat(b).chop()}}else typeof h.delete=="number"&&(typeof p.retain=="number"||typeof p.retain=="object"&&p.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(p=>p.map(h=>{if(h.insert!=null)return typeof h.insert=="string"?h.insert:AC;let m=p===i?"on":"with";throw new Error("diff() called "+m+" non-document")}).join("")),n=new o,a=Cp(r[0],r[1],t,!0),s=new Ni.default(this.ops),l=new Ni.default(i.ops);return a.forEach(p=>{let h=p[1].length;for(;h>0;){let m=0;switch(p[0]){case Cp.INSERT:m=Math.min(l.peekLength(),h),n.push(l.next(m));break;case Cp.DELETE:m=Math.min(h,s.peekLength()),s.next(m),n.delete(m);break;case Cp.EQUAL:m=Math.min(s.peekLength(),l.peekLength(),h);let f=s.next(m),b=l.next(m);Km(f.insert,b.insert)?n.retain(m,Ia.default.diff(f.attributes,b.attributes)):n.push(b).delete(m);break}h-=m}}),n.chop()}eachLine(i,t=`
2
2
  `){let r=new Ni.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(),p=typeof s.insert=="string"?s.insert.indexOf(t,l)-l:-1;if(p<0)n.push(r.next());else if(p>0)n.push(r.next(p));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),Ia.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 Ni.default(a.ops).next(),[l,p,h]=px(n.retain,s.insert),m=o.getHandler(l);return t.retain({[l]:m.invert(p,h)},Ia.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 Ni.default(this.ops),a=new Ni.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()),p=n.next(l),h=a.next(l);if(p.delete)continue;if(h.delete)s.push(h);else{let m=p.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,Ia.default.transform(p.attributes,h.attributes,t))}}return s.chop()}transformPosition(i,t=!1){t=!!t;let r=new Ni.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=Ni.default;eo.AttributeMap=Ia.default;eo.handlers={};Zn.default=eo;typeof Sp=="object"&&(Sp.exports=eo,Sp.exports.default=eo)});var Ez=Fn((Npe,mf)=>{"use strict";var hA=Object.prototype.hasOwnProperty,Ur="~";function hc(){}Object.create&&(hc.prototype=Object.create(null),new hc().__proto__||(Ur=!1));function uA(o,i,t){this.fn=o,this.context=i,this.once=t||!1}function Sz(o,i,t,r,n){if(typeof t!="function")throw new TypeError("The listener must be a function");var a=new uA(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 Zp(o,i){--o._eventsCount===0?o._events=new hc:delete o._events[i]}function qr(){this._events=new hc,this._eventsCount=0}qr.prototype.eventNames=function(){var i=[],t,r;if(this._eventsCount===0)return i;for(r in t=this._events)hA.call(t,r)&&i.push(Ur?r.slice(1):r);return Object.getOwnPropertySymbols?i.concat(Object.getOwnPropertySymbols(t)):i};qr.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};qr.prototype.listenerCount=function(i){var t=Ur?Ur+i:i,r=this._events[t];return r?r.fn?1:r.length:0};qr.prototype.emit=function(i,t,r,n,a,s){var l=Ur?Ur+i:i;if(!this._events[l])return!1;var p=this._events[l],h=arguments.length,m,f;if(p.fn){switch(p.once&&this.removeListener(i,p.fn,void 0,!0),h){case 1:return p.fn.call(p.context),!0;case 2:return p.fn.call(p.context,t),!0;case 3:return p.fn.call(p.context,t,r),!0;case 4:return p.fn.call(p.context,t,r,n),!0;case 5:return p.fn.call(p.context,t,r,n,a),!0;case 6:return p.fn.call(p.context,t,r,n,a,s),!0}for(f=1,m=new Array(h-1);f<h;f++)m[f-1]=arguments[f];p.fn.apply(p.context,m)}else{var b=p.length,g;for(f=0;f<b;f++)switch(p[f].once&&this.removeListener(i,p[f].fn,void 0,!0),h){case 1:p[f].fn.call(p[f].context);break;case 2:p[f].fn.call(p[f].context,t);break;case 3:p[f].fn.call(p[f].context,t,r);break;case 4:p[f].fn.call(p[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];p[f].fn.apply(p[f].context,m)}}return!0};qr.prototype.on=function(i,t,r){return Sz(this,i,t,r,!1)};qr.prototype.once=function(i,t,r){return Sz(this,i,t,r,!0)};qr.prototype.removeListener=function(i,t,r,n){var a=Ur?Ur+i:i;if(!this._events[a])return this;if(!t)return Zp(this,a),this;var s=this._events[a];if(s.fn)s.fn===t&&(!n||s.once)&&(!r||s.context===r)&&Zp(this,a);else{for(var l=0,p=[],h=s.length;l<h;l++)(s[l].fn!==t||n&&!s[l].once||r&&s[l].context!==r)&&p.push(s[l]);p.length?this._events[a]=p.length===1?p[0]:p:Zp(this,a)}return this};qr.prototype.removeAllListeners=function(i){var t;return i?(t=Ur?Ur+i:i,this._events[t]&&Zp(this,t)):(this._events=new hc,this._eventsCount=0),this};qr.prototype.off=qr.prototype.removeListener;qr.prototype.addListener=qr.prototype.on;qr.prefixed=Ur;qr.EventEmitter=qr;typeof mf<"u"&&(mf.exports=qr)});var bl=globalThis,Qg=o=>o,rd=bl.trustedTypes,Xg=rd?rd.createPolicy("lit-html",{createHTML:o=>o}):void 0,Yh="$lit$",Bn=`lit$${Math.random().toFixed(9).slice(2)}$`,Qh="?"+Bn,u3=`<${Qh}>`,pa=document,vl=()=>pa.createComment(""),yl=o=>o===null||typeof o!="object"&&typeof o!="function",Xh=Array.isArray,ib=o=>Xh(o)||typeof o?.[Symbol.iterator]=="function",Kh=`[
3
3
  \f\r]`,gl=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Jg=/-->/g,Zg=/>/g,ca=RegExp(`>|${Kh}(?:([^\\s"'>=/]+)(${Kh}*=${Kh}*(?:[^
4
4
  \f\r"'\`<>=]|("|')|))|$)`,"g"),eb=/'/g,tb=/"/g,nb=/^(?:script|style|textarea|title)$/i,Jh=o=>(i,...t)=>({_$litType$:o,strings:i,values:t}),u=Jh(1),Xi=Jh(2),ob=Jh(3),vt=Symbol.for("lit-noChange"),B=Symbol.for("lit-nothing"),rb=new WeakMap,da=pa.createTreeWalker(pa,129);function ab(o,i){if(!Xh(o)||!o.hasOwnProperty("raw"))throw Error("invalid template strings array");return Xg!==void 0?Xg.createHTML(i):i}var sb=(o,i)=>{let t=o.length-1,r=[],n,a=i===2?"<svg>":i===3?"<math>":"",s=gl;for(let l=0;l<t;l++){let p=o[l],h,m,f=-1,b=0;for(;b<p.length&&(s.lastIndex=b,m=s.exec(p),m!==null);)b=s.lastIndex,s===gl?m[1]==="!--"?s=Jg:m[1]!==void 0?s=Zg:m[2]!==void 0?(nb.test(m[2])&&(n=RegExp("</"+m[2],"g")),s=ca):m[3]!==void 0&&(s=ca):s===ca?m[0]===">"?(s=n??gl,f=-1):m[1]===void 0?f=-2:(f=s.lastIndex-m[2].length,h=m[1],s=m[3]===void 0?ca:m[3]==='"'?tb:eb):s===tb||s===eb?s=ca:s===Jg||s===Zg?s=gl:(s=ca,n=void 0);let g=s===ca&&o[l+1].startsWith("/>")?" ":"";a+=s===gl?p+u3:f>=0?(r.push(h),p.slice(0,f)+Yh+p.slice(f)+Bn+g):p+Bn+(f===-2?l:g)}return[ab(o,a+(o[t]||"<?>")+(i===2?"</svg>":i===3?"</math>":"")),r]},xl=class o{constructor({strings:i,_$litType$:t},r){let n;this.parts=[];let a=0,s=0,l=i.length-1,p=this.parts,[h,m]=sb(i,t);if(this.el=o.createElement(h,r),da.currentNode=this.el.content,t===2||t===3){let f=this.el.content.firstChild;f.replaceWith(...f.childNodes)}for(;(n=da.nextNode())!==null&&p.length<l;){if(n.nodeType===1){if(n.hasAttributes())for(let f of n.getAttributeNames())if(f.endsWith(Yh)){let b=m[s++],g=n.getAttribute(f).split(Bn),v=/([.?@])?(.*)/.exec(b);p.push({type:1,index:a,name:v[2],strings:g,ctor:v[1]==="."?nd:v[1]==="?"?od:v[1]==="@"?ad:ua}),n.removeAttribute(f)}else f.startsWith(Bn)&&(p.push({type:6,index:a}),n.removeAttribute(f));if(nb.test(n.tagName)){let f=n.textContent.split(Bn),b=f.length-1;if(b>0){n.textContent=rd?rd.emptyScript:"";for(let g=0;g<b;g++)n.append(f[g],vl()),da.nextNode(),p.push({type:2,index:++a});n.append(f[b],vl())}}}else if(n.nodeType===8)if(n.data===Qh)p.push({type:2,index:a});else{let f=-1;for(;(f=n.data.indexOf(Bn,f+1))!==-1;)p.push({type:7,index:a}),f+=Bn.length-1}a++}}static createElement(i,t){let r=pa.createElement("template");return r.innerHTML=i,r}};function ha(o,i,t=o,r){if(i===vt)return i;let n=r!==void 0?t._$Co?.[r]:t._$Cl,a=yl(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=ha(o,n._$AS(o,i.values),n,r)),i}var id=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??pa).importNode(t,!0);da.currentNode=n;let a=da.nextNode(),s=0,l=0,p=r[0];for(;p!==void 0;){if(s===p.index){let h;p.type===2?h=new Xa(a,a.nextSibling,this,i):p.type===1?h=new p.ctor(a,p.name,p.strings,this,i):p.type===6&&(h=new sd(a,this,i)),this._$AV.push(h),p=r[++l]}s!==p?.index&&(a=da.nextNode(),s++)}return da.currentNode=pa,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++}},Xa=class o{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(i,t,r,n){this.type=2,this._$AH=B,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=ha(this,i,t),yl(i)?i===B||i==null||i===""?(this._$AH!==B&&this._$AR(),this._$AH=B):i!==this._$AH&&i!==vt&&this._(i):i._$litType$!==void 0?this.$(i):i.nodeType!==void 0?this.T(i):ib(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!==B&&yl(this._$AH)?this._$AA.nextSibling.data=i:this.T(pa.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=xl.createElement(ab(r.h,r.h[0]),this.options)),r);if(this._$AH?._$AD===n)this._$AH.p(t);else{let a=new id(n,this),s=a.u(this.options);a.p(t),this.T(s),this._$AH=a}}_$AC(i){let t=rb.get(i.strings);return t===void 0&&rb.set(i.strings,t=new xl(i)),t}k(i){Xh(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(vl()),this.O(vl()),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=Qg(i).nextSibling;Qg(i).remove(),i=r}}setConnected(i){this._$AM===void 0&&(this._$Cv=i,this._$AP?.(i))}},ua=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(i,t,r,n,a){this.type=1,this._$AH=B,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=B}_$AI(i,t=this,r,n){let a=this.strings,s=!1;if(a===void 0)i=ha(this,i,t,0),s=!yl(i)||i!==this._$AH&&i!==vt,s&&(this._$AH=i);else{let l=i,p,h;for(i=a[0],p=0;p<a.length-1;p++)h=ha(this,l[r+p],t,p),h===vt&&(h=this._$AH[p]),s||(s=!yl(h)||h!==this._$AH[p]),h===B?i=B:i!==B&&(i+=(h??"")+a[p+1]),this._$AH[p]=h}s&&!n&&this.j(i)}j(i){i===B?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,i??"")}},nd=class extends ua{constructor(){super(...arguments),this.type=3}j(i){this.element[this.name]=i===B?void 0:i}},od=class extends ua{constructor(){super(...arguments),this.type=4}j(i){this.element.toggleAttribute(this.name,!!i&&i!==B)}},ad=class extends ua{constructor(i,t,r,n,a){super(i,t,r,n,a),this.type=5}_$AI(i,t=this){if((i=ha(this,i,t,0)??B)===vt)return;let r=this._$AH,n=i===B&&r!==B||i.capture!==r.capture||i.once!==r.once||i.passive!==r.passive,a=i!==B&&(r===B||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)}},sd=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){ha(this,i)}},lb={M:Yh,P:Bn,A:Qh,C:1,L:sb,R:id,D:ib,V:ha,I:Xa,H:ua,N:od,U:ad,B:nd,F:sd},m3=bl.litHtmlPolyfillSupport;m3?.(xl,Xa),(bl.litHtmlVersions??(bl.litHtmlVersions=[])).push("3.3.3");var Ja=(o,i,t)=>{let r=t?.renderBefore??i,n=r._$litPart$;if(n===void 0){let a=t?.renderBefore??null;r._$litPart$=n=new Xa(i.insertBefore(vl(),a),a,void 0,t??{})}return n._$AI(o),n};var lr={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!==lr.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 ld=globalThis,cd=ld.ShadowRoot&&(ld.ShadyCSS===void 0||ld.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Zh=Symbol(),cb=new WeakMap,wl=class{constructor(i,t,r){if(this._$cssResult$=!0,r!==Zh)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(cd&&i===void 0){let r=t!==void 0&&t.length===1;r&&(i=cb.get(t)),i===void 0&&((this.o=i=new CSSStyleSheet).replaceSync(this.cssText),r&&cb.set(t,i))}return i}toString(){return this.cssText}},z=o=>new wl(typeof o=="string"?o:o+"",void 0,Zh),_=(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 wl(t,o,Zh)},db=(o,i)=>{if(cd)o.adoptedStyleSheets=i.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(let t of i){let r=document.createElement("style"),n=ld.litNonce;n!==void 0&&r.setAttribute("nonce",n),r.textContent=t.cssText,o.appendChild(r)}},eu=cd?o=>o:o=>o instanceof CSSStyleSheet?(i=>{let t="";for(let r of i.cssRules)t+=r.cssText;return z(t)})(o):o;var{is:f3,defineProperty:g3,getOwnPropertyDescriptor:b3,getOwnPropertyNames:v3,getOwnPropertySymbols:y3,getPrototypeOf:x3}=Object,mo=globalThis,pb=mo.trustedTypes,w3=pb?pb.emptyScript:"",z3=mo.reactiveElementPolyfillSupport,zl=(o,i)=>o,fo={toAttribute(o,i){switch(i){case Boolean:o=o?w3: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}},Za=(o,i)=>!f3(o,i),hb={attribute:!0,type:String,converter:fo,reflect:!1,useDefault:!1,hasChanged:Za};Symbol.metadata??(Symbol.metadata=Symbol("metadata")),mo.litPropertyMetadata??(mo.litPropertyMetadata=new WeakMap);var Vn=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=hb){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&&g3(this.prototype,i,n)}}static getPropertyDescriptor(i,t,r){let{get:n,set:a}=b3(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)??hb}static _$Ei(){if(this.hasOwnProperty(zl("elementProperties")))return;let i=x3(this);i.finalize(),i.l!==void 0&&(this.l=[...i.l]),this.elementProperties=new Map(i.elementProperties)}static finalize(){if(this.hasOwnProperty(zl("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(zl("properties"))){let t=this.properties,r=[...v3(t),...y3(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(eu(n))}else i!==void 0&&t.push(eu(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 db(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:fo).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:fo;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??Za)(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){}};Vn.elementStyles=[],Vn.shadowRootOptions={mode:"open"},Vn[zl("elementProperties")]=new Map,Vn[zl("finalized")]=new Map,z3?.({ReactiveElement:Vn}),(mo.reactiveElementVersions??(mo.reactiveElementVersions=[])).push("2.1.2");var _l=globalThis,go=class extends Vn{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=Ja(t,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return vt}};go._$litElement$=!0,go.finalized=!0,_l.litElementHydrateSupport?.({LitElement:go});var _3=_l.litElementPolyfillSupport;_3?.({LitElement:go});(_l.litElementVersions??(_l.litElementVersions=[])).push("4.2.2");var ub=new WeakMap;function mb(o){let i=ub.get(o);return i||(i=window.getComputedStyle(o,null),ub.set(o,i)),i}function k3(o){if(typeof o.checkVisibility=="function")return o.checkVisibility({checkOpacity:!1,checkVisibilityCSS:!0});let i=mb(o);return i.visibility!=="hidden"&&i.display!=="none"}function C3(o){let i=mb(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 S3(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")||!k3(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:C3(o)}function fb(o){let i=tu(o),t=i[0]??null,r=i[i.length-1]??null;return{start:t,end:r}}function E3(o,i){return o.getRootNode({composed:!0})?.host!==i}function tu(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)&&S3(n)&&t.push(n),n instanceof HTMLSlotElement&&E3(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 gb=new WeakMap,ru=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=ma.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=tu(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 bb(o){let i=gb.get(o);return i||(i=new ru(o),gb.set(o,i)),i}function cr(o){return`#${CSS.escape(o.startsWith("#")?o.slice(1):o)}`}function T3(o,i=document){let t=i.querySelector(o);if(t)return t;for(let r of i.querySelectorAll("*"))if(r.shadowRoot){let n=T3(o,r.shadowRoot);if(n)return n}return null}function $3(o,i=document,t=[]){t.push(...i.querySelectorAll(o));for(let r of i.querySelectorAll("*"))r.shadowRoot&&$3(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 p=a.shadowRoot;if(p){let h=p.children;for(let m of h)n(m,!0)}};return n(i,!1),r}var kr=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 ma=new WeakMap,kl=new WeakMap,Cl=new WeakMap,dd=new WeakMap,iu=new WeakSet,pd=new WeakMap,zb="znform:";function nu(o=!1){try{return o?window.localStorage:window.sessionStorage}catch{return null}}function A3(o=!1,i=0){let t=nu(o);return t?new kr(t,zb,i):null}function vb(o){let i=o?.getAttribute("store-ttl");return i&&Number(i)||0}function yb(o){return!!o?.hasAttribute("local-storage")}function _b(o){return o?.getAttribute("store-key")||""}function M3(o){return o.getAttribute("store-key")||""}function L3(o){return o.getAttribute("name")||("name"in o&&typeof o.name=="string"?o.name:"")}function kb(o,i){let t=M3(o),r=_b(i);if(t)return r?`${r}:${t}`:t;let n=L3(o);return r&&n?`${r}:${n}`:""}function Cb(o,i){let t=yb(o)||yb(i),r=vb(o)||vb(i);return A3(t,r)}function Sb(o,i){let t=kb(o,i),n=(t?Cb(o,i):null)?.get(t);if(!n)return null;try{return JSON.parse(n)}catch{return{value:n}}}function Eb(o,i,t){let r=kb(o,i),n=r?Cb(o,i):null;n&&n.set(r,JSON.stringify(t))}function q3(o){return o instanceof HTMLInputElement||o instanceof HTMLTextAreaElement||o instanceof HTMLSelectElement}function I3(o){return o instanceof HTMLInputElement&&(o.type==="checkbox"||o.type==="radio")?{checked:o.checked,value:o.value}:{value:o.value}}function D3(o){o.querySelectorAll("input, textarea, select").forEach(t=>{let r=Sb(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 xb(o,i){!q3(o)||o.form!==i||Eb(o,i,I3(o))}function R3(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 wb(o,i){let t=[],r=zb+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 N3(o){let i=typeof o=="string"?o:_b(o);if(!i)return;let t=nu(!0),r=nu(!1);t&&wb(t,i),r&&r!==t&&wb(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)},p=m=>typeof FileList<"u"&&m instanceof FileList,h=m=>typeof Blob<"u"&&m instanceof Blob;if(p(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(p(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&&ma.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),pd.set(this.host,[])};this.handleInteraction=i=>{let t=pd.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(cr(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),pd.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(),pd.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,ma.has(this.form)?ma.get(this.form).add(this.host):ma.set(this.form,new Set([this.host])),this.form.hasAttribute("data-enter-navigation")&&bb(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),kl.has(this.form)||(kl.set(this.form,this.form.reportValidity),this.form.reportValidity=()=>this.reportFormValidity()),Cl.has(this.form)||(Cl.set(this.form,this.form.checkValidity),this.form.checkValidity=()=>this.checkFormValidity())}detachForm(){if(!this.form)return;let i=ma.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),kl.has(this.form)&&(this.form.reportValidity=kl.get(this.form),kl.delete(this.form)),Cl.has(this.form)&&(this.form.checkValidity=Cl.get(this.form),Cl.delete(this.form)),this.form=void 0))}attachFormPersistence(i){if(dd.has(i))return;let t=n=>xb(n.target,i),r=n=>xb(n.target,i);i.addEventListener("input",t),i.addEventListener("change",r),dd.set(i,{handleInput:t,handleChange:r}),D3(i)}detachFormPersistence(i){let t=dd.get(i);t&&(i.removeEventListener("input",t.handleInput),i.removeEventListener("change",t.handleChange),dd.delete(i))}restorePersistedValue(){let i=Sb(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(){Eb(this.host,this.form,R3(this.host,this.options.value(this.host)))}setUserInteracted(i,t){t?iu.add(i):iu.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=!!iu.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()}},pt=Object.freeze({badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valid:!0,valueMissing:!1}),hd=Object.freeze({...pt,customError:!0,valid:!1}),ud=Object.freeze({...pt,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 Tb(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 Ab=Symbol.for(""),O3=o=>{if(o?.r===Ab)return o?._$litStatic$};var Ai=(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:Ab}),$b=new Map,ou=o=>(i,...t)=>{let r=t.length,n,a,s=[],l=[],p,h=0,m=!1;for(;h<r;){for(p=i[h];h<r&&(a=t[h],(n=O3(a))!==void 0);)p+=n+i[++h],m=!0;h!==r&&l.push(a),s.push(p),h++}if(h===r&&s.push(i[r]),m){let f=s.join("$$lit$$");(i=$b.get(f))===void 0&&(s.raw=s,$b.set(f,i=s)),t=l}return o(i,...t)},ke=ou(u),jD=ou(Xi),GD=ou(ob);var P=o=>o??B;var Mb=o=>(i,t)=>{t!==void 0?t.addInitializer(()=>{customElements.define(o,i)}):customElements.define(o,i)};var P3={attribute:!0,type:String,converter:fo,reflect:!1,hasChanged:Za},H3=(o=P3,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 p=i.get.call(this);i.set.call(this,l),this.requestUpdate(s,p,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 p=this[s];i.call(this,l),this.requestUpdate(s,p,o,!0,l)}}throw Error("Unsupported decorator location: "+r)};function d(o){return(i,t)=>typeof t=="object"?H3(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 R(o){return d({...o,state:!0,attribute:!1})}function Lb(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 F(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 p=Symbol();return{get(){return this[p]},set(h){this[p]=h}}})();return xn(t,r,{get(){let p=s.call(this);return p===void 0&&(p=a(this),(p!==null||this.hasUpdated)&&l.call(this,p)),p}})}return xn(t,r,{get(){return a(this)}})}}var F3;function es(o){return(i,t)=>xn(i,t,{get(){return(this.renderRoot??F3??(F3=document.createDocumentFragment())).querySelectorAll(o)}})}function qb(o){return(i,t)=>xn(i,t,{async get(){return await this.updateComplete,this.renderRoot?.querySelector(o)??null}})}function Ib(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 Db="important",B3=" !"+Db,xt=yt(class extends rr{constructor(o){if(super(o),o.type!==lr.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(B3);r.includes("-")||a?t.setProperty(r,a?n.slice(0,-11):n,a?Db:""):t[r]=n}}return vt}});function K(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(p=>{let h=p;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 V3=Object.defineProperty,U3=(o,i,t)=>i in o?V3(o,i,{enumerable:!0,configurable:!0,writable:!0,value:t}):o[i]=t,au=(o,i,t)=>(U3(o,typeof i!="symbol"?i+"":i,t),t),j3=(o,i,t)=>{if(!i.has(o))throw TypeError("Cannot "+t)},su=(o,i)=>{if(Object(i)!==i)throw TypeError('Cannot use the "in" operator on this value');return o.has(i)},md=(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)},Rb=(o,i,t)=>(j3(o,i,"access private method"),t);function Nb(o,i){return Object.is(o,i)}var Ot=null,Sl=!1,fd=1,gd=Symbol("SIGNAL");function ts(o){let i=Ot;return Ot=o,i}function G3(){return Ot}function W3(){return Sl}var hu={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 bd(o){if(Sl)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(rs(Ot),i<Ot.producerNode.length&&Ot.producerNode[i]!==o&&du(Ot)){let t=Ot.producerNode[i];vd(t,Ot.producerIndexOfThis[i])}Ot.producerNode[i]!==o&&(Ot.producerNode[i]=o,Ot.producerIndexOfThis[i]=du(Ot)?Hb(o,Ot,i):0),Ot.producerLastReadVersion[i]=o.version}function K3(){fd++}function Ob(o){if(!(!o.dirty&&o.lastCleanEpoch===fd)){if(!o.producerMustRecompute(o)&&!Z3(o)){o.dirty=!1,o.lastCleanEpoch=fd;return}o.producerRecomputeValue(o),o.dirty=!1,o.lastCleanEpoch=fd}}function Pb(o){if(o.liveConsumerNode===void 0)return;let i=Sl;Sl=!0;try{for(let t of o.liveConsumerNode)t.dirty||Q3(t)}finally{Sl=i}}function Y3(){return Ot?.consumerAllowSignalWrites!==!1}function Q3(o){var i;o.dirty=!0,Pb(o),(i=o.consumerMarkedDirty)==null||i.call(o.wrapper??o)}function X3(o){return o&&(o.nextProducerIndex=0),ts(o)}function J3(o,i){if(ts(i),!(!o||o.producerNode===void 0||o.producerIndexOfThis===void 0||o.producerLastReadVersion===void 0)){if(du(o))for(let t=o.nextProducerIndex;t<o.producerNode.length;t++)vd(o.producerNode[t],o.producerIndexOfThis[t]);for(;o.producerNode.length>o.nextProducerIndex;)o.producerNode.pop(),o.producerLastReadVersion.pop(),o.producerIndexOfThis.pop()}}function Z3(o){rs(o);for(let i=0;i<o.producerNode.length;i++){let t=o.producerNode[i],r=o.producerLastReadVersion[i];if(r!==t.version||(Ob(t),r!==t.version))return!0}return!1}function Hb(o,i,t){var r;if(uu(o),rs(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]=Hb(o.producerNode[n],o,n)}return o.liveConsumerIndexOfThis.push(t),o.liveConsumerNode.push(i)-1}function vd(o,i){var t;if(uu(o),rs(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++)vd(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];rs(a),a.producerIndexOfThis[n]=i}}function du(o){var i;return o.consumerIsAlwaysLive||(((i=o?.liveConsumerNode)==null?void 0:i.length)??0)>0}function rs(o){o.producerNode??(o.producerNode=[]),o.producerIndexOfThis??(o.producerIndexOfThis=[]),o.producerLastReadVersion??(o.producerLastReadVersion=[])}function uu(o){o.liveConsumerNode??(o.liveConsumerNode=[]),o.liveConsumerIndexOfThis??(o.liveConsumerIndexOfThis=[])}function Fb(o){if(Ob(o),bd(o),o.value===pu)throw o.error;return o.value}function e5(o){let i=Object.create(t5);i.computation=o;let t=()=>Fb(i);return t[gd]=i,t}var lu=Symbol("UNSET"),cu=Symbol("COMPUTING"),pu=Symbol("ERRORED"),t5={...hu,value:lu,dirty:!0,error:null,equal:Nb,producerMustRecompute(o){return o.value===lu||o.value===cu},producerRecomputeValue(o){if(o.value===cu)throw new Error("Detected cycle in computations.");let i=o.value;o.value=cu;let t=X3(o),r,n=!1;try{r=o.computation.call(o.wrapper),n=i!==lu&&i!==pu&&o.equal.call(o.wrapper,i,r)}catch(a){r=pu,o.error=a}finally{J3(o,t)}if(n){o.value=i;return}o.value=r,o.version++}};function r5(){throw new Error}var i5=r5;function n5(){i5()}function o5(o){let i=Object.create(l5);i.value=o;let t=()=>(bd(i),i.value);return t[gd]=i,t}function a5(){return bd(this),this.value}function s5(o,i){Y3()||n5(),o.equal.call(o.wrapper,o.value,i)||(o.value=i,c5(o))}var l5={...hu,equal:Nb,value:void 0};function c5(o){o.version++,K3(),Pb(o)}var dr=Symbol("node"),it;(o=>{var i,t,r,n,a,s;class l{constructor(m,f={}){md(this,t),au(this,i);let g=o5(m)[gd];if(this[dr]=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 a5.call(this[dr])}set(m){if(!(0,o.isState)(this))throw new TypeError("Wrong receiver type for Signal.State.prototype.set");if(W3())throw new Error("Writes to signals not permitted during Watcher callback");let f=this[dr];s5(f,m)}}i=dr,t=new WeakSet,r=function(){},o.isState=h=>typeof h=="object"&&su(t,h),o.State=l;class p{constructor(m,f){md(this,a),au(this,n);let g=e5(m)[gd];if(g.consumerAllowSignalWrites=!0,this[dr]=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 Fb(this[dr])}}n=dr,a=new WeakSet,s=function(){},o.isComputed=h=>typeof h=="object"&&su(a,h),o.Computed=p,(h=>{var m,f,b,g,v;function y($){let L,W=null;try{W=ts(null),L=$()}finally{ts(W)}return L}h.untrack=y;function S($){var L;if(!(0,o.isComputed)($)&&!(0,o.isWatcher)($))throw new TypeError("Called introspectSources without a Computed or Watcher argument");return((L=$[dr].producerNode)==null?void 0:L.map(W=>W.wrapper))??[]}h.introspectSources=S;function T($){var L;if(!(0,o.isComputed)($)&&!(0,o.isState)($))throw new TypeError("Called introspectSinks without a Signal argument");return((L=$[dr].liveConsumerNode)==null?void 0:L.map(W=>W.wrapper))??[]}h.introspectSinks=T;function N($){if(!(0,o.isComputed)($)&&!(0,o.isState)($))throw new TypeError("Called hasSinks without a Signal argument");let L=$[dr].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=$[dr].producerNode;return L?L.length>0:!1}h.hasSources=U;class I{constructor(L){md(this,f),md(this,g),au(this,m);let W=Object.create(hu);W.wrapper=this,W.consumerMarkedDirty=L,W.consumerIsAlwaysLive=!0,W.consumerAllowSignalWrites=!1,W.producerNode=[],this[dr]=W}watch(...L){if(!(0,o.isWatcher)(this))throw new TypeError("Called unwatch without Watcher receiver");Rb(this,g,v).call(this,L);let W=this[dr];W.dirty=!1;let oe=ts(W);for(let xe of L)bd(xe[dr]);ts(oe)}unwatch(...L){if(!(0,o.isWatcher)(this))throw new TypeError("Called unwatch without Watcher receiver");Rb(this,g,v).call(this,L);let W=this[dr];rs(W);for(let oe=W.producerNode.length-1;oe>=0;oe--)if(L.includes(W.producerNode[oe].wrapper)){vd(W.producerNode[oe],W.producerIndexOfThis[oe]);let xe=W.producerNode.length-1;if(W.producerNode[oe]=W.producerNode[xe],W.producerIndexOfThis[oe]=W.producerIndexOfThis[xe],W.producerNode.length--,W.producerIndexOfThis.length--,W.nextProducerIndex--,oe<W.producerNode.length){let De=W.producerIndexOfThis[oe],Ne=W.producerNode[oe];uu(Ne),Ne.liveConsumerIndexOfThis[De]=oe}}}getPending(){if(!(0,o.isWatcher)(this))throw new TypeError("Called getPending without Watcher receiver");return this[dr].producerNode.filter(W=>W.dirty).map(W=>W.wrapper)}}m=dr,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=$=>su(f,$),h.Watcher=I;function C(){var $;return($=G3())==null?void 0:$.wrapper}h.currentComputed=C,h.watched=Symbol("watched"),h.unwatched=Symbol("unwatched")})(o.subtle||(o.subtle={}))})(it||(it={}));var mu=!1,Bb=new it.subtle.Watcher(()=>{mu||(mu=!0,queueMicrotask(()=>{mu=!1;for(let o of Bb.getPending())o.get();Bb.watch()}))}),d5=Symbol("SignalWatcherBrand"),p5=new FinalizationRegistry(o=>{o.unwatch(...it.subtle.introspectSources(o))}),Vb=new WeakMap;function yd(o){return o[d5]===!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 it.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 it.Computed(()=>{this._$So.get(),super.performUpdate()});let i=this.h=new it.subtle.Watcher(function(){let t=Vb.get(this);t!==void 0&&(t._$Si===!1&&(new Set(this.getPending()).has(t._$Su)?t.requestUpdate():t._$Sv()),this.watch())});Vb.set(i,this),p5.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(...it.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 it.Computed(()=>{i()});return this.h.watch(n),this._$St.set(n,t),(r=t?.beforeUpdate)!==null&&r!==void 0&&r?it.subtle.untrack(()=>n.get()):this.updateComplete.then(()=>it.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:h5}=lb,Ub=o=>o;var xd=o=>o.strings===void 0,jb=()=>document.createComment(""),is=(o,i,t)=>{let r=o._$AA.parentNode,n=i===void 0?o._$AB:i._$AA;if(t===void 0){let a=r.insertBefore(jb(),n),s=r.insertBefore(jb(),n);t=new h5(a,s,o,o.options)}else{let a=t._$AB.nextSibling,s=t._$AM,l=s!==o;if(l){let p;t._$AQ?.(o),t._$AM=o,t._$AP!==void 0&&(p=o._$AU)!==s._$AU&&t._$AP(p)}if(a!==n||l){let p=t._$AA;for(;p!==a;){let h=Ub(p).nextSibling;Ub(r).insertBefore(p,n),p=h}}}return t},bo=(o,i,t=o)=>(o._$AI(i,t),o),u5={},ns=(o,i=u5)=>o._$AH=i,Gb=o=>o._$AH,wd=o=>{o._$AR(),o._$AA.remove()};var El=(o,i)=>{let t=o._$AN;if(t===void 0)return!1;for(let r of t)r._$AO?.(i,!1),El(r,i);return!0},zd=o=>{let i,t;do{if((i=o._$AM)===void 0)break;t=i._$AN,t.delete(o),o=i}while(t?.size===0)},Wb=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),g5(i)}};function m5(o){this._$AN!==void 0?(zd(this),this._$AM=o,Wb(this)):this._$AM=o}function f5(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++)El(r[a],!1),zd(r[a]);else r!=null&&(El(r,!1),zd(r));else El(this,o)}var g5=o=>{o.type==lr.CHILD&&(o._$AP??(o._$AP=f5),o._$AQ??(o._$AQ=m5))},vo=class extends rr{constructor(){super(...arguments),this._$AN=void 0}_$AT(i,t,r){super._$AT(i,t,r),Wb(this),this.isConnected=i._$AU}_$AO(i,t=!0){i!==this.isConnected&&(this.isConnected=i,i?this.reconnected?.():this.disconnected?.()),t&&(El(this,i),zd(this))}setValue(i){if(xd(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 fu=!1,gu=new it.subtle.Watcher(async()=>{fu||(fu=!0,queueMicrotask(()=>{fu=!1;for(let o of gu.getPending())o.get();gu.watch()}))}),_d=class extends vo{_$S_(){var i,t;this._$Sm===void 0&&(this._$Sj=new it.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:gu,this._$Sm.watch(this._$Sj),it.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 it.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_(),it.subtle.untrack(()=>this._$SW.get())}disconnected(){this._$Sp()}reconnected(){this._$S_()}},bu=yt(_d);var vu=o=>(i,...t)=>o(i,...t.map(r=>r instanceof it.State||r instanceof it.Computed?bu(r):r)),b5=vu(u),v5=vu(Xi);var oN=it.State,aN=it.Computed,yu=(o,i)=>new it.State(o,i);function Yb(o,i){return typeof document>"u"?i:document.documentElement.getAttribute(o)||document.body?.getAttribute(o)||i}function Qb(){return Yb("t","light")}function Xb(){return Yb("m","light")}var kd=yu(Qb()),Cd=yu(Xb()),Kb=!1;function y5(){Kb||typeof window>"u"||(Kb=!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=Qb()),r===void 0&&(r=Xb()),t!==kd.get()&&kd.set(t),r!==Cd.get()&&Cd.set(r)}))}y5();var x5=yd(go),k=class extends x5{willUpdate(i){this.t=kd.get(),this.m=Cd.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}};k.dependencies={},c([d()],k.prototype,"dir",2),c([d()],k.prototype,"lang",2),c([d({reflect:!0})],k.prototype,"t",2),c([d({reflect:!0})],k.prototype,"m",2);var fa=class extends rr{constructor(i){if(super(i),this.it=B,i.type!==lr.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(i){if(i===B||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:[]}}};fa.directiveName="unsafeHTML",fa.resultType=1;var St=yt(fa);function Mi(o,i){return new Promise(t=>{function r(n){n.target===o&&(o.removeEventListener(i,r),t())}o.addEventListener(i,r)})}var xu=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}},w5=new xu,Un=w5;var Jb=_`@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 Et=class extends k{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","Tab"].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){t.preventDefault(),this.hide().then(r=>r),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=>fb(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"),Un.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"),Un.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`
5
+ take care to ensure page security.`)})(r)+o[n+1],o[0]),r:Ab}),$b=new Map,ou=o=>(i,...t)=>{let r=t.length,n,a,s=[],l=[],p,h=0,m=!1;for(;h<r;){for(p=i[h];h<r&&(a=t[h],(n=O3(a))!==void 0);)p+=n+i[++h],m=!0;h!==r&&l.push(a),s.push(p),h++}if(h===r&&s.push(i[r]),m){let f=s.join("$$lit$$");(i=$b.get(f))===void 0&&(s.raw=s,$b.set(f,i=s)),t=l}return o(i,...t)},ke=ou(u),jD=ou(Xi),GD=ou(ob);var P=o=>o??B;var Mb=o=>(i,t)=>{t!==void 0?t.addInitializer(()=>{customElements.define(o,i)}):customElements.define(o,i)};var P3={attribute:!0,type:String,converter:fo,reflect:!1,hasChanged:Za},H3=(o=P3,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 p=i.get.call(this);i.set.call(this,l),this.requestUpdate(s,p,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 p=this[s];i.call(this,l),this.requestUpdate(s,p,o,!0,l)}}throw Error("Unsupported decorator location: "+r)};function d(o){return(i,t)=>typeof t=="object"?H3(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 D(o){return d({...o,state:!0,attribute:!1})}function Lb(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 F(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 p=Symbol();return{get(){return this[p]},set(h){this[p]=h}}})();return xn(t,r,{get(){let p=s.call(this);return p===void 0&&(p=a(this),(p!==null||this.hasUpdated)&&l.call(this,p)),p}})}return xn(t,r,{get(){return a(this)}})}}var F3;function es(o){return(i,t)=>xn(i,t,{get(){return(this.renderRoot??F3??(F3=document.createDocumentFragment())).querySelectorAll(o)}})}function qb(o){return(i,t)=>xn(i,t,{async get(){return await this.updateComplete,this.renderRoot?.querySelector(o)??null}})}function Ib(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 Db="important",B3=" !"+Db,xt=yt(class extends rr{constructor(o){if(super(o),o.type!==lr.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(B3);r.includes("-")||a?t.setProperty(r,a?n.slice(0,-11):n,a?Db:""):t[r]=n}}return vt}});function K(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(p=>{let h=p;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 V3=Object.defineProperty,U3=(o,i,t)=>i in o?V3(o,i,{enumerable:!0,configurable:!0,writable:!0,value:t}):o[i]=t,au=(o,i,t)=>(U3(o,typeof i!="symbol"?i+"":i,t),t),j3=(o,i,t)=>{if(!i.has(o))throw TypeError("Cannot "+t)},su=(o,i)=>{if(Object(i)!==i)throw TypeError('Cannot use the "in" operator on this value');return o.has(i)},md=(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)},Rb=(o,i,t)=>(j3(o,i,"access private method"),t);function Nb(o,i){return Object.is(o,i)}var Ot=null,Sl=!1,fd=1,gd=Symbol("SIGNAL");function ts(o){let i=Ot;return Ot=o,i}function G3(){return Ot}function W3(){return Sl}var hu={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 bd(o){if(Sl)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(rs(Ot),i<Ot.producerNode.length&&Ot.producerNode[i]!==o&&du(Ot)){let t=Ot.producerNode[i];vd(t,Ot.producerIndexOfThis[i])}Ot.producerNode[i]!==o&&(Ot.producerNode[i]=o,Ot.producerIndexOfThis[i]=du(Ot)?Hb(o,Ot,i):0),Ot.producerLastReadVersion[i]=o.version}function K3(){fd++}function Ob(o){if(!(!o.dirty&&o.lastCleanEpoch===fd)){if(!o.producerMustRecompute(o)&&!Z3(o)){o.dirty=!1,o.lastCleanEpoch=fd;return}o.producerRecomputeValue(o),o.dirty=!1,o.lastCleanEpoch=fd}}function Pb(o){if(o.liveConsumerNode===void 0)return;let i=Sl;Sl=!0;try{for(let t of o.liveConsumerNode)t.dirty||Q3(t)}finally{Sl=i}}function Y3(){return Ot?.consumerAllowSignalWrites!==!1}function Q3(o){var i;o.dirty=!0,Pb(o),(i=o.consumerMarkedDirty)==null||i.call(o.wrapper??o)}function X3(o){return o&&(o.nextProducerIndex=0),ts(o)}function J3(o,i){if(ts(i),!(!o||o.producerNode===void 0||o.producerIndexOfThis===void 0||o.producerLastReadVersion===void 0)){if(du(o))for(let t=o.nextProducerIndex;t<o.producerNode.length;t++)vd(o.producerNode[t],o.producerIndexOfThis[t]);for(;o.producerNode.length>o.nextProducerIndex;)o.producerNode.pop(),o.producerLastReadVersion.pop(),o.producerIndexOfThis.pop()}}function Z3(o){rs(o);for(let i=0;i<o.producerNode.length;i++){let t=o.producerNode[i],r=o.producerLastReadVersion[i];if(r!==t.version||(Ob(t),r!==t.version))return!0}return!1}function Hb(o,i,t){var r;if(uu(o),rs(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]=Hb(o.producerNode[n],o,n)}return o.liveConsumerIndexOfThis.push(t),o.liveConsumerNode.push(i)-1}function vd(o,i){var t;if(uu(o),rs(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++)vd(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];rs(a),a.producerIndexOfThis[n]=i}}function du(o){var i;return o.consumerIsAlwaysLive||(((i=o?.liveConsumerNode)==null?void 0:i.length)??0)>0}function rs(o){o.producerNode??(o.producerNode=[]),o.producerIndexOfThis??(o.producerIndexOfThis=[]),o.producerLastReadVersion??(o.producerLastReadVersion=[])}function uu(o){o.liveConsumerNode??(o.liveConsumerNode=[]),o.liveConsumerIndexOfThis??(o.liveConsumerIndexOfThis=[])}function Fb(o){if(Ob(o),bd(o),o.value===pu)throw o.error;return o.value}function e5(o){let i=Object.create(t5);i.computation=o;let t=()=>Fb(i);return t[gd]=i,t}var lu=Symbol("UNSET"),cu=Symbol("COMPUTING"),pu=Symbol("ERRORED"),t5={...hu,value:lu,dirty:!0,error:null,equal:Nb,producerMustRecompute(o){return o.value===lu||o.value===cu},producerRecomputeValue(o){if(o.value===cu)throw new Error("Detected cycle in computations.");let i=o.value;o.value=cu;let t=X3(o),r,n=!1;try{r=o.computation.call(o.wrapper),n=i!==lu&&i!==pu&&o.equal.call(o.wrapper,i,r)}catch(a){r=pu,o.error=a}finally{J3(o,t)}if(n){o.value=i;return}o.value=r,o.version++}};function r5(){throw new Error}var i5=r5;function n5(){i5()}function o5(o){let i=Object.create(l5);i.value=o;let t=()=>(bd(i),i.value);return t[gd]=i,t}function a5(){return bd(this),this.value}function s5(o,i){Y3()||n5(),o.equal.call(o.wrapper,o.value,i)||(o.value=i,c5(o))}var l5={...hu,equal:Nb,value:void 0};function c5(o){o.version++,K3(),Pb(o)}var dr=Symbol("node"),nt;(o=>{var i,t,r,n,a,s;class l{constructor(m,f={}){md(this,t),au(this,i);let g=o5(m)[gd];if(this[dr]=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 a5.call(this[dr])}set(m){if(!(0,o.isState)(this))throw new TypeError("Wrong receiver type for Signal.State.prototype.set");if(W3())throw new Error("Writes to signals not permitted during Watcher callback");let f=this[dr];s5(f,m)}}i=dr,t=new WeakSet,r=function(){},o.isState=h=>typeof h=="object"&&su(t,h),o.State=l;class p{constructor(m,f){md(this,a),au(this,n);let g=e5(m)[gd];if(g.consumerAllowSignalWrites=!0,this[dr]=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 Fb(this[dr])}}n=dr,a=new WeakSet,s=function(){},o.isComputed=h=>typeof h=="object"&&su(a,h),o.Computed=p,(h=>{var m,f,b,g,v;function y($){let L,W=null;try{W=ts(null),L=$()}finally{ts(W)}return L}h.untrack=y;function S($){var L;if(!(0,o.isComputed)($)&&!(0,o.isWatcher)($))throw new TypeError("Called introspectSources without a Computed or Watcher argument");return((L=$[dr].producerNode)==null?void 0:L.map(W=>W.wrapper))??[]}h.introspectSources=S;function T($){var L;if(!(0,o.isComputed)($)&&!(0,o.isState)($))throw new TypeError("Called introspectSinks without a Signal argument");return((L=$[dr].liveConsumerNode)==null?void 0:L.map(W=>W.wrapper))??[]}h.introspectSinks=T;function N($){if(!(0,o.isComputed)($)&&!(0,o.isState)($))throw new TypeError("Called hasSinks without a Signal argument");let L=$[dr].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=$[dr].producerNode;return L?L.length>0:!1}h.hasSources=U;class I{constructor(L){md(this,f),md(this,g),au(this,m);let W=Object.create(hu);W.wrapper=this,W.consumerMarkedDirty=L,W.consumerIsAlwaysLive=!0,W.consumerAllowSignalWrites=!1,W.producerNode=[],this[dr]=W}watch(...L){if(!(0,o.isWatcher)(this))throw new TypeError("Called unwatch without Watcher receiver");Rb(this,g,v).call(this,L);let W=this[dr];W.dirty=!1;let oe=ts(W);for(let xe of L)bd(xe[dr]);ts(oe)}unwatch(...L){if(!(0,o.isWatcher)(this))throw new TypeError("Called unwatch without Watcher receiver");Rb(this,g,v).call(this,L);let W=this[dr];rs(W);for(let oe=W.producerNode.length-1;oe>=0;oe--)if(L.includes(W.producerNode[oe].wrapper)){vd(W.producerNode[oe],W.producerIndexOfThis[oe]);let xe=W.producerNode.length-1;if(W.producerNode[oe]=W.producerNode[xe],W.producerIndexOfThis[oe]=W.producerIndexOfThis[xe],W.producerNode.length--,W.producerIndexOfThis.length--,W.nextProducerIndex--,oe<W.producerNode.length){let De=W.producerIndexOfThis[oe],Ne=W.producerNode[oe];uu(Ne),Ne.liveConsumerIndexOfThis[De]=oe}}}getPending(){if(!(0,o.isWatcher)(this))throw new TypeError("Called getPending without Watcher receiver");return this[dr].producerNode.filter(W=>W.dirty).map(W=>W.wrapper)}}m=dr,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=$=>su(f,$),h.Watcher=I;function C(){var $;return($=G3())==null?void 0:$.wrapper}h.currentComputed=C,h.watched=Symbol("watched"),h.unwatched=Symbol("unwatched")})(o.subtle||(o.subtle={}))})(nt||(nt={}));var mu=!1,Bb=new nt.subtle.Watcher(()=>{mu||(mu=!0,queueMicrotask(()=>{mu=!1;for(let o of Bb.getPending())o.get();Bb.watch()}))}),d5=Symbol("SignalWatcherBrand"),p5=new FinalizationRegistry(o=>{o.unwatch(...nt.subtle.introspectSources(o))}),Vb=new WeakMap;function yd(o){return o[d5]===!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 nt.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 nt.Computed(()=>{this._$So.get(),super.performUpdate()});let i=this.h=new nt.subtle.Watcher(function(){let t=Vb.get(this);t!==void 0&&(t._$Si===!1&&(new Set(this.getPending()).has(t._$Su)?t.requestUpdate():t._$Sv()),this.watch())});Vb.set(i,this),p5.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(...nt.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 nt.Computed(()=>{i()});return this.h.watch(n),this._$St.set(n,t),(r=t?.beforeUpdate)!==null&&r!==void 0&&r?nt.subtle.untrack(()=>n.get()):this.updateComplete.then(()=>nt.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:h5}=lb,Ub=o=>o;var xd=o=>o.strings===void 0,jb=()=>document.createComment(""),is=(o,i,t)=>{let r=o._$AA.parentNode,n=i===void 0?o._$AB:i._$AA;if(t===void 0){let a=r.insertBefore(jb(),n),s=r.insertBefore(jb(),n);t=new h5(a,s,o,o.options)}else{let a=t._$AB.nextSibling,s=t._$AM,l=s!==o;if(l){let p;t._$AQ?.(o),t._$AM=o,t._$AP!==void 0&&(p=o._$AU)!==s._$AU&&t._$AP(p)}if(a!==n||l){let p=t._$AA;for(;p!==a;){let h=Ub(p).nextSibling;Ub(r).insertBefore(p,n),p=h}}}return t},bo=(o,i,t=o)=>(o._$AI(i,t),o),u5={},ns=(o,i=u5)=>o._$AH=i,Gb=o=>o._$AH,wd=o=>{o._$AR(),o._$AA.remove()};var El=(o,i)=>{let t=o._$AN;if(t===void 0)return!1;for(let r of t)r._$AO?.(i,!1),El(r,i);return!0},zd=o=>{let i,t;do{if((i=o._$AM)===void 0)break;t=i._$AN,t.delete(o),o=i}while(t?.size===0)},Wb=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),g5(i)}};function m5(o){this._$AN!==void 0?(zd(this),this._$AM=o,Wb(this)):this._$AM=o}function f5(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++)El(r[a],!1),zd(r[a]);else r!=null&&(El(r,!1),zd(r));else El(this,o)}var g5=o=>{o.type==lr.CHILD&&(o._$AP??(o._$AP=f5),o._$AQ??(o._$AQ=m5))},vo=class extends rr{constructor(){super(...arguments),this._$AN=void 0}_$AT(i,t,r){super._$AT(i,t,r),Wb(this),this.isConnected=i._$AU}_$AO(i,t=!0){i!==this.isConnected&&(this.isConnected=i,i?this.reconnected?.():this.disconnected?.()),t&&(El(this,i),zd(this))}setValue(i){if(xd(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 fu=!1,gu=new nt.subtle.Watcher(async()=>{fu||(fu=!0,queueMicrotask(()=>{fu=!1;for(let o of gu.getPending())o.get();gu.watch()}))}),_d=class extends vo{_$S_(){var i,t;this._$Sm===void 0&&(this._$Sj=new nt.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:gu,this._$Sm.watch(this._$Sj),nt.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 nt.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_(),nt.subtle.untrack(()=>this._$SW.get())}disconnected(){this._$Sp()}reconnected(){this._$S_()}},bu=yt(_d);var vu=o=>(i,...t)=>o(i,...t.map(r=>r instanceof nt.State||r instanceof nt.Computed?bu(r):r)),b5=vu(u),v5=vu(Xi);var oN=nt.State,aN=nt.Computed,yu=(o,i)=>new nt.State(o,i);function Yb(o,i){return typeof document>"u"?i:document.documentElement.getAttribute(o)||document.body?.getAttribute(o)||i}function Qb(){return Yb("t","light")}function Xb(){return Yb("m","light")}var kd=yu(Qb()),Cd=yu(Xb()),Kb=!1;function y5(){Kb||typeof window>"u"||(Kb=!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=Qb()),r===void 0&&(r=Xb()),t!==kd.get()&&kd.set(t),r!==Cd.get()&&Cd.set(r)}))}y5();var x5=yd(go),k=class extends x5{willUpdate(i){this.t=kd.get(),this.m=Cd.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}};k.dependencies={},c([d()],k.prototype,"dir",2),c([d()],k.prototype,"lang",2),c([d({reflect:!0})],k.prototype,"t",2),c([d({reflect:!0})],k.prototype,"m",2);var fa=class extends rr{constructor(i){if(super(i),this.it=B,i.type!==lr.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(i){if(i===B||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:[]}}};fa.directiveName="unsafeHTML",fa.resultType=1;var St=yt(fa);function Mi(o,i){return new Promise(t=>{function r(n){n.target===o&&(o.removeEventListener(i,r),t())}o.addEventListener(i,r)})}var xu=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}},w5=new xu,Un=w5;var Jb=_`@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 Et=class extends k{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","Tab"].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){t.preventDefault(),this.hide().then(r=>r),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=>fb(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"),Un.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"),Un.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"
@@ -36,7 +36,7 @@ import{a as Fn,b as h3,c as _r,d as c,e as V}from"./chunks/zn.UBLZO6CI.js";var K
36
36
  </div>
37
37
  </zn-popup>
38
38
  `}};Et.styles=z(Jb),c([F(".dropdown")],Et.prototype,"popup",2),c([F(".dropdown__trigger")],Et.prototype,"trigger",2),c([F(".dropdown__panel")],Et.prototype,"panel",2),c([d({type:Boolean,reflect:!0})],Et.prototype,"open",2),c([d({reflect:!0})],Et.prototype,"placement",2),c([d({type:Boolean,reflect:!0})],Et.prototype,"disabled",2),c([d({attribute:"stay-open-on-select",type:Boolean,reflect:!0})],Et.prototype,"stayOpenOnSelect",2),c([d({attribute:!1})],Et.prototype,"containingElement",2),c([d({type:Number})],Et.prototype,"distance",2),c([d({type:Number})],Et.prototype,"skidding",2),c([d({type:Boolean})],Et.prototype,"hoist",2),c([d({reflect:!0})],Et.prototype,"sync",2),c([d()],Et.prototype,"uri",2),c([d({type:String})],Et.prototype,"fetchedContent",2),c([K("open",{waitUntilFirstUpdate:!0})],Et.prototype,"handleOpenChange",1);var pr=Et;Et.define("zn-dropdown");var Zb=(o,i,t)=>{for(let r of i)if(r[0]===o)return(0,r[1])();return t?.()};function ev(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=[],p={},h=0,m=t(o),f=m.length*8;for(let b=2;h<64;b++)if(!p[b]){for(let g=0;g<313;g+=b)p[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 S=v[y-15],T=v[y-2],N=i(S,7)^i(S,18)^S>>>3,U=i(T,17)^i(T,19)^T>>>10;v[y]=v[y-16]+N+v[y-7]+U|0}for(let y=0;y<64;y++){let S=g[0],T=g[1],N=g[2],U=g[3],I=g[4],C=g[5],$=g[6],L=g[7],W=i(I,6)^i(I,11)^i(I,25),oe=I&C^~I&$,xe=L+W+oe+l[y]+v[y]|0,De=i(S,2)^i(S,13)^i(S,22),Ne=S&T^S&N^T&N,rt=De+Ne|0;g[7]=$,g[6]=C,g[5]=I,g[4]=U+xe|0,g[3]=N,g[2]=T,g[1]=S,g[0]=xe+rt|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 Tl=class extends fa{};Tl.directiveName="unsafeSVG",Tl.resultType=2;var tv=yt(Tl);var rv=_`@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 os,wu;function iv(){return wu??(wu=import("./chunks/zn.SBAUMVLL.js").then(o=>{os=o.icons}).catch(o=>{wu=void 0,console.warn("<zn-icon> failed to load the lucide icon chunk",o)})),wu}var hr=class hr extends k{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 hr.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(),Ja(u`
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=[],p={},h=0,m=t(o),f=m.length*8;for(let b=2;h<64;b++)if(!p[b]){for(let g=0;g<313;g+=b)p[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 S=v[y-15],T=v[y-2],N=i(S,7)^i(S,18)^S>>>3,U=i(T,17)^i(T,19)^T>>>10;v[y]=v[y-16]+N+v[y-7]+U|0}for(let y=0;y<64;y++){let S=g[0],T=g[1],N=g[2],U=g[3],I=g[4],C=g[5],$=g[6],L=g[7],W=i(I,6)^i(I,11)^i(I,25),oe=I&C^~I&$,xe=L+W+oe+l[y]+v[y]|0,De=i(S,2)^i(S,13)^i(S,22),Ne=S&T^S&N^T&N,it=De+Ne|0;g[7]=$,g[6]=C,g[5]=I,g[4]=U+xe|0,g[3]=N,g[2]=T,g[1]=S,g[0]=xe+it|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 Tl=class extends fa{};Tl.directiveName="unsafeSVG",Tl.resultType=2;var tv=yt(Tl);var rv=_`@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 os,wu;function iv(){return wu??(wu=import("./chunks/zn.SBAUMVLL.js").then(o=>{os=o.icons}).catch(o=>{wu=void 0,console.warn("<zn-icon> failed to load the lucide icon chunk",o)})),wu}var hr=class hr extends k{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 hr.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(),Ja(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">
@@ -136,7 +136,7 @@ import{a as Fn,b as h3,c as _r,d as c,e as V}from"./chunks/zn.UBLZO6CI.js";var K
136
136
  ${this.loadingText}<span class="loading-countdown"></span>
137
137
  </span>
138
138
  </div>
139
- `:null}`}};le.styles=[z(Sd),z(ov)],le.dependencies={"zn-tooltip":gi,"zn-icon":ne},c([F(".button")],le.prototype,"button",2),c([es(".loading-countdown")],le.prototype,"countdownContainer",2),c([d({})],le.prototype,"color",2),c([d({attribute:"hover-color"})],le.prototype,"hoverColor",2),c([d({type:Boolean})],le.prototype,"text",2),c([d({type:Boolean})],le.prototype,"outline",2),c([d({type:Boolean})],le.prototype,"disabled",2),c([d({type:Boolean})],le.prototype,"grow",2),c([d({type:Boolean})],le.prototype,"square",2),c([d({attribute:"icon-button",converter:{fromAttribute:t=>t==="small"||t==="round"?t:t!==null,toAttribute:t=>t==="small"||t==="round"?t:t?"":null}})],le.prototype,"iconButton",2),c([d({type:Boolean})],le.prototype,"plain",2),c([d({type:Boolean,attribute:"no-hover"})],le.prototype,"noHover",2),c([d({type:Boolean,reflect:!0})],le.prototype,"pill",2),c([d({type:Boolean,attribute:"panel-bg"})],le.prototype,"panelBackground",2),c([d({attribute:"dropdown-closer",type:Boolean})],le.prototype,"dropdownCloser",2),c([d({type:Number})],le.prototype,"notification",2),c([d({attribute:"muted-notifications",type:Boolean})],le.prototype,"mutedNotifications",2),c([d()],le.prototype,"verticalAlign",2),c([d()],le.prototype,"content",2),c([d()],le.prototype,"icon",2),c([d()],le.prototype,"gaid",2),c([d({attribute:"icon-position"})],le.prototype,"iconPosition",2),c([d({attribute:"icon-size"})],le.prototype,"iconSize",2),c([d({attribute:"icon-color"})],le.prototype,"iconColor",2),c([d({attribute:"icon-fill"})],le.prototype,"iconFill",2),c([d({attribute:"icon-library"})],le.prototype,"iconLibrary",2),c([d()],le.prototype,"type",2),c([d()],le.prototype,"name",2),c([d()],le.prototype,"value",2),c([d()],le.prototype,"form",2),c([d({attribute:"formaction"})],le.prototype,"formAction",2),c([d({attribute:"formenctype"})],le.prototype,"formEnctype",2),c([d({attribute:"formmethod"})],le.prototype,"formMethod",2),c([d({attribute:"formnovalidate",type:Boolean})],le.prototype,"formNoValidate",2),c([d({attribute:"formtarget"})],le.prototype,"formTarget",2),c([d()],le.prototype,"href",2),c([d()],le.prototype,"target",2),c([d({attribute:"data-target"})],le.prototype,"dataTarget",2),c([d()],le.prototype,"rel",2),c([d()],le.prototype,"tooltip",2),c([d()],le.prototype,"label",2),c([d({type:Boolean,attribute:"auto-click"})],le.prototype,"autoClick",2),c([d({type:Number,attribute:"auto-click-delay"})],le.prototype,"autoClickDelay",2),c([d({type:String,attribute:"loading-text"})],le.prototype,"loadingText",2),c([d({type:String,attribute:"loading-text-position"})],le.prototype,"loadingTextPosition",2),c([d({type:Boolean})],le.prototype,"loading",2),c([K("autoClick")],le.prototype,"handleAutoClickChange",1);var $e=le;le.define("zn-button");var Oe=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 as=class extends k{constructor(){super();this._resizeFrame=null;new Oe(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 z5=as;as.define("zn-absolute-container");var wn=Math.min,Ji=Math.max,Al=Math.round,Ml=Math.floor,zn=o=>({x:o,y:o}),_5={left:"right",right:"left",bottom:"top",top:"bottom"};function _u(o,i,t){return Ji(o,wn(i,t))}function ga(o,i){return typeof o=="function"?o(i):o}function xo(o){return o.split("-")[0]}function ba(o){return o.split("-")[1]}function ku(o){return o==="x"?"y":"x"}function Td(o){return o==="y"?"height":"width"}function _n(o){let i=o[0];return i==="t"||i==="b"?"y":"x"}function $d(o){return ku(_n(o))}function lv(o,i,t){t===void 0&&(t=!1);let r=ba(o),n=$d(o),a=Td(n),s=n==="x"?r===(t?"end":"start")?"right":"left":r==="start"?"bottom":"top";return i.reference[a]>i.floating[a]&&(s=$l(s)),[s,$l(s)]}function cv(o){let i=$l(o);return[Ed(o),i,Ed(i)]}function Ed(o){return o.includes("start")?o.replace("start","end"):o.replace("end","start")}var av=["left","right"],sv=["right","left"],k5=["top","bottom"],C5=["bottom","top"];function S5(o,i,t){switch(o){case"top":case"bottom":return t?i?sv:av:i?av:sv;case"left":case"right":return i?k5:C5;default:return[]}}function dv(o,i,t,r){let n=ba(o),a=S5(xo(o),t==="start",r);return n&&(a=a.map(s=>s+"-"+n),i&&(a=a.concat(a.map(Ed)))),a}function $l(o){let i=xo(o);return _5[i]+o.slice(i.length)}function E5(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 Cu(o){return typeof o!="number"?E5(o):{top:o,right:o,bottom:o,left:o}}function va(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 pv(o,i,t){let{reference:r,floating:n}=o,a=_n(i),s=$d(i),l=Td(s),p=xo(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(p){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=ba(i);return v&&(g[s]+=b*(v==="end"?1:-1)*(t&&h?-1:1)),g}async function hv(o,i){var t;i===void 0&&(i={});let{x:r,y:n,platform:a,rects:s,elements:l,strategy:p}=o,{boundary:h="clippingAncestors",rootBoundary:m="viewport",elementContext:f="floating",altBoundary:b=!1,padding:g=0}=ga(i,o),v=Cu(g),S=l[b?f==="floating"?"reference":"floating":f],T=va(await a.getClippingRect({element:(t=await(a.isElement==null?void 0:a.isElement(S)))==null||t?S:S.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(l.floating)),boundary:h,rootBoundary:m,strategy:p})),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)),I=await(a.isElement==null?void 0:a.isElement(U))&&await(a.getScale==null?void 0:a.getScale(U))||{x:1,y:1},C=va(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:N,offsetParent:U,strategy:p}):N);return{top:(T.top-C.top+v.top)/I.y,bottom:(C.bottom-T.bottom+v.bottom)/I.y,left:(T.left-C.left+v.left)/I.x,right:(C.right-T.right+v.right)/I.x}}var T5=50,uv=async(o,i,t)=>{let{placement:r="bottom",strategy:n="absolute",middleware:a=[],platform:s}=t,l=s.detectOverflow?s:{...s,detectOverflow:hv},p=await(s.isRTL==null?void 0:s.isRTL(i)),h=await s.getElementRects({reference:o,floating:i,strategy:n}),{x:m,y:f}=pv(h,r,p),b=r,g=0,v={};for(let y=0;y<a.length;y++){let S=a[y];if(!S)continue;let{name:T,fn:N}=S,{x:U,y:I,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=I??f,v[T]={...v[T],...C},$&&g<T5&&(g++,typeof $=="object"&&($.placement&&(b=$.placement),$.rects&&(h=$.rects===!0?await s.getElementRects({reference:o,floating:i,strategy:n}):$.rects),{x:m,y:f}=pv(h,b,p)),y=-1)}return{x:m,y:f,placement:b,strategy:n,middlewareData:v}},mv=o=>({name:"arrow",options:o,async fn(i){let{x:t,y:r,placement:n,rects:a,platform:s,elements:l,middlewareData:p}=i,{element:h,padding:m=0}=ga(o,i)||{};if(h==null)return{};let f=Cu(m),b={x:t,y:r},g=$d(n),v=Td(g),y=await s.getDimensions(h),S=g==="y",T=S?"top":"left",N=S?"bottom":"right",U=S?"clientHeight":"clientWidth",I=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 W=I/2-C/2,oe=L/2-y[v]/2-1,xe=wn(f[T],oe),De=wn(f[N],oe),Ne=L-y[v]-De,rt=L/2-y[v]/2+W,er=_u(xe,rt,Ne),Pr=!p.arrow&&ba(n)!=null&&rt!==er&&a.reference[v]/2-(rt<xe?xe:De)-y[v]/2<0,wr=Pr?rt<xe?rt-xe:rt-Ne:0;return{[g]:b[g]+wr,data:{[g]:er,centerOffset:rt-er-wr,...Pr&&{alignmentOffset:wr}},reset:Pr}}});var fv=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:p,elements:h}=i,{mainAxis:m=!0,crossAxis:f=!0,fallbackPlacements:b,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:v="none",flipAlignment:y=!0,...S}=ga(o,i);if((t=a.arrow)!=null&&t.alignmentOffset)return{};let T=xo(n),N=_n(l),U=xo(l)===l,I=await(p.isRTL==null?void 0:p.isRTL(h.floating)),C=b||(U||!y?[$l(l)]:cv(l)),$=v!=="none";!b&&$&&C.push(...dv(l,y,v,I));let L=[l,...C],W=await p.detectOverflow(i,S),oe=[],xe=((r=a.flip)==null?void 0:r.overflows)||[];if(m&&oe.push(W[T]),f){let er=lv(n,s,I);oe.push(W[er[0]],W[er[1]])}if(xe=[...xe,{placement:n,overflows:oe}],!oe.every(er=>er<=0)){var De,Ne;let er=(((De=a.flip)==null?void 0:De.index)||0)+1,Pr=L[er];if(Pr&&(!(f==="alignment"?N!==_n(Pr):!1)||xe.every(tr=>_n(tr.placement)===N?tr.overflows[0]>0:!0)))return{data:{index:er,overflows:xe},reset:{placement:Pr}};let wr=(Ne=xe.filter(Nt=>Nt.overflows[0]<=0).sort((Nt,tr)=>Nt.overflows[1]-tr.overflows[1])[0])==null?void 0:Ne.placement;if(!wr)switch(g){case"bestFit":{var rt;let Nt=(rt=xe.filter(tr=>{if($){let Mt=_n(tr.placement);return Mt===N||Mt==="y"}return!0}).map(tr=>[tr.placement,tr.overflows.filter(Mt=>Mt>0).reduce((Mt,uo)=>Mt+uo,0)]).sort((tr,Mt)=>tr[1]-Mt[1])[0])==null?void 0:rt[0];Nt&&(wr=Nt);break}case"initialPlacement":wr=l;break}if(n!==wr)return{reset:{placement:wr}}}return{}}}};var $5=new Set(["left","top"]);async function A5(o,i){let{placement:t,platform:r,elements:n}=o,a=await(r.isRTL==null?void 0:r.isRTL(n.floating)),s=xo(t),l=ba(t),p=_n(t)==="y",h=$5.has(s)?-1:1,m=a&&p?-1:1,f=ga(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),p?{x:g*m,y:b*h}:{x:b*h,y:g*m}}var gv=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,p=await A5(i,o);return s===((t=l.offset)==null?void 0:t.placement)&&(r=l.arrow)!=null&&r.alignmentOffset?{}:{x:n+p.x,y:a+p.y,data:{...p,placement:s}}}}},bv=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:p={fn:N=>{let{x:U,y:I}=N;return{x:U,y:I}}},...h}=ga(o,i),m={x:t,y:r},f=await a.detectOverflow(i,h),b=_n(n),g=ku(b),v=m[g],y=m[b],S=(N,U)=>_u(U+f[N==="y"?"top":"left"],U,U-f[N==="y"?"bottom":"right"]);s&&(v=S(g,v)),l&&(y=S(b,y));let T=p.fn({...i,[g]:v,[b]:y});return{...T,data:{x:T.x-t,y:T.y-r,enabled:{[g]:s,[b]:l}}}}}};var vv=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}=ga(o,i),p=await n.detectOverflow(i,l),h=xo(t),m=ba(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 S=g-p.top-p.bottom,T=b-p.left-p.right,N=wn(g-p[v],S),U=wn(b-p[y],T),I=i.middlewareData.shift,C=!I,$=N,L=U;I!=null&&I.enabled.x&&(L=T),I!=null&&I.enabled.y&&($=S),C&&!m&&(f?L=b-2*Ji(p.left,p.right):$=g-2*Ji(p.top,p.bottom)),await s({...i,availableWidth:L,availableHeight:$});let W=await n.getDimensions(a.floating);return b!==W.width||g!==W.height?{reset:{rects:!0}}:{}}}};function Ad(){return typeof window<"u"}function xa(o){return xv(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=(xv(o)?o.ownerDocument:o.document)||window.document)==null?void 0:i.documentElement}function xv(o){return Ad()?o instanceof Node||o instanceof Hr(o).Node:!1}function Zi(o){return Ad()?o instanceof Element||o instanceof Hr(o).Element:!1}function jn(o){return Ad()?o instanceof HTMLElement||o instanceof Hr(o).HTMLElement:!1}function yv(o){return!Ad()||typeof ShadowRoot>"u"?!1:o instanceof ShadowRoot||o instanceof Hr(o).ShadowRoot}function Ll(o){let{overflow:i,overflowX:t,overflowY:r,display:n}=en(o);return/auto|scroll|overlay|hidden|clip/.test(i+r+t)&&n!=="inline"&&n!=="contents"}function wv(o){return/^(table|td|th)$/.test(xa(o))}function ql(o){try{if(o.matches(":popover-open"))return!0}catch{}try{return o.matches(":modal")}catch{return!1}}var M5=/transform|translate|scale|rotate|perspective|filter/,L5=/paint|layout|strict|content/,ya=o=>!!o&&o!=="none",Su;function ls(o){let i=Zi(o)?en(o):o;return ya(i.transform)||ya(i.translate)||ya(i.scale)||ya(i.rotate)||ya(i.perspective)||!Md()&&(ya(i.backdropFilter)||ya(i.filter))||M5.test(i.willChange||"")||L5.test(i.contain||"")}function zv(o){let i=wo(o);for(;jn(i)&&!cs(i);){if(ls(i))return i;if(ql(i))return null;i=wo(i)}return null}function Md(){return Su==null&&(Su=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Su}function cs(o){return/^(html|body|#document)$/.test(xa(o))}function en(o){return Hr(o).getComputedStyle(o)}function Il(o){return Zi(o)?{scrollLeft:o.scrollLeft,scrollTop:o.scrollTop}:{scrollLeft:o.scrollX,scrollTop:o.scrollY}}function wo(o){if(xa(o)==="html")return o;let i=o.assignedSlot||o.parentNode||yv(o)&&o.host||kn(o);return yv(i)?i.host:i}function _v(o){let i=wo(o);return cs(i)?(o.ownerDocument||o).body:jn(i)&&Ll(i)?i:_v(i)}function ss(o,i,t){var r;i===void 0&&(i=[]),t===void 0&&(t=!0);let n=_v(o),a=n===((r=o.ownerDocument)==null?void 0:r.body),s=Hr(n);if(a){let l=Ld(s);return i.concat(s,s.visualViewport||[],Ll(n)?n:[],l&&t?ss(l):[])}else return i.concat(n,ss(n,[],t))}function Ld(o){return o.parent&&Object.getPrototypeOf(o.parent)?o.frameElement:null}function Sv(o){let i=en(o),t=parseFloat(i.width)||0,r=parseFloat(i.height)||0,n=jn(o),a=n?o.offsetWidth:t,s=n?o.offsetHeight:r,l=Al(t)!==a||Al(r)!==s;return l&&(t=a,r=s),{width:t,height:r,$:l}}function Tu(o){return Zi(o)?o:o.contextElement}function ds(o){let i=Tu(o);if(!jn(i))return zn(1);let t=i.getBoundingClientRect(),{width:r,height:n,$:a}=Sv(i),s=(a?Al(t.width):t.width)/r,l=(a?Al(t.height):t.height)/n;return(!s||!Number.isFinite(s))&&(s=1),(!l||!Number.isFinite(l))&&(l=1),{x:s,y:l}}var q5=zn(0);function Ev(o){let i=Hr(o);return!Md()||!i.visualViewport?q5:{x:i.visualViewport.offsetLeft,y:i.visualViewport.offsetTop}}function I5(o,i,t){return i===void 0&&(i=!1),!!t&&i&&t===Hr(o)}function wa(o,i,t,r){i===void 0&&(i=!1),t===void 0&&(t=!1);let n=o.getBoundingClientRect(),a=Tu(o),s=zn(1);i&&(r?Zi(r)&&(s=ds(r)):s=ds(o));let l=I5(a,t,r)?Ev(a):zn(0),p=(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=Zi(r)?Hr(r):r,v=b,y=Ld(v);for(;y&&g!==v;){let S=ds(y),T=y.getBoundingClientRect(),N=en(y),U=T.left+(y.clientLeft+parseFloat(N.paddingLeft))*S.x,I=T.top+(y.clientTop+parseFloat(N.paddingTop))*S.y;p*=S.x,h*=S.y,m*=S.x,f*=S.y,p+=U,h+=I,v=Hr(y),y=Ld(v)}}return va({width:m,height:f,x:p,y:h})}function qd(o,i){let t=Il(o).scrollLeft;return i?i.left+t:wa(kn(o)).left+t}function Tv(o,i){let t=o.getBoundingClientRect(),r=t.left+i.scrollLeft-qd(o,t),n=t.top+i.scrollTop;return{x:r,y:n}}function D5(o){let{elements:i,rect:t,offsetParent:r,strategy:n}=o,a=n==="fixed",s=kn(r),l=i?ql(i.floating):!1;if(r===s||l&&a)return t;let p={scrollLeft:0,scrollTop:0},h=zn(1),m=zn(0),f=jn(r);if((f||!a)&&((xa(r)!=="body"||Ll(s))&&(p=Il(r)),f)){let g=wa(r);h=ds(r),m.x=g.x+r.clientLeft,m.y=g.y+r.clientTop}let b=s&&!f&&!a?Tv(s,p):zn(0);return{width:t.width*h.x,height:t.height*h.y,x:t.x*h.x-p.scrollLeft*h.x+m.x+b.x,y:t.y*h.y-p.scrollTop*h.y+m.y+b.y}}function R5(o){return o.getClientRects?Array.from(o.getClientRects()):[]}function N5(o){let i=Il(o),t=o.ownerDocument.body,r=Ji(o.scrollWidth,o.clientWidth,t.scrollWidth,t.clientWidth),n=Ji(o.scrollHeight,o.clientHeight,t.scrollHeight,t.clientHeight),a=-i.scrollLeft+qd(o),s=-i.scrollTop;return en(t).direction==="rtl"&&(a+=Ji(o.clientWidth,t.clientWidth)-r),{width:r,height:n,x:a,y:s}}var O5=25;function P5(o,i,t){t===void 0&&(t="viewport");let r=t==="layoutViewport",n=Hr(o),a=kn(o),s=n.visualViewport,l=a.clientWidth,p=a.clientHeight,h=0,m=0;if(s){let b=!Md()||i==="fixed";r?b||(h=-s.offsetLeft,m=-s.offsetTop):(l=s.width,p=s.height,b&&(h=s.offsetLeft,m=s.offsetTop))}if(qd(a)<=0){let b=a.ownerDocument,g=b.body,v=getComputedStyle(g),y=b.compatMode==="CSS1Compat"&&parseFloat(v.marginLeft)+parseFloat(v.marginRight)||0,S=Math.abs(a.clientWidth-g.clientWidth-y),T=getComputedStyle(a).scrollbarGutter==="stable both-edges"?S/2:S;T<=O5&&(l-=T)}return{width:l,height:p,x:h,y:m}}function H5(o,i){let t=wa(o,!0,i==="fixed"),r=t.top+o.clientTop,n=t.left+o.clientLeft,a=ds(o),s=o.clientWidth*a.x,l=o.clientHeight*a.y,p=n*a.x,h=r*a.y;return{width:s,height:l,x:p,y:h}}function kv(o,i,t){let r;if(i==="viewport"||i==="layoutViewport")r=P5(o,t,i);else if(i==="document")r=N5(kn(o));else if(Zi(i))r=H5(i,t);else{let n=Ev(o);r={x:i.x-n.x,y:i.y-n.y,width:i.width,height:i.height}}return va(r)}function F5(o,i){let t=i.get(o);if(t)return t;let r=ss(o,[],!1).filter(l=>Zi(l)&&xa(l)!=="body"),n=null,a=en(o).position==="fixed",s=a?wo(o):o;for(;Zi(s)&&!cs(s);){let l=en(s),p=ls(s),h=n?n.position:a?"fixed":"";!p&&(h==="fixed"||h==="absolute"&&l.position==="static")?r=r.filter(f=>f!==s):n=l,s=wo(s)}return i.set(o,r),r}function B5(o){let{element:i,boundary:t,rootBoundary:r,strategy:n}=o,s=[...t==="clippingAncestors"?ql(i)?[]:F5(i,this._c):[].concat(t),r],l=kv(i,s[0],n),p=l.top,h=l.right,m=l.bottom,f=l.left;for(let b=1;b<s.length;b++){let g=kv(i,s[b],n);p=Ji(g.top,p),h=wn(g.right,h),m=wn(g.bottom,m),f=Ji(g.left,f)}return{width:h-f,height:m-p,x:f,y:p}}function V5(o){let{width:i,height:t}=Sv(o);return{width:i,height:t}}function U5(o,i,t){let r=jn(i),n=kn(i),a=t==="fixed",s=wa(o,!0,a,i),l={scrollLeft:0,scrollTop:0},p=zn(0);if((r||!a)&&((xa(i)!=="body"||Ll(n))&&(l=Il(i)),r)){let b=wa(i,!0,a,i);p.x=b.x+i.clientLeft,p.y=b.y+i.clientTop}!r&&n&&(p.x=qd(n));let h=n&&!r&&!a?Tv(n,l):zn(0),m=s.left+l.scrollLeft-p.x-h.x,f=s.top+l.scrollTop-p.y-h.y;return{x:m,y:f,width:s.width,height:s.height}}function Eu(o){return en(o).position==="static"}function Cv(o,i){if(!jn(o)||en(o).position==="fixed")return null;if(i)return i(o);let t=o.offsetParent;return kn(o)===t&&(t=t.ownerDocument.body),t}function $v(o,i){let t=Hr(o);if(ql(o))return t;if(!jn(o)){let n=wo(o);for(;n&&!cs(n);){if(Zi(n)&&!Eu(n))return n;n=wo(n)}return t}let r=Cv(o,i);for(;r&&wv(r)&&Eu(r);)r=Cv(r,i);return r&&cs(r)&&Eu(r)&&!ls(r)?t:r||zv(o)||t}var j5=async function(o){let i=this.getOffsetParent||$v,t=this.getDimensions,r=await t(o.floating);return{reference:U5(o.reference,await i(o.floating),o.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function G5(o){return en(o).direction==="rtl"}var Dl={convertOffsetParentRelativeRectToViewportRelativeRect:D5,getDocumentElement:kn,getClippingRect:B5,getOffsetParent:$v,getElementRects:j5,getClientRects:R5,getDimensions:V5,getScale:ds,isElement:Zi,isRTL:G5};function Av(o,i){return o.x===i.x&&o.y===i.y&&o.width===i.width&&o.height===i.height}function W5(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:S}=b;if(m||i(),!y||!S)return;let T=Ml(v),N=Ml(a.clientWidth-(g+y)),U=Ml(a.clientHeight-(v+S)),I=Ml(g),$={rootMargin:-T+"px "+-N+"px "+-U+"px "+-I+"px",threshold:Ji(0,wn(1,f))||1},L=!0;function W(oe){let xe=oe[0].intersectionRatio;if(!Av(b,o.getBoundingClientRect()))return l();if(xe!==f){if(!L)return l();xe?l(!1,xe):n=setTimeout(()=>{l(!1,1e-7)},1e3)}L=!1}try{r=new IntersectionObserver(W,{...$,root:a.ownerDocument})}catch{r=new IntersectionObserver(W,$)}r.observe(o)}let p=Hr(o),h=()=>l(t);return p.addEventListener("resize",h),l(!0),()=>{p.removeEventListener("resize",h),s()}}function Id(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:p=!1}=r,h=Tu(o),m=n||a?[...h?ss(h):[],...i?ss(i):[]]:[];m.forEach(T=>{n&&T.addEventListener("scroll",t),a&&T.addEventListener("resize",t)});let f=h&&l?W5(h,t,a):null,b=-1,g=null;s&&(g=new ResizeObserver(T=>{let[N]=T;N&&N.target===h&&g&&i&&(g.unobserve(i),cancelAnimationFrame(b),b=requestAnimationFrame(()=>{var U;(U=g)==null||U.observe(i)})),t()}),h&&!p&&g.observe(h),i&&g.observe(i));let v,y=p?wa(o):null;p&&S();function S(){let T=wa(o);y&&!Av(y,T)&&t(),y=T,v=requestAnimationFrame(S)}return t(),()=>{var T;m.forEach(N=>{n&&N.removeEventListener("scroll",t),a&&N.removeEventListener("resize",t)}),f?.(),(T=g)==null||T.disconnect(),g=null,p&&cancelAnimationFrame(v)}}var Dd=gv;var Rd=bv,Nd=fv,Rl=vv;var Mv=mv;var Od=(o,i,t)=>{let r=new Map,n=t??{},a={...Dl,...n.platform,_c:r};return uv(o,i,{...n,platform:a})};function Lv(o){return K5(o)}function $u(o){return o.assignedSlot?o.assignedSlot:o.parentNode instanceof ShadowRoot?o.parentNode.host:o.parentNode}function K5(o){for(let i=o;i;i=$u(i))if(i instanceof Element&&getComputedStyle(i).display==="none")return null;for(let i=$u(o);i;i=$u(i)){if(!(i instanceof Element))continue;let t=getComputedStyle(i);if(t.display!=="contents"&&(t.position!=="static"||ls(t)||i.tagName==="BODY"))return i}return null}var qv=_`@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 Y5(o){return o!==null&&typeof o=="object"&&"getBoundingClientRect"in o&&("contextElement"in o?o instanceof Element:!0)}var Re=class extends k{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,p,h,m,f,b;n?t.top<r.top?(a=t.left,s=t.bottom,l=t.right,p=t.bottom,h=r.left,m=r.top,f=r.right,b=r.top):(a=r.left,s=r.bottom,l=r.right,p=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,p=r.top,h=t.right,m=t.bottom,f=r.left,b=r.bottom):(a=r.right,s=r.top,l=t.left,p=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",`${p}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||Y5(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=Id(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=[Dd({mainAxis:this.distance,crossAxis:this.skidding})];this.sync?t.push(Rl({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(Nd({boundary:this.flipBoundary,fallbackPlacements:this.flipFallbackPlacements,fallbackStrategy:this.flipFallbackStrategy==="best-fit"?"bestFit":"initialPlacement",padding:this.flipPadding})),this.shift&&t.push(Rd({boundary:this.shiftBoundary,padding:this.shiftPadding})),this.autoSize?t.push(Rl({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(Mv({element:this.arrowEl,padding:this.arrowPadding}));let r=this.strategy==="absolute"?n=>Dl.getOffsetParent(n,Lv):Dl.getOffsetParent;Od(this.anchorEl,this.popup,{placement:this.placement,middleware:t,strategy:this.strategy,platform:{...Dl,getOffsetParent:r}}).then(({x:n,y:a,middlewareData:s,placement:l})=>{let p={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`}),!!this.popup?.isConnected&&(this.popup.matches(":popover-open")||this.popup.showPopover(),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,[p]:"calc(var(--arrow-size-diagonal) * -1)"})}}),requestAnimationFrame(()=>this.updateHoverBridge())}render(){return u`
139
+ `:null}`}};le.styles=[z(Sd),z(ov)],le.dependencies={"zn-tooltip":gi,"zn-icon":ne},c([F(".button")],le.prototype,"button",2),c([es(".loading-countdown")],le.prototype,"countdownContainer",2),c([d({})],le.prototype,"color",2),c([d({attribute:"hover-color"})],le.prototype,"hoverColor",2),c([d({type:Boolean})],le.prototype,"text",2),c([d({type:Boolean})],le.prototype,"outline",2),c([d({type:Boolean})],le.prototype,"disabled",2),c([d({type:Boolean})],le.prototype,"grow",2),c([d({type:Boolean})],le.prototype,"square",2),c([d({attribute:"icon-button",converter:{fromAttribute:t=>t==="small"||t==="round"?t:t!==null,toAttribute:t=>t==="small"||t==="round"?t:t?"":null}})],le.prototype,"iconButton",2),c([d({type:Boolean})],le.prototype,"plain",2),c([d({type:Boolean,attribute:"no-hover"})],le.prototype,"noHover",2),c([d({type:Boolean,reflect:!0})],le.prototype,"pill",2),c([d({type:Boolean,attribute:"panel-bg"})],le.prototype,"panelBackground",2),c([d({attribute:"dropdown-closer",type:Boolean})],le.prototype,"dropdownCloser",2),c([d({type:Number})],le.prototype,"notification",2),c([d({attribute:"muted-notifications",type:Boolean})],le.prototype,"mutedNotifications",2),c([d()],le.prototype,"verticalAlign",2),c([d()],le.prototype,"content",2),c([d()],le.prototype,"icon",2),c([d()],le.prototype,"gaid",2),c([d({attribute:"icon-position"})],le.prototype,"iconPosition",2),c([d({attribute:"icon-size"})],le.prototype,"iconSize",2),c([d({attribute:"icon-color"})],le.prototype,"iconColor",2),c([d({attribute:"icon-fill"})],le.prototype,"iconFill",2),c([d({attribute:"icon-library"})],le.prototype,"iconLibrary",2),c([d()],le.prototype,"type",2),c([d()],le.prototype,"name",2),c([d()],le.prototype,"value",2),c([d()],le.prototype,"form",2),c([d({attribute:"formaction"})],le.prototype,"formAction",2),c([d({attribute:"formenctype"})],le.prototype,"formEnctype",2),c([d({attribute:"formmethod"})],le.prototype,"formMethod",2),c([d({attribute:"formnovalidate",type:Boolean})],le.prototype,"formNoValidate",2),c([d({attribute:"formtarget"})],le.prototype,"formTarget",2),c([d()],le.prototype,"href",2),c([d()],le.prototype,"target",2),c([d({attribute:"data-target"})],le.prototype,"dataTarget",2),c([d()],le.prototype,"rel",2),c([d()],le.prototype,"tooltip",2),c([d()],le.prototype,"label",2),c([d({type:Boolean,attribute:"auto-click"})],le.prototype,"autoClick",2),c([d({type:Number,attribute:"auto-click-delay"})],le.prototype,"autoClickDelay",2),c([d({type:String,attribute:"loading-text"})],le.prototype,"loadingText",2),c([d({type:String,attribute:"loading-text-position"})],le.prototype,"loadingTextPosition",2),c([d({type:Boolean})],le.prototype,"loading",2),c([K("autoClick")],le.prototype,"handleAutoClickChange",1);var $e=le;le.define("zn-button");var Oe=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 as=class extends k{constructor(){super();this._resizeFrame=null;new Oe(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 z5=as;as.define("zn-absolute-container");var wn=Math.min,Ji=Math.max,Al=Math.round,Ml=Math.floor,zn=o=>({x:o,y:o}),_5={left:"right",right:"left",bottom:"top",top:"bottom"};function _u(o,i,t){return Ji(o,wn(i,t))}function ga(o,i){return typeof o=="function"?o(i):o}function xo(o){return o.split("-")[0]}function ba(o){return o.split("-")[1]}function ku(o){return o==="x"?"y":"x"}function Td(o){return o==="y"?"height":"width"}function _n(o){let i=o[0];return i==="t"||i==="b"?"y":"x"}function $d(o){return ku(_n(o))}function lv(o,i,t){t===void 0&&(t=!1);let r=ba(o),n=$d(o),a=Td(n),s=n==="x"?r===(t?"end":"start")?"right":"left":r==="start"?"bottom":"top";return i.reference[a]>i.floating[a]&&(s=$l(s)),[s,$l(s)]}function cv(o){let i=$l(o);return[Ed(o),i,Ed(i)]}function Ed(o){return o.includes("start")?o.replace("start","end"):o.replace("end","start")}var av=["left","right"],sv=["right","left"],k5=["top","bottom"],C5=["bottom","top"];function S5(o,i,t){switch(o){case"top":case"bottom":return t?i?sv:av:i?av:sv;case"left":case"right":return i?k5:C5;default:return[]}}function dv(o,i,t,r){let n=ba(o),a=S5(xo(o),t==="start",r);return n&&(a=a.map(s=>s+"-"+n),i&&(a=a.concat(a.map(Ed)))),a}function $l(o){let i=xo(o);return _5[i]+o.slice(i.length)}function E5(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 Cu(o){return typeof o!="number"?E5(o):{top:o,right:o,bottom:o,left:o}}function va(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 pv(o,i,t){let{reference:r,floating:n}=o,a=_n(i),s=$d(i),l=Td(s),p=xo(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(p){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=ba(i);return v&&(g[s]+=b*(v==="end"?1:-1)*(t&&h?-1:1)),g}async function hv(o,i){var t;i===void 0&&(i={});let{x:r,y:n,platform:a,rects:s,elements:l,strategy:p}=o,{boundary:h="clippingAncestors",rootBoundary:m="viewport",elementContext:f="floating",altBoundary:b=!1,padding:g=0}=ga(i,o),v=Cu(g),S=l[b?f==="floating"?"reference":"floating":f],T=va(await a.getClippingRect({element:(t=await(a.isElement==null?void 0:a.isElement(S)))==null||t?S:S.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(l.floating)),boundary:h,rootBoundary:m,strategy:p})),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)),I=await(a.isElement==null?void 0:a.isElement(U))&&await(a.getScale==null?void 0:a.getScale(U))||{x:1,y:1},C=va(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:N,offsetParent:U,strategy:p}):N);return{top:(T.top-C.top+v.top)/I.y,bottom:(C.bottom-T.bottom+v.bottom)/I.y,left:(T.left-C.left+v.left)/I.x,right:(C.right-T.right+v.right)/I.x}}var T5=50,uv=async(o,i,t)=>{let{placement:r="bottom",strategy:n="absolute",middleware:a=[],platform:s}=t,l=s.detectOverflow?s:{...s,detectOverflow:hv},p=await(s.isRTL==null?void 0:s.isRTL(i)),h=await s.getElementRects({reference:o,floating:i,strategy:n}),{x:m,y:f}=pv(h,r,p),b=r,g=0,v={};for(let y=0;y<a.length;y++){let S=a[y];if(!S)continue;let{name:T,fn:N}=S,{x:U,y:I,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=I??f,v[T]={...v[T],...C},$&&g<T5&&(g++,typeof $=="object"&&($.placement&&(b=$.placement),$.rects&&(h=$.rects===!0?await s.getElementRects({reference:o,floating:i,strategy:n}):$.rects),{x:m,y:f}=pv(h,b,p)),y=-1)}return{x:m,y:f,placement:b,strategy:n,middlewareData:v}},mv=o=>({name:"arrow",options:o,async fn(i){let{x:t,y:r,placement:n,rects:a,platform:s,elements:l,middlewareData:p}=i,{element:h,padding:m=0}=ga(o,i)||{};if(h==null)return{};let f=Cu(m),b={x:t,y:r},g=$d(n),v=Td(g),y=await s.getDimensions(h),S=g==="y",T=S?"top":"left",N=S?"bottom":"right",U=S?"clientHeight":"clientWidth",I=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 W=I/2-C/2,oe=L/2-y[v]/2-1,xe=wn(f[T],oe),De=wn(f[N],oe),Ne=L-y[v]-De,it=L/2-y[v]/2+W,er=_u(xe,it,Ne),Pr=!p.arrow&&ba(n)!=null&&it!==er&&a.reference[v]/2-(it<xe?xe:De)-y[v]/2<0,wr=Pr?it<xe?it-xe:it-Ne:0;return{[g]:b[g]+wr,data:{[g]:er,centerOffset:it-er-wr,...Pr&&{alignmentOffset:wr}},reset:Pr}}});var fv=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:p,elements:h}=i,{mainAxis:m=!0,crossAxis:f=!0,fallbackPlacements:b,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:v="none",flipAlignment:y=!0,...S}=ga(o,i);if((t=a.arrow)!=null&&t.alignmentOffset)return{};let T=xo(n),N=_n(l),U=xo(l)===l,I=await(p.isRTL==null?void 0:p.isRTL(h.floating)),C=b||(U||!y?[$l(l)]:cv(l)),$=v!=="none";!b&&$&&C.push(...dv(l,y,v,I));let L=[l,...C],W=await p.detectOverflow(i,S),oe=[],xe=((r=a.flip)==null?void 0:r.overflows)||[];if(m&&oe.push(W[T]),f){let er=lv(n,s,I);oe.push(W[er[0]],W[er[1]])}if(xe=[...xe,{placement:n,overflows:oe}],!oe.every(er=>er<=0)){var De,Ne;let er=(((De=a.flip)==null?void 0:De.index)||0)+1,Pr=L[er];if(Pr&&(!(f==="alignment"?N!==_n(Pr):!1)||xe.every(tr=>_n(tr.placement)===N?tr.overflows[0]>0:!0)))return{data:{index:er,overflows:xe},reset:{placement:Pr}};let wr=(Ne=xe.filter(Nt=>Nt.overflows[0]<=0).sort((Nt,tr)=>Nt.overflows[1]-tr.overflows[1])[0])==null?void 0:Ne.placement;if(!wr)switch(g){case"bestFit":{var it;let Nt=(it=xe.filter(tr=>{if($){let Mt=_n(tr.placement);return Mt===N||Mt==="y"}return!0}).map(tr=>[tr.placement,tr.overflows.filter(Mt=>Mt>0).reduce((Mt,uo)=>Mt+uo,0)]).sort((tr,Mt)=>tr[1]-Mt[1])[0])==null?void 0:it[0];Nt&&(wr=Nt);break}case"initialPlacement":wr=l;break}if(n!==wr)return{reset:{placement:wr}}}return{}}}};var $5=new Set(["left","top"]);async function A5(o,i){let{placement:t,platform:r,elements:n}=o,a=await(r.isRTL==null?void 0:r.isRTL(n.floating)),s=xo(t),l=ba(t),p=_n(t)==="y",h=$5.has(s)?-1:1,m=a&&p?-1:1,f=ga(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),p?{x:g*m,y:b*h}:{x:b*h,y:g*m}}var gv=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,p=await A5(i,o);return s===((t=l.offset)==null?void 0:t.placement)&&(r=l.arrow)!=null&&r.alignmentOffset?{}:{x:n+p.x,y:a+p.y,data:{...p,placement:s}}}}},bv=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:p={fn:N=>{let{x:U,y:I}=N;return{x:U,y:I}}},...h}=ga(o,i),m={x:t,y:r},f=await a.detectOverflow(i,h),b=_n(n),g=ku(b),v=m[g],y=m[b],S=(N,U)=>_u(U+f[N==="y"?"top":"left"],U,U-f[N==="y"?"bottom":"right"]);s&&(v=S(g,v)),l&&(y=S(b,y));let T=p.fn({...i,[g]:v,[b]:y});return{...T,data:{x:T.x-t,y:T.y-r,enabled:{[g]:s,[b]:l}}}}}};var vv=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}=ga(o,i),p=await n.detectOverflow(i,l),h=xo(t),m=ba(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 S=g-p.top-p.bottom,T=b-p.left-p.right,N=wn(g-p[v],S),U=wn(b-p[y],T),I=i.middlewareData.shift,C=!I,$=N,L=U;I!=null&&I.enabled.x&&(L=T),I!=null&&I.enabled.y&&($=S),C&&!m&&(f?L=b-2*Ji(p.left,p.right):$=g-2*Ji(p.top,p.bottom)),await s({...i,availableWidth:L,availableHeight:$});let W=await n.getDimensions(a.floating);return b!==W.width||g!==W.height?{reset:{rects:!0}}:{}}}};function Ad(){return typeof window<"u"}function xa(o){return xv(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=(xv(o)?o.ownerDocument:o.document)||window.document)==null?void 0:i.documentElement}function xv(o){return Ad()?o instanceof Node||o instanceof Hr(o).Node:!1}function Zi(o){return Ad()?o instanceof Element||o instanceof Hr(o).Element:!1}function jn(o){return Ad()?o instanceof HTMLElement||o instanceof Hr(o).HTMLElement:!1}function yv(o){return!Ad()||typeof ShadowRoot>"u"?!1:o instanceof ShadowRoot||o instanceof Hr(o).ShadowRoot}function Ll(o){let{overflow:i,overflowX:t,overflowY:r,display:n}=en(o);return/auto|scroll|overlay|hidden|clip/.test(i+r+t)&&n!=="inline"&&n!=="contents"}function wv(o){return/^(table|td|th)$/.test(xa(o))}function ql(o){try{if(o.matches(":popover-open"))return!0}catch{}try{return o.matches(":modal")}catch{return!1}}var M5=/transform|translate|scale|rotate|perspective|filter/,L5=/paint|layout|strict|content/,ya=o=>!!o&&o!=="none",Su;function ls(o){let i=Zi(o)?en(o):o;return ya(i.transform)||ya(i.translate)||ya(i.scale)||ya(i.rotate)||ya(i.perspective)||!Md()&&(ya(i.backdropFilter)||ya(i.filter))||M5.test(i.willChange||"")||L5.test(i.contain||"")}function zv(o){let i=wo(o);for(;jn(i)&&!cs(i);){if(ls(i))return i;if(ql(i))return null;i=wo(i)}return null}function Md(){return Su==null&&(Su=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Su}function cs(o){return/^(html|body|#document)$/.test(xa(o))}function en(o){return Hr(o).getComputedStyle(o)}function Il(o){return Zi(o)?{scrollLeft:o.scrollLeft,scrollTop:o.scrollTop}:{scrollLeft:o.scrollX,scrollTop:o.scrollY}}function wo(o){if(xa(o)==="html")return o;let i=o.assignedSlot||o.parentNode||yv(o)&&o.host||kn(o);return yv(i)?i.host:i}function _v(o){let i=wo(o);return cs(i)?(o.ownerDocument||o).body:jn(i)&&Ll(i)?i:_v(i)}function ss(o,i,t){var r;i===void 0&&(i=[]),t===void 0&&(t=!0);let n=_v(o),a=n===((r=o.ownerDocument)==null?void 0:r.body),s=Hr(n);if(a){let l=Ld(s);return i.concat(s,s.visualViewport||[],Ll(n)?n:[],l&&t?ss(l):[])}else return i.concat(n,ss(n,[],t))}function Ld(o){return o.parent&&Object.getPrototypeOf(o.parent)?o.frameElement:null}function Sv(o){let i=en(o),t=parseFloat(i.width)||0,r=parseFloat(i.height)||0,n=jn(o),a=n?o.offsetWidth:t,s=n?o.offsetHeight:r,l=Al(t)!==a||Al(r)!==s;return l&&(t=a,r=s),{width:t,height:r,$:l}}function Tu(o){return Zi(o)?o:o.contextElement}function ds(o){let i=Tu(o);if(!jn(i))return zn(1);let t=i.getBoundingClientRect(),{width:r,height:n,$:a}=Sv(i),s=(a?Al(t.width):t.width)/r,l=(a?Al(t.height):t.height)/n;return(!s||!Number.isFinite(s))&&(s=1),(!l||!Number.isFinite(l))&&(l=1),{x:s,y:l}}var q5=zn(0);function Ev(o){let i=Hr(o);return!Md()||!i.visualViewport?q5:{x:i.visualViewport.offsetLeft,y:i.visualViewport.offsetTop}}function I5(o,i,t){return i===void 0&&(i=!1),!!t&&i&&t===Hr(o)}function wa(o,i,t,r){i===void 0&&(i=!1),t===void 0&&(t=!1);let n=o.getBoundingClientRect(),a=Tu(o),s=zn(1);i&&(r?Zi(r)&&(s=ds(r)):s=ds(o));let l=I5(a,t,r)?Ev(a):zn(0),p=(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=Zi(r)?Hr(r):r,v=b,y=Ld(v);for(;y&&g!==v;){let S=ds(y),T=y.getBoundingClientRect(),N=en(y),U=T.left+(y.clientLeft+parseFloat(N.paddingLeft))*S.x,I=T.top+(y.clientTop+parseFloat(N.paddingTop))*S.y;p*=S.x,h*=S.y,m*=S.x,f*=S.y,p+=U,h+=I,v=Hr(y),y=Ld(v)}}return va({width:m,height:f,x:p,y:h})}function qd(o,i){let t=Il(o).scrollLeft;return i?i.left+t:wa(kn(o)).left+t}function Tv(o,i){let t=o.getBoundingClientRect(),r=t.left+i.scrollLeft-qd(o,t),n=t.top+i.scrollTop;return{x:r,y:n}}function D5(o){let{elements:i,rect:t,offsetParent:r,strategy:n}=o,a=n==="fixed",s=kn(r),l=i?ql(i.floating):!1;if(r===s||l&&a)return t;let p={scrollLeft:0,scrollTop:0},h=zn(1),m=zn(0),f=jn(r);if((f||!a)&&((xa(r)!=="body"||Ll(s))&&(p=Il(r)),f)){let g=wa(r);h=ds(r),m.x=g.x+r.clientLeft,m.y=g.y+r.clientTop}let b=s&&!f&&!a?Tv(s,p):zn(0);return{width:t.width*h.x,height:t.height*h.y,x:t.x*h.x-p.scrollLeft*h.x+m.x+b.x,y:t.y*h.y-p.scrollTop*h.y+m.y+b.y}}function R5(o){return o.getClientRects?Array.from(o.getClientRects()):[]}function N5(o){let i=Il(o),t=o.ownerDocument.body,r=Ji(o.scrollWidth,o.clientWidth,t.scrollWidth,t.clientWidth),n=Ji(o.scrollHeight,o.clientHeight,t.scrollHeight,t.clientHeight),a=-i.scrollLeft+qd(o),s=-i.scrollTop;return en(t).direction==="rtl"&&(a+=Ji(o.clientWidth,t.clientWidth)-r),{width:r,height:n,x:a,y:s}}var O5=25;function P5(o,i,t){t===void 0&&(t="viewport");let r=t==="layoutViewport",n=Hr(o),a=kn(o),s=n.visualViewport,l=a.clientWidth,p=a.clientHeight,h=0,m=0;if(s){let b=!Md()||i==="fixed";r?b||(h=-s.offsetLeft,m=-s.offsetTop):(l=s.width,p=s.height,b&&(h=s.offsetLeft,m=s.offsetTop))}if(qd(a)<=0){let b=a.ownerDocument,g=b.body,v=getComputedStyle(g),y=b.compatMode==="CSS1Compat"&&parseFloat(v.marginLeft)+parseFloat(v.marginRight)||0,S=Math.abs(a.clientWidth-g.clientWidth-y),T=getComputedStyle(a).scrollbarGutter==="stable both-edges"?S/2:S;T<=O5&&(l-=T)}return{width:l,height:p,x:h,y:m}}function H5(o,i){let t=wa(o,!0,i==="fixed"),r=t.top+o.clientTop,n=t.left+o.clientLeft,a=ds(o),s=o.clientWidth*a.x,l=o.clientHeight*a.y,p=n*a.x,h=r*a.y;return{width:s,height:l,x:p,y:h}}function kv(o,i,t){let r;if(i==="viewport"||i==="layoutViewport")r=P5(o,t,i);else if(i==="document")r=N5(kn(o));else if(Zi(i))r=H5(i,t);else{let n=Ev(o);r={x:i.x-n.x,y:i.y-n.y,width:i.width,height:i.height}}return va(r)}function F5(o,i){let t=i.get(o);if(t)return t;let r=ss(o,[],!1).filter(l=>Zi(l)&&xa(l)!=="body"),n=null,a=en(o).position==="fixed",s=a?wo(o):o;for(;Zi(s)&&!cs(s);){let l=en(s),p=ls(s),h=n?n.position:a?"fixed":"";!p&&(h==="fixed"||h==="absolute"&&l.position==="static")?r=r.filter(f=>f!==s):n=l,s=wo(s)}return i.set(o,r),r}function B5(o){let{element:i,boundary:t,rootBoundary:r,strategy:n}=o,s=[...t==="clippingAncestors"?ql(i)?[]:F5(i,this._c):[].concat(t),r],l=kv(i,s[0],n),p=l.top,h=l.right,m=l.bottom,f=l.left;for(let b=1;b<s.length;b++){let g=kv(i,s[b],n);p=Ji(g.top,p),h=wn(g.right,h),m=wn(g.bottom,m),f=Ji(g.left,f)}return{width:h-f,height:m-p,x:f,y:p}}function V5(o){let{width:i,height:t}=Sv(o);return{width:i,height:t}}function U5(o,i,t){let r=jn(i),n=kn(i),a=t==="fixed",s=wa(o,!0,a,i),l={scrollLeft:0,scrollTop:0},p=zn(0);if((r||!a)&&((xa(i)!=="body"||Ll(n))&&(l=Il(i)),r)){let b=wa(i,!0,a,i);p.x=b.x+i.clientLeft,p.y=b.y+i.clientTop}!r&&n&&(p.x=qd(n));let h=n&&!r&&!a?Tv(n,l):zn(0),m=s.left+l.scrollLeft-p.x-h.x,f=s.top+l.scrollTop-p.y-h.y;return{x:m,y:f,width:s.width,height:s.height}}function Eu(o){return en(o).position==="static"}function Cv(o,i){if(!jn(o)||en(o).position==="fixed")return null;if(i)return i(o);let t=o.offsetParent;return kn(o)===t&&(t=t.ownerDocument.body),t}function $v(o,i){let t=Hr(o);if(ql(o))return t;if(!jn(o)){let n=wo(o);for(;n&&!cs(n);){if(Zi(n)&&!Eu(n))return n;n=wo(n)}return t}let r=Cv(o,i);for(;r&&wv(r)&&Eu(r);)r=Cv(r,i);return r&&cs(r)&&Eu(r)&&!ls(r)?t:r||zv(o)||t}var j5=async function(o){let i=this.getOffsetParent||$v,t=this.getDimensions,r=await t(o.floating);return{reference:U5(o.reference,await i(o.floating),o.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function G5(o){return en(o).direction==="rtl"}var Dl={convertOffsetParentRelativeRectToViewportRelativeRect:D5,getDocumentElement:kn,getClippingRect:B5,getOffsetParent:$v,getElementRects:j5,getClientRects:R5,getDimensions:V5,getScale:ds,isElement:Zi,isRTL:G5};function Av(o,i){return o.x===i.x&&o.y===i.y&&o.width===i.width&&o.height===i.height}function W5(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:S}=b;if(m||i(),!y||!S)return;let T=Ml(v),N=Ml(a.clientWidth-(g+y)),U=Ml(a.clientHeight-(v+S)),I=Ml(g),$={rootMargin:-T+"px "+-N+"px "+-U+"px "+-I+"px",threshold:Ji(0,wn(1,f))||1},L=!0;function W(oe){let xe=oe[0].intersectionRatio;if(!Av(b,o.getBoundingClientRect()))return l();if(xe!==f){if(!L)return l();xe?l(!1,xe):n=setTimeout(()=>{l(!1,1e-7)},1e3)}L=!1}try{r=new IntersectionObserver(W,{...$,root:a.ownerDocument})}catch{r=new IntersectionObserver(W,$)}r.observe(o)}let p=Hr(o),h=()=>l(t);return p.addEventListener("resize",h),l(!0),()=>{p.removeEventListener("resize",h),s()}}function Id(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:p=!1}=r,h=Tu(o),m=n||a?[...h?ss(h):[],...i?ss(i):[]]:[];m.forEach(T=>{n&&T.addEventListener("scroll",t),a&&T.addEventListener("resize",t)});let f=h&&l?W5(h,t,a):null,b=-1,g=null;s&&(g=new ResizeObserver(T=>{let[N]=T;N&&N.target===h&&g&&i&&(g.unobserve(i),cancelAnimationFrame(b),b=requestAnimationFrame(()=>{var U;(U=g)==null||U.observe(i)})),t()}),h&&!p&&g.observe(h),i&&g.observe(i));let v,y=p?wa(o):null;p&&S();function S(){let T=wa(o);y&&!Av(y,T)&&t(),y=T,v=requestAnimationFrame(S)}return t(),()=>{var T;m.forEach(N=>{n&&N.removeEventListener("scroll",t),a&&N.removeEventListener("resize",t)}),f?.(),(T=g)==null||T.disconnect(),g=null,p&&cancelAnimationFrame(v)}}var Dd=gv;var Rd=bv,Nd=fv,Rl=vv;var Mv=mv;var Od=(o,i,t)=>{let r=new Map,n=t??{},a={...Dl,...n.platform,_c:r};return uv(o,i,{...n,platform:a})};function Lv(o){return K5(o)}function $u(o){return o.assignedSlot?o.assignedSlot:o.parentNode instanceof ShadowRoot?o.parentNode.host:o.parentNode}function K5(o){for(let i=o;i;i=$u(i))if(i instanceof Element&&getComputedStyle(i).display==="none")return null;for(let i=$u(o);i;i=$u(i)){if(!(i instanceof Element))continue;let t=getComputedStyle(i);if(t.display!=="contents"&&(t.position!=="static"||ls(t)||i.tagName==="BODY"))return i}return null}var qv=_`@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 Y5(o){return o!==null&&typeof o=="object"&&"getBoundingClientRect"in o&&("contextElement"in o?o instanceof Element:!0)}var Re=class extends k{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,p,h,m,f,b;n?t.top<r.top?(a=t.left,s=t.bottom,l=t.right,p=t.bottom,h=r.left,m=r.top,f=r.right,b=r.top):(a=r.left,s=r.bottom,l=r.right,p=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,p=r.top,h=t.right,m=t.bottom,f=r.left,b=r.bottom):(a=r.right,s=r.top,l=t.left,p=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",`${p}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||Y5(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=Id(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=[Dd({mainAxis:this.distance,crossAxis:this.skidding})];this.sync?t.push(Rl({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(Nd({boundary:this.flipBoundary,fallbackPlacements:this.flipFallbackPlacements,fallbackStrategy:this.flipFallbackStrategy==="best-fit"?"bestFit":"initialPlacement",padding:this.flipPadding})),this.shift&&t.push(Rd({boundary:this.shiftBoundary,padding:this.shiftPadding})),this.autoSize?t.push(Rl({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(Mv({element:this.arrowEl,padding:this.arrowPadding}));let r=this.strategy==="absolute"?n=>Dl.getOffsetParent(n,Lv):Dl.getOffsetParent;Od(this.anchorEl,this.popup,{placement:this.placement,middleware:t,strategy:this.strategy,platform:{...Dl,getOffsetParent:r}}).then(({x:n,y:a,middlewareData:s,placement:l})=>{let p={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`}),!!this.popup?.isConnected&&(this.popup.matches(":popover-open")||this.popup.showPopover(),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,[p]:"calc(var(--arrow-size-diagonal) * -1)"})}}),requestAnimationFrame(()=>this.updateHoverBridge())}render(){return u`
140
140
  <slot class="anchor" name="anchor" @slotchange="${this.handleAnchorChange}"></slot>
141
141
 
142
142
  <span
@@ -179,7 +179,7 @@ import{a as Fn,b as h3,c as _r,d as c,e as V}from"./chunks/zn.UBLZO6CI.js";var K
179
179
  <slot @slotchange="${this.requestUpdate}"></slot>
180
180
  </div>
181
181
  </div>
182
- </div>`}};Pt.styles=z(Iv),c([d({reflect:!0})],Pt.prototype,"caption",2),c([d({reflect:!0})],Pt.prototype,"description",2),c([d({reflect:!0})],Pt.prototype,"label",2),c([d({type:Boolean,attribute:"show-number",reflect:!0})],Pt.prototype,"showNumber",2),c([d({type:String,attribute:"count-element"})],Pt.prototype,"countElement",2),c([d({type:Boolean,reflect:!0})],Pt.prototype,"expanded",2),c([d({attribute:"default"})],Pt.prototype,"defaultState",2),c([d({attribute:"local-storage",type:Boolean,reflect:!0})],Pt.prototype,"localStorage",2),c([d({attribute:"store-key",reflect:!0})],Pt.prototype,"storeKey",2),c([d({attribute:"store-ttl",type:Number,reflect:!0})],Pt.prototype,"storeTtl",2),c([d({attribute:"flush",type:Boolean,reflect:!0})],Pt.prototype,"flush",2),c([R()],Pt.prototype,"numberOfItems",2),c([R()],Pt.prototype,"animating",2);var za=Pt;Pt.define("zn-collapsible");var Dv=_`@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,.wrapper{display:flex;justify-content:flex-start;align-items:center;border-radius:10px}:host{background-color:rgba(var(--zn-panel),0.8)}:host([appearance=solid]){background-color:rgb(var(--zn-panel))}.alert-icon{padding:var(--zn-spacing-2x-small) var(--zn-spacing-x-small)}p{margin:0}.wrapper{position:relative;border:1px solid rgb(var(--zn-border-color)) !important;width:100%;height:100%}:host([center]) .content{text-align:center}:host([caption]) zn-icon{align-self:flex-start;margin-top:6px}.content{display:flex;flex-direction:column;flex-grow:1;align-self:start;text-align:left;padding:8px}.content>h6{font-size:inherit;font-weight:600;margin:0;padding:0}.actions{display:flex;justify-content:flex-end;align-items:center;gap:var(--zn-spacing-small)}:host .wrapper h6{color:rgb(var(--zn-text))}:host .wrapper{border-color:rgb(var(--zn-border-color)) !important;background:rgba(var(--zn-panel),0.05)}:host([level=primary]) .wrapper h6{color:rgb(var(--zn-primary))}:host([level=primary]) .wrapper{border-color:rgb(var(--zn-primary)) !important;background:rgba(var(--zn-primary),0.05)}:host([level=primary]) .wrapper zn-icon{--icon-color:rgb(var(--zn-primary))}:host([level=error]) .wrapper h6{color:rgb(var(--zn-color-error))}:host([level=error]) .wrapper{border-color:rgb(var(--zn-color-error)) !important;background:rgba(var(--zn-color-error),0.05)}:host([level=error]) .wrapper zn-icon{--icon-color:rgb(var(--zn-color-error))}:host([level=info]) .wrapper h6{color:rgb(var(--zn-color-info))}:host([level=info]) .wrapper{border-color:rgb(var(--zn-color-info)) !important;background:rgba(var(--zn-color-info),0.05)}:host([level=info]) .wrapper zn-icon{--icon-color:rgb(var(--zn-color-info))}:host([level=warning]) .wrapper h6{color:rgb(var(--zn-color-warning))}:host([level=warning]) .wrapper{border-color:rgb(var(--zn-color-warning)) !important;background:rgba(var(--zn-color-warning),0.05)}:host([level=warning]) .wrapper zn-icon{--icon-color:rgb(var(--zn-color-warning))}:host([level=success]) .wrapper h6{color:rgb(var(--zn-color-success))}:host([level=success]) .wrapper{border-color:rgb(var(--zn-color-success)) !important;background:rgba(var(--zn-color-success),0.05)}:host([level=success]) .wrapper zn-icon{--icon-color:rgb(var(--zn-color-success))}:host([level=note]) .wrapper h6{color:var(--zn-color-gray-800)}:host([level=note]) .wrapper{border-color:var(--zn-color-gray-500) !important;background:var(--zn-color-gray-100)}:host([level=note]) .wrapper zn-icon{--icon-color:var(--zn-color-gray-800)}.alert--small{padding:var(--zn-spacing-2x-small) var(--zn-spacing-x-small);font-size:90%}.alert--medium{padding:var(--zn-spacing-x-small) var(--zn-spacing-small);font-size:100%}.alert--large{padding:var(--zn-spacing-small) var(--zn-spacing-medium);font-size:110%}:host([level=cosmic]){border:1px solid transparent}:host([level=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}:host([level=cosmic]){position:relative;z-index:0}:host([level=cosmic]):before{border-radius:11px}:host([level=cosmic]) .wrapper{border:none !important;background:rgba(var(--zn-panel),0.99)}`;var Qr=class extends k{constructor(){super(...arguments);this.icon="";this.caption="";this.collapse=!1;this.appearance="transparent";this.level="info";this.center=!1;this.size="medium"}render(){let t;this.icon&&(this.collapse?t=this.icon?u`
182
+ </div>`}};Pt.styles=z(Iv),c([d({reflect:!0})],Pt.prototype,"caption",2),c([d({reflect:!0})],Pt.prototype,"description",2),c([d({reflect:!0})],Pt.prototype,"label",2),c([d({type:Boolean,attribute:"show-number",reflect:!0})],Pt.prototype,"showNumber",2),c([d({type:String,attribute:"count-element"})],Pt.prototype,"countElement",2),c([d({type:Boolean,reflect:!0})],Pt.prototype,"expanded",2),c([d({attribute:"default"})],Pt.prototype,"defaultState",2),c([d({attribute:"local-storage",type:Boolean,reflect:!0})],Pt.prototype,"localStorage",2),c([d({attribute:"store-key",reflect:!0})],Pt.prototype,"storeKey",2),c([d({attribute:"store-ttl",type:Number,reflect:!0})],Pt.prototype,"storeTtl",2),c([d({attribute:"flush",type:Boolean,reflect:!0})],Pt.prototype,"flush",2),c([D()],Pt.prototype,"numberOfItems",2),c([D()],Pt.prototype,"animating",2);var za=Pt;Pt.define("zn-collapsible");var Dv=_`@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,.wrapper{display:flex;justify-content:flex-start;align-items:center;border-radius:10px}:host{background-color:rgba(var(--zn-panel),0.8)}:host([appearance=solid]){background-color:rgb(var(--zn-panel))}.alert-icon{padding:var(--zn-spacing-2x-small) var(--zn-spacing-x-small)}p{margin:0}.wrapper{position:relative;border:1px solid rgb(var(--zn-border-color)) !important;width:100%;height:100%}:host([center]) .content{text-align:center}:host([caption]) zn-icon{align-self:flex-start;margin-top:6px}.content{display:flex;flex-direction:column;flex-grow:1;align-self:start;text-align:left;padding:8px}.content>h6{font-size:inherit;font-weight:600;margin:0;padding:0}.actions{display:flex;justify-content:flex-end;align-items:center;gap:var(--zn-spacing-small)}:host .wrapper h6{color:rgb(var(--zn-text))}:host .wrapper{border-color:rgb(var(--zn-border-color)) !important;background:rgba(var(--zn-panel),0.05)}:host([level=primary]) .wrapper h6{color:rgb(var(--zn-primary))}:host([level=primary]) .wrapper{border-color:rgb(var(--zn-primary)) !important;background:rgba(var(--zn-primary),0.05)}:host([level=primary]) .wrapper zn-icon{--icon-color:rgb(var(--zn-primary))}:host([level=error]) .wrapper h6{color:rgb(var(--zn-color-error))}:host([level=error]) .wrapper{border-color:rgb(var(--zn-color-error)) !important;background:rgba(var(--zn-color-error),0.05)}:host([level=error]) .wrapper zn-icon{--icon-color:rgb(var(--zn-color-error))}:host([level=info]) .wrapper h6{color:rgb(var(--zn-color-info))}:host([level=info]) .wrapper{border-color:rgb(var(--zn-color-info)) !important;background:rgba(var(--zn-color-info),0.05)}:host([level=info]) .wrapper zn-icon{--icon-color:rgb(var(--zn-color-info))}:host([level=warning]) .wrapper h6{color:rgb(var(--zn-color-warning))}:host([level=warning]) .wrapper{border-color:rgb(var(--zn-color-warning)) !important;background:rgba(var(--zn-color-warning),0.05)}:host([level=warning]) .wrapper zn-icon{--icon-color:rgb(var(--zn-color-warning))}:host([level=success]) .wrapper h6{color:rgb(var(--zn-color-success))}:host([level=success]) .wrapper{border-color:rgb(var(--zn-color-success)) !important;background:rgba(var(--zn-color-success),0.05)}:host([level=success]) .wrapper zn-icon{--icon-color:rgb(var(--zn-color-success))}:host([level=note]) .wrapper h6{color:var(--zn-color-gray-800)}:host([level=note]) .wrapper{border-color:var(--zn-color-gray-500) !important;background:var(--zn-color-gray-100)}:host([level=note]) .wrapper zn-icon{--icon-color:var(--zn-color-gray-800)}.alert--small{padding:var(--zn-spacing-2x-small) var(--zn-spacing-x-small);font-size:90%}.alert--medium{padding:var(--zn-spacing-x-small) var(--zn-spacing-small);font-size:100%}.alert--large{padding:var(--zn-spacing-small) var(--zn-spacing-medium);font-size:110%}:host([level=cosmic]){border:1px solid transparent}:host([level=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}:host([level=cosmic]){position:relative;z-index:0}:host([level=cosmic]):before{border-radius:11px}:host([level=cosmic]) .wrapper{border:none !important;background:rgba(var(--zn-panel),0.99)}`;var Qr=class extends k{constructor(){super(...arguments);this.icon="";this.caption="";this.collapse=!1;this.appearance="transparent";this.level="info";this.center=!1;this.size="medium"}render(){let t;this.icon&&(this.collapse?t=this.icon?u`
183
183
  <zn-icon class="alert-icon" src="${this.icon}" id="xy2" @click="${this.hideAlert}"
184
184
  style="cursor: pointer"></zn-icon>`:"":t=this.icon?u`
185
185
  <zn-icon class="alert-icon" src="${this.icon}" id="xy2"></zn-icon>`:"");let r=this.caption?u`<h6>${this.caption}</h6>`:"";return u`
@@ -241,7 +241,7 @@ import{a as Fn,b as h3,c as _r,d as c,e as V}from"./chunks/zn.UBLZO6CI.js";var K
241
241
  <zn-chip type="info">Internal Note</zn-chip>`:B}
242
242
  <slot name="badge"></slot>
243
243
  </div>`}renderContent(){if(!this.message)return u`
244
- <slot></slot>`;let t=Ov(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>'),St(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=z(Pv),ir.dependencies={"zn-icon":ne},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([d()],ir.prototype,"sender",2),c([d()],ir.prototype,"message",2),c([d()],ir.prototype,"time",2),c([d()],ir.prototype,"avatar",2),c([d({attribute:"action-type",reflect:!0})],ir.prototype,"actionType",2),c([d({type:Boolean,reflect:!0,attribute:"customer-initiated"})],ir.prototype,"customerInitiated",2),c([d({type:Boolean,reflect:!0,attribute:"agent-initiated"})],ir.prototype,"agentInitiated",2),c([d({type:Boolean,reflect:!0,attribute:"hide-sender"})],ir.prototype,"hideSender",2),c([R()],ir.prototype,"hasAttachments",2);var ps=ir;var e4=ps;ps.define("zn-chat-message");var Hv=_`@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 k{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`
244
+ <slot></slot>`;let t=Ov(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>'),St(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=z(Pv),ir.dependencies={"zn-icon":ne},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([d()],ir.prototype,"sender",2),c([d()],ir.prototype,"message",2),c([d()],ir.prototype,"time",2),c([d()],ir.prototype,"avatar",2),c([d({attribute:"action-type",reflect:!0})],ir.prototype,"actionType",2),c([d({type:Boolean,reflect:!0,attribute:"customer-initiated"})],ir.prototype,"customerInitiated",2),c([d({type:Boolean,reflect:!0,attribute:"agent-initiated"})],ir.prototype,"agentInitiated",2),c([d({type:Boolean,reflect:!0,attribute:"hide-sender"})],ir.prototype,"hideSender",2),c([D()],ir.prototype,"hasAttachments",2);var ps=ir;var e4=ps;ps.define("zn-chat-message");var Hv=_`@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 k{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`
245
245
  <a
246
246
  part="base"
247
247
  class="attachment"
@@ -293,7 +293,7 @@ import{a as Fn,b as h3,c as _r,d as c,e as V}from"./chunks/zn.UBLZO6CI.js";var K
293
293
  </slot>
294
294
  </button>
295
295
  </zn-tooltip>
296
- `}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 p="getElementById"in r?r.getElementById(s):null;p?a?t=p.getAttribute(l)||"":n?t=p[l]||"":t=p.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=z(Vv),c([F('slot[name="copy-icon"')],nr.prototype,"copyIcon",2),c([F('slot[name="success-icon"')],nr.prototype,"successIcon",2),c([F('slot[name="error-icon"')],nr.prototype,"errorIcon",2),c([F("zn-tooltip")],nr.prototype,"tooltip",2),c([R()],nr.prototype,"isCopying",2),c([R()],nr.prototype,"status",2),c([d()],nr.prototype,"value",2),c([d({attribute:"copy-label"})],nr.prototype,"copyLabel",2),c([d()],nr.prototype,"src",2),c([d({type:Number,reflect:!0})],nr.prototype,"size",2),c([d()],nr.prototype,"from",2);var Mu=nr;nr.define("zn-copy-button");var Uv=()=>new qu,qu=class{},Lu=new WeakMap,Pl=yt(class extends vo{render(o){return B}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)),B}rt(o){if(this.G!==void 0)if(this.isConnected||(o=void 0),typeof this.G=="function"){let i=this.ht??globalThis,t=Lu.get(i);t===void 0&&(t=new WeakMap,Lu.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"?Lu.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 ht=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 i4(this,i)}},i4=yt(class extends vo{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 jv=Symbol(),Hl=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??Gv,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===jv)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)}}},Gv=(o,i)=>o===i||o.length===i.length&&o.every(((t,r)=>!Za(t,i[r])));function Wv(o,i){return{top:Math.round(o.getBoundingClientRect().top-i.getBoundingClientRect().top),left:Math.round(o.getBoundingClientRect().left-i.getBoundingClientRect().left)}}var Iu=new Set;function n4(){let o=document.documentElement.clientWidth;return Math.abs(window.innerWidth-o)}function Kv(o){if(Iu.add(o),!document.body.classList.contains("zn-scroll-lock")){let i=n4();document.body.classList.add("zn-scroll-lock"),document.body.style.setProperty("--zn-scroll-lock-size",`${i}px`)}}function _a(o){Iu.delete(o),Iu.size===0&&(document.body.classList.remove("zn-scroll-lock"),document.body.style.removeProperty("--zn-scroll-lock-size"))}function Yv(o,i,t="vertical",r="smooth"){let n=Wv(o,i),a=n.top+i.scrollTop,s=n.left+i.scrollLeft,l=i.scrollLeft,p=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>p&&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 Qv(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 Xv(o,i="auto"){for(let t of o)t.scrollTo({top:0,behavior:i})}var Jv=_`@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-font-size-x-large);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 ur=class extends k{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(cr(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(),_a(this),this.closeWatcher?.destroy(),this.removeEventListener("click",this.closeClickHandler),this.trigger){let t=this.parentElement?.querySelector(cr(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`
296
+ `}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 p="getElementById"in r?r.getElementById(s):null;p?a?t=p.getAttribute(l)||"":n?t=p[l]||"":t=p.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=z(Vv),c([F('slot[name="copy-icon"')],nr.prototype,"copyIcon",2),c([F('slot[name="success-icon"')],nr.prototype,"successIcon",2),c([F('slot[name="error-icon"')],nr.prototype,"errorIcon",2),c([F("zn-tooltip")],nr.prototype,"tooltip",2),c([D()],nr.prototype,"isCopying",2),c([D()],nr.prototype,"status",2),c([d()],nr.prototype,"value",2),c([d({attribute:"copy-label"})],nr.prototype,"copyLabel",2),c([d()],nr.prototype,"src",2),c([d({type:Number,reflect:!0})],nr.prototype,"size",2),c([d()],nr.prototype,"from",2);var Mu=nr;nr.define("zn-copy-button");var Uv=()=>new qu,qu=class{},Lu=new WeakMap,Pl=yt(class extends vo{render(o){return B}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)),B}rt(o){if(this.G!==void 0)if(this.isConnected||(o=void 0),typeof this.G=="function"){let i=this.ht??globalThis,t=Lu.get(i);t===void 0&&(t=new WeakMap,Lu.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"?Lu.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 ht=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 i4(this,i)}},i4=yt(class extends vo{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 jv=Symbol(),Hl=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??Gv,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===jv)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)}}},Gv=(o,i)=>o===i||o.length===i.length&&o.every(((t,r)=>!Za(t,i[r])));function Wv(o,i){return{top:Math.round(o.getBoundingClientRect().top-i.getBoundingClientRect().top),left:Math.round(o.getBoundingClientRect().left-i.getBoundingClientRect().left)}}var Iu=new Set;function n4(){let o=document.documentElement.clientWidth;return Math.abs(window.innerWidth-o)}function Kv(o){if(Iu.add(o),!document.body.classList.contains("zn-scroll-lock")){let i=n4();document.body.classList.add("zn-scroll-lock"),document.body.style.setProperty("--zn-scroll-lock-size",`${i}px`)}}function _a(o){Iu.delete(o),Iu.size===0&&(document.body.classList.remove("zn-scroll-lock"),document.body.style.removeProperty("--zn-scroll-lock-size"))}function Yv(o,i,t="vertical",r="smooth"){let n=Wv(o,i),a=n.top+i.scrollTop,s=n.left+i.scrollLeft,l=i.scrollLeft,p=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>p&&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 Qv(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 Xv(o,i="auto"){for(let t of o)t.scrollTo({top:0,behavior:i})}var Jv=_`@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-font-size-x-large);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 ur=class extends k{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(cr(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(),_a(this),this.closeWatcher?.destroy(),this.removeEventListener("click",this.closeClickHandler),this.trigger){let t=this.parentElement?.querySelector(cr(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`
297
297
  <dialog
298
298
  part="base"
299
299
  role="alertdialog"
@@ -364,7 +364,7 @@ import{a as Fn,b as h3,c as _r,d as c,e as V}from"./chunks/zn.UBLZO6CI.js";var K
364
364
  </zn-button>
365
365
 
366
366
  <slot name="footer-text" slot="footer-text">${this.footerText}</slot>
367
- </zn-dialog>`}submitDialog(){let t=this.querySelector("form");!t&&this.action&&(t=document.createElement("form"),t.action=this.action,t.method="POST",Array.from(this.attributes).forEach(r=>{r.name.startsWith("data-")&&t?.setAttribute(r.name,r.value)}),this.querySelectorAll("input").forEach(r=>{t?.appendChild(r.cloneNode())}),this.appendChild(t)),t&&t.reportValidity()&&(document.dispatchEvent(new CustomEvent("zn-register-element",{detail:{element:t}})),t.requestSubmit(),this.showLoading?(this.loading=!0,this.dialog.closer.disabled=!0):this.hide())}};ut.styles=z(Zv),ut.dependencies={"zn-dialog":ka},c([d({reflect:!0})],ut.prototype,"variant",2),c([d({reflect:!0})],ut.prototype,"size",2),c([d()],ut.prototype,"type",2),c([d({type:Boolean,reflect:!0})],ut.prototype,"open",2),c([d()],ut.prototype,"caption",2),c([d()],ut.prototype,"action",2),c([d()],ut.prototype,"content",2),c([d()],ut.prototype,"confirmText",2),c([d()],ut.prototype,"cancelText",2),c([d({type:Boolean,attribute:"hide-icon"})],ut.prototype,"hideIcon",2),c([d({type:Boolean,attribute:"show-loading"})],ut.prototype,"showLoading",2),c([d({reflect:!0})],ut.prototype,"trigger",2),c([d()],ut.prototype,"announcement",2),c([d({attribute:"footer-text"})],ut.prototype,"footerText",2),c([F("zn-dialog")],ut.prototype,"dialog",2),c([R()],ut.prototype,"loading",2);var Fl=ut;ut.define("zn-confirm");function qt(o){let i=document.createDocumentFragment();return Ja(o,i),i.firstElementChild}var Ce=(o="value")=>(i,t)=>{let r=i.constructor,n=r.prototype.attributeChangedCallback;r.prototype.attributeChangedCallback=function(a,s,l){let p=r.getPropertyOptions(o),h=typeof p.attribute=="string"?p.attribute:o;if(a===h){let m=p.converter||fo,b=(typeof m=="function"?m:m?.fromAttribute??fo.fromAttribute)(l,p.type);this[o]!==b&&(this[t]=b)}n.call(this,a,s,l)}};var o4=new Map;function Pd(o){return(Array.isArray(o)?o:o.split(",")).reduce((t,r)=>{let n=o4.get(r.trim());return n?[...t,...n]:t},[])}function a4(o){return typeof o=="object"&&o!==null&&typeof o.label=="string"}function zo(o){let i=o?.trim();if(!i)return[];if(i.startsWith("["))try{let t=JSON.parse(i);return Array.isArray(t)?t.filter(a4):[]}catch{return console.warn("slash-items could not be parsed as JSON",i),[]}return i.split(",").map(t=>t.trim()).filter(t=>t!=="").map(t=>{let r=t.indexOf("=");if(r===-1)return{label:t,value:t};let n=t.slice(0,r).trim(),a=t.slice(r+1).trim();return{label:n||a,value:a}}).filter(t=>t.label!=="")}function s4(o){return o.keywords?(Array.isArray(o.keywords)?o.keywords:o.keywords.split(",")).map(t=>t.trim().toLowerCase()).filter(t=>t!==""):[]}function l4(o,i){let t=o.label.toLowerCase();return t.startsWith(i)?0:t.split(/\s+/).some(r=>r.startsWith(i))?1:t.includes(i)?2:s4(o).some(r=>r.includes(i))?3:o.value?.toLowerCase().includes(i)?4:o.description?.toLowerCase().includes(i)?5:-1}function Hd(o,i){let t=i.trim().toLowerCase();return o.map((r,n)=>({item:r,index:n,score:t?l4(r,t):0})).filter(r=>r.score!==-1).sort((r,n)=>r.score-n.score||(r.item.order??r.index)-(n.item.order??n.index)||r.index-n.index).map(r=>r.item)}var Du="zn-slash-recent:",c4=10;function Ru(o){return o.action?`action:${o.action}`:`value:${o.value||o.label}`}function Nu(o){if(!o)return[];try{let i=JSON.parse(localStorage.getItem(Du+o)??"[]");return Array.isArray(i)?i.filter(t=>typeof t=="string"):[]}catch{return[]}}function e0(o,i){if(!o)return[];let t=Ru(i),r=[t,...Nu(o).filter(n=>n!==t)].slice(0,c4);try{localStorage.setItem(Du+o,JSON.stringify(r))}catch{}return r}function t0(o){if(o)try{localStorage.removeItem(Du+o)}catch{}}var r0=_`@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{--slash-menu-width:320px;--slash-menu-max-height:260px;--slash-menu-border-radius:12px;--slash-menu-item-border-radius:8px;display:contents}:host(:not([open])) .slash-menu__panel{display:none}.slash-menu__panel{display:flex;flex-direction:column;position:fixed;inset:0 auto auto 0;margin:0;width:var(--slash-menu-width);max-width:var(--auto-size-available-width,none);max-height:min(var(--slash-menu-max-height),var(--auto-size-available-height,100vh));z-index:var(--zn-z-index-dropdown);overflow:hidden;background:var(--zn-panel-background-color);border:solid var(--zn-panel-border-width,1px) var(--zn-panel-border-color);border-radius:var(--slash-menu-border-radius);box-shadow:var(--zn-shadow-medium);font-family:var(--zn-font-sans);font-size:var(--zn-font-size-medium);color:rgb(var(--zn-text))}.slash-menu__list{display:flex;flex:1 1 auto;flex-direction:column;gap:var(--zn-spacing-3x-small,2px);min-height:0;overflow-y:auto;overscroll-behavior:none;padding:var(--zn-spacing-2x-small,4px) var(--zn-spacing-x-small,8px)}.slash-menu__group-heading,.slash-menu__footer,.slash-menu__empty{padding:var(--zn-spacing-2x-small,4px) var(--zn-spacing-x-small,8px);font-size:var(--zn-font-size-x-small);color:var(--zn-color-neutral-500);-moz-user-select:none;user-select:none;-webkit-user-select:none}.slash-menu__group-heading{padding-top:var(--zn-spacing-x-small,8px);font-weight:var(--zn-font-weight-semibold);text-transform:uppercase;letter-spacing:0.06em;color:var(--zn-color-neutral-400)}.slash-menu__footer{border-top:solid var(--zn-panel-border-width,1px) var(--zn-panel-border-color);margin-top:var(--zn-spacing-2x-small,4px)}.slash-menu__divider{height:var(--zn-panel-border-width,1px);margin:var(--zn-spacing-2x-small,4px) 0;background:var(--zn-panel-border-color)}.slash-menu__hints{display:flex;flex:0 0 auto;align-items:center;gap:var(--zn-spacing-small,12px);padding:var(--zn-spacing-x-small,8px) var(--zn-spacing-small,12px);border-top:solid var(--zn-panel-border-width,1px) var(--zn-panel-border-color);font-size:var(--zn-font-size-x-small);color:var(--zn-color-neutral-500);-moz-user-select:none;user-select:none;-webkit-user-select:none}.slash-menu__hint{display:flex;align-items:center;gap:var(--zn-spacing-2x-small,4px)}.slash-menu__key{display:inline-flex;align-items:center;justify-content:center;min-width:22px;height:22px;padding:0 var(--zn-spacing-2x-small,4px);border:solid var(--zn-panel-border-width,1px) var(--zn-panel-border-color);border-radius:var(--zn-border-radius,6px);background:var(--zn-panel-background-color);font-family:var(--zn-font-sans);font-size:var(--zn-font-size-2x-small);line-height:1;color:var(--zn-color-neutral-600)}.slash-menu__item{display:flex;align-items:center;gap:var(--zn-spacing-small,12px);width:100%;padding:var(--zn-spacing-2x-small,4px) var(--zn-spacing-x-small,8px);border:none;border-radius:var(--slash-menu-item-border-radius);background:transparent;color:inherit;font:inherit;text-align:left;cursor:pointer}.slash-menu__item:hover:not(.slash-menu__item--disabled){background:var(--zn-input-background-color-hover)}.slash-menu__item--active,.slash-menu__item--active:hover:not(.slash-menu__item--disabled){background:rgba(var(--zn-color-primary),0.08)}.slash-menu__item--disabled{opacity:0.5;cursor:not-allowed}.slash-menu__icon{display:flex;align-items:center;justify-content:center;flex:0 0 auto;width:32px;height:32px;border:solid var(--zn-panel-border-width,1px) rgba(var(--zn-color-primary),0.18);border-radius:var(--slash-menu-item-border-radius);background:rgba(var(--zn-color-primary),0.06);color:var(--zn-color-neutral-700)}.slash-menu__icon--empty{border-color:transparent;background:none}.slash-menu__item--active .slash-menu__icon{border-color:rgba(var(--zn-color-primary),0.3);background:rgba(var(--zn-color-primary),0.14);color:rgb(var(--zn-color-primary))}.slash-menu__text{display:flex;flex-direction:column;min-width:0;flex:1 1 auto}.slash-menu__label{font-weight:var(--zn-font-weight-semibold);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.slash-menu__description{font-size:var(--zn-font-size-x-small);color:var(--zn-color-neutral-500);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.slash-menu__token{flex:0 1 auto;max-width:45%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-family:var(--zn-font-mono);font-size:var(--zn-font-size-x-small);color:var(--zn-color-neutral-600)}`;var hs="zn-slash-item-select";function d4(o,i){return!!o&&o.length===i.length&&o.every((t,r)=>t.label===i[r].label&&t.value===i[r].value&&t.disabled===i[r].disabled)}var Je=class extends k{constructor(){super(...arguments);this.open=!1;this.items=[];this.query="";this.heading="Insert";this.emptyText="No matches";this.maxItems=25;this.hideKeys=!1;this.hideHints=!1;this.recentKey="";this.maxRecent=3;this.recentHeading="Recently used";this.anchor=null;this.placement="bottom-start";this.distance=4;this.activeIndex=0;this.recentKeys=[];this.recentCount=0;this.handleItemMouseDown=t=>{t.preventDefault(),t.stopPropagation();let r=Number(t.currentTarget.dataset.index),n=this.visibleItems[r];n&&(this.activeIndex=r,this.selectItem(n))}}get listItems(){return this.maxItems>0?this.items.slice(0,this.maxItems):this.items}get recentItems(){if(!this.recentKey||this.maxRecent<1||this.query.trim()!=="")return[];let t=new Map;for(let n of this.items){let a=Ru(n);!n.disabled&&!t.has(a)&&t.set(a,n)}let r=this.recentKeys.map(n=>t.get(n)).filter(n=>n!==void 0).slice(0,this.maxRecent);return r.length<this.items.length?r:[]}get visibleItems(){return[...this.recentItems,...this.listItems]}get activeItem(){return this.visibleItems[this.activeIndex]}show(){this.open=!0}hide(){this.open=!1}clearRecent(){t0(this.recentKey),this.recentKeys=[]}setActiveIndex(t){let r=this.visibleItems;if(!r.filter(l=>!l.disabled).length){this.activeIndex=-1;return}let a=(t+r.length)%r.length,s=t<this.activeIndex?-1:1;for(;r[a]?.disabled;)a=(a+s+r.length)%r.length;this.activeIndex=a,this.updateComplete.then(()=>this.scrollActiveIntoView())}moveActive(t){this.setActiveIndex(this.activeIndex+t)}selectActive(){let t=this.activeItem;t&&this.selectItem(t)}reposition(){this.position()}connectedCallback(){super.connectedCallback(),this.open&&this.updateComplete.then(()=>this.startPositioner())}disconnectedCallback(){super.disconnectedCallback(),this.stopPositioner(),this.hidePanelPopover()}showPanelPopover(){let t=this.panel;typeof t?.showPopover=="function"&&!t.matches(":popover-open")&&t.showPopover()}hidePanelPopover(){let t=this.panel;typeof t?.hidePopover=="function"&&t.matches(":popover-open")&&t.hidePopover()}startPositioner(){this.stopPositioner(),!(!this.anchor||!this.panel)&&(this.stopAutoUpdate=Id(this.anchor,this.panel,()=>{this.position()}))}stopPositioner(){this.stopAutoUpdate?.(),this.stopAutoUpdate=void 0}async position(){let{anchor:t,panel:r}=this;if(!this.open||!t||!r)return;this.showPanelPopover();let{x:n,y:a}=await Od(t,r,{placement:this.placement,strategy:"fixed",middleware:[Dd(this.distance),Nd({padding:8}),Rd({padding:8}),Rl({padding:8,apply:({availableHeight:s})=>{r.style.setProperty("--auto-size-available-height",`${Math.max(s,0)}px`)}})]});Object.assign(r.style,{left:`${n}px`,top:`${a}px`})}selectItem(t){t.disabled||(this.recentKey&&(this.recentKeys=e0(this.recentKey,t)),this.dispatchEvent(new CustomEvent(hs,{bubbles:!0,cancelable:!0,composed:!1,detail:{item:t,query:this.query}})))}scrollActiveIntoView(){let t=this.renderRoot.querySelector('[data-slash-item][aria-selected="true"]');if(!t)return;let r=this.visibleItems,n=this.list;if(n&&r.slice(0,this.activeIndex).every(a=>a.disabled)){n.scrollTop=0;return}if(n&&r.slice(this.activeIndex+1).every(a=>a.disabled)){n.scrollTop=n.scrollHeight;return}t.scrollIntoView({block:"nearest"})}willUpdate(t){super.willUpdate(t),(t.has("recentKey")||t.has("open")&&this.open)&&(this.recentKeys=Nu(this.recentKey));let r=t.has("items")&&!d4(t.get("items"),this.items),n=this.recentItems.length;(r||n!==this.recentCount)&&(this.recentCount=n,this.activeIndex=this.visibleItems.findIndex(a=>!a.disabled))}updated(t){super.updated(t),(t.has("open")||t.has("anchor"))&&(this.open?this.startPositioner():(this.stopPositioner(),this.hidePanelPopover())),this.open&&this.position(),(t.has("items")||t.has("open")&&this.open)&&this.scrollActiveIntoView()}renderItem(t,r,n){let a=r===this.activeIndex,s=!this.hideKeys&&t.value&&t.value!==t.label&&!t.value.includes(`
367
+ </zn-dialog>`}submitDialog(){let t=this.querySelector("form");!t&&this.action&&(t=document.createElement("form"),t.action=this.action,t.method="POST",Array.from(this.attributes).forEach(r=>{r.name.startsWith("data-")&&t?.setAttribute(r.name,r.value)}),this.querySelectorAll("input").forEach(r=>{t?.appendChild(r.cloneNode())}),this.appendChild(t)),t&&t.reportValidity()&&(document.dispatchEvent(new CustomEvent("zn-register-element",{detail:{element:t}})),t.requestSubmit(),this.showLoading?(this.loading=!0,this.dialog.closer.disabled=!0):this.hide())}};ut.styles=z(Zv),ut.dependencies={"zn-dialog":ka},c([d({reflect:!0})],ut.prototype,"variant",2),c([d({reflect:!0})],ut.prototype,"size",2),c([d()],ut.prototype,"type",2),c([d({type:Boolean,reflect:!0})],ut.prototype,"open",2),c([d()],ut.prototype,"caption",2),c([d()],ut.prototype,"action",2),c([d()],ut.prototype,"content",2),c([d()],ut.prototype,"confirmText",2),c([d()],ut.prototype,"cancelText",2),c([d({type:Boolean,attribute:"hide-icon"})],ut.prototype,"hideIcon",2),c([d({type:Boolean,attribute:"show-loading"})],ut.prototype,"showLoading",2),c([d({reflect:!0})],ut.prototype,"trigger",2),c([d()],ut.prototype,"announcement",2),c([d({attribute:"footer-text"})],ut.prototype,"footerText",2),c([F("zn-dialog")],ut.prototype,"dialog",2),c([D()],ut.prototype,"loading",2);var Fl=ut;ut.define("zn-confirm");function qt(o){let i=document.createDocumentFragment();return Ja(o,i),i.firstElementChild}var Ce=(o="value")=>(i,t)=>{let r=i.constructor,n=r.prototype.attributeChangedCallback;r.prototype.attributeChangedCallback=function(a,s,l){let p=r.getPropertyOptions(o),h=typeof p.attribute=="string"?p.attribute:o;if(a===h){let m=p.converter||fo,b=(typeof m=="function"?m:m?.fromAttribute??fo.fromAttribute)(l,p.type);this[o]!==b&&(this[t]=b)}n.call(this,a,s,l)}};var o4=new Map;function Pd(o){return(Array.isArray(o)?o:o.split(",")).reduce((t,r)=>{let n=o4.get(r.trim());return n?[...t,...n]:t},[])}function a4(o){return typeof o=="object"&&o!==null&&typeof o.label=="string"}function zo(o){let i=o?.trim();if(!i)return[];if(i.startsWith("["))try{let t=JSON.parse(i);return Array.isArray(t)?t.filter(a4):[]}catch{return console.warn("slash-items could not be parsed as JSON",i),[]}return i.split(",").map(t=>t.trim()).filter(t=>t!=="").map(t=>{let r=t.indexOf("=");if(r===-1)return{label:t,value:t};let n=t.slice(0,r).trim(),a=t.slice(r+1).trim();return{label:n||a,value:a}}).filter(t=>t.label!=="")}function s4(o){return o.keywords?(Array.isArray(o.keywords)?o.keywords:o.keywords.split(",")).map(t=>t.trim().toLowerCase()).filter(t=>t!==""):[]}function l4(o,i){let t=o.label.toLowerCase();return t.startsWith(i)?0:t.split(/\s+/).some(r=>r.startsWith(i))?1:t.includes(i)?2:s4(o).some(r=>r.includes(i))?3:o.value?.toLowerCase().includes(i)?4:o.description?.toLowerCase().includes(i)?5:-1}function Hd(o,i){let t=i.trim().toLowerCase();return o.map((r,n)=>({item:r,index:n,score:t?l4(r,t):0})).filter(r=>r.score!==-1).sort((r,n)=>r.score-n.score||(r.item.order??r.index)-(n.item.order??n.index)||r.index-n.index).map(r=>r.item)}var Du="zn-slash-recent:",c4=10;function Ru(o){return o.action?`action:${o.action}`:`value:${o.value||o.label}`}function Nu(o){if(!o)return[];try{let i=JSON.parse(localStorage.getItem(Du+o)??"[]");return Array.isArray(i)?i.filter(t=>typeof t=="string"):[]}catch{return[]}}function e0(o,i){if(!o)return[];let t=Ru(i),r=[t,...Nu(o).filter(n=>n!==t)].slice(0,c4);try{localStorage.setItem(Du+o,JSON.stringify(r))}catch{}return r}function t0(o){if(o)try{localStorage.removeItem(Du+o)}catch{}}var r0=_`@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{--slash-menu-width:320px;--slash-menu-max-height:260px;--slash-menu-border-radius:12px;--slash-menu-item-border-radius:8px;display:contents}:host(:not([open])) .slash-menu__panel{display:none}.slash-menu__panel{display:flex;flex-direction:column;position:fixed;inset:0 auto auto 0;margin:0;width:var(--slash-menu-width);max-width:var(--auto-size-available-width,none);max-height:min(var(--slash-menu-max-height),var(--auto-size-available-height,100vh));z-index:var(--zn-z-index-dropdown);overflow:hidden;background:var(--zn-panel-background-color);border:solid var(--zn-panel-border-width,1px) var(--zn-panel-border-color);border-radius:var(--slash-menu-border-radius);box-shadow:var(--zn-shadow-medium);font-family:var(--zn-font-sans);font-size:var(--zn-font-size-medium);color:rgb(var(--zn-text))}.slash-menu__list{display:flex;flex:1 1 auto;flex-direction:column;gap:var(--zn-spacing-3x-small,2px);min-height:0;overflow-y:auto;overscroll-behavior:none;padding:var(--zn-spacing-2x-small,4px) var(--zn-spacing-x-small,8px)}.slash-menu__group-heading,.slash-menu__footer,.slash-menu__empty{padding:var(--zn-spacing-2x-small,4px) var(--zn-spacing-x-small,8px);font-size:var(--zn-font-size-x-small);color:var(--zn-color-neutral-500);-moz-user-select:none;user-select:none;-webkit-user-select:none}.slash-menu__group-heading{padding-top:var(--zn-spacing-x-small,8px);font-weight:var(--zn-font-weight-semibold);text-transform:uppercase;letter-spacing:0.06em;color:var(--zn-color-neutral-400)}.slash-menu__footer{border-top:solid var(--zn-panel-border-width,1px) var(--zn-panel-border-color);margin-top:var(--zn-spacing-2x-small,4px)}.slash-menu__divider{height:var(--zn-panel-border-width,1px);margin:var(--zn-spacing-2x-small,4px) 0;background:var(--zn-panel-border-color)}.slash-menu__hints{display:flex;flex:0 0 auto;align-items:center;gap:var(--zn-spacing-small,12px);padding:var(--zn-spacing-x-small,8px) var(--zn-spacing-small,12px);border-top:solid var(--zn-panel-border-width,1px) var(--zn-panel-border-color);font-size:var(--zn-font-size-x-small);color:var(--zn-color-neutral-500);-moz-user-select:none;user-select:none;-webkit-user-select:none}.slash-menu__hint{display:flex;align-items:center;gap:var(--zn-spacing-2x-small,4px)}.slash-menu__key{display:inline-flex;align-items:center;justify-content:center;min-width:22px;height:22px;padding:0 var(--zn-spacing-2x-small,4px);border:solid var(--zn-panel-border-width,1px) var(--zn-panel-border-color);border-radius:var(--zn-border-radius,6px);background:var(--zn-panel-background-color);font-family:var(--zn-font-sans);font-size:var(--zn-font-size-2x-small);line-height:1;color:var(--zn-color-neutral-600)}.slash-menu__item{display:flex;align-items:center;gap:var(--zn-spacing-small,12px);width:100%;padding:var(--zn-spacing-2x-small,4px) var(--zn-spacing-x-small,8px);border:none;border-radius:var(--slash-menu-item-border-radius);background:transparent;color:inherit;font:inherit;text-align:left;cursor:pointer}.slash-menu__item:hover:not(.slash-menu__item--disabled){background:var(--zn-input-background-color-hover)}.slash-menu__item--active,.slash-menu__item--active:hover:not(.slash-menu__item--disabled){background:rgba(var(--zn-color-primary),0.08)}.slash-menu__item--disabled{opacity:0.5;cursor:not-allowed}.slash-menu__icon{display:flex;align-items:center;justify-content:center;flex:0 0 auto;width:32px;height:32px;border:solid var(--zn-panel-border-width,1px) rgba(var(--zn-color-primary),0.18);border-radius:var(--slash-menu-item-border-radius);background:rgba(var(--zn-color-primary),0.06);color:var(--zn-color-neutral-700)}.slash-menu__icon--empty{border-color:transparent;background:none}.slash-menu__item--active .slash-menu__icon{border-color:rgba(var(--zn-color-primary),0.3);background:rgba(var(--zn-color-primary),0.14);color:rgb(var(--zn-color-primary))}.slash-menu__text{display:flex;flex-direction:column;min-width:0;flex:1 1 auto}.slash-menu__label{font-weight:var(--zn-font-weight-semibold);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.slash-menu__description{font-size:var(--zn-font-size-x-small);color:var(--zn-color-neutral-500);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.slash-menu__token{flex:0 1 auto;max-width:45%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-family:var(--zn-font-mono);font-size:var(--zn-font-size-x-small);color:var(--zn-color-neutral-600)}`;var hs="zn-slash-item-select";function d4(o,i){return!!o&&o.length===i.length&&o.every((t,r)=>t.label===i[r].label&&t.value===i[r].value&&t.disabled===i[r].disabled)}var Je=class extends k{constructor(){super(...arguments);this.open=!1;this.items=[];this.query="";this.heading="Insert";this.emptyText="No matches";this.maxItems=25;this.hideKeys=!1;this.hideHints=!1;this.recentKey="";this.maxRecent=3;this.recentHeading="Recently used";this.anchor=null;this.placement="bottom-start";this.distance=4;this.activeIndex=0;this.recentKeys=[];this.recentCount=0;this.handleItemMouseDown=t=>{t.preventDefault(),t.stopPropagation();let r=Number(t.currentTarget.dataset.index),n=this.visibleItems[r];n&&(this.activeIndex=r,this.selectItem(n))}}get listItems(){return this.maxItems>0?this.items.slice(0,this.maxItems):this.items}get recentItems(){if(!this.recentKey||this.maxRecent<1||this.query.trim()!=="")return[];let t=new Map;for(let n of this.items){let a=Ru(n);!n.disabled&&!t.has(a)&&t.set(a,n)}let r=this.recentKeys.map(n=>t.get(n)).filter(n=>n!==void 0).slice(0,this.maxRecent);return r.length<this.items.length?r:[]}get visibleItems(){return[...this.recentItems,...this.listItems]}get activeItem(){return this.visibleItems[this.activeIndex]}show(){this.open=!0}hide(){this.open=!1}clearRecent(){t0(this.recentKey),this.recentKeys=[]}setActiveIndex(t){let r=this.visibleItems;if(!r.filter(l=>!l.disabled).length){this.activeIndex=-1;return}let a=(t+r.length)%r.length,s=t<this.activeIndex?-1:1;for(;r[a]?.disabled;)a=(a+s+r.length)%r.length;this.activeIndex=a,this.updateComplete.then(()=>this.scrollActiveIntoView())}moveActive(t){this.setActiveIndex(this.activeIndex+t)}selectActive(){let t=this.activeItem;t&&this.selectItem(t)}reposition(){this.position()}connectedCallback(){super.connectedCallback(),this.open&&this.updateComplete.then(()=>this.startPositioner())}disconnectedCallback(){super.disconnectedCallback(),this.stopPositioner(),this.hidePanelPopover()}showPanelPopover(){let t=this.panel;typeof t?.showPopover=="function"&&!t.matches(":popover-open")&&t.showPopover()}hidePanelPopover(){let t=this.panel;typeof t?.hidePopover=="function"&&t.matches(":popover-open")&&t.hidePopover()}startPositioner(){this.stopPositioner(),!(!this.anchor||!this.panel)&&(this.stopAutoUpdate=Id(this.anchor,this.panel,()=>{this.position()}))}stopPositioner(){this.stopAutoUpdate?.(),this.stopAutoUpdate=void 0}async position(){let{anchor:t,panel:r}=this;if(!this.open||!t||!r)return;this.showPanelPopover();let{x:n,y:a}=await Od(t,r,{placement:this.placement,strategy:"fixed",middleware:[Dd(this.distance),Nd({padding:8}),Rd({padding:8}),Rl({padding:8,apply:({availableHeight:s})=>{r.style.setProperty("--auto-size-available-height",`${Math.max(s,0)}px`)}})]});Object.assign(r.style,{left:`${n}px`,top:`${a}px`})}selectItem(t){t.disabled||(this.recentKey&&(this.recentKeys=e0(this.recentKey,t)),this.dispatchEvent(new CustomEvent(hs,{bubbles:!0,cancelable:!0,composed:!1,detail:{item:t,query:this.query}})))}scrollActiveIntoView(){let t=this.renderRoot.querySelector('[data-slash-item][aria-selected="true"]');if(!t)return;let r=this.visibleItems,n=this.list;if(n&&r.slice(0,this.activeIndex).every(a=>a.disabled)){n.scrollTop=0;return}if(n&&r.slice(this.activeIndex+1).every(a=>a.disabled)){n.scrollTop=n.scrollHeight;return}t.scrollIntoView({block:"nearest"})}willUpdate(t){super.willUpdate(t),(t.has("recentKey")||t.has("open")&&this.open)&&(this.recentKeys=Nu(this.recentKey));let r=t.has("items")&&!d4(t.get("items"),this.items),n=this.recentItems.length;(r||n!==this.recentCount)&&(this.recentCount=n,this.activeIndex=this.visibleItems.findIndex(a=>!a.disabled))}updated(t){super.updated(t),(t.has("open")||t.has("anchor"))&&(this.open?this.startPositioner():(this.stopPositioner(),this.hidePanelPopover())),this.open&&this.position(),(t.has("items")||t.has("open")&&this.open)&&this.scrollActiveIntoView()}renderItem(t,r,n){let a=r===this.activeIndex,s=!this.hideKeys&&t.value&&t.value!==t.label&&!t.value.includes(`
368
368
  `)?t.value:"";return u`
369
369
  <button
370
370
  type="button"
@@ -421,7 +421,7 @@ import{a as Fn,b as h3,c as _r,d as c,e as V}from"./chunks/zn.UBLZO6CI.js";var K
421
421
  <div part="footer" class="slash-menu__footer">${t} more — keep typing to narrow</div>`:""}
422
422
  </div>
423
423
  ${this.hideHints?"":this.renderHints()}
424
- </div>`}};Je.styles=z(r0),Je.dependencies={"zn-icon":ne},c([F(".slash-menu__panel")],Je.prototype,"panel",2),c([F(".slash-menu__list")],Je.prototype,"list",2),c([d({type:Boolean,reflect:!0})],Je.prototype,"open",2),c([d({type:Array})],Je.prototype,"items",2),c([d()],Je.prototype,"query",2),c([d()],Je.prototype,"heading",2),c([d({attribute:"empty-text"})],Je.prototype,"emptyText",2),c([d({attribute:"max-items",type:Number})],Je.prototype,"maxItems",2),c([d({attribute:"hide-keys",type:Boolean})],Je.prototype,"hideKeys",2),c([d({attribute:"hide-hints",type:Boolean})],Je.prototype,"hideHints",2),c([d({attribute:"recent-key"})],Je.prototype,"recentKey",2),c([d({attribute:"max-recent",type:Number})],Je.prototype,"maxRecent",2),c([d({attribute:"recent-heading"})],Je.prototype,"recentHeading",2),c([d({attribute:!1})],Je.prototype,"anchor",2),c([d()],Je.prototype,"placement",2),c([d({type:Number})],Je.prototype,"distance",2),c([R()],Je.prototype,"activeIndex",2),c([R()],Je.prototype,"recentKeys",2);var p4=["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 h4(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 Ou(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"),p4.forEach(f=>{let b=l[f];typeof b=="string"&&(s[f]=b)}),n&&(s.height="auto");let p=o.value.slice(0,i);a.textContent=n?p.replace(/\s/g,"\xA0"):p;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:h4(r)};return a.remove(),m}function Pu(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 JB(o,i){return Pu(o,Ou(o,i))}var u4=40,_o=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:Ou(i,t)}),Pu(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>u4||/[\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=Hd(r,i);if(!n.length){this.close();return}let a=await this.options.menu();!a||t!==this.resolveToken||(a!==this.menu&&(this.menu?.removeEventListener(hs,this.handleItemSelect),a.addEventListener(hs,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,p=l?"":i.value??"";t.value.slice(r,n)===s+a&&(this.replace(t,r,n,p,i),!l&&p&&this.options.onInsert?.(i,p))}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 Ca=Je;Je.define("zn-slash-menu");var mr=yt(class extends rr{constructor(o){if(super(o),o.type!==lr.PROPERTY&&o.type!==lr.ATTRIBUTE&&o.type!==lr.BOOLEAN_ATTRIBUTE)throw Error("The `live` directive is not allowed on child or event bindings");if(!xd(o))throw Error("`live` bindings can only contain a single expression")}render(o){return o}update(o,[i]){if(i===vt||i===B)return i;let t=o.element,r=o.name;if(o.type===lr.PROPERTY){if(i===t[r])return vt}else if(o.type===lr.BOOLEAN_ATTRIBUTE){if(!!i===t.hasAttribute(r))return vt}else if(o.type===lr.ATTRIBUTE&&t.getAttribute(r)===i+"")return vt;return ns(o),i}});var Hu=new Set,us=new Map,Wn,Fu="ltr",Bu="en",i0=typeof MutationObserver<"u"&&typeof document<"u"&&typeof document.documentElement<"u";if(i0){let o=new MutationObserver(n0);Fu=document.documentElement.dir||"ltr",Bu=document.documentElement.lang||navigator.language,o.observe(document.documentElement,{attributes:!0,attributeFilter:["dir","lang"]})}function Bl(...o){o.map(i=>{let t=i.$code.toLowerCase();us.has(t)?us.set(t,Object.assign(Object.assign({},us.get(t)),i)):us.set(t,i),Wn||(Wn=i)}),n0()}function n0(){i0&&(Fu=document.documentElement.dir||"ltr",Bu=document.documentElement.lang||navigator.language),[...Hu.keys()].map(o=>{typeof o.requestUpdate=="function"&&o.requestUpdate()})}var Fd=class{constructor(i){this.host=i,this.host.addController(this)}hostConnected(){Hu.add(this.host)}hostDisconnected(){Hu.delete(this.host)}dir(){return`${this.host.dir||Fu}`.toLowerCase()}lang(){let i=`${this.host.lang||Bu}`.toLowerCase().replace(/_/g,"-");try{return new Intl.Locale(i),i}catch{return Wn?Wn.$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=us.get(`${a}-${s}`),p=us.get(a);return{locale:n,language:a,region:s,primary:l,secondary:p}}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&&Wn&&Wn[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(Wn&&Wn[i])a=Wn[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 o0={$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`};Bl(o0);var a0=o0;var Ht=class extends Fd{};Bl(a0);var s0=_`@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 k{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`
424
+ </div>`}};Je.styles=z(r0),Je.dependencies={"zn-icon":ne},c([F(".slash-menu__panel")],Je.prototype,"panel",2),c([F(".slash-menu__list")],Je.prototype,"list",2),c([d({type:Boolean,reflect:!0})],Je.prototype,"open",2),c([d({type:Array})],Je.prototype,"items",2),c([d()],Je.prototype,"query",2),c([d()],Je.prototype,"heading",2),c([d({attribute:"empty-text"})],Je.prototype,"emptyText",2),c([d({attribute:"max-items",type:Number})],Je.prototype,"maxItems",2),c([d({attribute:"hide-keys",type:Boolean})],Je.prototype,"hideKeys",2),c([d({attribute:"hide-hints",type:Boolean})],Je.prototype,"hideHints",2),c([d({attribute:"recent-key"})],Je.prototype,"recentKey",2),c([d({attribute:"max-recent",type:Number})],Je.prototype,"maxRecent",2),c([d({attribute:"recent-heading"})],Je.prototype,"recentHeading",2),c([d({attribute:!1})],Je.prototype,"anchor",2),c([d()],Je.prototype,"placement",2),c([d({type:Number})],Je.prototype,"distance",2),c([D()],Je.prototype,"activeIndex",2),c([D()],Je.prototype,"recentKeys",2);var p4=["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 h4(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 Ou(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"),p4.forEach(f=>{let b=l[f];typeof b=="string"&&(s[f]=b)}),n&&(s.height="auto");let p=o.value.slice(0,i);a.textContent=n?p.replace(/\s/g,"\xA0"):p;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:h4(r)};return a.remove(),m}function Pu(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 JB(o,i){return Pu(o,Ou(o,i))}var u4=40,_o=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:Ou(i,t)}),Pu(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>u4||/[\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=Hd(r,i);if(!n.length){this.close();return}let a=await this.options.menu();!a||t!==this.resolveToken||(a!==this.menu&&(this.menu?.removeEventListener(hs,this.handleItemSelect),a.addEventListener(hs,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,p=l?"":i.value??"";t.value.slice(r,n)===s+a&&(this.replace(t,r,n,p,i),!l&&p&&this.options.onInsert?.(i,p))}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 Ca=Je;Je.define("zn-slash-menu");var mr=yt(class extends rr{constructor(o){if(super(o),o.type!==lr.PROPERTY&&o.type!==lr.ATTRIBUTE&&o.type!==lr.BOOLEAN_ATTRIBUTE)throw Error("The `live` directive is not allowed on child or event bindings");if(!xd(o))throw Error("`live` bindings can only contain a single expression")}render(o){return o}update(o,[i]){if(i===vt||i===B)return i;let t=o.element,r=o.name;if(o.type===lr.PROPERTY){if(i===t[r])return vt}else if(o.type===lr.BOOLEAN_ATTRIBUTE){if(!!i===t.hasAttribute(r))return vt}else if(o.type===lr.ATTRIBUTE&&t.getAttribute(r)===i+"")return vt;return ns(o),i}});var Hu=new Set,us=new Map,Wn,Fu="ltr",Bu="en",i0=typeof MutationObserver<"u"&&typeof document<"u"&&typeof document.documentElement<"u";if(i0){let o=new MutationObserver(n0);Fu=document.documentElement.dir||"ltr",Bu=document.documentElement.lang||navigator.language,o.observe(document.documentElement,{attributes:!0,attributeFilter:["dir","lang"]})}function Bl(...o){o.map(i=>{let t=i.$code.toLowerCase();us.has(t)?us.set(t,Object.assign(Object.assign({},us.get(t)),i)):us.set(t,i),Wn||(Wn=i)}),n0()}function n0(){i0&&(Fu=document.documentElement.dir||"ltr",Bu=document.documentElement.lang||navigator.language),[...Hu.keys()].map(o=>{typeof o.requestUpdate=="function"&&o.requestUpdate()})}var Fd=class{constructor(i){this.host=i,this.host.addController(this)}hostConnected(){Hu.add(this.host)}hostDisconnected(){Hu.delete(this.host)}dir(){return`${this.host.dir||Fu}`.toLowerCase()}lang(){let i=`${this.host.lang||Bu}`.toLowerCase().replace(/_/g,"-");try{return new Intl.Locale(i),i}catch{return Wn?Wn.$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=us.get(`${a}-${s}`),p=us.get(a);return{locale:n,language:a,region:s,primary:l,secondary:p}}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&&Wn&&Wn[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(Wn&&Wn[i])a=Wn[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 o0={$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`};Bl(o0);var a0=o0;var Ht=class extends Fd{};Bl(a0);var s0=_`@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 k{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`
425
425
  <slot></slot>`}};fr.styles=z(s0),c([d()],fr.prototype,"label",2),c([d()],fr.prototype,"value",2),c([d()],fr.prototype,"icon",2),c([d()],fr.prototype,"description",2),c([d()],fr.prototype,"keywords",2),c([d()],fr.prototype,"group",2),c([d({type:Number})],fr.prototype,"order",2),c([d({attribute:"caret-offset",type:Number})],fr.prototype,"caretOffset",2),c([d()],fr.prototype,"action",2),c([d({type:Boolean,reflect:!0})],fr.prototype,"disabled",2);var Vl=fr;fr.define("zn-slash-item");var Se=_`.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 l0=_`@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 k{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 Ht(this);this.slashController=new _o(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,p=n*.2126729+a*.7151522+s*.072175,h=n*.0193339+a*.119192+s*.9503041,m=l/.95047,f=p/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,S=116*v-16,T=500*(g-v),N=200*(v-y),U=Math.sqrt(T*T+N*N),I=Math.atan2(N,T)*180/Math.PI;I<0&&(I+=360);let C=(S/100).toFixed(3),$=(U/150).toFixed(3),L=I.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),p=a*Math.sin(s*Math.PI/180),h=(n+16)/116,m=l/500+h,f=h-p/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,S=g*1,T=v*1.08883,N=y*3.2404542+S*-1.5371385+T*-.4985314,U=y*-.969266+S*1.8760108+T*.041556,I=y*.0556434+S*-.2040259+T*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,I=I>.0031308?1.055*Math.pow(I,1/2.4)-.055:12.92*I,N=Math.max(0,Math.min(1,N)),U=Math.max(0,Math.min(1,U)),I=Math.max(0,Math.min(1,I));let C=Math.round(N*255).toString(16).padStart(2,"0"),$=Math.round(U*255).toString(16).padStart(2,"0"),L=Math.round(I*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),p=Math.min(n,a,s),h=(l+p)/2,m=0,f=0;if(l!==p){let b=l-p;switch(f=h>.5?b/(2-l-p):b/(l+p),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,p,h;if(a===0)l=p=h=s;else{let g=(S,T,N)=>(N<0&&(N+=1),N>1&&(N-=1),N<.16666666666666666?S+(T-S)*6*N:N<.5?T:N<.6666666666666666?S+(T-S)*(.6666666666666666-N)*6:S),v=s<.5?s*(1+a):s+a-s*a,y=2*s-v;l=g(y,v,n+1/3),p=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(p*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=[...Pd(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")}async 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,p=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`
426
426
  <div part="form-control"
427
427
  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":p,"form-control--has-context-note":h,"form-control--has-help-text":m})}">
@@ -561,7 +561,7 @@ import{a as Fn,b as h3,c as _r,d as c,e as V}from"./chunks/zn.UBLZO6CI.js";var K
561
561
  <slot name="help-text">${this.helpText}</slot>
562
562
  </div>
563
563
 
564
- </div>`}};ee.styles=[z(Se),z(l0)],ee.dependencies={"zn-icon":ne,"zn-slash-item":Vl,"zn-slash-menu":Ca,"zn-tooltip":gi},c([F(".input__control")],ee.prototype,"input",2),c([F(".input__color-picker")],ee.prototype,"colorPicker",2),c([F("zn-slash-menu")],ee.prototype,"slashMenuElement",2),c([R()],ee.prototype,"hasFocus",2),c([R()],ee.prototype,"hasSlashMenu",2),c([R()],ee.prototype,"isUserTyping",2),c([d()],ee.prototype,"title",2),c([d({reflect:!0})],ee.prototype,"type",2),c([d()],ee.prototype,"name",2),c([d()],ee.prototype,"value",2),c([Ce()],ee.prototype,"defaultValue",2),c([d({reflect:!0})],ee.prototype,"size",2),c([d({type:Boolean,reflect:!0})],ee.prototype,"pill",2),c([d()],ee.prototype,"label",2),c([d({attribute:"label-tooltip"})],ee.prototype,"labelTooltip",2),c([d({attribute:"context-note"})],ee.prototype,"contextNote",2),c([d({attribute:"help-text"})],ee.prototype,"helpText",2),c([d({type:Boolean,reflect:!0})],ee.prototype,"clearable",2),c([d({attribute:"optional-icon",type:Boolean})],ee.prototype,"optionalIcon",2),c([d({type:Boolean,reflect:!0})],ee.prototype,"disabled",2),c([d({type:Boolean,reflect:!0})],ee.prototype,"filled",2),c([d()],ee.prototype,"placeholder",2),c([d({type:Boolean,reflect:!0})],ee.prototype,"readonly",2),c([d({attribute:"password-toggle",type:Boolean})],ee.prototype,"passwordToggle",2),c([d({attribute:"password-visible",type:Boolean})],ee.prototype,"passwordVisible",2),c([d({attribute:"no-spin-buttons",type:Boolean})],ee.prototype,"noSpinButtons",2),c([d({attribute:"color-format"})],ee.prototype,"colorFormat",2),c([d({attribute:"value-suffix"})],ee.prototype,"valueSuffix",2),c([d({reflect:!0})],ee.prototype,"form",2),c([d({type:Boolean,reflect:!0})],ee.prototype,"required",2),c([d()],ee.prototype,"pattern",2),c([d({type:Number})],ee.prototype,"minlength",2),c([d({type:Number})],ee.prototype,"maxlength",2),c([d()],ee.prototype,"min",2),c([d()],ee.prototype,"max",2),c([d()],ee.prototype,"step",2),c([d()],ee.prototype,"autocapitalize",2),c([d()],ee.prototype,"autocorrect",2),c([d()],ee.prototype,"autocomplete",2),c([d({type:Boolean})],ee.prototype,"autofocus",2),c([d()],ee.prototype,"enterkeyhint",2),c([d({type:Boolean,converter:{fromAttribute:t=>!(!t||t==="false"),toAttribute:t=>t?"true":"false"}})],ee.prototype,"spellcheck",2),c([d()],ee.prototype,"inputmode",2),c([d({attribute:"slash-items",converter:{fromAttribute:t=>zo(t),toAttribute:t=>JSON.stringify(t)}})],ee.prototype,"slashItems",2),c([d({attribute:"slash-preset"})],ee.prototype,"slashPreset",2),c([d({attribute:"slash-trigger"})],ee.prototype,"slashTrigger",2),c([d({attribute:"slash-heading"})],ee.prototype,"slashHeading",2),c([d({attribute:"slash-hide-keys",type:Boolean})],ee.prototype,"slashHideKeys",2),c([d({attribute:"slash-recent-key"})],ee.prototype,"slashRecentKey",2),c([d({attribute:!1})],ee.prototype,"slashItemsProvider",2),c([d({type:Boolean,attribute:"trigger-submit"})],ee.prototype,"triggerSubmit",2),c([K("disabled",{waitUntilFirstUpdate:!0})],ee.prototype,"handleDisabledChange",1),c([K("step",{waitUntilFirstUpdate:!0})],ee.prototype,"handleStepChange",1),c([K("value",{waitUntilFirstUpdate:!0})],ee.prototype,"handleValueChange",1),c([K("colorFormat",{waitUntilFirstUpdate:!0})],ee.prototype,"handleColorFormatChange",1);var nt=ee;ee.define("zn-input");var c0=_`@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;-moz-user-select:none;user-select:none;-webkit-user-select:none}:host([hidden]){display:none !important}:host(:focus){outline:none}.option{position:relative;display:flex;align-items:center;font-family:var(--zn-font-sans);font-size:var(--zn-font-size-medium);font-weight:var(--zn-font-weight-normal);line-height:var(--zn-line-height-normal);letter-spacing:var(--zn-letter-spacing-normal);color:var(--zn-input-color);padding:var(--zn-spacing-x-small) var(--zn-spacing-small);transition:var(--zn-transition-fast) fill;cursor:pointer}.option--selected{background-color:var(--zn-color-primary-200)}.option--hover:not(.option--disabled),.option--current,.option--current.option--disabled{background-color:var(--zn-color-primary-100);color:var(--zn-input-color);opacity:1}.option--disabled{outline:none;opacity:0.5;cursor:not-allowed}.option__label{flex:1 1 auto;display:inline-block;font-size:var(--zn-font-size-small);line-height:var(--ts-leading-5)}.option .option__check{flex:0 0 auto;display:flex;align-items:center;justify-content:center;visibility:hidden;padding-inline-start:0.375rem;padding-inline-end:0.375rem}.option--selected .option__check{visibility:visible}.option__prefix,.option__suffix{flex:0 0 auto;display:flex;align-items:center}.option__prefix::slotted(*){margin-inline-end:var(--zn-spacing-small);font-size:var(--zn-font-size-large)}.option__suffix::slotted(*){margin-inline-start:var(--zn-spacing-small)}@media (forced-colors:active){:host(:hover:not([aria-disabled=true])) .option{outline:dashed 1px SelectedItem;outline-offset:-1px}}`;var Cr=class extends k{constructor(){super(...arguments);this.localize=new Ht(this);this.multiple=!1;this.current=!1;this.hasHover=!1;this.value="";this.disabled=!1;this.selected=!1}connectedCallback(){super.connectedCallback(),this.setAttribute("role","option"),this.setAttribute("aria-selected","false")}handleDefaultSlotChange(){let t=this.getTextLabel();if(typeof this.cachedTextLabel>"u"){this.cachedTextLabel=t;return}t!==this.cachedTextLabel&&(this.cachedTextLabel=t,this.emit("slotchange",{bubbles:!0,composed:!1,cancelable:!1}))}handleMouseEnter(){this.hasHover=!0}handleMouseLeave(){this.hasHover=!1}handleDisabledChange(){this.setAttribute("aria-disabled",this.disabled?"true":"false")}handleSelectedChange(){this.setAttribute("aria-selected",this.selected?"true":"false")}getTextLabel(){let t=this.childNodes,r="";return[...t].forEach(n=>{n.nodeType===Node.ELEMENT_NODE&&(n.hasAttribute("slot")||(r+=n.textContent)),n.nodeType===Node.TEXT_NODE&&(r+=n.textContent)}),r.trim()}render(){return u`
564
+ </div>`}};ee.styles=[z(Se),z(l0)],ee.dependencies={"zn-icon":ne,"zn-slash-item":Vl,"zn-slash-menu":Ca,"zn-tooltip":gi},c([F(".input__control")],ee.prototype,"input",2),c([F(".input__color-picker")],ee.prototype,"colorPicker",2),c([F("zn-slash-menu")],ee.prototype,"slashMenuElement",2),c([D()],ee.prototype,"hasFocus",2),c([D()],ee.prototype,"hasSlashMenu",2),c([D()],ee.prototype,"isUserTyping",2),c([d()],ee.prototype,"title",2),c([d({reflect:!0})],ee.prototype,"type",2),c([d()],ee.prototype,"name",2),c([d()],ee.prototype,"value",2),c([Ce()],ee.prototype,"defaultValue",2),c([d({reflect:!0})],ee.prototype,"size",2),c([d({type:Boolean,reflect:!0})],ee.prototype,"pill",2),c([d()],ee.prototype,"label",2),c([d({attribute:"label-tooltip"})],ee.prototype,"labelTooltip",2),c([d({attribute:"context-note"})],ee.prototype,"contextNote",2),c([d({attribute:"help-text"})],ee.prototype,"helpText",2),c([d({type:Boolean,reflect:!0})],ee.prototype,"clearable",2),c([d({attribute:"optional-icon",type:Boolean})],ee.prototype,"optionalIcon",2),c([d({type:Boolean,reflect:!0})],ee.prototype,"disabled",2),c([d({type:Boolean,reflect:!0})],ee.prototype,"filled",2),c([d()],ee.prototype,"placeholder",2),c([d({type:Boolean,reflect:!0})],ee.prototype,"readonly",2),c([d({attribute:"password-toggle",type:Boolean})],ee.prototype,"passwordToggle",2),c([d({attribute:"password-visible",type:Boolean})],ee.prototype,"passwordVisible",2),c([d({attribute:"no-spin-buttons",type:Boolean})],ee.prototype,"noSpinButtons",2),c([d({attribute:"color-format"})],ee.prototype,"colorFormat",2),c([d({attribute:"value-suffix"})],ee.prototype,"valueSuffix",2),c([d({reflect:!0})],ee.prototype,"form",2),c([d({type:Boolean,reflect:!0})],ee.prototype,"required",2),c([d()],ee.prototype,"pattern",2),c([d({type:Number})],ee.prototype,"minlength",2),c([d({type:Number})],ee.prototype,"maxlength",2),c([d()],ee.prototype,"min",2),c([d()],ee.prototype,"max",2),c([d()],ee.prototype,"step",2),c([d()],ee.prototype,"autocapitalize",2),c([d()],ee.prototype,"autocorrect",2),c([d()],ee.prototype,"autocomplete",2),c([d({type:Boolean})],ee.prototype,"autofocus",2),c([d()],ee.prototype,"enterkeyhint",2),c([d({type:Boolean,converter:{fromAttribute:t=>!(!t||t==="false"),toAttribute:t=>t?"true":"false"}})],ee.prototype,"spellcheck",2),c([d()],ee.prototype,"inputmode",2),c([d({attribute:"slash-items",converter:{fromAttribute:t=>zo(t),toAttribute:t=>JSON.stringify(t)}})],ee.prototype,"slashItems",2),c([d({attribute:"slash-preset"})],ee.prototype,"slashPreset",2),c([d({attribute:"slash-trigger"})],ee.prototype,"slashTrigger",2),c([d({attribute:"slash-heading"})],ee.prototype,"slashHeading",2),c([d({attribute:"slash-hide-keys",type:Boolean})],ee.prototype,"slashHideKeys",2),c([d({attribute:"slash-recent-key"})],ee.prototype,"slashRecentKey",2),c([d({attribute:!1})],ee.prototype,"slashItemsProvider",2),c([d({type:Boolean,attribute:"trigger-submit"})],ee.prototype,"triggerSubmit",2),c([K("disabled",{waitUntilFirstUpdate:!0})],ee.prototype,"handleDisabledChange",1),c([K("step",{waitUntilFirstUpdate:!0})],ee.prototype,"handleStepChange",1),c([K("value",{waitUntilFirstUpdate:!0})],ee.prototype,"handleValueChange",1),c([K("colorFormat",{waitUntilFirstUpdate:!0})],ee.prototype,"handleColorFormatChange",1);var ot=ee;ee.define("zn-input");var c0=_`@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;-moz-user-select:none;user-select:none;-webkit-user-select:none}:host([hidden]){display:none !important}:host(:focus){outline:none}.option{position:relative;display:flex;align-items:center;font-family:var(--zn-font-sans);font-size:var(--zn-font-size-medium);font-weight:var(--zn-font-weight-normal);line-height:var(--zn-line-height-normal);letter-spacing:var(--zn-letter-spacing-normal);color:var(--zn-input-color);padding:var(--zn-spacing-x-small) var(--zn-spacing-small);transition:var(--zn-transition-fast) fill;cursor:pointer}.option--selected{background-color:var(--zn-color-primary-200)}.option--hover:not(.option--disabled),.option--current,.option--current.option--disabled{background-color:var(--zn-color-primary-100);color:var(--zn-input-color);opacity:1}.option--disabled{outline:none;opacity:0.5;cursor:not-allowed}.option__label{flex:1 1 auto;display:inline-block;font-size:var(--zn-font-size-small);line-height:var(--ts-leading-5)}.option .option__check{flex:0 0 auto;display:flex;align-items:center;justify-content:center;visibility:hidden;padding-inline-start:0.375rem;padding-inline-end:0.375rem}.option--selected .option__check{visibility:visible}.option__prefix,.option__suffix{flex:0 0 auto;display:flex;align-items:center}.option__prefix::slotted(*){margin-inline-end:var(--zn-spacing-small);font-size:var(--zn-font-size-large)}.option__suffix::slotted(*){margin-inline-start:var(--zn-spacing-small)}@media (forced-colors:active){:host(:hover:not([aria-disabled=true])) .option{outline:dashed 1px SelectedItem;outline-offset:-1px}}`;var Cr=class extends k{constructor(){super(...arguments);this.localize=new Ht(this);this.multiple=!1;this.current=!1;this.hasHover=!1;this.value="";this.disabled=!1;this.selected=!1}connectedCallback(){super.connectedCallback(),this.setAttribute("role","option"),this.setAttribute("aria-selected","false")}handleDefaultSlotChange(){let t=this.getTextLabel();if(typeof this.cachedTextLabel>"u"){this.cachedTextLabel=t;return}t!==this.cachedTextLabel&&(this.cachedTextLabel=t,this.emit("slotchange",{bubbles:!0,composed:!1,cancelable:!1}))}handleMouseEnter(){this.hasHover=!0}handleMouseLeave(){this.hasHover=!1}handleDisabledChange(){this.setAttribute("aria-disabled",this.disabled?"true":"false")}handleSelectedChange(){this.setAttribute("aria-selected",this.selected?"true":"false")}getTextLabel(){let t=this.childNodes,r="";return[...t].forEach(n=>{n.nodeType===Node.ELEMENT_NODE&&(n.hasAttribute("slot")||(r+=n.textContent)),n.nodeType===Node.TEXT_NODE&&(r+=n.textContent)}),r.trim()}render(){return u`
565
565
  <div
566
566
  part="base"
567
567
  class=${M({option:!0,"option--current":this.current,"option--disabled":this.disabled,"option--selected":this.selected,"option--hover":this.hasHover,"option--singular":!this.multiple})}
@@ -577,7 +577,7 @@ import{a as Fn,b as h3,c as _r,d as c,e as V}from"./chunks/zn.UBLZO6CI.js";var K
577
577
  aria-hidden="true"
578
578
  ></zn-icon>
579
579
  </div>
580
- `}};Cr.styles=z(c0),Cr.dependencies={"zn-icon":ne},c([F(".option__label")],Cr.prototype,"defaultSlot",2),c([R()],Cr.prototype,"current",2),c([R()],Cr.prototype,"hasHover",2),c([d({reflect:!0})],Cr.prototype,"value",2),c([d({type:Boolean,reflect:!0})],Cr.prototype,"disabled",2),c([d({type:Boolean,reflect:!0})],Cr.prototype,"selected",2),c([K("disabled")],Cr.prototype,"handleDisabledChange",1),c([K("selected")],Cr.prototype,"handleSelectedChange",1);var ot=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:Vu()?0:t.duration});n.addEventListener("cancel",r,{once:!0}),n.addEventListener("finish",r,{once:!0})})}function Vu(){return window.matchMedia("(prefers-reduced-motion: reduce)").matches}function Uu(o){return Promise.all(o.getAnimations().map(i=>new Promise(t=>{i.cancel(),requestAnimationFrame(t)})))}var ms=class{constructor(i){this.conditionals=[];this.initiallyDisabled=!1;this.handleChange=()=>this.checkConditionals();(this.host=i).addController(this)}setup(){if(this.host.conditional==="")return;let i=this.host.conditional.split(",").map(t=>t.trim());i.forEach(t=>{let r=Ge(cr(t),document.documentElement,""),n=Ge(`[name="${t}"]`,document.documentElement,""),a=new Set;[...r,...n].forEach(s=>{a.has(s)||(a.add(s),this.conditionals.push(s))})}),this.initiallyDisabled=this.host.disabled,i.length!==0&&(this.conditionals.forEach(t=>{t.addEventListener("zn-change",this.handleChange),t.addEventListener("zn-input",this.handleChange)}),this.checkConditionals())}hostConnected(){}hostDisconnected(){this.conditionals.forEach(i=>{i.removeEventListener("zn-change",this.handleChange)}),this.conditionals=[]}check(){this.checkConditionals()}checkConditionals(){let i=this.conditionals.some(t=>{let r=Array.isArray(t.value)?t.value:[t.value];return r=r.filter(n=>n!==""&&n!=="0"),r.length>0});this.host.disabled=this.initiallyDisabled||i}};var p0=new Map,m4=new WeakMap;function f4(o){return o??{keyframes:[],options:{duration:0}}}function d0(o,i){return i.toLowerCase()==="rtl"?{keyframes:o.rtlKeyframes||o.keyframes,options:o.options}:o}function Cn(o,i){p0.set(o,f4(i))}function Sn(o,i,t){let r=m4.get(o);if(r?.[i])return d0(r[i],t.dir);let n=p0.get(i);return n?d0(n,t.dir):{keyframes:[],options:{duration:0}}}var h0=_`@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)){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 rn=class extends k{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)}render(){return u`
580
+ `}};Cr.styles=z(c0),Cr.dependencies={"zn-icon":ne},c([F(".option__label")],Cr.prototype,"defaultSlot",2),c([D()],Cr.prototype,"current",2),c([D()],Cr.prototype,"hasHover",2),c([d({reflect:!0})],Cr.prototype,"value",2),c([d({type:Boolean,reflect:!0})],Cr.prototype,"disabled",2),c([d({type:Boolean,reflect:!0})],Cr.prototype,"selected",2),c([K("disabled")],Cr.prototype,"handleDisabledChange",1),c([K("selected")],Cr.prototype,"handleSelectedChange",1);var at=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:Vu()?0:t.duration});n.addEventListener("cancel",r,{once:!0}),n.addEventListener("finish",r,{once:!0})})}function Vu(){return window.matchMedia("(prefers-reduced-motion: reduce)").matches}function Uu(o){return Promise.all(o.getAnimations().map(i=>new Promise(t=>{i.cancel(),requestAnimationFrame(t)})))}var ms=class{constructor(i){this.conditionals=[];this.initiallyDisabled=!1;this.handleChange=()=>this.checkConditionals();(this.host=i).addController(this)}setup(){if(this.host.conditional==="")return;let i=this.host.conditional.split(",").map(t=>t.trim());i.forEach(t=>{let r=Ge(cr(t),document.documentElement,""),n=Ge(`[name="${t}"]`,document.documentElement,""),a=new Set;[...r,...n].forEach(s=>{a.has(s)||(a.add(s),this.conditionals.push(s))})}),this.initiallyDisabled=this.host.disabled,i.length!==0&&(this.conditionals.forEach(t=>{t.addEventListener("zn-change",this.handleChange),t.addEventListener("zn-input",this.handleChange)}),this.checkConditionals())}hostConnected(){}hostDisconnected(){this.conditionals.forEach(i=>{i.removeEventListener("zn-change",this.handleChange)}),this.conditionals=[]}check(){this.checkConditionals()}checkConditionals(){let i=this.conditionals.some(t=>{let r=Array.isArray(t.value)?t.value:[t.value];return r=r.filter(n=>n!==""&&n!=="0"),r.length>0});this.host.disabled=this.initiallyDisabled||i}};var p0=new Map,m4=new WeakMap;function f4(o){return o??{keyframes:[],options:{duration:0}}}function d0(o,i){return i.toLowerCase()==="rtl"?{keyframes:o.rtlKeyframes||o.keyframes,options:o.options}:o}function Cn(o,i){p0.set(o,f4(i))}function Sn(o,i,t){let r=m4.get(o);if(r?.[i])return d0(r[i],t.dir);let n=p0.get(i);return n?d0(n,t.dir):{keyframes:[],options:{duration:0}}}var h0=_`@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)){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 rn=class extends k{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)}render(){return u`
581
581
  <div part="base" class="opt-group">
582
582
  ${this.label?u`<div part="label" class="opt-group__label" aria-hidden="true">${this.label}</div>`:B}
583
583
  <div class="opt-group__options" role="none">
@@ -770,7 +770,7 @@ import{a as Fn,b as h3,c as _r,d as c,e as V}from"./chunks/zn.UBLZO6CI.js";var K
770
770
  <slot name="help-text">${this.helpText}</slot>
771
771
  </div>
772
772
  </div>
773
- `}};Z.styles=[z(Se),z(u0)],Z.dependencies={"zn-icon":ne,"zn-opt-group":ju,"zn-option":ot,"zn-popup":Nl,"zn-tag":Gn},c([F(".select")],Z.prototype,"popup",2),c([F(".select__combobox")],Z.prototype,"combobox",2),c([F(".select__display-input")],Z.prototype,"displayInput",2),c([F(".select__value-input")],Z.prototype,"valueInput",2),c([F(".select__listbox")],Z.prototype,"listbox",2),c([F('slot[name="prefix"]')],Z.prototype,"prefixSlot",2),c([R()],Z.prototype,"hasFocus",2),c([R()],Z.prototype,"displayLabel",2),c([R()],Z.prototype,"currentOption",2),c([R()],Z.prototype,"selectedOptions",2),c([R()],Z.prototype,"valueHasChanged",2),c([R()],Z.prototype,"inputPrefix",2),c([R()],Z.prototype,"_searchDisplayValue",2),c([R()],Z.prototype,"_noResultsVisible",2),c([R()],Z.prototype,"_addOptionActive",2),c([R()],Z.prototype,"_fetchedOptions",2),c([R()],Z.prototype,"_fetchLoading",2),c([R()],Z.prototype,"_fetchError",2),c([R()],Z.prototype,"_searchLoading",2),c([R()],Z.prototype,"_totalResultCount",2),c([d()],Z.prototype,"name",2),c([d({type:Boolean,attribute:"non-removable"})],Z.prototype,"nonRemovable",2),c([R()],Z.prototype,"value",1),c([d({attribute:"value",converter:{fromAttribute:t=>{if(!t||Array.isArray(t))return t;if(t.trimStart().startsWith("["))try{let r=JSON.parse(t);if(Array.isArray(r))return r}catch{}return t.includes(" ")?t.split(" "):t},toAttribute:t=>Array.isArray(t)&&t.some(r=>r.includes(" "))?JSON.stringify(t):Array.isArray(t)?t.join(" "):t}})],Z.prototype,"defaultValue",2),c([d({reflect:!0})],Z.prototype,"size",2),c([d()],Z.prototype,"placeholder",2),c([d({type:Boolean,reflect:!0})],Z.prototype,"multiple",2),c([d({attribute:"max-options",type:Number})],Z.prototype,"maxOptions",2),c([d({attribute:"max-options-visible",type:Number})],Z.prototype,"maxOptionsVisible",2),c([d({type:Boolean,reflect:!0})],Z.prototype,"disabled",2),c([d({type:Boolean})],Z.prototype,"clearable",2),c([d({type:Boolean,reflect:!0})],Z.prototype,"open",2),c([d({type:Boolean})],Z.prototype,"hoist",2),c([d({type:Boolean,reflect:!0})],Z.prototype,"pill",2),c([d({type:Boolean,reflect:!0})],Z.prototype,"search",2),c([d({type:Boolean,reflect:!0,attribute:"free-text"})],Z.prototype,"freeText",2),c([d()],Z.prototype,"label",2),c([d({attribute:"label-tooltip"})],Z.prototype,"labelTooltip",2),c([d({attribute:"context-note"})],Z.prototype,"contextNote",2),c([d({reflect:!0})],Z.prototype,"placement",2),c([d({attribute:"help-text"})],Z.prototype,"helpText",2),c([d({reflect:!0})],Z.prototype,"form",2),c([d({type:Boolean,reflect:!0})],Z.prototype,"required",2),c([d({attribute:"cache-key"})],Z.prototype,"cacheKey",2),c([d({type:Boolean,attribute:"trigger-submit"})],Z.prototype,"triggerSubmit",2),c([d()],Z.prototype,"getTag",2),c([d({attribute:"select-first",type:Boolean})],Z.prototype,"selectFirst",2),c([d()],Z.prototype,"distinct",2),c([d()],Z.prototype,"conditional",2),c([d({attribute:"data-uri"})],Z.prototype,"dataUri",2),c([d({attribute:"context-data"})],Z.prototype,"contextData",2),c([d({attribute:"max-results",type:Number})],Z.prototype,"maxResults",2),c([d({attribute:"search-debounce",type:Number})],Z.prototype,"searchDebounce",2),c([d({attribute:"search-param"})],Z.prototype,"searchParam",2),c([d({attribute:"search-only",type:Boolean})],Z.prototype,"searchOnly",2),c([K("disabled",{waitUntilFirstUpdate:!0})],Z.prototype,"handleDisabledChange",1),c([K(["dataUri","contextData"],{waitUntilFirstUpdate:!0})],Z.prototype,"handleSrcChange",1),c([K(["defaultValue","value"],{waitUntilFirstUpdate:!0})],Z.prototype,"handleValueChange",1),c([K("open",{waitUntilFirstUpdate:!0})],Z.prototype,"handleOpenChange",1);Cn("select.show",{keyframes:[{opacity:0,scale:.9},{opacity:1,scale:1}],options:{duration:100,easing:"ease"}});Cn("select.hide",{keyframes:[{opacity:1,scale:1},{opacity:0,scale:.9}],options:{duration:100,easing:"ease"}});var Be=Z;Z.define("zn-select");var fs=_`@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}`;var m0=_`@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;--zn-input-bg:var(--zn-panel)}.add-rule{max-width:250px;margin-bottom:10px}.query-builder{display:flex;flex-direction:column;flex-wrap:wrap}.query-builder zn-button{align-self:flex-end}.query-builder--popup:has(.query-builder__row){min-width:990px}.query-builder__row,.query-builder__wrapper{display:flex;width:100%;gap:10px}.query-builder__row{padding-bottom:10px}.query-builder__key,.query-builder__comparator{flex-basis:60%}.query-builder__value{flex-grow:1}.query-builder--dropdown:has(.query-builder__row){min-width:900px}`;var Gu={eq:"Equals",neq:"Not Equals",eqi:"Equals (Insensitive)",neqi:"Not Equals (Insensitive)",before:"Was Before",after:"Was After",in:"In",nin:"Not In",matchphrasepre:"Match Phrase Prefix",nmatchphrasepre:"Does Not Match Phrase Prefix",matchphrase:"Match Phrase",nmatchphrase:"Does Not Match Phrase",match:"Match",nmatch:"Does Not Match",contains:"Contains",doesnotcontain:"Does Not Contain",starts:"Starts With",nstarts:"Does Not Start With",ends:"Ends With",nends:"Does Not End With",wild:"Wildcard Match",nwild:"Does Not Match Wildcard",like:"Like Match With",nlike:"Does Not Like Match With",fuzzy:"Fuzzy Match With",nfuzzy:"Does Not Match Fuzzy With",gte:"Greater Than or Equals",gt:"Greater Than",lt:"Less Than",lte:"Less Than or Equals"},Sr=class extends k{constructor(){super(...arguments);this._selectedRules=new Map;this._formController=new re(this,{});this.filters=[];this.dropdown=!1;this.showValues=[]}get _usedFilterIds(){return new Set([...this._selectedRules.values()].map(t=>t.id))}get validationMessage(){return""}get validity(){return this.input?.validity}firstUpdated(t){super.firstUpdated(t),this.showValues&&this.showValues.forEach(r=>{this._addRule(null,r)}),this._handleChange(),this._formController.updateValidity()}render(){return u`
773
+ `}};Z.styles=[z(Se),z(u0)],Z.dependencies={"zn-icon":ne,"zn-opt-group":ju,"zn-option":at,"zn-popup":Nl,"zn-tag":Gn},c([F(".select")],Z.prototype,"popup",2),c([F(".select__combobox")],Z.prototype,"combobox",2),c([F(".select__display-input")],Z.prototype,"displayInput",2),c([F(".select__value-input")],Z.prototype,"valueInput",2),c([F(".select__listbox")],Z.prototype,"listbox",2),c([F('slot[name="prefix"]')],Z.prototype,"prefixSlot",2),c([D()],Z.prototype,"hasFocus",2),c([D()],Z.prototype,"displayLabel",2),c([D()],Z.prototype,"currentOption",2),c([D()],Z.prototype,"selectedOptions",2),c([D()],Z.prototype,"valueHasChanged",2),c([D()],Z.prototype,"inputPrefix",2),c([D()],Z.prototype,"_searchDisplayValue",2),c([D()],Z.prototype,"_noResultsVisible",2),c([D()],Z.prototype,"_addOptionActive",2),c([D()],Z.prototype,"_fetchedOptions",2),c([D()],Z.prototype,"_fetchLoading",2),c([D()],Z.prototype,"_fetchError",2),c([D()],Z.prototype,"_searchLoading",2),c([D()],Z.prototype,"_totalResultCount",2),c([d()],Z.prototype,"name",2),c([d({type:Boolean,attribute:"non-removable"})],Z.prototype,"nonRemovable",2),c([D()],Z.prototype,"value",1),c([d({attribute:"value",converter:{fromAttribute:t=>{if(!t||Array.isArray(t))return t;if(t.trimStart().startsWith("["))try{let r=JSON.parse(t);if(Array.isArray(r))return r}catch{}return t.includes(" ")?t.split(" "):t},toAttribute:t=>Array.isArray(t)&&t.some(r=>r.includes(" "))?JSON.stringify(t):Array.isArray(t)?t.join(" "):t}})],Z.prototype,"defaultValue",2),c([d({reflect:!0})],Z.prototype,"size",2),c([d()],Z.prototype,"placeholder",2),c([d({type:Boolean,reflect:!0})],Z.prototype,"multiple",2),c([d({attribute:"max-options",type:Number})],Z.prototype,"maxOptions",2),c([d({attribute:"max-options-visible",type:Number})],Z.prototype,"maxOptionsVisible",2),c([d({type:Boolean,reflect:!0})],Z.prototype,"disabled",2),c([d({type:Boolean})],Z.prototype,"clearable",2),c([d({type:Boolean,reflect:!0})],Z.prototype,"open",2),c([d({type:Boolean})],Z.prototype,"hoist",2),c([d({type:Boolean,reflect:!0})],Z.prototype,"pill",2),c([d({type:Boolean,reflect:!0})],Z.prototype,"search",2),c([d({type:Boolean,reflect:!0,attribute:"free-text"})],Z.prototype,"freeText",2),c([d()],Z.prototype,"label",2),c([d({attribute:"label-tooltip"})],Z.prototype,"labelTooltip",2),c([d({attribute:"context-note"})],Z.prototype,"contextNote",2),c([d({reflect:!0})],Z.prototype,"placement",2),c([d({attribute:"help-text"})],Z.prototype,"helpText",2),c([d({reflect:!0})],Z.prototype,"form",2),c([d({type:Boolean,reflect:!0})],Z.prototype,"required",2),c([d({attribute:"cache-key"})],Z.prototype,"cacheKey",2),c([d({type:Boolean,attribute:"trigger-submit"})],Z.prototype,"triggerSubmit",2),c([d()],Z.prototype,"getTag",2),c([d({attribute:"select-first",type:Boolean})],Z.prototype,"selectFirst",2),c([d()],Z.prototype,"distinct",2),c([d()],Z.prototype,"conditional",2),c([d({attribute:"data-uri"})],Z.prototype,"dataUri",2),c([d({attribute:"context-data"})],Z.prototype,"contextData",2),c([d({attribute:"max-results",type:Number})],Z.prototype,"maxResults",2),c([d({attribute:"search-debounce",type:Number})],Z.prototype,"searchDebounce",2),c([d({attribute:"search-param"})],Z.prototype,"searchParam",2),c([d({attribute:"search-only",type:Boolean})],Z.prototype,"searchOnly",2),c([K("disabled",{waitUntilFirstUpdate:!0})],Z.prototype,"handleDisabledChange",1),c([K(["dataUri","contextData"],{waitUntilFirstUpdate:!0})],Z.prototype,"handleSrcChange",1),c([K(["defaultValue","value"],{waitUntilFirstUpdate:!0})],Z.prototype,"handleValueChange",1),c([K("open",{waitUntilFirstUpdate:!0})],Z.prototype,"handleOpenChange",1);Cn("select.show",{keyframes:[{opacity:0,scale:.9},{opacity:1,scale:1}],options:{duration:100,easing:"ease"}});Cn("select.hide",{keyframes:[{opacity:1,scale:1},{opacity:0,scale:.9}],options:{duration:100,easing:"ease"}});var Be=Z;Z.define("zn-select");var fs=_`@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}`;var m0=_`@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;--zn-input-bg:var(--zn-panel)}.add-rule{max-width:250px;margin-bottom:10px}.query-builder{display:flex;flex-direction:column;flex-wrap:wrap}.query-builder zn-button{align-self:flex-end}.query-builder--popup:has(.query-builder__row){min-width:990px}.query-builder__row,.query-builder__wrapper{display:flex;width:100%;gap:10px}.query-builder__row{padding-bottom:10px}.query-builder__key,.query-builder__comparator{flex-basis:60%}.query-builder__value{flex-grow:1}.query-builder--dropdown:has(.query-builder__row){min-width:900px}`;var Gu={eq:"Equals",neq:"Not Equals",eqi:"Equals (Insensitive)",neqi:"Not Equals (Insensitive)",before:"Was Before",after:"Was After",in:"In",nin:"Not In",matchphrasepre:"Match Phrase Prefix",nmatchphrasepre:"Does Not Match Phrase Prefix",matchphrase:"Match Phrase",nmatchphrase:"Does Not Match Phrase",match:"Match",nmatch:"Does Not Match",contains:"Contains",doesnotcontain:"Does Not Contain",starts:"Starts With",nstarts:"Does Not Start With",ends:"Ends With",nends:"Does Not End With",wild:"Wildcard Match",nwild:"Does Not Match Wildcard",like:"Like Match With",nlike:"Does Not Like Match With",fuzzy:"Fuzzy Match With",nfuzzy:"Does Not Match Fuzzy With",gte:"Greater Than or Equals",gt:"Greater Than",lt:"Less Than",lte:"Less Than or Equals"},Sr=class extends k{constructor(){super(...arguments);this._selectedRules=new Map;this._formController=new re(this,{});this.filters=[];this.dropdown=!1;this.showValues=[]}get _usedFilterIds(){return new Set([...this._selectedRules.values()].map(t=>t.id))}get validationMessage(){return""}get validity(){return this.input?.validity}firstUpdated(t){super.firstUpdated(t),this.showValues&&this.showValues.forEach(r=>{this._addRule(null,r)}),this._handleChange(),this._formController.updateValidity()}render(){return u`
774
774
  <div class=${M({"query-builder":!0,"query-builder--dropdown":this.dropdown})}>
775
775
  <zn-select class="add-rule"
776
776
  size="medium"
@@ -852,7 +852,7 @@ import{a as Fn,b as h3,c as _r,d as c,e as V}from"./chunks/zn.UBLZO6CI.js";var K
852
852
  <zn-input type="text"
853
853
  class="query-builder__value"
854
854
  @zn-input="${n=>this._updateValue(t,n)}">
855
- </zn-input>`;return qt(r)}_updateOperatorValue(t,r){let n=this._selectedRules.get(t);if(!n)return;let a=r.target;this._previousOperator=n.operator,n.operator=a.value,this._selectedRules.set(t,n),this._handleChange()}_updateDateValue(t,r,n="legacy"){let a=this._selectedRules.get(t);if(!a)return;let s=r.target,l=a.operator,p,h;switch(n){case"legacy":if(l==="eq"||l==="neq")h=(s.timestamp/1e3).toString();else{let m=l==="before"?-1:1;h=(Math.floor((Date.now()-s.timestamp)/1e3/60)*m).toString()}break;case"timestamp":h=s.timestamp.toString();break;case"iso":p=new Date(s.timestamp),h=new Date(p.getTime()-p.getTimezoneOffset()*6e4).toISOString();break}a.value=h,this._selectedRules.set(t,a),this._handleChange()}_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()}updateInValue(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()}_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)}_getRulePosition(t){let r=this.container.querySelectorAll(".query-builder__row"),n=-1;return r.forEach((a,s)=>{a.id===t&&(n=s)}),n}_removeRule(t,r){this._selectedRules.delete(t),r.target?.closest(".query-builder__row")?.remove(),this._handleChange()}clear(){this._selectedRules.clear(),this.value="",this.container.querySelectorAll(".query-builder__row").forEach(r=>{r.remove()}),this.requestUpdate(),this._formController.updateValidity()}reset(){this.clear(),this.showValues.forEach(t=>{this._addRule(null,t)}),this._handleChange(),this._formController.updateValidity()}checkValidity(){return this.input.checkValidity()}getForm(){return this._formController.getForm()}reportValidity(){return this.input.reportValidity()}setCustomValidity(t){this.input.setCustomValidity(t),this._formController.updateValidity()}};Sr.styles=[z(fs),z(m0)],Sr.dependencies={"zn-button":$e,"zn-input":nt,"zn-option":ot,"zn-select":Be},c([F(".query-builder")],Sr.prototype,"container",2),c([F(".add-rule")],Sr.prototype,"addRule",2),c([F("input#main-input")],Sr.prototype,"input",2),c([d({type:Array})],Sr.prototype,"filters",2),c([d({type:Boolean})],Sr.prototype,"dropdown",2),c([d()],Sr.prototype,"name",2),c([d()],Sr.prototype,"value",2),c([d({attribute:"show-values",converter:{fromAttribute:t=>t.split(" "),toAttribute:t=>t.join(" ")}})],Sr.prototype,"showValues",2);var g4=Sr;Sr.define("zn-query-builder");var b0=_r(Ku(),1);var f0=_`.air-datepicker-cell.-year-.-other-decade-,.air-datepicker-cell.-day-.-other-month-{color:var(--adp-color-other-month)}.air-datepicker-cell.-year-.-other-decade-:hover,.air-datepicker-cell.-day-.-other-month-:hover{color:var(--adp-color-other-month-hover)}.-disabled-.-focus-.air-datepicker-cell.-year-.-other-decade-,.-disabled-.-focus-.air-datepicker-cell.-day-.-other-month-{color:var(--adp-color-other-month)}.-selected-.air-datepicker-cell.-year-.-other-decade-,.-selected-.air-datepicker-cell.-day-.-other-month-{color:#fff;background:var(--adp-background-color-selected-other-month)}.-selected-.-focus-.air-datepicker-cell.-year-.-other-decade-,.-selected-.-focus-.air-datepicker-cell.-day-.-other-month-{background:var(--adp-background-color-selected-other-month-focused)}.-in-range-.air-datepicker-cell.-year-.-other-decade-,.-in-range-.air-datepicker-cell.-day-.-other-month-{background-color:var(--adp-background-color-in-range);color:var(--adp-color)}.-in-range-.-focus-.air-datepicker-cell.-year-.-other-decade-,.-in-range-.-focus-.air-datepicker-cell.-day-.-other-month-{background-color:var(--adp-background-color-in-range-focused)}.air-datepicker-cell.-year-.-other-decade-:empty,.air-datepicker-cell.-day-.-other-month-:empty{background:none;border:none}.air-datepicker-cell{border-radius:var(--adp-cell-border-radius);box-sizing:border-box;cursor:pointer;display:flex;position:relative;align-items:center;justify-content:center;z-index:1}.air-datepicker-cell.-focus-{background:var(--adp-cell-background-color-hover)}.air-datepicker-cell.-current-{color:var(--adp-color-current-date)}.air-datepicker-cell.-current-.-focus-{color:var(--adp-color)}.air-datepicker-cell.-current-.-in-range-{color:var(--adp-color-current-date)}.air-datepicker-cell.-disabled-{cursor:default;color:var(--adp-color-disabled)}.air-datepicker-cell.-disabled-.-focus-{color:var(--adp-color-disabled)}.air-datepicker-cell.-disabled-.-in-range-{color:var(--adp-color-disabled-in-range)}.air-datepicker-cell.-disabled-.-current-.-focus-{color:var(--adp-color-disabled)}.air-datepicker-cell.-in-range-{background:var(--adp-cell-background-color-in-range);border-radius:0}.air-datepicker-cell.-in-range-:hover,.air-datepicker-cell.-in-range-.-focus-{background:var(--adp-cell-background-color-in-range-hover)}.air-datepicker-cell.-range-from-{border:1px solid var(--adp-cell-border-color-in-range);background-color:var(--adp-cell-background-color-in-range);border-radius:var(--adp-cell-border-radius) 0 0 var(--adp-cell-border-radius)}.air-datepicker-cell.-range-to-{border:1px solid var(--adp-cell-border-color-in-range);background-color:var(--adp-cell-background-color-in-range);border-radius:0 var(--adp-cell-border-radius) var(--adp-cell-border-radius) 0}.air-datepicker-cell.-range-to-.-range-from-{border-radius:var(--adp-cell-border-radius)}.air-datepicker-cell.-selected-{color:#fff;border:none;background:var(--adp-cell-background-color-selected)}.air-datepicker-cell.-selected-.-current-{color:#fff;background:var(--adp-cell-background-color-selected)}.air-datepicker-cell.-selected-.-focus-{background:var(--adp-cell-background-color-selected-hover)}.air-datepicker-body{transition:all var(--adp-transition-duration) var(--adp-transition-ease)}.air-datepicker-body.-hidden-{display:none}.air-datepicker-body--day-names{display:grid;grid-template-columns:repeat(7,var(--adp-day-cell-width));margin:8px 0 3px}.air-datepicker-body--day-name{color:var(--adp-day-name-color);display:flex;align-items:center;justify-content:center;flex:1;text-align:center;text-transform:uppercase;font-size:0.8em}.air-datepicker-body--day-name.-clickable-{cursor:pointer}.air-datepicker-body--day-name.-clickable-:hover{color:var(--adp-day-name-color-hover)}.air-datepicker-body--cells{display:grid}.air-datepicker-body--cells.-days-{grid-template-columns:repeat(7,var(--adp-day-cell-width));grid-auto-rows:var(--adp-day-cell-height)}.air-datepicker-body--cells.-months-{grid-template-columns:repeat(3,1fr);grid-auto-rows:var(--adp-month-cell-height)}.air-datepicker-body--cells.-years-{grid-template-columns:repeat(4,1fr);grid-auto-rows:var(--adp-year-cell-height)}.air-datepicker-nav{display:flex;justify-content:space-between;border-bottom:1px solid var(--adp-border-color-inner);min-height:var(--adp-nav-height);padding:var(--adp-padding);box-sizing:content-box}.-only-timepicker- .air-datepicker-nav{display:none}.air-datepicker-nav--title,.air-datepicker-nav--action{display:flex;cursor:pointer;align-items:center;justify-content:center}.air-datepicker-nav--action{width:var(--adp-nav-action-size);border-radius:var(--adp-border-radius);-webkit-user-select:none;-moz-user-select:none;user-select:none}.air-datepicker-nav--action:hover{background:var(--adp-background-color-hover)}.air-datepicker-nav--action:active{background:var(--adp-background-color-active)}.air-datepicker-nav--action.-disabled-{visibility:hidden}.air-datepicker-nav--action svg{width:32px;height:32px}.air-datepicker-nav--action path{fill:none;stroke:var(--adp-nav-arrow-color);stroke-width:2px}.air-datepicker-nav--title{border-radius:var(--adp-border-radius);padding:0 8px}.air-datepicker-nav--title i{font-style:normal;color:var(--adp-nav-color-secondary);margin-left:0.3em}.air-datepicker-nav--title:hover{background:var(--adp-background-color-hover)}.air-datepicker-nav--title:active{background:var(--adp-background-color-active)}.air-datepicker-nav--title.-disabled-{cursor:default;background:none}.air-datepicker-buttons{display:grid;grid-auto-columns:1fr;grid-auto-flow:column}.air-datepicker-button{display:inline-flex;color:var(--adp-btn-color);border-radius:var(--adp-btn-border-radius);cursor:pointer;height:var(--adp-btn-height);border:none;background:rgba(255,255,255,0)}.air-datepicker-button:hover{color:var(--adp-btn-color-hover);background:var(--adp-btn-background-color-hover)}.air-datepicker-button:focus{color:var(--adp-btn-color-hover);background:var(--adp-btn-background-color-hover);outline:none}.air-datepicker-button:active{background:var(--adp-btn-background-color-active)}.air-datepicker-button span{outline:none;display:flex;align-items:center;justify-content:center;width:100%;height:100%}.air-datepicker-time{display:grid;grid-template-columns:max-content 1fr;grid-column-gap:12px;align-items:center;position:relative;padding:0 var(--adp-time-padding-inner)}.-only-timepicker- .air-datepicker-time{border-top:none}.air-datepicker-time--current{display:flex;align-items:center;flex:1;font-size:14px;text-align:center}.air-datepicker-time--current-colon{margin:0 2px 3px;line-height:1}.air-datepicker-time--current-hours,.air-datepicker-time--current-minutes{line-height:1;font-size:19px;font-family:"Century Gothic",CenturyGothic,AppleGothic,sans-serif;position:relative;z-index:1}.air-datepicker-time--current-hours:after,.air-datepicker-time--current-minutes:after{content:"";background:var(--adp-background-color-hover);border-radius:var(--adp-border-radius);position:absolute;left:-2px;top:-3px;right:-2px;bottom:-2px;z-index:-1;opacity:0}.air-datepicker-time--current-hours.-focus-:after,.air-datepicker-time--current-minutes.-focus-:after{opacity:1}.air-datepicker-time--current-ampm{text-transform:uppercase;align-self:flex-end;color:var(--adp-time-day-period-color);margin-left:6px;font-size:11px;margin-bottom:1px}.air-datepicker-time--row{display:flex;align-items:center;font-size:11px;height:17px;background:linear-gradient(to right,var(--adp-time-track-color),var(--adp-time-track-color)) left 50%/100% var(--adp-time-track-height) no-repeat}.air-datepicker-time--row:first-child{margin-bottom:4px}.air-datepicker-time--row input[type=range]{background:none;cursor:pointer;flex:1;height:100%;width:100%;padding:0;margin:0;-webkit-appearance:none}.air-datepicker-time--row input[type=range]::-webkit-slider-thumb{-webkit-appearance:none}.air-datepicker-time--row input[type=range]::-ms-tooltip{display:none}.air-datepicker-time--row input[type=range]:hover::-webkit-slider-thumb{border-color:var(--adp-time-track-color-hover)}.air-datepicker-time--row input[type=range]:hover::-moz-range-thumb{border-color:var(--adp-time-track-color-hover)}.air-datepicker-time--row input[type=range]:hover::-ms-thumb{border-color:var(--adp-time-track-color-hover)}.air-datepicker-time--row input[type=range]:focus{outline:none}.air-datepicker-time--row input[type=range]:focus::-webkit-slider-thumb{background:var(--adp-cell-background-color-selected);border-color:var(--adp-cell-background-color-selected)}.air-datepicker-time--row input[type=range]:focus::-moz-range-thumb{background:var(--adp-cell-background-color-selected);border-color:var(--adp-cell-background-color-selected)}.air-datepicker-time--row input[type=range]:focus::-ms-thumb{background:var(--adp-cell-background-color-selected);border-color:var(--adp-cell-background-color-selected)}.air-datepicker-time--row input[type=range]::-webkit-slider-thumb{box-sizing:border-box;height:12px;width:12px;border-radius:3px;border:1px solid var(--adp-time-track-color);background:#fff;cursor:pointer;-webkit-transition:background var(--adp-transition-duration);transition:background var(--adp-transition-duration)}.air-datepicker-time--row input[type=range]::-moz-range-thumb{box-sizing:border-box;height:12px;width:12px;border-radius:3px;border:1px solid var(--adp-time-track-color);background:#fff;cursor:pointer;-moz-transition:background var(--adp-transition-duration);transition:background var(--adp-transition-duration)}.air-datepicker-time--row input[type=range]::-ms-thumb{box-sizing:border-box;height:12px;width:12px;border-radius:3px;border:1px solid var(--adp-time-track-color);background:#fff;cursor:pointer;-ms-transition:background var(--adp-transition-duration);transition:background var(--adp-transition-duration)}.air-datepicker-time--row input[type=range]::-webkit-slider-thumb{margin-top:calc(var(--adp-time-thumb-size) / 2 * -1)}.air-datepicker-time--row input[type=range]::-webkit-slider-runnable-track{border:none;height:var(--adp-time-track-height);cursor:pointer;color:rgba(0,0,0,0);background:rgba(0,0,0,0)}.air-datepicker-time--row input[type=range]::-moz-range-track{border:none;height:var(--adp-time-track-height);cursor:pointer;color:rgba(0,0,0,0);background:rgba(0,0,0,0)}.air-datepicker-time--row input[type=range]::-ms-track{border:none;height:var(--adp-time-track-height);cursor:pointer;color:rgba(0,0,0,0);background:rgba(0,0,0,0)}.air-datepicker-time--row input[type=range]::-ms-fill-lower{background:rgba(0,0,0,0)}.air-datepicker-time--row input[type=range]::-ms-fill-upper{background:rgba(0,0,0,0)}.air-datepicker{--adp-font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";--adp-font-size:14px;--adp-width:246px;--adp-z-index:100;--adp-padding:4px;--adp-grid-areas:"nav" "body" "timepicker" "buttons";--adp-transition-duration:.3s;--adp-transition-ease:ease-out;--adp-transition-offset:8px;--adp-background-color:#fff;--adp-background-color-hover:#f0f0f0;--adp-background-color-active:#eaeaea;--adp-background-color-in-range:rgba(92,196,239,.1);--adp-background-color-in-range-focused:rgba(92,196,239,.2);--adp-background-color-selected-other-month-focused:#8ad5f4;--adp-background-color-selected-other-month:#a2ddf6;--adp-color:#4a4a4a;--adp-color-secondary:#9c9c9c;--adp-accent-color:#4eb5e6;--adp-color-current-date:var(--adp-accent-color);--adp-color-other-month:#dedede;--adp-color-disabled:#aeaeae;--adp-color-disabled-in-range:#939393;--adp-color-other-month-hover:#c5c5c5;--adp-border-color:#dbdbdb;--adp-border-color-inner:#efefef;--adp-border-radius:4px;--adp-border-color-inline:#d7d7d7;--adp-nav-height:32px;--adp-nav-arrow-color:var(--adp-color-secondary);--adp-nav-action-size:32px;--adp-nav-color-secondary:var(--adp-color-secondary);--adp-day-name-color:#ff9a19;--adp-day-name-color-hover:#8ad5f4;--adp-day-cell-width:1fr;--adp-day-cell-height:32px;--adp-month-cell-height:42px;--adp-year-cell-height:56px;--adp-pointer-size:10px;--adp-poiner-border-radius:2px;--adp-pointer-offset:14px;--adp-cell-border-radius:4px;--adp-cell-background-color-hover:var(--adp-background-color-hover);--adp-cell-background-color-selected:#5cc4ef;--adp-cell-background-color-selected-hover:#45bced;--adp-cell-background-color-in-range:rgba(92,196,239,0.1);--adp-cell-background-color-in-range-hover:rgba(92,196,239,0.2);--adp-cell-border-color-in-range:var(--adp-cell-background-color-selected);--adp-btn-height:32px;--adp-btn-color:var(--adp-accent-color);--adp-btn-color-hover:var(--adp-color);--adp-btn-border-radius:var(--adp-border-radius);--adp-btn-background-color-hover:var(--adp-background-color-hover);--adp-btn-background-color-active:var(--adp-background-color-active);--adp-time-track-height:1px;--adp-time-track-color:#dedede;--adp-time-track-color-hover:#b1b1b1;--adp-time-thumb-size:12px;--adp-time-padding-inner:10px;--adp-time-day-period-color:var(--adp-color-secondary);--adp-mobile-font-size:16px;--adp-mobile-nav-height:40px;--adp-mobile-width:320px;--adp-mobile-day-cell-height:38px;--adp-mobile-month-cell-height:48px;--adp-mobile-year-cell-height:64px}.air-datepicker-overlay{--adp-overlay-background-color:rgba(0,0,0,.3);--adp-overlay-transition-duration:.3s;--adp-overlay-transition-ease:ease-out;--adp-overlay-z-index:99}.air-datepicker{background:var(--adp-background-color);border:1px solid var(--adp-border-color);box-shadow:0 4px 12px rgba(0,0,0,0.15);border-radius:var(--adp-border-radius);box-sizing:content-box;display:grid;grid-template-columns:1fr;grid-template-rows:repeat(4,max-content);grid-template-areas:var(--adp-grid-areas);font-family:var(--adp-font-family),sans-serif;font-size:var(--adp-font-size);color:var(--adp-color);width:var(--adp-width);position:absolute;transition:opacity var(--adp-transition-duration) var(--adp-transition-ease),transform var(--adp-transition-duration) var(--adp-transition-ease);z-index:var(--adp-z-index)}.air-datepicker:not(.-custom-position-){opacity:0}.air-datepicker.-from-top-{transform:translateY(calc(var(--adp-transition-offset) * -1))}.air-datepicker.-from-right-{transform:translateX(var(--adp-transition-offset))}.air-datepicker.-from-bottom-{transform:translateY(var(--adp-transition-offset))}.air-datepicker.-from-left-{transform:translateX(calc(var(--adp-transition-offset) * -1))}.air-datepicker.-active-:not(.-custom-position-){transform:translate(0,0);opacity:1}.air-datepicker.-active-.-custom-position-{transition:none}.air-datepicker.-inline-{border-color:var(--adp-border-color-inline);box-shadow:none;position:static;left:auto;right:auto;opacity:1;transform:none}.air-datepicker.-inline- .air-datepicker--pointer{display:none}.air-datepicker.-is-mobile-{--adp-font-size:var(--adp-mobile-font-size);--adp-day-cell-height:var(--adp-mobile-day-cell-height);--adp-month-cell-height:var(--adp-mobile-month-cell-height);--adp-year-cell-height:var(--adp-mobile-year-cell-height);--adp-nav-height:var(--adp-mobile-nav-height);--adp-nav-action-size:var(--adp-mobile-nav-height);position:fixed;width:var(--adp-mobile-width);border:none}.air-datepicker.-is-mobile- *{-webkit-tap-highlight-color:rgba(0,0,0,0)}.air-datepicker.-is-mobile- .air-datepicker--pointer{display:none}.air-datepicker.-is-mobile-:not(.-custom-position-){transform:translate(-50%,calc(-50% + var(--adp-transition-offset)))}.air-datepicker.-is-mobile-.-active-:not(.-custom-position-){transform:translate(-50%,-50%)}.air-datepicker.-custom-position-{transition:none}.air-datepicker-global-container{position:absolute;left:0;top:0}.air-datepicker--pointer{--pointer-half-size:calc(var(--adp-pointer-size) / 2);position:absolute;width:var(--adp-pointer-size);height:var(--adp-pointer-size);z-index:-1}.air-datepicker--pointer:after{content:"";position:absolute;background:#fff;border-top:1px solid var(--adp-border-color-inline);border-right:1px solid var(--adp-border-color-inline);border-top-right-radius:var(--adp-poiner-border-radius);width:var(--adp-pointer-size);height:var(--adp-pointer-size);box-sizing:border-box}.-top-left- .air-datepicker--pointer,.-top-center- .air-datepicker--pointer,.-top-right- .air-datepicker--pointer,[data-popper-placement^=top] .air-datepicker--pointer{top:calc(100% - var(--pointer-half-size) + 1px)}.-top-left- .air-datepicker--pointer:after,.-top-center- .air-datepicker--pointer:after,.-top-right- .air-datepicker--pointer:after,[data-popper-placement^=top] .air-datepicker--pointer:after{transform:rotate(135deg)}.-right-top- .air-datepicker--pointer,.-right-center- .air-datepicker--pointer,.-right-bottom- .air-datepicker--pointer,[data-popper-placement^=right] .air-datepicker--pointer{right:calc(100% - var(--pointer-half-size) + 1px)}.-right-top- .air-datepicker--pointer:after,.-right-center- .air-datepicker--pointer:after,.-right-bottom- .air-datepicker--pointer:after,[data-popper-placement^=right] .air-datepicker--pointer:after{transform:rotate(225deg)}.-bottom-left- .air-datepicker--pointer,.-bottom-center- .air-datepicker--pointer,.-bottom-right- .air-datepicker--pointer,[data-popper-placement^=bottom] .air-datepicker--pointer{bottom:calc(100% - var(--pointer-half-size) + 1px)}.-bottom-left- .air-datepicker--pointer:after,.-bottom-center- .air-datepicker--pointer:after,.-bottom-right- .air-datepicker--pointer:after,[data-popper-placement^=bottom] .air-datepicker--pointer:after{transform:rotate(315deg)}.-left-top- .air-datepicker--pointer,.-left-center- .air-datepicker--pointer,.-left-bottom- .air-datepicker--pointer,[data-popper-placement^=left] .air-datepicker--pointer{left:calc(100% - var(--pointer-half-size) + 1px)}.-left-top- .air-datepicker--pointer:after,.-left-center- .air-datepicker--pointer:after,.-left-bottom- .air-datepicker--pointer:after,[data-popper-placement^=left] .air-datepicker--pointer:after{transform:rotate(45deg)}.-top-left- .air-datepicker--pointer,.-bottom-left- .air-datepicker--pointer{left:var(--adp-pointer-offset)}.-top-right- .air-datepicker--pointer,.-bottom-right- .air-datepicker--pointer{right:var(--adp-pointer-offset)}.-top-center- .air-datepicker--pointer,.-bottom-center- .air-datepicker--pointer{left:calc(50% - var(--adp-pointer-size) / 2)}.-left-top- .air-datepicker--pointer,.-right-top- .air-datepicker--pointer{top:var(--adp-pointer-offset)}.-left-bottom- .air-datepicker--pointer,.-right-bottom- .air-datepicker--pointer{bottom:var(--adp-pointer-offset)}.-left-center- .air-datepicker--pointer,.-right-center- .air-datepicker--pointer{top:calc(50% - var(--adp-pointer-size) / 2)}.air-datepicker--navigation{grid-area:nav}.air-datepicker--content{box-sizing:content-box;padding:var(--adp-padding);grid-area:body}.-only-timepicker- .air-datepicker--content{display:none}.air-datepicker--time{grid-area:timepicker}.air-datepicker--buttons{grid-area:buttons}.air-datepicker--buttons,.air-datepicker--time{padding:var(--adp-padding);border-top:1px solid var(--adp-border-color-inner)}.air-datepicker-overlay{position:fixed;background:var(--adp-overlay-background-color);left:0;top:0;width:0;height:0;opacity:0;transition:opacity var(--adp-overlay-transition-duration) var(--adp-overlay-transition-ease),left 0s,height 0s,width 0s;transition-delay:0s,var(--adp-overlay-transition-duration),var(--adp-overlay-transition-duration),var(--adp-overlay-transition-duration);z-index:var(--adp-overlay-z-index)}.air-datepicker-overlay.-active-{opacity:1;width:100%;height:100%;transition:opacity var(--adp-overlay-transition-duration) var(--adp-overlay-transition-ease),height 0s,width 0s}.air-datepicker{--adp-color:rgba(var(--zn-text),var(--zn-text-opacity));--adp-nav-color-secondary:rgb(var(--zn-purple-text));--adp-day-name-color:var(--zn-color-primary-600);--adp-day-name-color-hover:var(--zn-color-primary-700);--adp-cell-background-color-selected:var(--zn-color-primary-600);--adp-cell-background-color-selected-hover:var(--zn-color-primary-700);--adp-color-current-date:var(--zn-color-primary-600);--adp-background-color:var(--zn-input-background-color);--adp-background-color-hover:var(--zn-input-background-color-hover);--adp-background-color-active:var(--zn-input-background-color-hover);--adp-background-color-selected-other-month:var(--zn-color-primary-300);--adp-background-color-in-range:var(--zn-color-primary-100);--adp-border-color:rgb(var(--zn-border-color));--adp-border-color-inline:rgb(var(--zn-border-color));--adp-border-color-inner:rgb(var(--zn-border-color));--adp-cell-background-color-in-range:var(--zn-color-primary-100);--adp-cell-background-color-in-range-hover:var(--zn-color-primary-200)}.air-datepicker--pointer:after{background-color:var(--zn-input-background-color)}.air-datepicker-global-container{z-index:1000000}.air-datepicker-button{border:none;padding:var(--zn-spacing-2x-small) var(--zn-spacing-x-small);border-radius:var(--adp-border-radius);font-family:var(--adp-font-family),sans-serif;font-size:var(--zn-font-size-medium);font-weight:var(--zn-font-weight-normal);cursor:pointer;color:rgba(var(--zn-text),var(--zn-text-opacity))}.air-datepicker-button:hover{background-color:var(--zn-input-background-color-hover) !important}`;var g0=_`@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){background-color:var(--zn-input-background-color-hover);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);box-shadow:0 0 0 var(--zn-focus-ring-width) 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--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}.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;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__prefix-default zn-icon{display:contents}.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)}.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){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-medium)}.input--medium .input__clear,.input--medium .input__password-toggle{width:calc(1em + var(--zn-input-spacing-medium) * 2)}.input--medium .input__suffix ::slotted(*),.input__suffix-default{margin-inline-end:var(--zn-input-spacing-medium)}.input--medium .input__suffix ::slotted(zn-button),.input--medium .input__prefix ::slotted(zn-button){margin-inline-end:0;margin-inline-start:0}.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)}.input--large .input__clear,.input--large .input__password-toggle{width:calc(1em + var(--zn-input-spacing-large) * 2)}.input--large .input__suffix ::slotted(*),.input__suffix-default{margin-inline-end:var(--zn-input-spacing-large)}.input--large .input__suffix ::slotted(zn-button),.input--large .input__prefix ::slotted(zn-button){margin-inline-end:0;margin-inline-start:0}:host([inline]) .input{display:block;height:auto;overflow:visible;border:none;border-radius:0;background:none;box-shadow:none;cursor:default}:host([inline]) .air-datepicker{--adp-border-color-inline:var(--zn-datepicker-inline-border-color,rgb(var(--zn-border-color)))}:host([inline]) .input__control,:host([inline]) .input__prefix,:host([inline]) .input__suffix{display:none}`;var ye=class extends k{constructor(){super(...arguments);this.formControlController=new re(this,{assumeInteractionOn:["zn-blur","zn-input"]});this.hasSlotController=new Y(this,"help-text","label","label-tooltip");this.hasFocus=!1;this.title="";this.name="";this.value="";this.defaultValue="";this.size="medium";this.label="";this.labelTooltip="";this.contextNote="";this.helpText="";this.disabled=!1;this.placeholder="";this.readonly=!1;this.flush=!1;this.inline=!1;this.required=!1;this.clearable=!1;this.range=!1;this.disablePastDates=!1;this.format="MM/dd/yyyy";this.timePicker=!1;this.onlyTimepicker=!1;this.timeFormat="hh:mm AA"}get timestamp(){let t=this.input.parentElement.querySelector("#date-picker-timestamp").value??"";return Number(t)}get validity(){return this.input?.validity}get validationMessage(){return this.input.validationMessage}handleDisabledChange(){this.formControlController.setValidity(this.disabled)}async handleValueChange(){if(await this.updateComplete,this.formControlController.updateValidity(),this._instance&&this.value){let t=this.parseDate(String(this.value));t&&this._instance.selectDate(t,{silent:!0})}else this._instance&&!this.value&&this._instance.clear({silent:!0})}handleDatepickerOptionsChange(){this.init()}focus(t){this.input.focus(t)}blur(){this.input.blur()}select(){this.input.select()}checkValidity(){return this.input.checkValidity()}getForm(){return this.formControlController.getForm()}reportValidity(){return this.input.reportValidity()}setCustomValidity(t){this.input.setCustomValidity(t),this.formControlController.updateValidity()}init(){this._instance&&Object.prototype.hasOwnProperty.call(this._instance,"destroy")&&this._instance.destroy();let t=this.shadowRoot.querySelector("input");if(t){let r=this.shadowRoot.querySelector("#date-picker-timestamp"),n={locale:v4,inline:this.inline,dateFormat:this.format,range:this.range,toggleSelected:!1,timepicker:this.timePicker,onlyTimepicker:this.onlyTimepicker,timeFormat:this.timeFormat,container:this.container??this.getCalendarContainer(),altField:r,onSelect:({date:a})=>{if(this.timePicker||this.onlyTimepicker){this.inline&&this.handleChange();return}a&&!this.range?(this.input.blur(),this.handleChange()):a&&this.range&&Array.isArray(a)&&a.length===2&&(this.input.blur(),this.handleChange())},onHide:a=>{a&&(this.timePicker||this.onlyTimepicker)&&this.handleChange()}};this.minDate?n.minDate=typeof this.minDate=="string"?new Date(this.minDate):this.minDate:this.disablePastDates&&(n.minDate=this.normalizeDate(new Date)),this.maxDate&&(n.maxDate=typeof this.maxDate=="string"?new Date(this.maxDate):this.maxDate),this.clearable&&(n.buttons=["clear"]),this.inline&&this.adoptCalendarStyles(this.shadowRoot),this._instance=new b0.default(t,n)}}getCalendarContainer(){let t=this.findTopLayerAncestor();if(!t)return;let r=t.querySelector(":scope > .zn-datepicker-container");r||(r=document.createElement("div"),r.className="air-datepicker-global-container zn-datepicker-container",r.style.cssText="position: fixed; top: 0; left: 0;",t.appendChild(r));let n=r.getRootNode();return n instanceof ShadowRoot&&this.adoptCalendarStyles(n),r}adoptCalendarStyles(t){let r=b4();t.adoptedStyleSheets.includes(r)||(t.adoptedStyleSheets=[...t.adoptedStyleSheets,r])}findTopLayerAncestor(){let t=this.assignedSlot??this.parentNode;for(;t;){if(t instanceof HTMLElement&&(t.tagName==="DIALOG"||t.hasAttribute("popover")))return t;t=t.assignedSlot??(t instanceof ShadowRoot?t.host:t.parentNode)}return null}handleInput(t){let r=this.input.value,n=this.input.selectionStart||0,a=this.getFormatSeparator(),s=new RegExp(`[^0-9${this.escapeRegex(a)}]`,"g"),l=r.replace(s,""),p=this.autoFormatDate(l,a);if(r!==p)if(this.input.value=p,p.length>r.length&&t?.inputType==="insertText"){let h=n+(p.length-r.length);this.input.setSelectionRange(h,h)}else this.input.setSelectionRange(n,n);this.value=this.input.value,this.formControlController.updateValidity(),this.emit("zn-input")}handleChange(){this.value=this.input.value,this.emit("zn-change")}handleInvalid(t){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(t)}handleKeyDown(t){if(this._instance&&this._instance.visible)return;if(t.key==="Escape"){this.input.blur(),t.stopPropagation();return}let r=["Backspace","Delete","Tab","Escape","Enter","ArrowLeft","ArrowRight","ArrowUp","ArrowDown","Home","End"];if(t.ctrlKey||t.metaKey||r.includes(t.key))return;let n=this.getFormatSeparator();new RegExp(`^[0-9${this.escapeRegex(n)}]$`).test(t.key)||t.preventDefault()}handlePaste(t){let r=t.clipboardData?.getData("text")||"",n=this.getFormatSeparator();new RegExp(`^[0-9${this.escapeRegex(n)}\\s]*$`).test(r)||t.preventDefault()}handleBlur(){if(this._instance&&this._instance.visible||!this.input.value||this.input.value.trim()==="")return;if(!this.isValidDateString(this.input.value)){this.clearInvalidDate();return}let t=this.parseDate(this.input.value);if(t&&!this.isDateInRange(t)){this.clearInvalidDate();return}t&&this._instance&&this._instance.selectDate(t)}isValidDateString(t){let r=this.parseDateString(t);if(!r)return!1;let{day:n,month:a,year:s}=r,l=new Date(s,a-1,n);return l.getFullYear()===s&&l.getMonth()===a-1&&l.getDate()===n}parseDate(t){let r=this.parseDateString(t);if(!r)return null;let{day:n,month:a,year:s}=r,l=new Date(s,a-1,n);return this.normalizeDate(l)}parseDateString(t){let r=this.getFormatSeparator(),n=this.escapeRegex(r),a=this.format.replace(/dd/g,"(\\d{1,2})").replace(/MM/g,"(\\d{1,2})").replace(/yyyy/g,"(\\d{4})").replace(new RegExp(n,"g"),n),s=new RegExp(`^${a}$`),l=t.match(s);if(!l)return null;let p=this.format.split(r),h=-1,m=-1,f=-1;return p.forEach((b,g)=>{b==="dd"&&(h=g+1),b==="MM"&&(m=g+1),b==="yyyy"&&(f=g+1)}),h===-1||m===-1||f===-1?null:{day:parseInt(l[h]),month:parseInt(l[m]),year:parseInt(l[f])}}isDateInRange(t){let r,n;return this.minDate?(r=typeof this.minDate=="string"?new Date(this.minDate):new Date(this.minDate),this.normalizeDate(r)):this.disablePastDates&&(r=this.normalizeDate(new Date)),this.maxDate&&(n=typeof this.maxDate=="string"?new Date(this.maxDate):new Date(this.maxDate),this.normalizeDate(n)),!(r&&t<r||n&&t>n)}clearInvalidDate(){this.input.value="",this.value="",this._instance&&this._instance.clear(),this.formControlController.updateValidity()}getFormatSeparator(){let t=this.format.match(/[^dMy]/);return t?t[0]:"/"}escapeRegex(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}normalizeDate(t){return t.setHours(0,0,0,0),t}autoFormatDate(t,r){let n=t.replace(new RegExp(`\\${r}`,"g"),""),s=this.format.split(r).map(h=>h.length),l="",p=0;for(let h=0;h<s.length;h++){let m=s[h],f=n.substring(p,p+m);f&&(l+=f,p+=m,h<s.length-1&&p<n.length&&(l+=r))}return l}updated(t){super.updated(t)}firstUpdated(){this.init()}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.label?!0:t,l=this.labelTooltip?!0:r,p=this.contextNote?!0:n,h=this.helpText?!0:a;return u`
855
+ </zn-input>`;return qt(r)}_updateOperatorValue(t,r){let n=this._selectedRules.get(t);if(!n)return;let a=r.target;this._previousOperator=n.operator,n.operator=a.value,this._selectedRules.set(t,n),this._handleChange()}_updateDateValue(t,r,n="legacy"){let a=this._selectedRules.get(t);if(!a)return;let s=r.target,l=a.operator,p,h;switch(n){case"legacy":if(l==="eq"||l==="neq")h=(s.timestamp/1e3).toString();else{let m=l==="before"?-1:1;h=(Math.floor((Date.now()-s.timestamp)/1e3/60)*m).toString()}break;case"timestamp":h=s.timestamp.toString();break;case"iso":p=new Date(s.timestamp),h=new Date(p.getTime()-p.getTimezoneOffset()*6e4).toISOString();break}a.value=h,this._selectedRules.set(t,a),this._handleChange()}_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()}updateInValue(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()}_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)}_getRulePosition(t){let r=this.container.querySelectorAll(".query-builder__row"),n=-1;return r.forEach((a,s)=>{a.id===t&&(n=s)}),n}_removeRule(t,r){this._selectedRules.delete(t),r.target?.closest(".query-builder__row")?.remove(),this._handleChange()}clear(){this._selectedRules.clear(),this.value="",this.container.querySelectorAll(".query-builder__row").forEach(r=>{r.remove()}),this.requestUpdate(),this._formController.updateValidity()}reset(){this.clear(),this.showValues.forEach(t=>{this._addRule(null,t)}),this._handleChange(),this._formController.updateValidity()}checkValidity(){return this.input.checkValidity()}getForm(){return this._formController.getForm()}reportValidity(){return this.input.reportValidity()}setCustomValidity(t){this.input.setCustomValidity(t),this._formController.updateValidity()}};Sr.styles=[z(fs),z(m0)],Sr.dependencies={"zn-button":$e,"zn-input":ot,"zn-option":at,"zn-select":Be},c([F(".query-builder")],Sr.prototype,"container",2),c([F(".add-rule")],Sr.prototype,"addRule",2),c([F("input#main-input")],Sr.prototype,"input",2),c([d({type:Array})],Sr.prototype,"filters",2),c([d({type:Boolean})],Sr.prototype,"dropdown",2),c([d()],Sr.prototype,"name",2),c([d()],Sr.prototype,"value",2),c([d({attribute:"show-values",converter:{fromAttribute:t=>t.split(" "),toAttribute:t=>t.join(" ")}})],Sr.prototype,"showValues",2);var g4=Sr;Sr.define("zn-query-builder");var b0=_r(Ku(),1);var f0=_`.air-datepicker-cell.-year-.-other-decade-,.air-datepicker-cell.-day-.-other-month-{color:var(--adp-color-other-month)}.air-datepicker-cell.-year-.-other-decade-:hover,.air-datepicker-cell.-day-.-other-month-:hover{color:var(--adp-color-other-month-hover)}.-disabled-.-focus-.air-datepicker-cell.-year-.-other-decade-,.-disabled-.-focus-.air-datepicker-cell.-day-.-other-month-{color:var(--adp-color-other-month)}.-selected-.air-datepicker-cell.-year-.-other-decade-,.-selected-.air-datepicker-cell.-day-.-other-month-{color:#fff;background:var(--adp-background-color-selected-other-month)}.-selected-.-focus-.air-datepicker-cell.-year-.-other-decade-,.-selected-.-focus-.air-datepicker-cell.-day-.-other-month-{background:var(--adp-background-color-selected-other-month-focused)}.-in-range-.air-datepicker-cell.-year-.-other-decade-,.-in-range-.air-datepicker-cell.-day-.-other-month-{background-color:var(--adp-background-color-in-range);color:var(--adp-color)}.-in-range-.-focus-.air-datepicker-cell.-year-.-other-decade-,.-in-range-.-focus-.air-datepicker-cell.-day-.-other-month-{background-color:var(--adp-background-color-in-range-focused)}.air-datepicker-cell.-year-.-other-decade-:empty,.air-datepicker-cell.-day-.-other-month-:empty{background:none;border:none}.air-datepicker-cell{border-radius:var(--adp-cell-border-radius);box-sizing:border-box;cursor:pointer;display:flex;position:relative;align-items:center;justify-content:center;z-index:1}.air-datepicker-cell.-focus-{background:var(--adp-cell-background-color-hover)}.air-datepicker-cell.-current-{color:var(--adp-color-current-date)}.air-datepicker-cell.-current-.-focus-{color:var(--adp-color)}.air-datepicker-cell.-current-.-in-range-{color:var(--adp-color-current-date)}.air-datepicker-cell.-disabled-{cursor:default;color:var(--adp-color-disabled)}.air-datepicker-cell.-disabled-.-focus-{color:var(--adp-color-disabled)}.air-datepicker-cell.-disabled-.-in-range-{color:var(--adp-color-disabled-in-range)}.air-datepicker-cell.-disabled-.-current-.-focus-{color:var(--adp-color-disabled)}.air-datepicker-cell.-in-range-{background:var(--adp-cell-background-color-in-range);border-radius:0}.air-datepicker-cell.-in-range-:hover,.air-datepicker-cell.-in-range-.-focus-{background:var(--adp-cell-background-color-in-range-hover)}.air-datepicker-cell.-range-from-{border:1px solid var(--adp-cell-border-color-in-range);background-color:var(--adp-cell-background-color-in-range);border-radius:var(--adp-cell-border-radius) 0 0 var(--adp-cell-border-radius)}.air-datepicker-cell.-range-to-{border:1px solid var(--adp-cell-border-color-in-range);background-color:var(--adp-cell-background-color-in-range);border-radius:0 var(--adp-cell-border-radius) var(--adp-cell-border-radius) 0}.air-datepicker-cell.-range-to-.-range-from-{border-radius:var(--adp-cell-border-radius)}.air-datepicker-cell.-selected-{color:#fff;border:none;background:var(--adp-cell-background-color-selected)}.air-datepicker-cell.-selected-.-current-{color:#fff;background:var(--adp-cell-background-color-selected)}.air-datepicker-cell.-selected-.-focus-{background:var(--adp-cell-background-color-selected-hover)}.air-datepicker-body{transition:all var(--adp-transition-duration) var(--adp-transition-ease)}.air-datepicker-body.-hidden-{display:none}.air-datepicker-body--day-names{display:grid;grid-template-columns:repeat(7,var(--adp-day-cell-width));margin:8px 0 3px}.air-datepicker-body--day-name{color:var(--adp-day-name-color);display:flex;align-items:center;justify-content:center;flex:1;text-align:center;text-transform:uppercase;font-size:0.8em}.air-datepicker-body--day-name.-clickable-{cursor:pointer}.air-datepicker-body--day-name.-clickable-:hover{color:var(--adp-day-name-color-hover)}.air-datepicker-body--cells{display:grid}.air-datepicker-body--cells.-days-{grid-template-columns:repeat(7,var(--adp-day-cell-width));grid-auto-rows:var(--adp-day-cell-height)}.air-datepicker-body--cells.-months-{grid-template-columns:repeat(3,1fr);grid-auto-rows:var(--adp-month-cell-height)}.air-datepicker-body--cells.-years-{grid-template-columns:repeat(4,1fr);grid-auto-rows:var(--adp-year-cell-height)}.air-datepicker-nav{display:flex;justify-content:space-between;border-bottom:1px solid var(--adp-border-color-inner);min-height:var(--adp-nav-height);padding:var(--adp-padding);box-sizing:content-box}.-only-timepicker- .air-datepicker-nav{display:none}.air-datepicker-nav--title,.air-datepicker-nav--action{display:flex;cursor:pointer;align-items:center;justify-content:center}.air-datepicker-nav--action{width:var(--adp-nav-action-size);border-radius:var(--adp-border-radius);-webkit-user-select:none;-moz-user-select:none;user-select:none}.air-datepicker-nav--action:hover{background:var(--adp-background-color-hover)}.air-datepicker-nav--action:active{background:var(--adp-background-color-active)}.air-datepicker-nav--action.-disabled-{visibility:hidden}.air-datepicker-nav--action svg{width:32px;height:32px}.air-datepicker-nav--action path{fill:none;stroke:var(--adp-nav-arrow-color);stroke-width:2px}.air-datepicker-nav--title{border-radius:var(--adp-border-radius);padding:0 8px}.air-datepicker-nav--title i{font-style:normal;color:var(--adp-nav-color-secondary);margin-left:0.3em}.air-datepicker-nav--title:hover{background:var(--adp-background-color-hover)}.air-datepicker-nav--title:active{background:var(--adp-background-color-active)}.air-datepicker-nav--title.-disabled-{cursor:default;background:none}.air-datepicker-buttons{display:grid;grid-auto-columns:1fr;grid-auto-flow:column}.air-datepicker-button{display:inline-flex;color:var(--adp-btn-color);border-radius:var(--adp-btn-border-radius);cursor:pointer;height:var(--adp-btn-height);border:none;background:rgba(255,255,255,0)}.air-datepicker-button:hover{color:var(--adp-btn-color-hover);background:var(--adp-btn-background-color-hover)}.air-datepicker-button:focus{color:var(--adp-btn-color-hover);background:var(--adp-btn-background-color-hover);outline:none}.air-datepicker-button:active{background:var(--adp-btn-background-color-active)}.air-datepicker-button span{outline:none;display:flex;align-items:center;justify-content:center;width:100%;height:100%}.air-datepicker-time{display:grid;grid-template-columns:max-content 1fr;grid-column-gap:12px;align-items:center;position:relative;padding:0 var(--adp-time-padding-inner)}.-only-timepicker- .air-datepicker-time{border-top:none}.air-datepicker-time--current{display:flex;align-items:center;flex:1;font-size:14px;text-align:center}.air-datepicker-time--current-colon{margin:0 2px 3px;line-height:1}.air-datepicker-time--current-hours,.air-datepicker-time--current-minutes{line-height:1;font-size:19px;font-family:"Century Gothic",CenturyGothic,AppleGothic,sans-serif;position:relative;z-index:1}.air-datepicker-time--current-hours:after,.air-datepicker-time--current-minutes:after{content:"";background:var(--adp-background-color-hover);border-radius:var(--adp-border-radius);position:absolute;left:-2px;top:-3px;right:-2px;bottom:-2px;z-index:-1;opacity:0}.air-datepicker-time--current-hours.-focus-:after,.air-datepicker-time--current-minutes.-focus-:after{opacity:1}.air-datepicker-time--current-ampm{text-transform:uppercase;align-self:flex-end;color:var(--adp-time-day-period-color);margin-left:6px;font-size:11px;margin-bottom:1px}.air-datepicker-time--row{display:flex;align-items:center;font-size:11px;height:17px;background:linear-gradient(to right,var(--adp-time-track-color),var(--adp-time-track-color)) left 50%/100% var(--adp-time-track-height) no-repeat}.air-datepicker-time--row:first-child{margin-bottom:4px}.air-datepicker-time--row input[type=range]{background:none;cursor:pointer;flex:1;height:100%;width:100%;padding:0;margin:0;-webkit-appearance:none}.air-datepicker-time--row input[type=range]::-webkit-slider-thumb{-webkit-appearance:none}.air-datepicker-time--row input[type=range]::-ms-tooltip{display:none}.air-datepicker-time--row input[type=range]:hover::-webkit-slider-thumb{border-color:var(--adp-time-track-color-hover)}.air-datepicker-time--row input[type=range]:hover::-moz-range-thumb{border-color:var(--adp-time-track-color-hover)}.air-datepicker-time--row input[type=range]:hover::-ms-thumb{border-color:var(--adp-time-track-color-hover)}.air-datepicker-time--row input[type=range]:focus{outline:none}.air-datepicker-time--row input[type=range]:focus::-webkit-slider-thumb{background:var(--adp-cell-background-color-selected);border-color:var(--adp-cell-background-color-selected)}.air-datepicker-time--row input[type=range]:focus::-moz-range-thumb{background:var(--adp-cell-background-color-selected);border-color:var(--adp-cell-background-color-selected)}.air-datepicker-time--row input[type=range]:focus::-ms-thumb{background:var(--adp-cell-background-color-selected);border-color:var(--adp-cell-background-color-selected)}.air-datepicker-time--row input[type=range]::-webkit-slider-thumb{box-sizing:border-box;height:12px;width:12px;border-radius:3px;border:1px solid var(--adp-time-track-color);background:#fff;cursor:pointer;-webkit-transition:background var(--adp-transition-duration);transition:background var(--adp-transition-duration)}.air-datepicker-time--row input[type=range]::-moz-range-thumb{box-sizing:border-box;height:12px;width:12px;border-radius:3px;border:1px solid var(--adp-time-track-color);background:#fff;cursor:pointer;-moz-transition:background var(--adp-transition-duration);transition:background var(--adp-transition-duration)}.air-datepicker-time--row input[type=range]::-ms-thumb{box-sizing:border-box;height:12px;width:12px;border-radius:3px;border:1px solid var(--adp-time-track-color);background:#fff;cursor:pointer;-ms-transition:background var(--adp-transition-duration);transition:background var(--adp-transition-duration)}.air-datepicker-time--row input[type=range]::-webkit-slider-thumb{margin-top:calc(var(--adp-time-thumb-size) / 2 * -1)}.air-datepicker-time--row input[type=range]::-webkit-slider-runnable-track{border:none;height:var(--adp-time-track-height);cursor:pointer;color:rgba(0,0,0,0);background:rgba(0,0,0,0)}.air-datepicker-time--row input[type=range]::-moz-range-track{border:none;height:var(--adp-time-track-height);cursor:pointer;color:rgba(0,0,0,0);background:rgba(0,0,0,0)}.air-datepicker-time--row input[type=range]::-ms-track{border:none;height:var(--adp-time-track-height);cursor:pointer;color:rgba(0,0,0,0);background:rgba(0,0,0,0)}.air-datepicker-time--row input[type=range]::-ms-fill-lower{background:rgba(0,0,0,0)}.air-datepicker-time--row input[type=range]::-ms-fill-upper{background:rgba(0,0,0,0)}.air-datepicker{--adp-font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";--adp-font-size:14px;--adp-width:246px;--adp-z-index:100;--adp-padding:4px;--adp-grid-areas:"nav" "body" "timepicker" "buttons";--adp-transition-duration:.3s;--adp-transition-ease:ease-out;--adp-transition-offset:8px;--adp-background-color:#fff;--adp-background-color-hover:#f0f0f0;--adp-background-color-active:#eaeaea;--adp-background-color-in-range:rgba(92,196,239,.1);--adp-background-color-in-range-focused:rgba(92,196,239,.2);--adp-background-color-selected-other-month-focused:#8ad5f4;--adp-background-color-selected-other-month:#a2ddf6;--adp-color:#4a4a4a;--adp-color-secondary:#9c9c9c;--adp-accent-color:#4eb5e6;--adp-color-current-date:var(--adp-accent-color);--adp-color-other-month:#dedede;--adp-color-disabled:#aeaeae;--adp-color-disabled-in-range:#939393;--adp-color-other-month-hover:#c5c5c5;--adp-border-color:#dbdbdb;--adp-border-color-inner:#efefef;--adp-border-radius:4px;--adp-border-color-inline:#d7d7d7;--adp-nav-height:32px;--adp-nav-arrow-color:var(--adp-color-secondary);--adp-nav-action-size:32px;--adp-nav-color-secondary:var(--adp-color-secondary);--adp-day-name-color:#ff9a19;--adp-day-name-color-hover:#8ad5f4;--adp-day-cell-width:1fr;--adp-day-cell-height:32px;--adp-month-cell-height:42px;--adp-year-cell-height:56px;--adp-pointer-size:10px;--adp-poiner-border-radius:2px;--adp-pointer-offset:14px;--adp-cell-border-radius:4px;--adp-cell-background-color-hover:var(--adp-background-color-hover);--adp-cell-background-color-selected:#5cc4ef;--adp-cell-background-color-selected-hover:#45bced;--adp-cell-background-color-in-range:rgba(92,196,239,0.1);--adp-cell-background-color-in-range-hover:rgba(92,196,239,0.2);--adp-cell-border-color-in-range:var(--adp-cell-background-color-selected);--adp-btn-height:32px;--adp-btn-color:var(--adp-accent-color);--adp-btn-color-hover:var(--adp-color);--adp-btn-border-radius:var(--adp-border-radius);--adp-btn-background-color-hover:var(--adp-background-color-hover);--adp-btn-background-color-active:var(--adp-background-color-active);--adp-time-track-height:1px;--adp-time-track-color:#dedede;--adp-time-track-color-hover:#b1b1b1;--adp-time-thumb-size:12px;--adp-time-padding-inner:10px;--adp-time-day-period-color:var(--adp-color-secondary);--adp-mobile-font-size:16px;--adp-mobile-nav-height:40px;--adp-mobile-width:320px;--adp-mobile-day-cell-height:38px;--adp-mobile-month-cell-height:48px;--adp-mobile-year-cell-height:64px}.air-datepicker-overlay{--adp-overlay-background-color:rgba(0,0,0,.3);--adp-overlay-transition-duration:.3s;--adp-overlay-transition-ease:ease-out;--adp-overlay-z-index:99}.air-datepicker{background:var(--adp-background-color);border:1px solid var(--adp-border-color);box-shadow:0 4px 12px rgba(0,0,0,0.15);border-radius:var(--adp-border-radius);box-sizing:content-box;display:grid;grid-template-columns:1fr;grid-template-rows:repeat(4,max-content);grid-template-areas:var(--adp-grid-areas);font-family:var(--adp-font-family),sans-serif;font-size:var(--adp-font-size);color:var(--adp-color);width:var(--adp-width);position:absolute;transition:opacity var(--adp-transition-duration) var(--adp-transition-ease),transform var(--adp-transition-duration) var(--adp-transition-ease);z-index:var(--adp-z-index)}.air-datepicker:not(.-custom-position-){opacity:0}.air-datepicker.-from-top-{transform:translateY(calc(var(--adp-transition-offset) * -1))}.air-datepicker.-from-right-{transform:translateX(var(--adp-transition-offset))}.air-datepicker.-from-bottom-{transform:translateY(var(--adp-transition-offset))}.air-datepicker.-from-left-{transform:translateX(calc(var(--adp-transition-offset) * -1))}.air-datepicker.-active-:not(.-custom-position-){transform:translate(0,0);opacity:1}.air-datepicker.-active-.-custom-position-{transition:none}.air-datepicker.-inline-{border-color:var(--adp-border-color-inline);box-shadow:none;position:static;left:auto;right:auto;opacity:1;transform:none}.air-datepicker.-inline- .air-datepicker--pointer{display:none}.air-datepicker.-is-mobile-{--adp-font-size:var(--adp-mobile-font-size);--adp-day-cell-height:var(--adp-mobile-day-cell-height);--adp-month-cell-height:var(--adp-mobile-month-cell-height);--adp-year-cell-height:var(--adp-mobile-year-cell-height);--adp-nav-height:var(--adp-mobile-nav-height);--adp-nav-action-size:var(--adp-mobile-nav-height);position:fixed;width:var(--adp-mobile-width);border:none}.air-datepicker.-is-mobile- *{-webkit-tap-highlight-color:rgba(0,0,0,0)}.air-datepicker.-is-mobile- .air-datepicker--pointer{display:none}.air-datepicker.-is-mobile-:not(.-custom-position-){transform:translate(-50%,calc(-50% + var(--adp-transition-offset)))}.air-datepicker.-is-mobile-.-active-:not(.-custom-position-){transform:translate(-50%,-50%)}.air-datepicker.-custom-position-{transition:none}.air-datepicker-global-container{position:absolute;left:0;top:0}.air-datepicker--pointer{--pointer-half-size:calc(var(--adp-pointer-size) / 2);position:absolute;width:var(--adp-pointer-size);height:var(--adp-pointer-size);z-index:-1}.air-datepicker--pointer:after{content:"";position:absolute;background:#fff;border-top:1px solid var(--adp-border-color-inline);border-right:1px solid var(--adp-border-color-inline);border-top-right-radius:var(--adp-poiner-border-radius);width:var(--adp-pointer-size);height:var(--adp-pointer-size);box-sizing:border-box}.-top-left- .air-datepicker--pointer,.-top-center- .air-datepicker--pointer,.-top-right- .air-datepicker--pointer,[data-popper-placement^=top] .air-datepicker--pointer{top:calc(100% - var(--pointer-half-size) + 1px)}.-top-left- .air-datepicker--pointer:after,.-top-center- .air-datepicker--pointer:after,.-top-right- .air-datepicker--pointer:after,[data-popper-placement^=top] .air-datepicker--pointer:after{transform:rotate(135deg)}.-right-top- .air-datepicker--pointer,.-right-center- .air-datepicker--pointer,.-right-bottom- .air-datepicker--pointer,[data-popper-placement^=right] .air-datepicker--pointer{right:calc(100% - var(--pointer-half-size) + 1px)}.-right-top- .air-datepicker--pointer:after,.-right-center- .air-datepicker--pointer:after,.-right-bottom- .air-datepicker--pointer:after,[data-popper-placement^=right] .air-datepicker--pointer:after{transform:rotate(225deg)}.-bottom-left- .air-datepicker--pointer,.-bottom-center- .air-datepicker--pointer,.-bottom-right- .air-datepicker--pointer,[data-popper-placement^=bottom] .air-datepicker--pointer{bottom:calc(100% - var(--pointer-half-size) + 1px)}.-bottom-left- .air-datepicker--pointer:after,.-bottom-center- .air-datepicker--pointer:after,.-bottom-right- .air-datepicker--pointer:after,[data-popper-placement^=bottom] .air-datepicker--pointer:after{transform:rotate(315deg)}.-left-top- .air-datepicker--pointer,.-left-center- .air-datepicker--pointer,.-left-bottom- .air-datepicker--pointer,[data-popper-placement^=left] .air-datepicker--pointer{left:calc(100% - var(--pointer-half-size) + 1px)}.-left-top- .air-datepicker--pointer:after,.-left-center- .air-datepicker--pointer:after,.-left-bottom- .air-datepicker--pointer:after,[data-popper-placement^=left] .air-datepicker--pointer:after{transform:rotate(45deg)}.-top-left- .air-datepicker--pointer,.-bottom-left- .air-datepicker--pointer{left:var(--adp-pointer-offset)}.-top-right- .air-datepicker--pointer,.-bottom-right- .air-datepicker--pointer{right:var(--adp-pointer-offset)}.-top-center- .air-datepicker--pointer,.-bottom-center- .air-datepicker--pointer{left:calc(50% - var(--adp-pointer-size) / 2)}.-left-top- .air-datepicker--pointer,.-right-top- .air-datepicker--pointer{top:var(--adp-pointer-offset)}.-left-bottom- .air-datepicker--pointer,.-right-bottom- .air-datepicker--pointer{bottom:var(--adp-pointer-offset)}.-left-center- .air-datepicker--pointer,.-right-center- .air-datepicker--pointer{top:calc(50% - var(--adp-pointer-size) / 2)}.air-datepicker--navigation{grid-area:nav}.air-datepicker--content{box-sizing:content-box;padding:var(--adp-padding);grid-area:body}.-only-timepicker- .air-datepicker--content{display:none}.air-datepicker--time{grid-area:timepicker}.air-datepicker--buttons{grid-area:buttons}.air-datepicker--buttons,.air-datepicker--time{padding:var(--adp-padding);border-top:1px solid var(--adp-border-color-inner)}.air-datepicker-overlay{position:fixed;background:var(--adp-overlay-background-color);left:0;top:0;width:0;height:0;opacity:0;transition:opacity var(--adp-overlay-transition-duration) var(--adp-overlay-transition-ease),left 0s,height 0s,width 0s;transition-delay:0s,var(--adp-overlay-transition-duration),var(--adp-overlay-transition-duration),var(--adp-overlay-transition-duration);z-index:var(--adp-overlay-z-index)}.air-datepicker-overlay.-active-{opacity:1;width:100%;height:100%;transition:opacity var(--adp-overlay-transition-duration) var(--adp-overlay-transition-ease),height 0s,width 0s}.air-datepicker{--adp-color:rgba(var(--zn-text),var(--zn-text-opacity));--adp-nav-color-secondary:rgb(var(--zn-purple-text));--adp-day-name-color:var(--zn-color-primary-600);--adp-day-name-color-hover:var(--zn-color-primary-700);--adp-cell-background-color-selected:var(--zn-color-primary-600);--adp-cell-background-color-selected-hover:var(--zn-color-primary-700);--adp-color-current-date:var(--zn-color-primary-600);--adp-background-color:var(--zn-input-background-color);--adp-background-color-hover:var(--zn-input-background-color-hover);--adp-background-color-active:var(--zn-input-background-color-hover);--adp-background-color-selected-other-month:var(--zn-color-primary-300);--adp-background-color-in-range:var(--zn-color-primary-100);--adp-border-color:rgb(var(--zn-border-color));--adp-border-color-inline:rgb(var(--zn-border-color));--adp-border-color-inner:rgb(var(--zn-border-color));--adp-cell-background-color-in-range:var(--zn-color-primary-100);--adp-cell-background-color-in-range-hover:var(--zn-color-primary-200)}.air-datepicker--pointer:after{background-color:var(--zn-input-background-color)}.air-datepicker-global-container{z-index:1000000}.air-datepicker-button{border:none;padding:var(--zn-spacing-2x-small) var(--zn-spacing-x-small);border-radius:var(--adp-border-radius);font-family:var(--adp-font-family),sans-serif;font-size:var(--zn-font-size-medium);font-weight:var(--zn-font-weight-normal);cursor:pointer;color:rgba(var(--zn-text),var(--zn-text-opacity))}.air-datepicker-button:hover{background-color:var(--zn-input-background-color-hover) !important}`;var g0=_`@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){background-color:var(--zn-input-background-color-hover);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);box-shadow:0 0 0 var(--zn-focus-ring-width) 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--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}.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;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__prefix-default zn-icon{display:contents}.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)}.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){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-medium)}.input--medium .input__clear,.input--medium .input__password-toggle{width:calc(1em + var(--zn-input-spacing-medium) * 2)}.input--medium .input__suffix ::slotted(*),.input__suffix-default{margin-inline-end:var(--zn-input-spacing-medium)}.input--medium .input__suffix ::slotted(zn-button),.input--medium .input__prefix ::slotted(zn-button){margin-inline-end:0;margin-inline-start:0}.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)}.input--large .input__clear,.input--large .input__password-toggle{width:calc(1em + var(--zn-input-spacing-large) * 2)}.input--large .input__suffix ::slotted(*),.input__suffix-default{margin-inline-end:var(--zn-input-spacing-large)}.input--large .input__suffix ::slotted(zn-button),.input--large .input__prefix ::slotted(zn-button){margin-inline-end:0;margin-inline-start:0}:host([inline]) .input{display:block;height:auto;overflow:visible;border:none;border-radius:0;background:none;box-shadow:none;cursor:default}:host([inline]) .air-datepicker{--adp-border-color-inline:var(--zn-datepicker-inline-border-color,rgb(var(--zn-border-color)))}:host([inline]) .input__control,:host([inline]) .input__prefix,:host([inline]) .input__suffix{display:none}`;var ye=class extends k{constructor(){super(...arguments);this.formControlController=new re(this,{assumeInteractionOn:["zn-blur","zn-input"]});this.hasSlotController=new Y(this,"help-text","label","label-tooltip");this.hasFocus=!1;this.title="";this.name="";this.value="";this.defaultValue="";this.size="medium";this.label="";this.labelTooltip="";this.contextNote="";this.helpText="";this.disabled=!1;this.placeholder="";this.readonly=!1;this.flush=!1;this.inline=!1;this.required=!1;this.clearable=!1;this.range=!1;this.disablePastDates=!1;this.format="MM/dd/yyyy";this.timePicker=!1;this.onlyTimepicker=!1;this.timeFormat="hh:mm AA"}get timestamp(){let t=this.input.parentElement.querySelector("#date-picker-timestamp").value??"";return Number(t)}get validity(){return this.input?.validity}get validationMessage(){return this.input.validationMessage}handleDisabledChange(){this.formControlController.setValidity(this.disabled)}async handleValueChange(){if(await this.updateComplete,this.formControlController.updateValidity(),this._instance&&this.value){let t=this.parseDate(String(this.value));t&&this._instance.selectDate(t,{silent:!0})}else this._instance&&!this.value&&this._instance.clear({silent:!0})}handleDatepickerOptionsChange(){this.init()}focus(t){this.input.focus(t)}blur(){this.input.blur()}select(){this.input.select()}checkValidity(){return this.input.checkValidity()}getForm(){return this.formControlController.getForm()}reportValidity(){return this.input.reportValidity()}setCustomValidity(t){this.input.setCustomValidity(t),this.formControlController.updateValidity()}init(){this._instance&&Object.prototype.hasOwnProperty.call(this._instance,"destroy")&&this._instance.destroy();let t=this.shadowRoot.querySelector("input");if(t){let r=this.shadowRoot.querySelector("#date-picker-timestamp"),n={locale:v4,inline:this.inline,dateFormat:this.format,range:this.range,toggleSelected:!1,timepicker:this.timePicker,onlyTimepicker:this.onlyTimepicker,timeFormat:this.timeFormat,container:this.container??this.getCalendarContainer(),altField:r,onSelect:({date:a})=>{if(this.timePicker||this.onlyTimepicker){this.inline&&this.handleChange();return}a&&!this.range?(this.input.blur(),this.handleChange()):a&&this.range&&Array.isArray(a)&&a.length===2&&(this.input.blur(),this.handleChange())},onHide:a=>{a&&(this.timePicker||this.onlyTimepicker)&&this.handleChange()}};this.minDate?n.minDate=typeof this.minDate=="string"?new Date(this.minDate):this.minDate:this.disablePastDates&&(n.minDate=this.normalizeDate(new Date)),this.maxDate&&(n.maxDate=typeof this.maxDate=="string"?new Date(this.maxDate):this.maxDate),this.clearable&&(n.buttons=["clear"]),this.inline&&this.adoptCalendarStyles(this.shadowRoot),this._instance=new b0.default(t,n)}}getCalendarContainer(){let t=this.findTopLayerAncestor();if(!t)return;let r=t.querySelector(":scope > .zn-datepicker-container");r||(r=document.createElement("div"),r.className="air-datepicker-global-container zn-datepicker-container",r.style.cssText="position: fixed; top: 0; left: 0;",t.appendChild(r));let n=r.getRootNode();return n instanceof ShadowRoot&&this.adoptCalendarStyles(n),r}adoptCalendarStyles(t){let r=b4();t.adoptedStyleSheets.includes(r)||(t.adoptedStyleSheets=[...t.adoptedStyleSheets,r])}findTopLayerAncestor(){let t=this.assignedSlot??this.parentNode;for(;t;){if(t instanceof HTMLElement&&(t.tagName==="DIALOG"||t.hasAttribute("popover")))return t;t=t.assignedSlot??(t instanceof ShadowRoot?t.host:t.parentNode)}return null}handleInput(t){let r=this.input.value,n=this.input.selectionStart||0,a=this.getFormatSeparator(),s=new RegExp(`[^0-9${this.escapeRegex(a)}]`,"g"),l=r.replace(s,""),p=this.autoFormatDate(l,a);if(r!==p)if(this.input.value=p,p.length>r.length&&t?.inputType==="insertText"){let h=n+(p.length-r.length);this.input.setSelectionRange(h,h)}else this.input.setSelectionRange(n,n);this.value=this.input.value,this.formControlController.updateValidity(),this.emit("zn-input")}handleChange(){this.value=this.input.value,this.emit("zn-change")}handleInvalid(t){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(t)}handleKeyDown(t){if(this._instance&&this._instance.visible)return;if(t.key==="Escape"){this.input.blur(),t.stopPropagation();return}let r=["Backspace","Delete","Tab","Escape","Enter","ArrowLeft","ArrowRight","ArrowUp","ArrowDown","Home","End"];if(t.ctrlKey||t.metaKey||r.includes(t.key))return;let n=this.getFormatSeparator();new RegExp(`^[0-9${this.escapeRegex(n)}]$`).test(t.key)||t.preventDefault()}handlePaste(t){let r=t.clipboardData?.getData("text")||"",n=this.getFormatSeparator();new RegExp(`^[0-9${this.escapeRegex(n)}\\s]*$`).test(r)||t.preventDefault()}handleBlur(){if(this._instance&&this._instance.visible||!this.input.value||this.input.value.trim()==="")return;if(!this.isValidDateString(this.input.value)){this.clearInvalidDate();return}let t=this.parseDate(this.input.value);if(t&&!this.isDateInRange(t)){this.clearInvalidDate();return}t&&this._instance&&this._instance.selectDate(t)}isValidDateString(t){let r=this.parseDateString(t);if(!r)return!1;let{day:n,month:a,year:s}=r,l=new Date(s,a-1,n);return l.getFullYear()===s&&l.getMonth()===a-1&&l.getDate()===n}parseDate(t){let r=this.parseDateString(t);if(!r)return null;let{day:n,month:a,year:s}=r,l=new Date(s,a-1,n);return this.normalizeDate(l)}parseDateString(t){let r=this.getFormatSeparator(),n=this.escapeRegex(r),a=this.format.replace(/dd/g,"(\\d{1,2})").replace(/MM/g,"(\\d{1,2})").replace(/yyyy/g,"(\\d{4})").replace(new RegExp(n,"g"),n),s=new RegExp(`^${a}$`),l=t.match(s);if(!l)return null;let p=this.format.split(r),h=-1,m=-1,f=-1;return p.forEach((b,g)=>{b==="dd"&&(h=g+1),b==="MM"&&(m=g+1),b==="yyyy"&&(f=g+1)}),h===-1||m===-1||f===-1?null:{day:parseInt(l[h]),month:parseInt(l[m]),year:parseInt(l[f])}}isDateInRange(t){let r,n;return this.minDate?(r=typeof this.minDate=="string"?new Date(this.minDate):new Date(this.minDate),this.normalizeDate(r)):this.disablePastDates&&(r=this.normalizeDate(new Date)),this.maxDate&&(n=typeof this.maxDate=="string"?new Date(this.maxDate):new Date(this.maxDate),this.normalizeDate(n)),!(r&&t<r||n&&t>n)}clearInvalidDate(){this.input.value="",this.value="",this._instance&&this._instance.clear(),this.formControlController.updateValidity()}getFormatSeparator(){let t=this.format.match(/[^dMy]/);return t?t[0]:"/"}escapeRegex(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}normalizeDate(t){return t.setHours(0,0,0,0),t}autoFormatDate(t,r){let n=t.replace(new RegExp(`\\${r}`,"g"),""),s=this.format.split(r).map(h=>h.length),l="",p=0;for(let h=0;h<s.length;h++){let m=s[h],f=n.substring(p,p+m);f&&(l+=f,p+=m,h<s.length-1&&p<n.length&&(l+=r))}return l}updated(t){super.updated(t)}firstUpdated(){this.init()}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.label?!0:t,l=this.labelTooltip?!0:r,p=this.contextNote?!0:n,h=this.helpText?!0:a;return u`
856
856
  <div part="form-control"
857
857
  class="${M({"form-control":!0,"form-control--small":this.size==="small","form-control--medium":this.size==="medium","form-control--large":this.size==="large","form-control--has-label":s,"form-control--has-label-tooltip":l,"form-control--has-context-note":p,"form-control--has-help-text":h})}">
858
858
 
@@ -916,7 +916,7 @@ import{a as Fn,b as h3,c as _r,d as c,e as V}from"./chunks/zn.UBLZO6CI.js";var K
916
916
  aria-hidden=${h?"false":"true"}>
917
917
  <slot name="help-text">${this.helpText}</slot>
918
918
  </div>
919
- </div>`}};ye.styles=[z(Se),z(g0)],ye.dependencies={"zn-icon":ne,"zn-tooltip":gi},c([F(".input__control")],ye.prototype,"input",2),c([R()],ye.prototype,"hasFocus",2),c([d()],ye.prototype,"title",2),c([d()],ye.prototype,"name",2),c([d()],ye.prototype,"value",2),c([Ce()],ye.prototype,"defaultValue",2),c([d({reflect:!0})],ye.prototype,"size",2),c([d()],ye.prototype,"label",2),c([d({attribute:"label-tooltip"})],ye.prototype,"labelTooltip",2),c([d({attribute:"context-note"})],ye.prototype,"contextNote",2),c([d({attribute:"help-text"})],ye.prototype,"helpText",2),c([d({type:Boolean,reflect:!0})],ye.prototype,"disabled",2),c([d()],ye.prototype,"placeholder",2),c([d({type:Boolean,reflect:!0})],ye.prototype,"readonly",2),c([d({reflect:!0})],ye.prototype,"form",2),c([d({type:Boolean,reflect:!0})],ye.prototype,"flush",2),c([d({type:Boolean,reflect:!0})],ye.prototype,"inline",2),c([d({type:Boolean,reflect:!0})],ye.prototype,"required",2),c([d({type:Boolean})],ye.prototype,"clearable",2),c([d({type:Boolean})],ye.prototype,"range",2),c([d({type:Boolean,attribute:"disable-past-dates"})],ye.prototype,"disablePastDates",2),c([d({attribute:"min-date"})],ye.prototype,"minDate",2),c([d({attribute:"max-date"})],ye.prototype,"maxDate",2),c([d()],ye.prototype,"format",2),c([d({attribute:"time-picker",type:Boolean,reflect:!0})],ye.prototype,"timePicker",2),c([d({attribute:"only-time"})],ye.prototype,"onlyTimepicker",2),c([d({attribute:"format-time"})],ye.prototype,"timeFormat",2),c([d({attribute:"container"})],ye.prototype,"container",2),c([K("disabled",{waitUntilFirstUpdate:!0})],ye.prototype,"handleDisabledChange",1),c([K("value",{waitUntilFirstUpdate:!0})],ye.prototype,"handleValueChange",1),c([K("clearable",{waitUntilFirstUpdate:!0}),K("format",{waitUntilFirstUpdate:!0}),K("range",{waitUntilFirstUpdate:!0}),K("minDate",{waitUntilFirstUpdate:!0}),K("maxDate",{waitUntilFirstUpdate:!0}),K("disablePastDates",{waitUntilFirstUpdate:!0}),K("timePicker",{waitUntilFirstUpdate:!0}),K("timeFormat",{waitUntilFirstUpdate:!0}),K("inline",{waitUntilFirstUpdate:!0})],ye.prototype,"handleDatepickerOptionsChange",1);var Bd;function b4(){return Bd||(Bd=new CSSStyleSheet,Bd.replaceSync(String(f0))),Bd}var v4={days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],daysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],daysMin:["Su","Mo","Tu","We","Th","Fr","Sa"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],monthsShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],today:"Today",clear:"Clear",dateFormat:"MM/dd/yyyy",timeFormat:"hh:ii aa",firstDay:0};var Yu=ye;ye.define("zn-datepicker");var Vd=class{constructor(i,t,r){this.popupRef=Uv();this.enableSubmenuTimer=-1;this.isConnected=!1;this.isPopupConnected=!1;this.skidding=0;this.submenuOpenDelay=100;this.handleMouseMove=i=>{this.host.style.setProperty("--safe-triangle-cursor-x",`${i.clientX}px`),this.host.style.setProperty("--safe-triangle-cursor-y",`${i.clientY}px`)};this.handleMouseOver=()=>{this.hasSlotController.test("submenu")&&this.enableSubmenu()};this.handleKeyDown=i=>{switch(i.key){case"Escape":case"Tab":this.disableSubmenu();break;case"ArrowLeft":i.target!==this.host&&(i.preventDefault(),i.stopPropagation(),this.host.focus(),this.disableSubmenu());break;case"ArrowRight":case"Enter":case" ":this.handleSubmenuEntry(i);break;default:break}};this.handleClick=i=>{i.target===this.host?(i.preventDefault(),i.stopPropagation()):i.target instanceof Element&&(i.target.tagName==="zn-menu-item"||i.target.role?.startsWith("menuitem"))&&this.disableSubmenu()};this.handleFocusOut=i=>{i.relatedTarget&&i.relatedTarget instanceof Element&&this.host.contains(i.relatedTarget)||this.disableSubmenu()};this.handlePopupMouseover=i=>{i.stopPropagation()};this.handlePopupReposition=()=>{let t=this.host.renderRoot.querySelector("slot[name='submenu']")?.assignedElements({flatten:!0}).filter(p=>p.localName==="zn-menu")[0],r=this.localize.dir()==="rtl";if(!t)return;let{left:n,top:a,width:s,height:l}=t.getBoundingClientRect();this.host.style.setProperty("--safe-triangle-submenu-start-x",`${r?n+s:n}px`),this.host.style.setProperty("--safe-triangle-submenu-start-y",`${a}px`),this.host.style.setProperty("--safe-triangle-submenu-end-x",`${r?n+s:n}px`),this.host.style.setProperty("--safe-triangle-submenu-end-y",`${a+l}px`)};(this.host=i).addController(this),this.hasSlotController=t,this.localize=r}hostConnected(){this.hasSlotController.test("submenu")&&!this.host.disabled&&this.addListeners()}hostDisconnected(){this.removeListeners()}hostUpdated(){this.hasSlotController.test("submenu")&&!this.host.disabled?(this.addListeners(),this.updateSkidding()):this.removeListeners()}addListeners(){this.isConnected||(this.host.addEventListener("mousemove",this.handleMouseMove),this.host.addEventListener("mouseover",this.handleMouseOver),this.host.addEventListener("keydown",this.handleKeyDown),this.host.addEventListener("click",this.handleClick),this.host.addEventListener("focusout",this.handleFocusOut),this.isConnected=!0),this.isPopupConnected||this.popupRef.value&&(this.popupRef.value.addEventListener("mouseover",this.handlePopupMouseover),this.popupRef.value.addEventListener("zn-reposition",this.handlePopupReposition),this.isPopupConnected=!0)}removeListeners(){this.isConnected&&(this.host.removeEventListener("mousemove",this.handleMouseMove),this.host.removeEventListener("mouseover",this.handleMouseOver),this.host.removeEventListener("keydown",this.handleKeyDown),this.host.removeEventListener("click",this.handleClick),this.host.removeEventListener("focusout",this.handleFocusOut),this.isConnected=!1),this.isPopupConnected&&this.popupRef.value&&(this.popupRef.value.removeEventListener("mouseover",this.handlePopupMouseover),this.popupRef.value.removeEventListener("zn-reposition",this.handlePopupReposition),this.isPopupConnected=!1)}handleSubmenuEntry(i){let t=this.host.renderRoot.querySelector("slot[name='submenu']");if(!t){console.error("Cannot activate a submenu if no corresponding menuitem can be found.",this);return}let r=null;for(let n of t.assignedElements())if(r=n.querySelectorAll("zn-menu-item, [role^='menuitem']"),r.length!==0)break;if(!(!r||r.length===0)){r[0].setAttribute("tabindex","0");for(let n=1;n!==r.length;++n)r[n].setAttribute("tabindex","-1");this.popupRef.value&&(i.preventDefault(),i.stopPropagation(),this.popupRef.value.active?r[0]instanceof HTMLElement&&r[0].focus():(this.enableSubmenu(!1),this.host.updateComplete.then(()=>{r[0]instanceof HTMLElement&&r[0].focus()}),this.host.requestUpdate()))}}setSubmenuState(i){this.popupRef.value&&this.popupRef.value.active!==i&&(this.popupRef.value.active=i,this.host.requestUpdate())}enableSubmenu(i=!0){i?this.enableSubmenuTimer=window.setTimeout(()=>{this.setSubmenuState(!0)},this.submenuOpenDelay):this.setSubmenuState(!0)}disableSubmenu(){clearTimeout(this.enableSubmenuTimer),this.setSubmenuState(!1)}updateSkidding(){if(!this.host.parentElement?.computedStyleMap)return;let i=this.host.parentElement.computedStyleMap(),r=["padding-top","border-top-width","margin-top"].reduce((n,a)=>{let s=i.get(a)??new CSSUnitValue(0,"px"),p=(s instanceof CSSUnitValue?s:new CSSUnitValue(0,"px")).to("px");return n-p.value},0);this.skidding=r}isExpanded(){return this.popupRef.value?this.popupRef.value.active:!1}renderSubmenu(){let i=this.localize.dir()==="ltr";return this.isConnected?u`
919
+ </div>`}};ye.styles=[z(Se),z(g0)],ye.dependencies={"zn-icon":ne,"zn-tooltip":gi},c([F(".input__control")],ye.prototype,"input",2),c([D()],ye.prototype,"hasFocus",2),c([d()],ye.prototype,"title",2),c([d()],ye.prototype,"name",2),c([d()],ye.prototype,"value",2),c([Ce()],ye.prototype,"defaultValue",2),c([d({reflect:!0})],ye.prototype,"size",2),c([d()],ye.prototype,"label",2),c([d({attribute:"label-tooltip"})],ye.prototype,"labelTooltip",2),c([d({attribute:"context-note"})],ye.prototype,"contextNote",2),c([d({attribute:"help-text"})],ye.prototype,"helpText",2),c([d({type:Boolean,reflect:!0})],ye.prototype,"disabled",2),c([d()],ye.prototype,"placeholder",2),c([d({type:Boolean,reflect:!0})],ye.prototype,"readonly",2),c([d({reflect:!0})],ye.prototype,"form",2),c([d({type:Boolean,reflect:!0})],ye.prototype,"flush",2),c([d({type:Boolean,reflect:!0})],ye.prototype,"inline",2),c([d({type:Boolean,reflect:!0})],ye.prototype,"required",2),c([d({type:Boolean})],ye.prototype,"clearable",2),c([d({type:Boolean})],ye.prototype,"range",2),c([d({type:Boolean,attribute:"disable-past-dates"})],ye.prototype,"disablePastDates",2),c([d({attribute:"min-date"})],ye.prototype,"minDate",2),c([d({attribute:"max-date"})],ye.prototype,"maxDate",2),c([d()],ye.prototype,"format",2),c([d({attribute:"time-picker",type:Boolean,reflect:!0})],ye.prototype,"timePicker",2),c([d({attribute:"only-time"})],ye.prototype,"onlyTimepicker",2),c([d({attribute:"format-time"})],ye.prototype,"timeFormat",2),c([d({attribute:"container"})],ye.prototype,"container",2),c([K("disabled",{waitUntilFirstUpdate:!0})],ye.prototype,"handleDisabledChange",1),c([K("value",{waitUntilFirstUpdate:!0})],ye.prototype,"handleValueChange",1),c([K("clearable",{waitUntilFirstUpdate:!0}),K("format",{waitUntilFirstUpdate:!0}),K("range",{waitUntilFirstUpdate:!0}),K("minDate",{waitUntilFirstUpdate:!0}),K("maxDate",{waitUntilFirstUpdate:!0}),K("disablePastDates",{waitUntilFirstUpdate:!0}),K("timePicker",{waitUntilFirstUpdate:!0}),K("timeFormat",{waitUntilFirstUpdate:!0}),K("inline",{waitUntilFirstUpdate:!0})],ye.prototype,"handleDatepickerOptionsChange",1);var Bd;function b4(){return Bd||(Bd=new CSSStyleSheet,Bd.replaceSync(String(f0))),Bd}var v4={days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],daysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],daysMin:["Su","Mo","Tu","We","Th","Fr","Sa"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],monthsShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],today:"Today",clear:"Clear",dateFormat:"MM/dd/yyyy",timeFormat:"hh:ii aa",firstDay:0};var Yu=ye;ye.define("zn-datepicker");var Vd=class{constructor(i,t,r){this.popupRef=Uv();this.enableSubmenuTimer=-1;this.isConnected=!1;this.isPopupConnected=!1;this.skidding=0;this.submenuOpenDelay=100;this.handleMouseMove=i=>{this.host.style.setProperty("--safe-triangle-cursor-x",`${i.clientX}px`),this.host.style.setProperty("--safe-triangle-cursor-y",`${i.clientY}px`)};this.handleMouseOver=()=>{this.hasSlotController.test("submenu")&&this.enableSubmenu()};this.handleKeyDown=i=>{switch(i.key){case"Escape":case"Tab":this.disableSubmenu();break;case"ArrowLeft":i.target!==this.host&&(i.preventDefault(),i.stopPropagation(),this.host.focus(),this.disableSubmenu());break;case"ArrowRight":case"Enter":case" ":this.handleSubmenuEntry(i);break;default:break}};this.handleClick=i=>{i.target===this.host?(i.preventDefault(),i.stopPropagation()):i.target instanceof Element&&(i.target.tagName==="zn-menu-item"||i.target.role?.startsWith("menuitem"))&&this.disableSubmenu()};this.handleFocusOut=i=>{i.relatedTarget&&i.relatedTarget instanceof Element&&this.host.contains(i.relatedTarget)||this.disableSubmenu()};this.handlePopupMouseover=i=>{i.stopPropagation()};this.handlePopupReposition=()=>{let t=this.host.renderRoot.querySelector("slot[name='submenu']")?.assignedElements({flatten:!0}).filter(p=>p.localName==="zn-menu")[0],r=this.localize.dir()==="rtl";if(!t)return;let{left:n,top:a,width:s,height:l}=t.getBoundingClientRect();this.host.style.setProperty("--safe-triangle-submenu-start-x",`${r?n+s:n}px`),this.host.style.setProperty("--safe-triangle-submenu-start-y",`${a}px`),this.host.style.setProperty("--safe-triangle-submenu-end-x",`${r?n+s:n}px`),this.host.style.setProperty("--safe-triangle-submenu-end-y",`${a+l}px`)};(this.host=i).addController(this),this.hasSlotController=t,this.localize=r}hostConnected(){this.hasSlotController.test("submenu")&&!this.host.disabled&&this.addListeners()}hostDisconnected(){this.removeListeners()}hostUpdated(){this.hasSlotController.test("submenu")&&!this.host.disabled?(this.addListeners(),this.updateSkidding()):this.removeListeners()}addListeners(){this.isConnected||(this.host.addEventListener("mousemove",this.handleMouseMove),this.host.addEventListener("mouseover",this.handleMouseOver),this.host.addEventListener("keydown",this.handleKeyDown),this.host.addEventListener("click",this.handleClick),this.host.addEventListener("focusout",this.handleFocusOut),this.isConnected=!0),this.isPopupConnected||this.popupRef.value&&(this.popupRef.value.addEventListener("mouseover",this.handlePopupMouseover),this.popupRef.value.addEventListener("zn-reposition",this.handlePopupReposition),this.isPopupConnected=!0)}removeListeners(){this.isConnected&&(this.host.removeEventListener("mousemove",this.handleMouseMove),this.host.removeEventListener("mouseover",this.handleMouseOver),this.host.removeEventListener("keydown",this.handleKeyDown),this.host.removeEventListener("click",this.handleClick),this.host.removeEventListener("focusout",this.handleFocusOut),this.isConnected=!1),this.isPopupConnected&&this.popupRef.value&&(this.popupRef.value.removeEventListener("mouseover",this.handlePopupMouseover),this.popupRef.value.removeEventListener("zn-reposition",this.handlePopupReposition),this.isPopupConnected=!1)}handleSubmenuEntry(i){let t=this.host.renderRoot.querySelector("slot[name='submenu']");if(!t){console.error("Cannot activate a submenu if no corresponding menuitem can be found.",this);return}let r=null;for(let n of t.assignedElements())if(r=n.querySelectorAll("zn-menu-item, [role^='menuitem']"),r.length!==0)break;if(!(!r||r.length===0)){r[0].setAttribute("tabindex","0");for(let n=1;n!==r.length;++n)r[n].setAttribute("tabindex","-1");this.popupRef.value&&(i.preventDefault(),i.stopPropagation(),this.popupRef.value.active?r[0]instanceof HTMLElement&&r[0].focus():(this.enableSubmenu(!1),this.host.updateComplete.then(()=>{r[0]instanceof HTMLElement&&r[0].focus()}),this.host.requestUpdate()))}}setSubmenuState(i){this.popupRef.value&&this.popupRef.value.active!==i&&(this.popupRef.value.active=i,this.host.requestUpdate())}enableSubmenu(i=!0){i?this.enableSubmenuTimer=window.setTimeout(()=>{this.setSubmenuState(!0)},this.submenuOpenDelay):this.setSubmenuState(!0)}disableSubmenu(){clearTimeout(this.enableSubmenuTimer),this.setSubmenuState(!1)}updateSkidding(){if(!this.host.parentElement?.computedStyleMap)return;let i=this.host.parentElement.computedStyleMap(),r=["padding-top","border-top-width","margin-top"].reduce((n,a)=>{let s=i.get(a)??new CSSUnitValue(0,"px"),p=(s instanceof CSSUnitValue?s:new CSSUnitValue(0,"px")).to("px");return n-p.value},0);this.skidding=r}isExpanded(){return this.popupRef.value?this.popupRef.value.active:!1}renderSubmenu(){let i=this.localize.dir()==="ltr";return this.isConnected?u`
920
920
  <zn-popup
921
921
  ${Pl(this.popupRef)}
922
922
  placement=${i?"right-start":"left-start"}
@@ -1110,7 +1110,7 @@ import{a as Fn,b as h3,c as _r,d as c,e as V}from"./chunks/zn.UBLZO6CI.js";var K
1110
1110
  ${this._active.length>0?u`
1111
1111
  <zn-button class="filter-bar__clear" text @click="${this.clear}">Clear</zn-button>`:B}
1112
1112
  </div>
1113
- `}};Er.styles=z(x0),Er.dependencies={"zn-button":$e,"zn-datepicker":Yu,"zn-dropdown":pr,"zn-input":nt,"zn-menu":on,"zn-menu-item":xi},c([d({type:Array})],Er.prototype,"filters",2),c([d()],Er.prototype,"name",2),c([d()],Er.prototype,"value",2),c([d({attribute:"default-filters"})],Er.prototype,"defaultFilters",2),c([d({attribute:!1})],Er.prototype,"suggestions",2),c([R()],Er.prototype,"_active",2),c([R()],Er.prototype,"_typing",2),c([R()],Er.prototype,"_optionQuery",2);var Ud=Er;Er.define("zn-data-table-filter");var w0=_`@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 k{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 pt}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=this.shadowRoot?.querySelector("slot");if(!r)return t;let n=r.assignedElements({flatten:!0}),a=["zn-input","zn-select","zn-query-builder","zn-multiselect","zn-params-select","zn-datepicker","input","select","textarea","zn-cols","zn-input-group"];return n.forEach(s=>{if(a.includes(s.tagName.toLowerCase())){let l=s,p=l.value||s.getAttribute("value"),h=l.name||s.getAttribute("name");h&&(t[h]=p)}}),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`
1113
+ `}};Er.styles=z(x0),Er.dependencies={"zn-button":$e,"zn-datepicker":Yu,"zn-dropdown":pr,"zn-input":ot,"zn-menu":on,"zn-menu-item":xi},c([d({type:Array})],Er.prototype,"filters",2),c([d()],Er.prototype,"name",2),c([d()],Er.prototype,"value",2),c([d({attribute:"default-filters"})],Er.prototype,"defaultFilters",2),c([d({attribute:!1})],Er.prototype,"suggestions",2),c([D()],Er.prototype,"_active",2),c([D()],Er.prototype,"_typing",2),c([D()],Er.prototype,"_optionQuery",2);var Ud=Er;Er.define("zn-data-table-filter");var w0=_`@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 k{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 pt}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=this.shadowRoot?.querySelector("slot");if(!r)return t;let n=r.assignedElements({flatten:!0}),a=["zn-input","zn-select","zn-query-builder","zn-multiselect","zn-params-select","zn-datepicker","input","select","textarea","zn-cols","zn-input-group"];return n.forEach(s=>{if(a.includes(s.tagName.toLowerCase())){let l=s,p=l.value||s.getAttribute("value"),h=l.name||s.getAttribute("name");h&&(t[h]=p)}}),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`
1114
1114
  <div class="data-table-search">
1115
1115
  <zn-input
1116
1116
  type="search"
@@ -1129,7 +1129,7 @@ import{a as Fn,b as h3,c as _r,d as c,e as V}from"./chunks/zn.UBLZO6CI.js";var K
1129
1129
  </zn-input>
1130
1130
  <slot style="display: none"></slot>
1131
1131
  </div>
1132
- `}};Jr.styles=z(w0),Jr.dependencies={"zn-input":nt,"zn-tooltip":gi},c([d()],Jr.prototype,"name",2),c([d()],Jr.prototype,"value",2),c([d()],Jr.prototype,"placeholder",2),c([d({attribute:"help-text"})],Jr.prototype,"helpText",2),c([d({attribute:"search-uri"})],Jr.prototype,"searchUri",2),c([d({type:Number,attribute:"debounce-delay"})],Jr.prototype,"debounceDelay",2);var Qu=Jr;Jr.define("zn-data-table-search");var z0=_`@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;container-type:inline-size;width:100%}.empty-state{height:100%;width:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:var(--zn-spacing-x-small)}.empty-state ::slotted(*){display:flex;margin-top:var(--zn-spacing-small)}.empty-state .caption{font-weight:var(--zn-font-weight-semibold);font-size:var(--zn-font-size-large);line-height:var(--zn-line-height-dense);color:rgb(var(--zn-text-heading));text-align:center}.empty-state .description{font-size:var(--zn-font-size-small);line-height:var(--zn-line-height-normal);color:rgb(var(--zn-text));text-align:center}.empty-state__wrapper{height:100%;width:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:var(--zn-spacing-x-small);padding:var(--zn-spacing-large);flex-grow:1}.empty-state--error{background-color:rgba(var(--zn-color-error),0.05);min-height:100px}.empty-state--error .empty-state__wrapper{border:dashed 1px rgb(var(--zn-color-error)) !important}.empty-state--error ::slotted(*),.empty-state--error .caption,.empty-state--error .description{color:rgb(var(--zn-color-error))}.empty-state--info{background-color:rgba(var(--zn-color-info),0.05);min-height:100px}.empty-state--info .empty-state__wrapper{border:dashed 1px rgb(var(--zn-color-info)) !important}.empty-state--info ::slotted(*),.empty-state--info .caption,.empty-state--info .description{color:rgb(var(--zn-color-info))}.empty-state--primary{background-color:rgba(var(--zn-primary),0.05);min-height:100px}.empty-state--primary .empty-state__wrapper{border:dashed 1px rgb(var(--zn-primary)) !important}.empty-state--primary ::slotted(*),.empty-state--primary .caption,.empty-state--primary .description{color:rgb(var(--zn-primary))}.empty-state--padded{padding:var(--zn-spacing-medium)}`;var Li=class extends k{constructor(){super(...arguments);this.icon="";this.caption="";this.description="";this.type="";this.padded=!1;this.hasSlotController=new Y(this,"[default]","caption","description")}render(){return u`
1132
+ `}};Jr.styles=z(w0),Jr.dependencies={"zn-input":ot,"zn-tooltip":gi},c([d()],Jr.prototype,"name",2),c([d()],Jr.prototype,"value",2),c([d()],Jr.prototype,"placeholder",2),c([d({attribute:"help-text"})],Jr.prototype,"helpText",2),c([d({attribute:"search-uri"})],Jr.prototype,"searchUri",2),c([d({type:Number,attribute:"debounce-delay"})],Jr.prototype,"debounceDelay",2);var Qu=Jr;Jr.define("zn-data-table-search");var z0=_`@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;container-type:inline-size;width:100%}.empty-state{height:100%;width:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:var(--zn-spacing-x-small)}.empty-state ::slotted(*){display:flex;margin-top:var(--zn-spacing-small)}.empty-state .caption{font-weight:var(--zn-font-weight-semibold);font-size:var(--zn-font-size-large);line-height:var(--zn-line-height-dense);color:rgb(var(--zn-text-heading));text-align:center}.empty-state .description{font-size:var(--zn-font-size-small);line-height:var(--zn-line-height-normal);color:rgb(var(--zn-text));text-align:center}.empty-state__wrapper{height:100%;width:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:var(--zn-spacing-x-small);padding:var(--zn-spacing-large);flex-grow:1}.empty-state--error{background-color:rgba(var(--zn-color-error),0.05);min-height:100px}.empty-state--error .empty-state__wrapper{border:dashed 1px rgb(var(--zn-color-error)) !important}.empty-state--error ::slotted(*),.empty-state--error .caption,.empty-state--error .description{color:rgb(var(--zn-color-error))}.empty-state--info{background-color:rgba(var(--zn-color-info),0.05);min-height:100px}.empty-state--info .empty-state__wrapper{border:dashed 1px rgb(var(--zn-color-info)) !important}.empty-state--info ::slotted(*),.empty-state--info .caption,.empty-state--info .description{color:rgb(var(--zn-color-info))}.empty-state--primary{background-color:rgba(var(--zn-primary),0.05);min-height:100px}.empty-state--primary .empty-state__wrapper{border:dashed 1px rgb(var(--zn-primary)) !important}.empty-state--primary ::slotted(*),.empty-state--primary .caption,.empty-state--primary .description{color:rgb(var(--zn-primary))}.empty-state--padded{padding:var(--zn-spacing-medium)}`;var Li=class extends k{constructor(){super(...arguments);this.icon="";this.caption="";this.description="";this.type="";this.padded=!1;this.hasSlotController=new Y(this,"[default]","caption","description")}render(){return u`
1133
1133
  <div class="${M({"empty-state":!0,"empty-state--error":this.type==="error","empty-state--info":this.type==="info","empty-state--primary":this.type==="primary","empty-state--padded":this.padded})}">
1134
1134
  <div class="empty-state__wrapper">
1135
1135
  ${this.icon||this.hasSlotController.test("icon")?u`
@@ -1163,14 +1163,14 @@ import{a as Fn,b as h3,c as _r,d as c,e as V}from"./chunks/zn.UBLZO6CI.js";var K
1163
1163
  aria-label="hover-container">
1164
1164
  <slot name="content">${this.content}</slot>
1165
1165
  </div>
1166
- </zn-popup>`}};It.styles=z(_0),c([F("slot:not([name])")],It.prototype,"defaultSlot",2),c([F(".hover-container__body")],It.prototype,"body",2),c([F("zn-popup")],It.prototype,"popup",2),c([d()],It.prototype,"content",2),c([d()],It.prototype,"placement",2),c([d({type:Boolean,reflect:!0})],It.prototype,"disabled",2),c([d({type:Number})],It.prototype,"distance",2),c([d({type:Boolean,reflect:!0})],It.prototype,"open",2),c([d({type:Number})],It.prototype,"skidding",2),c([d()],It.prototype,"trigger",2),c([d({type:Boolean})],It.prototype,"hoist",2),c([K("open",{waitUntilFirstUpdate:!0})],It.prototype,"handleOpenChange",1),c([K(["content","distance","hoist","placement","skidding"])],It.prototype,"handleOptionsChange",1),c([K("disabled")],It.prototype,"handleDisabledChange",1);var Ju=It;It.define("zn-hover-container");var k0=_`@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{flex-grow:1;overflow:visible;display:flex;max-width:100%;z-index:1;position:relative;min-width:var(--zn-spacing-small-panel);flex-basis:var(--zn-panel-basis);--zn-page-surface-background:var(--zn-panel);--zn-active-nav-background:var(--zn-panel)}.panel{position:relative;border:1px solid rgb(var(--zn-border-color));display:flex;border-radius:var(--zn-border-radius);flex-direction:column;flex-grow:1;flex-basis:var(--zn-spacing-small-panel);width:100%;background-color:rgba(var(--zn-panel),var(--zn-panel-opacity))}.panel__inner{overflow:hidden;display:flex;border-radius:var(--zn-border-radius);flex-direction:column;flex-grow:1}.panel__content{display:flex;flex-grow:1;overflow:hidden;position:relative}.panel__header{padding:var(--zn-panel-header-padding,var(--zn-base-gap))}.panel__header::part(base){border-bottom:0;overflow:visible}.panel__header--inline{border-bottom:0}.panel__header--underline{border-bottom:1px solid rgb(var(--zn-border-color))}.panel__header::part(content){padding:0}.panel__body{display:flex;flex-direction:column;overflow-y:auto;flex-grow:1;padding:var(--zn-base-gap)}.panel__body>:not([hidden])~:not([hidden]){border:1px solid rgb(var(--zn-border-color))}.panel__footer{font-size:var(--zn-font-size-small);display:block;padding:var(--zn-panel-footer-padding,var(--zn-spacing-small) var(--zn-base-gap));background:rgb(var(--zn-body));border-bottom-left-radius:var(--zn-border-radius);border-bottom-right-radius:var(--zn-border-radius)}.panel--tabbed .panel__body{padding:0}.panel--transparent{background-color:transparent;border:none}.panel--transparent:before{display:none}.panel:not(.panel--flush,.panel--flush-x,.panel--flush-y) ::slotted(zn-sp){--zn-sp-padding:0 !important}.panel.panel--borderless-header:not(.panel--flush,.panel--flush-y) .panel__body{padding-top:0}.panel--flush .panel__body{padding:0}.panel--flush-x .panel__body{padding-inline:0}.panel--flush-y .panel__body{padding-block:0}.panel--flush-footer .panel__footer{padding:0}.panel--transparent .panel__header{padding-left:0;padding-right:0}.panel--cosmic{border:1px solid transparent}.panel--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}.panel--shadow{box-shadow:0 6px 20px 10px rgba(0,0,0,0.25)}`;var at=class extends k{constructor(){super(...arguments);this.hasSlotController=new Y(this,"[default]","actions","footer")}firstUpdated(t){if(super.firstUpdated(t),this.basis&&this.style.setProperty("--zn-panel-basis",this.basis.toString()+"px"),!this.tabbed){let r=this.querySelector("zn-tabs");if(r){r.setAttribute("flush-x","");let n=this.shadowRoot?.querySelector(".body");n&&n.classList.toggle("ntp",!0)}}}connectedCallback(){if(super.connectedCallback(),window.CSS.registerProperty)try{window.CSS.registerProperty({inherits:!1,initialValue:"0deg",name:"--rotate",syntax:"<angle>"})}catch{}}render(){let t=this.hasSlotController.test("actions"),r=this.hasSlotController.test("footer"),n=this.caption||t,a=this.flush||this.tabbed||this.flushY,s=!this.headerBorderless&&!(this.transparent&&a);return u`
1167
- <div class="${M({panel:!0,"panel--flush":this.flush||this.tabbed,"panel--flush-x":this.flushX,"panel--flush-y":this.flushY,"panel--flush-footer":this.flushFooter,"panel--tabbed":this.tabbed,"panel--transparent":this.transparent,"panel--has-actions":t,"panel--has-footer":r,"panel--has-header":n,"panel--borderless-header":this.headerBorderless,"panel--cosmic":this.cosmic,"panel--shadow":this.shadow})}">
1166
+ </zn-popup>`}};It.styles=z(_0),c([F("slot:not([name])")],It.prototype,"defaultSlot",2),c([F(".hover-container__body")],It.prototype,"body",2),c([F("zn-popup")],It.prototype,"popup",2),c([d()],It.prototype,"content",2),c([d()],It.prototype,"placement",2),c([d({type:Boolean,reflect:!0})],It.prototype,"disabled",2),c([d({type:Number})],It.prototype,"distance",2),c([d({type:Boolean,reflect:!0})],It.prototype,"open",2),c([d({type:Number})],It.prototype,"skidding",2),c([d()],It.prototype,"trigger",2),c([d({type:Boolean})],It.prototype,"hoist",2),c([K("open",{waitUntilFirstUpdate:!0})],It.prototype,"handleOpenChange",1),c([K(["content","distance","hoist","placement","skidding"])],It.prototype,"handleOptionsChange",1),c([K("disabled")],It.prototype,"handleDisabledChange",1);var Ju=It;It.define("zn-hover-container");var k0=_`@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{flex-grow:1;overflow:visible;display:flex;max-width:100%;z-index:1;position:relative;min-width:var(--zn-spacing-small-panel);flex-basis:var(--zn-panel-basis);--zn-page-surface-background:var(--zn-panel);--zn-active-nav-background:var(--zn-panel)}.panel{position:relative;border:1px solid rgb(var(--zn-border-color));display:flex;border-radius:var(--zn-border-radius);flex-direction:column;flex-grow:1;flex-basis:var(--zn-spacing-small-panel);width:100%;background-color:rgba(var(--zn-panel),var(--zn-panel-opacity))}.panel__inner{overflow:hidden;display:flex;border-radius:var(--zn-border-radius);flex-direction:column;flex-grow:1}.panel__content{display:flex;flex-grow:1;overflow:hidden;position:relative}.panel__header{padding:var(--zn-panel-header-padding,var(--zn-base-gap))}.panel__header::part(base){border-bottom:0;overflow:visible}.panel__header--inline{border-bottom:0}.panel__header--underline{border-bottom:1px solid rgb(var(--zn-border-color))}.panel__header::part(content){padding:0}.panel__body{display:flex;flex-direction:column;overflow-y:auto;flex-grow:1;padding:var(--zn-base-gap)}.panel__body>:not([hidden])~:not([hidden]){border:1px solid rgb(var(--zn-border-color))}.panel__footer{font-size:var(--zn-font-size-small);display:block;padding:var(--zn-panel-footer-padding,var(--zn-spacing-small) var(--zn-base-gap));background:rgb(var(--zn-body));border-bottom-left-radius:var(--zn-border-radius);border-bottom-right-radius:var(--zn-border-radius)}.panel--tabbed .panel__body{padding:0}.panel--transparent{background-color:transparent;border:none}.panel--transparent:before{display:none}.panel:not(.panel--flush,.panel--flush-x,.panel--flush-y) ::slotted(zn-sp){--zn-sp-padding:0 !important}.panel.panel--borderless-header:not(.panel--flush,.panel--flush-y) .panel__body{padding-top:0}.panel--empty .panel__body{padding:0}.panel--flush .panel__body{padding:0}.panel--flush-x .panel__body{padding-inline:0}.panel--flush-y .panel__body{padding-block:0}.panel--flush-footer .panel__footer{padding:0}.panel--transparent .panel__header{padding-left:0;padding-right:0}.panel--cosmic{border:1px solid transparent}.panel--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}.panel--shadow{box-shadow:0 6px 20px 10px rgba(0,0,0,0.25)}`;var Ze=class extends k{constructor(){super(...arguments);this.hasSlotController=new Y(this,"[default]","actions","footer");this.bodyEmpty=!1;this.resizeObserver=null}firstUpdated(t){if(super.firstUpdated(t),this.observeBodyContent(),this.basis&&this.style.setProperty("--zn-panel-basis",this.basis.toString()+"px"),!this.tabbed){let r=this.querySelector("zn-tabs");if(r){r.setAttribute("flush-x","");let n=this.shadowRoot?.querySelector(".body");n&&n.classList.toggle("ntp",!0)}}}connectedCallback(){if(super.connectedCallback(),this.hasUpdated&&this.observeBodyContent(),window.CSS.registerProperty)try{window.CSS.registerProperty({inherits:!1,initialValue:"0deg",name:"--rotate",syntax:"<angle>"})}catch{}}disconnectedCallback(){super.disconnectedCallback(),this.resizeObserver?.disconnect(),this.resizeObserver=null}get bodySlot(){return this.renderRoot?.querySelector(".panel__body > slot")??null}observeBodyContent(){let t=this.bodySlot;t&&(this.resizeObserver??(this.resizeObserver=new ResizeObserver(()=>this.measureBodyContent())),this.resizeObserver.disconnect(),t.assignedElements({flatten:!0}).forEach(r=>this.resizeObserver.observe(r)),this.measureBodyContent())}measureBodyContent(){let t=this.bodySlot?.assignedNodes({flatten:!0})??[];this.bodyEmpty=!t.some(r=>r.nodeType===Node.TEXT_NODE?r.textContent.trim()!=="":r.getBoundingClientRect().height>0)}render(){let t=this.hasSlotController.test("actions"),r=this.hasSlotController.test("footer"),n=this.caption||t,a=!this.hasSlotController.test("[default]")||this.bodyEmpty,s=this.flush||this.tabbed||this.flushY,l=!this.headerBorderless&&!(this.transparent&&s)&&!a;return u`
1167
+ <div class="${M({panel:!0,"panel--flush":this.flush||this.tabbed,"panel--flush-x":this.flushX,"panel--flush-y":this.flushY,"panel--flush-footer":this.flushFooter,"panel--tabbed":this.tabbed,"panel--transparent":this.transparent,"panel--has-actions":t,"panel--has-footer":r,"panel--empty":a,"panel--has-header":n,"panel--borderless-header":this.headerBorderless,"panel--cosmic":this.cosmic,"panel--shadow":this.shadow})}">
1168
1168
 
1169
1169
  <div class="panel__inner">
1170
1170
  ${n?u`
1171
1171
  <zn-header part="header"
1172
1172
  exportparts="content:header-content"
1173
- class="${M({panel__header:!0,"panel__header--underline":s})}"
1173
+ class="${M({panel__header:!0,"panel__header--underline":l})}"
1174
1174
  icon="${this.icon}"
1175
1175
  caption="${this.caption}"
1176
1176
  transparent>
@@ -1180,14 +1180,14 @@ import{a as Fn,b as h3,c as _r,d as c,e as V}from"./chunks/zn.UBLZO6CI.js";var K
1180
1180
 
1181
1181
  <div class="panel__content">
1182
1182
  <div class="panel__body">
1183
- <slot></slot>
1183
+ <slot @slotchange="${this.observeBodyContent}"></slot>
1184
1184
  </div>
1185
1185
  </div>
1186
1186
 
1187
1187
  ${r?u`
1188
1188
  <slot name="footer" part="footer" class="panel__footer"></slot>`:null}
1189
1189
  </div>
1190
- </div>`}};at.styles=z(k0),c([d({attribute:"basis-px",type:Number})],at.prototype,"basis",2),c([d()],at.prototype,"caption",2),c([d()],at.prototype,"icon",2),c([d({type:Boolean})],at.prototype,"tabbed",2),c([d({attribute:"header-borderless",type:Boolean})],at.prototype,"headerBorderless",2),c([d({type:Boolean})],at.prototype,"cosmic",2),c([d({type:Boolean})],at.prototype,"flush",2),c([d({attribute:"flush-x",type:Boolean})],at.prototype,"flushX",2),c([d({attribute:"flush-y",type:Boolean})],at.prototype,"flushY",2),c([d({attribute:"flush-footer",type:Boolean})],at.prototype,"flushFooter",2),c([d({type:Boolean})],at.prototype,"transparent",2),c([d({type:Boolean})],at.prototype,"shadow",2);var Zu=at;at.define("zn-panel");var C0=_`:host{--skeleton-speed:3s;--skeleton-width:100%;--skeleton-height:20px;--skeleton-border-radius:4px}.skeleton{height:var(--skeleton-height);width:var(--skeleton-width);border-radius:var(--skeleton-border-radius);background-color:lightgrey}@media (prefers-reduced-motion:reduce){.skeleton{background-repeat:no-repeat;background-color:lightgrey}}@media (prefers-reduced-motion:no-preference){.skeleton{background-repeat:no-repeat;background-image:linear-gradient(90deg,rgba(255,255,255,0) 0%,rgba(255,255,255,0.8) 50%,rgba(255,255,255,0) 100%);background-size:200% 100%;background-position:-150% 0;animation:loading var(--skeleton-speed) infinite linear both}}@keyframes loading{from{background-position:250% 0}to{background-position:-250% 0}}`;var an=class extends k{constructor(){super(...arguments);this.speed="3s";this.width="100%";this.height="20px";this.radius="4px"}render(){return u`
1190
+ </div>`}};Ze.styles=z(k0),c([d({attribute:"basis-px",type:Number})],Ze.prototype,"basis",2),c([d()],Ze.prototype,"caption",2),c([d()],Ze.prototype,"icon",2),c([d({type:Boolean})],Ze.prototype,"tabbed",2),c([d({attribute:"header-borderless",type:Boolean})],Ze.prototype,"headerBorderless",2),c([d({type:Boolean})],Ze.prototype,"cosmic",2),c([d({type:Boolean})],Ze.prototype,"flush",2),c([d({attribute:"flush-x",type:Boolean})],Ze.prototype,"flushX",2),c([d({attribute:"flush-y",type:Boolean})],Ze.prototype,"flushY",2),c([d({attribute:"flush-footer",type:Boolean})],Ze.prototype,"flushFooter",2),c([d({type:Boolean})],Ze.prototype,"transparent",2),c([d({type:Boolean})],Ze.prototype,"shadow",2),c([D()],Ze.prototype,"bodyEmpty",2);var Zu=Ze;Ze.define("zn-panel");var C0=_`:host{--skeleton-speed:3s;--skeleton-width:100%;--skeleton-height:20px;--skeleton-border-radius:4px}.skeleton{height:var(--skeleton-height);width:var(--skeleton-width);border-radius:var(--skeleton-border-radius);background-color:lightgrey}@media (prefers-reduced-motion:reduce){.skeleton{background-repeat:no-repeat;background-color:lightgrey}}@media (prefers-reduced-motion:no-preference){.skeleton{background-repeat:no-repeat;background-image:linear-gradient(90deg,rgba(255,255,255,0) 0%,rgba(255,255,255,0.8) 50%,rgba(255,255,255,0) 100%);background-size:200% 100%;background-position:-150% 0;animation:loading var(--skeleton-speed) infinite linear both}}@keyframes loading{from{background-position:250% 0}to{background-position:-250% 0}}`;var an=class extends k{constructor(){super(...arguments);this.speed="3s";this.width="100%";this.height="20px";this.radius="4px"}render(){return u`
1191
1191
  <div class="skeleton"
1192
1192
  style=${xt({"--skeleton-speed":`${this.speed}`,"--skeleton-width":`${this.width}`,"--skeleton-height":`${this.height}`,"--skeleton-border-radius":`${this.radius}`})}
1193
1193
  ></div>`}};an.styles=z(C0),c([d({attribute:"speed",type:String})],an.prototype,"speed",2),c([d({attribute:"width",type:String})],an.prototype,"width",2),c([d({attribute:"height",type:String})],an.prototype,"height",2),c([d({attribute:"radius",type:String})],an.prototype,"radius",2);var em=an;an.define("zn-skeleton");var S0=_`@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)}`;var Ue=class extends k{constructor(){super(...arguments);this.localize=new Ht(this);this.color="";this.border="";this.size="";this.error=!1;this.success=!1;this.info=!1;this.warning=!1;this.primary=!1;this.accent=!1;this.center=!1;this.display=null;this.font="";this.width="";this.height="";this.pad="";this.margin="";this.muted=!1;this.gutter=!1;this.autoMargin=""}connectedCallback(){super.connectedCallback();let t=this.display||"contents";this.gutter&&(this.classList.add("zn-gutter"),t==="contents"&&(t="block")),this.color===""&&(this.error?this.color="error":this.success?this.color="success":this.info?this.color="info":this.warning?this.color="warning":this.primary?this.color="primary":this.accent&&(this.color="accent")),this.color&&this.classList.toggle("zn-"+this.color,!0),this.center&&(t="flex",this.classList.toggle("flex-mid",!0),this.classList.toggle("flex-jc",!0)),this.font&&this.font==="mono"&&this.classList.toggle("zn-mono",!0),this.width==="f"&&this.classList.toggle("w-full",!0),this.height==="f"&&this.classList.toggle("h-full",!0);let r=this.hasAttribute("border")?this.border||"a":"";if(r){t="inline-block";for(let n of r)switch(n){case"a":this.classList.toggle("zn-border",!0);break;case"t":this.classList.toggle("zn-bt",!0);break;case"b":this.classList.toggle("zn-bb",!0);break;case"l":this.classList.toggle("zn-bl",!0);break;case"r":this.classList.toggle("zn-br",!0);break}}if(this.pad){t="inline-block",this.style.display="inline-block";for(let n of this.pad)switch(n){case"a":this.classList.toggle("zn-pad",!0);break;case"l":this.classList.toggle("zn-pl",!0);break;case"r":this.classList.toggle("zn-pr",!0);break;case"t":this.classList.toggle("zn-pt",!0);break;case"b":this.classList.toggle("zn-pb",!0);break;case"x":this.classList.toggle("zn-px",!0);break;case"y":this.classList.toggle("zn-py",!0);break}}if(this.margin){t="inline-block";for(let n of this.margin)switch(n){case"a":this.classList.toggle("zn-margin",!0);break;case"l":this.classList.toggle("zn-ml",!0);break;case"r":this.classList.toggle("zn-mr",!0);break;case"t":this.classList.toggle("zn-mt",!0);break;case"b":this.classList.toggle("zn-mb",!0);break;case"x":this.classList.toggle("zn-mx",!0);break;case"y":this.classList.toggle("zn-my",!0);break}}if(this.autoMargin){t="inline-block";for(let n of this.autoMargin)switch(n){case"a":this.classList.toggle("m-auto",!0);break;case"t":this.classList.toggle("zn-mta",!0);break;case"b":this.classList.toggle("zn-mba",!0);break;case"l":this.classList.toggle("zn-mla",!0);break;case"r":this.classList.toggle("zn-mra",!0);break;case"x":this.classList.toggle("zn-mra",!0),this.classList.toggle("zn-mla",!0);break;case"y":this.classList.toggle("zn-mta",!0),this.classList.toggle("zn-mba",!0);break}}this.muted&&(t="inline-block",this.classList.toggle("zn-muted",!0)),this.size&&this.size!=="m"&&this.classList.toggle("zn-size-"+this.size,!0),this.display&&(t=this.display),this.style.display=t}createRenderRoot(){return this}};Ue.styles=z(S0),c([d()],Ue.prototype,"color",2),c([d()],Ue.prototype,"border",2),c([d()],Ue.prototype,"size",2),c([d({type:Boolean})],Ue.prototype,"error",2),c([d({type:Boolean})],Ue.prototype,"success",2),c([d({type:Boolean})],Ue.prototype,"info",2),c([d({type:Boolean})],Ue.prototype,"warning",2),c([d({type:Boolean})],Ue.prototype,"primary",2),c([d({type:Boolean})],Ue.prototype,"accent",2),c([d({type:Boolean})],Ue.prototype,"center",2),c([d({type:String})],Ue.prototype,"display",2),c([d()],Ue.prototype,"font",2),c([d()],Ue.prototype,"width",2),c([d()],Ue.prototype,"height",2),c([d()],Ue.prototype,"pad",2),c([d()],Ue.prototype,"margin",2),c([d({type:Boolean})],Ue.prototype,"muted",2),c([d({type:Boolean})],Ue.prototype,"gutter",2),c([d({attribute:"a-margin"})],Ue.prototype,"autoMargin",2),Ue=c([Mb("zn-style")],Ue);var tm=Ue;Ue.define("zn-style");var gs=_`@charset "UTF-8";:root,[t=light],.theme-light{color-scheme:light;--zn-color-gray-100:hsl(240,13%,95%);--zn-color-gray-300:hsl(260,21%,89%);--zn-color-gray-400:hsl(251,17%,76%);--zn-color-gray-500:hsl(254,17%,66%);--zn-color-gray-800:hsl(259,13%,42%);--zn-color-gray-900:hsl(262,12%,35%);--zn-color-red-500:hsl(0 84.2% 60.2%);--zn-color-red-600:hsl(0 72.2% 50.6%);--zn-color-orange-500:hsl(24.6 95% 53.1%);--zn-color-amber-400:hsl(43.3 96.4% 56.3%);--zn-color-yellow-400:hsl(51,100%,53%);--zn-color-green-500:hsl(142.1 70.6% 45.3%);--zn-color-blue-500:hsl(217.2 91.2% 59.8%);--zn-color-indigo-400:hsl(234.5 89.5% 73.9%);--zn-color-indigo-500:hsl(238.7 83.5% 66.7%);--zn-color-violet-500:hsl(258.3 89.5% 66.3%);--zn-color-violet-600:hsl(262.1 83.3% 57.8%);--zn-color-purple-50:hsl(249,100%,97%);--zn-color-purple-100:hsl(245,100%,95%);--zn-color-purple-200:hsl(244,100%,92%);--zn-color-purple-600:hsl(256,91%,59%);--zn-color-pink-400:hsl(328.6 85.5% 70.2%);--zn-color-pink-500:hsl(330.4 81.2% 60.4%);--zn-color-primary-50:var(--zn-color-purple-50);--zn-color-primary-100:var(--zn-color-purple-100);--zn-color-primary-200:var(--zn-color-purple-200);--zn-color-primary-300:hsl(246,100%,85%);--zn-color-primary-400:hsl(249,100%,76%);--zn-color-primary-500:hsl(252,98%,66%);--zn-color-primary-600:var(--zn-color-purple-600);--zn-color-primary-700:hsl(257,76%,50%);--zn-color-primary-800:hsl(257,76%,42%);--zn-color-primary-900:hsl(257,73%,35%);--zn-color-success-50:hsl(138.5 76.5% 96.7%);--zn-color-success-200:rgb(var(--zn-green));--zn-color-success-300:hsl(141.7 76.6% 73.1%);--zn-color-success-400:hsl(141.9 69.2% 58%);--zn-color-success-500:var(--zn-color-green-500);--zn-color-success-600:hsl(142.1 76.2% 36.3%);--zn-color-success-700:hsl(142.4 71.8% 29.2%);--zn-color-warning-50:hsl(48 100% 96.1%);--zn-color-warning-400:var(--zn-color-amber-400);--zn-color-warning-500:hsl(37.7 92.1% 50.2%);--zn-color-warning-600:hsl(32.1 94.6% 43.7%);--zn-color-danger-50:hsl(0 85.7% 97.3%);--zn-color-danger-100:rgb(var(--zn-red));--zn-color-danger-200:rgb(var(--zn-red));--zn-color-danger-300:hsl(0 93.5% 81.8%);--zn-color-danger-500:var(--zn-color-red-500);--zn-color-danger-600:var(--zn-color-red-600);--zn-color-danger-700:rgb(var(--zn-red));--zn-color-danger-800:hsl(0 70% 35.3%);--zn-color-neutral-50:hsl(255,33%,98%);--zn-color-neutral-100:var(--zn-color-gray-100);--zn-color-neutral-200:hsl(255,12%,94%);--zn-color-neutral-300:var(--zn-color-gray-300);--zn-color-neutral-400:var(--zn-color-gray-400);--zn-color-neutral-500:var(--zn-color-gray-500);--zn-color-neutral-600:hsl(258,15%,58%);--zn-color-neutral-700:hsl(259,13%,54%);--zn-color-neutral-800:var(--zn-color-gray-800);--zn-color-neutral-900:var(--zn-color-gray-900);--zn-color-neutral-0:hsl(0,0%,100%);--zn-color-neutral-1000:hsl(0,0%,0%);--zn-border-radius:6px;--zn-border-radius-small:2px;--zn-border-radius-x-large:var(--zn-border-radius);--zn-border-radius-circle:50%;--zn-border-radius-pill:9999px;--zn-shadow-x-small:0 1px 4px rgba(0,0,0,0.10);--zn-shadow-small:0 3px 9px rgba(0,0,0,0.15);--zn-shadow-medium:0 6px 18px rgba(0,0,0,0.15);--zn-shadow-large:0 6px 20px rgba(0,0,0,0.15);--zn-shadow-x-large:0 6px 20px rgba(0,0,0,0.25);--zn-container:var(--zn-container-hd);--zn-container-default:100%;--zn-container-sm:360px;--zn-container-smp:480px;--zn-container-ph:600px;--zn-container-md:768px;--zn-container-lg:1100px;--zn-container-hd:1400px;--zn-container-3k:1960px;--zn-container-4k:2560px;--zn-transition-x-slow:1000ms;--zn-transition-slow:500ms;--zn-transition-medium:250ms;--zn-transition-fast:150ms;--zn-transition-x-fast:50ms;--zn-gap:var(--zn-base-gap,var(--zn-spacing-medium,4px));--zn-font-mono:'Roboto Mono',SFMono-Regular,Consolas,'Liberation Mono',Menlo,monospace;--zn-font-sans:'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Helvetica,Arial,sans-serif,'Apple Color Emoji','Segoe UI Emoji','Segoe UI Symbol';--zn-font-serif:'Roboto Slab',Georgia,'Times New Roman',serif;--zn-font-size-2x-small:0.625rem;--zn-font-size-x-small:0.75rem;--zn-font-size-small:0.929rem;--zn-font-size-medium:1rem;--zn-font-size-large:1.15rem;--zn-font-size-x-large:1.25rem;--zn-font-size-2x-large:2.25rem;--zn-font-size-3x-large:3rem;--zn-font-size-4x-large:4.5rem;--zn-font-weight-light:300;--zn-font-weight-normal:400;--zn-font-weight-medium:500;--zn-font-weight-semibold:600;--zn-font-weight-bold:700;--zn-letter-spacing-normal:normal;--zn-letter-spacing-loose:0.5px;--zn-line-height-denser:1;--zn-line-height-dense:1.5;--zn-line-height-normal:2;--zn-line-height-loose:2.5;--zn-line-height-looser:3;--zn-focus-ring-color:var(--zn-color-primary-600);--zn-focus-ring-style:solid;--zn-focus-ring-width-x-small:1px;--zn-focus-ring-width:3px;--zn-focus-ring:var(--zn-focus-ring-style) var(--zn-focus-ring-width) var(--zn-focus-ring-color);--zn-focus-ring-offset:1px;--zn-focus-ring-outset:4px;--zn-input-height-x-small:24px;--zn-input-height-small:30px;--zn-input-height-medium:36px;--zn-input-height-large:40px;--zn-input-background-color:rgb(var(--zn-color-body));--zn-input-background-color-hover:color-mix(in srgb,rgb(var(--zn-color-body)) 98%,black);--zn-input-background-color-focus:var(--zn-color-neutral-100);--zn-input-background-color-disabled:var(--zn-color-neutral-400);--zn-input-border-color:var(--zn-color-neutral-300);--zn-input-border-color-hover:var(--zn-color-neutral-400);--zn-input-border-color-focus:var(--zn-color-primary-500);--zn-input-border-color-disabled:var(--zn-color-neutral-300);--zn-input-border-width:1px;--zn-input-required-content:'*';--zn-input-required-content-offset:-2px;--zn-input-required-content-color:var(--zn-input-label-color);--zn-input-border-radius-x-small:var(--zn-border-radius);--zn-input-border-radius-small:var(--zn-border-radius);--zn-input-border-radius-medium:var(--zn-border-radius);--zn-input-border-radius-large:var(--zn-border-radius);--zn-input-font-family:var(--zn-font-sans);--zn-input-font-weight:var(--zn-text-input-content-font-weight);--zn-input-font-size-x-small:var(--zn-font-size-x-small);--zn-input-font-size-small:var(--zn-font-size-small);--zn-input-font-size-medium:var(--zn-text-input-content-font-size);--zn-input-font-size-large:var(--zn-font-size-large);--zn-input-line-height:var(--zn-text-input-content-line-height);--zn-input-letter-spacing:var(--zn-letter-spacing-normal);--zn-input-color:var(--zn-text-input-content-color);--zn-input-color-hover:var(--zn-color-neutral-800);--zn-input-color-focus:var(--zn-color-neutral-700);--zn-input-color-disabled:var(--zn-color-neutral-800);--zn-input-icon-color:var(--zn-color-neutral-500);--zn-input-icon-color-hover:var(--zn-color-neutral-600);--zn-input-icon-color-focus:var(--zn-color-neutral-600);--zn-input-placeholder-color:var(--zn-text-input-placeholder-color);--zn-input-placeholder-color-disabled:var(--zn-color-neutral-600);--zn-input-spacing-small:var(--zn-spacing-small);--zn-input-spacing-medium:var(--zn-spacing-medium);--zn-input-spacing-large:var(--zn-spacing-large);--zn-input-focus-ring-color:hsl(256 91% 59%/40%);--zn-input-focus-ring-offset:0;--zn-input-label-font-size-small:var(--zn-font-size-small);--zn-input-label-font-size-medium:var(--zn-text-input-label-font-size);--zn-input-label-font-size-large:var(--zn-font-size-large);--zn-input-label-font-weight:var(--zn-text-input-label-font-weight);--zn-input-label-line-height:var(--zn-text-input-label-line-height);--zn-input-label-color:var(--zn-text-input-label-color);--zn-input-help-text-font-size-small:var(--zn-font-size-x-small);--zn-input-help-text-font-size-medium:var(--zn-font-size-small);--zn-input-help-text-font-size-large:var(--zn-font-size-medium);--zn-input-help-text-color:var(--zn-color-neutral-500);--zn-toggle-size-small:0.875rem;--zn-toggle-size-medium:1.125rem;--zn-toggle-size-large:1.375rem;--zn-overlay-background-color:hsl(none 0% 0%/0.7);--zn-panel-background-color:var(--zn-color-neutral-0);--zn-panel-border-color:var(--zn-color-neutral-200);--zn-panel-border-width:1px;--zn-tooltip-border-radius:var(--zn-border-radius);--zn-tooltip-background-color:var(--zn-color-neutral-900);--zn-tooltip-color:var(--zn-color-neutral-0);--zn-tooltip-font-family:var(--zn-font-sans);--zn-tooltip-font-weight:var(--zn-font-weight-normal);--zn-tooltip-font-size:var(--zn-font-size-small);--zn-tooltip-line-height:var(--zn-line-height-dense);--zn-tooltip-padding:var(--zn-spacing-x-small) var(--zn-spacing-small);--zn-tooltip-arrow-size:6px;--zn-z-index-page-nav:500;--zn-z-index-drawer:700;--zn-z-index-dialog:800;--zn-z-index-dropdown:900;--zn-z-index-toast:950;--zn-z-index-tooltip:1000;--zn-z-index-editor-action:1000000;--zn-table-header-background-color:252,251,254}:root[m=dark],[t=dark],.theme-dark{color-scheme:dark;--zn-color-gray-50:hsl(258,15%,23%);--zn-color-gray-100:hsl(262,12%,35%);--zn-color-gray-200:hsl(259,13%,42%);--zn-color-gray-300:hsl(259,13%,54%);--zn-color-gray-400:hsl(258,15%,58%);--zn-color-gray-500:hsl(254,17%,66%);--zn-color-gray-600:hsl(251,17%,76%);--zn-color-gray-700:hsl(260,21%,89%);--zn-color-gray-800:hsl(255,12%,94%);--zn-color-gray-900:hsl(240,13%,95%);--zn-color-gray-950:hsl(255,33%,98%);--zn-color-red-50:hsl(0 56% 23.9%);--zn-color-red-100:hsl(0.6 60% 33.9%);--zn-color-red-200:hsl(0.9 67.2% 37.1%);--zn-color-red-300:hsl(1.1 71.3% 43.7%);--zn-color-red-400:hsl(1 76% 52.5%);--zn-color-red-500:hsl(0.7 89.6% 57.2%);--zn-color-red-600:hsl(0 98.6% 67.9%);--zn-color-red-700:hsl(0 100% 72.3%);--zn-color-red-800:hsl(0 100% 85.6%);--zn-color-red-900:hsl(0 100% 90.3%);--zn-color-red-950:hsl(0 100% 95.9%);--zn-color-orange-50:hsl(15 64.2% 23.3%);--zn-color-orange-100:hsl(15.1 70.9% 31.1%);--zn-color-orange-200:hsl(15.3 75.7% 35.5%);--zn-color-orange-300:hsl(17.1 83.5% 42.7%);--zn-color-orange-400:hsl(20.1 88% 50.8%);--zn-color-orange-500:hsl(24.3 100% 50.5%);--zn-color-orange-600:hsl(27.2 100% 57.7%);--zn-color-orange-700:hsl(31.3 100% 68.7%);--zn-color-orange-800:hsl(33.8 100% 79.3%);--zn-color-orange-900:hsl(38.9 100% 87.7%);--zn-color-orange-950:hsl(46.2 100% 95%);--zn-color-amber-50:hsl(21.9 66.3% 21.1%);--zn-color-amber-100:hsl(21.5 73.6% 29.7%);--zn-color-amber-200:hsl(22.3 77.6% 33.3%);--zn-color-amber-300:hsl(25.4 84.2% 39.6%);--zn-color-amber-400:hsl(31.4 87.4% 46.7%);--zn-color-amber-500:hsl(37 96.6% 48.3%);--zn-color-amber-600:hsl(43.3 100% 53.4%);--zn-color-amber-700:hsl(46.5 100% 61.1%);--zn-color-amber-800:hsl(49.3 100% 73%);--zn-color-amber-900:hsl(51.8 100% 85%);--zn-color-amber-950:hsl(60 100% 94.6%);--zn-color-yellow-50:hsl(34,86%,14%);--zn-color-yellow-100:hsl(36,74%,26%);--zn-color-yellow-200:hsl(40,82%,29%);--zn-color-yellow-300:hsl(43,94%,33%);--zn-color-yellow-400:hsl(48,98%,40%);--zn-color-yellow-500:hsl(53,95%,47%);--zn-color-yellow-600:hsl(51,100%,53%);--zn-color-yellow-700:hsl(54,100%,63%);--zn-color-yellow-800:hsl(61,100%,77%);--zn-color-yellow-900:hsl(63,100%,88%);--zn-color-yellow-950:hsl(63,92%,95%);--zn-color-lime-50:hsl(86.5 54.4% 18%);--zn-color-lime-100:hsl(87.6 56.8% 23.3%);--zn-color-lime-200:hsl(85.8 63.2% 24.5%);--zn-color-lime-300:hsl(86.1 72% 29.4%);--zn-color-lime-400:hsl(85.5 76.8% 37.3%);--zn-color-lime-500:hsl(84.3 74.2% 42.1%);--zn-color-lime-600:hsl(82.8 81.5% 52.6%);--zn-color-lime-700:hsl(82 89.9% 64%);--zn-color-lime-800:hsl(80.9 97.9% 76.6%);--zn-color-lime-900:hsl(77.9 100% 85.8%);--zn-color-lime-950:hsl(69.5 100% 93.8%);--zn-color-green-50:hsl(144.3 53.6% 16%);--zn-color-green-100:hsl(143.2 55.4% 23.5%);--zn-color-green-200:hsl(141.5 58.2% 26.3%);--zn-color-green-300:hsl(140.8 64.2% 31.8%);--zn-color-green-400:hsl(140.3 68% 39.2%);--zn-color-green-500:hsl(141.1 64.9% 43%);--zn-color-green-600:hsl(141.6 72.4% 55.2%);--zn-color-green-700:hsl(141.7 82.7% 70.1%);--zn-color-green-800:hsl(141 90.9% 82.1%);--zn-color-green-900:hsl(142 100% 89.1%);--zn-color-green-950:hsl(144 100% 95.5%);--zn-color-emerald-50:hsl(164.3 75% 13.5%);--zn-color-emerald-100:hsl(163.5 72.6% 20.1%);--zn-color-emerald-200:hsl(162.1 73.7% 22.4%);--zn-color-emerald-300:hsl(161.3 77.3% 27.6%);--zn-color-emerald-400:hsl(159.6 77.1% 34.3%);--zn-color-emerald-500:hsl(159.1 73.5% 37.9%);--zn-color-emerald-600:hsl(157.8 66.8% 48.9%);--zn-color-emerald-700:hsl(156.2 76.1% 63.8%);--zn-color-emerald-800:hsl(152.4 84.4% 77.4%);--zn-color-emerald-900:hsl(149.3 100% 87%);--zn-color-emerald-950:hsl(158.6 100% 94.8%);--zn-color-teal-50:hsl(176.5 51.5% 15.4%);--zn-color-teal-100:hsl(175.9 54.7% 22.3%);--zn-color-teal-200:hsl(175.9 60.7% 23.9%);--zn-color-teal-300:hsl(174.5 67.3% 28.8%);--zn-color-teal-400:hsl(174.4 71.9% 34.9%);--zn-color-teal-500:hsl(173.1 71% 38.3%);--zn-color-teal-600:hsl(172.3 68.2% 48.1%);--zn-color-teal-700:hsl(170.5 81.3% 61.5%);--zn-color-teal-800:hsl(168.4 92.1% 75.2%);--zn-color-teal-900:hsl(168.3 100% 86%);--zn-color-teal-950:hsl(180 100% 95.5%);--zn-color-cyan-50:hsl(197.1 53.8% 20.3%);--zn-color-cyan-100:hsl(196.8 57.3% 27.2%);--zn-color-cyan-200:hsl(195.3 62.7% 29.4%);--zn-color-cyan-300:hsl(193.5 71.3% 34.1%);--zn-color-cyan-400:hsl(192.5 76.8% 40.6%);--zn-color-cyan-500:hsl(189.4 78.6% 42.6%);--zn-color-cyan-600:hsl(188.2 89.1% 51.7%);--zn-color-cyan-700:hsl(187 98.6% 66.2%);--zn-color-cyan-800:hsl(184.9 100% 78.3%);--zn-color-cyan-900:hsl(180 100% 86.6%);--zn-color-cyan-950:hsl(180 100% 94.8%);--zn-color-sky-50:hsl(203 63.8% 20.9%);--zn-color-sky-100:hsl(203.4 70.4% 28%);--zn-color-sky-200:hsl(202.7 75.8% 30.8%);--zn-color-sky-300:hsl(203.1 80.4% 36.1%);--zn-color-sky-400:hsl(202.1 80.5% 44.3%);--zn-color-sky-500:hsl(199.7 85.9% 47.7%);--zn-color-sky-600:hsl(198.7 97.9% 57.2%);--zn-color-sky-700:hsl(198.7 100% 70.5%);--zn-color-sky-800:hsl(198.8 100% 82.5%);--zn-color-sky-900:hsl(198.5 100% 89.9%);--zn-color-sky-950:hsl(186 100% 95.5%);--zn-color-blue-50:hsl(227.1 49.5% 22.7%);--zn-color-blue-100:hsl(225.8 58.9% 36.8%);--zn-color-blue-200:hsl(227.7 64.4% 42.9%);--zn-color-blue-300:hsl(226.1 72.7% 51.2%);--zn-color-blue-400:hsl(222.6 86.5% 56.3%);--zn-color-blue-500:hsl(217.8 95.8% 57.4%);--zn-color-blue-600:hsl(213.3 100% 65%);--zn-color-blue-700:hsl(210.9 100% 74.8%);--zn-color-blue-800:hsl(211.5 100% 83.4%);--zn-color-blue-900:hsl(211 100% 88.9%);--zn-color-blue-950:hsl(201.8 100% 95.3%);--zn-color-indigo-50:hsl(243.5 40.8% 27%);--zn-color-indigo-100:hsl(242.9 45.7% 37.6%);--zn-color-indigo-200:hsl(244.7 52.7% 43.1%);--zn-color-indigo-300:hsl(245.3 60.5% 52.4%);--zn-color-indigo-400:hsl(244.1 79.2% 60.4%);--zn-color-indigo-500:hsl(239.6 88.7% 63.8%);--zn-color-indigo-600:hsl(234.5 96.7% 70.9%);--zn-color-indigo-700:hsl(229.4 100% 78.3%);--zn-color-indigo-800:hsl(227.1 100% 85%);--zn-color-indigo-900:hsl(223.8 100% 89.9%);--zn-color-indigo-950:hsl(220 100% 95.1%);--zn-color-violet-50:hsl(265.1 57.3% 25.4%);--zn-color-violet-100:hsl(263.5 63.8% 39.4%);--zn-color-violet-200:hsl(263.4 66.2% 44.1%);--zn-color-violet-300:hsl(263.7 72.8% 52.4%);--zn-color-violet-400:hsl(262.5 87.3% 59.8%);--zn-color-violet-500:hsl(258.3 95.1% 63.2%);--zn-color-violet-600:hsl(255.1 100% 67.2%);--zn-color-violet-700:hsl(253 100% 81.5%);--zn-color-violet-800:hsl(251.7 100% 87.9%);--zn-color-violet-900:hsl(254.1 100% 91.7%);--zn-color-violet-950:hsl(257.1 100% 96.1%);--zn-color-purple-50:hsl(255,79%,23%);--zn-color-purple-100:hsl(257,73%,35%);--zn-color-purple-200:hsl(257,76%,42%);--zn-color-purple-300:hsl(257,76%,50%);--zn-color-purple-400:hsl(256,91%,59%);--zn-color-purple-500:hsl(252,98%,66%);--zn-color-purple-600:hsl(249,100%,76%);--zn-color-purple-700:hsl(246,100%,85%);--zn-color-purple-800:hsl(244,100%,92%);--zn-color-purple-900:hsl(245,100%,95%);--zn-color-purple-950:hsl(249,100%,97%);--zn-color-fuchsia-50:hsl(297.1 51.2% 18.6%);--zn-color-fuchsia-100:hsl(296.7 59.5% 31.5%);--zn-color-fuchsia-200:hsl(295.4 65.4% 35.1%);--zn-color-fuchsia-300:hsl(294.6 67.4% 42.2%);--zn-color-fuchsia-400:hsl(293.3 68.7% 51.2%);--zn-color-fuchsia-500:hsl(292.1 88.4% 57.7%);--zn-color-fuchsia-600:hsl(292 98.5% 59.5%);--zn-color-fuchsia-700:hsl(292.4 100% 79.5%);--zn-color-fuchsia-800:hsl(292.9 100% 86.8%);--zn-color-fuchsia-900:hsl(300 100% 91.5%);--zn-color-fuchsia-950:hsl(300 100% 96.3%);--zn-color-pink-50:hsl(336.2 59.6% 20%);--zn-color-pink-100:hsl(336.8 63.9% 34%);--zn-color-pink-200:hsl(336.8 68.7% 37.6%);--zn-color-pink-300:hsl(336.1 71.8% 44.5%);--zn-color-pink-400:hsl(333.9 74.9% 53.1%);--zn-color-pink-500:hsl(330.7 86.3% 57.7%);--zn-color-pink-600:hsl(328.6 91.5% 67.2%);--zn-color-pink-700:hsl(327.4 97.6% 78.7%);--zn-color-pink-800:hsl(325.1 100% 86.6%);--zn-color-pink-900:hsl(322.1 100% 91.3%);--zn-color-pink-950:hsl(315 100% 95.9%);--zn-color-rose-50:hsl(342.3 62.9% 21.5%);--zn-color-rose-100:hsl(342.8 68.9% 34.2%);--zn-color-rose-200:hsl(344.8 72.6% 37.3%);--zn-color-rose-300:hsl(346.9 75.8% 43.7%);--zn-color-rose-400:hsl(348.2 80.1% 52.7%);--zn-color-rose-500:hsl(350.4 94.8% 57.5%);--zn-color-rose-600:hsl(351.2 100% 58.1%);--zn-color-rose-700:hsl(352.3 100% 78.1%);--zn-color-rose-800:hsl(352 100% 86.2%);--zn-color-rose-900:hsl(354.5 100% 90.7%);--zn-color-rose-950:hsl(353.3 100% 95.7%);--zn-color-neutral-0:hsl(0,0%,0%);--zn-color-neutral-1000:hsl(0,0%,100%);--zn-color-neutral-50:var(--zn-color-gray-50);--zn-color-neutral-200:var(--zn-color-gray-200);--zn-shadow-x-small:0 1px 4px rgba(0,0,0,0.18);--zn-shadow-small:0 3px 9px rgba(0,0,0,0.24);--zn-shadow-medium:0 6px 18px rgba(0,0,0,0.24);--zn-shadow-large:0 6px 20px rgba(0,0,0,0.24);--zn-shadow-x-large:0 6px 20px rgba(0,0,0,0.34);--zn-input-background-color:rgb(var(--zn-color-body));--zn-input-background-color-hover:rgb(var(--zn-color-body));--zn-input-background-color-focus:hsl(252,15%,13%);--zn-input-background-color-disabled:hsl(280,6%,9%);--zn-input-border-color:rgb(var(--zn-color-border));--zn-input-border-color-hover:rgb(var(--zn-color-border-active));--zn-input-border-color-focus:var(--zn-color-primary-500);--zn-input-border-color-disabled:hsl(280,6%,9%);--zn-focus-ring-color:var(--zn-color-primary-700);--zn-overlay-background-color:hsl(0 0% 0%/43%);--zn-panel-background-color:rgb(var(--zn-panel));--zn-tooltip-background-color:var(--zn-color-neutral-800);--zn-table-header-background-color:27,27,30}html[t=aura],body[t=aura],html.theme-aura,body.theme-aura{color-scheme:light;--zn-color-primary-50:hsl(258,100%,97%);--zn-color-primary-100:hsl(256,95%,94%);--zn-color-primary-200:hsl(255,90%,90%);--zn-color-primary-300:hsl(255,88%,83%);--zn-color-primary-400:hsl(256,85%,75%);--zn-color-primary-500:hsl(255,82%,68%);--zn-color-primary-600:hsl(256,78%,62%);--zn-color-primary-700:hsl(257,70%,54%);--zn-color-primary-800:hsl(258,68%,46%);--zn-color-primary-900:hsl(259,66%,38%);--zn-shadow-x-small:0 1px 4px rgba(60,44,110,0.08);--zn-shadow-small:0 3px 9px rgba(60,44,110,0.12);--zn-shadow-medium:0 6px 18px rgba(60,44,110,0.12);--zn-shadow-large:0 6px 20px rgba(60,44,110,0.14);--zn-shadow-x-large:0 6px 20px rgba(60,44,110,0.22);--zn-input-focus-ring-color:hsl(255 82% 68%/40%)}html[t=aura][m=dark],body[t=aura][m=dark],html.theme-aura.theme-dark,body.theme-aura.theme-dark{color-scheme:dark;--zn-color-primary-50:hsl(257,45%,25%);--zn-color-primary-100:hsl(257,50%,34%);--zn-color-primary-200:hsl(257,55%,41%);--zn-color-primary-300:hsl(257,62%,50%);--zn-color-primary-400:hsl(256,75%,60%);--zn-color-primary-500:hsl(255,88%,68%);--zn-color-primary-600:hsl(253,95%,75%);--zn-color-primary-700:hsl(251,100%,83%);--zn-color-primary-800:hsl(249,100%,90%);--zn-color-primary-900:hsl(250,100%,94%);--zn-shadow-x-small:0 1px 4px rgba(6,10,20,0.30);--zn-shadow-small:0 3px 9px rgba(6,10,20,0.38);--zn-shadow-medium:0 6px 18px rgba(6,10,20,0.38);--zn-shadow-large:0 6px 20px rgba(6,10,20,0.42);--zn-shadow-x-large:0 6px 20px rgba(6,10,20,0.52);--zn-input-focus-ring-color:hsl(255 88% 68%/45%);--zn-color-gray-100:hsl(221.6,41.21%,27.22%);--zn-color-gray-50:hsl(220,33%,20%);--zn-color-gray-200:hsl(220,28%,35%);--zn-input-background-color-focus:rgb(35,47,70);--zn-input-background-color-disabled:rgb(33,44,65);--zn-tooltip-background-color:rgb(24,33,50);--zn-table-header-background-color:46,61,88}:root{--zn-spacing-unit:8px;--zn-spacing-3x-small:2px;--zn-spacing-2x-small:4px;--zn-spacing-x-small:8px;--zn-spacing-small:16px;--zn-spacing-medium:24px;--zn-spacing-large:32px;--zn-spacing-x-large:40px;--zn-spacing-2x-large:48px;--zn-spacing-3x-large:56px;--zn-spacing-4x-large:72px;--zn-spacing-narrow-bar:45px;--zn-spacing-bar:60px;--zn-spacing-tile:80px;--zn-spacing-sidenav:320px;--zn-spacing-small-panel:200px;--zn-spacing-medium-panel:320px;--zn-spacing-panel:360px;--zn-spacing-lside:460px}:root{--zn-text-color:rgb(var(--zn-color-text));--zn-text-color-muted:rgb(var(--zn-color-muted-text));--zn-text-paragraph-font-size:14px;--zn-text-paragraph-line-height:21px;--zn-text-paragraph-spacing:21px;--zn-text-paragraph-font-weight:var(--zn-font-weight-normal);--zn-text-paragraph-color:var(--zn-text-color);--zn-text-paragraph-transform:none;--zn-text-paragraph-letter-spacing:var(--zn-letter-spacing-normal,normal);--zn-text-table-content-font-size:14px;--zn-text-table-content-line-height:16px;--zn-text-table-content-spacing:15px;--zn-text-table-content-font-weight:var(--zn-font-weight-normal);--zn-text-table-content-color:var(--zn-text-color);--zn-text-table-content-transform:none;--zn-text-table-content-letter-spacing:var(--zn-letter-spacing-normal,normal);--zn-text-chat-font-size:16px;--zn-text-chat-line-height:24px;--zn-text-chat-spacing:15px;--zn-text-chat-font-weight:var(--zn-font-weight-normal);--zn-text-chat-color:var(--zn-text-color);--zn-text-chat-transform:none;--zn-text-chat-letter-spacing:var(--zn-letter-spacing-normal,normal);--zn-text-h1-font-size:16px;--zn-text-h1-line-height:16px;--zn-text-h1-spacing:18px;--zn-text-h1-font-weight:var(--zn-font-weight-semibold);--zn-text-h1-color:var(--zn-text-color);--zn-text-h1-transform:none;--zn-text-h1-letter-spacing:var(--zn-letter-spacing-normal,normal);--zn-text-h2-font-size:14px;--zn-text-h2-line-height:16px;--zn-text-h2-spacing:15px;--zn-text-h2-font-weight:var(--zn-font-weight-semibold);--zn-text-h2-color:var(--zn-text-color);--zn-text-h2-transform:none;--zn-text-h2-letter-spacing:var(--zn-letter-spacing-normal,normal);--zn-text-h3-font-size:11px;--zn-text-h3-line-height:16px;--zn-text-h3-spacing:15px;--zn-text-h3-font-weight:var(--zn-font-weight-semibold);--zn-text-h3-color:var(--zn-text-color);--zn-text-h3-transform:none;--zn-text-h3-letter-spacing:var(--zn-letter-spacing-normal,normal);--zn-text-heading-section-font-size:14px;--zn-text-heading-section-line-height:16px;--zn-text-heading-section-spacing:15px;--zn-text-heading-section-font-weight:var(--zn-font-weight-semibold);--zn-text-heading-section-color:var(--zn-text-color);--zn-text-heading-section-transform:none;--zn-text-heading-section-letter-spacing:var(--zn-letter-spacing-normal,normal);--zn-text-subheading-font-size:14px;--zn-text-subheading-line-height:16px;--zn-text-subheading-spacing:15px;--zn-text-subheading-font-weight:var(--zn-font-weight-normal);--zn-text-subheading-color:var(--zn-text-color-muted);--zn-text-subheading-transform:none;--zn-text-subheading-letter-spacing:var(--zn-letter-spacing-normal,normal);--zn-text-subheading-small-font-size:13px;--zn-text-subheading-small-line-height:16px;--zn-text-subheading-small-spacing:15px;--zn-text-subheading-small-font-weight:var(--zn-font-weight-normal);--zn-text-subheading-small-color:var(--zn-text-color-muted);--zn-text-subheading-small-transform:none;--zn-text-subheading-small-letter-spacing:var(--zn-letter-spacing-normal,normal);--zn-text-input-placeholder-font-size:14px;--zn-text-input-placeholder-line-height:24px;--zn-text-input-placeholder-spacing:18px;--zn-text-input-placeholder-font-weight:var(--zn-font-weight-normal);--zn-text-input-placeholder-color:var(--zn-text-color-muted);--zn-text-input-placeholder-transform:none;--zn-text-input-placeholder-letter-spacing:var(--zn-letter-spacing-normal,normal);--zn-text-input-content-font-size:14px;--zn-text-input-content-line-height:24px;--zn-text-input-content-spacing:18px;--zn-text-input-content-font-weight:var(--zn-font-weight-normal);--zn-text-input-content-color:var(--zn-text-color);--zn-text-input-content-transform:none;--zn-text-input-content-letter-spacing:var(--zn-letter-spacing-normal,normal);--zn-text-input-label-font-size:14px;--zn-text-input-label-line-height:16px;--zn-text-input-label-spacing:15px;--zn-text-input-label-font-weight:var(--zn-font-weight-semibold);--zn-text-input-label-color:var(--zn-text-color);--zn-text-input-label-transform:none;--zn-text-input-label-letter-spacing:var(--zn-letter-spacing-normal,normal);--zn-text-chart-minor-font-size:14px;--zn-text-chart-minor-line-height:16px;--zn-text-chart-minor-spacing:15px;--zn-text-chart-minor-font-weight:var(--zn-font-weight-semibold);--zn-text-chart-minor-color:var(--zn-text-color-muted);--zn-text-chart-minor-transform:none;--zn-text-chart-minor-letter-spacing:var(--zn-letter-spacing-normal,normal);--zn-text-chart-major-font-size:21px;--zn-text-chart-major-line-height:24px;--zn-text-chart-major-spacing:18px;--zn-text-chart-major-font-weight:var(--zn-font-weight-normal);--zn-text-chart-major-color:var(--zn-text-color);--zn-text-chart-major-transform:none;--zn-text-chart-major-letter-spacing:var(--zn-letter-spacing-normal,normal);--zn-text-button-label-font-size:13px;--zn-text-button-label-line-height:16px;--zn-text-button-label-spacing:18px;--zn-text-button-label-font-weight:var(--zn-font-weight-semibold);--zn-text-button-label-color:var(--zn-text-color);--zn-text-button-label-transform:uppercase;--zn-text-button-label-letter-spacing:var(--zn-letter-spacing-normal,normal);--zn-text-chip-font-size:10px;--zn-text-chip-line-height:16px;--zn-text-chip-spacing:15px;--zn-text-chip-font-weight:var(--zn-font-weight-semibold);--zn-text-chip-color:var(--zn-text-color);--zn-text-chip-transform:uppercase;--zn-text-chip-letter-spacing:var(--zn-letter-spacing-normal,normal);--zn-text-navbar-link-font-size:16px;--zn-text-navbar-link-line-height:16px;--zn-text-navbar-link-spacing:18px;--zn-text-navbar-link-font-weight:var(--zn-font-weight-semibold);--zn-text-navbar-link-color:var(--zn-text-color-muted);--zn-text-navbar-link-transform:none;--zn-text-navbar-link-letter-spacing:var(--zn-letter-spacing-normal,normal);--zn-text-tab-link-font-size:14px;--zn-text-tab-link-line-height:16px;--zn-text-tab-link-spacing:15px;--zn-text-tab-link-font-weight:var(--zn-font-weight-semibold);--zn-text-tab-link-color:var(--zn-text-color-muted);--zn-text-tab-link-transform:none;--zn-text-tab-link-letter-spacing:var(--zn-letter-spacing-normal,normal);--zn-text-tab-link-active-font-size:14px;--zn-text-tab-link-active-line-height:16px;--zn-text-tab-link-active-spacing:15px;--zn-text-tab-link-active-font-weight:var(--zn-font-weight-semibold);--zn-text-tab-link-active-color:var(--zn-text-color);--zn-text-tab-link-active-transform:none;--zn-text-tab-link-active-letter-spacing:var(--zn-letter-spacing-normal,normal);--zn-text-menu-link-font-size:14px;--zn-text-menu-link-line-height:16px;--zn-text-menu-link-spacing:15px;--zn-text-menu-link-font-weight:var(--zn-font-weight-normal);--zn-text-menu-link-color:var(--zn-text-color-muted);--zn-text-menu-link-transform:none;--zn-text-menu-link-letter-spacing:var(--zn-letter-spacing-normal,normal);--zn-text-notification-font-size:9px;--zn-text-notification-line-height:11px;--zn-text-notification-spacing:0;--zn-text-notification-font-weight:var(--zn-font-weight-semibold);--zn-text-notification-color:#fff;--zn-text-notification-transform:none;--zn-text-notification-letter-spacing:var(--zn-letter-spacing-normal,normal)}@supports (scrollbar-gutter:stable){.zn-scroll-lock{scrollbar-gutter:stable !important;overflow:hidden !important}}@supports not (scrollbar-gutter:stable){.zn-scroll-lock{padding-right:var(--zn-scroll-lock-size) !important;overflow:hidden !important}}.zn-toast-stack{position:fixed;bottom:0;inset-inline-end:0;z-index:var(--zn-z-index-toast);width:28rem;max-width:100%;max-height:100%;overflow:auto}.zn-toast-stack zn-alert{margin:var(--zn-spacing-medium)}.zn-toast-stack zn-alert::part(base){box-shadow:var(--zn-shadow-large)}@media screen and (min-width:768px){.zn-toast-stack zn-alert{margin:var(--zn-spacing-large)}}.zn-gutter{margin:0 var(--zn-gutter)}.zn-gap{gap:var(--zn-gap,0);padding:var(--zn-base-gap,0);display:flex;flex-wrap:wrap}.zn-gap-in{gap:var(--zn-gap,0);display:flex;flex-wrap:wrap}.zn-gap-in-sm{--zn-gap:var(--zn-spacing-small,0);gap:var(--zn-gap,0)}.zn-gap-md{gap:24px}.zn-gap-inner{gap:var(--zn-gap,0)}.zn-gap-ism{gap:var(--zn-gap,0);--zn-gap:16px}.zn-gap-ixs{gap:var(--zn-gap,0);--zn-gap:8px}.zn-max-hide{max-height:100%;overflow:hidden}.zn-hide-empty:empty{display:none}.zn-nopoint{pointer-events:none}.form-spacing{display:grid;grid-template-columns:1fr;gap:var(--zn-spacing-medium) var(--zn-spacing-small)}@media (min-width:768px){.form-spacing{grid-template-columns:repeat(6,1fr)}}.form-spacing~.form-spacing{margin-top:var(--zn-base-gap)}.form-actions{display:flex;justify-content:flex-end;align-items:center;gap:var(--zn-spacing-small)}zn-form-group~zn-form-group{margin-top:var(--zn-base-gap);padding-top:var(--zn-base-gap);border-top:1px solid rgb(var(--zn-border-color))}.form-spacing>*{grid-column:span 6/span 6}@media (min-width:768px){.form-spacing>*[span="1"]{grid-column:span 1/span 1}}@media (min-width:768px){.form-spacing>*[span="2"]{grid-column:span 2/span 2}}@media (min-width:768px){.form-spacing>*[span="3"]{grid-column:span 3/span 3}}@media (min-width:768px){.form-spacing>*[span="4"]{grid-column:span 4/span 4}}@media (min-width:768px){.form-spacing>*[span="5"]{grid-column:span 5/span 5}}@keyframes rotate-gradient{from{--rotate:0deg}to{--rotate:360deg}}:root{--zn-base-px:8px;--zn-base-gap:calc(var(--zn-base-px) * 2);--zn-gutter:2px;--zn-default-margin:0 auto 0 0;--zn-icon-size:20px;--zn-button-gutter:2px;--zn-font-family-sans:'Inter',sans-serif;--zn-font-family-serif:'Roboto Slab',serif;--zn-font-family-mono:'Roboto Mono',monospace}:root,[t=light],.theme-light{--zn-backdrop-color:rgba(0,0,0,0.5);--zn-color-text:33,33,33;--zn-color-muted-text:125,119,146;--zn-color-base:255,255,255;--zn-color-body:248,247,252;--zn-color-navigation:var(--zn-color-base);--zn-color-navigation-hightlight:248,249,252;--zn-color-border:219,217,236;--zn-color-border-active:209,207,226;--zn-color-tab:236,235,249;--zn-color-panel:255,255,255;--zn-color-primary:105,54,245;--zn-color-info:53,104,195;--zn-color-success:98,177,121;--zn-color-warning:241,168,80;--zn-color-error:236,68,91;--zn-color-disabled:181,181,181}:root[m=dark],[t=dark],.theme-dark{--zn-backdrop-color:rgba(0,0,0,0.85);--zn-color-text:215,215,215;--zn-color-muted-text:145,145,145;--zn-color-base:0,0,0;--zn-color-body:23,23,23;--zn-color-navigation:var(--zn-color-base);--zn-color-navigation-hightlight:10,10,10;--zn-color-border:38,38,38;--zn-color-border-active:80,80,80;--zn-color-tab:5,5,5;--zn-color-panel:30,30,30;--zn-color-primary:105,54,245;--zn-color-info:53,104,195;--zn-color-success:98,177,121;--zn-color-warning:241,168,80;--zn-color-error:236,68,91;--zn-color-disabled:181,181,181}@media (min-width:1200px){:root{--zn-base-gap:calc(var(--zn-base-px) * 3)}}@media (min-width:2500px){:root{--zn-default-margin:0 auto}}:root{--zn-primary:var(--zn-color-primary);--zn-color-on-primary:255,255,255;--zn-color-on-info:255,255,255;--zn-color-on-success:255,255,255;--zn-color-on-warning:255,255,255;--zn-color-on-error:255,255,255;--zn-color-on-accent:255,255,255;--zn-red:237,84,109;--zn-blue:100,117,242;--zn-green:43,192,145;--zn-orange:255,136,0;--zn-yellow:255,193,7;--zn-indigo:63,81,181;--zn-violet:156,39,176;--zn-pink:255,108,156;--zn-grey:158,158,158;--zn-accent:71,214,214;--zn-size-bar:60px;--zn-size-tile:80px;--zn-size-sidenav:320px;--zn-size-spanel:170px;--zn-size-mpanel:320px;--zn-size-panel:360px;--zn-size-lside:460px;--zn-bg-opacity:1;--zn-text-opacity:1;--base:255,255,255;--inverse-base:0,0,0}.zn-mono{font-family:var(--zn-font-family-mono),monospace}.zn-muted{color:var(--zn-color-muted-text)}.zn-size-xs{font-size:var(--zn-font-size-x-small)}.zn-size-s{font-size:var(--zn-font-size-small)}.zn-size-l{font-size:var(--zn-font-size-large)}.zn-size-xl{font-size:var(--zn-font-size-x-large)}:root,[t=light],.theme-light,:root[m=dark],[t=dark],.theme-dark{--zn-body:var(--zn-color-body);--zn-text:var(--zn-color-text);--zn-text-heading:var(--zn-color-text);--zn-text-page-title:var(--zn-color-text);--zn-text-panel-title:var(--zn-color-text);--zn-panel:var(--zn-color-panel);--zn-border-color:var(--zn-color-border);--zn-input-bg:var(--zn-color-body)}:root,[t=light],.theme-light{--zn-panel-opacity:1;--zn-shadow:236,235,249;--zn-panel-secondary:246 246 246;--zn-panel-highlight:248,249,252;--zn-panel-highlight-opacity:1;--zn-input-bg-accent:237,235,245;--zn-bright-bg:255,255,255;--zn-light-text:123,112,151;--zn-dark-text:56,39,104;--zn-purple-text:104,54,245}:root .zn-primary,[t=light] .zn-primary,.theme-light .zn-primary{color:rgb(var(--zn-color-primary))}:root[m=dark],[t=dark],.theme-dark{--zn-shadow:10,10,10;--zn-panel-secondary:27,27,30;--zn-panel-opacity:1;--zn-panel-highlight:25,27,32;--zn-panel-highlight-opacity:0.1;--zn-input-bg-accent:72,84,102;--zn-bright-bg:225,225,225;--zn-light-text:173,163,192;--zn-dark-text:201,201,201;--zn-purple-text:129,140,249;--zn-accent:15,165,234;--zn-primary:137,103,239;--base:0,0,0;--inverse-base:255,255,255}:root[m=dark] .zn-primary,[t=dark] .zn-primary,.theme-dark .zn-primary{color:#8967ef !important}.ml-px{margin-left:2px}.mr-px{margin-right:2px}.mt-px{margin-top:2px}.mb-px{margin-bottom:2px}.mx-px{margin-left:2px;margin-right:2px}.my-px{margin-top:2px;margin-bottom:2px}.m-px{margin:2px}.ml-xxs{margin-left:4px}.mr-xxs{margin-right:4px}.mt-xxs{margin-top:4px}.mb-xxs{margin-bottom:4px}.mx-xxs{margin-left:4px;margin-right:4px}.my-xxs{margin-top:4px;margin-bottom:4px}.m-xxs{margin:4px}.ml-xs{margin-left:8px}.mr-xs{margin-right:8px}.mt-xs{margin-top:8px}.mb-xs{margin-bottom:8px}.mx-xs{margin-left:8px;margin-right:8px}.my-xs{margin-top:8px;margin-bottom:8px}.m-xs{margin:8px}.ml-sm{margin-left:16px}.mr-sm{margin-right:16px}.mt-sm{margin-top:16px}.mb-sm{margin-bottom:16px}.mx-sm{margin-left:16px;margin-right:16px}.my-sm{margin-top:16px;margin-bottom:16px}.m-sm{margin:16px}.ml-md{margin-left:24px}.mr-md{margin-right:24px}.mt-md{margin-top:24px}.mb-md{margin-bottom:24px}.mx-md{margin-left:24px;margin-right:24px}.my-md{margin-top:24px;margin-bottom:24px}.m-md{margin:24px}.ml-lg{margin-left:32px}.mr-lg{margin-right:32px}.mt-lg{margin-top:32px}.mb-lg{margin-bottom:32px}.mx-lg{margin-left:32px;margin-right:32px}.my-lg{margin-top:32px;margin-bottom:32px}.m-lg{margin:32px}.ml-xl{margin-left:40px}.mr-xl{margin-right:40px}.mt-xl{margin-top:40px}.mb-xl{margin-bottom:40px}.mx-xl{margin-left:40px;margin-right:40px}.my-xl{margin-top:40px;margin-bottom:40px}.m-xl{margin:40px}.zn-red{color:rgb(var(--zn-red))}.zn-blue{color:rgb(var(--zn-blue))}.zn-green{color:rgb(var(--zn-green))}.zn-orange{color:rgb(var(--zn-orange))}.zn-yellow{color:rgb(var(--zn-yellow))}.zn-indigo{color:rgb(var(--zn-indigo))}.zn-violet{color:rgb(var(--zn-violet))}.zn-pink{color:rgb(var(--zn-pink))}.zn-grey{color:rgb(var(--zn-grey))}.zn-primary{color:rgb(var(--zn-primary))}.zn-accent{color:rgb(var(--zn-accent))}.zn-info{color:rgb(var(--zn-color-info))}.zn-warning{color:rgb(var(--zn-color-warning))}.zn-error{color:rgb(var(--zn-color-error))}.zn-success{color:rgb(var(--zn-color-success))}ul.gap li{margin:5px 0}ul.circle,ul.decimal,ul.disc,ul.square{padding:5px 0 5px 15px}ul.circle{list-style-type:circle}ul.decimal{list-style-type:decimal}ul.disc{list-style-type:disc}ul.square{list-style-type:square}html[t=aura],body[t=aura],html.theme-aura,body.theme-aura{--zn-backdrop-color:rgba(30,27,60,0.45);--zn-color-text:42,32,89;--zn-color-muted-text:128,118,158;--zn-color-base:255,255,255;--zn-color-body:250,248,255;--zn-color-navigation:var(--zn-color-base);--zn-color-navigation-hightlight:245,242,255;--zn-color-border:228,222,246;--zn-color-border-active:214,206,240;--zn-color-tab:240,235,252;--zn-color-panel:255,255,255;--zn-color-primary:139,110,245;--zn-color-info:53,104,195;--zn-color-success:98,177,121;--zn-color-warning:241,168,80;--zn-color-error:236,68,91;--zn-color-disabled:181,181,181;--zn-panel-opacity:1;--zn-shadow:232,226,250;--zn-panel-secondary:248 246 255;--zn-panel-highlight:245,242,255;--zn-panel-highlight-opacity:1;--zn-input-bg-accent:240,236,252;--zn-bright-bg:255,255,255;--zn-light-text:130,120,160;--zn-dark-text:60,44,110;--zn-purple-text:124,92,246;--zn-accent:200,130,230;--navbar-page-inactive-tab-background:rgba(255,255,255,0.5);--navbar-page-inactive-tab-filter:none;--zn-page-header-aurora:linear-gradient(225deg,rgba(233,227,255,1) 0%,rgba(214,246,245,1) 40%,rgba(233,227,255,1) 100%),linear-gradient(180deg,rgba(129,153,217,0) 0%,rgba(0,0,0,1) 100%);--zn-page-header-wave-opacity:0.04}html[t=aura] .zn-primary,body[t=aura] .zn-primary,html.theme-aura .zn-primary,body.theme-aura .zn-primary{color:rgb(var(--zn-color-primary))}html[t=aura][m=dark],body[t=aura][m=dark],html.theme-aura.theme-dark,body.theme-aura.theme-dark{--zn-backdrop-color:rgba(8,12,24,0.65);--zn-color-text:226,228,242;--zn-color-muted-text:154,163,190;--zn-color-base:30,41,61;--zn-color-body:19,29,45;--zn-color-navigation:var(--zn-color-base);--zn-color-navigation-hightlight:35,47,70;--zn-color-border:64,82,113;--zn-color-border-active:92,111,145;--zn-color-tab:33,45,66;--zn-color-panel:34,53,85;--zn-color-primary:163,140,250;--zn-color-info:96,148,232;--zn-color-success:116,199,140;--zn-color-warning:245,183,105;--zn-color-error:244,106,126;--zn-color-disabled:118,130,152;--zn-panel-opacity:1;--zn-shadow:12,18,32;--zn-panel-secondary:46 61 88;--zn-panel-highlight:66,86,120;--zn-panel-highlight-opacity:1;--zn-input-bg-accent:34,46,68;--zn-bright-bg:52,69,99;--zn-light-text:168,176,201;--zn-dark-text:226,228,242;--zn-purple-text:178,158,252;--zn-accent:96,196,220;--zn-primary:126,238,255;--zn-color-on-primary:19,29,45;--base:0,0,0;--inverse-base:255,255,255;--navbar-page-inactive-tab-background:rgba(0,0,0,0.30);--navbar-page-inactive-tab-filter:none;--zn-page-canvas:31,45,70;--zn-page-header-aurora:linear-gradient(225deg,rgb(76 42 202) 0%,rgb(0 100 150) 40%,rgb(56 40 115) 100%),linear-gradient(180deg,rgb(31 50 103/0%) 0%,rgb(0,0,0) 100%);--zn-page-header-wave-opacity:0.10}html[t=aura][m=dark] .zn-primary,body[t=aura][m=dark] .zn-primary,html.theme-aura.theme-dark .zn-primary,body.theme-aura.theme-dark .zn-primary{color:rgb(var(--zn-color-primary)) !important}: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}.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}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}.air-datepicker-cell.-year-.-other-decade-,.air-datepicker-cell.-day-.-other-month-{color:var(--adp-color-other-month)}.air-datepicker-cell.-year-.-other-decade-:hover,.air-datepicker-cell.-day-.-other-month-:hover{color:var(--adp-color-other-month-hover)}.-disabled-.-focus-.air-datepicker-cell.-year-.-other-decade-,.-disabled-.-focus-.air-datepicker-cell.-day-.-other-month-{color:var(--adp-color-other-month)}.-selected-.air-datepicker-cell.-year-.-other-decade-,.-selected-.air-datepicker-cell.-day-.-other-month-{color:#fff;background:var(--adp-background-color-selected-other-month)}.-selected-.-focus-.air-datepicker-cell.-year-.-other-decade-,.-selected-.-focus-.air-datepicker-cell.-day-.-other-month-{background:var(--adp-background-color-selected-other-month-focused)}.-in-range-.air-datepicker-cell.-year-.-other-decade-,.-in-range-.air-datepicker-cell.-day-.-other-month-{background-color:var(--adp-background-color-in-range);color:var(--adp-color)}.-in-range-.-focus-.air-datepicker-cell.-year-.-other-decade-,.-in-range-.-focus-.air-datepicker-cell.-day-.-other-month-{background-color:var(--adp-background-color-in-range-focused)}.air-datepicker-cell.-year-.-other-decade-:empty,.air-datepicker-cell.-day-.-other-month-:empty{background:none;border:none}.air-datepicker-cell{border-radius:var(--adp-cell-border-radius);box-sizing:border-box;cursor:pointer;display:flex;position:relative;align-items:center;justify-content:center;z-index:1}.air-datepicker-cell.-focus-{background:var(--adp-cell-background-color-hover)}.air-datepicker-cell.-current-{color:var(--adp-color-current-date)}.air-datepicker-cell.-current-.-focus-{color:var(--adp-color)}.air-datepicker-cell.-current-.-in-range-{color:var(--adp-color-current-date)}.air-datepicker-cell.-disabled-{cursor:default;color:var(--adp-color-disabled)}.air-datepicker-cell.-disabled-.-focus-{color:var(--adp-color-disabled)}.air-datepicker-cell.-disabled-.-in-range-{color:var(--adp-color-disabled-in-range)}.air-datepicker-cell.-disabled-.-current-.-focus-{color:var(--adp-color-disabled)}.air-datepicker-cell.-in-range-{background:var(--adp-cell-background-color-in-range);border-radius:0}.air-datepicker-cell.-in-range-:hover,.air-datepicker-cell.-in-range-.-focus-{background:var(--adp-cell-background-color-in-range-hover)}.air-datepicker-cell.-range-from-{border:1px solid var(--adp-cell-border-color-in-range);background-color:var(--adp-cell-background-color-in-range);border-radius:var(--adp-cell-border-radius) 0 0 var(--adp-cell-border-radius)}.air-datepicker-cell.-range-to-{border:1px solid var(--adp-cell-border-color-in-range);background-color:var(--adp-cell-background-color-in-range);border-radius:0 var(--adp-cell-border-radius) var(--adp-cell-border-radius) 0}.air-datepicker-cell.-range-to-.-range-from-{border-radius:var(--adp-cell-border-radius)}.air-datepicker-cell.-selected-{color:#fff;border:none;background:var(--adp-cell-background-color-selected)}.air-datepicker-cell.-selected-.-current-{color:#fff;background:var(--adp-cell-background-color-selected)}.air-datepicker-cell.-selected-.-focus-{background:var(--adp-cell-background-color-selected-hover)}.air-datepicker-body{transition:all var(--adp-transition-duration) var(--adp-transition-ease)}.air-datepicker-body.-hidden-{display:none}.air-datepicker-body--day-names{display:grid;grid-template-columns:repeat(7,var(--adp-day-cell-width));margin:8px 0 3px}.air-datepicker-body--day-name{color:var(--adp-day-name-color);display:flex;align-items:center;justify-content:center;flex:1;text-align:center;text-transform:uppercase;font-size:0.8em}.air-datepicker-body--day-name.-clickable-{cursor:pointer}.air-datepicker-body--day-name.-clickable-:hover{color:var(--adp-day-name-color-hover)}.air-datepicker-body--cells{display:grid}.air-datepicker-body--cells.-days-{grid-template-columns:repeat(7,var(--adp-day-cell-width));grid-auto-rows:var(--adp-day-cell-height)}.air-datepicker-body--cells.-months-{grid-template-columns:repeat(3,1fr);grid-auto-rows:var(--adp-month-cell-height)}.air-datepicker-body--cells.-years-{grid-template-columns:repeat(4,1fr);grid-auto-rows:var(--adp-year-cell-height)}.air-datepicker-nav{display:flex;justify-content:space-between;border-bottom:1px solid var(--adp-border-color-inner);min-height:var(--adp-nav-height);padding:var(--adp-padding);box-sizing:content-box}.-only-timepicker- .air-datepicker-nav{display:none}.air-datepicker-nav--title,.air-datepicker-nav--action{display:flex;cursor:pointer;align-items:center;justify-content:center}.air-datepicker-nav--action{width:var(--adp-nav-action-size);border-radius:var(--adp-border-radius);-webkit-user-select:none;-moz-user-select:none;user-select:none}.air-datepicker-nav--action:hover{background:var(--adp-background-color-hover)}.air-datepicker-nav--action:active{background:var(--adp-background-color-active)}.air-datepicker-nav--action.-disabled-{visibility:hidden}.air-datepicker-nav--action svg{width:32px;height:32px}.air-datepicker-nav--action path{fill:none;stroke:var(--adp-nav-arrow-color);stroke-width:2px}.air-datepicker-nav--title{border-radius:var(--adp-border-radius);padding:0 8px}.air-datepicker-nav--title i{font-style:normal;color:var(--adp-nav-color-secondary);margin-left:0.3em}.air-datepicker-nav--title:hover{background:var(--adp-background-color-hover)}.air-datepicker-nav--title:active{background:var(--adp-background-color-active)}.air-datepicker-nav--title.-disabled-{cursor:default;background:none}.air-datepicker-buttons{display:grid;grid-auto-columns:1fr;grid-auto-flow:column}.air-datepicker-button{display:inline-flex;color:var(--adp-btn-color);border-radius:var(--adp-btn-border-radius);cursor:pointer;height:var(--adp-btn-height);border:none;background:rgba(255,255,255,0)}.air-datepicker-button:hover{color:var(--adp-btn-color-hover);background:var(--adp-btn-background-color-hover)}.air-datepicker-button:focus{color:var(--adp-btn-color-hover);background:var(--adp-btn-background-color-hover);outline:none}.air-datepicker-button:active{background:var(--adp-btn-background-color-active)}.air-datepicker-button span{outline:none;display:flex;align-items:center;justify-content:center;width:100%;height:100%}.air-datepicker-time{display:grid;grid-template-columns:max-content 1fr;grid-column-gap:12px;align-items:center;position:relative;padding:0 var(--adp-time-padding-inner)}.-only-timepicker- .air-datepicker-time{border-top:none}.air-datepicker-time--current{display:flex;align-items:center;flex:1;font-size:14px;text-align:center}.air-datepicker-time--current-colon{margin:0 2px 3px;line-height:1}.air-datepicker-time--current-hours,.air-datepicker-time--current-minutes{line-height:1;font-size:19px;font-family:"Century Gothic",CenturyGothic,AppleGothic,sans-serif;position:relative;z-index:1}.air-datepicker-time--current-hours:after,.air-datepicker-time--current-minutes:after{content:"";background:var(--adp-background-color-hover);border-radius:var(--adp-border-radius);position:absolute;left:-2px;top:-3px;right:-2px;bottom:-2px;z-index:-1;opacity:0}.air-datepicker-time--current-hours.-focus-:after,.air-datepicker-time--current-minutes.-focus-:after{opacity:1}.air-datepicker-time--current-ampm{text-transform:uppercase;align-self:flex-end;color:var(--adp-time-day-period-color);margin-left:6px;font-size:11px;margin-bottom:1px}.air-datepicker-time--row{display:flex;align-items:center;font-size:11px;height:17px;background:linear-gradient(to right,var(--adp-time-track-color),var(--adp-time-track-color)) left 50%/100% var(--adp-time-track-height) no-repeat}.air-datepicker-time--row:first-child{margin-bottom:4px}.air-datepicker-time--row input[type=range]{background:none;cursor:pointer;flex:1;height:100%;width:100%;padding:0;margin:0;-webkit-appearance:none}.air-datepicker-time--row input[type=range]::-webkit-slider-thumb{-webkit-appearance:none}.air-datepicker-time--row input[type=range]::-ms-tooltip{display:none}.air-datepicker-time--row input[type=range]:hover::-webkit-slider-thumb{border-color:var(--adp-time-track-color-hover)}.air-datepicker-time--row input[type=range]:hover::-moz-range-thumb{border-color:var(--adp-time-track-color-hover)}.air-datepicker-time--row input[type=range]:hover::-ms-thumb{border-color:var(--adp-time-track-color-hover)}.air-datepicker-time--row input[type=range]:focus{outline:none}.air-datepicker-time--row input[type=range]:focus::-webkit-slider-thumb{background:var(--adp-cell-background-color-selected);border-color:var(--adp-cell-background-color-selected)}.air-datepicker-time--row input[type=range]:focus::-moz-range-thumb{background:var(--adp-cell-background-color-selected);border-color:var(--adp-cell-background-color-selected)}.air-datepicker-time--row input[type=range]:focus::-ms-thumb{background:var(--adp-cell-background-color-selected);border-color:var(--adp-cell-background-color-selected)}.air-datepicker-time--row input[type=range]::-webkit-slider-thumb{box-sizing:border-box;height:12px;width:12px;border-radius:3px;border:1px solid var(--adp-time-track-color);background:#fff;cursor:pointer;-webkit-transition:background var(--adp-transition-duration);transition:background var(--adp-transition-duration)}.air-datepicker-time--row input[type=range]::-moz-range-thumb{box-sizing:border-box;height:12px;width:12px;border-radius:3px;border:1px solid var(--adp-time-track-color);background:#fff;cursor:pointer;-moz-transition:background var(--adp-transition-duration);transition:background var(--adp-transition-duration)}.air-datepicker-time--row input[type=range]::-ms-thumb{box-sizing:border-box;height:12px;width:12px;border-radius:3px;border:1px solid var(--adp-time-track-color);background:#fff;cursor:pointer;-ms-transition:background var(--adp-transition-duration);transition:background var(--adp-transition-duration)}.air-datepicker-time--row input[type=range]::-webkit-slider-thumb{margin-top:calc(var(--adp-time-thumb-size) / 2 * -1)}.air-datepicker-time--row input[type=range]::-webkit-slider-runnable-track{border:none;height:var(--adp-time-track-height);cursor:pointer;color:rgba(0,0,0,0);background:rgba(0,0,0,0)}.air-datepicker-time--row input[type=range]::-moz-range-track{border:none;height:var(--adp-time-track-height);cursor:pointer;color:rgba(0,0,0,0);background:rgba(0,0,0,0)}.air-datepicker-time--row input[type=range]::-ms-track{border:none;height:var(--adp-time-track-height);cursor:pointer;color:rgba(0,0,0,0);background:rgba(0,0,0,0)}.air-datepicker-time--row input[type=range]::-ms-fill-lower{background:rgba(0,0,0,0)}.air-datepicker-time--row input[type=range]::-ms-fill-upper{background:rgba(0,0,0,0)}.air-datepicker{--adp-font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";--adp-font-size:14px;--adp-width:246px;--adp-z-index:100;--adp-padding:4px;--adp-grid-areas:"nav" "body" "timepicker" "buttons";--adp-transition-duration:.3s;--adp-transition-ease:ease-out;--adp-transition-offset:8px;--adp-background-color:#fff;--adp-background-color-hover:#f0f0f0;--adp-background-color-active:#eaeaea;--adp-background-color-in-range:rgba(92,196,239,.1);--adp-background-color-in-range-focused:rgba(92,196,239,.2);--adp-background-color-selected-other-month-focused:#8ad5f4;--adp-background-color-selected-other-month:#a2ddf6;--adp-color:#4a4a4a;--adp-color-secondary:#9c9c9c;--adp-accent-color:#4eb5e6;--adp-color-current-date:var(--adp-accent-color);--adp-color-other-month:#dedede;--adp-color-disabled:#aeaeae;--adp-color-disabled-in-range:#939393;--adp-color-other-month-hover:#c5c5c5;--adp-border-color:#dbdbdb;--adp-border-color-inner:#efefef;--adp-border-radius:4px;--adp-border-color-inline:#d7d7d7;--adp-nav-height:32px;--adp-nav-arrow-color:var(--adp-color-secondary);--adp-nav-action-size:32px;--adp-nav-color-secondary:var(--adp-color-secondary);--adp-day-name-color:#ff9a19;--adp-day-name-color-hover:#8ad5f4;--adp-day-cell-width:1fr;--adp-day-cell-height:32px;--adp-month-cell-height:42px;--adp-year-cell-height:56px;--adp-pointer-size:10px;--adp-poiner-border-radius:2px;--adp-pointer-offset:14px;--adp-cell-border-radius:4px;--adp-cell-background-color-hover:var(--adp-background-color-hover);--adp-cell-background-color-selected:#5cc4ef;--adp-cell-background-color-selected-hover:#45bced;--adp-cell-background-color-in-range:rgba(92,196,239,0.1);--adp-cell-background-color-in-range-hover:rgba(92,196,239,0.2);--adp-cell-border-color-in-range:var(--adp-cell-background-color-selected);--adp-btn-height:32px;--adp-btn-color:var(--adp-accent-color);--adp-btn-color-hover:var(--adp-color);--adp-btn-border-radius:var(--adp-border-radius);--adp-btn-background-color-hover:var(--adp-background-color-hover);--adp-btn-background-color-active:var(--adp-background-color-active);--adp-time-track-height:1px;--adp-time-track-color:#dedede;--adp-time-track-color-hover:#b1b1b1;--adp-time-thumb-size:12px;--adp-time-padding-inner:10px;--adp-time-day-period-color:var(--adp-color-secondary);--adp-mobile-font-size:16px;--adp-mobile-nav-height:40px;--adp-mobile-width:320px;--adp-mobile-day-cell-height:38px;--adp-mobile-month-cell-height:48px;--adp-mobile-year-cell-height:64px}.air-datepicker-overlay{--adp-overlay-background-color:rgba(0,0,0,.3);--adp-overlay-transition-duration:.3s;--adp-overlay-transition-ease:ease-out;--adp-overlay-z-index:99}.air-datepicker{background:var(--adp-background-color);border:1px solid var(--adp-border-color);box-shadow:0 4px 12px rgba(0,0,0,0.15);border-radius:var(--adp-border-radius);box-sizing:content-box;display:grid;grid-template-columns:1fr;grid-template-rows:repeat(4,max-content);grid-template-areas:var(--adp-grid-areas);font-family:var(--adp-font-family),sans-serif;font-size:var(--adp-font-size);color:var(--adp-color);width:var(--adp-width);position:absolute;transition:opacity var(--adp-transition-duration) var(--adp-transition-ease),transform var(--adp-transition-duration) var(--adp-transition-ease);z-index:var(--adp-z-index)}.air-datepicker:not(.-custom-position-){opacity:0}.air-datepicker.-from-top-{transform:translateY(calc(var(--adp-transition-offset) * -1))}.air-datepicker.-from-right-{transform:translateX(var(--adp-transition-offset))}.air-datepicker.-from-bottom-{transform:translateY(var(--adp-transition-offset))}.air-datepicker.-from-left-{transform:translateX(calc(var(--adp-transition-offset) * -1))}.air-datepicker.-active-:not(.-custom-position-){transform:translate(0,0);opacity:1}.air-datepicker.-active-.-custom-position-{transition:none}.air-datepicker.-inline-{border-color:var(--adp-border-color-inline);box-shadow:none;position:static;left:auto;right:auto;opacity:1;transform:none}.air-datepicker.-inline- .air-datepicker--pointer{display:none}.air-datepicker.-is-mobile-{--adp-font-size:var(--adp-mobile-font-size);--adp-day-cell-height:var(--adp-mobile-day-cell-height);--adp-month-cell-height:var(--adp-mobile-month-cell-height);--adp-year-cell-height:var(--adp-mobile-year-cell-height);--adp-nav-height:var(--adp-mobile-nav-height);--adp-nav-action-size:var(--adp-mobile-nav-height);position:fixed;width:var(--adp-mobile-width);border:none}.air-datepicker.-is-mobile- *{-webkit-tap-highlight-color:rgba(0,0,0,0)}.air-datepicker.-is-mobile- .air-datepicker--pointer{display:none}.air-datepicker.-is-mobile-:not(.-custom-position-){transform:translate(-50%,calc(-50% + var(--adp-transition-offset)))}.air-datepicker.-is-mobile-.-active-:not(.-custom-position-){transform:translate(-50%,-50%)}.air-datepicker.-custom-position-{transition:none}.air-datepicker-global-container{position:absolute;left:0;top:0}.air-datepicker--pointer{--pointer-half-size:calc(var(--adp-pointer-size) / 2);position:absolute;width:var(--adp-pointer-size);height:var(--adp-pointer-size);z-index:-1}.air-datepicker--pointer:after{content:"";position:absolute;background:#fff;border-top:1px solid var(--adp-border-color-inline);border-right:1px solid var(--adp-border-color-inline);border-top-right-radius:var(--adp-poiner-border-radius);width:var(--adp-pointer-size);height:var(--adp-pointer-size);box-sizing:border-box}.-top-left- .air-datepicker--pointer,.-top-center- .air-datepicker--pointer,.-top-right- .air-datepicker--pointer,[data-popper-placement^=top] .air-datepicker--pointer{top:calc(100% - var(--pointer-half-size) + 1px)}.-top-left- .air-datepicker--pointer:after,.-top-center- .air-datepicker--pointer:after,.-top-right- .air-datepicker--pointer:after,[data-popper-placement^=top] .air-datepicker--pointer:after{transform:rotate(135deg)}.-right-top- .air-datepicker--pointer,.-right-center- .air-datepicker--pointer,.-right-bottom- .air-datepicker--pointer,[data-popper-placement^=right] .air-datepicker--pointer{right:calc(100% - var(--pointer-half-size) + 1px)}.-right-top- .air-datepicker--pointer:after,.-right-center- .air-datepicker--pointer:after,.-right-bottom- .air-datepicker--pointer:after,[data-popper-placement^=right] .air-datepicker--pointer:after{transform:rotate(225deg)}.-bottom-left- .air-datepicker--pointer,.-bottom-center- .air-datepicker--pointer,.-bottom-right- .air-datepicker--pointer,[data-popper-placement^=bottom] .air-datepicker--pointer{bottom:calc(100% - var(--pointer-half-size) + 1px)}.-bottom-left- .air-datepicker--pointer:after,.-bottom-center- .air-datepicker--pointer:after,.-bottom-right- .air-datepicker--pointer:after,[data-popper-placement^=bottom] .air-datepicker--pointer:after{transform:rotate(315deg)}.-left-top- .air-datepicker--pointer,.-left-center- .air-datepicker--pointer,.-left-bottom- .air-datepicker--pointer,[data-popper-placement^=left] .air-datepicker--pointer{left:calc(100% - var(--pointer-half-size) + 1px)}.-left-top- .air-datepicker--pointer:after,.-left-center- .air-datepicker--pointer:after,.-left-bottom- .air-datepicker--pointer:after,[data-popper-placement^=left] .air-datepicker--pointer:after{transform:rotate(45deg)}.-top-left- .air-datepicker--pointer,.-bottom-left- .air-datepicker--pointer{left:var(--adp-pointer-offset)}.-top-right- .air-datepicker--pointer,.-bottom-right- .air-datepicker--pointer{right:var(--adp-pointer-offset)}.-top-center- .air-datepicker--pointer,.-bottom-center- .air-datepicker--pointer{left:calc(50% - var(--adp-pointer-size) / 2)}.-left-top- .air-datepicker--pointer,.-right-top- .air-datepicker--pointer{top:var(--adp-pointer-offset)}.-left-bottom- .air-datepicker--pointer,.-right-bottom- .air-datepicker--pointer{bottom:var(--adp-pointer-offset)}.-left-center- .air-datepicker--pointer,.-right-center- .air-datepicker--pointer{top:calc(50% - var(--adp-pointer-size) / 2)}.air-datepicker--navigation{grid-area:nav}.air-datepicker--content{box-sizing:content-box;padding:var(--adp-padding);grid-area:body}.-only-timepicker- .air-datepicker--content{display:none}.air-datepicker--time{grid-area:timepicker}.air-datepicker--buttons{grid-area:buttons}.air-datepicker--buttons,.air-datepicker--time{padding:var(--adp-padding);border-top:1px solid var(--adp-border-color-inner)}.air-datepicker-overlay{position:fixed;background:var(--adp-overlay-background-color);left:0;top:0;width:0;height:0;opacity:0;transition:opacity var(--adp-overlay-transition-duration) var(--adp-overlay-transition-ease),left 0s,height 0s,width 0s;transition-delay:0s,var(--adp-overlay-transition-duration),var(--adp-overlay-transition-duration),var(--adp-overlay-transition-duration);z-index:var(--adp-overlay-z-index)}.air-datepicker-overlay.-active-{opacity:1;width:100%;height:100%;transition:opacity var(--adp-overlay-transition-duration) var(--adp-overlay-transition-ease),height 0s,width 0s}.air-datepicker{--adp-color:rgba(var(--zn-text),var(--zn-text-opacity));--adp-nav-color-secondary:rgb(var(--zn-purple-text));--adp-day-name-color:var(--zn-color-primary-600);--adp-day-name-color-hover:var(--zn-color-primary-700);--adp-cell-background-color-selected:var(--zn-color-primary-600);--adp-cell-background-color-selected-hover:var(--zn-color-primary-700);--adp-color-current-date:var(--zn-color-primary-600);--adp-background-color:var(--zn-input-background-color);--adp-background-color-hover:var(--zn-input-background-color-hover);--adp-background-color-active:var(--zn-input-background-color-hover);--adp-background-color-selected-other-month:var(--zn-color-primary-300);--adp-background-color-in-range:var(--zn-color-primary-100);--adp-border-color:rgb(var(--zn-border-color));--adp-border-color-inline:rgb(var(--zn-border-color));--adp-border-color-inner:rgb(var(--zn-border-color));--adp-cell-background-color-in-range:var(--zn-color-primary-100);--adp-cell-background-color-in-range-hover:var(--zn-color-primary-200)}.air-datepicker--pointer:after{background-color:var(--zn-input-background-color)}.air-datepicker-global-container{z-index:1000000}.air-datepicker-button{border:none;padding:var(--zn-spacing-2x-small) var(--zn-spacing-x-small);border-radius:var(--adp-border-radius);font-family:var(--adp-font-family),sans-serif;font-size:var(--zn-font-size-medium);font-weight:var(--zn-font-weight-normal);cursor:pointer;color:rgba(var(--zn-text),var(--zn-text-opacity))}.air-datepicker-button:hover{background-color:var(--zn-input-background-color-hover) !important}.zn-cloak:has(:not(:defined)){animation:2s step-end zn-cloak}@keyframes zn-cloak{from{opacity:0}to{opacity:1}}`;var E0=_`@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 ::-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)}slot[name=filter-top]::slotted(*){margin-bottom:var(--zn-spacing-small)}.table__scroll{overflow-x:auto}.table__scroll ::-webkit-scrollbar{width:5px;height:5px}.table__scroll{}.table__scroll ::-webkit-scrollbar-track{background:transparent}.table__scroll{}.table__scroll ::-webkit-scrollbar-thumb{background:rgba(var(--inverse-base),0.2);border-radius:5px}.table__scroll{}.table__scroll ::-webkit-scrollbar-thumb:hover{background:rgba(var(--inverse-base),0.6)}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 tbody tr.table__row--data td{height:48px;padding-block:0;overflow:hidden}table tbody tr.table__row--details td{background-color:rgb(var(--zn-shadow))}table thead{color:rgb(var(--zn-text-heading));font-weight:var(--zn-font-weight-medium)}table thead tr th{background-color:rgb(var(--zn-table-header-background-color));border-bottom:1px solid rgb(var(--zn-border-color)) !important}table.with-hover tbody tr.table__row--data:not(.table__row--selected):hover td{background-color:rgba(var(--zn-primary),0.05) !important;cursor:pointer}table.with-hover tbody tr.table__row--details:hover{background-color:inherit;cursor:default}table tbody tr td{border-top:1px solid rgb(var(--zn-border-color)) !important}table tbody tr:first-of-type td{border-top:0 !important}table th,table td{padding:var(--zn-spacing-small) var(--zn-spacing-medium);min-width:90px;white-space:nowrap}table th span,table td span{white-space:normal}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);border-bottom:1px solid rgb(var(--zn-border-color))}.zn-table-fixed{table-layout:fixed}.table tr th,.table tr td{min-width:50px}.table tr th>div,.table tr td>div{display:flex;flex-direction:row;align-items:center;width:100%;gap:var(--zn-spacing-x-small)}.table tr th>div>code,.table tr td>div>code{font-size:10px;display:block;max-width:420px;float:right;max-height:100px;white-space:pre;overflow-x:scroll}.table tr th:first-of-type>div:has(zn-checkbox),.table tr td:first-of-type>div:has(zn-checkbox){justify-content:center}.table tr th:first-of-type>div:has(zn-checkbox) zn-checkbox,.table tr td:first-of-type>div:has(zn-checkbox) zn-checkbox{margin:0}.table__head{text-transform:capitalize}.table__head__sort{margin:0;padding:0;opacity:1;display:flex;flex-direction:column;justify-content:center;align-items:center;cursor:pointer}.table__head--wide{width:100%}.table__head--left div{justify-content:flex-start}.table__head--right div{justify-content:flex-end}.table__head--center div{justify-content:center}.table__head--hidden>div{visibility:hidden}.table__head--expander{width:28px;min-width:28px;padding-right:0}.table__cell--wide{width:100%}.table__cell--left div{justify-content:flex-start}.table__cell--right div{justify-content:flex-end}.table__cell--center div{justify-content:center}.table__cell--actions{width:25px;min-width:25px;text-align:right}.table__cell .caption{flex-grow:1;flex-direction:column}.table__cell .caption span{display:block}.table__cell .caption .title:empty,.table__cell .caption .summary:empty{display:none}.table__cell .caption .title{font-weight:var(--zn-font-weight-semibold);color:rgb(var(--zn-text-heading));font-size:var(--zn-text-table-content-font-size);text-decoration:none}.table__cell .caption a.title{color:rgb(var(--zn-primary))}.table__cell .caption .summary{font-size:90%;text-wrap:initial;color:rgb(var(--zn-text))}.table__cell .caption--icon{display:flex;flex-direction:row;gap:var(--zn-spacing-small)}.table__cell--expander{width:28px;min-width:28px}.table__header{display:flex;flex-direction:row;justify-content:space-between;align-items:center;padding:var(--zn-spacing-x-small) var(--zn-spacing-medium);gap:var(--zn-spacing-small)}.table__header__actions,.table__header__query-builder{display:flex;flex-direction:row;align-items:center;gap:var(--zn-spacing-small)}.table__header__toggle--active::part(base){background-color:rgb(var(--zn-color-tab))}.table__header__caption{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);margin:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.table__header__right{display:flex;flex-direction:row;align-items:center;gap:var(--zn-spacing-x-small);margin-left:auto}.table__filters{padding:var(--zn-spacing-x-small) var(--zn-spacing-medium)}.table__filters[hidden]{display:none}.table__footer{display:flex;flex-direction:row;justify-content:space-between;flex-wrap:wrap;gap:var(--zn-spacing-small);padding:var(--zn-spacing-x-small) var(--zn-spacing-medium)}.table__footer zn-button-group::part(base){flex-wrap:nowrap}.table__footer--panel{padding:0}.table__footer__right,.table__footer__left{display:flex;flex-direction:row;align-items:center;gap:var(--zn-spacing-large)}.table__footer__rows-per-page{display:flex;flex-direction:row;align-items:center;gap:var(--zn-spacing-x-small)}.table__footer__rows-per-page p{margin:0;color:rgb(var(--zn-text));opacity:0.7;white-space:nowrap}.table__footer__rows-per-page zn-select[name=rowPerPage]{--zn-input-background-color:rgb(var(--zn-panel));width:66px}.table__footer__rows-per-page zn-select[name=rowPerPage]::part(combobox){min-height:36px;padding-inline:var(--zn-spacing-x-small)}.table__footer__rows-per-page zn-select[name=rowPerPage]::part(expand-icon){margin-inline-start:0}.table__footer__pagination-page::part(base){height:36px;min-height:36px;max-height:36px;min-width:32px;padding:0 var(--zn-spacing-2x-small);justify-content:center;border-color:rgb(var(--zn-border-color));color:rgb(var(--zn-text));font-weight:var(--zn-font-weight-normal);white-space:nowrap}.table__footer__pagination-page--active::part(base){background-color:var(--zn-color-neutral-300);border-color:var(--zn-color-neutral-300)}.table__details{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:var(--zn-spacing-x-large) !important}.table__details__item{display:flex;flex-direction:column;gap:var(--zn-spacing-2x-small,4px)}.table__details__label{font-size:12px;color:rgb(var(--zn-text-subtle,var(--zn-text)));opacity:0.8}.table__details__value{font-size:var(--zn-text-table-content-font-size)}zn-menu{--zn-menu-min-width:var(--zn-size-spanel)}zn-panel{--zn-panel-header-padding:var(--zn-spacing-x-small) var(--zn-spacing-x-small) var(--zn-spacing-x-small) var(--zn-spacing-medium);--zn-panel-footer-padding:var(--zn-spacing-x-small) var(--zn-spacing-medium)}zn-panel::part(footer){border-top:1px solid rgb(var(--zn-border-color))}zn-menu::part(base){background-color:rgb(var(--zn-panel))}.reduced-opacity .table tbody{opacity:0.5}.hidden{display:none}.dropdown__query-builder{display:block;position:relative;padding:var(--zn-spacing-large);border-width:1px;border-radius:5px;width:-moz-fit-content;width:fit-content;min-width:var(--zn-spacing-small-panel);max-height:650px;overflow:auto;overscroll-behavior:none;filter:drop-shadow(0 5px 4px rgba(0,0,0,0.04)) drop-shadow(0 4px 3px rgba(0,0,0,0.1));background-color:rgb(var(--zn-panel,255,255,255))}table tbody tr.table__row--selected{background-color:var(--zn-color-purple-100)}table tbody tr.table__row--selected:hover{background-color:var(--zn-color-purple-200) !important}table tbody tr.table__row--selected td{border-top:1px solid var(--zn-color-purple-600) !important;border-bottom:1px solid var(--zn-color-purple-600) !important}table tbody tr.table__row--selected td:first-of-type{border-left:1px solid var(--zn-color-purple-600)}table tbody tr.table__row--selected td:last-of-type{border-right:1px solid var(--zn-color-purple-600)}table tbody tr.table__row--selected:last-of-type td:first-of-type{border-bottom-left-radius:var(--zn-border-radius)}table tbody tr.table__row--selected:last-of-type td:last-of-type{border-bottom-right-radius:var(--zn-border-radius)}table tbody tr.table__row--selected+tr.table__row--selected td{border-top:0 !important}table tbody tr.table__row--selected+tr.table__row--selected td:first-of-type{border-top-left-radius:0}table tbody tr.table__row--selected+tr.table__row--selected td:last-of-type{border-top-right-radius:0}table tbody tr.table__row--selected:has(+tr.table__row--selected) td{border-bottom:0 !important}table tbody tr.table__row--selected:first-of-type td{border-top:0 !important}table tbody tr.table__row--selected:has(+tr.table__row--selected) td:first-of-type{border-bottom-left-radius:0}table tbody tr.table__row--selected:has(+tr.table__row--selected) td:last-of-type{border-bottom-right-radius:0}table:has(tbody tr:first-of-type.table__row--selected) thead tr th{border-bottom-color:var(--zn-color-purple-600) !important}tbody tr.table__row--group th{padding:var(--zn-spacing-small) var(--zn-spacing-medium);text-align:left;white-space:nowrap;background-color:rgb(var(--zn-panel));color:rgba(var(--zn-text-panel-title),100%);font-weight:var(--zn-font-weight-semibold);font-size:var(--zn-font-size-large)}tbody tr.table__row--group:not(:first-of-type) th{border-top:1px solid rgb(var(--zn-border-color))}tbody tr.table__row--error td{padding-block:var(--zn-spacing-x-small)}.table__error{padding-bottom:var(--zn-spacing-small)}.table__collum--datetime{display:flex;flex-direction:column;align-items:flex-end;gap:2px}.table__cell--subtext{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)}`;var T0=1,rm=10,k4=3,C4=25;var S4={dateTime:(o=>{let i=o.text||"";return u`
@@ -1593,7 +1593,7 @@ import{a as Fn,b as h3,c as _r,d as c,e as V}from"./chunks/zn.UBLZO6CI.js";var K
1593
1593
  </zn-menu-item>`})}
1594
1594
  </zn-menu>
1595
1595
  </zn-dropdown>
1596
- </td>`}};ge.styles=[z(gs),z(E0)],ge.dependencies={"zn-alert":Au,"zn-button":$e,"zn-empty-state":Xu,"zn-chip":Gn,"zn-hover-container":Ju,"zn-dropdown":pr,"zn-menu":on,"zn-menu-item":xi,"zn-panel":Zu,"zn-button-group":Ol,"zn-confirm":Fl,"zn-skeleton":em,"zn-style":tm,"zn-data-table-search":Qu},c([d({attribute:"data-uri"})],ge.prototype,"dataUri",2),c([d({attribute:"data",type:Object})],ge.prototype,"data",2),c([d({attribute:"sort-column"})],ge.prototype,"sortColumn",2),c([d({attribute:"sort-direction"})],ge.prototype,"sortDirection",2),c([d({attribute:"local-sort",type:Boolean})],ge.prototype,"localSort",2),c([d({attribute:"filter"})],ge.prototype,"filter",2),c([d({attribute:"search"})],ge.prototype,"search",2),c([d({attribute:"wide-column"})],ge.prototype,"wideColumn",2),c([d({attribute:"key"})],ge.prototype,"key",2),c([d({attribute:"headers",type:Object})],ge.prototype,"headers",2),c([d({attribute:!1})],ge.prototype,"displayTemplates",2),c([d({attribute:"hide-headers",type:Object})],ge.prototype,"hiddenHeaders",2),c([d({attribute:"hide-columns",type:Object})],ge.prototype,"hiddenColumns",2),c([d({attribute:"unsortable-headers",type:Object})],ge.prototype,"unsortableHeaders",2),c([d({attribute:"unsortable",type:Boolean})],ge.prototype,"unsortable",2),c([d({attribute:"hide-pagination",type:Boolean})],ge.prototype,"hidePagination",2),c([d({attribute:"hide-column-select",type:Boolean})],ge.prototype,"hideColumnSelect",2),c([d({attribute:"hide-refresh",type:Boolean})],ge.prototype,"hideRefresh",2),c([d({type:Boolean})],ge.prototype,"standalone",2),c([d()],ge.prototype,"caption",2),c([d({attribute:"empty-state-caption"})],ge.prototype,"emptyStateCaption",2),c([d({attribute:"empty-state-icon"})],ge.prototype,"emptyStateIcon",2),c([d({attribute:"hide-checkboxes",type:Boolean})],ge.prototype,"hideCheckboxes",2),c([d()],ge.prototype,"filters",2),c([d()],ge.prototype,"method",2),c([d({attribute:"no-initial-load",type:Boolean})],ge.prototype,"noInitialLoad",2),c([d({attribute:"group-by"})],ge.prototype,"groupBy",2),c([d()],ge.prototype,"groups",2),c([d({attribute:"per-page-size",type:Number})],ge.prototype,"itemsPerPage",2),c([F("#select-all-rows")],ge.prototype,"selectAllButton",2),c([R()],ge.prototype,"_deselectedColumns",2),c([R()],ge.prototype,"_filtersOpen",2);var E4=ge;ge.define("zn-data-table");var $0=_`@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 A0={first:-1,high:-1,last:1,low:1},T4="lg",Tr=class extends k{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 A0)return A0[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(p=>parseInt(p)).filter(p=>!!p);t.length===0&&t.push(1,1,1,1),this.layout=t.join(","),this.maxColumns=t.reduce((p,h)=>p+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((p,h)=>{let m=p.className.split(" ").filter(b=>!b.startsWith(r));p.className=m.join(" ");let f=h%a;p.classList.add(r+t[f]),this.border&&h>=s?p.style.overflow="hidden":p.style.overflow="",l=this.applyStackOrder(p,!1)!==null||l,p.hasAttribute("stack-split")&&(l=!0,this.childObserver.observe(p,{childList:!0}),Array.from(p.children).forEach(b=>this.applyStackOrder(b,!0)))}),l&&!this.stackAt&&(this.stackAt=T4),u`
1596
+ </td>`}};ge.styles=[z(gs),z(E0)],ge.dependencies={"zn-alert":Au,"zn-button":$e,"zn-empty-state":Xu,"zn-chip":Gn,"zn-hover-container":Ju,"zn-dropdown":pr,"zn-menu":on,"zn-menu-item":xi,"zn-panel":Zu,"zn-button-group":Ol,"zn-confirm":Fl,"zn-skeleton":em,"zn-style":tm,"zn-data-table-search":Qu},c([d({attribute:"data-uri"})],ge.prototype,"dataUri",2),c([d({attribute:"data",type:Object})],ge.prototype,"data",2),c([d({attribute:"sort-column"})],ge.prototype,"sortColumn",2),c([d({attribute:"sort-direction"})],ge.prototype,"sortDirection",2),c([d({attribute:"local-sort",type:Boolean})],ge.prototype,"localSort",2),c([d({attribute:"filter"})],ge.prototype,"filter",2),c([d({attribute:"search"})],ge.prototype,"search",2),c([d({attribute:"wide-column"})],ge.prototype,"wideColumn",2),c([d({attribute:"key"})],ge.prototype,"key",2),c([d({attribute:"headers",type:Object})],ge.prototype,"headers",2),c([d({attribute:!1})],ge.prototype,"displayTemplates",2),c([d({attribute:"hide-headers",type:Object})],ge.prototype,"hiddenHeaders",2),c([d({attribute:"hide-columns",type:Object})],ge.prototype,"hiddenColumns",2),c([d({attribute:"unsortable-headers",type:Object})],ge.prototype,"unsortableHeaders",2),c([d({attribute:"unsortable",type:Boolean})],ge.prototype,"unsortable",2),c([d({attribute:"hide-pagination",type:Boolean})],ge.prototype,"hidePagination",2),c([d({attribute:"hide-column-select",type:Boolean})],ge.prototype,"hideColumnSelect",2),c([d({attribute:"hide-refresh",type:Boolean})],ge.prototype,"hideRefresh",2),c([d({type:Boolean})],ge.prototype,"standalone",2),c([d()],ge.prototype,"caption",2),c([d({attribute:"empty-state-caption"})],ge.prototype,"emptyStateCaption",2),c([d({attribute:"empty-state-icon"})],ge.prototype,"emptyStateIcon",2),c([d({attribute:"hide-checkboxes",type:Boolean})],ge.prototype,"hideCheckboxes",2),c([d()],ge.prototype,"filters",2),c([d()],ge.prototype,"method",2),c([d({attribute:"no-initial-load",type:Boolean})],ge.prototype,"noInitialLoad",2),c([d({attribute:"group-by"})],ge.prototype,"groupBy",2),c([d()],ge.prototype,"groups",2),c([d({attribute:"per-page-size",type:Number})],ge.prototype,"itemsPerPage",2),c([F("#select-all-rows")],ge.prototype,"selectAllButton",2),c([D()],ge.prototype,"_deselectedColumns",2),c([D()],ge.prototype,"_filtersOpen",2);var E4=ge;ge.define("zn-data-table");var $0=_`@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 A0={first:-1,high:-1,last:1,low:1},T4="lg",Tr=class extends k{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 A0)return A0[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(p=>parseInt(p)).filter(p=>!!p);t.length===0&&t.push(1,1,1,1),this.layout=t.join(","),this.maxColumns=t.reduce((p,h)=>p+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((p,h)=>{let m=p.className.split(" ").filter(b=>!b.startsWith(r));p.className=m.join(" ");let f=h%a;p.classList.add(r+t[f]),this.border&&h>=s?p.style.overflow="hidden":p.style.overflow="",l=this.applyStackOrder(p,!1)!==null||l,p.hasAttribute("stack-split")&&(l=!0,this.childObserver.observe(p,{childList:!0}),Array.from(p.children).forEach(b=>this.applyStackOrder(b,!0)))}),l&&!this.stackAt&&(this.stackAt=T4),u`
1597
1597
  <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})}">
1598
1598
  <slot></slot>
1599
1599
  </div>
@@ -1662,7 +1662,7 @@ import{a as Fn,b as h3,c as _r,d as c,e as V}from"./chunks/zn.UBLZO6CI.js";var K
1662
1662
  @zn-input="${this.handleInputValueChange}"></zn-input>`):B}
1663
1663
  </div>
1664
1664
  </zn-dropdown>
1665
- `}};jt.styles=z(M0),jt.dependencies={"zn-button":$e,"zn-dropdown":pr,"zn-input":nt,"zn-option":ot,"zn-select":Be},c([F(".defined-label__input")],jt.prototype,"input",2),c([F(".defined-label__dropdown")],jt.prototype,"dropdown",2),c([d()],jt.prototype,"value",2),c([d()],jt.prototype,"inputValue",2),c([d({attribute:"input-size",reflect:!0})],jt.prototype,"inputSize",2),c([d()],jt.prototype,"name",2),c([d()],jt.prototype,"title",2),c([d({type:Boolean})],jt.prototype,"disabled",2),c([d({attribute:"allow-custom",type:Boolean})],jt.prototype,"allowCustom",2),c([d({type:Array,attribute:"predefined-labels"})],jt.prototype,"predefinedLabels",2),c([K("value",{waitUntilFirstUpdate:!0})],jt.prototype,"handleValueChange",1);var A4=jt;jt.define("zn-defined-label");var L0=_`@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 qi=class extends k{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`
1665
+ `}};jt.styles=z(M0),jt.dependencies={"zn-button":$e,"zn-dropdown":pr,"zn-input":ot,"zn-option":at,"zn-select":Be},c([F(".defined-label__input")],jt.prototype,"input",2),c([F(".defined-label__dropdown")],jt.prototype,"dropdown",2),c([d()],jt.prototype,"value",2),c([d()],jt.prototype,"inputValue",2),c([d({attribute:"input-size",reflect:!0})],jt.prototype,"inputSize",2),c([d()],jt.prototype,"name",2),c([d()],jt.prototype,"title",2),c([d({type:Boolean})],jt.prototype,"disabled",2),c([d({attribute:"allow-custom",type:Boolean})],jt.prototype,"allowCustom",2),c([d({type:Array,attribute:"predefined-labels"})],jt.prototype,"predefinedLabels",2),c([K("value",{waitUntilFirstUpdate:!0})],jt.prototype,"handleValueChange",1);var A4=jt;jt.define("zn-defined-label");var L0=_`@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 qi=class extends k{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`
1666
1666
  <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"})}">
1667
1667
  <div class="note__header">
1668
1668
  <slot name="caption" class="note__header__caption">${this.caption}</slot>
@@ -1692,7 +1692,7 @@ import{a as Fn,b as h3,c as _r,d as c,e as V}from"./chunks/zn.UBLZO6CI.js";var K
1692
1692
  </div>`:""}
1693
1693
  <slot name="footer" class="note__footer"></slot>
1694
1694
  </div>
1695
- `}};qi.styles=z(L0),c([d({reflect:!0})],qi.prototype,"color",2),c([d({reflect:!0})],qi.prototype,"caption",2),c([d({reflect:!0})],qi.prototype,"date",2),c([d({type:HTMLElement,reflect:!0})],qi.prototype,"body",2),c([R()],qi.prototype,"expanded",2);var M4=qi;qi.define("zn-note");var q0=_`@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}.tile{position:relative;display:flex;align-items:center;justify-content:space-between;min-height:48px;-moz-column-gap:var(--zn-spacing-large);column-gap:var(--zn-spacing-large);font-size:var(--zn-text-table-content-font-size);line-height:var(--zn-text-table-content-line-height);font-weight:var(--zn-text-table-content-font-weight);color:var(--zn-text-table-content-color)}.tile--has-image,.tile--has-caption,.tile--has-description,.tile--has-properties,.tile--has-actions{padding-inline:var(--zn-base-gap)}.tile--has-description.tile--has-caption{padding-block:var(--zn-base-gap)}.tile--has-image{padding:var(--zn-base-gap)}.tile--has-href{cursor:pointer}.tile--has-href:hover{background-color:var(--zn-color-neutral-100)}.tile--flush{padding:0}.tile--flush-x{padding-inline:0}.tile--flush-y{padding-block:0}a{color:inherit;text-decoration:none;cursor:pointer}::slotted(zn-icon){display:flex;justify-content:center;align-items:center}.tile__link{display:flex;align-items:center;justify-content:space-between;flex:1;-moz-column-gap:var(--zn-spacing-small);column-gap:var(--zn-spacing-small);min-width:0}.tile__left{display:flex;align-items:center;-moz-column-gap:var(--zn-spacing-small);column-gap:var(--zn-spacing-small);min-width:0}.tile__image{display:flex;align-items:center;flex-shrink:0}.tile__content{display:flex;flex-direction:column;justify-content:center;min-width:0}.tile--inline .tile__content{flex-direction:row;align-items:center;-moz-column-gap:var(--zn-spacing-x-small);column-gap:var(--zn-spacing-x-small)}.tile__caption{margin:0;font-weight:600;color:rgb(var(--zn-text-heading));white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tile--plain .tile__caption{font-weight:var(--zn-text-table-content-font-weight);color:var(--zn-text-table-content-color)}.tile__description{margin:var(--zn-spacing-3x-small) 0 0;font-weight:var(--zn-text-table-content-font-weight);color:var(--zn-text-table-content-color);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tile--inline .tile__description{margin:0}.tile__right{display:flex;align-items:center;justify-content:flex-end;-moz-column-gap:var(--zn-spacing-large);column-gap:var(--zn-spacing-large);min-width:0}.tile__properties{display:flex;flex-direction:row;align-items:center;-moz-column-gap:var(--zn-spacing-large);column-gap:var(--zn-spacing-large);min-width:0;flex-shrink:0;overflow:hidden}.tile__properties ::slotted(*){white-space:nowrap}@container (max-width:359px){.tile__properties{display:none}}.tile__actions{display:flex;align-items:center;-moz-column-gap:var(--zn-spacing-small);column-gap:var(--zn-spacing-small);flex-shrink:0}:host([grouped]){display:grid;grid-column:1/-1;grid-template-columns:subgrid;align-items:center}:host([grouped]) .tile{display:grid;grid-column:1/-1;grid-template-columns:subgrid;align-items:center;justify-items:end;min-height:48px}:host([grouped]) .tile__link,:host([grouped]) .tile__right,:host([grouped]) .tile__properties,:host([grouped]) .tile__actions{display:contents}:host([grouped]) .tile__left{grid-column:1;justify-self:stretch;min-width:0;overflow:hidden}`;var Gt=class extends k{constructor(){super(...arguments);this.hasSlotController=new Y(this,"[default]","properties","actions","image")}_isLink(){return this.href||this.dataUri}_handleActionsClick(t){if(this._isLink()){for(let r of t.composedPath()){if(r===this)break;if(!(r instanceof Element))continue;let n=r.getAttribute("href");if(r.hasAttribute("data-uri")||n!==null&&n!==""&&!n.startsWith("#"))return}t.stopPropagation()}}render(){let t=this._isLink(),r=t?Ai`a`:Ai`div`,n=this.caption&&this.caption.length>0,a=this.description&&this.description.length>0,s=this.hasSlotController.test("properties"),l=this.hasSlotController.test("actions"),p=this.hasSlotController.test("image");return ke`
1695
+ `}};qi.styles=z(L0),c([d({reflect:!0})],qi.prototype,"color",2),c([d({reflect:!0})],qi.prototype,"caption",2),c([d({reflect:!0})],qi.prototype,"date",2),c([d({type:HTMLElement,reflect:!0})],qi.prototype,"body",2),c([D()],qi.prototype,"expanded",2);var M4=qi;qi.define("zn-note");var q0=_`@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}.tile{position:relative;display:flex;align-items:center;justify-content:space-between;min-height:48px;-moz-column-gap:var(--zn-spacing-large);column-gap:var(--zn-spacing-large);font-size:var(--zn-text-table-content-font-size);line-height:var(--zn-text-table-content-line-height);font-weight:var(--zn-text-table-content-font-weight);color:var(--zn-text-table-content-color)}.tile--has-image,.tile--has-caption,.tile--has-description,.tile--has-properties,.tile--has-actions{padding-inline:var(--zn-base-gap)}.tile--has-description.tile--has-caption{padding-block:var(--zn-base-gap)}.tile--has-image{padding:var(--zn-base-gap)}.tile--has-href{cursor:pointer}.tile--has-href:hover{background-color:var(--zn-color-neutral-100)}.tile--flush{padding:0}.tile--flush-x{padding-inline:0}.tile--flush-y{padding-block:0}a{color:inherit;text-decoration:none;cursor:pointer}::slotted(zn-icon){display:flex;justify-content:center;align-items:center}.tile__link{display:flex;align-items:center;justify-content:space-between;flex:1;-moz-column-gap:var(--zn-spacing-small);column-gap:var(--zn-spacing-small);min-width:0}.tile__left{display:flex;align-items:center;-moz-column-gap:var(--zn-spacing-small);column-gap:var(--zn-spacing-small);min-width:0}.tile__image{display:flex;align-items:center;flex-shrink:0}.tile__content{display:flex;flex-direction:column;justify-content:center;min-width:0}.tile--inline .tile__content{flex-direction:row;align-items:center;-moz-column-gap:var(--zn-spacing-x-small);column-gap:var(--zn-spacing-x-small)}.tile__caption{margin:0;font-weight:600;color:rgb(var(--zn-text-heading));white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tile--plain .tile__caption{font-weight:var(--zn-text-table-content-font-weight);color:var(--zn-text-table-content-color)}.tile__description{margin:var(--zn-spacing-3x-small) 0 0;font-weight:var(--zn-text-table-content-font-weight);color:var(--zn-text-table-content-color);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tile--inline .tile__description{margin:0}.tile__right{display:flex;align-items:center;justify-content:flex-end;-moz-column-gap:var(--zn-spacing-large);column-gap:var(--zn-spacing-large);min-width:0}.tile__properties{display:flex;flex-direction:row;align-items:center;-moz-column-gap:var(--zn-spacing-large);column-gap:var(--zn-spacing-large);min-width:0;flex-shrink:0;overflow:hidden}.tile__properties ::slotted(*){white-space:nowrap}@container (max-width:359px){.tile__properties{display:none}}.tile__actions{display:flex;align-items:center;-moz-column-gap:var(--zn-spacing-small);column-gap:var(--zn-spacing-small);flex-shrink:0}:host([grouped]){display:grid;grid-column:1/-1;grid-template-columns:subgrid;align-items:center}:host([grouped]) .tile{display:grid;grid-column:1/-1;grid-template-columns:subgrid;align-items:center;justify-items:end;min-height:48px}:host([grouped]) .tile__link,:host([grouped]) .tile__right,:host([grouped]) .tile__properties,:host([grouped]) .tile__actions{display:contents}:host([grouped]) .tile__left{grid-column:1;justify-self:stretch;min-width:0;overflow:hidden}`;var Gt=class extends k{constructor(){super(...arguments);this.hasSlotController=new Y(this,"[default]","properties","actions","image")}_isLink(){return this.href||this.dataUri}_handleActionsClick(t){if(this._isLink()){for(let r of t.composedPath()){if(r===this)break;if(!(r instanceof Element))continue;let n=r.getAttribute("href");if(r.hasAttribute("data-uri")||n!==null&&n!==""&&!n.startsWith("#"))return}t.stopPropagation()}}render(){let t=this._isLink(),r=t?Ai`a`:Ai`div`,n=this.caption&&this.caption.length>0,a=this.description&&this.description.length>0,s=this.hasSlotController.test("properties"),l=this.hasSlotController.test("actions"),p=this.hasSlotController.test("image");return ke`
1696
1696
  <div
1697
1697
  class="${M({tile:!0,"tile--flush":this.flush,"tile--flush-x":this.flushX,"tile--flush-y":this.flushY,"tile--inline":this.inline,"tile--plain":this.plain,"tile--has-href":t,"tile--has-caption":n,"tile--has-description":a,"tile--has-properties":s,"tile--has-actions":l,"tile--has-image":p})}">
1698
1698
  <${r}
@@ -1738,7 +1738,7 @@ import{a as Fn,b as h3,c as _r,d as c,e as V}from"./chunks/zn.UBLZO6CI.js";var K
1738
1738
  <p part="caption" class="tile__caption">${this.caption}</p>
1739
1739
  <slot part="description" class="tile__description">${this.description}</slot>
1740
1740
  </div>
1741
- </div>`}};En.styles=z(D0),c([d({attribute:"caption",reflect:!0})],En.prototype,"caption",2),c([d({attribute:"description",reflect:!0})],En.prototype,"description",2),c([d({attribute:"icon",reflect:!0})],En.prototype,"icon",2);var I4=En;En.define("zn-tile-property");var R0=_`:host{--channel-tile-color:var(--zn-color-border);flex:1 1 280px;width:280px;min-width:180px;max-width:320px;display:block}.channel-tile{position:relative;display:flex;flex-direction:column;height:100%;overflow:hidden;cursor:pointer;border-right:1px solid rgb(var(--zn-border-color));background-color:rgb(var(--zn-body));transition:background-color 0.15s ease;-webkit-user-select:none;-moz-user-select:none;user-select:none}.channel-tile:focus-visible{outline:2px solid rgb(var(--zn-primary));outline-offset:-2px}:host(.active) .channel-tile{background-color:rgb(var(--zn-panel));cursor:default}:host(:not(.active)) .channel-tile--active:hover{background-color:rgb(var(--zn-panel))}.channel-tile--incoming{background-color:rgba(var(--zn-color-success),0.15)}.channel-tile--incoming:hover{background-color:rgba(var(--zn-color-success),0.22)}.channel-tile--disabled .channel-tile__body{opacity:0.6}.channel-tile__header{display:flex;align-items:center;flex-shrink:0;height:24px;padding:0 var(--zn-spacing-small);background-color:rgb(var(--zn-color-tab))}.channel-tile__header h3{margin:0;font-size:var(--zn-text-h3-font-size);line-height:var(--zn-text-h3-line-height);font-weight:var(--zn-text-h3-font-weight);color:rgb(var(--zn-text-heading));text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.channel-tile__overlay{position:absolute;top:24px;left:0;bottom:0;width:0;background-color:rgb(154,232,162);transition:width 0.2s linear;pointer-events:none;z-index:0}.channel-tile__body{position:relative;flex:1;display:flex;align-items:center;gap:var(--zn-spacing-small);padding:var(--zn-spacing-x-small) var(--zn-spacing-small);width:100%;overflow:hidden;z-index:1}.channel-tile__content{display:flex;flex-direction:column;flex-grow:1;gap:4px;overflow:hidden}@container (max-width:200px){.channel-tile__content{display:none}}.channel-tile__title{margin:0;font-size:var(--zn-text-heading-section-font-size);line-height:var(--zn-text-heading-section-line-height);font-weight:var(--zn-text-heading-section-font-weight);color:var(--zn-text-heading-section-color);text-transform:var(--zn-text-heading-section-transform);text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.channel-tile__subtitle{margin:0;font-size:var(--zn-text-subheading-small-font-size);line-height:var(--zn-text-subheading-small-line-height);font-weight:var(--zn-text-subheading-small-font-weight);color:var(--zn-text-subheading-small-color);text-transform:var(--zn-text-subheading-small-transform);text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.channel-tile__footer{display:flex;align-items:center;align-self:flex-start;gap:var(--zn-spacing-small)}.channel-tile__reject{flex-shrink:0;display:flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:50%;border:none;padding:0;margin:0;background-color:rgba(var(--zn-color-panel));color:rgb(var(--zn-color-error));cursor:pointer;box-shadow:0 1px 2px rgba(0,0,0,0.15)}.channel-tile__reject:hover{background-color:rgba(var(--zn-color-error));color:rgb(var(--zn-color-panel))}.channel-tile__bar{position:absolute;bottom:0;left:0;right:0;height:3px;background-color:rgba(var(--zn-shadow),0.2);overflow:hidden;z-index:1}.channel-tile__bar-fill{height:100%;width:0;transition:width 0.5s linear,background-color 0.5s ease}.channel-tile--primary{--channel-tile-color:var(--zn-color-primary)}.channel-tile--info{--channel-tile-color:var(--zn-color-info)}.channel-tile--success{--channel-tile-color:var(--zn-color-success)}.channel-tile--warning{--channel-tile-color:var(--zn-color-warning)}.channel-tile--error{--channel-tile-color:var(--zn-color-error)}.channel-tile--disabled{--channel-tile-color:var(--zn-color-disabled,204,204,204)}.channel-tile--incoming .channel-tile__body zn-button{--zn-color-tab:var(--zn-color-panel)}`;var Ze=class extends k{constructor(){super(...arguments);this.available=!1;this.incoming=!1;this.variant="";this.header="";this.icon="";this.color="default";this.title="";this.subtitle="";this.progress=0;this.progressColor="";this.itemId="";this.acceptUri="";this.reservedUntil=0;this.autoAcceptDelay=0;this.rejectable=!1;this.acceptIcon="plus@lu";this.acceptGaid="";this.rejectIcon="close";this.rejectLabel="Reject";this._autoAcceptFired="";this._handleReject=t=>{t.preventDefault(),t.stopPropagation(),this.emit("zn-reject",{detail:{itemId:this.itemId,variant:this.variant}})};this._handleClick=t=>{!this._isCountingDown()||!this.acceptUri||t.defaultPrevented||(t.preventDefault(),t.stopPropagation(),this._accept())}}firstUpdated(t){super.firstUpdated(t),this._startTicker()}disconnectedCallback(){this._stopTicker(),super.disconnectedCallback()}updated(t){super.updated(t),t.has("itemId")&&this.itemId!==this._autoAcceptFired&&(this._autoAcceptFired="")}_isCountingDown(){return this.available&&this.incoming}_startTicker(){this._tickInterval===void 0&&(this._tickInterval=window.setInterval(()=>{this._isCountingDown()&&(this.requestUpdate(),this._maybeAutoAccept())},200))}_stopTicker(){this._tickInterval!==void 0&&(clearInterval(this._tickInterval),this._tickInterval=void 0)}_maybeAutoAccept(){if(!this._isCountingDown()||!this.acceptUri||!this.autoAcceptDelay||!this.reservedUntil||this._autoAcceptFired===this.itemId)return;let t=this._reservedUntilMs();!t||Date.now()<t||(this._autoAcceptFired=this.itemId,this._accept())}_accept(){this.emit("zn-accept",{cancelable:!0,detail:{itemId:this.itemId,acceptUri:this.acceptUri}}).defaultPrevented||!this.acceptUri||fetch(this.acceptUri,{credentials:"same-origin"}).catch(r=>{console.error("Error accepting interaction",r)})}_reservedUntilMs(){return this.reservedUntil?this.reservedUntil.toString().length===10?this.reservedUntil*1e3:this.reservedUntil:0}_countdownPercent(){let t=this._reservedUntilMs();if(!t||!this.autoAcceptDelay)return 0;let r=this.autoAcceptDelay,n=Math.max(0,t-Date.now()),a=Math.max(0,r-n);return Math.min(100,Math.max(0,a/r*100))}_remainingSeconds(){let t=this._reservedUntilMs();return!t||!this.autoAcceptDelay?null:Math.max(0,Math.ceil((t-Date.now())/1e3))}render(){let t=this.title||(this.available?"Available":""),r=this._isCountingDown()?this._countdownPercent():null,n=this._isCountingDown()?this._remainingSeconds():null;return u`
1741
+ </div>`}};En.styles=z(D0),c([d({attribute:"caption",reflect:!0})],En.prototype,"caption",2),c([d({attribute:"description",reflect:!0})],En.prototype,"description",2),c([d({attribute:"icon",reflect:!0})],En.prototype,"icon",2);var I4=En;En.define("zn-tile-property");var R0=_`:host{--channel-tile-color:var(--zn-color-border);flex:1 1 280px;width:280px;min-width:180px;max-width:320px;display:block}.channel-tile{position:relative;display:flex;flex-direction:column;height:100%;overflow:hidden;cursor:pointer;border-right:1px solid rgb(var(--zn-border-color));background-color:rgb(var(--zn-body));transition:background-color 0.15s ease;-webkit-user-select:none;-moz-user-select:none;user-select:none}.channel-tile:focus-visible{outline:2px solid rgb(var(--zn-primary));outline-offset:-2px}:host(.active) .channel-tile{background-color:rgb(var(--zn-panel));cursor:default}:host(:not(.active)) .channel-tile--active:hover{background-color:rgb(var(--zn-panel))}.channel-tile--incoming{background-color:rgba(var(--zn-color-success),0.15)}.channel-tile--incoming:hover{background-color:rgba(var(--zn-color-success),0.22)}.channel-tile--disabled .channel-tile__body{opacity:0.6}.channel-tile__header{display:flex;align-items:center;flex-shrink:0;height:24px;padding:0 var(--zn-spacing-small);background-color:rgb(var(--zn-color-tab))}.channel-tile__header h3{margin:0;font-size:var(--zn-text-h3-font-size);line-height:var(--zn-text-h3-line-height);font-weight:var(--zn-text-h3-font-weight);color:rgb(var(--zn-text-heading));text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.channel-tile__overlay{position:absolute;top:24px;left:0;bottom:0;width:0;background-color:rgb(154,232,162);transition:width 0.2s linear;pointer-events:none;z-index:0}.channel-tile__body{position:relative;flex:1;display:flex;align-items:center;gap:var(--zn-spacing-small);padding:var(--zn-spacing-x-small) var(--zn-spacing-small);width:100%;overflow:hidden;z-index:1}.channel-tile__content{display:flex;flex-direction:column;flex-grow:1;gap:4px;overflow:hidden}@container (max-width:200px){.channel-tile__content{display:none}}.channel-tile__title{margin:0;font-size:var(--zn-text-heading-section-font-size);line-height:var(--zn-text-heading-section-line-height);font-weight:var(--zn-text-heading-section-font-weight);color:var(--zn-text-heading-section-color);text-transform:var(--zn-text-heading-section-transform);text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.channel-tile__subtitle{margin:0;font-size:var(--zn-text-subheading-small-font-size);line-height:var(--zn-text-subheading-small-line-height);font-weight:var(--zn-text-subheading-small-font-weight);color:var(--zn-text-subheading-small-color);text-transform:var(--zn-text-subheading-small-transform);text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.channel-tile__footer{display:flex;align-items:center;align-self:flex-start;gap:var(--zn-spacing-small)}.channel-tile__reject{flex-shrink:0;display:flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:50%;border:none;padding:0;margin:0;background-color:rgba(var(--zn-color-panel));color:rgb(var(--zn-color-error));cursor:pointer;box-shadow:0 1px 2px rgba(0,0,0,0.15)}.channel-tile__reject:hover{background-color:rgba(var(--zn-color-error));color:rgb(var(--zn-color-panel))}.channel-tile__bar{position:absolute;bottom:0;left:0;right:0;height:3px;background-color:rgba(var(--zn-shadow),0.2);overflow:hidden;z-index:1}.channel-tile__bar-fill{height:100%;width:0;transition:width 0.5s linear,background-color 0.5s ease}.channel-tile--primary{--channel-tile-color:var(--zn-color-primary)}.channel-tile--info{--channel-tile-color:var(--zn-color-info)}.channel-tile--success{--channel-tile-color:var(--zn-color-success)}.channel-tile--warning{--channel-tile-color:var(--zn-color-warning)}.channel-tile--error{--channel-tile-color:var(--zn-color-error)}.channel-tile--disabled{--channel-tile-color:var(--zn-color-disabled,204,204,204)}.channel-tile--incoming .channel-tile__body zn-button{--zn-color-tab:var(--zn-color-panel)}`;var et=class extends k{constructor(){super(...arguments);this.available=!1;this.incoming=!1;this.variant="";this.header="";this.icon="";this.color="default";this.title="";this.subtitle="";this.progress=0;this.progressColor="";this.itemId="";this.acceptUri="";this.reservedUntil=0;this.autoAcceptDelay=0;this.rejectable=!1;this.acceptIcon="plus@lu";this.acceptGaid="";this.rejectIcon="close";this.rejectLabel="Reject";this._autoAcceptFired="";this._handleReject=t=>{t.preventDefault(),t.stopPropagation(),this.emit("zn-reject",{detail:{itemId:this.itemId,variant:this.variant}})};this._handleClick=t=>{!this._isCountingDown()||!this.acceptUri||t.defaultPrevented||(t.preventDefault(),t.stopPropagation(),this._accept())}}firstUpdated(t){super.firstUpdated(t),this._startTicker()}disconnectedCallback(){this._stopTicker(),super.disconnectedCallback()}updated(t){super.updated(t),t.has("itemId")&&this.itemId!==this._autoAcceptFired&&(this._autoAcceptFired="")}_isCountingDown(){return this.available&&this.incoming}_startTicker(){this._tickInterval===void 0&&(this._tickInterval=window.setInterval(()=>{this._isCountingDown()&&(this.requestUpdate(),this._maybeAutoAccept())},200))}_stopTicker(){this._tickInterval!==void 0&&(clearInterval(this._tickInterval),this._tickInterval=void 0)}_maybeAutoAccept(){if(!this._isCountingDown()||!this.acceptUri||!this.autoAcceptDelay||!this.reservedUntil||this._autoAcceptFired===this.itemId)return;let t=this._reservedUntilMs();!t||Date.now()<t||(this._autoAcceptFired=this.itemId,this._accept())}_accept(){this.emit("zn-accept",{cancelable:!0,detail:{itemId:this.itemId,acceptUri:this.acceptUri}}).defaultPrevented||!this.acceptUri||fetch(this.acceptUri,{credentials:"same-origin"}).catch(r=>{console.error("Error accepting interaction",r)})}_reservedUntilMs(){return this.reservedUntil?this.reservedUntil.toString().length===10?this.reservedUntil*1e3:this.reservedUntil:0}_countdownPercent(){let t=this._reservedUntilMs();if(!t||!this.autoAcceptDelay)return 0;let r=this.autoAcceptDelay,n=Math.max(0,t-Date.now()),a=Math.max(0,r-n);return Math.min(100,Math.max(0,a/r*100))}_remainingSeconds(){let t=this._reservedUntilMs();return!t||!this.autoAcceptDelay?null:Math.max(0,Math.ceil((t-Date.now())/1e3))}render(){let t=this.title||(this.available?"Available":""),r=this._isCountingDown()?this._countdownPercent():null,n=this._isCountingDown()?this._remainingSeconds():null;return u`
1742
1742
  <div
1743
1743
  part="base"
1744
1744
  class=${M({"channel-tile":!0,"channel-tile--available":this.available,"channel-tile--active":!this.available,"channel-tile--incoming":this.available&&this.incoming,[`channel-tile--${this.color}`]:!0})}
@@ -1800,7 +1800,7 @@ import{a as Fn,b as h3,c as _r,d as c,e as V}from"./chunks/zn.UBLZO6CI.js";var K
1800
1800
  gaid=${this.acceptGaid}
1801
1801
  no-hover>
1802
1802
  </zn-button>
1803
- </slot>`}};Ze.styles=z(R0),c([d({type:Boolean,reflect:!0})],Ze.prototype,"available",2),c([d({type:Boolean,reflect:!0})],Ze.prototype,"incoming",2),c([d({reflect:!0})],Ze.prototype,"variant",2),c([d()],Ze.prototype,"header",2),c([d()],Ze.prototype,"icon",2),c([d({reflect:!0})],Ze.prototype,"color",2),c([d()],Ze.prototype,"title",2),c([d()],Ze.prototype,"subtitle",2),c([d({type:Number})],Ze.prototype,"progress",2),c([d({attribute:"progress-color"})],Ze.prototype,"progressColor",2),c([d({attribute:"item-id"})],Ze.prototype,"itemId",2),c([d({attribute:"accept-uri"})],Ze.prototype,"acceptUri",2),c([d({type:Number,attribute:"reserved-until"})],Ze.prototype,"reservedUntil",2),c([d({type:Number,attribute:"auto-accept-delay"})],Ze.prototype,"autoAcceptDelay",2),c([d({type:Boolean,reflect:!0})],Ze.prototype,"rejectable",2),c([d({attribute:"accept-icon"})],Ze.prototype,"acceptIcon",2),c([d({attribute:"accept-gaid"})],Ze.prototype,"acceptGaid",2),c([d({attribute:"reject-icon"})],Ze.prototype,"rejectIcon",2),c([d({attribute:"reject-label"})],Ze.prototype,"rejectLabel",2);var D4=Ze;Ze.define("zn-channel-tile");function Co(o,i){let t=o.theme==="dark"?"rgb(161, 161, 170)":"rgb(113, 113, 122)",r=o.textColor??t,n=o.enableAnimations!==!1&&o.enableAnimations!==0,a=typeof o.enableAnimations=="number"?o.enableAnimations:1500;return{animation:n,animationDuration:a,animationEasing:"cubicOut",...o.colors?{color:o.colors}:{},textStyle:{color:r},tooltip:{trigger:i,appendTo:"body",valueFormatter:o.yAxisAppend?s=>`${s}${o.yAxisAppend}`:void 0},legend:{top:0,right:0,icon:"circle",textStyle:{color:r}}}}function jd(o){return{...Co(o,"axis"),grid:{left:40,right:20,top:40,bottom:30}}}function R4(o){return o.length===0||o.every(i=>!i.data||i.data.length===0)}function Gd(o){let i=R4(o.data)?{min:0,max:6}:{},t=o.scale?{scale:!0,...typeof o.scale=="number"?{boundaryGap:[`${o.scale}%`,`${o.scale}%`]}:{}}:{};return{type:"value",...o.borderColor?{splitLine:{lineStyle:{color:o.borderColor}}}:{},...i,...t,axisLabel:o.yAxisAppend?{formatter:n=>`${n}${o.yAxisAppend}`}:{}}}function Wd(o,i=!1){let t=o.borderColor?{axisLine:{lineStyle:{color:o.borderColor}}}:{};return o.xAxisType==="datetime"?{type:"time",...t}:o.xAxisType==="numeric"?{type:"value",...t}:{type:"category",data:o.categories,...i?{boundaryGap:!1}:{},...t}}function O0(o){return o.map(i=>i&&typeof i=="object"&&!Array.isArray(i)&&"x"in i&&"y"in i?[i.x,i.y]:i)}function Kd(o,i,t=()=>({})){return o.data.map(r=>({type:i,name:r.name,data:O0(r.data),...r.color?{itemStyle:{color:r.color}}:{},...o.stacked?{stack:"total"}:{},...o.enableAnimations!==!1&&o.enableAnimations!==0&&i==="bar"?{animationDelay:n=>n*50}:{},...t(r)}))}function im(o){return{...jd(o),xAxis:Wd(o),yAxis:Gd(o),series:Kd(o,"bar")}}function P0(o){return{...jd(o),xAxis:Wd(o,!0),yAxis:Gd(o),series:Kd(o,"line",()=>({symbolSize:o.datapointSize,smooth:o.smooth}))}}function H0(o){return{...jd(o),xAxis:Wd(o,!0),yAxis:Gd(o),series:Kd(o,"line",()=>({symbolSize:o.datapointSize,smooth:o.smooth,areaStyle:{opacity:.1}}))}}function F0(o){return{...jd(o),xAxis:Wd({...o,xAxisType:o.xAxisType??"numeric"}),yAxis:Gd(o),series:Kd(o,"scatter",()=>({symbolSize:o.datapointSize}))}}function nm(o,i){return o.map((t,r)=>{if(typeof t=="number")return{name:i[r]??`${r+1}`,value:t};let{color:n,itemStyle:a,...s}=t;return{...s,name:t.name??i[r]??`${r+1}`,...n?{itemStyle:{...a,color:n}}:a?{itemStyle:a}:{}}})}function B0(o){let i=o.data[0]??{name:"",data:[]},t=o.textColor??(o.theme==="dark"?"rgb(161, 161, 170)":"rgb(113, 113, 122)"),r=o.type==="donut"?o.innerRadius??"50%":0,n=o.outerRadius??"70%";return{...Co(o,"item"),series:[{type:"pie",name:i.name,data:nm(i.data??[],o.categories),radius:[r,n],center:["50%","55%"],avoidLabelOverlap:!0,label:{show:o.showLabels??!1,color:t},labelLine:{show:o.showLabels??!1,...o.borderColor?{lineStyle:{color:o.borderColor}}:{}},emphasis:{label:{show:o.showLabels??!1}}}]}}function V0(o){let i=o.indicators?.length?o.indicators:o.categories.map(t=>({name:t}));return{...Co(o,"item"),radar:{indicator:i},series:[{type:"radar",data:o.data.map(t=>({name:t.name,value:O0(t.data),...t.color?{itemStyle:{color:t.color},lineStyle:{color:t.color}}:{}}))}]}}function U0(o){let i=o.data[0]??{name:"",data:[]},[t]=i.data,r=typeof t=="number"?[{name:i.name,value:t}]:nm(i.data??[],o.categories);return{...Co(o,"item"),series:[{type:"gauge",name:i.name,min:o.minValue??0,max:o.maxValue??100,data:r,progress:{show:!0},detail:{valueAnimation:o.enableAnimations!==!1&&o.enableAnimations!==0,formatter:o.yAxisAppend?n=>`${n}${o.yAxisAppend}`:"{value}"}}]}}function j0(o){let i=o.data[0]??{name:"",data:[]};return{...Co(o,"item"),series:[{type:"funnel",name:i.name,min:o.minValue,max:o.maxValue,data:nm(i.data??[],o.categories),label:{show:o.showLabels??!0},emphasis:{label:{fontWeight:"bold"}}}]}}function N4(o){return Array.isArray(o)?typeof o[2]=="number":!1}function N0(o,i,t){let r=o.filter(N4).map(n=>n[2]);return r.length?Math[i](...r):t}function G0(o){let i=o.data[0]??{name:"",data:[]},t=i.data??[];return{...Co(o,"item"),grid:{left:60,right:20,top:40,bottom:70},xAxis:{type:"category",data:o.categories,splitArea:{show:!0}},yAxis:{type:"category",data:o.yCategories??[],splitArea:{show:!0}},visualMap:{min:o.minValue??N0(t,"min",0),max:o.maxValue??N0(t,"max",100),calculable:!0,orient:"horizontal",left:"center",bottom:0},series:[{type:"heatmap",name:i.name,data:t,label:{show:o.showLabels??!1},emphasis:{itemStyle:{shadowBlur:10,shadowColor:"rgba(0, 0, 0, 0.35)"}}}]}}function W0(o){let i=o.data[0]??{name:"",data:[]};return{...Co(o,"item"),series:[{type:"treemap",name:i.name,data:i.data??[],label:{show:o.showLabels??!0},upperLabel:{show:o.showLabels??!0}}]}}function K0(o){let i=o.data[0]??{name:"",data:[]};return{...Co(o,"item"),series:[{type:"sunburst",name:i.name,data:i.data??[],radius:[o.innerRadius??0,o.outerRadius??"90%"],label:{show:o.showLabels??!0},emphasis:{focus:"ancestor"}}]}}function O4(o){let i=new Set,t=[];for(let r of o)i.has(r.source)||(i.add(r.source),t.push({name:r.source})),i.has(r.target)||(i.add(r.target),t.push({name:r.target}));return t}function Y0(o){let i=o.data[0]??{name:"",data:[]},t=i.data??[],n=i.nodes??O4(t),a=o.theme==="dark"?"rgb(161, 161, 170)":"rgb(113, 113, 122)",s=o.textColor??a,l=o.enableAnimations!==!1&&o.enableAnimations!==0,p=typeof o.enableAnimations=="number"?o.enableAnimations:1500;return{animation:l,animationDuration:p,animationEasing:"cubicOut",...o.colors?{color:o.colors}:{},textStyle:{color:s},tooltip:{trigger:"item",appendTo:"body"},series:[{type:"sankey",name:i.name,data:n,links:t,label:{color:s,textBorderWidth:0},lineStyle:{color:"source",opacity:o.theme==="dark"?.4:.3},emphasis:{focus:"adjacency"}}]}}var Q0;function Yd(){return Q0??(Q0=(async()=>{let[o,i,t,r]=await Promise.all([import("./chunks/zn.AI3T35DX.js"),import("./chunks/zn.EHO4QQOL.js"),import("./chunks/zn.6RARZYEJ.js"),import("./chunks/zn.S4ZVBYAS.js")]);return o.use([i.BarChart,i.FunnelChart,i.GaugeChart,i.HeatmapChart,i.LineChart,i.PieChart,i.RadarChart,i.SankeyChart,i.ScatterChart,i.SunburstChart,i.TreemapChart,t.GridComponent,t.TooltipComponent,t.LegendComponent,t.TitleComponent,t.DataZoomComponent,t.RadarComponent,t.VisualMapComponent,r.CanvasRenderer]),o})()),Q0}var X0=_`@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;width:100%}.chart{position:relative}`;var Pe=class extends k{constructor(){super(...arguments);this.type="bar";this.data=[];this.categories=[];this.yCategories=[];this.indicators=[];this.datapointSize=1;this.stacked=!1;this.live=!1;this.dataUrl="";this.liveInterval=1e3;this.height=300;this.enableAnimations=!1;this.smooth=!1;this.scale=!1;this.resizeObserver=new ht(this,{target:null,skipInitial:!0,callback:()=>this.chart?.resize()})}firstUpdated(t){this.initPromise=this.initChart().catch(()=>{}),super.firstUpdated(t)}async getUpdateComplete(){let t=await super.getUpdateComplete();return await this.initPromise,t}getTheme(){return this.getAttribute("m")==="dark"?"dark":this.getAttribute("m")==="light"?"light":this.getAttribute("t")==="dark"?"dark":"light"}getTextColor(){let t=getComputedStyle(this),r=t.getPropertyValue("--zn-text").trim();if(!r)return;let n=t.getPropertyValue("--zn-text-opacity").trim()||"1";return`rgba(${r}, ${n})`}getBorderColor(){let t=getComputedStyle(this).getPropertyValue("--zn-border-color").trim();return t?`rgb(${t})`:void 0}buildOption(){let t={type:this.type,data:this.data??[],categories:Array.isArray(this.categories)?this.categories:[],xAxisType:this.xAxis,yAxisAppend:this.yAxisAppend,stacked:this.stacked,enableAnimations:this.enableAnimations,datapointSize:this.datapointSize,colors:this.colors,theme:this.getTheme(),smooth:this.smooth,scale:this.scale,textColor:this.getTextColor(),borderColor:this.getBorderColor(),innerRadius:this.innerRadius,outerRadius:this.outerRadius,showLabels:this.showLabels,yCategories:Array.isArray(this.yCategories)?this.yCategories:[],indicators:Array.isArray(this.indicators)?this.indicators:[],minValue:this.minValue,maxValue:this.maxValue};switch(this.type){case"bar":return im(t);case"line":return P0(t);case"area":return H0(t);case"funnel":return j0(t);case"gauge":return U0(t);case"heatmap":return G0(t);case"donut":case"pie":return B0(t);case"radar":return V0(t);case"sankey":return Y0(t);case"scatter":return F0(t);case"sunburst":return K0(t);case"treemap":return W0(t);default:return im(t)}}async initChart(){let t=this.shadowRoot?.getElementById("chart");if(!t)return;t.style.height=`${this.height}px`;let r=await Yd();!this.isConnected||this.chart||(this.echarts=r,this.chart=r.init(t),this.chart.setOption(this.buildOption()),this.syncGroup&&(this.chart.group=this.syncGroup,r.connect(this.syncGroup)),this.resizeObserver.observe(t),this.live&&this.dataUrl&&this.startLive())}startLive(){this.liveTimer=window.setInterval(async()=>{try{let r=await(await fetch(this.dataUrl)).json();this.data=r,this.chart?.setOption({...this.buildOption()})}catch{}},this.liveInterval)}reinit(){this.chart?.dispose(),this.chart=void 0,this.initPromise=this.initChart().catch(()=>{})}attributeChangedCallback(t,r,n){if(super.attributeChangedCallback(t,r,n),!!this.chart){if(t==="t"){this.reinit();return}if(t==="type"){this.reinit();return}if(t==="height"){let a=this.shadowRoot?.getElementById("chart");a&&(a.style.height=`${this.height}px`),this.chart.resize();return}if(t==="sync-group"){n?(this.chart.group=n,this.echarts?.connect(n)):this.chart.group="";return}this.chart.setOption({...this.buildOption()})}}disconnectedCallback(){super.disconnectedCallback(),this.liveTimer&&clearInterval(this.liveTimer),this.chart?.dispose(),this.chart=void 0}render(){return u`<div class="chart"><div id="chart"></div></div>`}};Pe.styles=z(X0),c([d()],Pe.prototype,"type",2),c([d({type:Array})],Pe.prototype,"data",2),c([d({type:Array})],Pe.prototype,"categories",2),c([d({attribute:"y-categories",type:Array})],Pe.prototype,"yCategories",2),c([d({type:Array})],Pe.prototype,"indicators",2),c([d({attribute:"xaxis"})],Pe.prototype,"xAxis",2),c([d({type:Number,attribute:"d-size"})],Pe.prototype,"datapointSize",2),c([d({type:Boolean})],Pe.prototype,"stacked",2),c([d({type:Boolean})],Pe.prototype,"live",2),c([d({attribute:"data-url"})],Pe.prototype,"dataUrl",2),c([d({attribute:"live-interval",type:Number})],Pe.prototype,"liveInterval",2),c([d({type:Number,reflect:!0})],Pe.prototype,"height",2),c([d({attribute:"enable-animations",converter:{fromAttribute:t=>{if(t===null)return!1;if(t===""||t==="true")return!0;let r=parseFloat(t);return Number.isNaN(r)?!0:r}}})],Pe.prototype,"enableAnimations",2),c([d({attribute:"y-axis-append"})],Pe.prototype,"yAxisAppend",2),c([d({type:Array})],Pe.prototype,"colors",2),c([d({attribute:"sync-group"})],Pe.prototype,"syncGroup",2),c([d({type:Boolean})],Pe.prototype,"smooth",2),c([d({attribute:"inner-radius"})],Pe.prototype,"innerRadius",2),c([d({attribute:"outer-radius"})],Pe.prototype,"outerRadius",2),c([d({attribute:"show-labels",type:Boolean})],Pe.prototype,"showLabels",2),c([d({attribute:"min-value",type:Number})],Pe.prototype,"minValue",2),c([d({attribute:"max-value",type:Number})],Pe.prototype,"maxValue",2),c([d({converter:{fromAttribute:t=>{if(t===null)return!1;if(t===""||t==="true")return!0;let r=parseFloat(t);return Number.isNaN(r)?!0:r}}})],Pe.prototype,"scale",2);var P4=Pe;Pe.define("zn-chart");var J0=_`@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>div,zn-simplechart>div{width:115px;height:50px;cursor:pointer}`;var H4=["Jun 2016","Jul 2016","Aug 2016","Sep 2016","Oct 2016","Nov 2016","Dec 2016","Jan 2017","Feb 2017","Mar 2017","Apr 2017","May 2017"],F4=[56.4,39.8,66.8,66.4,40.6,55.2,77.4,69.8,57.8,76,110.8,142.6],Tn=class extends k{constructor(){super(...arguments);this.enableAnimations=!1;this.resizeObserver=new ht(this,{target:null,skipInitial:!0,callback:()=>this.chart?.resize()})}firstUpdated(){this.initPromise=this.initChart().catch(()=>{})}async getUpdateComplete(){let t=await super.getUpdateComplete();return await this.initPromise,t}async initChart(){let t=this.shadowRoot?.getElementById("chart");if(!t)return;let r=await Yd();if(!this.isConnected||this.chart)return;this.chart=r.init(t);let n=this.datasets?.[0]?.data??F4,a=this.labels??H4,s=this.enableAnimations!==!1&&this.enableAnimations!==0,l=typeof this.enableAnimations=="number"?this.enableAnimations:1500;this.chart.setOption({animation:s,animationDuration:l,animationEasing:"cubicOut",tooltip:{trigger:"axis",appendTo:"body",backgroundColor:"rgba(0,0,0,0.7)",borderWidth:0,textStyle:{color:"#fff"}},xAxis:{type:"category",data:a,show:!1},yAxis:{type:"value",show:!1},grid:{left:0,right:0,top:0,bottom:0},series:[{type:"bar",data:n,barWidth:7,itemStyle:{color:"#29C1BC",borderRadius:10},emphasis:{itemStyle:{color:"#19837f"}}}]}),this.resizeObserver.observe(t)}disconnectedCallback(){super.disconnectedCallback(),this.chart?.dispose()}render(){return u`<div id="chart"></div>`}};Tn.styles=z(J0),c([d({attribute:"datasets",type:Array})],Tn.prototype,"datasets",2),c([d({attribute:"labels",type:Array})],Tn.prototype,"labels",2),c([d({attribute:"enable-animations",converter:{fromAttribute:t=>{if(t===null)return!1;if(t===""||t==="true")return!0;let r=parseFloat(t);return Number.isNaN(r)?!0:r}}})],Tn.prototype,"enableAnimations",2);var B4=Tn;Tn.define("zn-simple-chart");var Z0=_`@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}.header{flex-grow:1}.header .caption{justify-content:space-between;gap:var(--zn-base-gap);max-width:100%}.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-icon-size,20px);margin:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;display:flex;gap:var(--zn-spacing-2x-small);align-items:center;text-wrap:auto}.caption__back{display:flex;justify-content:center;align-items:center;color:inherit}:host([transparent])>div{background-color:transparent}:host([with-closer]) .content{padding-right:40px}:host([navigation])>div h1{padding-bottom:0}:host #nav-container{gap:0;border-bottom:1px solid rgb(var(--zn-border-color));margin:0 3px}.alt-overlay{display:none}:host(.alt-pressed) .alt-overlay:empty{display:none !important}:host(.alt-pressed) .alt-overlay{display:flex;gap:10px;align-items:flex-end;position:absolute;left:0;top:10px;padding:6px 15px;background:rgba(var(--zn-panel),0.95);z-index:10}:host(.alt-pressed) .alt-overlay a{display:flex}:host(.alt-pressed) .alt-overlay zn-icon:hover{color:rgb(var(--zn-primary));cursor:pointer}:host([transparent]) .header{margin:0}.header{display:flex;flex-direction:column;margin:0;overflow:hidden}.header .content{display:flex;flex-wrap:wrap;width:100%;max-width:100%;height:-moz-fit-content;height:fit-content;min-height:var(--zn-input-height-medium,36px);gap:10px;margin:0 auto;padding:var(--zn-base-gap)}.header__left{display:flex;justify-content:center;flex-direction:column;gap:1px;flex-shrink:1;max-width:100%}.header__right{flex-grow:1;flex-shrink:1;overflow-x:clip;overflow-clip-margin:var(--zn-focus-ring-outset);overflow-y:visible;min-width:20px}.header .navless{min-height:10px}.header .content{position:relative;gap:10px}.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(a)::after{content:">";margin-left:var(--zn-spacing-2x-small);color:rgb(var(--zn-text-muted));font-weight:var(--zn-font-weight-normal)}.header .caption{flex-grow:1;display:flex;align-items:center;gap:10px;max-width:100%;line-height:var(--zn-icon-size,20px)}.header .caption a{display:flex;align-items:center;color:inherit;text-decoration:none}.header .caption a zn-icon{cursor:pointer}.header .caption a zn-icon:hover{color:rgb(var(--zn-primary))}.header h1{flex-grow:1;overflow:hidden;text-overflow:ellipsis;color:rgb(var(--zn-text-page-title));margin:0;font-size:var(--zn-font-size-medium);font-weight:var(--zn-font-weight-medium)}@media screen and (min-width:var(--zn-container-lg)){.header h1{font-size:var(--zn-font-size-large)}}.header h1:empty{display:none}.header slot{display:flex;align-items:center;flex-wrap:wrap;gap:var(--zn-spacing-small);word-break:break-word}.header slot[name=nav]{flex-basis:100%}.header slot[name=actions]{justify-content:end;flex-wrap:nowrap}.header slot[name=actions]::slotted(zn-button-menu){flex-grow:1;flex-shrink:1}.header .actions{display:flex}:host([baseless]) .header{border-bottom:none !important}`;var Wt=class extends k{constructor(){super(...arguments);this.hasSlotController=new Y(this,"[default]","nav","breadcrumb");this.transparent=!1;this.navigation=[];this.hideBreadcrumb=!1;this.handleAltPress=()=>{this.classList.toggle("alt-pressed",!0)};this.handleAltUp=()=>{this.classList.toggle("alt-pressed",!1)}}connectedCallback(){super.connectedCallback(),window.addEventListener("alt-press",this.handleAltPress),window.addEventListener("alt-up",this.handleAltUp)}disconnectedCallback(){super.disconnectedCallback(),window.removeEventListener("alt-press",this.handleAltPress),window.removeEventListener("alt-up",this.handleAltUp)}firstUpdated(t){super.firstUpdated(t),this.navbar=this.querySelector("zn-navbar"),this.updateNav()}updateNav(){if(!this.navbar&&this.navigation&&this.navigation.length>0){this.navbar=document.createElement("zn-navbar");let t=this.shadowRoot?.querySelector("#nav-container");t&&t.appendChild(this.navbar)}this.navbar&&(this.navbar.navigation=this.navigation,this.navbar.setAttribute("baseless",""))}render(){let t=this.hasSlotController.test("[default]"),r=this.hasSlotController.test("nav"),n=this.navigation&&this.navigation.length>0||r,a=this.previousPath,s=this.entityId,l=this.fullLocation,p=!this.hideBreadcrumb&&this.hasSlotController.test("breadcrumb"),h=u`
1803
+ </slot>`}};et.styles=z(R0),c([d({type:Boolean,reflect:!0})],et.prototype,"available",2),c([d({type:Boolean,reflect:!0})],et.prototype,"incoming",2),c([d({reflect:!0})],et.prototype,"variant",2),c([d()],et.prototype,"header",2),c([d()],et.prototype,"icon",2),c([d({reflect:!0})],et.prototype,"color",2),c([d()],et.prototype,"title",2),c([d()],et.prototype,"subtitle",2),c([d({type:Number})],et.prototype,"progress",2),c([d({attribute:"progress-color"})],et.prototype,"progressColor",2),c([d({attribute:"item-id"})],et.prototype,"itemId",2),c([d({attribute:"accept-uri"})],et.prototype,"acceptUri",2),c([d({type:Number,attribute:"reserved-until"})],et.prototype,"reservedUntil",2),c([d({type:Number,attribute:"auto-accept-delay"})],et.prototype,"autoAcceptDelay",2),c([d({type:Boolean,reflect:!0})],et.prototype,"rejectable",2),c([d({attribute:"accept-icon"})],et.prototype,"acceptIcon",2),c([d({attribute:"accept-gaid"})],et.prototype,"acceptGaid",2),c([d({attribute:"reject-icon"})],et.prototype,"rejectIcon",2),c([d({attribute:"reject-label"})],et.prototype,"rejectLabel",2);var D4=et;et.define("zn-channel-tile");function Co(o,i){let t=o.theme==="dark"?"rgb(161, 161, 170)":"rgb(113, 113, 122)",r=o.textColor??t,n=o.enableAnimations!==!1&&o.enableAnimations!==0,a=typeof o.enableAnimations=="number"?o.enableAnimations:1500;return{animation:n,animationDuration:a,animationEasing:"cubicOut",...o.colors?{color:o.colors}:{},textStyle:{color:r},tooltip:{trigger:i,appendTo:"body",valueFormatter:o.yAxisAppend?s=>`${s}${o.yAxisAppend}`:void 0},legend:{top:0,right:0,icon:"circle",textStyle:{color:r}}}}function jd(o){return{...Co(o,"axis"),grid:{left:40,right:20,top:40,bottom:30}}}function R4(o){return o.length===0||o.every(i=>!i.data||i.data.length===0)}function Gd(o){let i=R4(o.data)?{min:0,max:6}:{},t=o.scale?{scale:!0,...typeof o.scale=="number"?{boundaryGap:[`${o.scale}%`,`${o.scale}%`]}:{}}:{};return{type:"value",...o.borderColor?{splitLine:{lineStyle:{color:o.borderColor}}}:{},...i,...t,axisLabel:o.yAxisAppend?{formatter:n=>`${n}${o.yAxisAppend}`}:{}}}function Wd(o,i=!1){let t=o.borderColor?{axisLine:{lineStyle:{color:o.borderColor}}}:{};return o.xAxisType==="datetime"?{type:"time",...t}:o.xAxisType==="numeric"?{type:"value",...t}:{type:"category",data:o.categories,...i?{boundaryGap:!1}:{},...t}}function O0(o){return o.map(i=>i&&typeof i=="object"&&!Array.isArray(i)&&"x"in i&&"y"in i?[i.x,i.y]:i)}function Kd(o,i,t=()=>({})){return o.data.map(r=>({type:i,name:r.name,data:O0(r.data),...r.color?{itemStyle:{color:r.color}}:{},...o.stacked?{stack:"total"}:{},...o.enableAnimations!==!1&&o.enableAnimations!==0&&i==="bar"?{animationDelay:n=>n*50}:{},...t(r)}))}function im(o){return{...jd(o),xAxis:Wd(o),yAxis:Gd(o),series:Kd(o,"bar")}}function P0(o){return{...jd(o),xAxis:Wd(o,!0),yAxis:Gd(o),series:Kd(o,"line",()=>({symbolSize:o.datapointSize,smooth:o.smooth}))}}function H0(o){return{...jd(o),xAxis:Wd(o,!0),yAxis:Gd(o),series:Kd(o,"line",()=>({symbolSize:o.datapointSize,smooth:o.smooth,areaStyle:{opacity:.1}}))}}function F0(o){return{...jd(o),xAxis:Wd({...o,xAxisType:o.xAxisType??"numeric"}),yAxis:Gd(o),series:Kd(o,"scatter",()=>({symbolSize:o.datapointSize}))}}function nm(o,i){return o.map((t,r)=>{if(typeof t=="number")return{name:i[r]??`${r+1}`,value:t};let{color:n,itemStyle:a,...s}=t;return{...s,name:t.name??i[r]??`${r+1}`,...n?{itemStyle:{...a,color:n}}:a?{itemStyle:a}:{}}})}function B0(o){let i=o.data[0]??{name:"",data:[]},t=o.textColor??(o.theme==="dark"?"rgb(161, 161, 170)":"rgb(113, 113, 122)"),r=o.type==="donut"?o.innerRadius??"50%":0,n=o.outerRadius??"70%";return{...Co(o,"item"),series:[{type:"pie",name:i.name,data:nm(i.data??[],o.categories),radius:[r,n],center:["50%","55%"],avoidLabelOverlap:!0,label:{show:o.showLabels??!1,color:t},labelLine:{show:o.showLabels??!1,...o.borderColor?{lineStyle:{color:o.borderColor}}:{}},emphasis:{label:{show:o.showLabels??!1}}}]}}function V0(o){let i=o.indicators?.length?o.indicators:o.categories.map(t=>({name:t}));return{...Co(o,"item"),radar:{indicator:i},series:[{type:"radar",data:o.data.map(t=>({name:t.name,value:O0(t.data),...t.color?{itemStyle:{color:t.color},lineStyle:{color:t.color}}:{}}))}]}}function U0(o){let i=o.data[0]??{name:"",data:[]},[t]=i.data,r=typeof t=="number"?[{name:i.name,value:t}]:nm(i.data??[],o.categories);return{...Co(o,"item"),series:[{type:"gauge",name:i.name,min:o.minValue??0,max:o.maxValue??100,data:r,progress:{show:!0},detail:{valueAnimation:o.enableAnimations!==!1&&o.enableAnimations!==0,formatter:o.yAxisAppend?n=>`${n}${o.yAxisAppend}`:"{value}"}}]}}function j0(o){let i=o.data[0]??{name:"",data:[]};return{...Co(o,"item"),series:[{type:"funnel",name:i.name,min:o.minValue,max:o.maxValue,data:nm(i.data??[],o.categories),label:{show:o.showLabels??!0},emphasis:{label:{fontWeight:"bold"}}}]}}function N4(o){return Array.isArray(o)?typeof o[2]=="number":!1}function N0(o,i,t){let r=o.filter(N4).map(n=>n[2]);return r.length?Math[i](...r):t}function G0(o){let i=o.data[0]??{name:"",data:[]},t=i.data??[];return{...Co(o,"item"),grid:{left:60,right:20,top:40,bottom:70},xAxis:{type:"category",data:o.categories,splitArea:{show:!0}},yAxis:{type:"category",data:o.yCategories??[],splitArea:{show:!0}},visualMap:{min:o.minValue??N0(t,"min",0),max:o.maxValue??N0(t,"max",100),calculable:!0,orient:"horizontal",left:"center",bottom:0},series:[{type:"heatmap",name:i.name,data:t,label:{show:o.showLabels??!1},emphasis:{itemStyle:{shadowBlur:10,shadowColor:"rgba(0, 0, 0, 0.35)"}}}]}}function W0(o){let i=o.data[0]??{name:"",data:[]};return{...Co(o,"item"),series:[{type:"treemap",name:i.name,data:i.data??[],label:{show:o.showLabels??!0},upperLabel:{show:o.showLabels??!0}}]}}function K0(o){let i=o.data[0]??{name:"",data:[]};return{...Co(o,"item"),series:[{type:"sunburst",name:i.name,data:i.data??[],radius:[o.innerRadius??0,o.outerRadius??"90%"],label:{show:o.showLabels??!0},emphasis:{focus:"ancestor"}}]}}function O4(o){let i=new Set,t=[];for(let r of o)i.has(r.source)||(i.add(r.source),t.push({name:r.source})),i.has(r.target)||(i.add(r.target),t.push({name:r.target}));return t}function Y0(o){let i=o.data[0]??{name:"",data:[]},t=i.data??[],n=i.nodes??O4(t),a=o.theme==="dark"?"rgb(161, 161, 170)":"rgb(113, 113, 122)",s=o.textColor??a,l=o.enableAnimations!==!1&&o.enableAnimations!==0,p=typeof o.enableAnimations=="number"?o.enableAnimations:1500;return{animation:l,animationDuration:p,animationEasing:"cubicOut",...o.colors?{color:o.colors}:{},textStyle:{color:s},tooltip:{trigger:"item",appendTo:"body"},series:[{type:"sankey",name:i.name,data:n,links:t,label:{color:s,textBorderWidth:0},lineStyle:{color:"source",opacity:o.theme==="dark"?.4:.3},emphasis:{focus:"adjacency"}}]}}var Q0;function Yd(){return Q0??(Q0=(async()=>{let[o,i,t,r]=await Promise.all([import("./chunks/zn.AI3T35DX.js"),import("./chunks/zn.EHO4QQOL.js"),import("./chunks/zn.6RARZYEJ.js"),import("./chunks/zn.S4ZVBYAS.js")]);return o.use([i.BarChart,i.FunnelChart,i.GaugeChart,i.HeatmapChart,i.LineChart,i.PieChart,i.RadarChart,i.SankeyChart,i.ScatterChart,i.SunburstChart,i.TreemapChart,t.GridComponent,t.TooltipComponent,t.LegendComponent,t.TitleComponent,t.DataZoomComponent,t.RadarComponent,t.VisualMapComponent,r.CanvasRenderer]),o})()),Q0}var X0=_`@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;width:100%}.chart{position:relative}`;var Pe=class extends k{constructor(){super(...arguments);this.type="bar";this.data=[];this.categories=[];this.yCategories=[];this.indicators=[];this.datapointSize=1;this.stacked=!1;this.live=!1;this.dataUrl="";this.liveInterval=1e3;this.height=300;this.enableAnimations=!1;this.smooth=!1;this.scale=!1;this.resizeObserver=new ht(this,{target:null,skipInitial:!0,callback:()=>this.chart?.resize()})}firstUpdated(t){this.initPromise=this.initChart().catch(()=>{}),super.firstUpdated(t)}async getUpdateComplete(){let t=await super.getUpdateComplete();return await this.initPromise,t}getTheme(){return this.getAttribute("m")==="dark"?"dark":this.getAttribute("m")==="light"?"light":this.getAttribute("t")==="dark"?"dark":"light"}getTextColor(){let t=getComputedStyle(this),r=t.getPropertyValue("--zn-text").trim();if(!r)return;let n=t.getPropertyValue("--zn-text-opacity").trim()||"1";return`rgba(${r}, ${n})`}getBorderColor(){let t=getComputedStyle(this).getPropertyValue("--zn-border-color").trim();return t?`rgb(${t})`:void 0}buildOption(){let t={type:this.type,data:this.data??[],categories:Array.isArray(this.categories)?this.categories:[],xAxisType:this.xAxis,yAxisAppend:this.yAxisAppend,stacked:this.stacked,enableAnimations:this.enableAnimations,datapointSize:this.datapointSize,colors:this.colors,theme:this.getTheme(),smooth:this.smooth,scale:this.scale,textColor:this.getTextColor(),borderColor:this.getBorderColor(),innerRadius:this.innerRadius,outerRadius:this.outerRadius,showLabels:this.showLabels,yCategories:Array.isArray(this.yCategories)?this.yCategories:[],indicators:Array.isArray(this.indicators)?this.indicators:[],minValue:this.minValue,maxValue:this.maxValue};switch(this.type){case"bar":return im(t);case"line":return P0(t);case"area":return H0(t);case"funnel":return j0(t);case"gauge":return U0(t);case"heatmap":return G0(t);case"donut":case"pie":return B0(t);case"radar":return V0(t);case"sankey":return Y0(t);case"scatter":return F0(t);case"sunburst":return K0(t);case"treemap":return W0(t);default:return im(t)}}async initChart(){let t=this.shadowRoot?.getElementById("chart");if(!t)return;t.style.height=`${this.height}px`;let r=await Yd();!this.isConnected||this.chart||(this.echarts=r,this.chart=r.init(t),this.chart.setOption(this.buildOption()),this.syncGroup&&(this.chart.group=this.syncGroup,r.connect(this.syncGroup)),this.resizeObserver.observe(t),this.live&&this.dataUrl&&this.startLive())}startLive(){this.liveTimer=window.setInterval(async()=>{try{let r=await(await fetch(this.dataUrl)).json();this.data=r,this.chart?.setOption({...this.buildOption()})}catch{}},this.liveInterval)}reinit(){this.chart?.dispose(),this.chart=void 0,this.initPromise=this.initChart().catch(()=>{})}attributeChangedCallback(t,r,n){if(super.attributeChangedCallback(t,r,n),!!this.chart){if(t==="t"){this.reinit();return}if(t==="type"){this.reinit();return}if(t==="height"){let a=this.shadowRoot?.getElementById("chart");a&&(a.style.height=`${this.height}px`),this.chart.resize();return}if(t==="sync-group"){n?(this.chart.group=n,this.echarts?.connect(n)):this.chart.group="";return}this.chart.setOption({...this.buildOption()})}}disconnectedCallback(){super.disconnectedCallback(),this.liveTimer&&clearInterval(this.liveTimer),this.chart?.dispose(),this.chart=void 0}render(){return u`<div class="chart"><div id="chart"></div></div>`}};Pe.styles=z(X0),c([d()],Pe.prototype,"type",2),c([d({type:Array})],Pe.prototype,"data",2),c([d({type:Array})],Pe.prototype,"categories",2),c([d({attribute:"y-categories",type:Array})],Pe.prototype,"yCategories",2),c([d({type:Array})],Pe.prototype,"indicators",2),c([d({attribute:"xaxis"})],Pe.prototype,"xAxis",2),c([d({type:Number,attribute:"d-size"})],Pe.prototype,"datapointSize",2),c([d({type:Boolean})],Pe.prototype,"stacked",2),c([d({type:Boolean})],Pe.prototype,"live",2),c([d({attribute:"data-url"})],Pe.prototype,"dataUrl",2),c([d({attribute:"live-interval",type:Number})],Pe.prototype,"liveInterval",2),c([d({type:Number,reflect:!0})],Pe.prototype,"height",2),c([d({attribute:"enable-animations",converter:{fromAttribute:t=>{if(t===null)return!1;if(t===""||t==="true")return!0;let r=parseFloat(t);return Number.isNaN(r)?!0:r}}})],Pe.prototype,"enableAnimations",2),c([d({attribute:"y-axis-append"})],Pe.prototype,"yAxisAppend",2),c([d({type:Array})],Pe.prototype,"colors",2),c([d({attribute:"sync-group"})],Pe.prototype,"syncGroup",2),c([d({type:Boolean})],Pe.prototype,"smooth",2),c([d({attribute:"inner-radius"})],Pe.prototype,"innerRadius",2),c([d({attribute:"outer-radius"})],Pe.prototype,"outerRadius",2),c([d({attribute:"show-labels",type:Boolean})],Pe.prototype,"showLabels",2),c([d({attribute:"min-value",type:Number})],Pe.prototype,"minValue",2),c([d({attribute:"max-value",type:Number})],Pe.prototype,"maxValue",2),c([d({converter:{fromAttribute:t=>{if(t===null)return!1;if(t===""||t==="true")return!0;let r=parseFloat(t);return Number.isNaN(r)?!0:r}}})],Pe.prototype,"scale",2);var P4=Pe;Pe.define("zn-chart");var J0=_`@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>div,zn-simplechart>div{width:115px;height:50px;cursor:pointer}`;var H4=["Jun 2016","Jul 2016","Aug 2016","Sep 2016","Oct 2016","Nov 2016","Dec 2016","Jan 2017","Feb 2017","Mar 2017","Apr 2017","May 2017"],F4=[56.4,39.8,66.8,66.4,40.6,55.2,77.4,69.8,57.8,76,110.8,142.6],Tn=class extends k{constructor(){super(...arguments);this.enableAnimations=!1;this.resizeObserver=new ht(this,{target:null,skipInitial:!0,callback:()=>this.chart?.resize()})}firstUpdated(){this.initPromise=this.initChart().catch(()=>{})}async getUpdateComplete(){let t=await super.getUpdateComplete();return await this.initPromise,t}async initChart(){let t=this.shadowRoot?.getElementById("chart");if(!t)return;let r=await Yd();if(!this.isConnected||this.chart)return;this.chart=r.init(t);let n=this.datasets?.[0]?.data??F4,a=this.labels??H4,s=this.enableAnimations!==!1&&this.enableAnimations!==0,l=typeof this.enableAnimations=="number"?this.enableAnimations:1500;this.chart.setOption({animation:s,animationDuration:l,animationEasing:"cubicOut",tooltip:{trigger:"axis",appendTo:"body",backgroundColor:"rgba(0,0,0,0.7)",borderWidth:0,textStyle:{color:"#fff"}},xAxis:{type:"category",data:a,show:!1},yAxis:{type:"value",show:!1},grid:{left:0,right:0,top:0,bottom:0},series:[{type:"bar",data:n,barWidth:7,itemStyle:{color:"#29C1BC",borderRadius:10},emphasis:{itemStyle:{color:"#19837f"}}}]}),this.resizeObserver.observe(t)}disconnectedCallback(){super.disconnectedCallback(),this.chart?.dispose()}render(){return u`<div id="chart"></div>`}};Tn.styles=z(J0),c([d({attribute:"datasets",type:Array})],Tn.prototype,"datasets",2),c([d({attribute:"labels",type:Array})],Tn.prototype,"labels",2),c([d({attribute:"enable-animations",converter:{fromAttribute:t=>{if(t===null)return!1;if(t===""||t==="true")return!0;let r=parseFloat(t);return Number.isNaN(r)?!0:r}}})],Tn.prototype,"enableAnimations",2);var B4=Tn;Tn.define("zn-simple-chart");var Z0=_`@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}.header{flex-grow:1}.header .caption{justify-content:space-between;gap:var(--zn-base-gap);max-width:100%}.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-icon-size,20px);margin:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;display:flex;gap:var(--zn-spacing-2x-small);align-items:center;text-wrap:auto}.caption__back{display:flex;justify-content:center;align-items:center;color:inherit}:host([transparent])>div{background-color:transparent}:host([with-closer]) .content{padding-right:40px}:host([navigation])>div h1{padding-bottom:0}:host #nav-container{gap:0;border-bottom:1px solid rgb(var(--zn-border-color));margin:0 3px}.alt-overlay{display:none}:host(.alt-pressed) .alt-overlay:empty{display:none !important}:host(.alt-pressed) .alt-overlay{display:flex;gap:10px;align-items:flex-end;position:absolute;left:0;top:10px;padding:6px 15px;background:rgba(var(--zn-panel),0.95);z-index:10}:host(.alt-pressed) .alt-overlay a{display:flex}:host(.alt-pressed) .alt-overlay zn-icon:hover{color:rgb(var(--zn-primary));cursor:pointer}:host([transparent]) .header{margin:0}.header{display:flex;flex-direction:column;margin:0;overflow:hidden}.header .content{display:flex;flex-wrap:wrap;width:100%;max-width:100%;height:-moz-fit-content;height:fit-content;min-height:var(--zn-input-height-medium,36px);gap:10px;margin:0 auto;padding:var(--zn-base-gap)}.header__left{display:flex;justify-content:center;flex-direction:column;gap:1px;flex-shrink:1;max-width:100%}.header__right{flex-grow:1;flex-shrink:1;overflow-x:clip;overflow-clip-margin:var(--zn-focus-ring-outset);overflow-y:visible;min-width:20px}.header .navless{min-height:10px}.header .content{position:relative;gap:10px}.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(a)::after{content:">";margin-left:var(--zn-spacing-2x-small);color:rgb(var(--zn-text-muted));font-weight:var(--zn-font-weight-normal)}.header .caption{flex-grow:1;display:flex;align-items:center;gap:10px;max-width:100%;line-height:var(--zn-icon-size,20px)}.header .caption a{display:flex;align-items:center;color:inherit;text-decoration:none}.header .caption a zn-icon{cursor:pointer}.header .caption a zn-icon:hover{color:rgb(var(--zn-primary))}.header h1{flex-grow:1;overflow:hidden;text-overflow:ellipsis;color:rgb(var(--zn-text-page-title));margin:0;font-size:var(--zn-font-size-medium);font-weight:var(--zn-font-weight-medium)}@media screen and (min-width:var(--zn-container-lg)){.header h1{font-size:var(--zn-font-size-large)}}.header h1:empty{display:none}.header slot{display:flex;align-items:center;flex-wrap:wrap;gap:var(--zn-spacing-small);word-break:break-word}.header slot[name=nav]{flex-basis:100%}.header slot[name=actions]{justify-content:end;flex-wrap:nowrap}.header slot[name=actions]::slotted(zn-button-menu){flex-grow:1;flex-shrink:1}.header .actions{display:flex}:host([baseless]) .header{border-bottom:none !important}`;var Wt=class extends k{constructor(){super(...arguments);this.hasSlotController=new Y(this,"[default]","nav","breadcrumb");this.transparent=!1;this.navigation=[];this.hideBreadcrumb=!1;this.handleAltPress=()=>{this.classList.toggle("alt-pressed",!0)};this.handleAltUp=()=>{this.classList.toggle("alt-pressed",!1)}}connectedCallback(){super.connectedCallback(),window.addEventListener("alt-press",this.handleAltPress),window.addEventListener("alt-up",this.handleAltUp)}disconnectedCallback(){super.disconnectedCallback(),window.removeEventListener("alt-press",this.handleAltPress),window.removeEventListener("alt-up",this.handleAltUp)}firstUpdated(t){super.firstUpdated(t),this.navbar=this.querySelector("zn-navbar"),this.updateNav()}updateNav(){if(!this.navbar&&this.navigation&&this.navigation.length>0){this.navbar=document.createElement("zn-navbar");let t=this.shadowRoot?.querySelector("#nav-container");t&&t.appendChild(this.navbar)}this.navbar&&(this.navbar.navigation=this.navigation,this.navbar.setAttribute("baseless",""))}render(){let t=this.hasSlotController.test("[default]"),r=this.hasSlotController.test("nav"),n=this.navigation&&this.navigation.length>0||r,a=this.previousPath,s=this.entityId,l=this.fullLocation,p=!this.hideBreadcrumb&&this.hasSlotController.test("breadcrumb"),h=u`
1804
1804
  <div class="${M({header:!0,"header--transparent":this.transparent,"header--full-width":this.fullWidth,"header--has-nav":n,"header--has-breadcrumb":p,"header--has-previous":a,"header--has-entity-id":s,"header--has-full-location":l})}" part="base">
1805
1805
 
1806
1806
  ${l||s?u`
@@ -1899,8 +1899,8 @@ import{a as Fn,b as h3,c as _r,d as c,e as V}from"./chunks/zn.UBLZO6CI.js";var K
1899
1899
  </div>
1900
1900
  `:""}
1901
1901
  </div>
1902
- <slot name="bottom" part="bottom"></slot>`}};We.styles=z(e1),We.dependencies={"zn-dropdown":pr},c([d({attribute:"navigation",type:Array})],We.prototype,"navigation",2),c([d({attribute:"full-width",type:Boolean,reflect:!0})],We.prototype,"fullWidth",2),c([d({attribute:"icon-bar",type:Boolean,reflect:!0})],We.prototype,"iconBar",2),c([d({attribute:"slim",type:Boolean,reflect:!0})],We.prototype,"slim",2),c([d({attribute:"border",type:Boolean,reflect:!0})],We.prototype,"border",2),c([d({attribute:"hide-one",type:Boolean,reflect:!0})],We.prototype,"hideOne",2),c([d({attribute:"flush",type:Boolean,reflect:!0})],We.prototype,"flush",2),c([d({attribute:"gutter",type:Boolean,reflect:!0})],We.prototype,"gutter",2),c([d({type:Boolean})],We.prototype,"stacked",2),c([d({type:Array})],We.prototype,"dropdown",2),c([d({attribute:"no-pad",type:Boolean})],We.prototype,"noPad",2),c([d({attribute:"manual-add-items",type:Boolean})],We.prototype,"manualAddItems",2),c([d({type:Boolean})],We.prototype,"isolated",2),c([d({reflect:!0})],We.prototype,"color",2),c([d({attribute:"master-id",reflect:!0})],We.prototype,"masterId",2),c([d({attribute:"store-key",type:String})],We.prototype,"storeKey",2),c([d({attribute:"store-ttl",type:Number,reflect:!0})],We.prototype,"storeTtl",2),c([d({attribute:"local-storage",type:Boolean,reflect:!0})],We.prototype,"localStorage",2),c([d()],We.prototype,"_appended",2);var Sa=We;We.define("zn-navbar");function Qd(o){function i(he,ae){return he<<ae|he>>>32-ae}function t(he,ae){let ze,O,x,E,w;return x=he&2147483648,E=ae&2147483648,ze=he&1073741824,O=ae&1073741824,w=(he&1073741823)+(ae&1073741823),ze&&O?w^2147483648^x^E:ze||O?w?w^3221225472^x^E:w^1073741824^x^E:w^x^E}function r(he,ae,ze){return he&ae|~he&ze}function n(he,ae,ze){return he&ze|ae&~ze}function a(he,ae,ze){return he^ae^ze}function s(he,ae,ze){return ae^(he|~ze)}function l(he,ae,ze,O,x,E,w){return he=t(he,t(t(r(ae,ze,O),x),w)),t(i(he,E),ae)}function p(he,ae,ze,O,x,E,w){return he=t(he,t(t(n(ae,ze,O),x),w)),t(i(he,E),ae)}function h(he,ae,ze,O,x,E,w){return he=t(he,t(t(a(ae,ze,O),x),w)),t(i(he,E),ae)}function m(he,ae,ze,O,x,E,w){return he=t(he,t(t(s(ae,ze,O),x),w)),t(i(he,E),ae)}function f(he){for(var ae,ze=he.length,O=ze+8,x=(O-O%64)/64,E=(x+1)*16,w=Array(E-1),D=0,q=0;q<ze;)ae=(q-q%4)/4,D=q%4*8,w[ae]=w[ae]|he.charCodeAt(q)<<D,q++;return ae=(q-q%4)/4,D=q%4*8,w[ae]=w[ae]|128<<D,w[E-2]=ze<<3,w[E-1]=ze>>>29,w}function b(he){var ae="",ze="",O,x;for(x=0;x<=3;x++)O=he>>>x*8&255,ze="0"+O.toString(16),ae=ae+ze.substr(ze.length-2,2);return ae}function g(he){he=he.replace(/\r\n/g,`
1903
- `);let ae="";for(let ze=0;ze<he.length;ze++){let O=he.charCodeAt(ze);O<128?ae+=String.fromCharCode(O):O>127&&O<2048?(ae+=String.fromCharCode(O>>6|192),ae+=String.fromCharCode(O&63|128)):(ae+=String.fromCharCode(O>>12|224),ae+=String.fromCharCode(O>>6&63|128),ae+=String.fromCharCode(O&63|128))}return ae}let v,y,S,T,N,U,I,C,$,L,W=7,oe=12,xe=17,De=22,Ne=5,rt=9,er=14,Pr=20,wr=4,Nt=11,tr=16,Mt=23,uo=6,Qa=10,ue=15,Yi=21;for(o=g(o),v=f(o),I=1732584193,C=4023233417,$=2562383102,L=271733878,y=0;y<v.length;y+=16)S=I,T=C,N=$,U=L,I=l(I,C,$,L,v[y+0],W,3614090360),L=l(L,I,C,$,v[y+1],oe,3905402710),$=l($,L,I,C,v[y+2],xe,606105819),C=l(C,$,L,I,v[y+3],De,3250441966),I=l(I,C,$,L,v[y+4],W,4118548399),L=l(L,I,C,$,v[y+5],oe,1200080426),$=l($,L,I,C,v[y+6],xe,2821735955),C=l(C,$,L,I,v[y+7],De,4249261313),I=l(I,C,$,L,v[y+8],W,1770035416),L=l(L,I,C,$,v[y+9],oe,2336552879),$=l($,L,I,C,v[y+10],xe,4294925233),C=l(C,$,L,I,v[y+11],De,2304563134),I=l(I,C,$,L,v[y+12],W,1804603682),L=l(L,I,C,$,v[y+13],oe,4254626195),$=l($,L,I,C,v[y+14],xe,2792965006),C=l(C,$,L,I,v[y+15],De,1236535329),I=p(I,C,$,L,v[y+1],Ne,4129170786),L=p(L,I,C,$,v[y+6],rt,3225465664),$=p($,L,I,C,v[y+11],er,643717713),C=p(C,$,L,I,v[y+0],Pr,3921069994),I=p(I,C,$,L,v[y+5],Ne,3593408605),L=p(L,I,C,$,v[y+10],rt,38016083),$=p($,L,I,C,v[y+15],er,3634488961),C=p(C,$,L,I,v[y+4],Pr,3889429448),I=p(I,C,$,L,v[y+9],Ne,568446438),L=p(L,I,C,$,v[y+14],rt,3275163606),$=p($,L,I,C,v[y+3],er,4107603335),C=p(C,$,L,I,v[y+8],Pr,1163531501),I=p(I,C,$,L,v[y+13],Ne,2850285829),L=p(L,I,C,$,v[y+2],rt,4243563512),$=p($,L,I,C,v[y+7],er,1735328473),C=p(C,$,L,I,v[y+12],Pr,2368359562),I=h(I,C,$,L,v[y+5],wr,4294588738),L=h(L,I,C,$,v[y+8],Nt,2272392833),$=h($,L,I,C,v[y+11],tr,1839030562),C=h(C,$,L,I,v[y+14],Mt,4259657740),I=h(I,C,$,L,v[y+1],wr,2763975236),L=h(L,I,C,$,v[y+4],Nt,1272893353),$=h($,L,I,C,v[y+7],tr,4139469664),C=h(C,$,L,I,v[y+10],Mt,3200236656),I=h(I,C,$,L,v[y+13],wr,681279174),L=h(L,I,C,$,v[y+0],Nt,3936430074),$=h($,L,I,C,v[y+3],tr,3572445317),C=h(C,$,L,I,v[y+6],Mt,76029189),I=h(I,C,$,L,v[y+9],wr,3654602809),L=h(L,I,C,$,v[y+12],Nt,3873151461),$=h($,L,I,C,v[y+15],tr,530742520),C=h(C,$,L,I,v[y+2],Mt,3299628645),I=m(I,C,$,L,v[y+0],uo,4096336452),L=m(L,I,C,$,v[y+7],Qa,1126891415),$=m($,L,I,C,v[y+14],ue,2878612391),C=m(C,$,L,I,v[y+5],Yi,4237533241),I=m(I,C,$,L,v[y+12],uo,1700485571),L=m(L,I,C,$,v[y+3],Qa,2399980690),$=m($,L,I,C,v[y+10],ue,4293915773),C=m(C,$,L,I,v[y+1],Yi,2240044497),I=m(I,C,$,L,v[y+8],uo,1873313359),L=m(L,I,C,$,v[y+15],Qa,4264355552),$=m($,L,I,C,v[y+6],ue,2734768916),C=m(C,$,L,I,v[y+13],Yi,1309151649),I=m(I,C,$,L,v[y+4],uo,4149444226),L=m(L,I,C,$,v[y+11],Qa,3174756917),$=m($,L,I,C,v[y+2],ue,718787259),C=m(C,$,L,I,v[y+9],Yi,3951481745),I=t(I,S),C=t(C,T),$=t($,N),L=t(L,U);var Qi=b(I)+b(C)+b($)+b(L);return Qi.toLowerCase()}var t1=_`@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}.expanding-action--fill{padding-inline:var(--zn-spacing-medium);padding-bottom:var(--zn-spacing-2x-small);position:absolute;top:0;left:auto;right:0;bottom:0;background-color:rgb(var(--zn-panel));width:0;transition:width var(--zn-transition-slow) cubic-bezier(0.62,0.16,0.13,1.01),opacity var(--zn-transition-slow) cubic-bezier(0.62,0.16,0.13,1.01),display var(--zn-transition-slow) ease-in-out allow-discrete}@starting-style {.expanding-action--fill.expanding-action--open{width:0}}.expanding-action--fill.expanding-action--open{display:flex;flex-direction:row;align-items:center;gap:10px;height:100%;width:min(100%,800px);overflow:hidden;z-index:100;max-width:800px}.expanding-action--fill.expanding-action--open::before{content:"";position:absolute;left:calc(var(--zn-spacing-medium) * -1);right:calc(var(--zn-spacing-medium) * -1);bottom:6px;background-color:rgb(var(--zn-primary));height:2px}.expanding-action--fill.expanding-action--open>zn-icon{display:block;color:rgb(var(--zn-primary))}.expanding-action--fill.expanding-action--closed{display:none;opacity:0}@starting-style {.expanding-action--fill .expanding-action__content{opacity:0}}.expanding-action--fill .expanding-action__content{opacity:1;width:100%;display:flex;flex-direction:column;justify-content:center;padding:0}.expanding-action--drop,.expanding-action--drop .expanding-action__dropdown,.expanding-action--drop .expanding-action__dropdown zn-button[slot=trigger]{height:100%}.expanding-action--drop .expanding-action__frame ::-webkit-scrollbar{width:5px;height:5px}.expanding-action--drop .expanding-action__frame{}.expanding-action--drop .expanding-action__frame ::-webkit-scrollbar-track{background:transparent}.expanding-action--drop .expanding-action__frame{}.expanding-action--drop .expanding-action__frame ::-webkit-scrollbar-thumb{background:rgba(var(--inverse-base),0.2);border-radius:5px}.expanding-action--drop .expanding-action__frame{}.expanding-action--drop .expanding-action__frame ::-webkit-scrollbar-thumb:hover{background:rgba(var(--inverse-base),0.6)}.expanding-action--drop .expanding-action__frame{--expanding-action-trigger-width:36px;position:relative;display:flex;flex-direction:column;min-width:300px;width:var(--expanding-action-basis,var(--zn-container-smp,320px));max-width:80vw;max-height:var(--expanding-action-max-height,var(--auto-size-available-height,80vh));background-color:rgb(var(--zn-panel));box-shadow:0 8px 16px -6px rgba(33,33,33,0.18);border:solid 1px rgb(var(--zn-border-color));border-radius:var(--zn-border-radius) 0 var(--zn-border-radius) var(--zn-border-radius);padding:0;height:100%}.expanding-action--drop .expanding-action__frame::before{content:"";position:absolute;top:-1px;left:calc(100% - var(--expanding-action-trigger-width) + 2px);right:0;z-index:1;height:2px;background:rgb(var(--zn-panel))}.expanding-action--drop .expanding-action__content{flex:1 1 auto;min-height:0;overflow-y:auto;border-radius:inherit}:host([data-trigger-side=left]) .expanding-action--drop .expanding-action__frame{border-radius:0 var(--zn-border-radius) var(--zn-border-radius) var(--zn-border-radius)}:host([data-trigger-side=left]) .expanding-action--drop .expanding-action__frame::before{left:0;right:calc(100% - var(--expanding-action-trigger-width) + 2px)}:host([open]) .expanding-action__dropdown zn-button[slot=trigger]{position:relative;z-index:calc(var(--zn-z-index-dropdown) + 1)}:host([open]) .expanding-action__dropdown zn-button[slot=trigger]::before{content:"";position:absolute;inset:0;z-index:-1;height:41px;background:rgb(var(--zn-panel));border:solid 1px rgb(var(--zn-border-color));border-bottom-color:rgb(var(--zn-panel));border-radius:var(--zn-border-radius) var(--zn-border-radius) 0 0}:host([open]) .expanding-action__dropdown zn-button[slot=trigger]::part(base):hover,:host([open]) .expanding-action__dropdown zn-button[slot=trigger]::part(base):active{background:transparent}`;var Kt=class extends k{constructor(){super();this.method="drop";this.prefetch=!1;this.basis="300";this.open=!1;this.fetchStyle="";this.noPrefetch=!1;this._knownUri=new Map;this._actions=[];this._preload=!0;this._metaObserved=!1;this._countObserver=new Oe(this,{target:null,config:{subtree:!0,attributes:!0,attributeFilter:["content"],childList:!0},callback:()=>{let r=Ge("app-content",this,"")[0]?.shadowRoot?.querySelector('meta[name="count"]');if(!r)return;let n=r.getAttribute("content"),a=this.shadowRoot?.querySelector(".expanding-action__dropdown zn-button");n&&a&&a.setAttribute("notification",n)}});this._colorObserver=new Oe(this,{target:null,config:{subtree:!0,attributes:!0,attributeFilter:["content"],childList:!0},callback:()=>{let r=Ge("app-content",this,"")[0]?.shadowRoot?.querySelector('meta[name="color"]');if(!r)return;let n=r.getAttribute("content");n&&(this.color=n)}});this.handleIconClicked=()=>{this.open=!this.open};this.handleIconCloseClicked=()=>{this.open=!1};this._updateTriggerSide=()=>{let t=this.shadowRoot?.querySelector('.expanding-action__dropdown zn-button[slot="trigger"]'),r=this.shadowRoot?.querySelector("#content");if(!t||!r)return;let n=t.getBoundingClientRect(),a=r.getBoundingClientRect();if(a.width===0)return;let s=(n.left+n.right)/2,l=(a.left+a.right)/2;this.setAttribute("data-trigger-side",s>l?"right":"left")};this._panels=new Map}async connectedCallback(){super.connectedCallback(),this.masterId||(this.masterId=Math.floor(Math.random()*1e6).toString()),this._preload=!this.noPrefetch,await this.updateComplete,this._panel=this.shadowRoot?.querySelector("#content")}firstUpdated(t){super.firstUpdated(t),setTimeout(()=>{this._registerActions()},10),this.contextUri&&setTimeout(()=>{this.fetchContextHeaders().then(r=>r)},10)}_observeMetaData(){if(this._metaObserved)return;let r=Ge("app-content",this,"")[0]?.shadowRoot;r&&(this._countObserver.observe(r),this._colorObserver.observe(r),this._metaObserved=!0)}_registerActions(){Ge("[action-uri]",this,"zn-expanding-action").forEach(t=>{t.getAttribute("action-uri")===""&&(t.setAttribute("action",""),t.removeAttribute("action-uri")),this._addAction(t)})}_addAction(t){this._actions.includes(t)||(this._actions.push(t),this._preload&&t.addEventListener("mouseover",this.fetchUri.bind(this,t)),t.addEventListener("click",this._handleClick.bind(this)))}_uriToId(t){return"action-"+Qd(t).substr(0,8)+"-"+this.masterId}_handleClick(t){let r=t.relatedTarget??t.target;r&&this.clickAction(r)}_createUriPanel(t,r,n){if(t.hasAttribute("action")||t.setAttribute("action",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),a.setAttribute("data-self-uri",r),a.setAttribute("data-fetch-style","expanding-action"),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}fetchUri(t){if(!t.hasAttribute("action")&&t.hasAttribute("action-uri")){let r=t.getAttribute("action-uri")??"";this._createUriPanel(t,r,this._uriToId(r)),this._observeMetaData()}}async fetchContextHeaders(){try{let t=await fetch(this.contextUri,{credentials:"same-origin",method:"head",headers:{"x-requested-with":"XMLHttpRequest"}}),r=t.headers.get("x-kubex-count");r&&(this.count=r);let n=t.headers.get("x-kubex-color");n&&(this.color=n)}catch{}}clickAction(t){this.fetchUri(t)}_observePlacement(){let r=this.shadowRoot?.querySelector(".expanding-action__dropdown")?.shadowRoot?.querySelector(".dropdown");if(!r){requestAnimationFrame(()=>this._observePlacement());return}this._updateTriggerSide(),!this._placementObserver&&(this._placementObserver=new MutationObserver(this._updateTriggerSide),this._placementObserver.observe(r,{attributes:!0,attributeFilter:["data-current-placement"]}))}disconnectedCallback(){super.disconnectedCallback(),this._placementObserver?.disconnect(),this._placementObserver=void 0}render(){return u`
1902
+ <slot name="bottom" part="bottom"></slot>`}};We.styles=z(e1),We.dependencies={"zn-dropdown":pr},c([d({attribute:"navigation",type:Array})],We.prototype,"navigation",2),c([d({attribute:"full-width",type:Boolean,reflect:!0})],We.prototype,"fullWidth",2),c([d({attribute:"icon-bar",type:Boolean,reflect:!0})],We.prototype,"iconBar",2),c([d({attribute:"slim",type:Boolean,reflect:!0})],We.prototype,"slim",2),c([d({attribute:"border",type:Boolean,reflect:!0})],We.prototype,"border",2),c([d({attribute:"hide-one",type:Boolean,reflect:!0})],We.prototype,"hideOne",2),c([d({attribute:"flush",type:Boolean,reflect:!0})],We.prototype,"flush",2),c([d({attribute:"gutter",type:Boolean,reflect:!0})],We.prototype,"gutter",2),c([d({type:Boolean})],We.prototype,"stacked",2),c([d({type:Array})],We.prototype,"dropdown",2),c([d({attribute:"no-pad",type:Boolean})],We.prototype,"noPad",2),c([d({attribute:"manual-add-items",type:Boolean})],We.prototype,"manualAddItems",2),c([d({type:Boolean})],We.prototype,"isolated",2),c([d({reflect:!0})],We.prototype,"color",2),c([d({attribute:"master-id",reflect:!0})],We.prototype,"masterId",2),c([d({attribute:"store-key",type:String})],We.prototype,"storeKey",2),c([d({attribute:"store-ttl",type:Number,reflect:!0})],We.prototype,"storeTtl",2),c([d({attribute:"local-storage",type:Boolean,reflect:!0})],We.prototype,"localStorage",2),c([d()],We.prototype,"_appended",2);var Sa=We;We.define("zn-navbar");function Qd(o){function i(he,ae){return he<<ae|he>>>32-ae}function t(he,ae){let ze,O,x,E,w;return x=he&2147483648,E=ae&2147483648,ze=he&1073741824,O=ae&1073741824,w=(he&1073741823)+(ae&1073741823),ze&&O?w^2147483648^x^E:ze||O?w?w^3221225472^x^E:w^1073741824^x^E:w^x^E}function r(he,ae,ze){return he&ae|~he&ze}function n(he,ae,ze){return he&ze|ae&~ze}function a(he,ae,ze){return he^ae^ze}function s(he,ae,ze){return ae^(he|~ze)}function l(he,ae,ze,O,x,E,w){return he=t(he,t(t(r(ae,ze,O),x),w)),t(i(he,E),ae)}function p(he,ae,ze,O,x,E,w){return he=t(he,t(t(n(ae,ze,O),x),w)),t(i(he,E),ae)}function h(he,ae,ze,O,x,E,w){return he=t(he,t(t(a(ae,ze,O),x),w)),t(i(he,E),ae)}function m(he,ae,ze,O,x,E,w){return he=t(he,t(t(s(ae,ze,O),x),w)),t(i(he,E),ae)}function f(he){for(var ae,ze=he.length,O=ze+8,x=(O-O%64)/64,E=(x+1)*16,w=Array(E-1),R=0,q=0;q<ze;)ae=(q-q%4)/4,R=q%4*8,w[ae]=w[ae]|he.charCodeAt(q)<<R,q++;return ae=(q-q%4)/4,R=q%4*8,w[ae]=w[ae]|128<<R,w[E-2]=ze<<3,w[E-1]=ze>>>29,w}function b(he){var ae="",ze="",O,x;for(x=0;x<=3;x++)O=he>>>x*8&255,ze="0"+O.toString(16),ae=ae+ze.substr(ze.length-2,2);return ae}function g(he){he=he.replace(/\r\n/g,`
1903
+ `);let ae="";for(let ze=0;ze<he.length;ze++){let O=he.charCodeAt(ze);O<128?ae+=String.fromCharCode(O):O>127&&O<2048?(ae+=String.fromCharCode(O>>6|192),ae+=String.fromCharCode(O&63|128)):(ae+=String.fromCharCode(O>>12|224),ae+=String.fromCharCode(O>>6&63|128),ae+=String.fromCharCode(O&63|128))}return ae}let v,y,S,T,N,U,I,C,$,L,W=7,oe=12,xe=17,De=22,Ne=5,it=9,er=14,Pr=20,wr=4,Nt=11,tr=16,Mt=23,uo=6,Qa=10,ue=15,Yi=21;for(o=g(o),v=f(o),I=1732584193,C=4023233417,$=2562383102,L=271733878,y=0;y<v.length;y+=16)S=I,T=C,N=$,U=L,I=l(I,C,$,L,v[y+0],W,3614090360),L=l(L,I,C,$,v[y+1],oe,3905402710),$=l($,L,I,C,v[y+2],xe,606105819),C=l(C,$,L,I,v[y+3],De,3250441966),I=l(I,C,$,L,v[y+4],W,4118548399),L=l(L,I,C,$,v[y+5],oe,1200080426),$=l($,L,I,C,v[y+6],xe,2821735955),C=l(C,$,L,I,v[y+7],De,4249261313),I=l(I,C,$,L,v[y+8],W,1770035416),L=l(L,I,C,$,v[y+9],oe,2336552879),$=l($,L,I,C,v[y+10],xe,4294925233),C=l(C,$,L,I,v[y+11],De,2304563134),I=l(I,C,$,L,v[y+12],W,1804603682),L=l(L,I,C,$,v[y+13],oe,4254626195),$=l($,L,I,C,v[y+14],xe,2792965006),C=l(C,$,L,I,v[y+15],De,1236535329),I=p(I,C,$,L,v[y+1],Ne,4129170786),L=p(L,I,C,$,v[y+6],it,3225465664),$=p($,L,I,C,v[y+11],er,643717713),C=p(C,$,L,I,v[y+0],Pr,3921069994),I=p(I,C,$,L,v[y+5],Ne,3593408605),L=p(L,I,C,$,v[y+10],it,38016083),$=p($,L,I,C,v[y+15],er,3634488961),C=p(C,$,L,I,v[y+4],Pr,3889429448),I=p(I,C,$,L,v[y+9],Ne,568446438),L=p(L,I,C,$,v[y+14],it,3275163606),$=p($,L,I,C,v[y+3],er,4107603335),C=p(C,$,L,I,v[y+8],Pr,1163531501),I=p(I,C,$,L,v[y+13],Ne,2850285829),L=p(L,I,C,$,v[y+2],it,4243563512),$=p($,L,I,C,v[y+7],er,1735328473),C=p(C,$,L,I,v[y+12],Pr,2368359562),I=h(I,C,$,L,v[y+5],wr,4294588738),L=h(L,I,C,$,v[y+8],Nt,2272392833),$=h($,L,I,C,v[y+11],tr,1839030562),C=h(C,$,L,I,v[y+14],Mt,4259657740),I=h(I,C,$,L,v[y+1],wr,2763975236),L=h(L,I,C,$,v[y+4],Nt,1272893353),$=h($,L,I,C,v[y+7],tr,4139469664),C=h(C,$,L,I,v[y+10],Mt,3200236656),I=h(I,C,$,L,v[y+13],wr,681279174),L=h(L,I,C,$,v[y+0],Nt,3936430074),$=h($,L,I,C,v[y+3],tr,3572445317),C=h(C,$,L,I,v[y+6],Mt,76029189),I=h(I,C,$,L,v[y+9],wr,3654602809),L=h(L,I,C,$,v[y+12],Nt,3873151461),$=h($,L,I,C,v[y+15],tr,530742520),C=h(C,$,L,I,v[y+2],Mt,3299628645),I=m(I,C,$,L,v[y+0],uo,4096336452),L=m(L,I,C,$,v[y+7],Qa,1126891415),$=m($,L,I,C,v[y+14],ue,2878612391),C=m(C,$,L,I,v[y+5],Yi,4237533241),I=m(I,C,$,L,v[y+12],uo,1700485571),L=m(L,I,C,$,v[y+3],Qa,2399980690),$=m($,L,I,C,v[y+10],ue,4293915773),C=m(C,$,L,I,v[y+1],Yi,2240044497),I=m(I,C,$,L,v[y+8],uo,1873313359),L=m(L,I,C,$,v[y+15],Qa,4264355552),$=m($,L,I,C,v[y+6],ue,2734768916),C=m(C,$,L,I,v[y+13],Yi,1309151649),I=m(I,C,$,L,v[y+4],uo,4149444226),L=m(L,I,C,$,v[y+11],Qa,3174756917),$=m($,L,I,C,v[y+2],ue,718787259),C=m(C,$,L,I,v[y+9],Yi,3951481745),I=t(I,S),C=t(C,T),$=t($,N),L=t(L,U);var Qi=b(I)+b(C)+b($)+b(L);return Qi.toLowerCase()}var t1=_`@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}.expanding-action--fill{padding-inline:var(--zn-spacing-medium);padding-bottom:var(--zn-spacing-2x-small);position:absolute;top:0;left:auto;right:0;bottom:0;background-color:rgb(var(--zn-panel));width:0;transition:width var(--zn-transition-slow) cubic-bezier(0.62,0.16,0.13,1.01),opacity var(--zn-transition-slow) cubic-bezier(0.62,0.16,0.13,1.01),display var(--zn-transition-slow) ease-in-out allow-discrete}@starting-style {.expanding-action--fill.expanding-action--open{width:0}}.expanding-action--fill.expanding-action--open{display:flex;flex-direction:row;align-items:center;gap:10px;height:100%;width:min(100%,800px);overflow:hidden;z-index:100;max-width:800px}.expanding-action--fill.expanding-action--open::before{content:"";position:absolute;left:calc(var(--zn-spacing-medium) * -1);right:calc(var(--zn-spacing-medium) * -1);bottom:6px;background-color:rgb(var(--zn-primary));height:2px}.expanding-action--fill.expanding-action--open>zn-icon{display:block;color:rgb(var(--zn-primary))}.expanding-action--fill.expanding-action--closed{display:none;opacity:0}@starting-style {.expanding-action--fill .expanding-action__content{opacity:0}}.expanding-action--fill .expanding-action__content{opacity:1;width:100%;display:flex;flex-direction:column;justify-content:center;padding:0}.expanding-action--drop,.expanding-action--drop .expanding-action__dropdown,.expanding-action--drop .expanding-action__dropdown zn-button[slot=trigger]{height:100%}.expanding-action--drop .expanding-action__frame ::-webkit-scrollbar{width:5px;height:5px}.expanding-action--drop .expanding-action__frame{}.expanding-action--drop .expanding-action__frame ::-webkit-scrollbar-track{background:transparent}.expanding-action--drop .expanding-action__frame{}.expanding-action--drop .expanding-action__frame ::-webkit-scrollbar-thumb{background:rgba(var(--inverse-base),0.2);border-radius:5px}.expanding-action--drop .expanding-action__frame{}.expanding-action--drop .expanding-action__frame ::-webkit-scrollbar-thumb:hover{background:rgba(var(--inverse-base),0.6)}.expanding-action--drop .expanding-action__frame{--expanding-action-trigger-width:36px;position:relative;display:flex;flex-direction:column;min-width:300px;width:var(--expanding-action-basis,var(--zn-container-smp,320px));max-width:80vw;max-height:var(--expanding-action-max-height,var(--auto-size-available-height,80vh));background-color:rgb(var(--zn-panel));box-shadow:0 8px 16px -6px rgba(33,33,33,0.18);border:solid 1px rgb(var(--zn-border-color));border-radius:var(--zn-border-radius) 0 var(--zn-border-radius) var(--zn-border-radius);padding:0;height:100%}.expanding-action--drop .expanding-action__frame::before{content:"";position:absolute;top:-1px;left:calc(100% - var(--expanding-action-trigger-width) + 2px);right:0;z-index:1;height:2px;background:rgb(var(--zn-panel))}.expanding-action--drop .expanding-action__content{flex:1 1 auto;min-height:0;overflow-y:auto;border-radius:inherit}:host([data-trigger-side=left]) .expanding-action--drop .expanding-action__frame{border-radius:0 var(--zn-border-radius) var(--zn-border-radius) var(--zn-border-radius)}:host([data-trigger-side=left]) .expanding-action--drop .expanding-action__frame::before{left:0;right:calc(100% - var(--expanding-action-trigger-width) + 2px)}:host([open]) .expanding-action__dropdown zn-button[slot=trigger]{position:relative;z-index:calc(var(--zn-z-index-dropdown) + 1)}:host([open]) .expanding-action__dropdown zn-button[slot=trigger]::before{content:"";position:absolute;inset:0;z-index:-1;height:41px;background:rgb(var(--zn-panel));border:solid 1px rgb(var(--zn-border-color));border-bottom-color:rgb(var(--zn-panel));border-radius:var(--zn-border-radius) var(--zn-border-radius) 0 0}:host([open]) .expanding-action__dropdown zn-button[slot=trigger]::part(base):hover,:host([open]) .expanding-action__dropdown zn-button[slot=trigger]::part(base):active{background:transparent}`;var Kt=class extends k{constructor(){super();this.method="drop";this.prefetch=!1;this.basis="300";this.open=!1;this.fetchStyle="";this.noPrefetch=!1;this._knownUri=new Map;this._actions=[];this._preload=!0;this._metaObserved=!1;this._countObserver=new Oe(this,{target:null,config:{subtree:!0,attributes:!0,attributeFilter:["content"],childList:!0},callback:()=>{let r=Ge("app-content",this,"")[0]?.shadowRoot?.querySelector('meta[name="count"]');if(!r)return;let n=r.getAttribute("content"),a=this.shadowRoot?.querySelector(".expanding-action__dropdown zn-button");n&&a&&a.setAttribute("notification",n)}});this._colorObserver=new Oe(this,{target:null,config:{subtree:!0,attributes:!0,attributeFilter:["content"],childList:!0},callback:()=>{let r=Ge("app-content",this,"")[0]?.shadowRoot?.querySelector('meta[name="color"]');if(!r)return;let n=r.getAttribute("content");n&&(this.color=n)}});this.handleIconClicked=()=>{this.open=!this.open};this.handleIconCloseClicked=()=>{this.open=!1};this._updateTriggerSide=()=>{let t=this.shadowRoot?.querySelector('.expanding-action__dropdown zn-button[slot="trigger"]'),r=this.shadowRoot?.querySelector("#content");if(!t||!r)return;let n=t.getBoundingClientRect(),a=r.getBoundingClientRect();if(a.width===0)return;let s=(n.left+n.right)/2,l=(a.left+a.right)/2;this.setAttribute("data-trigger-side",s>l?"right":"left")};this._panels=new Map}async connectedCallback(){super.connectedCallback(),this.masterId||(this.masterId=Math.floor(Math.random()*1e6).toString()),this._preload=!this.noPrefetch,await this.updateComplete,this._panel=this.shadowRoot?.querySelector("#content")}firstUpdated(t){super.firstUpdated(t),setTimeout(()=>{this._registerActions()},10),this.contextUri&&setTimeout(()=>{this.fetchContextHeaders().then(r=>r)},10)}_observeMetaData(){if(this._metaObserved)return;let r=Ge("app-content",this,"")[0]?.shadowRoot;r&&(this._countObserver.observe(r),this._colorObserver.observe(r),this._metaObserved=!0)}_registerActions(){Ge("[action-uri]",this,"zn-expanding-action").forEach(t=>{t.getAttribute("action-uri")===""&&(t.setAttribute("action",""),t.removeAttribute("action-uri")),this._addAction(t)})}_addAction(t){this._actions.includes(t)||(this._actions.push(t),this._preload&&t.addEventListener("mouseover",this.fetchUri.bind(this,t)),t.addEventListener("click",this._handleClick.bind(this)))}_uriToId(t){return"action-"+Qd(t).substr(0,8)+"-"+this.masterId}_handleClick(t){let r=t.relatedTarget??t.target;r&&this.clickAction(r)}_createUriPanel(t,r,n){if(t.hasAttribute("action")||t.setAttribute("action",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),a.setAttribute("data-self-uri",r),a.setAttribute("data-fetch-style","expanding-action"),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}fetchUri(t){if(!t.hasAttribute("action")&&t.hasAttribute("action-uri")){let r=t.getAttribute("action-uri")??"";this._createUriPanel(t,r,this._uriToId(r)),this._observeMetaData()}}async fetchContextHeaders(){try{let t=await fetch(this.contextUri,{credentials:"same-origin",method:"head",headers:{"x-requested-with":"XMLHttpRequest"}}),r=t.headers.get("x-kubex-count");r&&(this.count=r);let n=t.headers.get("x-kubex-color");n&&(this.color=n)}catch{}}clickAction(t){this.fetchUri(t)}_observePlacement(){let r=this.shadowRoot?.querySelector(".expanding-action__dropdown")?.shadowRoot?.querySelector(".dropdown");if(!r){requestAnimationFrame(()=>this._observePlacement());return}this._updateTriggerSide(),!this._placementObserver&&(this._placementObserver=new MutationObserver(this._updateTriggerSide),this._placementObserver.observe(r,{attributes:!0,attributeFilter:["data-current-placement"]}))}disconnectedCallback(){super.disconnectedCallback(),this._placementObserver?.disconnect(),this._placementObserver=void 0}render(){return u`
1904
1904
  ${this.method==="fill"?u`
1905
1905
  <zn-button class="expanding-action__button"
1906
1906
  @click="${this.handleIconClicked}"
@@ -2048,7 +2048,7 @@ import{a as Fn,b as h3,c as _r,d as c,e as V}from"./chunks/zn.UBLZO6CI.js";var K
2048
2048
  </div>
2049
2049
  </div>
2050
2050
  </div>
2051
- `}};or.styles=[ln.styles,z(h1)],or.dependencies={"zn-button":$e,"zn-copy-button":Mu,"zn-expanding-action":om,"zn-icon":ne,"zn-navbar":Sa,"zn-tab":am},c([d()],or.prototype,"caption",2),c([d({attribute:"entity-id"})],or.prototype,"entityId",2),c([d({attribute:"entity-id-show",type:Boolean})],or.prototype,"entityIdShow",2),c([d({attribute:"full-location"})],or.prototype,"fullLocation",2),c([d({type:Boolean,reflect:!0})],or.prototype,"modal",2),c([d({type:Boolean,reflect:!0})],or.prototype,"nested",2),c([d({type:Boolean,reflect:!0})],or.prototype,"primary",2),c([d({attribute:"previous-path"})],or.prototype,"previousPath",2),c([d({attribute:"previous-target"})],or.prototype,"previousTarget",2),c([d()],or.prototype,"summary",2),c([R()],or.prototype,"scrolled",2),c([R()],or.prototype,"tabDefinitions",2),c([R()],or.prototype,"hasExpandingActions",2);var bs=or;var Y4=bs;bs.define("zn-page");var u1=_`@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 _e=class _e extends k{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?{valid:!1,valueMissing:!0,badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1}:{valid:!0,valueMissing:!1,badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1}}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 _e.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=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:B,l=this._pendingFileUrl??(this.isImageValue&&!this._file?this.icon:this._fileUrl);return u`
2051
+ `}};or.styles=[ln.styles,z(h1)],or.dependencies={"zn-button":$e,"zn-copy-button":Mu,"zn-expanding-action":om,"zn-icon":ne,"zn-navbar":Sa,"zn-tab":am},c([d()],or.prototype,"caption",2),c([d({attribute:"entity-id"})],or.prototype,"entityId",2),c([d({attribute:"entity-id-show",type:Boolean})],or.prototype,"entityIdShow",2),c([d({attribute:"full-location"})],or.prototype,"fullLocation",2),c([d({type:Boolean,reflect:!0})],or.prototype,"modal",2),c([d({type:Boolean,reflect:!0})],or.prototype,"nested",2),c([d({type:Boolean,reflect:!0})],or.prototype,"primary",2),c([d({attribute:"previous-path"})],or.prototype,"previousPath",2),c([d({attribute:"previous-target"})],or.prototype,"previousTarget",2),c([d()],or.prototype,"summary",2),c([D()],or.prototype,"scrolled",2),c([D()],or.prototype,"tabDefinitions",2),c([D()],or.prototype,"hasExpandingActions",2);var bs=or;var Y4=bs;bs.define("zn-page");var u1=_`@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 _e=class _e extends k{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?{valid:!1,valueMissing:!0,badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1}:{valid:!0,valueMissing:!1,badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1}}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 _e.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=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:B,l=this._pendingFileUrl??(this.isImageValue&&!this._file?this.icon:this._fileUrl);return u`
2052
2052
  <div part="form-control"
2053
2053
  class="form-control form-control--medium ${t?"form-control--has-label":""} ${r?"form-control--has-help-text":""}">
2054
2054
 
@@ -2272,7 +2272,7 @@ import{a as Fn,b as h3,c as _r,d as c,e as V}from"./chunks/zn.UBLZO6CI.js";var K
2272
2272
  </zn-dialog>
2273
2273
  `:B}
2274
2274
 
2275
- </div>`}};_e.styles=[z(Se),z(u1)],_e.dependencies={"zn-icon":ne,"zn-button":$e,"zn-dialog":ka,"zn-input":nt,"zn-select":Be,"zn-option":ot},_e.freeInputLibraries=new Set(["gravatar","libravatar","avatar"]),c([d()],_e.prototype,"name",2),c([d()],_e.prototype,"icon",2),c([d()],_e.prototype,"label",2),c([d()],_e.prototype,"library",2),c([d()],_e.prototype,"color",2),c([d({type:Boolean,attribute:"no-color"})],_e.prototype,"noColor",2),c([d({type:Boolean,attribute:"no-library"})],_e.prototype,"noLibrary",2),c([d({attribute:"help-text"})],_e.prototype,"helpText",2),c([d({type:Boolean,reflect:!0})],_e.prototype,"disabled",2),c([d({type:Boolean,reflect:!0})],_e.prototype,"required",2),c([d({type:Boolean,attribute:"trigger-submit"})],_e.prototype,"triggerSubmit",2),c([d({type:Boolean,attribute:"allow-upload"})],_e.prototype,"allowUpload",2),c([d()],_e.prototype,"accept",2),c([d({reflect:!0})],_e.prototype,"form",2),c([Ce("icon")],_e.prototype,"defaultValue",2),c([R()],_e.prototype,"_dialogOpen",2),c([R()],_e.prototype,"_searchQuery",2),c([R()],_e.prototype,"_iconList",2),c([R()],_e.prototype,"_filteredIcons",2),c([R()],_e.prototype,"_pendingIcon",2),c([R()],_e.prototype,"_pendingLibrary",2),c([R()],_e.prototype,"_pendingColor",2),c([R()],_e.prototype,"_pendingFile",2),c([R()],_e.prototype,"_pendingFileUrl",2),c([R()],_e.prototype,"_mode",2),c([R()],_e.prototype,"_file",2),c([R()],_e.prototype,"_fileUrl",2),c([F("zn-dialog")],_e.prototype,"_dialog",2),c([F(".icon-picker__file-input")],_e.prototype,"_fileInput",2);var vs=_e;var Q4=vs;vs.define("zn-icon-picker");var m1=_`@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;container-type:inline-size;width:100%}.ai{display:flex;width:100%;flex-direction:row;gap:10px}.ai:not(.ai--editing) .ai__input::part(base),.ai:not(.ai--editing) .ai__input::part(combobox),.ai:not(.ai--editing) .ai__input::part(textarea){background-color:transparent;border-color:transparent;box-shadow:none;opacity:1;cursor:initial}.ai:not(.ai--editing) .ai__input::part(input){line-height:var(--zn-line-height-looser)}.ai:not(.ai--editing) .ai__input::part(display-input){color:rgb(var(--zn-text))}.ai:not(.ai--editing) .ai__input::part(input),.ai:not(.ai--editing) .ai__input::part(combobox),.ai:not(.ai--editing) .ai__input::part(textarea){padding:0;color:rgb(var(--zn-text));text-decoration:underline;text-decoration-style:dashed;text-decoration-color:rgb(var(--zn-primary),0.5);text-underline-offset:3px}.ai:not(.ai--editing) .ai__input::part(textarea){padding-top:8px;box-shadow:none;text-decoration:none}.ai:not(.ai--editing) .ai__input::part(expand-icon){display:none}.ai:not(.ai--editing) .ai__input::part(form-control-help-text){display:none}.ai:not(.ai--editing):hover .button--edit{display:inline-block}.ai__input::part(form-control-input){margin:0}.ai__input{height:unset;opacity:1}.ai__input[dir=rtl]::part(input),.ai__input[dir=rtl]::part(textarea),.ai__input[dir=rtl]::part(combobox){text-align:left}.ai:not(.ai--editing) .ai__input::part(input)::-webkit-inner-spin-button,.ai:not(.ai--editing) .ai__input::part(input)::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.ai--padded{padding:var(--zn-spacing-large)}.ai--inline{display:flex;flex-direction:row;align-items:start;gap:5px}@container (min-width:480px){.ai--inline{align-items:center}}.ai--inline .ai__input{width:100%}.ai--inline .ai__left{width:100%;display:flex;flex-direction:row;justify-content:flex-end}@container (max-width:479px){.ai--inline .ai__left{justify-content:flex-start;flex-direction:column}}.ai--editing .ai__right{display:flex !important}.ai__left{display:flex;flex-direction:column;gap:5px;width:100%}.ai--masked:not(.ai--editing) .ai__input{display:none}.ai__reveal{line-height:var(--zn-line-height-looser);color:rgb(var(--zn-text))}.ai__reveal::part(base){width:100%;text-decoration:underline;text-decoration-style:dashed;text-decoration-color:rgb(var(--zn-primary),0.5);text-underline-offset:3px}.ai:not(.ai--disabled) .ai__left{cursor:pointer}.ai__description{font-size:12px;font-weight:500;line-height:18px;color:rgb(var(--zn-text))}.ai__right{font-size:12px;color:rgb(var(--zn-primary));font-weight:500;cursor:pointer;flex-direction:row;gap:10px;align-items:center;justify-content:flex-end}.ai__right .button--edit{display:none}.ai--disabled:not(.ai--editing) .ai__input::part(input),.ai--disabled:not(.ai--editing) .ai__input::part(combobox),.ai--disabled:not(.ai--editing) .ai__input::part(textarea){text-decoration:none;caret-color:transparent;border-radius:0}.ai--disabled:not(.ai--editing) .ai__reveal::part(base){text-decoration:none}.ai--disabled:not(.ai--editing) .ai__input::part(display-input){cursor:text}.ai--disabled:not(.ai--editing) .ai__right{display:none !important}zn-textarea::part(textarea){resize:none}`;var de=class extends k{constructor(){super(...arguments);this.formControlController=new re(this,{defaultValue:t=>t.defaultValue,value:t=>{if(t.multiple){let r=typeof t.value=="string"?t.value.split(" ").filter(n=>n!==""):t.value;return r.length>0?r:""}return t.value}});this.hasSlotController=new Y(this,"help-text","[default]");this.conditionalController=new ms(this);this.value="";this.displayValue="";this.clearOnEdit=!1;this.conditional="";this.size="medium";this.inputType="text";this.slashItems=[];this.slashPreset="";this.slashTrigger="/";this.slashHeading="Insert";this.slashHideKeys=!1;this.slashRecentKey="";this.options={};this.iconPosition="none";this.helpText="";this.dir="auto";this.mouseEventHandler=t=>{this.isEditing&&!this.contains(t.target)&&((Array.isArray(this.value)?JSON.stringify(this.value)!==JSON.stringify(this._editStartValue):this.value!==this._editStartValue)||(this.isEditing=!1,this.value=this._valueBeforeEdit,this.input.blur()))};this.escKeyHandler=t=>{t.key==="Escape"&&this.isEditing&&(this.isEditing=!1,this.value=this._valueBeforeEdit,this.input.blur())};this.submitKeyHandler=t=>{t.key==="Enter"&&this.isEditing&&!t.shiftKey&&(this.isEditing=!1,this.emit("zn-submit",{detail:{value:this.value,element:this}}),this.formControlController.submit(),this.input.blur())};this.captureMouseDown=t=>{this.disabled&&!this.isEditing&&t.stopPropagation()};this.captureKeyDown=t=>{this.disabled&&!this.isEditing&&(t.stopPropagation(),t.preventDefault())};this.handleEditClick=t=>{t.preventDefault(),t.stopPropagation(),!this.disabled&&(this.isEditing||(this._valueBeforeEdit=this.value,this.clearOnEdit&&(this.value=this.multiple?[]:""),this._editStartValue=this.value),this.isEditing=!0)};this.handleSubmitClick=t=>{t.preventDefault(),this.isEditing=!1,this.emit("zn-submit",{detail:{value:this.value,element:this}}),this.formControlController.submit()};this.handleCancelClick=t=>{t.preventDefault(),this.isEditing=!1,this.value=this._valueBeforeEdit};this.handleBlur=()=>{this.hasFocus=!1};this.handleInput=t=>{this.disabled||!this.isEditing||(this.value=t.target.value,this.emit("zn-input"))};this.handleSlotChange=async()=>{await this.updateComplete,this.input instanceof Be&&this.moveSlottedOptionsToSelect()}}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)}connectedCallback(){super.connectedCallback(),document.addEventListener("keydown",this.escKeyHandler),document.addEventListener("keydown",this.submitKeyHandler),document.addEventListener("click",this.mouseEventHandler),this.addEventListener("mousedown",this.captureMouseDown,{capture:!0}),this.addEventListener("keydown",this.captureKeyDown,{capture:!0})}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("keydown",this.escKeyHandler),document.removeEventListener("keydown",this.submitKeyHandler),document.removeEventListener("click",this.mouseEventHandler),this.removeEventListener("mousedown",this.captureMouseDown,!0),this.removeEventListener("keydown",this.captureKeyDown,!0)}async firstUpdated(){await this.updateComplete,this.input.addEventListener("onclick",this.handleEditClick),this.conditionalController.setup()}willUpdate(t){(t.has("value")||t.has("multiple"))&&(this.multiple&&typeof this.value=="string"?this.value=this.value.split(" ").filter(r=>r!==""):!this.multiple&&Array.isArray(this.value)&&(this.value=this.value.join(" ")))}async handleValueChange(){await this.updateComplete,this.formControlController.updateValidity()}async handleIsEditingChange(){await this.updateComplete,this.input instanceof Be&&!this.isEditing&&await this.input.hide(),this.conditionalController.check()}moveSlottedOptionsToSelect(){if(!(this.input instanceof Be))return;Array.from(this.querySelectorAll("zn-option")).forEach(r=>{this.input.appendChild(r)})}render(){let t=this.editText,r=this.hasSlotController.test("help-text"),n=this.helpText?!0:r;Object.keys(this.options).length>0&&(this.inputType="select"),this.selectProvider&&(this.inputType="data-select"),this.freeText&&!this.selectProvider&&(this.inputType="select");let a;switch(this.inputType){case"select":a=this._getSelectInput();break;case"data-select":a=this._getDataSelectInput();break;case"number":a=this._getNumberInput();break;case"textarea":a=this._getTextAreaInput();break;default:a=this._getTextInput()}return u`
2275
+ </div>`}};_e.styles=[z(Se),z(u1)],_e.dependencies={"zn-icon":ne,"zn-button":$e,"zn-dialog":ka,"zn-input":ot,"zn-select":Be,"zn-option":at},_e.freeInputLibraries=new Set(["gravatar","libravatar","avatar"]),c([d()],_e.prototype,"name",2),c([d()],_e.prototype,"icon",2),c([d()],_e.prototype,"label",2),c([d()],_e.prototype,"library",2),c([d()],_e.prototype,"color",2),c([d({type:Boolean,attribute:"no-color"})],_e.prototype,"noColor",2),c([d({type:Boolean,attribute:"no-library"})],_e.prototype,"noLibrary",2),c([d({attribute:"help-text"})],_e.prototype,"helpText",2),c([d({type:Boolean,reflect:!0})],_e.prototype,"disabled",2),c([d({type:Boolean,reflect:!0})],_e.prototype,"required",2),c([d({type:Boolean,attribute:"trigger-submit"})],_e.prototype,"triggerSubmit",2),c([d({type:Boolean,attribute:"allow-upload"})],_e.prototype,"allowUpload",2),c([d()],_e.prototype,"accept",2),c([d({reflect:!0})],_e.prototype,"form",2),c([Ce("icon")],_e.prototype,"defaultValue",2),c([D()],_e.prototype,"_dialogOpen",2),c([D()],_e.prototype,"_searchQuery",2),c([D()],_e.prototype,"_iconList",2),c([D()],_e.prototype,"_filteredIcons",2),c([D()],_e.prototype,"_pendingIcon",2),c([D()],_e.prototype,"_pendingLibrary",2),c([D()],_e.prototype,"_pendingColor",2),c([D()],_e.prototype,"_pendingFile",2),c([D()],_e.prototype,"_pendingFileUrl",2),c([D()],_e.prototype,"_mode",2),c([D()],_e.prototype,"_file",2),c([D()],_e.prototype,"_fileUrl",2),c([F("zn-dialog")],_e.prototype,"_dialog",2),c([F(".icon-picker__file-input")],_e.prototype,"_fileInput",2);var vs=_e;var Q4=vs;vs.define("zn-icon-picker");var m1=_`@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;container-type:inline-size;width:100%}.ai{display:flex;width:100%;flex-direction:row;gap:10px}.ai:not(.ai--editing) .ai__input::part(base),.ai:not(.ai--editing) .ai__input::part(combobox),.ai:not(.ai--editing) .ai__input::part(textarea){background-color:transparent;border-color:transparent;box-shadow:none;opacity:1;cursor:initial}.ai:not(.ai--editing) .ai__input::part(input){line-height:var(--zn-line-height-looser)}.ai:not(.ai--editing) .ai__input::part(display-input){color:rgb(var(--zn-text))}.ai:not(.ai--editing) .ai__input::part(input),.ai:not(.ai--editing) .ai__input::part(combobox),.ai:not(.ai--editing) .ai__input::part(textarea){padding:0;color:rgb(var(--zn-text));text-decoration:underline;text-decoration-style:dashed;text-decoration-color:rgb(var(--zn-primary),0.5);text-underline-offset:3px}.ai:not(.ai--editing) .ai__input::part(textarea){padding-top:8px;box-shadow:none;text-decoration:none}.ai:not(.ai--editing) .ai__input::part(expand-icon){display:none}.ai:not(.ai--editing) .ai__input::part(form-control-help-text){display:none}.ai:not(.ai--editing):hover .button--edit{display:inline-block}.ai__input::part(form-control-input){margin:0}.ai__input{height:unset;opacity:1}.ai__input[dir=rtl]::part(input),.ai__input[dir=rtl]::part(textarea),.ai__input[dir=rtl]::part(combobox){text-align:left}.ai:not(.ai--editing) .ai__input::part(input)::-webkit-inner-spin-button,.ai:not(.ai--editing) .ai__input::part(input)::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.ai--padded{padding:var(--zn-spacing-large)}.ai--inline{display:flex;flex-direction:row;align-items:start;gap:5px}@container (min-width:480px){.ai--inline{align-items:center}}.ai--inline .ai__input{width:100%}.ai--inline .ai__left{width:100%;display:flex;flex-direction:row;justify-content:flex-end}@container (max-width:479px){.ai--inline .ai__left{justify-content:flex-start;flex-direction:column}}.ai--editing .ai__right{display:flex !important}.ai__left{display:flex;flex-direction:column;gap:5px;width:100%}.ai--masked:not(.ai--editing) .ai__input{display:none}.ai__reveal{line-height:var(--zn-line-height-looser);color:rgb(var(--zn-text))}.ai__reveal::part(base){width:100%;text-decoration:underline;text-decoration-style:dashed;text-decoration-color:rgb(var(--zn-primary),0.5);text-underline-offset:3px}.ai:not(.ai--disabled) .ai__left{cursor:pointer}.ai__description{font-size:12px;font-weight:500;line-height:18px;color:rgb(var(--zn-text))}.ai__right{font-size:12px;color:rgb(var(--zn-primary));font-weight:500;cursor:pointer;flex-direction:row;gap:10px;align-items:center;justify-content:flex-end}.ai__right .button--edit{display:none}.ai--disabled:not(.ai--editing) .ai__input::part(input),.ai--disabled:not(.ai--editing) .ai__input::part(combobox),.ai--disabled:not(.ai--editing) .ai__input::part(textarea){text-decoration:none;caret-color:transparent;border-radius:0}.ai--disabled:not(.ai--editing) .ai__reveal::part(base){text-decoration:none}.ai--disabled:not(.ai--editing) .ai__input::part(display-input){cursor:text}.ai--disabled:not(.ai--editing) .ai__right{display:none !important}zn-textarea::part(textarea){resize:none}`;var de=class extends k{constructor(){super(...arguments);this.formControlController=new re(this,{defaultValue:t=>t.defaultValue,value:t=>{if(t.multiple){let r=typeof t.value=="string"?t.value.split(" ").filter(n=>n!==""):t.value;return r.length>0?r:""}return t.value}});this.hasSlotController=new Y(this,"help-text","[default]");this.conditionalController=new ms(this);this.value="";this.displayValue="";this.clearOnEdit=!1;this.conditional="";this.size="medium";this.inputType="text";this.slashItems=[];this.slashPreset="";this.slashTrigger="/";this.slashHeading="Insert";this.slashHideKeys=!1;this.slashRecentKey="";this.options={};this.iconPosition="none";this.helpText="";this.dir="auto";this.mouseEventHandler=t=>{this.isEditing&&!this.contains(t.target)&&((Array.isArray(this.value)?JSON.stringify(this.value)!==JSON.stringify(this._editStartValue):this.value!==this._editStartValue)||(this.isEditing=!1,this.value=this._valueBeforeEdit,this.input.blur()))};this.escKeyHandler=t=>{t.key==="Escape"&&this.isEditing&&(this.isEditing=!1,this.value=this._valueBeforeEdit,this.input.blur())};this.submitKeyHandler=t=>{t.key==="Enter"&&this.isEditing&&!t.shiftKey&&(this.isEditing=!1,this.emit("zn-submit",{detail:{value:this.value,element:this}}),this.formControlController.submit(),this.input.blur())};this.captureMouseDown=t=>{this.disabled&&!this.isEditing&&t.stopPropagation()};this.captureKeyDown=t=>{this.disabled&&!this.isEditing&&(t.stopPropagation(),t.preventDefault())};this.handleEditClick=t=>{t.preventDefault(),t.stopPropagation(),!this.disabled&&(this.isEditing||(this._valueBeforeEdit=this.value,this.clearOnEdit&&(this.value=this.multiple?[]:""),this._editStartValue=this.value),this.isEditing=!0)};this.handleSubmitClick=t=>{t.preventDefault(),this.isEditing=!1,this.emit("zn-submit",{detail:{value:this.value,element:this}}),this.formControlController.submit()};this.handleCancelClick=t=>{t.preventDefault(),this.isEditing=!1,this.value=this._valueBeforeEdit};this.handleBlur=()=>{this.hasFocus=!1};this.handleInput=t=>{this.disabled||!this.isEditing||(this.value=t.target.value,this.emit("zn-input"))};this.handleSlotChange=async()=>{await this.updateComplete,this.input instanceof Be&&this.moveSlottedOptionsToSelect()}}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)}connectedCallback(){super.connectedCallback(),document.addEventListener("keydown",this.escKeyHandler),document.addEventListener("keydown",this.submitKeyHandler),document.addEventListener("click",this.mouseEventHandler),this.addEventListener("mousedown",this.captureMouseDown,{capture:!0}),this.addEventListener("keydown",this.captureKeyDown,{capture:!0})}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("keydown",this.escKeyHandler),document.removeEventListener("keydown",this.submitKeyHandler),document.removeEventListener("click",this.mouseEventHandler),this.removeEventListener("mousedown",this.captureMouseDown,!0),this.removeEventListener("keydown",this.captureKeyDown,!0)}async firstUpdated(){await this.updateComplete,this.input.addEventListener("onclick",this.handleEditClick),this.conditionalController.setup()}willUpdate(t){(t.has("value")||t.has("multiple"))&&(this.multiple&&typeof this.value=="string"?this.value=this.value.split(" ").filter(r=>r!==""):!this.multiple&&Array.isArray(this.value)&&(this.value=this.value.join(" ")))}async handleValueChange(){await this.updateComplete,this.formControlController.updateValidity()}async handleIsEditingChange(){await this.updateComplete,this.input instanceof Be&&!this.isEditing&&await this.input.hide(),this.conditionalController.check()}moveSlottedOptionsToSelect(){if(!(this.input instanceof Be))return;Array.from(this.querySelectorAll("zn-option")).forEach(r=>{this.input.appendChild(r)})}render(){let t=this.editText,r=this.hasSlotController.test("help-text"),n=this.helpText?!0:r;Object.keys(this.options).length>0&&(this.inputType="select"),this.selectProvider&&(this.inputType="data-select"),this.freeText&&!this.selectProvider&&(this.inputType="select");let a;switch(this.inputType){case"select":a=this._getSelectInput();break;case"data-select":a=this._getDataSelectInput();break;case"number":a=this._getNumberInput();break;case"textarea":a=this._getTextAreaInput();break;default:a=this._getTextInput()}return u`
2276
2276
  <div class="${M({ai:!0,"ai--editing":this.isEditing,"ai--focused":this.hasFocus,"ai--disabled":this.disabled,"ai--inline":this.inline,"ai--padded":this.padded,"ai--masked":!!this.displayValue})}" dir="ltr">
2277
2277
 
2278
2278
  <div class="ai__left" @click="${this.disabled?void 0:this.handleEditClick}">
@@ -2409,7 +2409,7 @@ import{a as Fn,b as h3,c as _r,d as c,e as V}from"./chunks/zn.UBLZO6CI.js";var K
2409
2409
  @zn-blur="${this.handleBlur}"
2410
2410
  @zn-input="${this.handleInput}"
2411
2411
  >
2412
- </zn-data-select>`}};de.styles=[z(fs),z(m1)],c([d()],de.prototype,"value",2),c([d()],de.prototype,"name",2),c([d({reflect:!0})],de.prototype,"placeholder",2),c([d({attribute:"edit-text"})],de.prototype,"editText",2),c([d({attribute:"display-value"})],de.prototype,"displayValue",2),c([d({type:Boolean,attribute:"clear-on-edit"})],de.prototype,"clearOnEdit",2),c([d()],de.prototype,"conditional",2),c([d({type:Boolean})],de.prototype,"disabled",2),c([d({type:Boolean})],de.prototype,"inline",2),c([d({type:Boolean})],de.prototype,"padded",2),c([d({reflect:!0})],de.prototype,"size",2),c([d({type:Boolean})],de.prototype,"required",2),c([d()],de.prototype,"pattern",2),c([d({type:Boolean,reflect:!0})],de.prototype,"multiple",2),c([d({type:Boolean})],de.prototype,"clearable",2),c([d()],de.prototype,"min",2),c([d()],de.prototype,"max",2),c([d()],de.prototype,"step",2),c([d({attribute:"input-type"})],de.prototype,"inputType",2),c([d({attribute:"textarea-rows",type:Number})],de.prototype,"textareaRows",2),c([d({attribute:"slash-items",converter:{fromAttribute:t=>zo(t),toAttribute:t=>JSON.stringify(t)}})],de.prototype,"slashItems",2),c([d({attribute:"slash-preset"})],de.prototype,"slashPreset",2),c([d({attribute:"slash-trigger"})],de.prototype,"slashTrigger",2),c([d({attribute:"slash-heading"})],de.prototype,"slashHeading",2),c([d({attribute:"slash-hide-keys",type:Boolean})],de.prototype,"slashHideKeys",2),c([d({attribute:"slash-recent-key"})],de.prototype,"slashRecentKey",2),c([d({attribute:!1})],de.prototype,"slashItemsProvider",2),c([d({type:Object})],de.prototype,"options",2),c([d({attribute:"provider"})],de.prototype,"selectProvider",2),c([d({attribute:"icon-position",type:Boolean})],de.prototype,"iconPosition",2),c([d({attribute:"data-uri"})],de.prototype,"dataUri",2),c([d({attribute:"context-data"})],de.prototype,"contextData",2),c([d({type:Boolean})],de.prototype,"search",2),c([d({type:Boolean,attribute:"free-text"})],de.prototype,"freeText",2),c([d({attribute:"help-text"})],de.prototype,"helpText",2),c([d()],de.prototype,"dir",2),c([d()],de.prototype,"autocomplete",2),c([R()],de.prototype,"hasFocus",2),c([R()],de.prototype,"isEditing",2),c([F(".ai__input")],de.prototype,"input",2),c([Ce("value")],de.prototype,"defaultValue",2),c([K("value",{waitUntilFirstUpdate:!0})],de.prototype,"handleValueChange",1),c([K("isEditing",{waitUntilFirstUpdate:!0})],de.prototype,"handleIsEditingChange",1);var rp=de;de.define("zn-inline-edit");var f1=_`@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)}.pagination{margin:var(--zn-spacing-medium) auto;display:flex;flex-direction:row;justify-content:center}.pagination__item{border-width:1px;border-right-width:0;background-color:rgba(var(--zn-panel),var(--zn-panel-opacity));position:relative;font-size:13px;line-height:18px;font-weight:500;color:rgb(var(--zn-text))}.pagination__item a{color:inherit;text-decoration:none}.pagination__item:before{position:absolute;content:"";bottom:-3px;left:0;right:-3px;height:20px;background-color:rgb(var(--zn-shadow));z-index:-1}.pagination__item:first-of-type{border-top-left-radius:var(--zn-spacing-small);border-bottom-left-radius:var(--zn-spacing-small)}.pagination__item:first-of-type:before{border-bottom-left-radius:var(--zn-spacing-small)}.pagination__item:last-of-type{border-right-width:1px;border-top-right-radius:var(--zn-spacing-small);border-bottom-right-radius:var(--zn-spacing-small)}.pagination__item:last-of-type:before{border-bottom-right-radius:var(--zn-spacing-small);right:0}.pagination__item .pagination__button{display:block;background-color:transparent;color:inherit;font-size:inherit;line-height:inherit;font-weight:inherit;padding:var(--zn-spacing-small) var(--zn-spacing-medium)}.pagination__item .pagination__button:disabled,.pagination__item .pagination__button--disabled{cursor:not-allowed;opacity:0.5}.pagination__button--active{color:rgb(var(--zn-primary)) !important;font-weight:600 !important;pointer-events:none}`;var cn=class extends k{constructor(){super(...arguments);this.limit=10;this.total=0;this.page=1;this.uri=""}_createLink(t){return t===this.page?"":this.uri.replace("#page#",t.toString())}_calculatePages(){return Math.ceil(this.total/this.limit)}render(){let t=this._calculatePages(),r=u`
2412
+ </zn-data-select>`}};de.styles=[z(fs),z(m1)],c([d()],de.prototype,"value",2),c([d()],de.prototype,"name",2),c([d({reflect:!0})],de.prototype,"placeholder",2),c([d({attribute:"edit-text"})],de.prototype,"editText",2),c([d({attribute:"display-value"})],de.prototype,"displayValue",2),c([d({type:Boolean,attribute:"clear-on-edit"})],de.prototype,"clearOnEdit",2),c([d()],de.prototype,"conditional",2),c([d({type:Boolean})],de.prototype,"disabled",2),c([d({type:Boolean})],de.prototype,"inline",2),c([d({type:Boolean})],de.prototype,"padded",2),c([d({reflect:!0})],de.prototype,"size",2),c([d({type:Boolean})],de.prototype,"required",2),c([d()],de.prototype,"pattern",2),c([d({type:Boolean,reflect:!0})],de.prototype,"multiple",2),c([d({type:Boolean})],de.prototype,"clearable",2),c([d()],de.prototype,"min",2),c([d()],de.prototype,"max",2),c([d()],de.prototype,"step",2),c([d({attribute:"input-type"})],de.prototype,"inputType",2),c([d({attribute:"textarea-rows",type:Number})],de.prototype,"textareaRows",2),c([d({attribute:"slash-items",converter:{fromAttribute:t=>zo(t),toAttribute:t=>JSON.stringify(t)}})],de.prototype,"slashItems",2),c([d({attribute:"slash-preset"})],de.prototype,"slashPreset",2),c([d({attribute:"slash-trigger"})],de.prototype,"slashTrigger",2),c([d({attribute:"slash-heading"})],de.prototype,"slashHeading",2),c([d({attribute:"slash-hide-keys",type:Boolean})],de.prototype,"slashHideKeys",2),c([d({attribute:"slash-recent-key"})],de.prototype,"slashRecentKey",2),c([d({attribute:!1})],de.prototype,"slashItemsProvider",2),c([d({type:Object})],de.prototype,"options",2),c([d({attribute:"provider"})],de.prototype,"selectProvider",2),c([d({attribute:"icon-position",type:Boolean})],de.prototype,"iconPosition",2),c([d({attribute:"data-uri"})],de.prototype,"dataUri",2),c([d({attribute:"context-data"})],de.prototype,"contextData",2),c([d({type:Boolean})],de.prototype,"search",2),c([d({type:Boolean,attribute:"free-text"})],de.prototype,"freeText",2),c([d({attribute:"help-text"})],de.prototype,"helpText",2),c([d()],de.prototype,"dir",2),c([d()],de.prototype,"autocomplete",2),c([D()],de.prototype,"hasFocus",2),c([D()],de.prototype,"isEditing",2),c([F(".ai__input")],de.prototype,"input",2),c([Ce("value")],de.prototype,"defaultValue",2),c([K("value",{waitUntilFirstUpdate:!0})],de.prototype,"handleValueChange",1),c([K("isEditing",{waitUntilFirstUpdate:!0})],de.prototype,"handleIsEditingChange",1);var rp=de;de.define("zn-inline-edit");var f1=_`@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)}.pagination{margin:var(--zn-spacing-medium) auto;display:flex;flex-direction:row;justify-content:center}.pagination__item{border-width:1px;border-right-width:0;background-color:rgba(var(--zn-panel),var(--zn-panel-opacity));position:relative;font-size:13px;line-height:18px;font-weight:500;color:rgb(var(--zn-text))}.pagination__item a{color:inherit;text-decoration:none}.pagination__item:before{position:absolute;content:"";bottom:-3px;left:0;right:-3px;height:20px;background-color:rgb(var(--zn-shadow));z-index:-1}.pagination__item:first-of-type{border-top-left-radius:var(--zn-spacing-small);border-bottom-left-radius:var(--zn-spacing-small)}.pagination__item:first-of-type:before{border-bottom-left-radius:var(--zn-spacing-small)}.pagination__item:last-of-type{border-right-width:1px;border-top-right-radius:var(--zn-spacing-small);border-bottom-right-radius:var(--zn-spacing-small)}.pagination__item:last-of-type:before{border-bottom-right-radius:var(--zn-spacing-small);right:0}.pagination__item .pagination__button{display:block;background-color:transparent;color:inherit;font-size:inherit;line-height:inherit;font-weight:inherit;padding:var(--zn-spacing-small) var(--zn-spacing-medium)}.pagination__item .pagination__button:disabled,.pagination__item .pagination__button--disabled{cursor:not-allowed;opacity:0.5}.pagination__button--active{color:rgb(var(--zn-primary)) !important;font-weight:600 !important;pointer-events:none}`;var cn=class extends k{constructor(){super(...arguments);this.limit=10;this.total=0;this.page=1;this.uri=""}_createLink(t){return t===this.page?"":this.uri.replace("#page#",t.toString())}_calculatePages(){return Math.ceil(this.total/this.limit)}render(){let t=this._calculatePages(),r=u`
2413
2413
  <div class="pagination__item">
2414
2414
  ${this.page>1?u`
2415
2415
  <a class="pagination__button pagination__button--prev" href="${this._createLink(this.page-1)}">
@@ -2856,7 +2856,7 @@ import{a as Fn,b as h3,c as _r,d as c,e as V}from"./chunks/zn.UBLZO6CI.js";var K
2856
2856
  <zn-input type="text"
2857
2857
  class="query-builder__value"
2858
2858
  @zn-input="${a=>this._updateValue(t,a)}">
2859
- </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=[z(fs),z($1)],Zr.dependencies={"zn-button":$e,"zn-input":nt,"zn-option":ot,"zn-select":Be},c([F(".bulk-actions")],Zr.prototype,"container",2),c([F(".add-rule")],Zr.prototype,"addRule",2),c([F("input#main-input")],Zr.prototype,"input",2),c([d()],Zr.prototype,"name",2),c([d()],Zr.prototype,"value",2),c([d({type:Array})],Zr.prototype,"actions",2);var u8=Zr;Zr.define("zn-bulk-actions");var m8=()=>{let o="attachment",i=new Date().getTime();return`${o}_${i}`},Gl=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=m8(),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,p=l?JSON.parse(l):[];p.push(r),s.value=JSON.stringify(p)}}_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 E_=_r(ei(),1);var MC=typeof global=="object"&&global&&global.Object===Object&&global,Ep=MC;var LC=typeof self=="object"&&self&&self.Object===Object&&self,qC=Ep||LC||Function("return this")(),Ft=qC;var IC=Ft.Symbol,Oi=IC;var hx=Object.prototype,DC=hx.hasOwnProperty,RC=hx.toString,rc=Oi?Oi.toStringTag:void 0;function NC(o){var i=DC.call(o,rc),t=o[rc];try{o[rc]=void 0;var r=!0}catch{}var n=RC.call(o);return r&&(i?o[rc]=t:delete o[rc]),n}var ux=NC;var OC=Object.prototype,PC=OC.toString;function HC(o){return PC.call(o)}var mx=HC;var FC="[object Null]",BC="[object Undefined]",fx=Oi?Oi.toStringTag:void 0;function VC(o){return o==null?o===void 0?BC:FC:fx&&fx in Object(o)?ux(o):mx(o)}var hn=VC;function UC(o){return o!=null&&typeof o=="object"}var gr=UC;var jC=Array.isArray,Pi=jC;function GC(o){var i=typeof o;return o!=null&&(i=="object"||i=="function")}var Ar=GC;function WC(o){return o}var Tp=WC;var KC="[object AsyncFunction]",YC="[object Function]",QC="[object GeneratorFunction]",XC="[object Proxy]";function JC(o){if(!Ar(o))return!1;var i=hn(o);return i==YC||i==QC||i==KC||i==XC}var Ss=JC;var ZC=Ft["__core-js_shared__"],$p=ZC;var gx=(function(){var o=/[^.]+$/.exec($p&&$p.keys&&$p.keys.IE_PROTO||"");return o?"Symbol(src)_1."+o:""})();function eS(o){return!!gx&&gx in o}var bx=eS;var tS=Function.prototype,rS=tS.toString;function iS(o){if(o!=null){try{return rS.call(o)}catch{}try{return o+""}catch{}}return""}var to=iS;var nS=/[\\^$.*+?()[\]{}|]/g,oS=/^\[object .+?Constructor\]$/,aS=Function.prototype,sS=Object.prototype,lS=aS.toString,cS=sS.hasOwnProperty,dS=RegExp("^"+lS.call(cS).replace(nS,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function pS(o){if(!Ar(o)||bx(o))return!1;var i=Ss(o)?dS:oS;return i.test(to(o))}var vx=pS;function hS(o,i){return o?.[i]}var yx=hS;function uS(o,i){var t=yx(o,i);return vx(t)?t:void 0}var ti=uS;var mS=ti(Ft,"WeakMap"),Ap=mS;var xx=Object.create,fS=(function(){function o(){}return function(i){if(!Ar(i))return{};if(xx)return xx(i);o.prototype=i;var t=new o;return o.prototype=void 0,t}})(),wx=fS;function gS(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 zx=gS;function bS(o,i){var t=-1,r=o.length;for(i||(i=Array(r));++t<r;)i[t]=o[t];return i}var Mp=bS;var vS=800,yS=16,xS=Date.now;function wS(o){var i=0,t=0;return function(){var r=xS(),n=yS-(r-t);if(t=r,n>0){if(++i>=vS)return arguments[0]}else i=0;return o.apply(void 0,arguments)}}var _x=wS;function zS(o){return function(){return o}}var kx=zS;var _S=(function(){try{var o=ti(Object,"defineProperty");return o({},"",{}),o}catch{}})(),Es=_S;var kS=Es?function(o,i){return Es(o,"toString",{configurable:!0,enumerable:!1,value:kx(i),writable:!0})}:Tp,Cx=kS;var CS=_x(Cx),Sx=CS;function SS(o,i){for(var t=-1,r=o==null?0:o.length;++t<r&&i(o[t],t,o)!==!1;);return o}var Ex=SS;var ES=9007199254740991,TS=/^(?:0|[1-9]\d*)$/;function $S(o,i){var t=typeof o;return i=i??ES,!!i&&(t=="number"||t!="symbol"&&TS.test(o))&&o>-1&&o%1==0&&o<i}var Lp=$S;function AS(o,i,t){i=="__proto__"&&Es?Es(o,i,{configurable:!0,enumerable:!0,value:t,writable:!0}):o[i]=t}var Ts=AS;function MS(o,i){return o===i||o!==o&&i!==i}var An=MS;var LS=Object.prototype,qS=LS.hasOwnProperty;function IS(o,i,t){var r=o[i];(!(qS.call(o,i)&&An(r,t))||t===void 0&&!(i in o))&&Ts(o,i,t)}var qp=IS;function DS(o,i,t,r){var n=!t;t||(t={});for(var a=-1,s=i.length;++a<s;){var l=i[a],p=r?r(t[l],o[l],l,t,o):void 0;p===void 0&&(p=o[l]),n?Ts(t,l,p):qp(t,l,p)}return t}var Mn=DS;var Tx=Math.max;function RS(o,i,t){return i=Tx(i===void 0?o.length-1:i,0),function(){for(var r=arguments,n=-1,a=Tx(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),zx(o,this,l)}}var $x=RS;function NS(o,i){return Sx($x(o,i,Tp),o+"")}var Ax=NS;var OS=9007199254740991;function PS(o){return typeof o=="number"&&o>-1&&o%1==0&&o<=OS}var Ip=PS;function HS(o){return o!=null&&Ip(o.length)&&!Ss(o)}var Lo=HS;function FS(o,i,t){if(!Ar(t))return!1;var r=typeof i;return(r=="number"?Lo(t)&&Lp(i,t.length):r=="string"&&i in t)?An(t[i],o):!1}var Mx=FS;function BS(o){return Ax(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&&Mx(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 Lx=BS;var VS=Object.prototype;function US(o){var i=o&&o.constructor,t=typeof i=="function"&&i.prototype||VS;return o===t}var $s=US;function jS(o,i){for(var t=-1,r=Array(o);++t<o;)r[t]=i(t);return r}var qx=jS;var GS="[object Arguments]";function WS(o){return gr(o)&&hn(o)==GS}var Ym=WS;var Ix=Object.prototype,KS=Ix.hasOwnProperty,YS=Ix.propertyIsEnumerable,QS=Ym((function(){return arguments})())?Ym:function(o){return gr(o)&&KS.call(o,"callee")&&!YS.call(o,"callee")},ic=QS;function XS(){return!1}var Dx=XS;var Ox=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Rx=Ox&&typeof module=="object"&&module&&!module.nodeType&&module,JS=Rx&&Rx.exports===Ox,Nx=JS?Ft.Buffer:void 0,ZS=Nx?Nx.isBuffer:void 0,e7=ZS||Dx,ro=e7;var t7="[object Arguments]",r7="[object Array]",i7="[object Boolean]",n7="[object Date]",o7="[object Error]",a7="[object Function]",s7="[object Map]",l7="[object Number]",c7="[object Object]",d7="[object RegExp]",p7="[object Set]",h7="[object String]",u7="[object WeakMap]",m7="[object ArrayBuffer]",f7="[object DataView]",g7="[object Float32Array]",b7="[object Float64Array]",v7="[object Int8Array]",y7="[object Int16Array]",x7="[object Int32Array]",w7="[object Uint8Array]",z7="[object Uint8ClampedArray]",_7="[object Uint16Array]",k7="[object Uint32Array]",lt={};lt[g7]=lt[b7]=lt[v7]=lt[y7]=lt[x7]=lt[w7]=lt[z7]=lt[_7]=lt[k7]=!0;lt[t7]=lt[r7]=lt[m7]=lt[i7]=lt[f7]=lt[n7]=lt[o7]=lt[a7]=lt[s7]=lt[l7]=lt[c7]=lt[d7]=lt[p7]=lt[h7]=lt[u7]=!1;function C7(o){return gr(o)&&Ip(o.length)&&!!lt[hn(o)]}var Px=C7;function S7(o){return function(i){return o(i)}}var As=S7;var Hx=typeof exports=="object"&&exports&&!exports.nodeType&&exports,nc=Hx&&typeof module=="object"&&module&&!module.nodeType&&module,E7=nc&&nc.exports===Hx,Qm=E7&&Ep.process,T7=(function(){try{var o=nc&&nc.require&&nc.require("util").types;return o||Qm&&Qm.binding&&Qm.binding("util")}catch{}})(),io=T7;var Fx=io&&io.isTypedArray,$7=Fx?As(Fx):Px,Ms=$7;var A7=Object.prototype,M7=A7.hasOwnProperty;function L7(o,i){var t=Pi(o),r=!t&&ic(o),n=!t&&!r&&ro(o),a=!t&&!r&&!n&&Ms(o),s=t||r||n||a,l=s?qx(o.length,String):[],p=l.length;for(var h in o)(i||M7.call(o,h))&&!(s&&(h=="length"||n&&(h=="offset"||h=="parent")||a&&(h=="buffer"||h=="byteLength"||h=="byteOffset")||Lp(h,p)))&&l.push(h);return l}var Dp=L7;function q7(o,i){return function(t){return o(i(t))}}var Rp=q7;var I7=Rp(Object.keys,Object),Bx=I7;var D7=Object.prototype,R7=D7.hasOwnProperty;function N7(o){if(!$s(o))return Bx(o);var i=[];for(var t in Object(o))R7.call(o,t)&&t!="constructor"&&i.push(t);return i}var Vx=N7;function O7(o){return Lo(o)?Dp(o):Vx(o)}var Ls=O7;function P7(o){var i=[];if(o!=null)for(var t in Object(o))i.push(t);return i}var Ux=P7;var H7=Object.prototype,F7=H7.hasOwnProperty;function B7(o){if(!Ar(o))return Ux(o);var i=$s(o),t=[];for(var r in o)r=="constructor"&&(i||!F7.call(o,r))||t.push(r);return t}var jx=B7;function V7(o){return Lo(o)?Dp(o,!0):jx(o)}var Ln=V7;var U7=ti(Object,"create"),no=U7;function j7(){this.__data__=no?no(null):{},this.size=0}var Gx=j7;function G7(o){var i=this.has(o)&&delete this.__data__[o];return this.size-=i?1:0,i}var Wx=G7;var W7="__lodash_hash_undefined__",K7=Object.prototype,Y7=K7.hasOwnProperty;function Q7(o){var i=this.__data__;if(no){var t=i[o];return t===W7?void 0:t}return Y7.call(i,o)?i[o]:void 0}var Kx=Q7;var X7=Object.prototype,J7=X7.hasOwnProperty;function Z7(o){var i=this.__data__;return no?i[o]!==void 0:J7.call(i,o)}var Yx=Z7;var eE="__lodash_hash_undefined__";function tE(o,i){var t=this.__data__;return this.size+=this.has(o)?0:1,t[o]=no&&i===void 0?eE:i,this}var Qx=tE;function qs(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])}}qs.prototype.clear=Gx;qs.prototype.delete=Wx;qs.prototype.get=Kx;qs.prototype.has=Yx;qs.prototype.set=Qx;var Xm=qs;function rE(){this.__data__=[],this.size=0}var Xx=rE;function iE(o,i){for(var t=o.length;t--;)if(An(o[t][0],i))return t;return-1}var qo=iE;var nE=Array.prototype,oE=nE.splice;function aE(o){var i=this.__data__,t=qo(i,o);if(t<0)return!1;var r=i.length-1;return t==r?i.pop():oE.call(i,t,1),--this.size,!0}var Jx=aE;function sE(o){var i=this.__data__,t=qo(i,o);return t<0?void 0:i[t][1]}var Zx=sE;function lE(o){return qo(this.__data__,o)>-1}var ew=lE;function cE(o,i){var t=this.__data__,r=qo(t,o);return r<0?(++this.size,t.push([o,i])):t[r][1]=i,this}var tw=cE;function Is(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])}}Is.prototype.clear=Xx;Is.prototype.delete=Jx;Is.prototype.get=Zx;Is.prototype.has=ew;Is.prototype.set=tw;var Io=Is;var dE=ti(Ft,"Map"),Do=dE;function pE(){this.size=0,this.__data__={hash:new Xm,map:new(Do||Io),string:new Xm}}var rw=pE;function hE(o){var i=typeof o;return i=="string"||i=="number"||i=="symbol"||i=="boolean"?o!=="__proto__":o===null}var iw=hE;function uE(o,i){var t=o.__data__;return iw(i)?t[typeof i=="string"?"string":"hash"]:t.map}var Ro=uE;function mE(o){var i=Ro(this,o).delete(o);return this.size-=i?1:0,i}var nw=mE;function fE(o){return Ro(this,o).get(o)}var ow=fE;function gE(o){return Ro(this,o).has(o)}var aw=gE;function bE(o,i){var t=Ro(this,o),r=t.size;return t.set(o,i),this.size+=t.size==r?0:1,this}var sw=bE;function Ds(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])}}Ds.prototype.clear=rw;Ds.prototype.delete=nw;Ds.prototype.get=ow;Ds.prototype.has=aw;Ds.prototype.set=sw;var Np=Ds;function vE(o,i){for(var t=-1,r=i.length,n=o.length;++t<r;)o[n+t]=i[t];return o}var Op=vE;var yE=Rp(Object.getPrototypeOf,Object),Rs=yE;var xE="[object Object]",wE=Function.prototype,zE=Object.prototype,lw=wE.toString,_E=zE.hasOwnProperty,kE=lw.call(Object);function CE(o){if(!gr(o)||hn(o)!=xE)return!1;var i=Rs(o);if(i===null)return!0;var t=_E.call(i,"constructor")&&i.constructor;return typeof t=="function"&&t instanceof t&&lw.call(t)==kE}var cw=CE;function SE(){this.__data__=new Io,this.size=0}var dw=SE;function EE(o){var i=this.__data__,t=i.delete(o);return this.size=i.size,t}var pw=EE;function TE(o){return this.__data__.get(o)}var hw=TE;function $E(o){return this.__data__.has(o)}var uw=$E;var AE=200;function ME(o,i){var t=this.__data__;if(t instanceof Io){var r=t.__data__;if(!Do||r.length<AE-1)return r.push([o,i]),this.size=++t.size,this;t=this.__data__=new Np(r)}return t.set(o,i),this.size=t.size,this}var mw=ME;function Ns(o){var i=this.__data__=new Io(o);this.size=i.size}Ns.prototype.clear=dw;Ns.prototype.delete=pw;Ns.prototype.get=hw;Ns.prototype.has=uw;Ns.prototype.set=mw;var No=Ns;function LE(o,i){return o&&Mn(i,Ls(i),o)}var fw=LE;function qE(o,i){return o&&Mn(i,Ln(i),o)}var gw=qE;var xw=typeof exports=="object"&&exports&&!exports.nodeType&&exports,bw=xw&&typeof module=="object"&&module&&!module.nodeType&&module,IE=bw&&bw.exports===xw,vw=IE?Ft.Buffer:void 0,yw=vw?vw.allocUnsafe:void 0;function DE(o,i){if(i)return o.slice();var t=o.length,r=yw?yw(t):new o.constructor(t);return o.copy(r),r}var Pp=DE;function RE(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 ww=RE;function NE(){return[]}var Hp=NE;var OE=Object.prototype,PE=OE.propertyIsEnumerable,zw=Object.getOwnPropertySymbols,HE=zw?function(o){return o==null?[]:(o=Object(o),ww(zw(o),function(i){return PE.call(o,i)}))}:Hp,Os=HE;function FE(o,i){return Mn(o,Os(o),i)}var _w=FE;var BE=Object.getOwnPropertySymbols,VE=BE?function(o){for(var i=[];o;)Op(i,Os(o)),o=Rs(o);return i}:Hp,Fp=VE;function UE(o,i){return Mn(o,Fp(o),i)}var kw=UE;function jE(o,i,t){var r=i(o);return Pi(o)?r:Op(r,t(o))}var Bp=jE;function GE(o){return Bp(o,Ls,Os)}var oc=GE;function WE(o){return Bp(o,Ln,Fp)}var Cw=WE;var KE=ti(Ft,"DataView"),Vp=KE;var YE=ti(Ft,"Promise"),Up=YE;var QE=ti(Ft,"Set"),jp=QE;var Sw="[object Map]",XE="[object Object]",Ew="[object Promise]",Tw="[object Set]",$w="[object WeakMap]",Aw="[object DataView]",JE=to(Vp),ZE=to(Do),eT=to(Up),tT=to(jp),rT=to(Ap),Da=hn;(Vp&&Da(new Vp(new ArrayBuffer(1)))!=Aw||Do&&Da(new Do)!=Sw||Up&&Da(Up.resolve())!=Ew||jp&&Da(new jp)!=Tw||Ap&&Da(new Ap)!=$w)&&(Da=function(o){var i=hn(o),t=i==XE?o.constructor:void 0,r=t?to(t):"";if(r)switch(r){case JE:return Aw;case ZE:return Sw;case eT:return Ew;case tT:return Tw;case rT:return $w}return i});var oo=Da;var iT=Object.prototype,nT=iT.hasOwnProperty;function oT(o){var i=o.length,t=new o.constructor(i);return i&&typeof o[0]=="string"&&nT.call(o,"index")&&(t.index=o.index,t.input=o.input),t}var Mw=oT;var aT=Ft.Uint8Array,Ps=aT;function sT(o){var i=new o.constructor(o.byteLength);return new Ps(i).set(new Ps(o)),i}var Hs=sT;function lT(o,i){var t=i?Hs(o.buffer):o.buffer;return new o.constructor(t,o.byteOffset,o.byteLength)}var Lw=lT;var cT=/\w*$/;function dT(o){var i=new o.constructor(o.source,cT.exec(o));return i.lastIndex=o.lastIndex,i}var qw=dT;var Iw=Oi?Oi.prototype:void 0,Dw=Iw?Iw.valueOf:void 0;function pT(o){return Dw?Object(Dw.call(o)):{}}var Rw=pT;function hT(o,i){var t=i?Hs(o.buffer):o.buffer;return new o.constructor(t,o.byteOffset,o.length)}var Gp=hT;var uT="[object Boolean]",mT="[object Date]",fT="[object Map]",gT="[object Number]",bT="[object RegExp]",vT="[object Set]",yT="[object String]",xT="[object Symbol]",wT="[object ArrayBuffer]",zT="[object DataView]",_T="[object Float32Array]",kT="[object Float64Array]",CT="[object Int8Array]",ST="[object Int16Array]",ET="[object Int32Array]",TT="[object Uint8Array]",$T="[object Uint8ClampedArray]",AT="[object Uint16Array]",MT="[object Uint32Array]";function LT(o,i,t){var r=o.constructor;switch(i){case wT:return Hs(o);case uT:case mT:return new r(+o);case zT:return Lw(o,t);case _T:case kT:case CT:case ST:case ET:case TT:case $T:case AT:case MT:return Gp(o,t);case fT:return new r;case gT:case yT:return new r(o);case bT:return qw(o);case vT:return new r;case xT:return Rw(o)}}var Nw=LT;function qT(o){return typeof o.constructor=="function"&&!$s(o)?wx(Rs(o)):{}}var Wp=qT;var IT="[object Map]";function DT(o){return gr(o)&&oo(o)==IT}var Ow=DT;var Pw=io&&io.isMap,RT=Pw?As(Pw):Ow,Hw=RT;var NT="[object Set]";function OT(o){return gr(o)&&oo(o)==NT}var Fw=OT;var Bw=io&&io.isSet,PT=Bw?As(Bw):Fw,Vw=PT;var HT=1,FT=2,BT=4,Uw="[object Arguments]",VT="[object Array]",UT="[object Boolean]",jT="[object Date]",GT="[object Error]",jw="[object Function]",WT="[object GeneratorFunction]",KT="[object Map]",YT="[object Number]",Gw="[object Object]",QT="[object RegExp]",XT="[object Set]",JT="[object String]",ZT="[object Symbol]",e$="[object WeakMap]",t$="[object ArrayBuffer]",r$="[object DataView]",i$="[object Float32Array]",n$="[object Float64Array]",o$="[object Int8Array]",a$="[object Int16Array]",s$="[object Int32Array]",l$="[object Uint8Array]",c$="[object Uint8ClampedArray]",d$="[object Uint16Array]",p$="[object Uint32Array]",tt={};tt[Uw]=tt[VT]=tt[t$]=tt[r$]=tt[UT]=tt[jT]=tt[i$]=tt[n$]=tt[o$]=tt[a$]=tt[s$]=tt[KT]=tt[YT]=tt[Gw]=tt[QT]=tt[XT]=tt[JT]=tt[ZT]=tt[l$]=tt[c$]=tt[d$]=tt[p$]=!0;tt[GT]=tt[jw]=tt[e$]=!1;function Kp(o,i,t,r,n,a){var s,l=i&HT,p=i&FT,h=i&BT;if(t&&(s=n?t(o,r,n,a):t(o)),s!==void 0)return s;if(!Ar(o))return o;var m=Pi(o);if(m){if(s=Mw(o),!l)return Mp(o,s)}else{var f=oo(o),b=f==jw||f==WT;if(ro(o))return Pp(o,l);if(f==Gw||f==Uw||b&&!n){if(s=p||b?{}:Wp(o),!l)return p?kw(o,gw(s,o)):_w(o,fw(s,o))}else{if(!tt[f])return n?o:{};s=Nw(o,f,l)}}a||(a=new No);var g=a.get(o);if(g)return g;a.set(o,s),Vw(o)?o.forEach(function(S){s.add(Kp(S,i,t,S,o,a))}):Hw(o)&&o.forEach(function(S,T){s.set(T,Kp(S,i,t,T,o,a))});var v=h?p?Cw:oc:p?Ln:Ls,y=m?void 0:v(o);return Ex(y||o,function(S,T){y&&(T=S,S=o[T]),qp(s,T,Kp(S,i,t,T,o,a))}),s}var Ww=Kp;var h$=1,u$=4;function m$(o){return Ww(o,h$|u$)}var qn=m$;var f$="__lodash_hash_undefined__";function g$(o){return this.__data__.set(o,f$),this}var Kw=g$;function b$(o){return this.__data__.has(o)}var Yw=b$;function Yp(o){var i=-1,t=o==null?0:o.length;for(this.__data__=new Np;++i<t;)this.add(o[i])}Yp.prototype.add=Yp.prototype.push=Kw;Yp.prototype.has=Yw;var Qw=Yp;function v$(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 Xw=v$;function y$(o,i){return o.has(i)}var Jw=y$;var x$=1,w$=2;function z$(o,i,t,r,n,a){var s=t&x$,l=o.length,p=i.length;if(l!=p&&!(s&&p>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&w$?new Qw:void 0;for(a.set(o,i),a.set(i,o);++f<l;){var v=o[f],y=i[f];if(r)var S=s?r(y,v,f,i,o,a):r(v,y,f,o,i,a);if(S!==void 0){if(S)continue;b=!1;break}if(g){if(!Xw(i,function(T,N){if(!Jw(g,N)&&(v===T||n(v,T,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 Qp=z$;function _$(o){var i=-1,t=Array(o.size);return o.forEach(function(r,n){t[++i]=[n,r]}),t}var Zw=_$;function k$(o){var i=-1,t=Array(o.size);return o.forEach(function(r){t[++i]=r}),t}var ez=k$;var C$=1,S$=2,E$="[object Boolean]",T$="[object Date]",$$="[object Error]",A$="[object Map]",M$="[object Number]",L$="[object RegExp]",q$="[object Set]",I$="[object String]",D$="[object Symbol]",R$="[object ArrayBuffer]",N$="[object DataView]",tz=Oi?Oi.prototype:void 0,Jm=tz?tz.valueOf:void 0;function O$(o,i,t,r,n,a,s){switch(t){case N$:if(o.byteLength!=i.byteLength||o.byteOffset!=i.byteOffset)return!1;o=o.buffer,i=i.buffer;case R$:return!(o.byteLength!=i.byteLength||!a(new Ps(o),new Ps(i)));case E$:case T$:case M$:return An(+o,+i);case $$:return o.name==i.name&&o.message==i.message;case L$:case I$:return o==i+"";case A$:var l=Zw;case q$:var p=r&C$;if(l||(l=ez),o.size!=i.size&&!p)return!1;var h=s.get(o);if(h)return h==i;r|=S$,s.set(o,i);var m=Qp(l(o),l(i),r,n,a,s);return s.delete(o),m;case D$:if(Jm)return Jm.call(o)==Jm.call(i)}return!1}var rz=O$;var P$=1,H$=Object.prototype,F$=H$.hasOwnProperty;function B$(o,i,t,r,n,a){var s=t&P$,l=oc(o),p=l.length,h=oc(i),m=h.length;if(p!=m&&!s)return!1;for(var f=p;f--;){var b=l[f];if(!(s?b in i:F$.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 S=s;++f<p;){b=l[f];var T=o[b],N=i[b];if(r)var U=s?r(N,T,b,i,o,a):r(T,N,b,o,i,a);if(!(U===void 0?T===N||n(T,N,t,r,a):U)){y=!1;break}S||(S=b=="constructor")}if(y&&!S){var I=o.constructor,C=i.constructor;I!=C&&"constructor"in o&&"constructor"in i&&!(typeof I=="function"&&I instanceof I&&typeof C=="function"&&C instanceof C)&&(y=!1)}return a.delete(o),a.delete(i),y}var iz=B$;var V$=1,nz="[object Arguments]",oz="[object Array]",Xp="[object Object]",U$=Object.prototype,az=U$.hasOwnProperty;function j$(o,i,t,r,n,a){var s=Pi(o),l=Pi(i),p=s?oz:oo(o),h=l?oz:oo(i);p=p==nz?Xp:p,h=h==nz?Xp:h;var m=p==Xp,f=h==Xp,b=p==h;if(b&&ro(o)){if(!ro(i))return!1;s=!0,m=!1}if(b&&!m)return a||(a=new No),s||Ms(o)?Qp(o,i,t,r,n,a):rz(o,i,p,t,r,n,a);if(!(t&V$)){var g=m&&az.call(o,"__wrapped__"),v=f&&az.call(i,"__wrapped__");if(g||v){var y=g?o.value():o,S=v?i.value():i;return a||(a=new No),n(y,S,t,r,a)}}return b?(a||(a=new No),iz(o,i,t,r,n,a)):!1}var sz=j$;function lz(o,i,t,r,n){return o===i?!0:o==null||i==null||!gr(o)&&!gr(i)?o!==o&&i!==i:sz(o,i,t,r,lz,n)}var cz=lz;function G$(o){return function(i,t,r){for(var n=-1,a=Object(i),s=r(i),l=s.length;l--;){var p=s[o?l:++n];if(t(a[p],p,a)===!1)break}return i}}var dz=G$;var W$=dz(),pz=W$;function K$(o,i,t){(t!==void 0&&!An(o[i],t)||t===void 0&&!(i in o))&&Ts(o,i,t)}var ac=K$;function Y$(o){return gr(o)&&Lo(o)}var hz=Y$;function Q$(o,i){if(!(i==="constructor"&&typeof o[i]=="function")&&i!="__proto__")return o[i]}var sc=Q$;function X$(o){return Mn(o,Ln(o))}var uz=X$;function J$(o,i,t,r,n,a,s){var l=sc(o,t),p=sc(i,t),h=s.get(p);if(h){ac(o,t,h);return}var m=a?a(l,p,t+"",o,i,s):void 0,f=m===void 0;if(f){var b=Pi(p),g=!b&&ro(p),v=!b&&!g&&Ms(p);m=p,b||g||v?Pi(l)?m=l:hz(l)?m=Mp(l):g?(f=!1,m=Pp(p,!0)):v?(f=!1,m=Gp(p,!0)):m=[]:cw(p)||ic(p)?(m=l,ic(l)?m=uz(l):(!Ar(l)||Ss(l))&&(m=Wp(p))):f=!1}f&&(s.set(p,m),n(m,p,r,a,s),s.delete(p)),ac(o,t,m)}var mz=J$;function fz(o,i,t,r,n){o!==i&&pz(i,function(a,s){if(n||(n=new No),Ar(a))mz(o,i,s,t,fz,r,n);else{var l=r?r(sc(o,s),a,s+"",o,i,n):void 0;l===void 0&&(l=a),ac(o,s,l)}},Ln)}var gz=fz;function Z$(o,i){return cz(o,i)}var Ra=Z$;var eA=Lx(function(o,i,t){gz(o,i,t)}),ri=eA;var dc={};h3(dc,{Attributor:()=>Vr,AttributorStore:()=>lc,BlockBlot:()=>Na,ClassAttributor:()=>Bt,ContainerBlot:()=>js,EmbedBlot:()=>wt,InlineBlot:()=>Jp,LeafBlot:()=>Vt,ParentBlot:()=>ii,Registry:()=>Ho,Scope:()=>X,ScrollBlot:()=>cc,StyleAttributor:()=>ni,TextBlot:()=>Gs});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:""}},Po=class extends Error{constructor(i){i="[Parchment] "+i,super(i),this.message=i,this.name=this.constructor.name}},yz=class ef{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 Po(`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 ef.blots.set(l.domNode,l),l}find(i,t=!1){return ef.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 Po("Invalid definition");if(r&&t.blotName==="abstract")throw new Po("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})}};yz.blots=new WeakMap;var Ho=yz;function bz(o,i){return(o.getAttribute("class")||"").split(/\s+/).filter(t=>t.indexOf(`${i}-`)===0)}var tf=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:""}},Bt=tf;function Zm(o){let i=o.split("-"),t=i.slice(1).map(r=>r[0].toUpperCase()+r.slice(1)).join("");return i[0]+t}var rf=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[Zm(this.keyName)]=t,!0):!1}remove(i){i.style[Zm(this.keyName)]="",i.getAttribute("style")||i.removeAttribute("style")}value(i){let t=i.style[Zm(this.keyName)];return this.canAdd(i,t)?t:""}},ni=rf,nf=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=Ho.find(this.domNode);if(i==null)return;let t=Vr.keys(this.domNode),r=Bt.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),{})}},lc=nf,xz=class{constructor(i,t){this.scroll=i,this.domNode=t,Ho.blots.set(t,this),this.prev=null,this.next=null}static create(i){if(this.tagName==null)throw new Po("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),Ho.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 Po(`Cannot wrap ${i}`);return r.appendChild(this),r}};xz.blotName="abstract";var wz=xz,zz=class extends wz{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}}};zz.scope=X.INLINE_BLOT;var tA=zz,Vt=tA,of=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),p=l();for(;p&&s<i+t;){let h=p.length();i>s?r(p,i-s,Math.min(t,s+h-i)):r(p,0,Math.min(h,i+t-s)),s+=h,p=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 _z=class Oo extends wz{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,Oo.uiClass&&this.uiNode.classList.add(Oo.uiClass),this.uiNode.setAttribute("contenteditable","false"),this.domNode.insertBefore(this.uiNode,this.domNode.firstChild)}build(){this.children=new of,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 Po)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 Oo?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,p)=>{(i.blotName==null&&i(s)||i.blotName!=null&&s instanceof i)&&n.push(s),s instanceof Oo&&(n=n.concat(s.descendants(i,l,a))),a-=p}),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 Oo?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 Oo?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 Oo&&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()}};_z.uiClass="";var rA=_z,ii=rA;function iA(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 Fs=class Bs extends ii{static create(i){return super.create(i)}static formats(i,t){let r=t.query(Bs.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 lc(this.domNode)}format(i,t){if(i===this.statics.blotName&&!t)this.children.forEach(r=>{r instanceof Bs||(r=r.wrap(Bs.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 Bs&&r.prev===this&&iA(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 Bs&&this.attributes.move(r),r}};Fs.allowedChildren=[Fs,Vt],Fs.blotName="inline",Fs.scope=X.INLINE_BLOT,Fs.tagName="SPAN";var nA=Fs,Jp=nA,Vs=class af extends ii{static create(i){return super.create(i)}static formats(i,t){let r=t.query(af.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 lc(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(af.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()}};Vs.blotName="block",Vs.scope=X.BLOCK_BLOT,Vs.tagName="P",Vs.allowedChildren=[Jp,Vs,Vt];var oA=Vs,Na=oA,sf=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())}};sf.blotName="container",sf.scope=X.BLOCK_BLOT;var aA=sf,js=aA,lf=class extends Vt{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=lf,sA={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},lA=100,Us=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,sA),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=(p,h=!0)=>{p==null||p===this||p.domNode.parentNode!=null&&(r.has(p.domNode)||r.set(p.domNode,[]),h&&a(p.parent))},s=p=>{r.has(p.domNode)&&(p instanceof ii&&p.children.forEach(s),r.delete(p.domNode),p.optimize(t))},l=i;for(let p=0;l.length>0;p+=1){if(p>=lA)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)}};Us.blotName="scroll",Us.defaultChild=Na,Us.allowedChildren=[Na,js],Us.scope=X.BLOCK_BLOT,Us.tagName="DIV";var cA=Us,cc=cA,cf=class kz extends Vt{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 kz&&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}};cf.blotName="text",cf.scope=X.INLINE_BLOT;var dA=cf,Gs=dA;var Bo=_r(ei(),1);var zt=_r(ei(),1);var pf=_r(ei(),1);var pc=class extends wt{static value(){}optimize(){(this.prev||this.next)&&this.remove()}length(){return 0}value(){return""}};pc.blotName="break";pc.tagName="BR";var Mr=pc;var Dt=class extends Gs{},pA={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function Oa(o){return o.replace(/[&<>"']/g,i=>pA[i])}var In=class In extends Jp{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,Dt]),V(In,"order",["cursor","inline","link","underline","strike","italic","bold","script","code"]);var df=In,Lr=df;var Cz=1,Qe=class extends Na{constructor(){super(...arguments);V(this,"cache",{})}delta(){return this.cache.delta==null&&(this.cache.delta=hf(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(`
2859
+ </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=[z(fs),z($1)],Zr.dependencies={"zn-button":$e,"zn-input":ot,"zn-option":at,"zn-select":Be},c([F(".bulk-actions")],Zr.prototype,"container",2),c([F(".add-rule")],Zr.prototype,"addRule",2),c([F("input#main-input")],Zr.prototype,"input",2),c([d()],Zr.prototype,"name",2),c([d()],Zr.prototype,"value",2),c([d({type:Array})],Zr.prototype,"actions",2);var u8=Zr;Zr.define("zn-bulk-actions");var m8=()=>{let o="attachment",i=new Date().getTime();return`${o}_${i}`},Gl=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=m8(),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,p=l?JSON.parse(l):[];p.push(r),s.value=JSON.stringify(p)}}_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 E_=_r(ei(),1);var MC=typeof global=="object"&&global&&global.Object===Object&&global,Ep=MC;var LC=typeof self=="object"&&self&&self.Object===Object&&self,qC=Ep||LC||Function("return this")(),Ft=qC;var IC=Ft.Symbol,Oi=IC;var hx=Object.prototype,DC=hx.hasOwnProperty,RC=hx.toString,rc=Oi?Oi.toStringTag:void 0;function NC(o){var i=DC.call(o,rc),t=o[rc];try{o[rc]=void 0;var r=!0}catch{}var n=RC.call(o);return r&&(i?o[rc]=t:delete o[rc]),n}var ux=NC;var OC=Object.prototype,PC=OC.toString;function HC(o){return PC.call(o)}var mx=HC;var FC="[object Null]",BC="[object Undefined]",fx=Oi?Oi.toStringTag:void 0;function VC(o){return o==null?o===void 0?BC:FC:fx&&fx in Object(o)?ux(o):mx(o)}var hn=VC;function UC(o){return o!=null&&typeof o=="object"}var gr=UC;var jC=Array.isArray,Pi=jC;function GC(o){var i=typeof o;return o!=null&&(i=="object"||i=="function")}var Ar=GC;function WC(o){return o}var Tp=WC;var KC="[object AsyncFunction]",YC="[object Function]",QC="[object GeneratorFunction]",XC="[object Proxy]";function JC(o){if(!Ar(o))return!1;var i=hn(o);return i==YC||i==QC||i==KC||i==XC}var Ss=JC;var ZC=Ft["__core-js_shared__"],$p=ZC;var gx=(function(){var o=/[^.]+$/.exec($p&&$p.keys&&$p.keys.IE_PROTO||"");return o?"Symbol(src)_1."+o:""})();function eS(o){return!!gx&&gx in o}var bx=eS;var tS=Function.prototype,rS=tS.toString;function iS(o){if(o!=null){try{return rS.call(o)}catch{}try{return o+""}catch{}}return""}var to=iS;var nS=/[\\^$.*+?()[\]{}|]/g,oS=/^\[object .+?Constructor\]$/,aS=Function.prototype,sS=Object.prototype,lS=aS.toString,cS=sS.hasOwnProperty,dS=RegExp("^"+lS.call(cS).replace(nS,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function pS(o){if(!Ar(o)||bx(o))return!1;var i=Ss(o)?dS:oS;return i.test(to(o))}var vx=pS;function hS(o,i){return o?.[i]}var yx=hS;function uS(o,i){var t=yx(o,i);return vx(t)?t:void 0}var ti=uS;var mS=ti(Ft,"WeakMap"),Ap=mS;var xx=Object.create,fS=(function(){function o(){}return function(i){if(!Ar(i))return{};if(xx)return xx(i);o.prototype=i;var t=new o;return o.prototype=void 0,t}})(),wx=fS;function gS(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 zx=gS;function bS(o,i){var t=-1,r=o.length;for(i||(i=Array(r));++t<r;)i[t]=o[t];return i}var Mp=bS;var vS=800,yS=16,xS=Date.now;function wS(o){var i=0,t=0;return function(){var r=xS(),n=yS-(r-t);if(t=r,n>0){if(++i>=vS)return arguments[0]}else i=0;return o.apply(void 0,arguments)}}var _x=wS;function zS(o){return function(){return o}}var kx=zS;var _S=(function(){try{var o=ti(Object,"defineProperty");return o({},"",{}),o}catch{}})(),Es=_S;var kS=Es?function(o,i){return Es(o,"toString",{configurable:!0,enumerable:!1,value:kx(i),writable:!0})}:Tp,Cx=kS;var CS=_x(Cx),Sx=CS;function SS(o,i){for(var t=-1,r=o==null?0:o.length;++t<r&&i(o[t],t,o)!==!1;);return o}var Ex=SS;var ES=9007199254740991,TS=/^(?:0|[1-9]\d*)$/;function $S(o,i){var t=typeof o;return i=i??ES,!!i&&(t=="number"||t!="symbol"&&TS.test(o))&&o>-1&&o%1==0&&o<i}var Lp=$S;function AS(o,i,t){i=="__proto__"&&Es?Es(o,i,{configurable:!0,enumerable:!0,value:t,writable:!0}):o[i]=t}var Ts=AS;function MS(o,i){return o===i||o!==o&&i!==i}var An=MS;var LS=Object.prototype,qS=LS.hasOwnProperty;function IS(o,i,t){var r=o[i];(!(qS.call(o,i)&&An(r,t))||t===void 0&&!(i in o))&&Ts(o,i,t)}var qp=IS;function DS(o,i,t,r){var n=!t;t||(t={});for(var a=-1,s=i.length;++a<s;){var l=i[a],p=r?r(t[l],o[l],l,t,o):void 0;p===void 0&&(p=o[l]),n?Ts(t,l,p):qp(t,l,p)}return t}var Mn=DS;var Tx=Math.max;function RS(o,i,t){return i=Tx(i===void 0?o.length-1:i,0),function(){for(var r=arguments,n=-1,a=Tx(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),zx(o,this,l)}}var $x=RS;function NS(o,i){return Sx($x(o,i,Tp),o+"")}var Ax=NS;var OS=9007199254740991;function PS(o){return typeof o=="number"&&o>-1&&o%1==0&&o<=OS}var Ip=PS;function HS(o){return o!=null&&Ip(o.length)&&!Ss(o)}var Lo=HS;function FS(o,i,t){if(!Ar(t))return!1;var r=typeof i;return(r=="number"?Lo(t)&&Lp(i,t.length):r=="string"&&i in t)?An(t[i],o):!1}var Mx=FS;function BS(o){return Ax(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&&Mx(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 Lx=BS;var VS=Object.prototype;function US(o){var i=o&&o.constructor,t=typeof i=="function"&&i.prototype||VS;return o===t}var $s=US;function jS(o,i){for(var t=-1,r=Array(o);++t<o;)r[t]=i(t);return r}var qx=jS;var GS="[object Arguments]";function WS(o){return gr(o)&&hn(o)==GS}var Ym=WS;var Ix=Object.prototype,KS=Ix.hasOwnProperty,YS=Ix.propertyIsEnumerable,QS=Ym((function(){return arguments})())?Ym:function(o){return gr(o)&&KS.call(o,"callee")&&!YS.call(o,"callee")},ic=QS;function XS(){return!1}var Dx=XS;var Ox=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Rx=Ox&&typeof module=="object"&&module&&!module.nodeType&&module,JS=Rx&&Rx.exports===Ox,Nx=JS?Ft.Buffer:void 0,ZS=Nx?Nx.isBuffer:void 0,e7=ZS||Dx,ro=e7;var t7="[object Arguments]",r7="[object Array]",i7="[object Boolean]",n7="[object Date]",o7="[object Error]",a7="[object Function]",s7="[object Map]",l7="[object Number]",c7="[object Object]",d7="[object RegExp]",p7="[object Set]",h7="[object String]",u7="[object WeakMap]",m7="[object ArrayBuffer]",f7="[object DataView]",g7="[object Float32Array]",b7="[object Float64Array]",v7="[object Int8Array]",y7="[object Int16Array]",x7="[object Int32Array]",w7="[object Uint8Array]",z7="[object Uint8ClampedArray]",_7="[object Uint16Array]",k7="[object Uint32Array]",lt={};lt[g7]=lt[b7]=lt[v7]=lt[y7]=lt[x7]=lt[w7]=lt[z7]=lt[_7]=lt[k7]=!0;lt[t7]=lt[r7]=lt[m7]=lt[i7]=lt[f7]=lt[n7]=lt[o7]=lt[a7]=lt[s7]=lt[l7]=lt[c7]=lt[d7]=lt[p7]=lt[h7]=lt[u7]=!1;function C7(o){return gr(o)&&Ip(o.length)&&!!lt[hn(o)]}var Px=C7;function S7(o){return function(i){return o(i)}}var As=S7;var Hx=typeof exports=="object"&&exports&&!exports.nodeType&&exports,nc=Hx&&typeof module=="object"&&module&&!module.nodeType&&module,E7=nc&&nc.exports===Hx,Qm=E7&&Ep.process,T7=(function(){try{var o=nc&&nc.require&&nc.require("util").types;return o||Qm&&Qm.binding&&Qm.binding("util")}catch{}})(),io=T7;var Fx=io&&io.isTypedArray,$7=Fx?As(Fx):Px,Ms=$7;var A7=Object.prototype,M7=A7.hasOwnProperty;function L7(o,i){var t=Pi(o),r=!t&&ic(o),n=!t&&!r&&ro(o),a=!t&&!r&&!n&&Ms(o),s=t||r||n||a,l=s?qx(o.length,String):[],p=l.length;for(var h in o)(i||M7.call(o,h))&&!(s&&(h=="length"||n&&(h=="offset"||h=="parent")||a&&(h=="buffer"||h=="byteLength"||h=="byteOffset")||Lp(h,p)))&&l.push(h);return l}var Dp=L7;function q7(o,i){return function(t){return o(i(t))}}var Rp=q7;var I7=Rp(Object.keys,Object),Bx=I7;var D7=Object.prototype,R7=D7.hasOwnProperty;function N7(o){if(!$s(o))return Bx(o);var i=[];for(var t in Object(o))R7.call(o,t)&&t!="constructor"&&i.push(t);return i}var Vx=N7;function O7(o){return Lo(o)?Dp(o):Vx(o)}var Ls=O7;function P7(o){var i=[];if(o!=null)for(var t in Object(o))i.push(t);return i}var Ux=P7;var H7=Object.prototype,F7=H7.hasOwnProperty;function B7(o){if(!Ar(o))return Ux(o);var i=$s(o),t=[];for(var r in o)r=="constructor"&&(i||!F7.call(o,r))||t.push(r);return t}var jx=B7;function V7(o){return Lo(o)?Dp(o,!0):jx(o)}var Ln=V7;var U7=ti(Object,"create"),no=U7;function j7(){this.__data__=no?no(null):{},this.size=0}var Gx=j7;function G7(o){var i=this.has(o)&&delete this.__data__[o];return this.size-=i?1:0,i}var Wx=G7;var W7="__lodash_hash_undefined__",K7=Object.prototype,Y7=K7.hasOwnProperty;function Q7(o){var i=this.__data__;if(no){var t=i[o];return t===W7?void 0:t}return Y7.call(i,o)?i[o]:void 0}var Kx=Q7;var X7=Object.prototype,J7=X7.hasOwnProperty;function Z7(o){var i=this.__data__;return no?i[o]!==void 0:J7.call(i,o)}var Yx=Z7;var eE="__lodash_hash_undefined__";function tE(o,i){var t=this.__data__;return this.size+=this.has(o)?0:1,t[o]=no&&i===void 0?eE:i,this}var Qx=tE;function qs(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])}}qs.prototype.clear=Gx;qs.prototype.delete=Wx;qs.prototype.get=Kx;qs.prototype.has=Yx;qs.prototype.set=Qx;var Xm=qs;function rE(){this.__data__=[],this.size=0}var Xx=rE;function iE(o,i){for(var t=o.length;t--;)if(An(o[t][0],i))return t;return-1}var qo=iE;var nE=Array.prototype,oE=nE.splice;function aE(o){var i=this.__data__,t=qo(i,o);if(t<0)return!1;var r=i.length-1;return t==r?i.pop():oE.call(i,t,1),--this.size,!0}var Jx=aE;function sE(o){var i=this.__data__,t=qo(i,o);return t<0?void 0:i[t][1]}var Zx=sE;function lE(o){return qo(this.__data__,o)>-1}var ew=lE;function cE(o,i){var t=this.__data__,r=qo(t,o);return r<0?(++this.size,t.push([o,i])):t[r][1]=i,this}var tw=cE;function Is(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])}}Is.prototype.clear=Xx;Is.prototype.delete=Jx;Is.prototype.get=Zx;Is.prototype.has=ew;Is.prototype.set=tw;var Io=Is;var dE=ti(Ft,"Map"),Do=dE;function pE(){this.size=0,this.__data__={hash:new Xm,map:new(Do||Io),string:new Xm}}var rw=pE;function hE(o){var i=typeof o;return i=="string"||i=="number"||i=="symbol"||i=="boolean"?o!=="__proto__":o===null}var iw=hE;function uE(o,i){var t=o.__data__;return iw(i)?t[typeof i=="string"?"string":"hash"]:t.map}var Ro=uE;function mE(o){var i=Ro(this,o).delete(o);return this.size-=i?1:0,i}var nw=mE;function fE(o){return Ro(this,o).get(o)}var ow=fE;function gE(o){return Ro(this,o).has(o)}var aw=gE;function bE(o,i){var t=Ro(this,o),r=t.size;return t.set(o,i),this.size+=t.size==r?0:1,this}var sw=bE;function Ds(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])}}Ds.prototype.clear=rw;Ds.prototype.delete=nw;Ds.prototype.get=ow;Ds.prototype.has=aw;Ds.prototype.set=sw;var Np=Ds;function vE(o,i){for(var t=-1,r=i.length,n=o.length;++t<r;)o[n+t]=i[t];return o}var Op=vE;var yE=Rp(Object.getPrototypeOf,Object),Rs=yE;var xE="[object Object]",wE=Function.prototype,zE=Object.prototype,lw=wE.toString,_E=zE.hasOwnProperty,kE=lw.call(Object);function CE(o){if(!gr(o)||hn(o)!=xE)return!1;var i=Rs(o);if(i===null)return!0;var t=_E.call(i,"constructor")&&i.constructor;return typeof t=="function"&&t instanceof t&&lw.call(t)==kE}var cw=CE;function SE(){this.__data__=new Io,this.size=0}var dw=SE;function EE(o){var i=this.__data__,t=i.delete(o);return this.size=i.size,t}var pw=EE;function TE(o){return this.__data__.get(o)}var hw=TE;function $E(o){return this.__data__.has(o)}var uw=$E;var AE=200;function ME(o,i){var t=this.__data__;if(t instanceof Io){var r=t.__data__;if(!Do||r.length<AE-1)return r.push([o,i]),this.size=++t.size,this;t=this.__data__=new Np(r)}return t.set(o,i),this.size=t.size,this}var mw=ME;function Ns(o){var i=this.__data__=new Io(o);this.size=i.size}Ns.prototype.clear=dw;Ns.prototype.delete=pw;Ns.prototype.get=hw;Ns.prototype.has=uw;Ns.prototype.set=mw;var No=Ns;function LE(o,i){return o&&Mn(i,Ls(i),o)}var fw=LE;function qE(o,i){return o&&Mn(i,Ln(i),o)}var gw=qE;var xw=typeof exports=="object"&&exports&&!exports.nodeType&&exports,bw=xw&&typeof module=="object"&&module&&!module.nodeType&&module,IE=bw&&bw.exports===xw,vw=IE?Ft.Buffer:void 0,yw=vw?vw.allocUnsafe:void 0;function DE(o,i){if(i)return o.slice();var t=o.length,r=yw?yw(t):new o.constructor(t);return o.copy(r),r}var Pp=DE;function RE(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 ww=RE;function NE(){return[]}var Hp=NE;var OE=Object.prototype,PE=OE.propertyIsEnumerable,zw=Object.getOwnPropertySymbols,HE=zw?function(o){return o==null?[]:(o=Object(o),ww(zw(o),function(i){return PE.call(o,i)}))}:Hp,Os=HE;function FE(o,i){return Mn(o,Os(o),i)}var _w=FE;var BE=Object.getOwnPropertySymbols,VE=BE?function(o){for(var i=[];o;)Op(i,Os(o)),o=Rs(o);return i}:Hp,Fp=VE;function UE(o,i){return Mn(o,Fp(o),i)}var kw=UE;function jE(o,i,t){var r=i(o);return Pi(o)?r:Op(r,t(o))}var Bp=jE;function GE(o){return Bp(o,Ls,Os)}var oc=GE;function WE(o){return Bp(o,Ln,Fp)}var Cw=WE;var KE=ti(Ft,"DataView"),Vp=KE;var YE=ti(Ft,"Promise"),Up=YE;var QE=ti(Ft,"Set"),jp=QE;var Sw="[object Map]",XE="[object Object]",Ew="[object Promise]",Tw="[object Set]",$w="[object WeakMap]",Aw="[object DataView]",JE=to(Vp),ZE=to(Do),eT=to(Up),tT=to(jp),rT=to(Ap),Da=hn;(Vp&&Da(new Vp(new ArrayBuffer(1)))!=Aw||Do&&Da(new Do)!=Sw||Up&&Da(Up.resolve())!=Ew||jp&&Da(new jp)!=Tw||Ap&&Da(new Ap)!=$w)&&(Da=function(o){var i=hn(o),t=i==XE?o.constructor:void 0,r=t?to(t):"";if(r)switch(r){case JE:return Aw;case ZE:return Sw;case eT:return Ew;case tT:return Tw;case rT:return $w}return i});var oo=Da;var iT=Object.prototype,nT=iT.hasOwnProperty;function oT(o){var i=o.length,t=new o.constructor(i);return i&&typeof o[0]=="string"&&nT.call(o,"index")&&(t.index=o.index,t.input=o.input),t}var Mw=oT;var aT=Ft.Uint8Array,Ps=aT;function sT(o){var i=new o.constructor(o.byteLength);return new Ps(i).set(new Ps(o)),i}var Hs=sT;function lT(o,i){var t=i?Hs(o.buffer):o.buffer;return new o.constructor(t,o.byteOffset,o.byteLength)}var Lw=lT;var cT=/\w*$/;function dT(o){var i=new o.constructor(o.source,cT.exec(o));return i.lastIndex=o.lastIndex,i}var qw=dT;var Iw=Oi?Oi.prototype:void 0,Dw=Iw?Iw.valueOf:void 0;function pT(o){return Dw?Object(Dw.call(o)):{}}var Rw=pT;function hT(o,i){var t=i?Hs(o.buffer):o.buffer;return new o.constructor(t,o.byteOffset,o.length)}var Gp=hT;var uT="[object Boolean]",mT="[object Date]",fT="[object Map]",gT="[object Number]",bT="[object RegExp]",vT="[object Set]",yT="[object String]",xT="[object Symbol]",wT="[object ArrayBuffer]",zT="[object DataView]",_T="[object Float32Array]",kT="[object Float64Array]",CT="[object Int8Array]",ST="[object Int16Array]",ET="[object Int32Array]",TT="[object Uint8Array]",$T="[object Uint8ClampedArray]",AT="[object Uint16Array]",MT="[object Uint32Array]";function LT(o,i,t){var r=o.constructor;switch(i){case wT:return Hs(o);case uT:case mT:return new r(+o);case zT:return Lw(o,t);case _T:case kT:case CT:case ST:case ET:case TT:case $T:case AT:case MT:return Gp(o,t);case fT:return new r;case gT:case yT:return new r(o);case bT:return qw(o);case vT:return new r;case xT:return Rw(o)}}var Nw=LT;function qT(o){return typeof o.constructor=="function"&&!$s(o)?wx(Rs(o)):{}}var Wp=qT;var IT="[object Map]";function DT(o){return gr(o)&&oo(o)==IT}var Ow=DT;var Pw=io&&io.isMap,RT=Pw?As(Pw):Ow,Hw=RT;var NT="[object Set]";function OT(o){return gr(o)&&oo(o)==NT}var Fw=OT;var Bw=io&&io.isSet,PT=Bw?As(Bw):Fw,Vw=PT;var HT=1,FT=2,BT=4,Uw="[object Arguments]",VT="[object Array]",UT="[object Boolean]",jT="[object Date]",GT="[object Error]",jw="[object Function]",WT="[object GeneratorFunction]",KT="[object Map]",YT="[object Number]",Gw="[object Object]",QT="[object RegExp]",XT="[object Set]",JT="[object String]",ZT="[object Symbol]",e$="[object WeakMap]",t$="[object ArrayBuffer]",r$="[object DataView]",i$="[object Float32Array]",n$="[object Float64Array]",o$="[object Int8Array]",a$="[object Int16Array]",s$="[object Int32Array]",l$="[object Uint8Array]",c$="[object Uint8ClampedArray]",d$="[object Uint16Array]",p$="[object Uint32Array]",rt={};rt[Uw]=rt[VT]=rt[t$]=rt[r$]=rt[UT]=rt[jT]=rt[i$]=rt[n$]=rt[o$]=rt[a$]=rt[s$]=rt[KT]=rt[YT]=rt[Gw]=rt[QT]=rt[XT]=rt[JT]=rt[ZT]=rt[l$]=rt[c$]=rt[d$]=rt[p$]=!0;rt[GT]=rt[jw]=rt[e$]=!1;function Kp(o,i,t,r,n,a){var s,l=i&HT,p=i&FT,h=i&BT;if(t&&(s=n?t(o,r,n,a):t(o)),s!==void 0)return s;if(!Ar(o))return o;var m=Pi(o);if(m){if(s=Mw(o),!l)return Mp(o,s)}else{var f=oo(o),b=f==jw||f==WT;if(ro(o))return Pp(o,l);if(f==Gw||f==Uw||b&&!n){if(s=p||b?{}:Wp(o),!l)return p?kw(o,gw(s,o)):_w(o,fw(s,o))}else{if(!rt[f])return n?o:{};s=Nw(o,f,l)}}a||(a=new No);var g=a.get(o);if(g)return g;a.set(o,s),Vw(o)?o.forEach(function(S){s.add(Kp(S,i,t,S,o,a))}):Hw(o)&&o.forEach(function(S,T){s.set(T,Kp(S,i,t,T,o,a))});var v=h?p?Cw:oc:p?Ln:Ls,y=m?void 0:v(o);return Ex(y||o,function(S,T){y&&(T=S,S=o[T]),qp(s,T,Kp(S,i,t,T,o,a))}),s}var Ww=Kp;var h$=1,u$=4;function m$(o){return Ww(o,h$|u$)}var qn=m$;var f$="__lodash_hash_undefined__";function g$(o){return this.__data__.set(o,f$),this}var Kw=g$;function b$(o){return this.__data__.has(o)}var Yw=b$;function Yp(o){var i=-1,t=o==null?0:o.length;for(this.__data__=new Np;++i<t;)this.add(o[i])}Yp.prototype.add=Yp.prototype.push=Kw;Yp.prototype.has=Yw;var Qw=Yp;function v$(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 Xw=v$;function y$(o,i){return o.has(i)}var Jw=y$;var x$=1,w$=2;function z$(o,i,t,r,n,a){var s=t&x$,l=o.length,p=i.length;if(l!=p&&!(s&&p>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&w$?new Qw:void 0;for(a.set(o,i),a.set(i,o);++f<l;){var v=o[f],y=i[f];if(r)var S=s?r(y,v,f,i,o,a):r(v,y,f,o,i,a);if(S!==void 0){if(S)continue;b=!1;break}if(g){if(!Xw(i,function(T,N){if(!Jw(g,N)&&(v===T||n(v,T,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 Qp=z$;function _$(o){var i=-1,t=Array(o.size);return o.forEach(function(r,n){t[++i]=[n,r]}),t}var Zw=_$;function k$(o){var i=-1,t=Array(o.size);return o.forEach(function(r){t[++i]=r}),t}var ez=k$;var C$=1,S$=2,E$="[object Boolean]",T$="[object Date]",$$="[object Error]",A$="[object Map]",M$="[object Number]",L$="[object RegExp]",q$="[object Set]",I$="[object String]",D$="[object Symbol]",R$="[object ArrayBuffer]",N$="[object DataView]",tz=Oi?Oi.prototype:void 0,Jm=tz?tz.valueOf:void 0;function O$(o,i,t,r,n,a,s){switch(t){case N$:if(o.byteLength!=i.byteLength||o.byteOffset!=i.byteOffset)return!1;o=o.buffer,i=i.buffer;case R$:return!(o.byteLength!=i.byteLength||!a(new Ps(o),new Ps(i)));case E$:case T$:case M$:return An(+o,+i);case $$:return o.name==i.name&&o.message==i.message;case L$:case I$:return o==i+"";case A$:var l=Zw;case q$:var p=r&C$;if(l||(l=ez),o.size!=i.size&&!p)return!1;var h=s.get(o);if(h)return h==i;r|=S$,s.set(o,i);var m=Qp(l(o),l(i),r,n,a,s);return s.delete(o),m;case D$:if(Jm)return Jm.call(o)==Jm.call(i)}return!1}var rz=O$;var P$=1,H$=Object.prototype,F$=H$.hasOwnProperty;function B$(o,i,t,r,n,a){var s=t&P$,l=oc(o),p=l.length,h=oc(i),m=h.length;if(p!=m&&!s)return!1;for(var f=p;f--;){var b=l[f];if(!(s?b in i:F$.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 S=s;++f<p;){b=l[f];var T=o[b],N=i[b];if(r)var U=s?r(N,T,b,i,o,a):r(T,N,b,o,i,a);if(!(U===void 0?T===N||n(T,N,t,r,a):U)){y=!1;break}S||(S=b=="constructor")}if(y&&!S){var I=o.constructor,C=i.constructor;I!=C&&"constructor"in o&&"constructor"in i&&!(typeof I=="function"&&I instanceof I&&typeof C=="function"&&C instanceof C)&&(y=!1)}return a.delete(o),a.delete(i),y}var iz=B$;var V$=1,nz="[object Arguments]",oz="[object Array]",Xp="[object Object]",U$=Object.prototype,az=U$.hasOwnProperty;function j$(o,i,t,r,n,a){var s=Pi(o),l=Pi(i),p=s?oz:oo(o),h=l?oz:oo(i);p=p==nz?Xp:p,h=h==nz?Xp:h;var m=p==Xp,f=h==Xp,b=p==h;if(b&&ro(o)){if(!ro(i))return!1;s=!0,m=!1}if(b&&!m)return a||(a=new No),s||Ms(o)?Qp(o,i,t,r,n,a):rz(o,i,p,t,r,n,a);if(!(t&V$)){var g=m&&az.call(o,"__wrapped__"),v=f&&az.call(i,"__wrapped__");if(g||v){var y=g?o.value():o,S=v?i.value():i;return a||(a=new No),n(y,S,t,r,a)}}return b?(a||(a=new No),iz(o,i,t,r,n,a)):!1}var sz=j$;function lz(o,i,t,r,n){return o===i?!0:o==null||i==null||!gr(o)&&!gr(i)?o!==o&&i!==i:sz(o,i,t,r,lz,n)}var cz=lz;function G$(o){return function(i,t,r){for(var n=-1,a=Object(i),s=r(i),l=s.length;l--;){var p=s[o?l:++n];if(t(a[p],p,a)===!1)break}return i}}var dz=G$;var W$=dz(),pz=W$;function K$(o,i,t){(t!==void 0&&!An(o[i],t)||t===void 0&&!(i in o))&&Ts(o,i,t)}var ac=K$;function Y$(o){return gr(o)&&Lo(o)}var hz=Y$;function Q$(o,i){if(!(i==="constructor"&&typeof o[i]=="function")&&i!="__proto__")return o[i]}var sc=Q$;function X$(o){return Mn(o,Ln(o))}var uz=X$;function J$(o,i,t,r,n,a,s){var l=sc(o,t),p=sc(i,t),h=s.get(p);if(h){ac(o,t,h);return}var m=a?a(l,p,t+"",o,i,s):void 0,f=m===void 0;if(f){var b=Pi(p),g=!b&&ro(p),v=!b&&!g&&Ms(p);m=p,b||g||v?Pi(l)?m=l:hz(l)?m=Mp(l):g?(f=!1,m=Pp(p,!0)):v?(f=!1,m=Gp(p,!0)):m=[]:cw(p)||ic(p)?(m=l,ic(l)?m=uz(l):(!Ar(l)||Ss(l))&&(m=Wp(p))):f=!1}f&&(s.set(p,m),n(m,p,r,a,s),s.delete(p)),ac(o,t,m)}var mz=J$;function fz(o,i,t,r,n){o!==i&&pz(i,function(a,s){if(n||(n=new No),Ar(a))mz(o,i,s,t,fz,r,n);else{var l=r?r(sc(o,s),a,s+"",o,i,n):void 0;l===void 0&&(l=a),ac(o,s,l)}},Ln)}var gz=fz;function Z$(o,i){return cz(o,i)}var Ra=Z$;var eA=Lx(function(o,i,t){gz(o,i,t)}),ri=eA;var dc={};h3(dc,{Attributor:()=>Vr,AttributorStore:()=>lc,BlockBlot:()=>Na,ClassAttributor:()=>Bt,ContainerBlot:()=>js,EmbedBlot:()=>wt,InlineBlot:()=>Jp,LeafBlot:()=>Vt,ParentBlot:()=>ii,Registry:()=>Ho,Scope:()=>X,ScrollBlot:()=>cc,StyleAttributor:()=>ni,TextBlot:()=>Gs});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:""}},Po=class extends Error{constructor(i){i="[Parchment] "+i,super(i),this.message=i,this.name=this.constructor.name}},yz=class ef{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 Po(`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 ef.blots.set(l.domNode,l),l}find(i,t=!1){return ef.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 Po("Invalid definition");if(r&&t.blotName==="abstract")throw new Po("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})}};yz.blots=new WeakMap;var Ho=yz;function bz(o,i){return(o.getAttribute("class")||"").split(/\s+/).filter(t=>t.indexOf(`${i}-`)===0)}var tf=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:""}},Bt=tf;function Zm(o){let i=o.split("-"),t=i.slice(1).map(r=>r[0].toUpperCase()+r.slice(1)).join("");return i[0]+t}var rf=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[Zm(this.keyName)]=t,!0):!1}remove(i){i.style[Zm(this.keyName)]="",i.getAttribute("style")||i.removeAttribute("style")}value(i){let t=i.style[Zm(this.keyName)];return this.canAdd(i,t)?t:""}},ni=rf,nf=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=Ho.find(this.domNode);if(i==null)return;let t=Vr.keys(this.domNode),r=Bt.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),{})}},lc=nf,xz=class{constructor(i,t){this.scroll=i,this.domNode=t,Ho.blots.set(t,this),this.prev=null,this.next=null}static create(i){if(this.tagName==null)throw new Po("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),Ho.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 Po(`Cannot wrap ${i}`);return r.appendChild(this),r}};xz.blotName="abstract";var wz=xz,zz=class extends wz{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}}};zz.scope=X.INLINE_BLOT;var tA=zz,Vt=tA,of=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),p=l();for(;p&&s<i+t;){let h=p.length();i>s?r(p,i-s,Math.min(t,s+h-i)):r(p,0,Math.min(h,i+t-s)),s+=h,p=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 _z=class Oo extends wz{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,Oo.uiClass&&this.uiNode.classList.add(Oo.uiClass),this.uiNode.setAttribute("contenteditable","false"),this.domNode.insertBefore(this.uiNode,this.domNode.firstChild)}build(){this.children=new of,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 Po)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 Oo?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,p)=>{(i.blotName==null&&i(s)||i.blotName!=null&&s instanceof i)&&n.push(s),s instanceof Oo&&(n=n.concat(s.descendants(i,l,a))),a-=p}),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 Oo?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 Oo?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 Oo&&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()}};_z.uiClass="";var rA=_z,ii=rA;function iA(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 Fs=class Bs extends ii{static create(i){return super.create(i)}static formats(i,t){let r=t.query(Bs.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 lc(this.domNode)}format(i,t){if(i===this.statics.blotName&&!t)this.children.forEach(r=>{r instanceof Bs||(r=r.wrap(Bs.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 Bs&&r.prev===this&&iA(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 Bs&&this.attributes.move(r),r}};Fs.allowedChildren=[Fs,Vt],Fs.blotName="inline",Fs.scope=X.INLINE_BLOT,Fs.tagName="SPAN";var nA=Fs,Jp=nA,Vs=class af extends ii{static create(i){return super.create(i)}static formats(i,t){let r=t.query(af.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 lc(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(af.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()}};Vs.blotName="block",Vs.scope=X.BLOCK_BLOT,Vs.tagName="P",Vs.allowedChildren=[Jp,Vs,Vt];var oA=Vs,Na=oA,sf=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())}};sf.blotName="container",sf.scope=X.BLOCK_BLOT;var aA=sf,js=aA,lf=class extends Vt{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=lf,sA={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},lA=100,Us=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,sA),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=(p,h=!0)=>{p==null||p===this||p.domNode.parentNode!=null&&(r.has(p.domNode)||r.set(p.domNode,[]),h&&a(p.parent))},s=p=>{r.has(p.domNode)&&(p instanceof ii&&p.children.forEach(s),r.delete(p.domNode),p.optimize(t))},l=i;for(let p=0;l.length>0;p+=1){if(p>=lA)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)}};Us.blotName="scroll",Us.defaultChild=Na,Us.allowedChildren=[Na,js],Us.scope=X.BLOCK_BLOT,Us.tagName="DIV";var cA=Us,cc=cA,cf=class kz extends Vt{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 kz&&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}};cf.blotName="text",cf.scope=X.INLINE_BLOT;var dA=cf,Gs=dA;var Bo=_r(ei(),1);var zt=_r(ei(),1);var pf=_r(ei(),1);var pc=class extends wt{static value(){}optimize(){(this.prev||this.next)&&this.remove()}length(){return 0}value(){return""}};pc.blotName="break";pc.tagName="BR";var Mr=pc;var Dt=class extends Gs{},pA={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function Oa(o){return o.replace(/[&<>"']/g,i=>pA[i])}var In=class In extends Jp{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,Dt]),V(In,"order",["cursor","inline","link","underline","strike","italic","bold","script","code"]);var df=In,Lr=df;var Cz=1,Qe=class extends Na{constructor(){super(...arguments);V(this,"cache",{})}delta(){return this.cache.delta==null&&(this.cache.delta=hf(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(`
2860
2860
  `),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((p,h)=>(l=l.split(p,!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()+Cz),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()-Cz)){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}};Qe.blotName="block";Qe.tagName="P";Qe.defaultChild=Mr;Qe.allowedChildren=[Mr,Lr,wt,Dt];var Qt=class extends wt{attach(){super.attach(),this.attributes=new lc(this.domNode)}delta(){return new pf.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(`
2861
2861
  `),a=n.pop(),s=n.map(p=>{let h=this.scroll.create(Qe.blotName);return h.insertAt(0,p),h}),l=this.split(i);s.forEach(p=>{this.parent.insertBefore(p,l)}),a&&this.parent.insertBefore(this.scroll.create("text",a),l)}};Qt.scope=X.BLOCK_BLOT;function hf(o){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return o.descendants(Vt).reduce((t,r)=>r.length()===0?t:t.insert(r.value(),oi(r,{},i)),new pf.default).insert(`
2862
2862
  `,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 Hi=class Hi extends wt{static value(){}constructor(i,t,r){super(i,t),this.selection=r,this.textNode=document.createTextNode(Hi.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=Hi.CONTENTS.length,r.optimize(),r.formatAt(n,Hi.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 Dt?this.prev:null,r=t?t.length():0,n=this.next instanceof Dt?this.next:null,a=n?n.text:"",{textNode:s}=this,l=s.data.split(Hi.CONTENTS).join("");s.data=Hi.CONTENTS;let p;if(t)p=t,(l||n)&&(t.insertAt(t.length(),l+a),n&&n.remove());else if(n)p=n,n.insertAt(0,l);else{let h=document.createTextNode(l);p=this.scroll.create(h),this.parent.insertBefore(p,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:p.domNode,startOffset:m,endNode:p.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=Hi.CONTENTS.length,t.isolate(this.offset(t),this.length()).unwrap(),this.savedLength=0;break}t=t.parent}}value(){return""}};V(Hi,"blotName","cursor"),V(Hi,"className","ql-cursor"),V(Hi,"tagName","span"),V(Hi,"CONTENTS","\uFEFF");var uf=Hi,Fo=uf;var ff=_r(Ez(),1);var uc=new WeakMap;var gf=["error","warn","log","info"],bf="warn";function Tz(o){if(bf&&gf.indexOf(o)<=gf.indexOf(bf)){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 vf(o){return gf.reduce((i,t)=>(i[t]=Tz.bind(console,t,o),i),{})}vf.level=o=>{bf=o};Tz.level=vf.level;var _i=vf;var yf=_i("quill:events"),mA=["selectionchange","mousedown","mouseup","click"];mA.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=uc.get(n);a&&a.emitter&&a.emitter.handleDOM(...t)})})});var mc=class extends ff.default{constructor(){super(),this.domListeners={},this.on("error",yf.error)}emit(){for(var i=arguments.length,t=new Array(i),r=0;r<i;r++)t[r]=arguments[r];return yf.log.call(yf,...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(mc,"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(mc,"sources",{API:"api",SILENT:"silent",USER:"user"});var J=mc;var xf=_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}},zf=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:p}=n.range;this.setNativeRange(a,s,l,p),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 Vt){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 p="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),p="right"),h=l.getBoundingClientRect()}else{if(!(a.domNode instanceof Element))return null;h=a.domNode.getBoundingClientRect(),s>0&&(p="right")}return{bottom:h.top+h.height,height:h.height,left:h[p],right:h[p],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 xf.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&&wf(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,p]=s,h=this.scroll.find(l,!0),m=h.offset(this.scroll);return p===0?m:h instanceof Vt?m+h.index(l,p):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(!wf(this.root,i.startContainer)||!i.collapsed&&!wf(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(xf.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 p=document.createRange();p.setStart(i,t),p.setEnd(r,n),s.removeAllRanges(),s.addRange(p)}}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),xf.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),!Ra(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 wf(o,i){try{i.parentNode}catch{return!1}return o.contains(i)}var $z=zf;var fA=/^[ -~]*$/,kf=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=Az(i),n=new zt.default;return bA(r.ops.slice()).reduce((s,l)=>{let p=zt.Op.length(l),h=l.attributes||{},m=!1,f=!1;if(l.insert!=null){if(n.retain(p),typeof l.insert=="string"){let v=l.insert;f=!v.endsWith(`
@@ -2932,7 +2932,7 @@ ${Oa(this.code(i,t))}
2932
2932
  </button>
2933
2933
  `):u`
2934
2934
  <div class="empty">${this.query?"No results":"Type something"}</div>`}
2935
- `}};po.styles=z(I_),c([d({type:Boolean,reflect:!0})],po.prototype,"open",2),c([d({type:String})],po.prototype,"query",2),c([d({type:Array})],po.prototype,"results",2),c([R()],po.prototype,"_activeIndex",2);po.define("zn-headless-emoji");var ig=class{constructor(i){this._startIndex=-1;this._keydownHandler=i=>this.onKeydown(i);this._docClickHandler=i=>this.onDocumentClick(i);this._quill=i,this.initComponent(),this.attachEvents()}initComponent(){this._component=this.createComponent(),this._quill.container.ownerDocument.body.appendChild(this._component)}attachEvents(){this._quill.on(ce.events.TEXT_CHANGE,()=>this.updateFromEditor()),this._quill.on(ce.events.EDITOR_CHANGE,()=>this.updateFromEditor()),this._quill.root.addEventListener("keydown",this._keydownHandler),this._component.addEventListener("zn-emoji-select",i=>this.onEmojiSelect(i)),this._quill.on("editor-change",()=>this.positionComponent()),this._quill.focus()}createComponent(){let i=u`
2935
+ `}};po.styles=z(I_),c([d({type:Boolean,reflect:!0})],po.prototype,"open",2),c([d({type:String})],po.prototype,"query",2),c([d({type:Array})],po.prototype,"results",2),c([D()],po.prototype,"_activeIndex",2);po.define("zn-headless-emoji");var ig=class{constructor(i){this._startIndex=-1;this._keydownHandler=i=>this.onKeydown(i);this._docClickHandler=i=>this.onDocumentClick(i);this._quill=i,this.initComponent(),this.attachEvents()}initComponent(){this._component=this.createComponent(),this._quill.container.ownerDocument.body.appendChild(this._component)}attachEvents(){this._quill.on(ce.events.TEXT_CHANGE,()=>this.updateFromEditor()),this._quill.on(ce.events.EDITOR_CHANGE,()=>this.updateFromEditor()),this._quill.root.addEventListener("keydown",this._keydownHandler),this._component.addEventListener("zn-emoji-select",i=>this.onEmojiSelect(i)),this._quill.on("editor-change",()=>this.positionComponent()),this._quill.focus()}createComponent(){let i=u`
2936
2936
  <zn-headless-emoji></zn-headless-emoji>`;return qt(i)}onDocumentClick(i){let t=i.composedPath?i.composedPath()[0]:i.target;t&&!this._component.contains(t)&&!this._quill.root.contains(t)&&this.hide()}async updateFromEditor(){let i=this.getEmojiQuery();if(!i){this.hide();return}let{start:t,emojiQuery:r}=i;this._startIndex=t;try{let{SearchIndex:n}=await zh(),a=await n.search(r),s=(Array.isArray(a)?a:[]).slice(0,20).map(l=>({emojiChar:l?.skins?.[0]?.native||l?.native||"",label:l?.id||l?.shortcodes||""||""})).filter(l=>!!l.emojiChar);this._component.results=s,this._component.query=r,s.length>0?(this.show(),this.positionComponent()):(this.show(),this.positionComponent())}catch{this._component.results=[],this._component.query=r,this.show(),this.positionComponent()}}positionComponent(){if(!this._component||!this._component.open)return;let i=this._quill.getSelection();if(!i)return;let t=this._quill.getBounds(i.index);if(!t)return;let r=this._quill.container.getBoundingClientRect(),n=r.left+Math.max(0,t.left),a=r.top+t.bottom+4;this._component.setPosition(n,a)}getEmojiQuery(){try{let i=this._quill.getSelection();if(!i)return null;let t=i.index,r=50,n=this._quill.getText(Math.max(0,t-r),Math.min(r,t)),a=t-Math.max(0,t-r),s=n.slice(0,a),l=s.lastIndexOf(":");if(l===-1)return null;let p=l>0?s[l-1]:" ";if(p&&/[^\s\n]/.test(p))return null;let h=s.substring(l+1);return/[\s\n]/.test(h)||/^\/\//.test(s.substring(Math.max(0,l-5),l+1))?null:{start:t-h.length-1,emojiQuery:h}}catch{return null}}onKeydown(i){if(this._component?.open){if(i.key==="Escape"){i.preventDefault(),i.stopPropagation(),this.hide();return}if(i.key==="ArrowDown"){i.preventDefault(),i.stopPropagation();let t=(this._component.getActiveIndex?.()??-1)+1;this._component.setActiveIndex?.(t);return}if(i.key==="ArrowUp"){i.preventDefault(),i.stopPropagation();let t=(this._component.getActiveIndex?.()??0)-1;this._component.setActiveIndex?.(t);return}if(i.key==="Enter"){let t=this._component.getActiveIndex?.(),r=this._component.results||[],n=typeof t=="number"&&t>=0&&t<r.length?r[t]:void 0;n&&(i.preventDefault(),i.stopPropagation(),this.replaceAtQuery(n.emojiChar))}}}onEmojiSelect(i){let t=i.detail?.emojiChar||"";t&&this.replaceAtQuery(t)}replaceAtQuery(i){try{let t=this._quill.getSelection();if(!t||this._startIndex<0)return;let r=this._startIndex,n=t.index-r;if(n<0)return;this._quill.deleteText(r,n,ce.sources.USER);let a=`${i} `;this._quill.insertText(r,a,ce.sources.USER);let s=r+a.length;setTimeout(()=>this._quill.setSelection(s,0,ce.sources.SILENT),0),this._quill.focus(),this.hide()}catch{}}show(){this._component.open||(this._component.show(),this._quill.container.ownerDocument.addEventListener("click",this._docClickHandler))}hide(){this._component.hide(),this._startIndex=-1,this._quill.container.ownerDocument.removeEventListener("click",this._docClickHandler)}isOpen(){return this._component?.open}},D_=ig;var _h=class extends mt{constructor(t,r){super(t,r);this._focusedImage=null;this._overlay=null;this.handleClick=t=>{if(t.target&&t.target instanceof Element&&t.target.tagName&&t.target.tagName.toUpperCase()==="IMG"){if(this._focusedImage===t.target)return;this._focusedImage&&this.hide(),this.show(t.target),t.preventDefault()}else this._focusedImage&&this.hide()};this.handleScroll=()=>{this._focusedImage&&this.hide()};this.show=t=>{this._focusedImage=t,this.showOverlay()};this.hide=()=>{this.hideOverlay(),this._focusedImage=null};this.showOverlay=()=>{this._overlay&&this.hideOverlay(),this.quill.setSelection(null),this.setUserSelect("none"),document.addEventListener("keyup",this.checkImage,!0),this.quill.root.addEventListener("input",this.checkImage,!0),this._overlay=document.createElement("div"),Object.assign(this._overlay.style,this.options.overlayStyles),this.quill?.root?.parentNode?.appendChild(this._overlay),this.repositionElements()};this.hideOverlay=()=>{this._overlay&&(this._overlay?.parentNode?.removeChild(this._overlay),this._overlay=null,document.removeEventListener("keyup",this.checkImage),this.quill.root.removeEventListener("input",this.checkImage),this.setUserSelect(""))};this.repositionElements=()=>{if(!this._overlay||!this._focusedImage)return;let t=this.quill.root.parentNode,r=this._focusedImage.getBoundingClientRect(),n=t.getBoundingClientRect();Object.assign(this._overlay.style,{left:`${r.left-n.left-1+t.scrollLeft}px`,top:`${r.top-n.top-1+t.scrollTop}px`,width:`${r.width}px`,height:`${r.height}px`})};this.setUserSelect=t=>{["userSelect","mozUserSelect","webkitUserSelect","msUserSelect"].forEach(r=>{this.quill.root.style[r]=t,document.documentElement.style[r]=t})};this.checkImage=t=>{this._focusedImage&&(t.keyCode==46||t.keyCode==8)&&(window.Quill||ce).find(this._focusedImage).deleteAt(0)};this.quill.root.addEventListener("click",this.handleClick,!1),this.quill.root.addEventListener("scroll",this.handleScroll,!1),this.quill.root.parentNode.style.position=this.quill.root.parentNode.style.position||"relative"}};_h.DEFAULTS={};var R_=_h;var N_=_`@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{position:absolute;z-index:var(--zn-z-index-editor-action);display:none;border-radius:var(--zn-border-radius-circle);font-size:var(--zn-font-size-small);--zn-blur:2px}:host([open]){display:block}.ai-panel{display:flex;flex-grow:1;max-width:100%;position:relative;min-width:240px;width:240px;transition:width 0.8s ease,height 0.8s ease}.ai-panel::part(base){margin-bottom:0}.ai-panel__actions{display:flex;flex-direction:column;justify-content:center}.ai-panel .prompt{padding:8px;--zn-input-border-color:var(--zn-input-border-color);--zn-input-border-color-hover:var(--zn-input-border-color-hover);--zn-input-text-color:var(--zn-input-text-color);--zn-input-placeholder-color:var(--zn-input-placeholder-color);--zn-input-border-radius:var(--zn-border-radius);--zn-input-padding:8px 12px;--zn-input-font-size:14px}.ai-panel .prompt::after{content:"";display:block;width:60%;margin:4px auto;border-bottom:1px solid rgba(var(--zn-border-color),0.4)}.ai-panel .prompt::part(textarea){border-radius:var(--zn-border-radius)}.ai-panel .item{display:flex;align-items:center;gap:4px;padding:8px;width:100%;border:none;background:transparent;cursor:pointer;font:inherit}.ai-panel .item[aria-selected=true],.ai-panel .item:hover{background:var(--zn-input-background-color-hover)}.ai-panel .label{opacity:0.7}.ai-panel .empty{padding:8px;opacity:0.7}`;var fn=class extends k{constructor(){super(...arguments);this.open=!1}show(){this.open=!0}hide(){this.open=!1}handleTriggerKeyDown(t){if(t.key==="Enter"){t.preventDefault();let r=this.promptInput.value.trim()||"";this.refine&&r&&(this.refine(r),this.promptInput.value="",this.promptInput.blur())}}render(){return u`
2937
2937
  <zn-panel class="ai-panel" flush cosmic>
2938
2938
  <div class="ai-panel__actions">
@@ -3068,7 +3068,7 @@ ${Oa(this.code(i,t))}
3068
3068
  aria-hidden=${h?"false":"true"}>
3069
3069
  <slot name="help-text">${this.helpText}</slot>
3070
3070
  </div>
3071
- </div>`}};pe.styles=[z(Se),z(P_)],pe.dependencies={"zn-slash-item":Vl,"zn-slash-menu":Ca},c([F(".form-control-input")],pe.prototype,"formControl",2),c([F(".textarea__control")],pe.prototype,"input",2),c([F("zn-slash-menu")],pe.prototype,"slashMenuElement",2),c([R()],pe.prototype,"hasFocus",2),c([R()],pe.prototype,"hasSlashMenu",2),c([d()],pe.prototype,"title",2),c([d()],pe.prototype,"name",2),c([d()],pe.prototype,"value",2),c([d({reflect:!0})],pe.prototype,"size",2),c([d()],pe.prototype,"label",2),c([d({attribute:"label-tooltip"})],pe.prototype,"labelTooltip",2),c([d({attribute:"context-note"})],pe.prototype,"contextNote",2),c([d({attribute:"help-text"})],pe.prototype,"helpText",2),c([d()],pe.prototype,"placeholder",2),c([d({attribute:"rows",type:Number})],pe.prototype,"rows",2),c([d()],pe.prototype,"resize",2),c([d({type:Boolean,reflect:!0})],pe.prototype,"disabled",2),c([d({type:Boolean,reflect:!0})],pe.prototype,"readonly",2),c([d({reflect:!0})],pe.prototype,"form",2),c([d({type:Boolean,reflect:!0})],pe.prototype,"flush",2),c([d({type:Boolean,reflect:!0})],pe.prototype,"required",2),c([d({type:Number})],pe.prototype,"minlength",2),c([d({type:Number})],pe.prototype,"maxlength",2),c([d()],pe.prototype,"autocapitalize",2),c([d()],pe.prototype,"autocorrect",2),c([d()],pe.prototype,"autocomplete",2),c([d({type:Boolean})],pe.prototype,"autofocus",2),c([d()],pe.prototype,"enterkeyhint",2),c([d({type:Boolean,converter:{fromAttribute:t=>!(!t||t==="false"),toAttribute:t=>t?"true":"false"}})],pe.prototype,"spellcheck",2),c([d()],pe.prototype,"inputmode",2),c([d({attribute:"slash-items",converter:{fromAttribute:t=>zo(t),toAttribute:t=>JSON.stringify(t)}})],pe.prototype,"slashItems",2),c([d({attribute:"slash-preset"})],pe.prototype,"slashPreset",2),c([d({attribute:"slash-trigger"})],pe.prototype,"slashTrigger",2),c([d({attribute:"slash-heading"})],pe.prototype,"slashHeading",2),c([d({attribute:"slash-hide-keys",type:Boolean})],pe.prototype,"slashHideKeys",2),c([d({attribute:"slash-recent-key"})],pe.prototype,"slashRecentKey",2),c([d({attribute:!1})],pe.prototype,"slashItemsProvider",2),c([Ce()],pe.prototype,"defaultValue",2),c([d({type:Boolean})],pe.prototype,"transparent",2),c([K("disabled",{waitUntilFirstUpdate:!0})],pe.prototype,"handleDisabledChange",1),c([K("rows",{waitUntilFirstUpdate:!0})],pe.prototype,"handleRowsChange",1),c([K("value",{waitUntilFirstUpdate:!0})],pe.prototype,"handleValueChange",1);var Xo=pe;pe.define("zn-textarea");var ng=class{constructor(i,t){this._path="";this._selectedText="";this._prompt="";this._aiResponseContent="";this._onEscapeKey=i=>{i.key==="Escape"&&(this._hide(),this._component.remove(),this._initComponent())};this._quill=i,this._path=t.path,this._initComponent(),this._attachEvents()}_initComponent(){this._component=this._createTooltipComponent(),this._component.addEventListener("click",i=>this._replaceTooltip(i)),this._quill.container.ownerDocument.body.appendChild(this._component)}_attachEvents(){this._quill.on(ce.events.SELECTION_CHANGE,i=>this._updateFromEditor(i))}_latestContent(i){if(i==null&&(i=this._component.shadowRoot?.querySelector(".ai-panel")),i){let t=i.querySelector('[name="editor-response-text"]');if(t instanceof HTMLInputElement||t instanceof Xo)return t.value}return this._aiResponseContent}async processAIRequest(){let i=this._selectedText?this._selectedText:this._quill.getText(),t=this._component.shadowRoot?.querySelector(".ai-panel"),r=await fetch(this._path,{method:"POST",headers:{"Content-Type":"application/json","x-kx-fetch-style":"zn-editor","x-kx-editor-id":this._quill?.container?.getAttribute("x-editor-id")||""},body:JSON.stringify({text:i,prompt:this._prompt})});if(r.ok){let n=await r.text();t&&(t.style.width="500px",t.innerHTML=n,this._aiResponseContent=this._latestContent(t))}else{let n=await r.json();if(typeof n=="string"){let a=this._quill.getSelection();a&&(this._quill.deleteText(a.index,a.length),this._quill.insertText(a.index,n),this._quill.setSelection(a.index+n.length,0))}}}_createTooltipComponent(){let i=u`
3071
+ </div>`}};pe.styles=[z(Se),z(P_)],pe.dependencies={"zn-slash-item":Vl,"zn-slash-menu":Ca},c([F(".form-control-input")],pe.prototype,"formControl",2),c([F(".textarea__control")],pe.prototype,"input",2),c([F("zn-slash-menu")],pe.prototype,"slashMenuElement",2),c([D()],pe.prototype,"hasFocus",2),c([D()],pe.prototype,"hasSlashMenu",2),c([d()],pe.prototype,"title",2),c([d()],pe.prototype,"name",2),c([d()],pe.prototype,"value",2),c([d({reflect:!0})],pe.prototype,"size",2),c([d()],pe.prototype,"label",2),c([d({attribute:"label-tooltip"})],pe.prototype,"labelTooltip",2),c([d({attribute:"context-note"})],pe.prototype,"contextNote",2),c([d({attribute:"help-text"})],pe.prototype,"helpText",2),c([d()],pe.prototype,"placeholder",2),c([d({attribute:"rows",type:Number})],pe.prototype,"rows",2),c([d()],pe.prototype,"resize",2),c([d({type:Boolean,reflect:!0})],pe.prototype,"disabled",2),c([d({type:Boolean,reflect:!0})],pe.prototype,"readonly",2),c([d({reflect:!0})],pe.prototype,"form",2),c([d({type:Boolean,reflect:!0})],pe.prototype,"flush",2),c([d({type:Boolean,reflect:!0})],pe.prototype,"required",2),c([d({type:Number})],pe.prototype,"minlength",2),c([d({type:Number})],pe.prototype,"maxlength",2),c([d()],pe.prototype,"autocapitalize",2),c([d()],pe.prototype,"autocorrect",2),c([d()],pe.prototype,"autocomplete",2),c([d({type:Boolean})],pe.prototype,"autofocus",2),c([d()],pe.prototype,"enterkeyhint",2),c([d({type:Boolean,converter:{fromAttribute:t=>!(!t||t==="false"),toAttribute:t=>t?"true":"false"}})],pe.prototype,"spellcheck",2),c([d()],pe.prototype,"inputmode",2),c([d({attribute:"slash-items",converter:{fromAttribute:t=>zo(t),toAttribute:t=>JSON.stringify(t)}})],pe.prototype,"slashItems",2),c([d({attribute:"slash-preset"})],pe.prototype,"slashPreset",2),c([d({attribute:"slash-trigger"})],pe.prototype,"slashTrigger",2),c([d({attribute:"slash-heading"})],pe.prototype,"slashHeading",2),c([d({attribute:"slash-hide-keys",type:Boolean})],pe.prototype,"slashHideKeys",2),c([d({attribute:"slash-recent-key"})],pe.prototype,"slashRecentKey",2),c([d({attribute:!1})],pe.prototype,"slashItemsProvider",2),c([Ce()],pe.prototype,"defaultValue",2),c([d({type:Boolean})],pe.prototype,"transparent",2),c([K("disabled",{waitUntilFirstUpdate:!0})],pe.prototype,"handleDisabledChange",1),c([K("rows",{waitUntilFirstUpdate:!0})],pe.prototype,"handleRowsChange",1),c([K("value",{waitUntilFirstUpdate:!0})],pe.prototype,"handleValueChange",1);var Xo=pe;pe.define("zn-textarea");var ng=class{constructor(i,t){this._path="";this._selectedText="";this._prompt="";this._aiResponseContent="";this._onEscapeKey=i=>{i.key==="Escape"&&(this._hide(),this._component.remove(),this._initComponent())};this._quill=i,this._path=t.path,this._initComponent(),this._attachEvents()}_initComponent(){this._component=this._createTooltipComponent(),this._component.addEventListener("click",i=>this._replaceTooltip(i)),this._quill.container.ownerDocument.body.appendChild(this._component)}_attachEvents(){this._quill.on(ce.events.SELECTION_CHANGE,i=>this._updateFromEditor(i))}_latestContent(i){if(i==null&&(i=this._component.shadowRoot?.querySelector(".ai-panel")),i){let t=i.querySelector('[name="editor-response-text"]');if(t instanceof HTMLInputElement||t instanceof Xo)return t.value}return this._aiResponseContent}async processAIRequest(){let i=this._selectedText?this._selectedText:this._quill.getText(),t=this._component.shadowRoot?.querySelector(".ai-panel"),r=await fetch(this._path,{method:"POST",headers:{"Content-Type":"application/json","x-kx-fetch-style":"zn-editor","x-kx-editor-id":this._quill?.container?.getAttribute("x-editor-id")||""},body:JSON.stringify({text:i,prompt:this._prompt})});if(r.ok){let n=await r.text();t&&(t.style.width="500px",t.innerHTML=n,this._aiResponseContent=this._latestContent(t))}else{let n=await r.json();if(typeof n=="string"){let a=this._quill.getSelection();a&&(this._quill.deleteText(a.index,a.length),this._quill.insertText(a.index,n),this._quill.setSelection(a.index+n.length,0))}}}_createTooltipComponent(){let i=u`
3072
3072
  <zn-ai-tooltip></zn-ai-tooltip>`;return qt(i)}_createPanelComponent(){let i=u`
3073
3073
  <zn-ai-panel></zn-ai-panel>`;return qt(i)}_replaceTooltip(i){i.preventDefault(),i.stopPropagation(),this._component.remove();let t=this._createPanelComponent();t&&(this._component=t,this._component.requestUpdate(),this._attachPanelEvents(t),this._quill.container.ownerDocument.body.appendChild(this._component),this._show(),this._positionComponent())}_onDocumentClick(i){let t=i.composedPath?i.composedPath():[i.target],r=t.includes(this._component)||t.includes(this._component.shadowRoot),n=this._quill.root.contains(t[0]),a=t.some(s=>s instanceof HTMLElement?s.tagName==="ZN-AI-PANEL":!1);if(this._latestContent(null)&&!a){i.preventDefault(),i.stopPropagation();return}!r&&!n&&!a&&this.resetComponent()}_updateFromEditor(i){this._component instanceof fn||(i?.length>25?(this._selectedText=this._quill.getText(i.index,i.length),this._show(),this._positionComponent()):this.resetComponent())}_positionComponent(){if(!this._component||!this._component.open)return;let i=this._quill.getSelection();if(!i)return;if(this._component instanceof Qo){let r=this._quill.container.getBoundingClientRect(),n=i.index+i.length,a=this._quill.getBounds(n);if(!a)return;let s=r.left+a.left-10,l=r.top+a.bottom+4;this._component.style.left=`${Math.max(0,s)}px`,this._component.style.top=`${l}px`;return}requestAnimationFrame(()=>{let r=this._quill.container.getBoundingClientRect(),n;if(i.length===this._quill.getLength()-1)n=this._quill.getBounds(i.index,i.length);else{let l=i.index+i.length;n=this._quill.getBounds(l)}if(!n)return;let a=r.left+n.right,s=r.top+n.top-8;if(a>window.innerWidth){this._setPanelPosition(window.innerWidth-10,s);return}this._setPanelPosition(a,s)})}_setPanelPosition(i,t){this._component.style.right=`${Math.max(0,window.innerWidth-i)}px`,this._component.style.bottom=`${Math.max(0,window.innerHeight-t)}px`}resetComponent(){this._hide(),this._component.remove(),this._initComponent()}_show(){this._component.open||(this._component.show(),this._quill.container.ownerDocument.addEventListener("click",i=>this._onDocumentClick(i)),this._quill.container.ownerDocument.addEventListener("keydown",this._onEscapeKey))}_hide(){this._component.hide(),this._quill.container.ownerDocument.removeEventListener("click",i=>this._onDocumentClick(i)),this._quill.container.ownerDocument.removeEventListener("keydown",this._onEscapeKey)}_attachPanelEvents(i){i.refine=this._enterCustomPrompt.bind(this),i.refineBuiltIn=this._clickPreDefinedEvent.bind(this)}_clickPreDefinedEvent(i){if(i instanceof PointerEvent){let t=i.target;if(this._prompt=t.getAttribute("data-ai-option")||"",this._prompt===""){for(let r of i.composedPath())if(r instanceof HTMLElement&&(this._prompt=r.getAttribute("data-ai-option")||"",this._prompt))break}this.processAIRequest().then(r=>r)}}_enterCustomPrompt(i){this._prompt=i,this.processAIRequest().then(t=>t)}},H_=ng;var Hc=class{constructor(i,t){this._quill=i,this._options=t,this._quill.on("editor-change",this._updateStartTime.bind(this)),this._updateOpenTime()}_updateOpenTime(){this._options.openTimeInput&&!this._openTime&&(this._openTime=Math.floor(new Date().getTime()/1e3),this._options.openTimeInput.value=this._openTime.toString())}_updateStartTime(){this._options.startTimeInput&&!this._startTime&&(this._startTime=Math.floor(new Date().getTime()/1e3),this._options.startTimeInput.value=this._startTime.toString())}};var og=["Red","Blue","Orange","Yellow","Indigo","Violet","Green","Pink","Gray"],kh={getName:"color",getData:Object.entries(og).map(([,o])=>({key:o.toLowerCase(),value:o,prefix:u`<div class="color-icon color-icon--${o.toLowerCase()}"></div>`}))};var F_=_`.toolbar{display:flex;flex-wrap:wrap;align-items:center}.toolbar__group{display:flex;align-items:center;position:relative}.toolbar__group--overflow{display:none}.toolbar__group--empty{display:none}.toolbar__group{}.toolbar__group:not(.toolbar__group--empty):not(.toolbar__group--hidden)+.toolbar__group::before{content:"";display:inline-block;width:1px;height:18px;background-color:var(--zn-color-gray-300);opacity:0.8;margin-inline:var(--zn-spacing-2x-small);border-radius:10px}.toolbar__group{}.toolbar__group--has-prev-visible::before{content:"";display:inline-block;width:1px;height:18px;background-color:var(--zn-color-gray-300);opacity:0.8;margin-inline:var(--zn-spacing-2x-small);border-radius:10px}.toolbar__dropdown-trigger::part(icon){margin-left:4px}.color-icon{width:18px;height:18px;display:block;border-radius:100%;flex-shrink:0}.color-icon--red{background-color:var(--zn-color-red-500)}.color-icon--blue{background-color:var(--zn-color-blue-500)}.color-icon--orange{background-color:var(--zn-color-orange-500)}.color-icon--yellow{background-color:var(--zn-color-yellow-400)}.color-icon--indigo{background-color:var(--zn-color-indigo-500)}.color-icon--violet{background-color:var(--zn-color-violet-500)}.color-icon--green{background-color:var(--zn-color-green-500)}.color-icon--pink{background-color:var(--zn-color-pink-500)}.color-icon--gray{background-color:var(--zn-color-gray-500)}`;var Rn=class extends k{constructor(){super(...arguments);this._featureConfig={};this._resizeId=null;this._resizeObserver=new ht(this,{callback:()=>this.handleResize()});this._movedContent=new Map;this.handleResize=()=>{this.containerWidth=this.getToolbarWidth(),this._resizeId!==null&&cancelAnimationFrame(this._resizeId),this._resizeId=requestAnimationFrame(()=>{this.calculateOverflow(),this._resizeId=null})}}connectedCallback(){super.connectedCallback(),this.containerWidth=this.offsetWidth,this.parentElement&&this._resizeObserver.observe(this.parentElement)}disconnectedCallback(){super.disconnectedCallback(),this._resizeId!==null&&(cancelAnimationFrame(this._resizeId),this._resizeId=null),this.restoreMovedContent()}firstUpdated(t){super.firstUpdated(t),this.containerWidth=this.getToolbarWidth(),this.updateEmptyGroups(),this.renderRoot?.querySelector("slot")?.addEventListener("slotchange",()=>this.calculateOverflow()),this.updateComplete.then(()=>this.calculateOverflow())}configureToolbar(t){this._featureConfig=t}getToolbarWidth(){let t=this,r=t.getBoundingClientRect?.().width||t.offsetWidth||0;return(!r||r<=0)&&this._toolbarEl&&(r=this._toolbarEl.getBoundingClientRect().width),r}getOverflowGroupWidth(){let t=50,r=this._overflowGroup;if(!r)return t;let n=r.style.display,a=r.style.visibility;return r.style.display="flex",r.style.visibility="hidden",t=r.offsetWidth||t,r.style.visibility=a,r.style.display=n||"none",t}restoreMovedContent(){this._movedContent.forEach(({placeholder:t,originalParent:r},n)=>{t.parentNode?(r.insertBefore(n,t),t.parentNode.removeChild(t)):r.appendChild(n)}),this._movedContent.clear()}moveContentTo(t,r){if(this._movedContent.has(t)){t.parentElement!==r&&r.appendChild(t);return}let n=t.parentElement;if(!n)return;let a=document.createComment("toolbar-overflow-placeholder");n.insertBefore(a,t),r.appendChild(t),this._movedContent.set(t,{placeholder:a,originalParent:n})}isGroupEmpty(t){let r=t.querySelector("slot");return r?r.assignedElements({flatten:!0}).length===0:t.childElementCount===0}updateEmptyGroups(){Array.from(this._groups||[]).forEach(r=>{let n=this.isGroupEmpty(r);r.classList.toggle("toolbar__group--empty",n)})}_updateDividerClasses(){let t=Array.from(this._groups||[]),r=!1;t.forEach(n=>{let a=n.classList.contains("toolbar__group--empty"),s=n.style.display==="none",l=!a&&!s;n.classList.toggle("toolbar__group--has-prev-visible",l&&r),l&&(r=!0)})}calculateOverflow(){let t=Array.from(this._groups||[]);if(!t.length)return;this.restoreMovedContent(),this.updateEmptyGroups();let r=t.filter(h=>!h.classList.contains("toolbar__group--overflow")&&!h.classList.contains("toolbar__group--empty"));r.forEach(h=>{h.style.display="flex",h.classList.remove("toolbar__group--hidden","toolbar__group--has-prev-visible")}),this._overflowGroup&&(this._overflowGroup.style.display="none",this._overflowGroup.classList.remove("toolbar__group--hidden","toolbar__group--has-prev-visible"));let n=this.getToolbarWidth();if(!n||n<=0){r.forEach(h=>h.style.display="flex"),this._overflowGroup&&(this._overflowGroup.style.display="none"),this.restoreMovedContent(),this._overflowMenu&&(this._overflowMenu.innerHTML=""),this._updateDividerClasses(),this._dispatchOverflowEvent();return}let a=0,s=0;for(let h of r){let m=h.offsetWidth;if(a+m<=n)a+=m,s++;else break}if(s>=r.length){r.forEach(h=>h.style.display="flex"),this._overflowGroup&&(this._overflowGroup.style.display="none"),this.restoreMovedContent(),this._overflowMenu&&(this._overflowMenu.innerHTML=""),this._updateDividerClasses(),this._dispatchOverflowEvent();return}let l=this.getOverflowGroupWidth();a=0,s=0;for(let h of r){let m=h.offsetWidth;if(a+m+l<=n)a+=m,s++;else break}r.forEach((h,m)=>{h.style.display=m<s?"flex":"none"}),r.forEach((h,m)=>{let f=m>=s;h.classList.toggle("toolbar__group--hidden",f)}),this._overflowGroup&&(this._overflowGroup.style.display="flex"),this._updateDividerClasses();let p=r.slice(s);this.populateOverflowMenu(p),this._dispatchOverflowEvent()}_dispatchOverflowEvent(){this.dispatchEvent(new CustomEvent("zn-toolbar-overflow-updated",{bubbles:!0,composed:!0}))}populateOverflowMenu(t){let r=this._overflowMenu;if(!r)return;this.restoreMovedContent(),r.innerHTML="";let n=(h,m,f,b,g={})=>{let v=document.createElement("zn-menu-item");if(v.innerText=m,Object.keys(g).forEach(y=>v.setAttribute(y,g[y])),f){let y=document.createElement("zn-icon");y.setAttribute("src",f),y.setAttribute("size","18"),y.setAttribute("slot","prefix"),v.appendChild(y)}return b&&v.addEventListener("click",y=>{y.preventDefault(),y.stopPropagation(),b()}),h.appendChild(v),v},a=h=>{let m=document.createElement("zn-menu-item");for(let f of h.attributes)f.name!=="id"&&m.setAttribute(f.name,f.value);return m.innerHTML=h.innerHTML,m},s=h=>{let f=h.querySelector('zn-button[slot="trigger"]')?.querySelector("zn-icon"),b=f?.getAttribute("src");if(!b)return b??void 0;let g=f?.getAttribute("library");return g?`${b}@${g}`:b},l={bold:"Bold",italic:"Italic",underline:"Underline",undo:"Undo",redo:"Redo"},p={"toolbar__header-dropdown":"Text","toolbar__format-dropdown":"Format","toolbar__color-dropdown":"Color","toolbar__list-dropdown":"Lists","toolbar__file-dropdown":"Insert","toolbar__emoji-dropdown":"Emoji","toolbar__date-dropdown":"Date"};t.forEach(h=>{if(Array.from(h.querySelectorAll("zn-dropdown")).forEach(g=>{let v="";for(let U in p)if(g.classList.contains(U)){v=p[U];break}v||(v=g.getAttribute("aria-label")||g.getAttribute("title")||"More");let y=s(g)||"",S=n(r,v,y);g.classList.contains("toolbar__date-dropdown")&&S.setAttribute("data-overflow-source","date");let T=document.createElement("zn-menu");T.setAttribute("slot","submenu"),T.setAttribute("variant","shell");let N=g.querySelectorAll("zn-menu-item");if(N.length)N.forEach(U=>{let I=a(U);T.appendChild(I)});else{let U=Array.from(g.children).filter(C=>{let $=C.getAttribute("slot")==="trigger"||C instanceof $e,L=C instanceof on||C instanceof xi;return!$&&!L}),I=document.createElement("div");I.className="toolbar__submenu-content",U.forEach(C=>this.moveContentTo(C,I)),T.appendChild(I)}S.appendChild(T)}),h.querySelectorAll("zn-button.toolbar__format-button, zn-button.toolbar__action-button").forEach(g=>{let v=g.getAttribute("icon")??"",y=g.getAttribute("data-format")??"",S=g.getAttribute("data-text")??l[y]??(y?y.charAt(0).toUpperCase()+y.slice(1):g.getAttribute("aria-label")??g.textContent?.trim()??"Action"),T={"data-format":y},N=g.getAttribute("data-format-type")??"";N&&(T["data-format-type"]=N),v&&(T["data-icon"]=v),S&&(T["data-text"]=S),n(r,S,v,void 0,T)}),Array.from(h.querySelectorAll("zn-menu-item")).filter(g=>!g.closest("zn-dropdown")).forEach(g=>{let v=a(g);r.appendChild(v)}),h.querySelector("slot")){let g=h.querySelector("slot"),v=g?g.assignedElements({flatten:!0}):[];if(!v.length)return;v.forEach(y=>{if(y instanceof Oc){let S=y.icon,T=y.label,N=y.handler||"dialog",U=y.uri||"",I=y.key||"",C={"data-format":N};U&&(C["data-format-type"]=U),I&&(C["data-toolbar-key"]=I),S&&(C["data-icon"]=S),T&&(C["data-text"]=T),n(r,T,S,void 0,C)}})}})}render(){let t=this._featureConfig.dividersEnabled||this._featureConfig.linksEnabled||this._featureConfig.attachmentsEnabled||this._featureConfig.imagesEnabled||this._featureConfig.videosEnabled,r=t||this._featureConfig.datesEnabled||this._featureConfig.emojisEnabled;return u`
3074
3074
  <div class="toolbar">
@@ -3372,7 +3372,7 @@ ${Oa(this.code(i,t))}
3372
3372
  <slot>${this._getLoadingState()}</slot>
3373
3373
  </div>
3374
3374
  </dialog>
3375
- `}};ji.styles=z(U_),c([R()],ji.prototype,"hasFocus",2),c([R()],ji.prototype,"hasContentHeader",2),c([F("dialog")],ji.prototype,"dialogEl",2),c([d({type:Boolean,reflect:!0})],ji.prototype,"open",2),c([d()],ji.prototype,"uri",2),c([K("open",{waitUntilFirstUpdate:!0})],ji.prototype,"handleOpenChange",1);ji.define("zn-editor-dialog");var j_=_`@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{--zn-toggle-margin:8px 0;display:block}.switch__wrapper{display:flex;flex-direction:column}.switch__wrapper label{flex:1;display:flex;flex-direction:column;align-items:flex-start;cursor:pointer}.switch__input-wrapper{box-sizing:border-box;text-align:left;position:relative;display:inline-flex;width:42px;height:24px;flex-shrink:0;cursor:pointer;border-radius:12px;align-items:center;background-color:rgb(var(--zn-color-tab));border:0.92px solid rgb(var(--zn-border-color));margin:var(--zn-toggle-margin);transition:color 0.2s ease-in-out,background-color 0.4s ease-in-out,border-color 0.2s ease-in-out}:host(:focus) .switch__input-wrapper{outline:rgb(var(--zn-primary)) solid 1px}:host([checked]) .switch__input-wrapper{background-color:rgb(var(--zn-color-primary));border-color:rgb(var(--zn-color-primary))}:host([checked]) .switch__input-wrapper .switch__control{left:calc(100% - 20.32px - 0.92px);background:rgb(var(--zn-color-on-primary,255,255,255))}.switch{height:100%;width:100%;padding:0;margin:0;cursor:pointer}.switch-label{font-family:var(--zn-font-sans);font-size:var(--zn-text-input-label-font-size);font-weight:var(--zn-text-input-label-font-weight);line-height:var(--zn-text-input-label-line-height);color:var(--zn-text-input-label-color);text-transform:var(--zn-text-input-label-transform);letter-spacing:var(--zn-text-input-label-letter-spacing,normal);margin:0}.switch__wrapper--small .switch-label{font-size:var(--zn-input-label-font-size-small)}.switch__description{display:none;margin-top:var(--zn-spacing-2x-small)}.switch__wrapper--has-description .switch__description{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;color:rgb(var(--zn-color-muted-text))}.switch__wrapper--small .switch__description{font-size:var(--zn-font-size-x-small)}.switch__wrapper--large .switch-label{font-size:var(--zn-input-label-font-size-large)}.switch__control{pointer-events:none;position:absolute;top:50%;left:0.92px;width:20.32px;height:20.32px;border-radius:50%;background:#fff;transform:translateY(-50%);transition:left 0.3s ease-in-out,background-color 0.4s ease-in-out;outline:none}.switch__input{position:absolute;opacity:0;padding:0;margin:0;pointer-events:none}.switch__wrapper--small .switch__input-wrapper{height:20px;width:35px}.switch__wrapper--small .switch__control{width:14px;height:14px}:host([checked]) .switch__wrapper--small .switch__input-wrapper .switch__control{left:calc(100% - 14px - 0.92px)}.switch__wrapper--label-left label,.switch__wrapper--label-right label{align-items:center;justify-content:space-between;gap:8px}.switch__wrapper--label-left label{flex-direction:row}.switch__wrapper--label-right label{flex-direction:row-reverse}:host([inline]){display:inline-block}.switch__wrapper--inline label{flex:none;flex-direction:row;align-items:center;justify-content:flex-start;gap:8px}.switch__wrapper--inline label .switch__input{margin-inline:1px;margin-inline-end:1px}.switch__wrapper--inline.switch__wrapper--label-right label{flex-direction:row-reverse}`;var Xe=class extends k{constructor(){super(...arguments);this.hasSlotController=new Y(this,"help-text","description");this.formControlController=new re(this,{value:t=>t.checked?t.value||"on":t.fallbackValue,defaultValue:t=>t.defaultChecked,setValue:(t,r)=>t.checked=r});this.hasFocus=!1;this.title="";this.name="";this.fallbackValue="off";this.size="medium";this.disabled=!1;this.checked=!1;this.defaultChecked=!1;this.form="";this.required=!1;this.helpText="";this.triggerSubmit=!1;this.onText="";this.offText="";this.label="";this.description="";this.labelPosition="top";this.inline=!1}get validity(){return this.input?.validity}get validationMessage(){return this.input.validationMessage}firstUpdated(t){this.formControlController.updateValidity(),super.firstUpdated(t)}handleBlur(){this.hasFocus=!1}handleInvalid(t){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(t)}handleInput(){this.value=this.input.value,this.formControlController.updateValidity(),this.emit("zn-input")}handleClick(){this.checked=!this.checked,this.triggerSubmit&&this.formControlController.submit()}handleFocus(){this.hasFocus=!0}handleKeyDown(t){t.key==="ArrowLeft"&&(t.preventDefault(),this.checked=!1),t.key==="ArrowRight"&&(t.preventDefault(),this.checked=!0)}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.checked?this.onText:this.offText,r=!!t,n=this.helpText?!0:this.hasSlotController.test("help-text"),a=this.description?!0:this.hasSlotController.test("description"),s=u`
3375
+ `}};ji.styles=z(U_),c([D()],ji.prototype,"hasFocus",2),c([D()],ji.prototype,"hasContentHeader",2),c([F("dialog")],ji.prototype,"dialogEl",2),c([d({type:Boolean,reflect:!0})],ji.prototype,"open",2),c([d()],ji.prototype,"uri",2),c([K("open",{waitUntilFirstUpdate:!0})],ji.prototype,"handleOpenChange",1);ji.define("zn-editor-dialog");var j_=_`@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{--zn-toggle-margin:8px 0;display:block}.switch__wrapper{display:flex;flex-direction:column}.switch__wrapper label{flex:1;display:flex;flex-direction:column;align-items:flex-start;cursor:pointer}.switch__input-wrapper{box-sizing:border-box;text-align:left;position:relative;display:inline-flex;width:42px;height:24px;flex-shrink:0;cursor:pointer;border-radius:12px;align-items:center;background-color:rgb(var(--zn-color-tab));border:0.92px solid rgb(var(--zn-border-color));margin:var(--zn-toggle-margin);transition:color 0.2s ease-in-out,background-color 0.4s ease-in-out,border-color 0.2s ease-in-out}:host(:focus) .switch__input-wrapper{outline:rgb(var(--zn-primary)) solid 1px}:host([checked]) .switch__input-wrapper{background-color:rgb(var(--zn-color-primary));border-color:rgb(var(--zn-color-primary))}:host([checked]) .switch__input-wrapper .switch__control{left:calc(100% - 20.32px - 0.92px);background:rgb(var(--zn-color-on-primary,255,255,255))}.switch{height:100%;width:100%;padding:0;margin:0;cursor:pointer}.switch-label{font-family:var(--zn-font-sans);font-size:var(--zn-text-input-label-font-size);font-weight:var(--zn-text-input-label-font-weight);line-height:var(--zn-text-input-label-line-height);color:var(--zn-text-input-label-color);text-transform:var(--zn-text-input-label-transform);letter-spacing:var(--zn-text-input-label-letter-spacing,normal);margin:0}.switch__wrapper--small .switch-label{font-size:var(--zn-input-label-font-size-small)}.switch__description{display:none;margin-top:var(--zn-spacing-2x-small)}.switch__wrapper--has-description .switch__description{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;color:rgb(var(--zn-color-muted-text))}.switch__wrapper--small .switch__description{font-size:var(--zn-font-size-x-small)}.switch__wrapper--large .switch-label{font-size:var(--zn-input-label-font-size-large)}.switch__control{pointer-events:none;position:absolute;top:50%;left:0.92px;width:20.32px;height:20.32px;border-radius:50%;background:#fff;transform:translateY(-50%);transition:left 0.3s ease-in-out,background-color 0.4s ease-in-out;outline:none}.switch__input{position:absolute;opacity:0;padding:0;margin:0;pointer-events:none}.switch__wrapper--small .switch__input-wrapper{height:20px;width:35px}.switch__wrapper--small .switch__control{width:14px;height:14px}:host([checked]) .switch__wrapper--small .switch__input-wrapper .switch__control{left:calc(100% - 14px - 0.92px)}.switch__wrapper--label-left label,.switch__wrapper--label-right label{align-items:center;justify-content:space-between;gap:8px}.switch__wrapper--label-left label{flex-direction:row}.switch__wrapper--label-right label{flex-direction:row-reverse}:host([inline]){display:inline-block}.switch__wrapper--inline label{flex:none;flex-direction:row;align-items:center;justify-content:flex-start;gap:8px}.switch__wrapper--inline label .switch__input{margin-inline:1px;margin-inline-end:1px}.switch__wrapper--inline.switch__wrapper--label-right label{flex-direction:row-reverse}`;var Xe=class extends k{constructor(){super(...arguments);this.hasSlotController=new Y(this,"help-text","description");this.formControlController=new re(this,{value:t=>t.checked?t.value||"on":t.fallbackValue,defaultValue:t=>t.defaultChecked,setValue:(t,r)=>t.checked=r});this.hasFocus=!1;this.title="";this.name="";this.fallbackValue="off";this.size="medium";this.disabled=!1;this.checked=!1;this.defaultChecked=!1;this.form="";this.required=!1;this.helpText="";this.triggerSubmit=!1;this.onText="";this.offText="";this.label="";this.description="";this.labelPosition="top";this.inline=!1}get validity(){return this.input?.validity}get validationMessage(){return this.input.validationMessage}firstUpdated(t){this.formControlController.updateValidity(),super.firstUpdated(t)}handleBlur(){this.hasFocus=!1}handleInvalid(t){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(t)}handleInput(){this.value=this.input.value,this.formControlController.updateValidity(),this.emit("zn-input")}handleClick(){this.checked=!this.checked,this.triggerSubmit&&this.formControlController.submit()}handleFocus(){this.hasFocus=!0}handleKeyDown(t){t.key==="ArrowLeft"&&(t.preventDefault(),this.checked=!1),t.key==="ArrowRight"&&(t.preventDefault(),this.checked=!0)}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.checked?this.onText:this.offText,r=!!t,n=this.helpText?!0:this.hasSlotController.test("help-text"),a=this.description?!0:this.hasSlotController.test("description"),s=u`
3376
3376
  <div class="switch__input-wrapper" part="base">
3377
3377
  <input
3378
3378
  class="switch__input"
@@ -3419,7 +3419,7 @@ ${Oa(this.code(i,t))}
3419
3419
  aria-hidden=${n?"false":"true"}>
3420
3420
  <slot name="help-text">${this.helpText}</slot>
3421
3421
  </div>
3422
- </div>`}};Xe.styles=[z(Se),z(j_)],c([F('input[type="checkbox"]')],Xe.prototype,"input",2),c([R()],Xe.prototype,"hasFocus",2),c([d()],Xe.prototype,"title",2),c([d()],Xe.prototype,"name",2),c([d()],Xe.prototype,"value",2),c([d({attribute:"fallback"})],Xe.prototype,"fallbackValue",2),c([d({reflect:!0})],Xe.prototype,"size",2),c([d({type:Boolean,reflect:!0})],Xe.prototype,"disabled",2),c([d({type:Boolean,reflect:!0})],Xe.prototype,"checked",2),c([Ce("checked")],Xe.prototype,"defaultChecked",2),c([d({reflect:!0})],Xe.prototype,"form",2),c([d({type:Boolean,reflect:!0})],Xe.prototype,"required",2),c([d({attribute:"help-text"})],Xe.prototype,"helpText",2),c([d({type:Boolean,attribute:"trigger-submit"})],Xe.prototype,"triggerSubmit",2),c([d({attribute:"on-text"})],Xe.prototype,"onText",2),c([d({attribute:"off-text"})],Xe.prototype,"offText",2),c([d()],Xe.prototype,"label",2),c([d()],Xe.prototype,"description",2),c([d({attribute:"label-position",reflect:!0})],Xe.prototype,"labelPosition",2),c([d({type:Boolean})],Xe.prototype,"inline",2);var nL=Xe;Xe.define("zn-toggle");var Ch=_`@charset "UTF-8";:host([contained]) .selection-card{--selection-card-padding:var(--zn-selection-card-padding,var(--zn-spacing-large));--selection-card-gap:var(--zn-selection-card-gap,var(--zn-spacing-medium));--selection-card-image-width:var(--zn-selection-card-image-width,5rem);--selection-card-image-height:var(--zn-selection-card-image-height,5rem);--selection-card-control-offset:var(--zn-selection-card-control-offset,var(--zn-spacing-medium));--selection-card-control-gutter:calc(var(--selection-card-control-offset) + var(--toggle-size) + var(--selection-card-gap));align-items:center;align-content:center;gap:var(--selection-card-gap);padding:var(--selection-card-padding)}:host([contained]) .selection-card .selection-card__content{flex:1 1 auto;min-width:0;margin-inline-start:0;line-height:var(--zn-line-height-normal)}:host([contained]) .selection-card .selection-card__title{display:block;font-size:var(--zn-selection-card-title-font-size,var(--zn-font-size-large));font-weight:var(--zn-font-weight-semibold);line-height:var(--zn-line-height-dense)}:host([contained]) .selection-card{}:host([contained]) .selection-card.selection-card--has-image{min-height:var(--zn-selection-card-min-height,9rem);flex-wrap:wrap}:host([contained]) .selection-card.selection-card--has-image .selection-card__content{flex-basis:var(--zn-selection-card-content-min-width,8rem)}:host([contained]) .selection-card .selection-card__image-container{flex:0 0 auto;display:flex;align-items:center;justify-content:center}:host([contained]) .selection-card .selection-card__image-container ::slotted(*){display:block;max-width:100%;max-height:var(--selection-card-image-height)}:host([contained]) .selection-card .selection-card__image{display:block;width:var(--selection-card-image-width);max-width:100%;height:var(--selection-card-image-height);-o-object-fit:contain;object-fit:contain}:host([contained]) .selection-card{}:host([contained]) .selection-card.selection-card--image-right .selection-card__image-container,:host([contained]) .selection-card.selection-card--image-bottom .selection-card__image-container{order:2}:host([contained]) .selection-card.selection-card--image-right .selection-card__content,:host([contained]) .selection-card.selection-card--image-bottom .selection-card__content{order:1}:host([contained]) .selection-card.selection-card--image-top,:host([contained]) .selection-card.selection-card--image-bottom{flex-direction:column;flex-wrap:nowrap;align-items:stretch;justify-content:center}:host([contained]) .selection-card.selection-card--image-top .selection-card__image-container,:host([contained]) .selection-card.selection-card--image-bottom .selection-card__image-container{align-self:center}:host([contained]) .selection-card.selection-card--image-top .selection-card__content,:host([contained]) .selection-card.selection-card--image-bottom .selection-card__content{flex:0 0 auto;text-align:center}:host([contained]) .selection-card.selection-card--image-top,:host([contained]) .selection-card.selection-card--image-bottom{}:host([contained]) .selection-card.selection-card--image-top.selection-card--control-top-left,:host([contained]) .selection-card.selection-card--image-bottom.selection-card--control-top-left{padding-inline:var(--selection-card-control-gutter)}:host([contained]) .selection-card.selection-card--image-top.selection-card--control-top-right,:host([contained]) .selection-card.selection-card--image-bottom.selection-card--control-top-right{padding-inline:var(--selection-card-control-gutter)}:host([contained]) .selection-card.selection-card--image-top.selection-card--control-center-left,:host([contained]) .selection-card.selection-card--image-bottom.selection-card--control-center-left{padding-inline:var(--selection-card-control-gutter)}:host([contained]) .selection-card.selection-card--image-top.selection-card--control-center-right,:host([contained]) .selection-card.selection-card--image-bottom.selection-card--control-center-right{padding-inline:var(--selection-card-control-gutter)}:host([contained]) .selection-card.selection-card--image-top.selection-card--control-bottom-left,:host([contained]) .selection-card.selection-card--image-bottom.selection-card--control-bottom-left{padding-inline:var(--selection-card-control-gutter)}:host([contained]) .selection-card.selection-card--image-top.selection-card--control-bottom-right,:host([contained]) .selection-card.selection-card--image-bottom.selection-card--control-bottom-right{padding-inline:var(--selection-card-control-gutter)}:host([contained]) .selection-card{}:host([contained]) .selection-card.selection-card--control-top-left{padding-inline-start:var(--selection-card-control-gutter)}:host([contained]) .selection-card.selection-card--control-top-left .selection-card__control{position:absolute;z-index:1;transform:translate(var(--selection-card-control-shift-x,0),var(--selection-card-control-shift-y,0));inset-block-start:var(--selection-card-control-offset);inset-inline-start:var(--selection-card-control-offset)}:host([contained]) .selection-card.selection-card--control-top-center{padding-block-start:var(--selection-card-control-gutter)}:host([contained]) .selection-card.selection-card--control-top-center .selection-card__control{position:absolute;z-index:1;transform:translate(var(--selection-card-control-shift-x,0),var(--selection-card-control-shift-y,0));inset-block-start:var(--selection-card-control-offset);--selection-card-control-shift-x:-50%;inset-inline-start:50%}:host([contained]) .selection-card.selection-card--control-top-right{padding-inline-end:var(--selection-card-control-gutter)}:host([contained]) .selection-card.selection-card--control-top-right .selection-card__control{position:absolute;z-index:1;transform:translate(var(--selection-card-control-shift-x,0),var(--selection-card-control-shift-y,0));inset-block-start:var(--selection-card-control-offset);inset-inline-end:var(--selection-card-control-offset)}:host([contained]) .selection-card.selection-card--control-center-left{padding-inline-start:var(--selection-card-control-gutter)}:host([contained]) .selection-card.selection-card--control-center-left .selection-card__control{position:absolute;z-index:1;transform:translate(var(--selection-card-control-shift-x,0),var(--selection-card-control-shift-y,0));--selection-card-control-shift-y:-50%;inset-block-start:50%;inset-inline-start:var(--selection-card-control-offset)}:host([contained]) .selection-card.selection-card--control-center .selection-card__control{position:absolute;z-index:1;transform:translate(var(--selection-card-control-shift-x,0),var(--selection-card-control-shift-y,0));--selection-card-control-shift-y:-50%;inset-block-start:50%;--selection-card-control-shift-x:-50%;inset-inline-start:50%}:host([contained]) .selection-card.selection-card--control-center-right{padding-inline-end:var(--selection-card-control-gutter)}:host([contained]) .selection-card.selection-card--control-center-right .selection-card__control{position:absolute;z-index:1;transform:translate(var(--selection-card-control-shift-x,0),var(--selection-card-control-shift-y,0));--selection-card-control-shift-y:-50%;inset-block-start:50%;inset-inline-end:var(--selection-card-control-offset)}:host([contained]) .selection-card.selection-card--control-bottom-left{padding-inline-start:var(--selection-card-control-gutter)}:host([contained]) .selection-card.selection-card--control-bottom-left .selection-card__control{position:absolute;z-index:1;transform:translate(var(--selection-card-control-shift-x,0),var(--selection-card-control-shift-y,0));inset-block-end:var(--selection-card-control-offset);inset-inline-start:var(--selection-card-control-offset)}:host([contained]) .selection-card.selection-card--control-bottom-center{padding-block-end:var(--selection-card-control-gutter)}:host([contained]) .selection-card.selection-card--control-bottom-center .selection-card__control{position:absolute;z-index:1;transform:translate(var(--selection-card-control-shift-x,0),var(--selection-card-control-shift-y,0));inset-block-end:var(--selection-card-control-offset);--selection-card-control-shift-x:-50%;inset-inline-start:50%}:host([contained]) .selection-card.selection-card--control-bottom-right{padding-inline-end:var(--selection-card-control-gutter)}:host([contained]) .selection-card.selection-card--control-bottom-right .selection-card__control{position:absolute;z-index:1;transform:translate(var(--selection-card-control-shift-x,0),var(--selection-card-control-shift-y,0));inset-block-end:var(--selection-card-control-offset);inset-inline-end:var(--selection-card-control-offset)}:host([contained]) .selection-card{}:host([contained]) .selection-card.selection-card--control-none .selection-card__control{display:none}:host([contained]) .selection-card.selection-card--control-none:has(input:focus-visible){outline:var(--zn-focus-ring);outline-offset:var(--zn-focus-ring-offset)}:host([contained]) [part~=base]{border-radius:var(--zn-selection-card-border-radius,var(--zn-border-radius))}:host([square]) [part~=base]{border-radius:0}`;var G_=_`@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;height:100%}.form-control .form-control__label{padding-bottom:var(--zn-spacing-small)}.checkbox{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);vertical-align:middle;cursor:pointer;height:100%;--checkbox-color:var(--zn-color-primary-600);--checkbox-color-hover:var(--zn-color-primary-500);--checkbox-icon-color:var(--zn-color-neutral-0);--checkbox-border-color:var(--zn-input-border-color);--checkbox-bg-color:var(--zn-input-background-color)}.checkbox.checkbox--default{--checkbox-color:var(--zn-color-primary-600);--checkbox-color-hover:var(--zn-color-primary-500);--checkbox-border-color:var(--zn-input-border-color)}.checkbox.checkbox--primary{--checkbox-color:var(--zn-color-primary-600);--checkbox-color-hover:var(--zn-color-primary-500);--checkbox-border-color:var(--zn-color-primary-600)}.checkbox.checkbox--secondary{--checkbox-color:var(--zn-color-neutral-600);--checkbox-color-hover:var(--zn-color-neutral-500);--checkbox-border-color:var(--zn-color-neutral-300);--checkbox-bg-color:var(--zn-color-neutral-50)}.checkbox.checkbox--info{--checkbox-color:var(--zn-color-info-600);--checkbox-color-hover:var(--zn-color-info-500);--checkbox-border-color:var(--zn-color-info-600)}.checkbox.checkbox--success{--checkbox-color:var(--zn-color-success-600);--checkbox-color-hover:var(--zn-color-success-500);--checkbox-border-color:var(--zn-color-success-600)}.checkbox.checkbox--warning{--checkbox-color:var(--zn-color-warning-600);--checkbox-color-hover:var(--zn-color-warning-500);--checkbox-border-color:var(--zn-color-warning-600)}.checkbox.checkbox--error{--checkbox-color:var(--zn-color-danger-600);--checkbox-color-hover:var(--zn-color-danger-500);--checkbox-border-color:var(--zn-color-danger-600)}.checkbox.checkbox--transparent{--checkbox-bg-color:transparent;--checkbox-border-color:transparent}.checkbox--small{--toggle-size:var(--zn-toggle-size-small);font-size:var(--zn-input-font-size-small)}.checkbox--small .checkbox__description{font-size:var(--zn-font-size-x-small)}.checkbox--medium{--toggle-size:var(--zn-toggle-size-medium);font-size:var(--zn-input-font-size-medium)}.checkbox--medium .checkbox__description,.checkbox--large .checkbox__description{font-size:var(--zn-input-font-size-small)}.checkbox--large{--toggle-size:var(--zn-toggle-size-large);font-size:var(--zn-input-font-size-large)}.checkbox__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(--checkbox-border-color);background-color:var(--checkbox-bg-color);border-radius:var(--zn-border-radius-small);color:var(--checkbox-icon-color);transition:var(--zn-transition-fast) border-color,var(--zn-transition-fast) background-color,var(--zn-transition-fast) color,var(--zn-transition-fast) box-shadow}.checkbox__input{position:absolute;opacity:0;padding:0;margin:0;pointer-events:none}.checkbox__indeterminate-icon{--icon-size:var(--toggle-size);--icon-color:var(--checkbox-icon-color);display:inline-flex;width:var(--toggle-size);height:var(--toggle-size)}.svg-icon{height:max(16px,70%);--icon-color:var(--checkbox-icon-color)}.svg-icon .checkbox__checked-icon{stroke-dasharray:24;stroke-dashoffset:24;transition:stroke-dashoffset 0.4s cubic-bezier(0.4,0,0.2,1)}.checkbox--indeterminate .svg-icon{color:transparent}.checkbox--checked .svg-icon{color:var(--checkbox-icon-color)}.checkbox--checked .checkbox__checked-icon{stroke-dashoffset:0}.checkbox:not(.checkbox--checked):not(.checkbox--disabled) .checkbox__control:hover{border-color:var(--checkbox-color-hover,var(--zn-input-border-color-hover));background-color:var(--zn-input-background-color-hover)}.checkbox:not(.checkbox--checked):not(.checkbox--disabled) .checkbox__input:focus-visible~.checkbox__control{border-color:var(--checkbox-color);outline:var(--zn-focus-ring);outline-offset:var(--zn-focus-ring-offset)}.checkbox--checked .checkbox__control,.checkbox--indeterminate .checkbox__control{border-color:var(--checkbox-color);background-color:var(--checkbox-color);color:var(--checkbox-icon-color)}.checkbox.checkbox--checked:not(.checkbox--disabled) .checkbox__control:hover,.checkbox.checkbox--indeterminate:not(.checkbox--disabled) .checkbox__control:hover{border-color:var(--checkbox-color-hover);background-color:var(--checkbox-color-hover)}.checkbox.checkbox--checked:not(.checkbox--disabled) .checkbox__input:focus-visible~.checkbox__control,.checkbox.checkbox--indeterminate:not(.checkbox--disabled) .checkbox__input:focus-visible~.checkbox__control{outline:var(--zn-focus-ring);outline-offset:var(--zn-focus-ring-offset)}.checkbox--disabled{opacity:0.5;cursor:not-allowed}:host-context([required]) .checkbox__label::after{display:none}:host([required]) .checkbox__label::after{display:none}:host(.checkbox-user-invalid) .checkbox__control{border-color:var(--zn-color-danger-600)}:host(.checkbox-user-invalid) .checkbox:not(.checkbox--checked):not(.checkbox--disabled) .checkbox__input:focus-visible~.checkbox__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(.groupedCheckbox){margin-top:var(--zn-spacing-medium)}:host(.groupedCheckbox[horizontal]),:host(.groupedCheckbox[contained]){margin-top:var(--zn-spacing-small)}:host(.groupedCheckbox[horizontal][contained]){margin-top:0;height:100%}.checkbox__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}.checkbox--no-border{border:none !important;outline:none !important;border-radius:0 !important}.checkbox--contained{padding:1.375rem var(--zn-spacing-large) 1.375rem var(--zn-spacing-medium);border:1px solid var(--zn-color-gray-400);border-radius:var(--zn-border-radius);width:100%;height:100%}:not(.checkbox--disabled).checkbox--contained:hover,:not(.checkbox--disabled).checkbox--contained.checkbox--checked:hover{background-color:var(--zn-color-purple-50);transition:var(--zn-transition-medium) all}.checkbox--contained.checkbox--checked .checkbox__label{color:var(--zn-color-purple-600);font-weight:var(--zn-font-weight-semibold)}.checkbox--contained.checkbox--checked .checkbox__description{color:var(--zn-color-gray-900);font-weight:var(--zn-font-weight-normal)}.checkbox--contained.checkbox--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}:host([slot=prefix]){height:100%;aspect-ratio:1}:host([slot=prefix]) .checkbox__control{height:100%;width:100%;border:unset;box-shadow:unset;background-color:var(--zn-color-purple-50)}:host([slot=prefix]) .checkbox--primary .checkbox__control,:host([slot=prefix]) .checkbox--success .checkbox__control,:host([slot=prefix]) .checkbox--warning .checkbox__control,:host([slot=prefix]) .checkbox--error .checkbox__control,:host([slot=prefix]) .checkbox--info .checkbox__control{background-color:var(--checkbox-color);color:var(--zn-color-neutral-0);border-color:var(--checkbox-color)}:host([slot=prefix]) .checkbox--primary:not(.checkbox--checked):not(.checkbox--disabled) .checkbox__control:hover,:host([slot=prefix]) .checkbox--success:not(.checkbox--checked):not(.checkbox--disabled) .checkbox__control:hover,:host([slot=prefix]) .checkbox--warning:not(.checkbox--checked):not(.checkbox--disabled) .checkbox__control:hover,:host([slot=prefix]) .checkbox--error:not(.checkbox--checked):not(.checkbox--disabled) .checkbox__control:hover,:host([slot=prefix]) .checkbox--info:not(.checkbox--checked):not(.checkbox--disabled) .checkbox__control:hover{background-color:var(--checkbox-color-hover);border-color:var(--checkbox-color-hover);color:var(--zn-color-neutral-0)}:host([slot=prefix]) .checkbox--secondary .checkbox__control{background-color:var(--zn-color-neutral-200);color:var(--zn-color-neutral-700)}:host([slot=prefix]) .checkbox--secondary:not(.checkbox--checked):not(.checkbox--disabled) .checkbox__control:hover{background-color:var(--zn-color-neutral-300);border-color:var(--zn-color-neutral-300);color:var(--zn-color-neutral-800)}:host([slot=prefix]) .checkbox--checked .checkbox__control{background-color:var(--checkbox-color);color:var(--zn-color-neutral-0)}`;var fe=class extends k{constructor(){super(...arguments);this.formControlController=new re(this,{value:t=>t.checked?t.value||"on":t.uncheckedValue||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.indeterminate=!1;this.contained=!1;this.square=!1;this.src="";this.imageAlt="";this.imagePosition="left";this.controlPosition="start";this.borderless=!1;this.horizontal=!1;this.defaultChecked=!1;this.form="";this.required=!1;this.submitOnClick=!1;this.description="";this.checkedIcon="";this.uncheckedIcon="";this.color="default"}get validity(){return this.input?.validity}get isChecked(){return this.checked}get validationMessage(){return this.input.validationMessage}firstUpdated(){this.formControlController.updateValidity()}handleClick(){if(this.disabled)return;this.checked=!this.checked,this.indeterminate=!1,this.emit("zn-change");let t=this.getForm();this.submitOnClick&&t&&t.requestSubmit()}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.input.indeterminate=this.indeterminate,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"),p=this.hasSlotController.test("label-tooltip"),h=this.label||l,m=this.checked||this.indeterminate?this.checkedColor||this.color:this.uncheckedColor||this.color;return u`
3422
+ </div>`}};Xe.styles=[z(Se),z(j_)],c([F('input[type="checkbox"]')],Xe.prototype,"input",2),c([D()],Xe.prototype,"hasFocus",2),c([d()],Xe.prototype,"title",2),c([d()],Xe.prototype,"name",2),c([d()],Xe.prototype,"value",2),c([d({attribute:"fallback"})],Xe.prototype,"fallbackValue",2),c([d({reflect:!0})],Xe.prototype,"size",2),c([d({type:Boolean,reflect:!0})],Xe.prototype,"disabled",2),c([d({type:Boolean,reflect:!0})],Xe.prototype,"checked",2),c([Ce("checked")],Xe.prototype,"defaultChecked",2),c([d({reflect:!0})],Xe.prototype,"form",2),c([d({type:Boolean,reflect:!0})],Xe.prototype,"required",2),c([d({attribute:"help-text"})],Xe.prototype,"helpText",2),c([d({type:Boolean,attribute:"trigger-submit"})],Xe.prototype,"triggerSubmit",2),c([d({attribute:"on-text"})],Xe.prototype,"onText",2),c([d({attribute:"off-text"})],Xe.prototype,"offText",2),c([d()],Xe.prototype,"label",2),c([d()],Xe.prototype,"description",2),c([d({attribute:"label-position",reflect:!0})],Xe.prototype,"labelPosition",2),c([d({type:Boolean})],Xe.prototype,"inline",2);var nL=Xe;Xe.define("zn-toggle");var Ch=_`@charset "UTF-8";:host([contained]) .selection-card{--selection-card-padding:var(--zn-selection-card-padding,var(--zn-spacing-large));--selection-card-gap:var(--zn-selection-card-gap,var(--zn-spacing-medium));--selection-card-image-width:var(--zn-selection-card-image-width,5rem);--selection-card-image-height:var(--zn-selection-card-image-height,5rem);--selection-card-control-offset:var(--zn-selection-card-control-offset,var(--zn-spacing-medium));--selection-card-control-gutter:calc(var(--selection-card-control-offset) + var(--toggle-size) + var(--selection-card-gap));align-items:center;align-content:center;gap:var(--selection-card-gap);padding:var(--selection-card-padding)}:host([contained]) .selection-card .selection-card__content{flex:1 1 auto;min-width:0;margin-inline-start:0;line-height:var(--zn-line-height-normal)}:host([contained]) .selection-card .selection-card__title{display:block;font-size:var(--zn-selection-card-title-font-size,var(--zn-font-size-large));font-weight:var(--zn-font-weight-semibold);line-height:var(--zn-line-height-dense)}:host([contained]) .selection-card{}:host([contained]) .selection-card.selection-card--has-image{min-height:var(--zn-selection-card-min-height,9rem);flex-wrap:wrap}:host([contained]) .selection-card.selection-card--has-image .selection-card__content{flex-basis:var(--zn-selection-card-content-min-width,8rem)}:host([contained]) .selection-card .selection-card__image-container{flex:0 0 auto;display:flex;align-items:center;justify-content:center}:host([contained]) .selection-card .selection-card__image-container ::slotted(*){display:block;max-width:100%;max-height:var(--selection-card-image-height)}:host([contained]) .selection-card .selection-card__image{display:block;width:var(--selection-card-image-width);max-width:100%;height:var(--selection-card-image-height);-o-object-fit:contain;object-fit:contain}:host([contained]) .selection-card{}:host([contained]) .selection-card.selection-card--image-right .selection-card__image-container,:host([contained]) .selection-card.selection-card--image-bottom .selection-card__image-container{order:2}:host([contained]) .selection-card.selection-card--image-right .selection-card__content,:host([contained]) .selection-card.selection-card--image-bottom .selection-card__content{order:1}:host([contained]) .selection-card.selection-card--image-top,:host([contained]) .selection-card.selection-card--image-bottom{flex-direction:column;flex-wrap:nowrap;align-items:stretch;justify-content:center}:host([contained]) .selection-card.selection-card--image-top .selection-card__image-container,:host([contained]) .selection-card.selection-card--image-bottom .selection-card__image-container{align-self:center}:host([contained]) .selection-card.selection-card--image-top .selection-card__content,:host([contained]) .selection-card.selection-card--image-bottom .selection-card__content{flex:0 0 auto;text-align:center}:host([contained]) .selection-card.selection-card--image-top,:host([contained]) .selection-card.selection-card--image-bottom{}:host([contained]) .selection-card.selection-card--image-top.selection-card--control-top-left,:host([contained]) .selection-card.selection-card--image-bottom.selection-card--control-top-left{padding-inline:var(--selection-card-control-gutter)}:host([contained]) .selection-card.selection-card--image-top.selection-card--control-top-right,:host([contained]) .selection-card.selection-card--image-bottom.selection-card--control-top-right{padding-inline:var(--selection-card-control-gutter)}:host([contained]) .selection-card.selection-card--image-top.selection-card--control-center-left,:host([contained]) .selection-card.selection-card--image-bottom.selection-card--control-center-left{padding-inline:var(--selection-card-control-gutter)}:host([contained]) .selection-card.selection-card--image-top.selection-card--control-center-right,:host([contained]) .selection-card.selection-card--image-bottom.selection-card--control-center-right{padding-inline:var(--selection-card-control-gutter)}:host([contained]) .selection-card.selection-card--image-top.selection-card--control-bottom-left,:host([contained]) .selection-card.selection-card--image-bottom.selection-card--control-bottom-left{padding-inline:var(--selection-card-control-gutter)}:host([contained]) .selection-card.selection-card--image-top.selection-card--control-bottom-right,:host([contained]) .selection-card.selection-card--image-bottom.selection-card--control-bottom-right{padding-inline:var(--selection-card-control-gutter)}:host([contained]) .selection-card{}:host([contained]) .selection-card.selection-card--control-top-left{padding-inline-start:var(--selection-card-control-gutter)}:host([contained]) .selection-card.selection-card--control-top-left .selection-card__control{position:absolute;z-index:1;transform:translate(var(--selection-card-control-shift-x,0),var(--selection-card-control-shift-y,0));inset-block-start:var(--selection-card-control-offset);inset-inline-start:var(--selection-card-control-offset)}:host([contained]) .selection-card.selection-card--control-top-center{padding-block-start:var(--selection-card-control-gutter)}:host([contained]) .selection-card.selection-card--control-top-center .selection-card__control{position:absolute;z-index:1;transform:translate(var(--selection-card-control-shift-x,0),var(--selection-card-control-shift-y,0));inset-block-start:var(--selection-card-control-offset);--selection-card-control-shift-x:-50%;inset-inline-start:50%}:host([contained]) .selection-card.selection-card--control-top-right{padding-inline-end:var(--selection-card-control-gutter)}:host([contained]) .selection-card.selection-card--control-top-right .selection-card__control{position:absolute;z-index:1;transform:translate(var(--selection-card-control-shift-x,0),var(--selection-card-control-shift-y,0));inset-block-start:var(--selection-card-control-offset);inset-inline-end:var(--selection-card-control-offset)}:host([contained]) .selection-card.selection-card--control-center-left{padding-inline-start:var(--selection-card-control-gutter)}:host([contained]) .selection-card.selection-card--control-center-left .selection-card__control{position:absolute;z-index:1;transform:translate(var(--selection-card-control-shift-x,0),var(--selection-card-control-shift-y,0));--selection-card-control-shift-y:-50%;inset-block-start:50%;inset-inline-start:var(--selection-card-control-offset)}:host([contained]) .selection-card.selection-card--control-center .selection-card__control{position:absolute;z-index:1;transform:translate(var(--selection-card-control-shift-x,0),var(--selection-card-control-shift-y,0));--selection-card-control-shift-y:-50%;inset-block-start:50%;--selection-card-control-shift-x:-50%;inset-inline-start:50%}:host([contained]) .selection-card.selection-card--control-center-right{padding-inline-end:var(--selection-card-control-gutter)}:host([contained]) .selection-card.selection-card--control-center-right .selection-card__control{position:absolute;z-index:1;transform:translate(var(--selection-card-control-shift-x,0),var(--selection-card-control-shift-y,0));--selection-card-control-shift-y:-50%;inset-block-start:50%;inset-inline-end:var(--selection-card-control-offset)}:host([contained]) .selection-card.selection-card--control-bottom-left{padding-inline-start:var(--selection-card-control-gutter)}:host([contained]) .selection-card.selection-card--control-bottom-left .selection-card__control{position:absolute;z-index:1;transform:translate(var(--selection-card-control-shift-x,0),var(--selection-card-control-shift-y,0));inset-block-end:var(--selection-card-control-offset);inset-inline-start:var(--selection-card-control-offset)}:host([contained]) .selection-card.selection-card--control-bottom-center{padding-block-end:var(--selection-card-control-gutter)}:host([contained]) .selection-card.selection-card--control-bottom-center .selection-card__control{position:absolute;z-index:1;transform:translate(var(--selection-card-control-shift-x,0),var(--selection-card-control-shift-y,0));inset-block-end:var(--selection-card-control-offset);--selection-card-control-shift-x:-50%;inset-inline-start:50%}:host([contained]) .selection-card.selection-card--control-bottom-right{padding-inline-end:var(--selection-card-control-gutter)}:host([contained]) .selection-card.selection-card--control-bottom-right .selection-card__control{position:absolute;z-index:1;transform:translate(var(--selection-card-control-shift-x,0),var(--selection-card-control-shift-y,0));inset-block-end:var(--selection-card-control-offset);inset-inline-end:var(--selection-card-control-offset)}:host([contained]) .selection-card{}:host([contained]) .selection-card.selection-card--control-none .selection-card__control{display:none}:host([contained]) .selection-card.selection-card--control-none:has(input:focus-visible){outline:var(--zn-focus-ring);outline-offset:var(--zn-focus-ring-offset)}:host([contained]) [part~=base]{border-radius:var(--zn-selection-card-border-radius,var(--zn-border-radius))}:host([square]) [part~=base]{border-radius:0}`;var G_=_`@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;height:100%}.form-control .form-control__label{padding-bottom:var(--zn-spacing-small)}.checkbox{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);vertical-align:middle;cursor:pointer;height:100%;--checkbox-color:var(--zn-color-primary-600);--checkbox-color-hover:var(--zn-color-primary-500);--checkbox-icon-color:var(--zn-color-neutral-0);--checkbox-border-color:var(--zn-input-border-color);--checkbox-bg-color:var(--zn-input-background-color)}.checkbox.checkbox--default{--checkbox-color:var(--zn-color-primary-600);--checkbox-color-hover:var(--zn-color-primary-500);--checkbox-border-color:var(--zn-input-border-color)}.checkbox.checkbox--primary{--checkbox-color:var(--zn-color-primary-600);--checkbox-color-hover:var(--zn-color-primary-500);--checkbox-border-color:var(--zn-color-primary-600)}.checkbox.checkbox--secondary{--checkbox-color:var(--zn-color-neutral-600);--checkbox-color-hover:var(--zn-color-neutral-500);--checkbox-border-color:var(--zn-color-neutral-300);--checkbox-bg-color:var(--zn-color-neutral-50)}.checkbox.checkbox--info{--checkbox-color:var(--zn-color-info-600);--checkbox-color-hover:var(--zn-color-info-500);--checkbox-border-color:var(--zn-color-info-600)}.checkbox.checkbox--success{--checkbox-color:var(--zn-color-success-600);--checkbox-color-hover:var(--zn-color-success-500);--checkbox-border-color:var(--zn-color-success-600)}.checkbox.checkbox--warning{--checkbox-color:var(--zn-color-warning-600);--checkbox-color-hover:var(--zn-color-warning-500);--checkbox-border-color:var(--zn-color-warning-600)}.checkbox.checkbox--error{--checkbox-color:var(--zn-color-danger-600);--checkbox-color-hover:var(--zn-color-danger-500);--checkbox-border-color:var(--zn-color-danger-600)}.checkbox.checkbox--transparent{--checkbox-bg-color:transparent;--checkbox-border-color:transparent}.checkbox--small{--toggle-size:var(--zn-toggle-size-small);font-size:var(--zn-input-font-size-small)}.checkbox--small .checkbox__description{font-size:var(--zn-font-size-x-small)}.checkbox--medium{--toggle-size:var(--zn-toggle-size-medium);font-size:var(--zn-input-font-size-medium)}.checkbox--medium .checkbox__description,.checkbox--large .checkbox__description{font-size:var(--zn-input-font-size-small)}.checkbox--large{--toggle-size:var(--zn-toggle-size-large);font-size:var(--zn-input-font-size-large)}.checkbox__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(--checkbox-border-color);background-color:var(--checkbox-bg-color);border-radius:var(--zn-border-radius-small);color:var(--checkbox-icon-color);transition:var(--zn-transition-fast) border-color,var(--zn-transition-fast) background-color,var(--zn-transition-fast) color,var(--zn-transition-fast) box-shadow}.checkbox__input{position:absolute;opacity:0;padding:0;margin:0;pointer-events:none}.checkbox__indeterminate-icon{--icon-size:var(--toggle-size);--icon-color:var(--checkbox-icon-color);display:inline-flex;width:var(--toggle-size);height:var(--toggle-size)}.svg-icon{height:max(16px,70%);--icon-color:var(--checkbox-icon-color)}.svg-icon .checkbox__checked-icon{stroke-dasharray:24;stroke-dashoffset:24;transition:stroke-dashoffset 0.4s cubic-bezier(0.4,0,0.2,1)}.checkbox--indeterminate .svg-icon{color:transparent}.checkbox--checked .svg-icon{color:var(--checkbox-icon-color)}.checkbox--checked .checkbox__checked-icon{stroke-dashoffset:0}.checkbox:not(.checkbox--checked):not(.checkbox--disabled) .checkbox__control:hover{border-color:var(--checkbox-color-hover,var(--zn-input-border-color-hover));background-color:var(--zn-input-background-color-hover)}.checkbox:not(.checkbox--checked):not(.checkbox--disabled) .checkbox__input:focus-visible~.checkbox__control{border-color:var(--checkbox-color);outline:var(--zn-focus-ring);outline-offset:var(--zn-focus-ring-offset)}.checkbox--checked .checkbox__control,.checkbox--indeterminate .checkbox__control{border-color:var(--checkbox-color);background-color:var(--checkbox-color);color:var(--checkbox-icon-color)}.checkbox.checkbox--checked:not(.checkbox--disabled) .checkbox__control:hover,.checkbox.checkbox--indeterminate:not(.checkbox--disabled) .checkbox__control:hover{border-color:var(--checkbox-color-hover);background-color:var(--checkbox-color-hover)}.checkbox.checkbox--checked:not(.checkbox--disabled) .checkbox__input:focus-visible~.checkbox__control,.checkbox.checkbox--indeterminate:not(.checkbox--disabled) .checkbox__input:focus-visible~.checkbox__control{outline:var(--zn-focus-ring);outline-offset:var(--zn-focus-ring-offset)}.checkbox--disabled{opacity:0.5;cursor:not-allowed}:host-context([required]) .checkbox__label::after{display:none}:host([required]) .checkbox__label::after{display:none}:host(.checkbox-user-invalid) .checkbox__control{border-color:var(--zn-color-danger-600)}:host(.checkbox-user-invalid) .checkbox:not(.checkbox--checked):not(.checkbox--disabled) .checkbox__input:focus-visible~.checkbox__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(.groupedCheckbox){margin-top:var(--zn-spacing-medium)}:host(.groupedCheckbox[horizontal]),:host(.groupedCheckbox[contained]){margin-top:var(--zn-spacing-small)}:host(.groupedCheckbox[horizontal][contained]){margin-top:0;height:100%}.checkbox__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}.checkbox--no-border{border:none !important;outline:none !important;border-radius:0 !important}.checkbox--contained{padding:1.375rem var(--zn-spacing-large) 1.375rem var(--zn-spacing-medium);border:1px solid var(--zn-color-gray-400);border-radius:var(--zn-border-radius);width:100%;height:100%}:not(.checkbox--disabled).checkbox--contained:hover,:not(.checkbox--disabled).checkbox--contained.checkbox--checked:hover{background-color:var(--zn-color-purple-50);transition:var(--zn-transition-medium) all}.checkbox--contained.checkbox--checked .checkbox__label{color:var(--zn-color-purple-600);font-weight:var(--zn-font-weight-semibold)}.checkbox--contained.checkbox--checked .checkbox__description{color:var(--zn-color-gray-900);font-weight:var(--zn-font-weight-normal)}.checkbox--contained.checkbox--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}:host([slot=prefix]){height:100%;aspect-ratio:1}:host([slot=prefix]) .checkbox__control{height:100%;width:100%;border:unset;box-shadow:unset;background-color:var(--zn-color-purple-50)}:host([slot=prefix]) .checkbox--primary .checkbox__control,:host([slot=prefix]) .checkbox--success .checkbox__control,:host([slot=prefix]) .checkbox--warning .checkbox__control,:host([slot=prefix]) .checkbox--error .checkbox__control,:host([slot=prefix]) .checkbox--info .checkbox__control{background-color:var(--checkbox-color);color:var(--zn-color-neutral-0);border-color:var(--checkbox-color)}:host([slot=prefix]) .checkbox--primary:not(.checkbox--checked):not(.checkbox--disabled) .checkbox__control:hover,:host([slot=prefix]) .checkbox--success:not(.checkbox--checked):not(.checkbox--disabled) .checkbox__control:hover,:host([slot=prefix]) .checkbox--warning:not(.checkbox--checked):not(.checkbox--disabled) .checkbox__control:hover,:host([slot=prefix]) .checkbox--error:not(.checkbox--checked):not(.checkbox--disabled) .checkbox__control:hover,:host([slot=prefix]) .checkbox--info:not(.checkbox--checked):not(.checkbox--disabled) .checkbox__control:hover{background-color:var(--checkbox-color-hover);border-color:var(--checkbox-color-hover);color:var(--zn-color-neutral-0)}:host([slot=prefix]) .checkbox--secondary .checkbox__control{background-color:var(--zn-color-neutral-200);color:var(--zn-color-neutral-700)}:host([slot=prefix]) .checkbox--secondary:not(.checkbox--checked):not(.checkbox--disabled) .checkbox__control:hover{background-color:var(--zn-color-neutral-300);border-color:var(--zn-color-neutral-300);color:var(--zn-color-neutral-800)}:host([slot=prefix]) .checkbox--checked .checkbox__control{background-color:var(--checkbox-color);color:var(--zn-color-neutral-0)}`;var fe=class extends k{constructor(){super(...arguments);this.formControlController=new re(this,{value:t=>t.checked?t.value||"on":t.uncheckedValue||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.indeterminate=!1;this.contained=!1;this.square=!1;this.src="";this.imageAlt="";this.imagePosition="left";this.controlPosition="start";this.borderless=!1;this.horizontal=!1;this.defaultChecked=!1;this.form="";this.required=!1;this.submitOnClick=!1;this.description="";this.checkedIcon="";this.uncheckedIcon="";this.color="default"}get validity(){return this.input?.validity}get isChecked(){return this.checked}get validationMessage(){return this.input.validationMessage}firstUpdated(){this.formControlController.updateValidity()}handleClick(){if(this.disabled)return;this.checked=!this.checked,this.indeterminate=!1,this.emit("zn-change");let t=this.getForm();this.submitOnClick&&t&&t.requestSubmit()}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.input.indeterminate=this.indeterminate,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"),p=this.hasSlotController.test("label-tooltip"),h=this.label||l,m=this.checked||this.indeterminate?this.checkedColor||this.color:this.uncheckedColor||this.color;return u`
3423
3423
  <div
3424
3424
  class=${M({"form-control":!0,"form-control--small":this.size==="small","form-control--medium":this.size==="medium","form-control--large":this.size==="large","form-control--checkbox-contained-wrapper":this.contained,"form-control--has-label":h})}>
3425
3425
 
@@ -3516,7 +3516,7 @@ ${Oa(this.code(i,t))}
3516
3516
  </div>
3517
3517
  </label>
3518
3518
  </div>
3519
- `}};fe.styles=[z(Se),z(Ch),z(G_)],fe.dependencies={"zn-icon":ne},c([F('input[type="checkbox"]')],fe.prototype,"input",2),c([R()],fe.prototype,"hasFocus",2),c([d()],fe.prototype,"title",2),c([d()],fe.prototype,"name",2),c([d()],fe.prototype,"value",2),c([d({attribute:"card-title"})],fe.prototype,"cardTitle",2),c([d({attribute:"unchecked-value",reflect:!0})],fe.prototype,"uncheckedValue",2),c([d({reflect:!0})],fe.prototype,"size",2),c([d({type:Boolean,reflect:!0})],fe.prototype,"disabled",2),c([d({type:Boolean,reflect:!0})],fe.prototype,"checked",2),c([d({type:Boolean,reflect:!0})],fe.prototype,"indeterminate",2),c([d({type:Boolean,reflect:!0})],fe.prototype,"contained",2),c([d({type:Boolean,reflect:!0})],fe.prototype,"square",2),c([d()],fe.prototype,"src",2),c([d({attribute:"image-alt"})],fe.prototype,"imageAlt",2),c([d({attribute:"image-position",reflect:!0})],fe.prototype,"imagePosition",2),c([d({attribute:"control-position",reflect:!0})],fe.prototype,"controlPosition",2),c([d({type:Boolean,reflect:!0})],fe.prototype,"borderless",2),c([d({type:Boolean,reflect:!0})],fe.prototype,"horizontal",2),c([Ce("checked")],fe.prototype,"defaultChecked",2),c([d({reflect:!0})],fe.prototype,"form",2),c([d({type:Boolean,reflect:!0})],fe.prototype,"required",2),c([d({attribute:"submit-on-click",type:Boolean,reflect:!0})],fe.prototype,"submitOnClick",2),c([d({attribute:"description"})],fe.prototype,"description",2),c([d()],fe.prototype,"label",2),c([d({attribute:"label-tooltip"})],fe.prototype,"labelTooltip",2),c([d({attribute:"checked-icon"})],fe.prototype,"checkedIcon",2),c([d({attribute:"unchecked-icon"})],fe.prototype,"uncheckedIcon",2),c([d({reflect:!0})],fe.prototype,"color",2),c([d({attribute:"checked-color"})],fe.prototype,"checkedColor",2),c([d({attribute:"unchecked-color"})],fe.prototype,"uncheckedColor",2),c([K("disabled",{waitUntilFirstUpdate:!0})],fe.prototype,"handleDisabledChange",1),c([K(["checked","indeterminate"],{waitUntilFirstUpdate:!0})],fe.prototype,"handleStateChange",1);var oL=fe;fe.define("zn-checkbox");var W_=_`@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)}`;var br=class extends k{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(cr(this.form)):this.closest("form")}render(){return u`
3519
+ `}};fe.styles=[z(Se),z(Ch),z(G_)],fe.dependencies={"zn-icon":ne},c([F('input[type="checkbox"]')],fe.prototype,"input",2),c([D()],fe.prototype,"hasFocus",2),c([d()],fe.prototype,"title",2),c([d()],fe.prototype,"name",2),c([d()],fe.prototype,"value",2),c([d({attribute:"card-title"})],fe.prototype,"cardTitle",2),c([d({attribute:"unchecked-value",reflect:!0})],fe.prototype,"uncheckedValue",2),c([d({reflect:!0})],fe.prototype,"size",2),c([d({type:Boolean,reflect:!0})],fe.prototype,"disabled",2),c([d({type:Boolean,reflect:!0})],fe.prototype,"checked",2),c([d({type:Boolean,reflect:!0})],fe.prototype,"indeterminate",2),c([d({type:Boolean,reflect:!0})],fe.prototype,"contained",2),c([d({type:Boolean,reflect:!0})],fe.prototype,"square",2),c([d()],fe.prototype,"src",2),c([d({attribute:"image-alt"})],fe.prototype,"imageAlt",2),c([d({attribute:"image-position",reflect:!0})],fe.prototype,"imagePosition",2),c([d({attribute:"control-position",reflect:!0})],fe.prototype,"controlPosition",2),c([d({type:Boolean,reflect:!0})],fe.prototype,"borderless",2),c([d({type:Boolean,reflect:!0})],fe.prototype,"horizontal",2),c([Ce("checked")],fe.prototype,"defaultChecked",2),c([d({reflect:!0})],fe.prototype,"form",2),c([d({type:Boolean,reflect:!0})],fe.prototype,"required",2),c([d({attribute:"submit-on-click",type:Boolean,reflect:!0})],fe.prototype,"submitOnClick",2),c([d({attribute:"description"})],fe.prototype,"description",2),c([d()],fe.prototype,"label",2),c([d({attribute:"label-tooltip"})],fe.prototype,"labelTooltip",2),c([d({attribute:"checked-icon"})],fe.prototype,"checkedIcon",2),c([d({attribute:"unchecked-icon"})],fe.prototype,"uncheckedIcon",2),c([d({reflect:!0})],fe.prototype,"color",2),c([d({attribute:"checked-color"})],fe.prototype,"checkedColor",2),c([d({attribute:"unchecked-color"})],fe.prototype,"uncheckedColor",2),c([K("disabled",{waitUntilFirstUpdate:!0})],fe.prototype,"handleDisabledChange",1),c([K(["checked","indeterminate"],{waitUntilFirstUpdate:!0})],fe.prototype,"handleStateChange",1);var oL=fe;fe.define("zn-checkbox");var W_=_`@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)}`;var br=class extends k{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(cr(this.form)):this.closest("form")}render(){return u`
3520
3520
  <slot></slot>
3521
3521
  ${this.withCancel?u`
3522
3522
  <zn-button part="cancel-button" panel-bg modal-closer icon="${this.cancelIcon}" @click="${this.handleCancel}">
@@ -3683,7 +3683,7 @@ ${Oa(this.code(i,t))}
3683
3683
  </div>
3684
3684
  </label>
3685
3685
  </div>
3686
- `}};Le.styles=[z(Se),z(Ch),z(X_)],Le.dependencies={"zn-icon":ne},c([F('input[type="radio"]')],Le.prototype,"input",2),c([R()],Le.prototype,"hasFocus",2),c([d()],Le.prototype,"title",2),c([d()],Le.prototype,"name",2),c([d()],Le.prototype,"value",2),c([d({attribute:"card-title"})],Le.prototype,"cardTitle",2),c([d({reflect:!0})],Le.prototype,"size",2),c([d({type:Boolean,reflect:!0})],Le.prototype,"disabled",2),c([d({type:Boolean,reflect:!0})],Le.prototype,"checked",2),c([d({type:Boolean,reflect:!0})],Le.prototype,"contained",2),c([d({type:Boolean,reflect:!0})],Le.prototype,"square",2),c([d()],Le.prototype,"src",2),c([d({attribute:"image-alt"})],Le.prototype,"imageAlt",2),c([d({attribute:"image-position",reflect:!0})],Le.prototype,"imagePosition",2),c([d({attribute:"control-position",reflect:!0})],Le.prototype,"controlPosition",2),c([d({type:Boolean,reflect:!0})],Le.prototype,"horizontal",2),c([Ce("checked")],Le.prototype,"defaultChecked",2),c([d({reflect:!0})],Le.prototype,"form",2),c([d({type:Boolean,reflect:!0})],Le.prototype,"required",2),c([d({attribute:"description"})],Le.prototype,"description",2),c([d()],Le.prototype,"label",2),c([d({attribute:"label-tooltip"})],Le.prototype,"labelTooltip",2),c([K("disabled",{waitUntilFirstUpdate:!0})],Le.prototype,"handleDisabledChange",1),c([K(["checked"],{waitUntilFirstUpdate:!0})],Le.prototype,"handleStateChange",1);var cL=Le;Le.define("zn-radio");var J_=_`@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{--symbol-color:rgb(var(--zn-border-color));--symbol-color-active:var(--zn-color-amber-400);--symbol-size:1.2rem;--symbol-spacing:var(--zn-spacing-x-small);--preview-color:rgb(var(--zn-text));--preview-size:0.875rem;display:block}.rating{position:relative;display:inline-flex;align-items:center;border-radius:var(--zn-border-radius);vertical-align:middle}.rating:focus{outline:none}.rating:focus-visible{outline:rgb(var(--zn-primary));outline-offset:2px}.rating__symbols{display:inline-flex;position:relative;gap:var(--symbol-spacing);font-size:var(--symbol-size);line-height:0;color:var(--symbol-color);white-space:nowrap;cursor:pointer}.rating__symbol--active,.rating__partial--filled{color:var(--symbol-color-active)}.rating__partial-symbol-container{position:relative}.rating__partial--filled{position:absolute;top:0;left:0}.rating__symbol{transition:var(--zn-transition-fast) scale;pointer-events:none}.rating__symbol--hover{scale:1.2}.rating__preview{margin-left:var(--symbol-spacing);font-size:var(--preview-size);font-weight:var(--zn-font-weight-semibold);line-height:1;color:var(--preview-color);font-variant-numeric:tabular-nums;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.rating__preview--hover{color:var(--symbol-color-active)}.rating--disabled .rating__symbols,.rating--readonly .rating__symbols{cursor:default}.rating--disabled .rating__symbol--hover,.rating--readonly .rating__symbol--hover{scale:none}.rating--disabled .rating__preview--hover,.rating--readonly .rating__preview--hover{color:var(--preview-color)}.rating--disabled{opacity:0.5}.rating--disabled .rating__symbols{cursor:not-allowed}.rating--small{--symbol-size:1rem;--symbol-spacing:var(--zn-spacing-2x-small)}.rating--medium{--symbol-size:1.2rem}.rating--large{--symbol-size:1.5rem;--symbol-spacing:12px}`;var _t=class extends k{constructor(){super(...arguments);this.formControlController=new re(this,{assumeInteractionOn:["zn-blur","zn-input"]});this.hasSlotController=new Y(this,"help-text");this.hoverValue=0;this.isHovering=!1;this.helpText="";this.value=0;this.defaultValue=0;this.max=5;this.precision=1;this.readonly=!1;this.disabled=!1;this.preview=!1;this.size="medium";this.getSymbol=()=>'<zn-icon src="star" library="material"></zn-icon>'}get validity(){return pt}get validationMessage(){return""}checkValidity(){return!0}getForm(){return this.formControlController.getForm()}reportValidity(){return!0}setCustomValidity(){this.formControlController.updateValidity()}_roundToPrecision(t,r){let n=1/r;return Math.ceil(t*n)/n}_getValueFromXCoordinate(t){let{left:r,width:n}=this.symbols.getBoundingClientRect(),a=parseFloat(getComputedStyle(this.symbols).columnGap)||0,s=(n-a*(this.max-1))/this.max,l=s+a,p=Math.min(Math.max(t-r,0),n),h=Math.min(Math.floor(p/l),this.max-1),m=Math.min((p-h*l)/s,1),f=this._roundToPrecision(h+m,this.precision);return Math.min(Math.max(f,0),this.max)}_formatValue(t){let r=String(this.precision).split(".")[1]?.length??0;return t.toFixed(r)}_getValueFromMousePosition(t){return this._getValueFromXCoordinate(t.clientX)}_getValueFromTouchPosition(t){return this._getValueFromXCoordinate(t.touches[0].clientX)}_setValue(t){this.disabled||this.readonly||(this.value=t===this.value?0:t,this.isHovering=!1)}_handleClick(t){this.readonly||this.disabled||this._setValue(this._getValueFromMousePosition(t))}_handleMouseEnter(t){this.isHovering=!0,this.hoverValue=this._getValueFromMousePosition(t)}_handleMouseMove(t){this.hoverValue=this._getValueFromMousePosition(t)}_handleMouseLeave(){this.isHovering=!1}_handleTouchStart(t){this.isHovering=!0,this.hoverValue=this._getValueFromTouchPosition(t)}_handleTouchMove(t){this.hoverValue=this._getValueFromTouchPosition(t)}_handleTouchEnd(t){this.isHovering=!1,this._setValue(this._getValueFromXCoordinate(t.changedTouches[0].clientX)),t.preventDefault()}render(){let t=Array.from(Array(this.max).keys()),r=this.helpText?!0:this.hasSlotController.test("help-text"),n=0;return this.disabled||this.readonly?n=this.value:n=this.isHovering?this.hoverValue:this.value,u`
3686
+ `}};Le.styles=[z(Se),z(Ch),z(X_)],Le.dependencies={"zn-icon":ne},c([F('input[type="radio"]')],Le.prototype,"input",2),c([D()],Le.prototype,"hasFocus",2),c([d()],Le.prototype,"title",2),c([d()],Le.prototype,"name",2),c([d()],Le.prototype,"value",2),c([d({attribute:"card-title"})],Le.prototype,"cardTitle",2),c([d({reflect:!0})],Le.prototype,"size",2),c([d({type:Boolean,reflect:!0})],Le.prototype,"disabled",2),c([d({type:Boolean,reflect:!0})],Le.prototype,"checked",2),c([d({type:Boolean,reflect:!0})],Le.prototype,"contained",2),c([d({type:Boolean,reflect:!0})],Le.prototype,"square",2),c([d()],Le.prototype,"src",2),c([d({attribute:"image-alt"})],Le.prototype,"imageAlt",2),c([d({attribute:"image-position",reflect:!0})],Le.prototype,"imagePosition",2),c([d({attribute:"control-position",reflect:!0})],Le.prototype,"controlPosition",2),c([d({type:Boolean,reflect:!0})],Le.prototype,"horizontal",2),c([Ce("checked")],Le.prototype,"defaultChecked",2),c([d({reflect:!0})],Le.prototype,"form",2),c([d({type:Boolean,reflect:!0})],Le.prototype,"required",2),c([d({attribute:"description"})],Le.prototype,"description",2),c([d()],Le.prototype,"label",2),c([d({attribute:"label-tooltip"})],Le.prototype,"labelTooltip",2),c([K("disabled",{waitUntilFirstUpdate:!0})],Le.prototype,"handleDisabledChange",1),c([K(["checked"],{waitUntilFirstUpdate:!0})],Le.prototype,"handleStateChange",1);var cL=Le;Le.define("zn-radio");var J_=_`@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{--symbol-color:rgb(var(--zn-border-color));--symbol-color-active:var(--zn-color-amber-400);--symbol-size:1.2rem;--symbol-spacing:var(--zn-spacing-x-small);--preview-color:rgb(var(--zn-text));--preview-size:0.875rem;display:block}.rating{position:relative;display:inline-flex;align-items:center;border-radius:var(--zn-border-radius);vertical-align:middle}.rating:focus{outline:none}.rating:focus-visible{outline:rgb(var(--zn-primary));outline-offset:2px}.rating__symbols{display:inline-flex;position:relative;gap:var(--symbol-spacing);font-size:var(--symbol-size);line-height:0;color:var(--symbol-color);white-space:nowrap;cursor:pointer}.rating__symbol--active,.rating__partial--filled{color:var(--symbol-color-active)}.rating__partial-symbol-container{position:relative}.rating__partial--filled{position:absolute;top:0;left:0}.rating__symbol{transition:var(--zn-transition-fast) scale;pointer-events:none}.rating__symbol--hover{scale:1.2}.rating__preview{margin-left:var(--symbol-spacing);font-size:var(--preview-size);font-weight:var(--zn-font-weight-semibold);line-height:1;color:var(--preview-color);font-variant-numeric:tabular-nums;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.rating__preview--hover{color:var(--symbol-color-active)}.rating--disabled .rating__symbols,.rating--readonly .rating__symbols{cursor:default}.rating--disabled .rating__symbol--hover,.rating--readonly .rating__symbol--hover{scale:none}.rating--disabled .rating__preview--hover,.rating--readonly .rating__preview--hover{color:var(--preview-color)}.rating--disabled{opacity:0.5}.rating--disabled .rating__symbols{cursor:not-allowed}.rating--small{--symbol-size:1rem;--symbol-spacing:var(--zn-spacing-2x-small)}.rating--medium{--symbol-size:1.2rem}.rating--large{--symbol-size:1.5rem;--symbol-spacing:12px}`;var _t=class extends k{constructor(){super(...arguments);this.formControlController=new re(this,{assumeInteractionOn:["zn-blur","zn-input"]});this.hasSlotController=new Y(this,"help-text");this.hoverValue=0;this.isHovering=!1;this.helpText="";this.value=0;this.defaultValue=0;this.max=5;this.precision=1;this.readonly=!1;this.disabled=!1;this.preview=!1;this.size="medium";this.getSymbol=()=>'<zn-icon src="star" library="material"></zn-icon>'}get validity(){return pt}get validationMessage(){return""}checkValidity(){return!0}getForm(){return this.formControlController.getForm()}reportValidity(){return!0}setCustomValidity(){this.formControlController.updateValidity()}_roundToPrecision(t,r){let n=1/r;return Math.ceil(t*n)/n}_getValueFromXCoordinate(t){let{left:r,width:n}=this.symbols.getBoundingClientRect(),a=parseFloat(getComputedStyle(this.symbols).columnGap)||0,s=(n-a*(this.max-1))/this.max,l=s+a,p=Math.min(Math.max(t-r,0),n),h=Math.min(Math.floor(p/l),this.max-1),m=Math.min((p-h*l)/s,1),f=this._roundToPrecision(h+m,this.precision);return Math.min(Math.max(f,0),this.max)}_formatValue(t){let r=String(this.precision).split(".")[1]?.length??0;return t.toFixed(r)}_getValueFromMousePosition(t){return this._getValueFromXCoordinate(t.clientX)}_getValueFromTouchPosition(t){return this._getValueFromXCoordinate(t.touches[0].clientX)}_setValue(t){this.disabled||this.readonly||(this.value=t===this.value?0:t,this.isHovering=!1)}_handleClick(t){this.readonly||this.disabled||this._setValue(this._getValueFromMousePosition(t))}_handleMouseEnter(t){this.isHovering=!0,this.hoverValue=this._getValueFromMousePosition(t)}_handleMouseMove(t){this.hoverValue=this._getValueFromMousePosition(t)}_handleMouseLeave(){this.isHovering=!1}_handleTouchStart(t){this.isHovering=!0,this.hoverValue=this._getValueFromTouchPosition(t)}_handleTouchMove(t){this.hoverValue=this._getValueFromTouchPosition(t)}_handleTouchEnd(t){this.isHovering=!1,this._setValue(this._getValueFromXCoordinate(t.changedTouches[0].clientX)),t.preventDefault()}render(){let t=Array.from(Array(this.max).keys()),r=this.helpText?!0:this.hasSlotController.test("help-text"),n=0;return this.disabled||this.readonly?n=this.value:n=this.isHovering?this.hoverValue:this.value,u`
3687
3687
  <div
3688
3688
  part="form-control"
3689
3689
  class="${M({"form-control":!0,"form-control--small":this.size==="small","form-control--medium":this.size==="medium","form-control--large":this.size==="large","form-control--has-help-text":r})}">
@@ -3747,7 +3747,7 @@ ${Oa(this.code(i,t))}
3747
3747
  <slot name="help-text">${this.helpText}</slot>
3748
3748
  </div>
3749
3749
  </div>
3750
- `}};_t.styles=[z(Se),z(J_)],c([F(".rating")],_t.prototype,"rating",2),c([F(".rating__symbols")],_t.prototype,"symbols",2),c([R()],_t.prototype,"hoverValue",2),c([R()],_t.prototype,"isHovering",2),c([d()],_t.prototype,"label",2),c([d({attribute:"help-text"})],_t.prototype,"helpText",2),c([d()],_t.prototype,"name",2),c([d({type:Number})],_t.prototype,"value",2),c([Ce()],_t.prototype,"defaultValue",2),c([d({type:Number})],_t.prototype,"max",2),c([d({type:Number})],_t.prototype,"precision",2),c([d({type:Boolean})],_t.prototype,"readonly",2),c([d({type:Boolean})],_t.prototype,"disabled",2),c([d({type:Boolean})],_t.prototype,"preview",2),c([d({})],_t.prototype,"size",2),c([d()],_t.prototype,"getSymbol",2);var dL=_t;_t.define("zn-rating");var Z_=_`@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)}:host([horizontal]) .form-control-input{display:flex;flex-wrap:wrap;-moz-column-gap:var(--zn-spacing-2x-large);column-gap:var(--zn-spacing-2x-large);row-gap:var(--zn-spacing-small)}:host([contained]) .form-control--has-label .form-control-input{margin-top:var(--zn-spacing-medium)}:host([horizontal][contained]) .form-control-input{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,var(--zn-radio-group-column-width,152px)),1fr));align-items:stretch;gap:var(--zn-spacing-small)}::slotted(zn-radio){margin-top:var(--zn-spacing-medium)}::slotted(zn-radio[horizontal]),::slotted(zn-radio[contained]){margin-top:var(--zn-spacing-small)}::slotted(zn-radio[horizontal][contained]){margin-top:0;height:100%}:host([horizontal][contained][wrap]) .form-control-input{display:flex;flex-wrap:wrap;align-items:stretch;gap:var(--zn-base-gap)}:host([wrap]) ::slotted(zn-radio[horizontal][contained]){flex:1 1 var(--zn-radio-group-column-width,152px);min-width:0;height:auto}.form-control{position:relative;border:none;padding:0;margin:0}.form-control__label{padding:0}.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}`;var ct=class extends k{constructor(){super(...arguments);this.formControlController=new re(this);this.hasSlotController=new Y(this,"help-text","label");this.customValidityMessage="";this.errorMessage="";this.defaultValue="";this.label="";this.labelTooltip="";this.helpText="";this.name="";this.value="";this.size="medium";this.horizontal=!1;this.contained=!1;this.square=!1;this.wrap=!1;this.form="";this.required=!1}get validity(){let t=this.required&&!this.value;return this.customValidityMessage!==""?hd:t?ud:pt}get validationMessage(){let t=this.required&&!this.value;return this.customValidityMessage!==""?this.customValidityMessage:t?this.validationInput.validationMessage:""}connectedCallback(){super.connectedCallback(),this.defaultValue=this.value}firstUpdated(t){super.firstUpdated(t),this.formControlController.updateValidity()}getAllRadios(){return[...this.querySelectorAll("zn-radio")]}handleRadioClick(t){let r=t.target.closest("zn-radio"),n=this.getAllRadios();!r||r.disabled||(this.value=r.value,n.forEach(a=>a.checked=a===r))}handleKeyDown(t){if(!["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"," "].includes(t.key))return;let r=this.getAllRadios().filter(l=>!l.disabled),n=r.find(l=>l.checked)??r[0],a=t.key===" "?0:["ArrowUp","ArrowLeft"].includes(t.key)?-1:1,s=r.indexOf(n)+a;s<0&&(s=r.length-1),s>r.length-1&&(s=0),this.getAllRadios().forEach(l=>{l.checked=!1}),this.value=r[s].value,r[s].checked=!0,r[s].shadowRoot.querySelector("button").focus(),t.preventDefault()}handleLabelClick(){this.focus()}handleInvalid(t){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(t)}async syncRadioElements(){let t=this.getAllRadios();await Promise.all(t.map(async r=>{await r.updateComplete,r.checked=r.value===this.value,r.size=this.size,r.horizontal=this.horizontal,r.contained=this.contained,this.square&&(r.square=!0)})),t.length>0&&!t.some(r=>r.checked)&&t[0].setAttribute("tabindex","0")}syncRadios(){if(customElements.get("zn-radio")){this.syncRadioElements();return}customElements.get("zn-radio")?this.syncRadioElements():customElements.whenDefined("zn-radio").then(()=>this.syncRadios())}updateCheckedRadio(){this.getAllRadios().forEach(r=>r.checked=r.value===this.value),this.formControlController.setValidity(this.validity?.valid)}handleSizeChange(){this.syncRadios()}handleValueChange(){this.hasUpdated&&this.updateCheckedRadio()}checkValidity(){let t=this.required&&!this.value,r=this.customValidityMessage!=="";return t||r?(this.formControlController.emitInvalidEvent(),!1):!0}getForm(){return this.formControlController.getForm()}reportValidity(){let t=this.validity?.valid;return this.errorMessage=this.customValidityMessage||t?"":this.validationInput.validationMessage,this.formControlController.setValidity(t),this.validationInput.hidden=!0,clearTimeout(this.validationTimeout),t||(this.validationInput.hidden=!1,this.validationInput.reportValidity(),this.validationTimeout=setTimeout(()=>this.validationInput.hidden=!0,1e4)),t}setCustomValidity(t=""){this.customValidityMessage=t,this.errorMessage=t,this.validationInput.setCustomValidity(t),this.formControlController.updateValidity()}focus(t){let r=this.getAllRadios(),n=r.find(l=>l.checked),a=r.find(l=>!l.disabled),s=n||a;s&&s.focus(t)}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,p=u`
3750
+ `}};_t.styles=[z(Se),z(J_)],c([F(".rating")],_t.prototype,"rating",2),c([F(".rating__symbols")],_t.prototype,"symbols",2),c([D()],_t.prototype,"hoverValue",2),c([D()],_t.prototype,"isHovering",2),c([d()],_t.prototype,"label",2),c([d({attribute:"help-text"})],_t.prototype,"helpText",2),c([d()],_t.prototype,"name",2),c([d({type:Number})],_t.prototype,"value",2),c([Ce()],_t.prototype,"defaultValue",2),c([d({type:Number})],_t.prototype,"max",2),c([d({type:Number})],_t.prototype,"precision",2),c([d({type:Boolean})],_t.prototype,"readonly",2),c([d({type:Boolean})],_t.prototype,"disabled",2),c([d({type:Boolean})],_t.prototype,"preview",2),c([d({})],_t.prototype,"size",2),c([d()],_t.prototype,"getSymbol",2);var dL=_t;_t.define("zn-rating");var Z_=_`@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)}:host([horizontal]) .form-control-input{display:flex;flex-wrap:wrap;-moz-column-gap:var(--zn-spacing-2x-large);column-gap:var(--zn-spacing-2x-large);row-gap:var(--zn-spacing-small)}:host([contained]) .form-control--has-label .form-control-input{margin-top:var(--zn-spacing-medium)}:host([horizontal][contained]) .form-control-input{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,var(--zn-radio-group-column-width,152px)),1fr));align-items:stretch;gap:var(--zn-spacing-small)}::slotted(zn-radio){margin-top:var(--zn-spacing-medium)}::slotted(zn-radio[horizontal]),::slotted(zn-radio[contained]){margin-top:var(--zn-spacing-small)}::slotted(zn-radio[horizontal][contained]){margin-top:0;height:100%}:host([horizontal][contained][wrap]) .form-control-input{display:flex;flex-wrap:wrap;align-items:stretch;gap:var(--zn-base-gap)}:host([wrap]) ::slotted(zn-radio[horizontal][contained]){flex:1 1 var(--zn-radio-group-column-width,152px);min-width:0;height:auto}.form-control{position:relative;border:none;padding:0;margin:0}.form-control__label{padding:0}.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}`;var ct=class extends k{constructor(){super(...arguments);this.formControlController=new re(this);this.hasSlotController=new Y(this,"help-text","label");this.customValidityMessage="";this.errorMessage="";this.defaultValue="";this.label="";this.labelTooltip="";this.helpText="";this.name="";this.value="";this.size="medium";this.horizontal=!1;this.contained=!1;this.square=!1;this.wrap=!1;this.form="";this.required=!1}get validity(){let t=this.required&&!this.value;return this.customValidityMessage!==""?hd:t?ud:pt}get validationMessage(){let t=this.required&&!this.value;return this.customValidityMessage!==""?this.customValidityMessage:t?this.validationInput.validationMessage:""}connectedCallback(){super.connectedCallback(),this.defaultValue=this.value}firstUpdated(t){super.firstUpdated(t),this.formControlController.updateValidity()}getAllRadios(){return[...this.querySelectorAll("zn-radio")]}handleRadioClick(t){let r=t.target.closest("zn-radio"),n=this.getAllRadios();!r||r.disabled||(this.value=r.value,n.forEach(a=>a.checked=a===r))}handleKeyDown(t){if(!["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"," "].includes(t.key))return;let r=this.getAllRadios().filter(l=>!l.disabled),n=r.find(l=>l.checked)??r[0],a=t.key===" "?0:["ArrowUp","ArrowLeft"].includes(t.key)?-1:1,s=r.indexOf(n)+a;s<0&&(s=r.length-1),s>r.length-1&&(s=0),this.getAllRadios().forEach(l=>{l.checked=!1}),this.value=r[s].value,r[s].checked=!0,r[s].shadowRoot.querySelector("button").focus(),t.preventDefault()}handleLabelClick(){this.focus()}handleInvalid(t){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(t)}async syncRadioElements(){let t=this.getAllRadios();await Promise.all(t.map(async r=>{await r.updateComplete,r.checked=r.value===this.value,r.size=this.size,r.horizontal=this.horizontal,r.contained=this.contained,this.square&&(r.square=!0)})),t.length>0&&!t.some(r=>r.checked)&&t[0].setAttribute("tabindex","0")}syncRadios(){if(customElements.get("zn-radio")){this.syncRadioElements();return}customElements.get("zn-radio")?this.syncRadioElements():customElements.whenDefined("zn-radio").then(()=>this.syncRadios())}updateCheckedRadio(){this.getAllRadios().forEach(r=>r.checked=r.value===this.value),this.formControlController.setValidity(this.validity?.valid)}handleSizeChange(){this.syncRadios()}handleValueChange(){this.hasUpdated&&this.updateCheckedRadio()}checkValidity(){let t=this.required&&!this.value,r=this.customValidityMessage!=="";return t||r?(this.formControlController.emitInvalidEvent(),!1):!0}getForm(){return this.formControlController.getForm()}reportValidity(){let t=this.validity?.valid;return this.errorMessage=this.customValidityMessage||t?"":this.validationInput.validationMessage,this.formControlController.setValidity(t),this.validationInput.hidden=!0,clearTimeout(this.validationTimeout),t||(this.validationInput.hidden=!1,this.validationInput.reportValidity(),this.validationTimeout=setTimeout(()=>this.validationInput.hidden=!0,1e4)),t}setCustomValidity(t=""){this.customValidityMessage=t,this.errorMessage=t,this.validationInput.setCustomValidity(t),this.formControlController.updateValidity()}focus(t){let r=this.getAllRadios(),n=r.find(l=>l.checked),a=r.find(l=>!l.disabled),s=n||a;s&&s.focus(t)}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,p=u`
3751
3751
  <slot @slotchange=${this.syncRadios} @click=${this.handleRadioClick} @keydown=${this.handleKeyDown}></slot>
3752
3752
  `;return u`
3753
3753
  <fieldset
@@ -3797,7 +3797,7 @@ ${Oa(this.code(i,t))}
3797
3797
  <slot name="help-text">${this.helpText}</slot>
3798
3798
  </div>
3799
3799
  </fieldset>
3800
- `}};ct.styles=[z(Se),z(Z_)],c([F("slot:not([name])")],ct.prototype,"defaultSlot",2),c([F(".radio-group__validation-input")],ct.prototype,"validationInput",2),c([R()],ct.prototype,"errorMessage",2),c([R()],ct.prototype,"defaultValue",2),c([d()],ct.prototype,"label",2),c([d({attribute:"label-tooltip"})],ct.prototype,"labelTooltip",2),c([d({attribute:"help-text"})],ct.prototype,"helpText",2),c([d()],ct.prototype,"name",2),c([d({reflect:!0})],ct.prototype,"value",2),c([d({reflect:!0})],ct.prototype,"size",2),c([d({type:Boolean,reflect:!0})],ct.prototype,"horizontal",2),c([d({type:Boolean,reflect:!0})],ct.prototype,"contained",2),c([d({type:Boolean,reflect:!0})],ct.prototype,"square",2),c([d({type:Boolean,reflect:!0})],ct.prototype,"wrap",2),c([d({reflect:!0})],ct.prototype,"form",2),c([d({type:Boolean,reflect:!0})],ct.prototype,"required",2),c([K("size",{waitUntilFirstUpdate:!0})],ct.prototype,"handleSizeChange",1),c([K("value")],ct.prototype,"handleValueChange",1);var pL=ct;ct.define("zn-radio-group");var e2=(o,i,t)=>{let r=new Map;for(let n=i;n<=t;n++)r.set(o[n],n);return r},Jo=yt(class extends rr{constructor(o){if(super(o),o.type!==lr.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=Gb(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=[]),p=[],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])p[g]=bo(n[f],a[g]),f++,g++;else if(l[b]===s[v])p[v]=bo(n[b],a[v]),b--,v--;else if(l[f]===s[v])p[v]=bo(n[f],a[v]),is(o,p[v+1],n[f]),f++,v--;else if(l[b]===s[g])p[g]=bo(n[b],a[g]),is(o,n[f],n[b]),b--,g++;else if(h===void 0&&(h=e2(s,g,v),m=e2(l,f,b)),h.has(l[f]))if(h.has(l[b])){let y=m.get(s[g]),S=y!==void 0?n[y]:null;if(S===null){let T=is(o,n[f]);bo(T,a[g]),p[g]=T}else p[g]=bo(S,a[g]),is(o,n[f],S),n[y]=null;g++}else wd(n[b]),b--;else wd(n[f]),f++;for(;g<=v;){let y=is(o,p[v+1]);bo(y,a[g]),p[g++]=y}for(;f<=b;){let y=n[f++];y!==null&&wd(y)}return this.ut=s,ns(o,p),vt}});var t2=_`@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 be=class extends k{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 Ht(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=Sn(s,"file.iconDrop",{dir:this.localize.dir()});yi(s,l.keyframes,l.options)}if(a){let l=Sn(a,"file.text.disappear",{dir:this.localize.dir()});await yi(a,l.keyframes,l.options)}if(this.handleFiles(r),a){let l=Sn(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((p,h)=>{h(new Error("No proper items found"))});let n=Array.from(t).map(p=>p.webkitGetAsEntry()).map(p=>this.getFilesFromEntry(p)),s=(await Promise.all(n)).flat(),l=new DataTransfer;return Array.from(s).forEach(p=>l.items.add(p)),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`
3800
+ `}};ct.styles=[z(Se),z(Z_)],c([F("slot:not([name])")],ct.prototype,"defaultSlot",2),c([F(".radio-group__validation-input")],ct.prototype,"validationInput",2),c([D()],ct.prototype,"errorMessage",2),c([D()],ct.prototype,"defaultValue",2),c([d()],ct.prototype,"label",2),c([d({attribute:"label-tooltip"})],ct.prototype,"labelTooltip",2),c([d({attribute:"help-text"})],ct.prototype,"helpText",2),c([d()],ct.prototype,"name",2),c([d({reflect:!0})],ct.prototype,"value",2),c([d({reflect:!0})],ct.prototype,"size",2),c([d({type:Boolean,reflect:!0})],ct.prototype,"horizontal",2),c([d({type:Boolean,reflect:!0})],ct.prototype,"contained",2),c([d({type:Boolean,reflect:!0})],ct.prototype,"square",2),c([d({type:Boolean,reflect:!0})],ct.prototype,"wrap",2),c([d({reflect:!0})],ct.prototype,"form",2),c([d({type:Boolean,reflect:!0})],ct.prototype,"required",2),c([K("size",{waitUntilFirstUpdate:!0})],ct.prototype,"handleSizeChange",1),c([K("value")],ct.prototype,"handleValueChange",1);var pL=ct;ct.define("zn-radio-group");var e2=(o,i,t)=>{let r=new Map;for(let n=i;n<=t;n++)r.set(o[n],n);return r},Jo=yt(class extends rr{constructor(o){if(super(o),o.type!==lr.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=Gb(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=[]),p=[],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])p[g]=bo(n[f],a[g]),f++,g++;else if(l[b]===s[v])p[v]=bo(n[b],a[v]),b--,v--;else if(l[f]===s[v])p[v]=bo(n[f],a[v]),is(o,p[v+1],n[f]),f++,v--;else if(l[b]===s[g])p[g]=bo(n[b],a[g]),is(o,n[f],n[b]),b--,g++;else if(h===void 0&&(h=e2(s,g,v),m=e2(l,f,b)),h.has(l[f]))if(h.has(l[b])){let y=m.get(s[g]),S=y!==void 0?n[y]:null;if(S===null){let T=is(o,n[f]);bo(T,a[g]),p[g]=T}else p[g]=bo(S,a[g]),is(o,n[f],S),n[y]=null;g++}else wd(n[b]),b--;else wd(n[f]),f++;for(;g<=v;){let y=is(o,p[v+1]);bo(y,a[g]),p[g++]=y}for(;f<=b;){let y=n[f++];y!==null&&wd(y)}return this.ut=s,ns(o,p),vt}});var t2=_`@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 be=class extends k{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 Ht(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=Sn(s,"file.iconDrop",{dir:this.localize.dir()});yi(s,l.keyframes,l.options)}if(a){let l=Sn(a,"file.text.disappear",{dir:this.localize.dir()});await yi(a,l.keyframes,l.options)}if(this.handleFiles(r),a){let l=Sn(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((p,h)=>{h(new Error("No proper items found"))});let n=Array.from(t).map(p=>p.webkitGetAsEntry()).map(p=>this.getFilesFromEntry(p)),s=(await Promise.all(n)).flat(),l=new DataTransfer;return Array.from(s).forEach(p=>l.items.add(p)),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`
3801
3801
  ${t?u`
3802
3802
  <div class="file_wrapper">
3803
3803
  ${Jo(t,a=>u`
@@ -3931,7 +3931,7 @@ ${Oa(this.code(i,t))}
3931
3931
  type="file"
3932
3932
  tabindex="-1"
3933
3933
  ?webkitdirectory=${this.webkitdirectory}>
3934
- </div>`}};be.styles=[z(Se),z(t2)],be.dependencies={"zn-dialog":ka},c([R()],be.prototype,"userIsDragging",2),c([R()],be.prototype,"fileObjectUrl",2),c([F(".input__control")],be.prototype,"input",2),c([F(".button")],be.prototype,"button",2),c([F(".droparea")],be.prototype,"dropareaWrapper",2),c([F(".droparea__icon")],be.prototype,"dropareaIcon",2),c([F(".input__value")],be.prototype,"inputChosen",2),c([F(".clear-confirm")],be.prototype,"clearConfirmDialog",2),c([d({type:Object})],be.prototype,"files",1),c([d({type:String})],be.prototype,"name",2),c([d({type:String})],be.prototype,"value",1),c([Ce()],be.prototype,"defaultValue",2),c([d({reflect:!0})],be.prototype,"size",2),c([d()],be.prototype,"label",2),c([d({type:Boolean})],be.prototype,"clearable",2),c([d({attribute:"help-text"})],be.prototype,"helpText",2),c([d({reflect:!0,type:Boolean})],be.prototype,"disabled",2),c([d({type:Boolean})],be.prototype,"droparea",2),c([d({type:String})],be.prototype,"accept",2),c([d({type:String})],be.prototype,"capture",2),c([d({reflect:!0,type:Boolean})],be.prototype,"multiple",2),c([d({reflect:!0,type:Boolean})],be.prototype,"webkitdirectory",2),c([d({reflect:!0})],be.prototype,"form",2),c([d({reflect:!0,type:Boolean})],be.prototype,"required",2),c([d({attribute:"hide-value",type:Boolean})],be.prototype,"hideValue",2),c([d()],be.prototype,"src",2),c([d({type:Boolean,attribute:"trigger-submit"})],be.prototype,"triggerSubmit",2),c([d({type:Boolean,attribute:"show-link"})],be.prototype,"showLink",2),c([d({attribute:"upload-url"})],be.prototype,"uploadUrl",2),c([R()],be.prototype,"uploading",2),c([K("disabled",{waitUntilFirstUpdate:!0})],be.prototype,"handleDisabledChange",1),c([K("value",{waitUntilFirstUpdate:!0})],be.prototype,"handleValueChange",1);Cn("file.iconDrop",{keyframes:[{scale:1},{scale:.7},{scale:1}],options:{duration:600,easing:"ease-out"}});Cn("file.text.disappear",{keyframes:[{opacity:1},{opacity:0,transform:"translateY(-40%)"}],options:{duration:300,easing:"cubic-bezier(0.45, 1.45, 0.8, 1)"}});Cn("file.text.appear",{keyframes:[{opacity:0,transform:"translateY(40%)"},{opacity:1}],options:{duration:300,easing:"cubic-bezier(0.45, 1.45, 0.8, 1)"}});var hL=be;be.define("zn-file");var r2=_`@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)}:host([horizontal]) .form-control-input{display:flex;flex-wrap:wrap;-moz-column-gap:var(--zn-spacing-2x-large);column-gap:var(--zn-spacing-2x-large);row-gap:var(--zn-spacing-small)}::slotted(zn-checkbox[horizontal]){flex-basis:20%;min-width:100px}:host([contained]) .form-control--has-label .form-control-input{margin-top:var(--zn-spacing-medium)}:host([horizontal][contained]) .form-control-input{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,var(--zn-checkbox-group-column-width,152px)),1fr));align-items:stretch;gap:var(--zn-spacing-small)}::slotted(zn-checkbox){margin-top:var(--zn-spacing-medium)}::slotted(zn-checkbox[horizontal]),::slotted(zn-checkbox[contained]){margin-top:var(--zn-spacing-small)}::slotted(zn-checkbox[horizontal][contained]){margin-top:0;height:100%}:host([horizontal][contained][wrap]) .form-control-input{display:flex;flex-wrap:wrap;align-items:stretch;gap:var(--zn-spacing-x-small)}:host([wrap]) ::slotted(zn-checkbox[horizontal][contained]){flex:1 1 var(--zn-checkbox-group-column-width,152px);min-width:0;height:auto}.form-control{position:relative;border:none;padding:0;margin:0}.form-control__label{padding:0}.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}`;var ft=class extends k{constructor(){super(...arguments);this.formControlController=new re(this);this.hasSlotController=new Y(this,"help-text","label");this.customValidityMessage="";this.errorMessage="";this.label="";this.labelTooltip="";this.helpText="";this.name="";this.value=[];this.size="medium";this.horizontal=!1;this.contained=!1;this.square=!1;this.wrap=!1;this.form="";this.required=!1}get validity(){let t=this.value.length>0,r=this.required&&!t;return this.customValidityMessage!==""?hd:r?ud:pt}get validationMessage(){let t=this.value.length>0,r=this.required&&!t;return this.customValidityMessage!==""?this.customValidityMessage:r?this.validationInput.validationMessage:""}connectedCallback(){super.connectedCallback(),this.addEventListenerToCheckboxes(),this.getValueFromCheckboxes()}firstUpdated(){this.updateCheckboxValidity(),this.formControlController.updateValidity()}getAllCheckboxes(){return[...this.querySelectorAll("zn-checkbox")]}handleCheckboxClick(t){t.currentTarget.disabled||(this.getValueFromCheckboxes(),this.updateCheckboxValidity(),this.emit("zn-change"),this.emit("zn-input"),t.stopPropagation())}handleInvalid(t){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(t)}async syncCheckboxElements(){let t=this.getAllCheckboxes();await Promise.all(t.map(async r=>{await r.updateComplete,r.size=this.size,r.horizontal=this.horizontal,this.square&&(r.square=!0),r.classList.add("groupedCheckbox"),t.some(a=>a.contained)?t.forEach(a=>{a.contained=!0}):r.contained=this.contained,this.getValueFromCheckboxes()}))}syncCheckboxes(){customElements.get("zn-checkbox")?this.syncCheckboxElements():customElements.whenDefined("zn-checkbox").then(()=>this.syncCheckboxes())}updateCheckboxValidity(){if(this.required){let t=this.value.length>0,r=this.getAllCheckboxes();this.updateComplete.then(()=>{let n=this.dataset?.userInvalid!==void 0;r.forEach(a=>{a.required=!t,n?a.classList.add("checkbox-user-invalid"):a.classList.remove("checkbox-user-invalid")})})}}getValueFromCheckboxes(){let t=this.getAllCheckboxes();this.value=t.filter(r=>r.checked).map(r=>r.value)}addEventListenerToCheckboxes(){this.getAllCheckboxes().forEach(r=>{r.addEventListener("zn-change",this.handleCheckboxClick.bind(this))})}handleSizeChange(){this.syncCheckboxes()}handleValueChange(){this.hasUpdated&&(this.getValueFromCheckboxes(),this.updateCheckboxValidity())}checkValidity(){let t=this.value.length>0,r=this.required&&!t,n=this.customValidityMessage!=="";return r||n?(this.formControlController.emitInvalidEvent(),!1):!0}getForm(){return this.formControlController.getForm()}reportValidity(){let t=this.validity?.valid;return this.errorMessage=this.customValidityMessage||t?"":this.validationInput.validationMessage,this.formControlController.setValidity(t),this.validationInput.hidden=!0,clearTimeout(this.validationTimeout),t||(this.validationInput.hidden=!1,this.validationInput.reportValidity(),this.validationTimeout=setTimeout(()=>this.validationInput.hidden=!0,1e4)),t}setCustomValidity(t=""){this.customValidityMessage=t,this.errorMessage=t,this.validationInput.setCustomValidity(t),this.formControlController.updateValidity()}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,p=u`
3934
+ </div>`}};be.styles=[z(Se),z(t2)],be.dependencies={"zn-dialog":ka},c([D()],be.prototype,"userIsDragging",2),c([D()],be.prototype,"fileObjectUrl",2),c([F(".input__control")],be.prototype,"input",2),c([F(".button")],be.prototype,"button",2),c([F(".droparea")],be.prototype,"dropareaWrapper",2),c([F(".droparea__icon")],be.prototype,"dropareaIcon",2),c([F(".input__value")],be.prototype,"inputChosen",2),c([F(".clear-confirm")],be.prototype,"clearConfirmDialog",2),c([d({type:Object})],be.prototype,"files",1),c([d({type:String})],be.prototype,"name",2),c([d({type:String})],be.prototype,"value",1),c([Ce()],be.prototype,"defaultValue",2),c([d({reflect:!0})],be.prototype,"size",2),c([d()],be.prototype,"label",2),c([d({type:Boolean})],be.prototype,"clearable",2),c([d({attribute:"help-text"})],be.prototype,"helpText",2),c([d({reflect:!0,type:Boolean})],be.prototype,"disabled",2),c([d({type:Boolean})],be.prototype,"droparea",2),c([d({type:String})],be.prototype,"accept",2),c([d({type:String})],be.prototype,"capture",2),c([d({reflect:!0,type:Boolean})],be.prototype,"multiple",2),c([d({reflect:!0,type:Boolean})],be.prototype,"webkitdirectory",2),c([d({reflect:!0})],be.prototype,"form",2),c([d({reflect:!0,type:Boolean})],be.prototype,"required",2),c([d({attribute:"hide-value",type:Boolean})],be.prototype,"hideValue",2),c([d()],be.prototype,"src",2),c([d({type:Boolean,attribute:"trigger-submit"})],be.prototype,"triggerSubmit",2),c([d({type:Boolean,attribute:"show-link"})],be.prototype,"showLink",2),c([d({attribute:"upload-url"})],be.prototype,"uploadUrl",2),c([D()],be.prototype,"uploading",2),c([K("disabled",{waitUntilFirstUpdate:!0})],be.prototype,"handleDisabledChange",1),c([K("value",{waitUntilFirstUpdate:!0})],be.prototype,"handleValueChange",1);Cn("file.iconDrop",{keyframes:[{scale:1},{scale:.7},{scale:1}],options:{duration:600,easing:"ease-out"}});Cn("file.text.disappear",{keyframes:[{opacity:1},{opacity:0,transform:"translateY(-40%)"}],options:{duration:300,easing:"cubic-bezier(0.45, 1.45, 0.8, 1)"}});Cn("file.text.appear",{keyframes:[{opacity:0,transform:"translateY(40%)"},{opacity:1}],options:{duration:300,easing:"cubic-bezier(0.45, 1.45, 0.8, 1)"}});var hL=be;be.define("zn-file");var r2=_`@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)}:host([horizontal]) .form-control-input{display:flex;flex-wrap:wrap;-moz-column-gap:var(--zn-spacing-2x-large);column-gap:var(--zn-spacing-2x-large);row-gap:var(--zn-spacing-small)}::slotted(zn-checkbox[horizontal]){flex-basis:20%;min-width:100px}:host([contained]) .form-control--has-label .form-control-input{margin-top:var(--zn-spacing-medium)}:host([horizontal][contained]) .form-control-input{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,var(--zn-checkbox-group-column-width,152px)),1fr));align-items:stretch;gap:var(--zn-spacing-small)}::slotted(zn-checkbox){margin-top:var(--zn-spacing-medium)}::slotted(zn-checkbox[horizontal]),::slotted(zn-checkbox[contained]){margin-top:var(--zn-spacing-small)}::slotted(zn-checkbox[horizontal][contained]){margin-top:0;height:100%}:host([horizontal][contained][wrap]) .form-control-input{display:flex;flex-wrap:wrap;align-items:stretch;gap:var(--zn-spacing-x-small)}:host([wrap]) ::slotted(zn-checkbox[horizontal][contained]){flex:1 1 var(--zn-checkbox-group-column-width,152px);min-width:0;height:auto}.form-control{position:relative;border:none;padding:0;margin:0}.form-control__label{padding:0}.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}`;var ft=class extends k{constructor(){super(...arguments);this.formControlController=new re(this);this.hasSlotController=new Y(this,"help-text","label");this.customValidityMessage="";this.errorMessage="";this.label="";this.labelTooltip="";this.helpText="";this.name="";this.value=[];this.size="medium";this.horizontal=!1;this.contained=!1;this.square=!1;this.wrap=!1;this.form="";this.required=!1}get validity(){let t=this.value.length>0,r=this.required&&!t;return this.customValidityMessage!==""?hd:r?ud:pt}get validationMessage(){let t=this.value.length>0,r=this.required&&!t;return this.customValidityMessage!==""?this.customValidityMessage:r?this.validationInput.validationMessage:""}connectedCallback(){super.connectedCallback(),this.addEventListenerToCheckboxes(),this.getValueFromCheckboxes()}firstUpdated(){this.updateCheckboxValidity(),this.formControlController.updateValidity()}getAllCheckboxes(){return[...this.querySelectorAll("zn-checkbox")]}handleCheckboxClick(t){t.currentTarget.disabled||(this.getValueFromCheckboxes(),this.updateCheckboxValidity(),this.emit("zn-change"),this.emit("zn-input"),t.stopPropagation())}handleInvalid(t){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(t)}async syncCheckboxElements(){let t=this.getAllCheckboxes();await Promise.all(t.map(async r=>{await r.updateComplete,r.size=this.size,r.horizontal=this.horizontal,this.square&&(r.square=!0),r.classList.add("groupedCheckbox"),t.some(a=>a.contained)?t.forEach(a=>{a.contained=!0}):r.contained=this.contained,this.getValueFromCheckboxes()}))}syncCheckboxes(){customElements.get("zn-checkbox")?this.syncCheckboxElements():customElements.whenDefined("zn-checkbox").then(()=>this.syncCheckboxes())}updateCheckboxValidity(){if(this.required){let t=this.value.length>0,r=this.getAllCheckboxes();this.updateComplete.then(()=>{let n=this.dataset?.userInvalid!==void 0;r.forEach(a=>{a.required=!t,n?a.classList.add("checkbox-user-invalid"):a.classList.remove("checkbox-user-invalid")})})}}getValueFromCheckboxes(){let t=this.getAllCheckboxes();this.value=t.filter(r=>r.checked).map(r=>r.value)}addEventListenerToCheckboxes(){this.getAllCheckboxes().forEach(r=>{r.addEventListener("zn-change",this.handleCheckboxClick.bind(this))})}handleSizeChange(){this.syncCheckboxes()}handleValueChange(){this.hasUpdated&&(this.getValueFromCheckboxes(),this.updateCheckboxValidity())}checkValidity(){let t=this.value.length>0,r=this.required&&!t,n=this.customValidityMessage!=="";return r||n?(this.formControlController.emitInvalidEvent(),!1):!0}getForm(){return this.formControlController.getForm()}reportValidity(){let t=this.validity?.valid;return this.errorMessage=this.customValidityMessage||t?"":this.validationInput.validationMessage,this.formControlController.setValidity(t),this.validationInput.hidden=!0,clearTimeout(this.validationTimeout),t||(this.validationInput.hidden=!1,this.validationInput.reportValidity(),this.validationTimeout=setTimeout(()=>this.validationInput.hidden=!0,1e4)),t}setCustomValidity(t=""){this.customValidityMessage=t,this.errorMessage=t,this.validationInput.setCustomValidity(t),this.formControlController.updateValidity()}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,p=u`
3935
3935
  <slot @slotchange=${this.syncCheckboxes}></slot> `;return u`
3936
3936
  <fieldset
3937
3937
  part="form-control"
@@ -3979,7 +3979,7 @@ ${Oa(this.code(i,t))}
3979
3979
  <slot name="help-text">${this.helpText}</slot>
3980
3980
  </div>
3981
3981
  </fieldset>
3982
- `}};ft.styles=[z(Se),z(r2)],c([F("slot:not([name])")],ft.prototype,"defaultSlot",2),c([F(".checkbox-group__validation-input")],ft.prototype,"validationInput",2),c([R()],ft.prototype,"errorMessage",2),c([d()],ft.prototype,"label",2),c([d({attribute:"label-tooltip"})],ft.prototype,"labelTooltip",2),c([d({attribute:"help-text"})],ft.prototype,"helpText",2),c([d()],ft.prototype,"name",2),c([d({type:Array,reflect:!0})],ft.prototype,"value",2),c([d({reflect:!0})],ft.prototype,"size",2),c([d({type:Boolean,reflect:!0})],ft.prototype,"horizontal",2),c([d({type:Boolean,reflect:!0})],ft.prototype,"contained",2),c([d({type:Boolean,reflect:!0})],ft.prototype,"square",2),c([d({type:Boolean,reflect:!0})],ft.prototype,"wrap",2),c([d({reflect:!0})],ft.prototype,"form",2),c([d({type:Boolean,reflect:!0})],ft.prototype,"required",2),c([K("size",{waitUntilFirstUpdate:!0})],ft.prototype,"handleSizeChange",1),c([K("value")],ft.prototype,"handleValueChange",1);var uL=ft;ft.define("zn-checkbox-group");var i2=_`@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;container-type:inline-size;--zn-item-label-max-width:450px}.item{display:flex;flex-direction:row;padding:0 var(--zn-spacing-medium);gap:var(--zn-spacing-2x-small);min-height:35px}@container (max-width:767px){.item{--zn-item-label-max-width:220px}}@container (max-width:479px){.item{--zn-item-label-max-width:180px}}@container (max-width:359px){.item{flex-direction:column;align-items:baseline}}.item--has-icon .item__icon{position:relative;line-height:var(--zn-line-height-loose);display:flex;justify-content:center;margin-right:var(--zn-spacing-small);color:rgb(var(--zn-text-heading))}.item--align-end .item__content-inner{text-align:right}.item--align-center{align-items:center}.item__header{display:flex;align-items:center}.item__header .item__caption{width:unset;max-width:unset}.item__headings{display:flex;flex-direction:column;flex-shrink:0}.item--with-content .item__headings{max-width:45%}@container (max-width:359px){.item--with-content .item__headings{max-width:unset}}.item--with-content .item__headings{width:var(--zn-item-label-max-width)}.item__content{width:100%;display:flex;justify-content:space-between;line-height:var(--zn-line-height-loose)}.item__content-inner{width:100%}.item__content-inner ::slotted(a){color:rgb(var(--zn-primary)) !important}.item__content-inner ::slotted(zn-icon){vertical-align:middle;margin-right:var(--zn-spacing-2x-small)}.item__caption{font-weight:500;color:rgb(var(--zn-text-heading));line-height:var(--zn-line-height-loose);width:100%;flex-shrink:0}.item__caption--has-help{display:inline-flex;align-items:center;gap:var(--zn-spacing-2x-small)}.item__caption--required::after{content:var(--zn-input-required-content);margin-inline-start:var(--zn-input-required-content-offset);color:var(--zn-input-required-content-color)}.item__help-tooltip{color:var(--zn-color-neutral-700);font-size:var(--zn-font-size-small)}.item__description{display:block;font-weight:400;margin:var(--zn-spacing-2x-small) 0 0;font-size:var(--zn-font-size-small);color:rgb(var(--zn-text-color))}.item__action-wrapper{display:inline-block;align-content:center}.item__actions{margin-left:auto;display:flex;gap:10px;flex-direction:row}.item--small.item{padding:var(--zn-spacing-x-small)}.item--small .item__caption,.item--small .item__content-inner{font-size:var(--zn-font-size-small)}@container (max-width:359px){.item--small{gap:var(--zn-spacing-2x-small)}}.item--stacked{flex-direction:column;align-items:baseline;gap:var(--zn-spacing-2x-small)}.item--edit-on-hover ::slotted(zn-inline-edit::part('actions')){display:none}.item--edit-on-hover .item__actions{display:none}.item--edit-on-hover:hover ::slotted(zn-inline-edit::part('actions')){display:flex}.item--edit-on-hover:hover .item__actions{display:flex}.item--inline{gap:var(--zn-spacing-small)}.item--inline .item__header{width:unset;max-width:unset}.item--inline .item__icon{margin-right:0}.item--inline .item__caption{width:unset;max-width:unset}.item--inline .item__headings{width:unset;max-width:unset}.item--inline .item__description{margin:0}@container (max-width:359px){.item--inline{flex-direction:row;align-items:center;gap:var(--zn-spacing-small)}}.item--no-padding{padding:0 !important}.item--grid{display:grid;grid-template-columns:1fr 1fr}`;var Tt=class extends k{constructor(){super(...arguments);this.size="medium"}connectedCallback(){super.connectedCallback(),this.setAttribute("role","listitem"),this.flush&&(this.noPadding=!0)}updated(t){super.updated(t);let r=this.querySelector("zn-inline-edit");r&&r.setAttribute("size",this.size),this.shadowRoot?.querySelector(".item")?.classList.toggle("item--with-content",this._hasContent())}_hasContent(){return(this.querySelectorAll(":scope > :not([slot])")?.length||0)>0||this.innerText.length>0||!(this.value===void 0||this.value===null)}_hasRequiredSlot(){let t=this.querySelectorAll(":scope > *:not([slot])");return Array.from(t).some(r=>r.hasAttribute&&r.hasAttribute("required"))}render(){let t=this.icon&&this.icon.length>0,r=this.helpTooltip?.length>0,n=u`
3982
+ `}};ft.styles=[z(Se),z(r2)],c([F("slot:not([name])")],ft.prototype,"defaultSlot",2),c([F(".checkbox-group__validation-input")],ft.prototype,"validationInput",2),c([D()],ft.prototype,"errorMessage",2),c([d()],ft.prototype,"label",2),c([d({attribute:"label-tooltip"})],ft.prototype,"labelTooltip",2),c([d({attribute:"help-text"})],ft.prototype,"helpText",2),c([d()],ft.prototype,"name",2),c([d({type:Array,reflect:!0})],ft.prototype,"value",2),c([d({reflect:!0})],ft.prototype,"size",2),c([d({type:Boolean,reflect:!0})],ft.prototype,"horizontal",2),c([d({type:Boolean,reflect:!0})],ft.prototype,"contained",2),c([d({type:Boolean,reflect:!0})],ft.prototype,"square",2),c([d({type:Boolean,reflect:!0})],ft.prototype,"wrap",2),c([d({reflect:!0})],ft.prototype,"form",2),c([d({type:Boolean,reflect:!0})],ft.prototype,"required",2),c([K("size",{waitUntilFirstUpdate:!0})],ft.prototype,"handleSizeChange",1),c([K("value")],ft.prototype,"handleValueChange",1);var uL=ft;ft.define("zn-checkbox-group");var i2=_`@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;container-type:inline-size;--zn-item-label-max-width:450px}.item{display:flex;flex-direction:row;padding:0 var(--zn-spacing-medium);gap:var(--zn-spacing-2x-small);min-height:35px}@container (max-width:767px){.item{--zn-item-label-max-width:220px}}@container (max-width:479px){.item{--zn-item-label-max-width:180px}}@container (max-width:359px){.item{flex-direction:column;align-items:baseline}}.item--has-icon .item__icon{position:relative;line-height:var(--zn-line-height-loose);display:flex;justify-content:center;margin-right:var(--zn-spacing-small);color:rgb(var(--zn-text-heading))}.item--align-end .item__content-inner{text-align:right}.item--align-center{align-items:center}.item__header{display:flex;align-items:center}.item__header .item__caption{width:unset;max-width:unset}.item__headings{display:flex;flex-direction:column;flex-shrink:0}.item--with-content .item__headings{max-width:45%}@container (max-width:359px){.item--with-content .item__headings{max-width:unset}}.item--with-content .item__headings{width:var(--zn-item-label-max-width)}.item__content{width:100%;display:flex;justify-content:space-between;line-height:var(--zn-line-height-loose)}.item__content-inner{width:100%}.item__content-inner ::slotted(a){color:rgb(var(--zn-primary)) !important}.item__content-inner ::slotted(zn-icon){vertical-align:middle;margin-right:var(--zn-spacing-2x-small)}.item__caption{font-weight:500;color:rgb(var(--zn-text-heading));line-height:var(--zn-line-height-loose);width:100%;flex-shrink:0}.item__caption--has-help{display:inline-flex;align-items:center;gap:var(--zn-spacing-2x-small)}.item__caption--required::after{content:var(--zn-input-required-content);margin-inline-start:var(--zn-input-required-content-offset);color:var(--zn-input-required-content-color)}.item__help-tooltip{color:var(--zn-color-neutral-700);font-size:var(--zn-font-size-small)}.item__description{display:block;font-weight:400;margin:var(--zn-spacing-2x-small) 0 0;font-size:var(--zn-font-size-small);color:rgb(var(--zn-text-color))}.item__action-wrapper{display:inline-block;align-content:center}.item__actions{margin-left:auto;display:flex;gap:10px;flex-direction:row}.item--small.item{padding:var(--zn-spacing-x-small)}.item--small .item__caption,.item--small .item__content-inner{font-size:var(--zn-font-size-small)}@container (max-width:359px){.item--small{gap:var(--zn-spacing-2x-small)}}.item--stacked{flex-direction:column;align-items:baseline;gap:var(--zn-spacing-2x-small)}.item--edit-on-hover ::slotted(zn-inline-edit::part('actions')){display:none}.item--edit-on-hover .item__actions{display:none}.item--edit-on-hover:hover ::slotted(zn-inline-edit::part('actions')){display:flex}.item--edit-on-hover:hover .item__actions{display:flex}.item--inline{gap:var(--zn-spacing-small)}.item--inline .item__header{width:unset;max-width:unset}.item--inline .item__icon{margin-right:0}.item--inline .item__caption{width:unset;max-width:unset}.item--inline .item__headings{width:unset;max-width:unset}.item--inline .item__description{margin:0}@container (max-width:359px){.item--inline{flex-direction:row;align-items:center;gap:var(--zn-spacing-small)}}.item--no-padding{padding:0 !important}.item--grid{display:grid;grid-template-columns:1fr 1fr}`;var Tt=class extends k{constructor(){super(...arguments);this.size="medium"}connectedCallback(){super.connectedCallback(),this.setAttribute("role","listitem"),this.flush&&(this.noPadding=!0)}updated(t){super.updated(t);let r=this.querySelector("zn-inline-edit");r&&r.setAttribute("size",this.size),this.shadowRoot?.querySelector(".item")?.classList.toggle("item--with-content",this._hasContent())}_hasContent(){return(this.querySelectorAll(":scope > :not([slot])")?.length||0)>0||this.innerText.length>0||!(this.value===void 0||this.value===null)}_hasRequiredSlot(){let t=this.querySelectorAll(":scope > *:not([slot])");return Array.from(t).some(r=>r.hasAttribute&&r.hasAttribute("required"))}render(){let t=this.icon&&this.icon.length>0,r=this.helpTooltip?.length>0,n=u`
3983
3983
  <div class="item__headings">
3984
3984
  <div class="${M({item__caption:!0,"item__caption--required":this._hasRequiredSlot(),"item__caption--has-help":r})}" part="caption">${this.caption}
3985
3985
  ${r?u`
@@ -4042,7 +4042,7 @@ ${Oa(this.code(i,t))}
4042
4042
  slot="prefix">${a.prefix}</span>`:""}
4043
4043
  ${this.iconOnly?void 0:a.value}
4044
4044
  </zn-option>`)}
4045
- </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]:"")}};qe.styles=z(f2),qe.dependencies={"zn-select":Be,"zn-option":ot},c([F("#select")],qe.prototype,"select",2),c([d()],qe.prototype,"name",2),c([d({converter:{fromAttribute:t=>t||"",toAttribute:t=>Array.isArray(t)?t.join(","):t||""}})],qe.prototype,"value",2),c([Ce()],qe.prototype,"defaultValue",2),c([d()],qe.prototype,"provider",2),c([d({attribute:"icon-position"})],qe.prototype,"iconPosition",2),c([d({attribute:"filter",converter:{fromAttribute:t=>t.split(","),toAttribute:t=>t.join(",")}})],qe.prototype,"filter",2),c([d({reflect:!0})],qe.prototype,"size",2),c([d({type:Boolean})],qe.prototype,"clearable",2),c([d({type:Boolean,attribute:"allow-all"})],qe.prototype,"allowAll",2),c([d({type:Boolean,attribute:"allow-common"})],qe.prototype,"allowCommon",2),c([d()],qe.prototype,"label",2),c([d({attribute:"label-tooltip"})],qe.prototype,"labelTooltip",2),c([d({attribute:"context-note"})],qe.prototype,"contextNote",2),c([d({reflect:!0})],qe.prototype,"placement",2),c([d({attribute:"help-text"})],qe.prototype,"helpText",2),c([d({type:Boolean,reflect:!0})],qe.prototype,"required",2),c([d({type:Boolean,reflect:!0})],qe.prototype,"disabled",2),c([d({attribute:"icon-only",type:Boolean,reflect:!0})],qe.prototype,"iconOnly",2),c([d({type:Boolean})],qe.prototype,"multiple",2),c([d({attribute:"select-first",type:Boolean})],qe.prototype,"selectFirst",2),c([d()],qe.prototype,"distinct",2),c([d()],qe.prototype,"conditional",2),c([K("value",{waitUntilFirstUpdate:!0})],qe.prototype,"handleValueChange",1);var CL=qe;qe.define("zn-data-select");var g2=_`@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 k{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`
4045
+ </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]:"")}};qe.styles=z(f2),qe.dependencies={"zn-select":Be,"zn-option":at},c([F("#select")],qe.prototype,"select",2),c([d()],qe.prototype,"name",2),c([d({converter:{fromAttribute:t=>t||"",toAttribute:t=>Array.isArray(t)?t.join(","):t||""}})],qe.prototype,"value",2),c([Ce()],qe.prototype,"defaultValue",2),c([d()],qe.prototype,"provider",2),c([d({attribute:"icon-position"})],qe.prototype,"iconPosition",2),c([d({attribute:"filter",converter:{fromAttribute:t=>t.split(","),toAttribute:t=>t.join(",")}})],qe.prototype,"filter",2),c([d({reflect:!0})],qe.prototype,"size",2),c([d({type:Boolean})],qe.prototype,"clearable",2),c([d({type:Boolean,attribute:"allow-all"})],qe.prototype,"allowAll",2),c([d({type:Boolean,attribute:"allow-common"})],qe.prototype,"allowCommon",2),c([d()],qe.prototype,"label",2),c([d({attribute:"label-tooltip"})],qe.prototype,"labelTooltip",2),c([d({attribute:"context-note"})],qe.prototype,"contextNote",2),c([d({reflect:!0})],qe.prototype,"placement",2),c([d({attribute:"help-text"})],qe.prototype,"helpText",2),c([d({type:Boolean,reflect:!0})],qe.prototype,"required",2),c([d({type:Boolean,reflect:!0})],qe.prototype,"disabled",2),c([d({attribute:"icon-only",type:Boolean,reflect:!0})],qe.prototype,"iconOnly",2),c([d({type:Boolean})],qe.prototype,"multiple",2),c([d({attribute:"select-first",type:Boolean})],qe.prototype,"selectFirst",2),c([d()],qe.prototype,"distinct",2),c([d()],qe.prototype,"conditional",2),c([K("value",{waitUntilFirstUpdate:!0})],qe.prototype,"handleValueChange",1);var CL=qe;qe.define("zn-data-select");var g2=_`@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 k{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`
4046
4046
  <zn-select id="select"
4047
4047
  placement="bottom-start"
4048
4048
  label="${this.label}"
@@ -4062,7 +4062,7 @@ ${Oa(this.code(i,t))}
4062
4062
  <div slot="prefix" class="color-swatch color-swatch--${t.toLowerCase()}"></div>
4063
4063
  ${t}
4064
4064
  </zn-option>`)}
4065
- </zn-select>`}};yr.styles=z(g2),yr.dependencies={"zn-select":Be,"zn-option":ot},c([F("#select")],yr.prototype,"select",2),c([d()],yr.prototype,"name",2),c([d()],yr.prototype,"value",2),c([d()],yr.prototype,"label",2),c([d({attribute:"help-text"})],yr.prototype,"helpText",2),c([d({type:Boolean,reflect:!0})],yr.prototype,"disabled",2),c([d({type:Boolean,reflect:!0})],yr.prototype,"required",2),c([d({type:Boolean})],yr.prototype,"clearable",2),c([K("value",{waitUntilFirstUpdate:!0})],yr.prototype,"handleValueChange",1);var SL=yr;yr.define("zn-color-select");var b2=_`@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 zn-button{min-width:34px;flex-shrink:0}`;var Gr=class extends k{constructor(){super(...arguments);this.limit=-1;this.maxLevel=2;this.iconSize=20;this._buttons=[];this._originalButtons=[];this._resizeRafId=0;this.resizeObserver=new ht(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 p=this.shadowRoot?.querySelector(".button-menu__container");p&&(p.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 p=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 S of Array.from(g))S.name!=="icon"&&S.name!=="category"&&b.setAttribute(S.name,S.value);let v=m.button.getAttribute("icon");if(v){let S=document.createElement("zn-icon");S.setAttribute("src",v);let T=m.button.getAttribute("icon-library");T&&S.setAttribute("library",T),S.setAttribute("size","18"),S.setAttribute("slot","prefix"),b.appendChild(S)}let y=m.button.getAttribute("category")||"default";p.add(y),h[y]||(h[y]=[]),h[y].push(b)}}),p.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(p=>{p.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`
4065
+ </zn-select>`}};yr.styles=z(g2),yr.dependencies={"zn-select":Be,"zn-option":at},c([F("#select")],yr.prototype,"select",2),c([d()],yr.prototype,"name",2),c([d()],yr.prototype,"value",2),c([d()],yr.prototype,"label",2),c([d({attribute:"help-text"})],yr.prototype,"helpText",2),c([d({type:Boolean,reflect:!0})],yr.prototype,"disabled",2),c([d({type:Boolean,reflect:!0})],yr.prototype,"required",2),c([d({type:Boolean})],yr.prototype,"clearable",2),c([K("value",{waitUntilFirstUpdate:!0})],yr.prototype,"handleValueChange",1);var SL=yr;yr.define("zn-color-select");var b2=_`@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 zn-button{min-width:34px;flex-shrink:0}`;var Gr=class extends k{constructor(){super(...arguments);this.limit=-1;this.maxLevel=2;this.iconSize=20;this._buttons=[];this._originalButtons=[];this._resizeRafId=0;this.resizeObserver=new ht(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 p=this.shadowRoot?.querySelector(".button-menu__container");p&&(p.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 p=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 S of Array.from(g))S.name!=="icon"&&S.name!=="category"&&b.setAttribute(S.name,S.value);let v=m.button.getAttribute("icon");if(v){let S=document.createElement("zn-icon");S.setAttribute("src",v);let T=m.button.getAttribute("icon-library");T&&S.setAttribute("library",T),S.setAttribute("size","18"),S.setAttribute("slot","prefix"),b.appendChild(S)}let y=m.button.getAttribute("category")||"default";p.add(y),h[y]||(h[y]=[]),h[y].push(b)}}),p.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(p=>{p.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`
4066
4066
  <div class="${M({"button-menu":!0,"button-menu--no-padding":this.noPadding,"button-menu--no-gap":this.noGap})}">
4067
4067
  <div class="button-menu__container"></div>
4068
4068
  <zn-dropdown placement="bottom-end">
@@ -4174,7 +4174,7 @@ ${Oa(this.code(i,t))}
4174
4174
  </div>
4175
4175
  </div>
4176
4176
  </div>
4177
- `}};ho.styles=[ln.styles,z(w2)],c([d({type:Object})],ho.prototype,"navigation",2),c([R()],ho.prototype,"breadcrumb",2);var ML=ho;ho.define("zn-page-nav");var z2=_`@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{--zn-indicator-info:100,117,242;--zn-indicator-warning:255,136,0;--zn-indicator-error:237,84,109;--zn-indicator-success:43,192,145;--zn-indicator-disabled:220,220,220;--indicator-color:var(--zn-indicator-disabled);--indicator-alt-color:var(--zn-indicator-disabled);white-space:nowrap;display:inline-block}.indicator{display:inline-block;background-color:rgba(var(--indicator-color),0.7);border:1px solid rgb(var(--indicator-color));width:10px;height:10px;border-radius:50%}.indicator--info{--indicator-color:var(--zn-indicator-info)}.indicator--error{--indicator-color:var(--zn-indicator-error)}.indicator--warning{--indicator-color:var(--zn-indicator-warning)}.indicator--success{--indicator-color:var(--zn-indicator-success)}.indicator--disabled{--indicator-color:var(--zn-indicator-disabled)}.indicator--alt-info{--indicator-alt-color:var(--zn-indicator-info)}.indicator--alt-error{--indicator-alt-color:var(--zn-indicator-error)}.indicator--alt-warning{--indicator-alt-color:var(--zn-indicator-warning)}.indicator--alt-success{--indicator-alt-color:var(--zn-indicator-success)}.indicator--alt-disabled{--indicator-alt-color:var(--zn-indicator-disabled)}.indicator--glow{animation:indicator-glow 2s ease-in-out infinite}.indicator--alternate{animation:indicator-alternate 2s ease-in-out infinite}.indicator--alternate.indicator--glow{animation:indicator-alternate-glow 2s ease-in-out infinite}@keyframes indicator-glow{0%,100%{background-color:rgba(var(--indicator-color),0.5);box-shadow:0 0 1px 0 rgba(var(--indicator-color),0.1)}50%{background-color:rgba(var(--indicator-color),0.8);box-shadow:0 0 3px 1px rgba(var(--indicator-color),0.5)}}@keyframes indicator-alternate{0%,100%{background-color:rgba(var(--indicator-color),0.7);border-color:rgb(var(--indicator-color))}50%{background-color:rgba(var(--indicator-alt-color),0.7);border-color:rgb(var(--indicator-alt-color))}}@keyframes indicator-alternate-glow{0%,100%{background-color:rgba(var(--indicator-color),0.5);border-color:rgb(var(--indicator-color));box-shadow:0 0 1px 0 rgba(var(--indicator-color),0.1)}50%{background-color:rgba(var(--indicator-alt-color),0.8);border-color:rgb(var(--indicator-alt-color));box-shadow:0 0 4px 2px rgba(var(--indicator-alt-color),0.5)}}@media (prefers-reduced-motion:reduce){.indicator--glow{animation:none;box-shadow:0 0 4px 1px rgba(var(--indicator-color),0.6)}.indicator--alternate{animation:none;background:linear-gradient(90deg,rgb(var(--indicator-color)) 0 50%,rgb(var(--indicator-alt-color)) 50% 100%)}}`;var On=class extends k{constructor(){super(...arguments);this.type="info";this.glow=!1}render(){return u`
4177
+ `}};ho.styles=[ln.styles,z(w2)],c([d({type:Object})],ho.prototype,"navigation",2),c([D()],ho.prototype,"breadcrumb",2);var ML=ho;ho.define("zn-page-nav");var z2=_`@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{--zn-indicator-info:100,117,242;--zn-indicator-warning:255,136,0;--zn-indicator-error:237,84,109;--zn-indicator-success:43,192,145;--zn-indicator-disabled:220,220,220;--indicator-color:var(--zn-indicator-disabled);--indicator-alt-color:var(--zn-indicator-disabled);white-space:nowrap;display:inline-block}.indicator{display:inline-block;background-color:rgba(var(--indicator-color),0.7);border:1px solid rgb(var(--indicator-color));width:10px;height:10px;border-radius:50%}.indicator--info{--indicator-color:var(--zn-indicator-info)}.indicator--error{--indicator-color:var(--zn-indicator-error)}.indicator--warning{--indicator-color:var(--zn-indicator-warning)}.indicator--success{--indicator-color:var(--zn-indicator-success)}.indicator--disabled{--indicator-color:var(--zn-indicator-disabled)}.indicator--alt-info{--indicator-alt-color:var(--zn-indicator-info)}.indicator--alt-error{--indicator-alt-color:var(--zn-indicator-error)}.indicator--alt-warning{--indicator-alt-color:var(--zn-indicator-warning)}.indicator--alt-success{--indicator-alt-color:var(--zn-indicator-success)}.indicator--alt-disabled{--indicator-alt-color:var(--zn-indicator-disabled)}.indicator--glow{animation:indicator-glow 2s ease-in-out infinite}.indicator--alternate{animation:indicator-alternate 2s ease-in-out infinite}.indicator--alternate.indicator--glow{animation:indicator-alternate-glow 2s ease-in-out infinite}@keyframes indicator-glow{0%,100%{background-color:rgba(var(--indicator-color),0.5);box-shadow:0 0 1px 0 rgba(var(--indicator-color),0.1)}50%{background-color:rgba(var(--indicator-color),0.8);box-shadow:0 0 3px 1px rgba(var(--indicator-color),0.5)}}@keyframes indicator-alternate{0%,100%{background-color:rgba(var(--indicator-color),0.7);border-color:rgb(var(--indicator-color))}50%{background-color:rgba(var(--indicator-alt-color),0.7);border-color:rgb(var(--indicator-alt-color))}}@keyframes indicator-alternate-glow{0%,100%{background-color:rgba(var(--indicator-color),0.5);border-color:rgb(var(--indicator-color));box-shadow:0 0 1px 0 rgba(var(--indicator-color),0.1)}50%{background-color:rgba(var(--indicator-alt-color),0.8);border-color:rgb(var(--indicator-alt-color));box-shadow:0 0 4px 2px rgba(var(--indicator-alt-color),0.5)}}@media (prefers-reduced-motion:reduce){.indicator--glow{animation:none;box-shadow:0 0 4px 1px rgba(var(--indicator-color),0.6)}.indicator--alternate{animation:none;background:linear-gradient(90deg,rgb(var(--indicator-color)) 0 50%,rgb(var(--indicator-alt-color)) 50% 100%)}}`;var On=class extends k{constructor(){super(...arguments);this.type="info";this.glow=!1}render(){return u`
4178
4178
  <div class=${M({indicator:!0,"indicator--warning":this.type==="warning","indicator--error":this.type==="error","indicator--success":this.type==="success","indicator--info":this.type==="info","indicator--disabled":this.type==="disabled","indicator--alt-warning":this.altType==="warning","indicator--alt-error":this.altType==="error","indicator--alt-success":this.altType==="success","indicator--alt-info":this.altType==="info","indicator--alt-disabled":this.altType==="disabled","indicator--alternate":!!this.altType,"indicator--glow":this.glow})}>
4179
4179
  </div>
4180
4180
  `}};On.styles=z(z2),c([d()],On.prototype,"type",2),c([d({attribute:"alt-type"})],On.prototype,"altType",2),c([d({type:Boolean,reflect:!0})],On.prototype,"glow",2);var LL=On;On.define("zn-status-indicator");var _2=_`@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-button-group::part(base){justify-content:flex-start}`;var Wr=class extends k{constructor(){super(...arguments);this.formControlController=new re(this)}connectedCallback(){super.connectedCallback(),this.addEventListener("zn-menu-select",this.handleMenuItemClick),this.defaultValue=this.value}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("zn-menu-select",this.handleMenuItemClick)}handleMenuItemClick(t){this.dropdown&&(this.value=t.detail.value,this.dropdown.hide()),this.type==="submit"&&this.formControlController.submit()}handleTriggerClick(){this.value=this.defaultValue,this.type==="submit"&&this.formControlController.submit()}render(){return u`
@@ -4266,7 +4266,7 @@ ${Oa(this.code(i,t))}
4266
4266
  <slot slot="footer" name="footer" @slotchange="${this._handleSlotChange}"></slot>`:""}
4267
4267
  </div>
4268
4268
  `}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 p=new Set,h=l.querySelector("zn-tile"),m=(h?.caption??h?.getAttribute?.("caption")??"").trim();m&&p.add(m);let f=(l.getAttribute("download")||"").trim();f&&p.add(f);let b=l.getAttribute("href")||"";p.forEach(g=>{let v=(g||"").trim();if(!v)return;let y=v.includes("/")?v.split("/").pop():v,S=y.toLowerCase(),T=S.includes(".")?S.split(".").pop():"";if(T&&!s.has(T))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.split(`
4269
- `),s=null,l=!1,p="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),p=l||f.startsWith(">")?"reply":"text",f.startsWith("Sent from")&&(p="reply"),f.trim()===""&&s==="reply"&&(p="reply"),p==="reply"&&f.startsWith(">")&&(f=f.substring(1).trim()),s===p){if(r.length===0){r.push({lines:[f],type:p}),s=p;return}r[r.length-1].lines.push(f)}else r.push({lines:[f],type:p}),s=p})}return this._textRows=r,this._textRows}showReply(t){let n=t.target.nextElementSibling;n&&n.classList.toggle("hidden")}};Xt.styles=z(k2),c([d()],Xt.prototype,"time",2),c([d()],Xt.prototype,"sender",2),c([d()],Xt.prototype,"avatar",2),c([d()],Xt.prototype,"subject",2),c([d({attribute:"subject-placeholder"})],Xt.prototype,"subjectPlaceholder",2),c([d({type:Boolean,reflect:!0})],Xt.prototype,"outbound",2),c([d({type:Boolean,attribute:"no-collapse"})],Xt.prototype,"noCollapse",2),c([d({type:Boolean,reflect:!0})],Xt.prototype,"short",2),c([d({attribute:"default-display",reflect:!0})],Xt.prototype,"defaultDisplay",2),c([Ib({slot:"html",flatten:!0})],Xt.prototype,"htmlNodes",2),c([qb("iframe")],Xt.prototype,"iframe",2),c([R()],Xt.prototype,"attachmentCount",2);var IL=Xt;Xt.define("zn-content-block");var C2=_`@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 Zo=class extends k{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`
4269
+ `),s=null,l=!1,p="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),p=l||f.startsWith(">")?"reply":"text",f.startsWith("Sent from")&&(p="reply"),f.trim()===""&&s==="reply"&&(p="reply"),p==="reply"&&f.startsWith(">")&&(f=f.substring(1).trim()),s===p){if(r.length===0){r.push({lines:[f],type:p}),s=p;return}r[r.length-1].lines.push(f)}else r.push({lines:[f],type:p}),s=p})}return this._textRows=r,this._textRows}showReply(t){let n=t.target.nextElementSibling;n&&n.classList.toggle("hidden")}};Xt.styles=z(k2),c([d()],Xt.prototype,"time",2),c([d()],Xt.prototype,"sender",2),c([d()],Xt.prototype,"avatar",2),c([d()],Xt.prototype,"subject",2),c([d({attribute:"subject-placeholder"})],Xt.prototype,"subjectPlaceholder",2),c([d({type:Boolean,reflect:!0})],Xt.prototype,"outbound",2),c([d({type:Boolean,attribute:"no-collapse"})],Xt.prototype,"noCollapse",2),c([d({type:Boolean,reflect:!0})],Xt.prototype,"short",2),c([d({attribute:"default-display",reflect:!0})],Xt.prototype,"defaultDisplay",2),c([Ib({slot:"html",flatten:!0})],Xt.prototype,"htmlNodes",2),c([qb("iframe")],Xt.prototype,"iframe",2),c([D()],Xt.prototype,"attachmentCount",2);var IL=Xt;Xt.define("zn-content-block");var C2=_`@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 Zo=class extends k{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`
4270
4270
  <zn-button part="search-button"
4271
4271
  class="filter-wrapper__submit"
4272
4272
  type="submit"
@@ -4313,7 +4313,7 @@ ${Oa(this.code(i,t))}
4313
4313
  @zn-change=${this.updateFilter}>
4314
4314
  ${r.label}
4315
4315
  </zn-checkbox>`)}
4316
- </div>`}};di.styles=z(S2),c([R()],di.prototype,"filters",2),c([d()],di.prototype,"position",2),c([d({attribute:"store-key"})],di.prototype,"storeKey",2),c([d({attribute:"no-scroll"})],di.prototype,"noScroll",2),c([d({attribute:"pull-tab",type:Boolean,reflect:!0})],di.prototype,"pullTab",2),c([d({type:Boolean,reflect:!0})],di.prototype,"open",2),c([R()],di.prototype,"panelExpanded",2);var RL=di;di.define("zn-settings-container");var E2=_`@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}`;var ea=class extends k{constructor(){super(...arguments);this.attr="filter"}handleSearchChange(t){let r=this.querySelectorAll(`[data-${this.attr}]`),a=t.target.value.toLowerCase();r.forEach(p=>{(p.getAttribute(`data-${this.attr}`)?.toLowerCase()||"").includes(a)?p.style.display="":p.style.display="none";let m=p.closest("zn-panel");if(m){let b=m.querySelectorAll(`[data-${this.attr}]`),g=!1;b.forEach(v=>{v.style.display!=="none"&&(g=!0)}),g?m.style.display="":m.style.display="none"}let f=p.closest("zn-accordion");if(f){let b=f.querySelectorAll(`[data-${this.attr}]`),g=!1;b.forEach(v=>{v.style.display!=="none"&&(g=!0)}),g&&(f.style.display="")}}),a===""&&r.forEach(p=>{p.style.display=""});let s=Array.from(r).some(p=>p.style.display!=="none"),l=this.querySelector(".no-results-message");s?l&&(l.style.display="none"):(l||(l=document.createElement("div"),l.className="no-results-message",l.textContent="No results found",this.appendChild(l)),l.style.display="")}render(){return u`
4316
+ </div>`}};di.styles=z(S2),c([D()],di.prototype,"filters",2),c([d()],di.prototype,"position",2),c([d({attribute:"store-key"})],di.prototype,"storeKey",2),c([d({attribute:"no-scroll"})],di.prototype,"noScroll",2),c([d({attribute:"pull-tab",type:Boolean,reflect:!0})],di.prototype,"pullTab",2),c([d({type:Boolean,reflect:!0})],di.prototype,"open",2),c([D()],di.prototype,"panelExpanded",2);var RL=di;di.define("zn-settings-container");var E2=_`@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}`;var ea=class extends k{constructor(){super(...arguments);this.attr="filter"}handleSearchChange(t){let r=this.querySelectorAll(`[data-${this.attr}]`),a=t.target.value.toLowerCase();r.forEach(p=>{(p.getAttribute(`data-${this.attr}`)?.toLowerCase()||"").includes(a)?p.style.display="":p.style.display="none";let m=p.closest("zn-panel");if(m){let b=m.querySelectorAll(`[data-${this.attr}]`),g=!1;b.forEach(v=>{v.style.display!=="none"&&(g=!0)}),g?m.style.display="":m.style.display="none"}let f=p.closest("zn-accordion");if(f){let b=f.querySelectorAll(`[data-${this.attr}]`),g=!1;b.forEach(v=>{v.style.display!=="none"&&(g=!0)}),g&&(f.style.display="")}}),a===""&&r.forEach(p=>{p.style.display=""});let s=Array.from(r).some(p=>p.style.display!=="none"),l=this.querySelector(".no-results-message");s?l&&(l.style.display="none"):(l||(l=document.createElement("div"),l.className="no-results-message",l.textContent="No results found",this.appendChild(l)),l.style.display="")}render(){return u`
4317
4317
  <zn-input placeholder="Filter" clearable type="search" @zn-input=${this.handleSearchChange}
4318
4318
  style="margin-bottom: var(--zn-spacing-small)">
4319
4319
  <zn-icon src="search" slot="prefix"></zn-icon>
@@ -4347,7 +4347,7 @@ ${Oa(this.code(i,t))}
4347
4347
  <zn-option value="${t.url}">${t.name}</zn-option>
4348
4348
  `)}
4349
4349
  </zn-select>
4350
- `}};Wi.styles=z($2),c([R()],Wi.prototype,"_isPlaying",2),c([d()],Wi.prototype,"value",2),c([d()],Wi.prototype,"label",2),c([d()],Wi.prototype,"placeholder",2),c([d({type:Object})],Wi.prototype,"files",2);var PL=Wi;Wi.define("zn-audio-select");var A2=yt(class extends rr{constructor(){super(...arguments),this.key=B}render(o,i){return this.key=o,i}update(o,[i,t]){return i!==this.key&&(ns(o),this.key=i),t}});var M2=_`: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 He=class extends k{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.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 rp||t.target instanceof Xo)return;!(t.altKey||t.ctrlKey||t.metaKey||t.shiftKey)&&!t.defaultPrevented&&!t.isComposing&&this.formControlController.submit()}};this.handleSubmit=()=>{this.formControlController.submit()}}get validity(){return pt}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`
4350
+ `}};Wi.styles=z($2),c([D()],Wi.prototype,"_isPlaying",2),c([d()],Wi.prototype,"value",2),c([d()],Wi.prototype,"label",2),c([d()],Wi.prototype,"placeholder",2),c([d({type:Object})],Wi.prototype,"files",2);var PL=Wi;Wi.define("zn-audio-select");var A2=yt(class extends rr{constructor(){super(...arguments),this.key=B}render(o,i){return this.key=o,i}update(o,[i,t]){return i!==this.key&&(ns(o),this.key=i),t}});var M2=_`: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 He=class extends k{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.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 rp||t.target instanceof Xo)return;!(t.altKey||t.ctrlKey||t.metaKey||t.shiftKey)&&!t.defaultPrevented&&!t.isComposing&&this.formControlController.submit()}};this.handleSubmit=()=>{this.formControlController.submit()}}get validity(){return pt}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`
4351
4351
  <zn-inline-edit
4352
4352
  input-type=${this.inputType}
4353
4353
  textarea-rows=${P(this.textareaRows)}
@@ -4442,7 +4442,7 @@ ${Oa(this.code(i,t))}
4442
4442
  </div>
4443
4443
  `:B}
4444
4444
  </div>
4445
- `}};He.styles=[z(Se),z(M2)],He.dependencies={"zn-chip":Gn,"zn-inline-edit":rp,"zn-input":nt,"zn-option":ot,"zn-select":Be,"zn-textarea":Xo},c([d()],He.prototype,"name",2),c([d()],He.prototype,"value",2),c([d()],He.prototype,"label",2),c([d({attribute:"help-text"})],He.prototype,"helpText",2),c([d({type:Boolean,reflect:!0})],He.prototype,"disabled",2),c([d({type:Boolean,reflect:!0})],He.prototype,"required",2),c([d({type:Boolean,reflect:!0})],He.prototype,"flush",2),c([d({attribute:"input-type"})],He.prototype,"inputType",2),c([d({attribute:"textarea-rows",type:Number})],He.prototype,"textareaRows",2),c([d({type:Boolean,reflect:!0,attribute:"inline-edit"})],He.prototype,"inlineEdit",2),c([d({attribute:"slash-items",converter:{fromAttribute:t=>zo(t),toAttribute:t=>JSON.stringify(t)}})],He.prototype,"slashItems",2),c([d({attribute:"slash-preset"})],He.prototype,"slashPreset",2),c([d({attribute:"slash-trigger"})],He.prototype,"slashTrigger",2),c([d({attribute:"slash-heading"})],He.prototype,"slashHeading",2),c([d({attribute:"slash-hide-keys",type:Boolean})],He.prototype,"slashHideKeys",2),c([d({attribute:"slash-recent-key"})],He.prototype,"slashRecentKey",2),c([d({attribute:!1})],He.prototype,"slashItemsProvider",2),c([d({type:Boolean,reflect:!0})],He.prototype,"grouped",2),c([d({type:Object})],He.prototype,"languages",2),c([d({type:Object})],He.prototype,"values",2),c([Ce()],He.prototype,"defaultValue",2),c([R()],He.prototype,"_activeLanguage",2);var HL=He;He.define("zn-translations");var L2=_`@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}.key{cursor:pointer;display:flex;flex-direction:row;gap:var(--zn-spacing-medium);align-items:center;text-align:left}.key__description{font-size:var(--zn-font-size-small);color:rgb(var(--zn-text-body));opacity:0.7;line-height:var(--zn-line-height-normal);-webkit-user-select:none;-moz-user-select:none;user-select:none}:host([active]) .key__label{color:rgb(var(--zn-text-heading));font-weight:600}:host(:not([active])) .key__description{opacity:0.6}:host(:not([active])) zn-chip{--zn-chip-color:rgb(var(--zn-text-body));opacity:0.5}`;var Ti=class extends k{constructor(){super(...arguments);this.icon="";this.attribute="";this.value="";this.color="primary";this.active=!1;this.iconSize=24}_handleClick(){this.active=!this.active,this.emit("zn-change")}render(){let t=this.active?this.color:"transparent";return u`
4445
+ `}};He.styles=[z(Se),z(M2)],He.dependencies={"zn-chip":Gn,"zn-inline-edit":rp,"zn-input":ot,"zn-option":at,"zn-select":Be,"zn-textarea":Xo},c([d()],He.prototype,"name",2),c([d()],He.prototype,"value",2),c([d()],He.prototype,"label",2),c([d({attribute:"help-text"})],He.prototype,"helpText",2),c([d({type:Boolean,reflect:!0})],He.prototype,"disabled",2),c([d({type:Boolean,reflect:!0})],He.prototype,"required",2),c([d({type:Boolean,reflect:!0})],He.prototype,"flush",2),c([d({attribute:"input-type"})],He.prototype,"inputType",2),c([d({attribute:"textarea-rows",type:Number})],He.prototype,"textareaRows",2),c([d({type:Boolean,reflect:!0,attribute:"inline-edit"})],He.prototype,"inlineEdit",2),c([d({attribute:"slash-items",converter:{fromAttribute:t=>zo(t),toAttribute:t=>JSON.stringify(t)}})],He.prototype,"slashItems",2),c([d({attribute:"slash-preset"})],He.prototype,"slashPreset",2),c([d({attribute:"slash-trigger"})],He.prototype,"slashTrigger",2),c([d({attribute:"slash-heading"})],He.prototype,"slashHeading",2),c([d({attribute:"slash-hide-keys",type:Boolean})],He.prototype,"slashHideKeys",2),c([d({attribute:"slash-recent-key"})],He.prototype,"slashRecentKey",2),c([d({attribute:!1})],He.prototype,"slashItemsProvider",2),c([d({type:Boolean,reflect:!0})],He.prototype,"grouped",2),c([d({type:Object})],He.prototype,"languages",2),c([d({type:Object})],He.prototype,"values",2),c([Ce()],He.prototype,"defaultValue",2),c([D()],He.prototype,"_activeLanguage",2);var HL=He;He.define("zn-translations");var L2=_`@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}.key{cursor:pointer;display:flex;flex-direction:row;gap:var(--zn-spacing-medium);align-items:center;text-align:left}.key__description{font-size:var(--zn-font-size-small);color:rgb(var(--zn-text-body));opacity:0.7;line-height:var(--zn-line-height-normal);-webkit-user-select:none;-moz-user-select:none;user-select:none}:host([active]) .key__label{color:rgb(var(--zn-text-heading));font-weight:600}:host(:not([active])) .key__description{opacity:0.6}:host(:not([active])) zn-chip{--zn-chip-color:rgb(var(--zn-text-body));opacity:0.5}`;var Ti=class extends k{constructor(){super(...arguments);this.icon="";this.attribute="";this.value="";this.color="primary";this.active=!1;this.iconSize=24}_handleClick(){this.active=!this.active,this.emit("zn-change")}render(){let t=this.active?this.color:"transparent";return u`
4446
4446
  <div class="key" @click="${this._handleClick}">
4447
4447
  <zn-chip
4448
4448
  .icon="${this.icon}"
@@ -4521,7 +4521,7 @@ ${Oa(this.code(i,t))}
4521
4521
  </span>
4522
4522
  `}
4523
4523
  </button>
4524
- `}};Ut.styles=[z(Sd),z(I2)],Ut.dependencies={"zn-icon":yo},c([R()],Ut.prototype,"currentState",2),c([R()],Ut.prototype,"errorMessage",2),c([d({attribute:"idle-text"})],Ut.prototype,"idleText",2),c([d({attribute:"processing-text"})],Ut.prototype,"processingText",2),c([d({attribute:"success-text"})],Ut.prototype,"successText",2),c([d({attribute:"failure-text"})],Ut.prototype,"failureText",2),c([d({attribute:"redirect-url"})],Ut.prototype,"redirectUrl",2),c([d({type:Number,attribute:"redirect-delay"})],Ut.prototype,"redirectDelay",2),c([d({type:Number,attribute:"failure-reset-delay"})],Ut.prototype,"failureResetDelay",2),c([d({type:Boolean,reflect:!0})],Ut.prototype,"disabled",2),c([d()],Ut.prototype,"name",2),c([d()],Ut.prototype,"value",2);var VL=Ut;Ut.define("zn-animated-button");var D2=_`:host{display:block}.panel__body{gap:var(--zn-spacing-medium)}::slotted(:not([slot])){grid-column:1/-1}.translation-group__language-select::part(form-control-label){position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}.translation-group__actions{display:flex;align-items:center;gap:var(--zn-spacing-small);max-width:var(--zn-container-lg)}.translation-group__actions-spacer{order:1;flex:1 1 auto}::slotted([slot=actions]){order:2}::slotted([slot=actions][align=start]){order:0}.panel--has-actions .panel__body>.translation-group__actions{border:0}.translation-group--inline .panel__inner,.translation-group--inline .panel__content,.translation-group--inline .panel__body{overflow:visible}`;var hi=class extends at{constructor(){super(...arguments);this._slotController=new Y(this,"actions","footer");this.label="";this.helpText="";this.inline=!1;this.languageLabel="Edit Languages";this.languages={en:"EN"};this._activeLanguage="en";this._form=null;this.handleSlotChange=()=>{this.syncChildren()};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.handleChildChange=()=>{this.requestUpdate()};this.handleFormReset=()=>{requestAnimationFrame(()=>this.requestUpdate())}}connectedCallback(){super.connectedCallback(),this._form=this.closest("form"),this._form?.addEventListener("reset",this.handleFormReset)}disconnectedCallback(){super.disconnectedCallback(),this._form?.removeEventListener("reset",this.handleFormReset),this._form=null}firstUpdated(t){super.firstUpdated(t),this.syncChildren()}updated(t){super.updated(t),t.has("languages")&&this.syncChildLanguages()}getAllTranslations(){return[...this.querySelectorAll("zn-translations")]}syncChildren(){this.getAllTranslations().forEach(t=>{t.grouped=!0,t.languages=this.languages,t.setActiveLanguage(this._activeLanguage)})}languageState(t){let r=this.getAllTranslations(),n=r.filter(a=>a.hasTranslation(t)).length;return r.length>0&&n===r.length?{type:"success",label:"Translated"}:n>0?{type:"warning",label:"Partial"}:{type:"error",label:t==="en"?"Empty":"English"}}displayName(t){return this.languages[t]??t.toUpperCase()}syncChildLanguages(){this.getAllTranslations().forEach(t=>{t.languages=this.languages})}switchLanguage(t){this._activeLanguage=t,this.getAllTranslations().forEach(r=>r.setActiveLanguage(t)),this.emit("zn-language-change",{detail:{language:t}})}render(){let t=this._slotController.test("actions"),r=this._slotController.test("footer"),n=this.caption||this.label,a=new Set;this.getAllTranslations().forEach(m=>m.getValueLanguages().filter(f=>!Object.prototype.hasOwnProperty.call(this.languages,f)).forEach(f=>a.add(f)));let s=[...Object.keys(this.languages),...a],l=s.length>1,p=s.filter(m=>this.languageState(m).type==="success").length,h={label:`${p}/${s.length}`,type:p===s.length?"success":p>0?"warning":"error"};return u`
4524
+ `}};Ut.styles=[z(Sd),z(I2)],Ut.dependencies={"zn-icon":yo},c([D()],Ut.prototype,"currentState",2),c([D()],Ut.prototype,"errorMessage",2),c([d({attribute:"idle-text"})],Ut.prototype,"idleText",2),c([d({attribute:"processing-text"})],Ut.prototype,"processingText",2),c([d({attribute:"success-text"})],Ut.prototype,"successText",2),c([d({attribute:"failure-text"})],Ut.prototype,"failureText",2),c([d({attribute:"redirect-url"})],Ut.prototype,"redirectUrl",2),c([d({type:Number,attribute:"redirect-delay"})],Ut.prototype,"redirectDelay",2),c([d({type:Number,attribute:"failure-reset-delay"})],Ut.prototype,"failureResetDelay",2),c([d({type:Boolean,reflect:!0})],Ut.prototype,"disabled",2),c([d()],Ut.prototype,"name",2),c([d()],Ut.prototype,"value",2);var VL=Ut;Ut.define("zn-animated-button");var D2=_`:host{display:block}.panel__body{gap:var(--zn-spacing-medium)}::slotted(:not([slot])){grid-column:1/-1}.translation-group__language-select::part(form-control-label){position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}.translation-group__actions{display:flex;align-items:center;gap:var(--zn-spacing-small);max-width:var(--zn-container-lg)}.translation-group__actions-spacer{order:1;flex:1 1 auto}::slotted([slot=actions]){order:2}::slotted([slot=actions][align=start]){order:0}.panel--has-actions .panel__body>.translation-group__actions{border:0}.translation-group--inline .panel__inner,.translation-group--inline .panel__content,.translation-group--inline .panel__body{overflow:visible}`;var hi=class extends Ze{constructor(){super(...arguments);this._slotController=new Y(this,"actions","footer");this.label="";this.helpText="";this.inline=!1;this.languageLabel="Edit Languages";this.languages={en:"EN"};this._activeLanguage="en";this._form=null;this.handleSlotChange=()=>{this.syncChildren()};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.handleChildChange=()=>{this.requestUpdate()};this.handleFormReset=()=>{requestAnimationFrame(()=>this.requestUpdate())}}connectedCallback(){super.connectedCallback(),this._form=this.closest("form"),this._form?.addEventListener("reset",this.handleFormReset)}disconnectedCallback(){super.disconnectedCallback(),this._form?.removeEventListener("reset",this.handleFormReset),this._form=null}firstUpdated(t){super.firstUpdated(t),this.syncChildren()}updated(t){super.updated(t),t.has("languages")&&this.syncChildLanguages()}getAllTranslations(){return[...this.querySelectorAll("zn-translations")]}syncChildren(){this.getAllTranslations().forEach(t=>{t.grouped=!0,t.languages=this.languages,t.setActiveLanguage(this._activeLanguage)})}languageState(t){let r=this.getAllTranslations(),n=r.filter(a=>a.hasTranslation(t)).length;return r.length>0&&n===r.length?{type:"success",label:"Translated"}:n>0?{type:"warning",label:"Partial"}:{type:"error",label:t==="en"?"Empty":"English"}}displayName(t){return this.languages[t]??t.toUpperCase()}syncChildLanguages(){this.getAllTranslations().forEach(t=>{t.languages=this.languages})}switchLanguage(t){this._activeLanguage=t,this.getAllTranslations().forEach(r=>r.setActiveLanguage(t)),this.emit("zn-language-change",{detail:{language:t}})}render(){let t=this._slotController.test("actions"),r=this._slotController.test("footer"),n=this.caption||this.label,a=new Set;this.getAllTranslations().forEach(m=>m.getValueLanguages().filter(f=>!Object.prototype.hasOwnProperty.call(this.languages,f)).forEach(f=>a.add(f)));let s=[...Object.keys(this.languages),...a],l=s.length>1,p=s.filter(m=>this.languageState(m).type==="success").length,h={label:`${p}/${s.length}`,type:p===s.length?"success":p>0?"warning":"error"};return u`
4525
4525
  <div part="base" class="${M({panel:!0,"panel--flush":this.flush||this.inline,"panel--transparent":this.transparent||this.inline,"translation-group--inline":this.inline,"panel--has-actions":t,"panel--has-footer":r})}">
4526
4526
 
4527
4527
  <div class="panel__inner">
@@ -4569,7 +4569,7 @@ ${Oa(this.code(i,t))}
4569
4569
  ${r?u`
4570
4570
  <slot name="footer" class="panel__footer"></slot>`:null}
4571
4571
  </div>
4572
- </div>`}};hi.styles=[at.styles,z(D2)],hi.dependencies={"zn-chip":Gn,"zn-form-group":sg,"zn-option":ot,"zn-select":Be},c([d()],hi.prototype,"label",2),c([d({attribute:"help-text"})],hi.prototype,"helpText",2),c([d({type:Boolean,reflect:!0})],hi.prototype,"inline",2),c([d({attribute:"language-label"})],hi.prototype,"languageLabel",2),c([d({type:Object})],hi.prototype,"languages",2),c([R()],hi.prototype,"_activeLanguage",2);var UL=hi;hi.define("zn-translation-group");var R2=_`@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);--zn-priority-list-item-gap:var(--zn-spacing-2x-small);--zn-priority-list-item-padding:var(--zn-spacing-small) var(--zn-spacing-medium);--zn-priority-list-actions-gap:var(--zn-spacing-small);--zn-priority-list-handle-color:var(--zn-color-neutral-400);--zn-priority-list-priority-color:var(--zn-color-neutral-600)}.form-control{position:relative;border:none;padding:0;margin:0}.form-control__label{padding:0}.priority-list{display:flex;flex-direction:column;gap:var(--zn-priority-list-item-gap)}.priority-list--disabled{opacity:0.5;pointer-events:none}.priority-list--drag-active .priority-list__item{transition:transform 200ms ease,opacity 200ms ease,box-shadow 200ms ease}.priority-list__item{display:flex;align-items:center;gap:var(--zn-spacing-small);padding:var(--zn-priority-list-item-padding);background:rgb(var(--zn-panel));border:1px solid rgb(var(--zn-border-color));border-radius:var(--zn-border-radius);cursor:grab;-webkit-user-select:none;-moz-user-select:none;user-select:none;-webkit-user-drag:element;position:relative}.priority-list__item:hover{background:rgb(var(--zn-panel-hover,var(--zn-panel)));border-color:rgb(var(--zn-color-primary-500))}.priority-list__item:hover .priority-list__handle{color:rgb(var(--zn-color-primary-500))}.priority-list__item:focus-visible{outline:2px solid rgb(var(--zn-color-primary-500));outline-offset:-1px;border-color:rgb(var(--zn-color-primary-500))}.priority-list__item:active{cursor:grabbing}.priority-list__item--dragging{opacity:0.3;border-style:dashed;border-color:rgb(var(--zn-color-primary-400));background:rgb(var(--zn-color-primary-50,var(--zn-panel)));box-shadow:none}.priority-list__item--disabled{cursor:not-allowed;opacity:0.6}.priority-list__item--disabled:hover{background:rgb(var(--zn-panel));border-color:rgb(var(--zn-border-color))}.priority-list__handle{display:flex;align-items:center;justify-content:center;flex-shrink:0;color:var(--zn-priority-list-handle-color);cursor:grab;transition:color 150ms ease}.priority-list__handle:active{cursor:grabbing}.priority-list__priority{display:flex;align-items:center;justify-content:center;flex-shrink:0;min-width:1.5em;font-size:var(--zn-font-size-small);font-weight:var(--zn-font-weight-semibold);color:var(--zn-priority-list-priority-color)}.priority-list__content{flex:1;min-width:0;overflow:hidden;pointer-events:none}.priority-list__content ::slotted(*){pointer-events:none;-webkit-user-drag:none}.priority-list__actions{display:flex;align-items:center;gap:var(--zn-priority-list-actions-gap);flex-shrink:0;pointer-events:auto}.priority-list__actions ::slotted(*){pointer-events:auto;-webkit-user-drag:none}:host([size=small]) .priority-list__item{padding:var(--zn-spacing-2x-small) var(--zn-spacing-small);font-size:var(--zn-font-size-small)}:host([size=small]) .priority-list__priority{font-size:var(--zn-font-size-x-small);min-width:1.25em}:host([size=large]) .priority-list__item{padding:var(--zn-spacing-medium) var(--zn-spacing-large);font-size:var(--zn-font-size-medium)}:host([size=large]) .priority-list__priority{font-size:var(--zn-font-size-medium);min-width:1.75em}.priority-list__collector{position:absolute;width:0;height:0;overflow:hidden;pointer-events:none}.priority-list__hidden-inputs{display:none}`;function jL(o){try{return JSON.parse(o)}catch{return}}var gt=class extends k{constructor(){super(...arguments);this.formControlController=new re(this,{value:t=>JSON.stringify(t.getPriorityMap()),defaultValue:t=>t.defaultValue,setValue:(t,r)=>{if(!r||Array.isArray(r)&&r.length===0)return;let n=Array.isArray(r)?r:jL(r);Array.isArray(n)&&n.every(a=>typeof a=="string")&&(t.value=n)}});this.hasSlotController=new Y(this,"help-text","label");this.name="";this._value=[];this.defaultValue=[];this.label="";this.labelTooltip="";this.helpText="";this.form="";this.size="medium";this.disabled=!1;this.required=!1;this.priorityStart=1;this.order="";this.draggedKey=null;this.isDragging=!1;this.dragOverKey=null}get value(){return this._value}set value(t){let r=this._value;this._value=[...t],this._assignSlotNames(),this.requestUpdate("value",r)}get validity(){return pt}get validationMessage(){return""}connectedCallback(){super.connectedCallback(),this.defaultValue=[...this._value]}firstUpdated(t){super.firstUpdated(t),this.formControlController.updateValidity(),this._initializeOrderFromSlot()}_initializeOrderFromSlot(){if(this._value.length===0){let r=this._getSlottedItems().map(n=>n.getAttribute("value")||"").filter(n=>n!=="");if(this.order){let n=this.order.split(",").map(h=>h.trim()).filter(h=>h!==""),a=new Set(r),s=n.filter(h=>a.has(h)),l=new Set(s),p=r.filter(h=>!l.has(h));this._value=[...s,...p]}else this._value=r}this.defaultValue=[...this._value],this._assignSlotNames(),this._syncHiddenInputs(),this.requestUpdate()}_getSlottedItems(){let t=["label","label-tooltip","help-text"];return[...this.querySelectorAll(":scope > [value]")].filter(r=>{let n=r.getAttribute("slot");return!n||n.startsWith("_item-")||!t.includes(n)})}_assignSlotNames(){[...this.querySelectorAll(":scope > [value]")].forEach(r=>{let n=r.getAttribute("value");n&&!["label","label-tooltip","help-text"].includes(n)&&r.setAttribute("slot",`_item-${n}`)})}getPriorityMap(){return this._value.map((t,r)=>({key:t,priority:this.priorityStart+r}))}_syncHiddenInputs(){this.hiddenInputsContainer&&(this.hiddenInputsContainer.innerHTML="",this.name&&this._value.forEach((t,r)=>{let n=document.createElement("input");n.type="hidden",n.name=`${this.name}[${t}]`,n.value=String(this.priorityStart+r),this.hiddenInputsContainer.appendChild(n)}))}_moveItem(t,r){if(t===r||t<0||r<0||t>=this._value.length||r>=this._value.length)return;let n=[...this._value],[a]=n.splice(t,1);n.splice(r,0,a),this._value=n,this._assignSlotNames(),this._syncHiddenInputs(),this.requestUpdate(),this.emit("zn-change"),this.emit("zn-reorder"),this._submitForm()}_submitForm(){if(this.formAction===void 0||this.formAction===null)return;if(this.getForm()){let r=document.createElement("input");r.type="submit",this.formAction&&r.setAttribute("formaction",this.formAction),this.formControlController.submit(r)}else if(this.formAction){let r=document.createElement("form");r.method="post",r.action=this.formAction,r.hidden=!0,this._value.forEach((n,a)=>{if(this.name){let s=document.createElement("input");s.type="hidden",s.name=`${this.name}[${n}]`,s.value=String(this.priorityStart+a),r.appendChild(s)}}),document.body.appendChild(r),r.requestSubmit(),r.remove()}}_handleDragStart(t,r){if(this.disabled){t.preventDefault();return}this.draggedKey=r,this.isDragging=!0,t.dataTransfer&&(t.dataTransfer.effectAllowed="move",t.dataTransfer.setData("text/plain",r))}_handleDragEnd(){this.isDragging&&(this._syncHiddenInputs(),this.emit("zn-change"),this.emit("zn-reorder"),this._submitForm()),this.draggedKey=null,this.dragOverKey=null,this.isDragging=!1}_handleDragOver(t,r){if(t.preventDefault(),!this.draggedKey||this.draggedKey===r)return;t.dataTransfer&&(t.dataTransfer.dropEffect="move");let n=this._value.indexOf(this.draggedKey),a=this._value.indexOf(r);if(n===-1||a===-1||n===a)return;let s=[...this._value],[l]=s.splice(n,1);s.splice(a,0,l),this._value=s,this._assignSlotNames(),this.requestUpdate(),this.dragOverKey=r}_handleDragLeave(t,r){let n=t.relatedTarget,a=t.currentTarget;n&&a.contains(n)||this.dragOverKey===r&&(this.dragOverKey=null)}_handleDrop(t){t.preventDefault()}_handleKeyDown(t,r){if(this.disabled)return;let n=this._value.indexOf(r);if(n===-1)return;let a=null;switch(t.key){case"ArrowUp":n>0&&(a=n-1);break;case"ArrowDown":n<this._value.length-1&&(a=n+1);break;case"Home":n>0&&(a=0);break;case"End":n<this._value.length-1&&(a=this._value.length-1);break;default:return}a!==null&&(t.preventDefault(),this._moveItem(n,a),this.updateComplete.then(()=>{this.shadowRoot?.querySelectorAll(".priority-list__item")?.[a]?.focus()}))}_handleSlotChange(){let t=[...this.querySelectorAll(":scope > [value]")],r=["label","label-tooltip","help-text"],n=t.filter(h=>{let m=h.getAttribute("slot");return!m||m.startsWith("_item-")||!r.includes(m)}).map(h=>h.getAttribute("value")||"").filter(h=>h!=="");if(n.length===0&&this._value.length>0)return;let a=new Set(this._value),s=new Set(n),l=n.filter(h=>!a.has(h)),p=this._value.filter(h=>s.has(h));(l.length>0||p.length!==this._value.length)&&(this._value=[...p,...l],this._assignSlotNames(),this._syncHiddenInputs(),this.requestUpdate())}checkValidity(){return!0}getForm(){return this.formControlController.getForm()}reportValidity(){return!0}setCustomValidity(t=""){}updated(t){super.updated(t),(t.has("value")||t.has("name")||t.has("priorityStart"))&&this._syncHiddenInputs()}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;return u`
4572
+ </div>`}};hi.styles=[Ze.styles,z(D2)],hi.dependencies={"zn-chip":Gn,"zn-form-group":sg,"zn-option":at,"zn-select":Be},c([d()],hi.prototype,"label",2),c([d({attribute:"help-text"})],hi.prototype,"helpText",2),c([d({type:Boolean,reflect:!0})],hi.prototype,"inline",2),c([d({attribute:"language-label"})],hi.prototype,"languageLabel",2),c([d({type:Object})],hi.prototype,"languages",2),c([D()],hi.prototype,"_activeLanguage",2);var UL=hi;hi.define("zn-translation-group");var R2=_`@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);--zn-priority-list-item-gap:var(--zn-spacing-2x-small);--zn-priority-list-item-padding:var(--zn-spacing-small) var(--zn-spacing-medium);--zn-priority-list-actions-gap:var(--zn-spacing-small);--zn-priority-list-handle-color:var(--zn-color-neutral-400);--zn-priority-list-priority-color:var(--zn-color-neutral-600)}.form-control{position:relative;border:none;padding:0;margin:0}.form-control__label{padding:0}.priority-list{display:flex;flex-direction:column;gap:var(--zn-priority-list-item-gap)}.priority-list--disabled{opacity:0.5;pointer-events:none}.priority-list--drag-active .priority-list__item{transition:transform 200ms ease,opacity 200ms ease,box-shadow 200ms ease}.priority-list__item{display:flex;align-items:center;gap:var(--zn-spacing-small);padding:var(--zn-priority-list-item-padding);background:rgb(var(--zn-panel));border:1px solid rgb(var(--zn-border-color));border-radius:var(--zn-border-radius);cursor:grab;-webkit-user-select:none;-moz-user-select:none;user-select:none;-webkit-user-drag:element;position:relative}.priority-list__item:hover{background:rgb(var(--zn-panel-hover,var(--zn-panel)));border-color:rgb(var(--zn-color-primary-500))}.priority-list__item:hover .priority-list__handle{color:rgb(var(--zn-color-primary-500))}.priority-list__item:focus-visible{outline:2px solid rgb(var(--zn-color-primary-500));outline-offset:-1px;border-color:rgb(var(--zn-color-primary-500))}.priority-list__item:active{cursor:grabbing}.priority-list__item--dragging{opacity:0.3;border-style:dashed;border-color:rgb(var(--zn-color-primary-400));background:rgb(var(--zn-color-primary-50,var(--zn-panel)));box-shadow:none}.priority-list__item--disabled{cursor:not-allowed;opacity:0.6}.priority-list__item--disabled:hover{background:rgb(var(--zn-panel));border-color:rgb(var(--zn-border-color))}.priority-list__handle{display:flex;align-items:center;justify-content:center;flex-shrink:0;color:var(--zn-priority-list-handle-color);cursor:grab;transition:color 150ms ease}.priority-list__handle:active{cursor:grabbing}.priority-list__priority{display:flex;align-items:center;justify-content:center;flex-shrink:0;min-width:1.5em;font-size:var(--zn-font-size-small);font-weight:var(--zn-font-weight-semibold);color:var(--zn-priority-list-priority-color)}.priority-list__content{flex:1;min-width:0;overflow:hidden;pointer-events:none}.priority-list__content ::slotted(*){pointer-events:none;-webkit-user-drag:none}.priority-list__actions{display:flex;align-items:center;gap:var(--zn-priority-list-actions-gap);flex-shrink:0;pointer-events:auto}.priority-list__actions ::slotted(*){pointer-events:auto;-webkit-user-drag:none}:host([size=small]) .priority-list__item{padding:var(--zn-spacing-2x-small) var(--zn-spacing-small);font-size:var(--zn-font-size-small)}:host([size=small]) .priority-list__priority{font-size:var(--zn-font-size-x-small);min-width:1.25em}:host([size=large]) .priority-list__item{padding:var(--zn-spacing-medium) var(--zn-spacing-large);font-size:var(--zn-font-size-medium)}:host([size=large]) .priority-list__priority{font-size:var(--zn-font-size-medium);min-width:1.75em}.priority-list__collector{position:absolute;width:0;height:0;overflow:hidden;pointer-events:none}.priority-list__hidden-inputs{display:none}`;function jL(o){try{return JSON.parse(o)}catch{return}}var gt=class extends k{constructor(){super(...arguments);this.formControlController=new re(this,{value:t=>JSON.stringify(t.getPriorityMap()),defaultValue:t=>t.defaultValue,setValue:(t,r)=>{if(!r||Array.isArray(r)&&r.length===0)return;let n=Array.isArray(r)?r:jL(r);Array.isArray(n)&&n.every(a=>typeof a=="string")&&(t.value=n)}});this.hasSlotController=new Y(this,"help-text","label");this.name="";this._value=[];this.defaultValue=[];this.label="";this.labelTooltip="";this.helpText="";this.form="";this.size="medium";this.disabled=!1;this.required=!1;this.priorityStart=1;this.order="";this.draggedKey=null;this.isDragging=!1;this.dragOverKey=null}get value(){return this._value}set value(t){let r=this._value;this._value=[...t],this._assignSlotNames(),this.requestUpdate("value",r)}get validity(){return pt}get validationMessage(){return""}connectedCallback(){super.connectedCallback(),this.defaultValue=[...this._value]}firstUpdated(t){super.firstUpdated(t),this.formControlController.updateValidity(),this._initializeOrderFromSlot()}_initializeOrderFromSlot(){if(this._value.length===0){let r=this._getSlottedItems().map(n=>n.getAttribute("value")||"").filter(n=>n!=="");if(this.order){let n=this.order.split(",").map(h=>h.trim()).filter(h=>h!==""),a=new Set(r),s=n.filter(h=>a.has(h)),l=new Set(s),p=r.filter(h=>!l.has(h));this._value=[...s,...p]}else this._value=r}this.defaultValue=[...this._value],this._assignSlotNames(),this._syncHiddenInputs(),this.requestUpdate()}_getSlottedItems(){let t=["label","label-tooltip","help-text"];return[...this.querySelectorAll(":scope > [value]")].filter(r=>{let n=r.getAttribute("slot");return!n||n.startsWith("_item-")||!t.includes(n)})}_assignSlotNames(){[...this.querySelectorAll(":scope > [value]")].forEach(r=>{let n=r.getAttribute("value");n&&!["label","label-tooltip","help-text"].includes(n)&&r.setAttribute("slot",`_item-${n}`)})}getPriorityMap(){return this._value.map((t,r)=>({key:t,priority:this.priorityStart+r}))}_syncHiddenInputs(){this.hiddenInputsContainer&&(this.hiddenInputsContainer.innerHTML="",this.name&&this._value.forEach((t,r)=>{let n=document.createElement("input");n.type="hidden",n.name=`${this.name}[${t}]`,n.value=String(this.priorityStart+r),this.hiddenInputsContainer.appendChild(n)}))}_moveItem(t,r){if(t===r||t<0||r<0||t>=this._value.length||r>=this._value.length)return;let n=[...this._value],[a]=n.splice(t,1);n.splice(r,0,a),this._value=n,this._assignSlotNames(),this._syncHiddenInputs(),this.requestUpdate(),this.emit("zn-change"),this.emit("zn-reorder"),this._submitForm()}_submitForm(){if(this.formAction===void 0||this.formAction===null)return;if(this.getForm()){let r=document.createElement("input");r.type="submit",this.formAction&&r.setAttribute("formaction",this.formAction),this.formControlController.submit(r)}else if(this.formAction){let r=document.createElement("form");r.method="post",r.action=this.formAction,r.hidden=!0,this._value.forEach((n,a)=>{if(this.name){let s=document.createElement("input");s.type="hidden",s.name=`${this.name}[${n}]`,s.value=String(this.priorityStart+a),r.appendChild(s)}}),document.body.appendChild(r),r.requestSubmit(),r.remove()}}_handleDragStart(t,r){if(this.disabled){t.preventDefault();return}this.draggedKey=r,this.isDragging=!0,t.dataTransfer&&(t.dataTransfer.effectAllowed="move",t.dataTransfer.setData("text/plain",r))}_handleDragEnd(){this.isDragging&&(this._syncHiddenInputs(),this.emit("zn-change"),this.emit("zn-reorder"),this._submitForm()),this.draggedKey=null,this.dragOverKey=null,this.isDragging=!1}_handleDragOver(t,r){if(t.preventDefault(),!this.draggedKey||this.draggedKey===r)return;t.dataTransfer&&(t.dataTransfer.dropEffect="move");let n=this._value.indexOf(this.draggedKey),a=this._value.indexOf(r);if(n===-1||a===-1||n===a)return;let s=[...this._value],[l]=s.splice(n,1);s.splice(a,0,l),this._value=s,this._assignSlotNames(),this.requestUpdate(),this.dragOverKey=r}_handleDragLeave(t,r){let n=t.relatedTarget,a=t.currentTarget;n&&a.contains(n)||this.dragOverKey===r&&(this.dragOverKey=null)}_handleDrop(t){t.preventDefault()}_handleKeyDown(t,r){if(this.disabled)return;let n=this._value.indexOf(r);if(n===-1)return;let a=null;switch(t.key){case"ArrowUp":n>0&&(a=n-1);break;case"ArrowDown":n<this._value.length-1&&(a=n+1);break;case"Home":n>0&&(a=0);break;case"End":n<this._value.length-1&&(a=this._value.length-1);break;default:return}a!==null&&(t.preventDefault(),this._moveItem(n,a),this.updateComplete.then(()=>{this.shadowRoot?.querySelectorAll(".priority-list__item")?.[a]?.focus()}))}_handleSlotChange(){let t=[...this.querySelectorAll(":scope > [value]")],r=["label","label-tooltip","help-text"],n=t.filter(h=>{let m=h.getAttribute("slot");return!m||m.startsWith("_item-")||!r.includes(m)}).map(h=>h.getAttribute("value")||"").filter(h=>h!=="");if(n.length===0&&this._value.length>0)return;let a=new Set(this._value),s=new Set(n),l=n.filter(h=>!a.has(h)),p=this._value.filter(h=>s.has(h));(l.length>0||p.length!==this._value.length)&&(this._value=[...p,...l],this._assignSlotNames(),this._syncHiddenInputs(),this.requestUpdate())}checkValidity(){return!0}getForm(){return this.formControlController.getForm()}reportValidity(){return!0}setCustomValidity(t=""){}updated(t){super.updated(t),(t.has("value")||t.has("name")||t.has("priorityStart"))&&this._syncHiddenInputs()}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;return u`
4573
4573
  <fieldset
4574
4574
  part="form-control"
4575
4575
  class=${M({"form-control":!0,"form-control--small":this.size==="small","form-control--medium":this.size==="medium","form-control--large":this.size==="large","form-control--has-label":a,"form-control--has-label-tooltip":s,"form-control--has-help-text":l})}
@@ -4643,7 +4643,7 @@ ${Oa(this.code(i,t))}
4643
4643
  <slot name="help-text">${this.helpText}</slot>
4644
4644
  </div>
4645
4645
  </fieldset>
4646
- `}};gt.dependencies={"zn-icon":ne},gt.styles=[z(Se),z(R2)],c([F(".priority-list__hidden-inputs")],gt.prototype,"hiddenInputsContainer",2),c([d()],gt.prototype,"name",2),c([d({type:Array})],gt.prototype,"value",1),c([R()],gt.prototype,"defaultValue",2),c([d()],gt.prototype,"label",2),c([d({attribute:"label-tooltip"})],gt.prototype,"labelTooltip",2),c([d({attribute:"help-text"})],gt.prototype,"helpText",2),c([d({reflect:!0})],gt.prototype,"form",2),c([d({reflect:!0})],gt.prototype,"size",2),c([d({type:Boolean,reflect:!0})],gt.prototype,"disabled",2),c([d({type:Boolean,reflect:!0})],gt.prototype,"required",2),c([d({type:Number,attribute:"priority-start"})],gt.prototype,"priorityStart",2),c([d({attribute:"formaction"})],gt.prototype,"formAction",2),c([d()],gt.prototype,"order",2),c([R()],gt.prototype,"draggedKey",2),c([R()],gt.prototype,"isDragging",2);var GL=gt;gt.define("zn-priority-list");function hg(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var Ga=hg();function U2(o){Ga=o}var Ua={exec:()=>null};function rl(o){let i=[];return t=>{let r=Math.max(0,Math.min(3,t-1)),n=i[r];return n||(n=o(r),i[r]=n),n}}function Te(o,i=""){let t=typeof o=="string"?o:o.source,r={replace:(n,a)=>{let s=typeof a=="string"?a:a.source;return s=s.replace(Dr.caret,"$1"),t=t.replace(n,s),r},getRegex:()=>new RegExp(t,i)};return r}var WL=((o="")=>{try{return!!new RegExp("(?<=1)(?<!1)"+o)}catch{return!1}})(),Dr={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:o=>new RegExp(`^( {0,3}${o})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:rl(o=>new RegExp(`^ {0,${o}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`)),hrRegex:rl(o=>new RegExp(`^ {0,${o}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`)),fencesBeginRegex:rl(o=>new RegExp(`^ {0,${o}}(?:\`\`\`|~~~)`)),headingBeginRegex:rl(o=>new RegExp(`^ {0,${o}}#`)),htmlBeginRegex:rl(o=>new RegExp(`^ {0,${o}}<(?:[a-z].*>|!--)`,"i")),blockquoteBeginRegex:rl(o=>new RegExp(`^ {0,${o}}>`))},KL=/^(?:[ \t]*(?:\n|$))+/,YL=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,QL=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,Vc=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,XL=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,ug=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,j2=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,G2=Te(j2).replace(/bull/g,ug).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}(?:\s|$)/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),JL=Te(j2).replace(/bull/g,ug).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}(?:\s|$)/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),mg=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table|[ \t]+\n)[^\n]+)*)/,ZL=/^[^\n]+/,fg=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,eq=Te(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",fg).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),tq=Te(/^(bull)([ \t][^\n]*?)?(?:\n|$)/).replace(/bull/g,ug).getRegex(),Mh="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",gg=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,rq=Te("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n*|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>[^\\n]*\\n*|$)|<![A-Z][\\s\\S]*?(?:>[^\\n]*\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>[^\\n]*\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",gg).replace("tag",Mh).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),W2=o=>Te(mg).replace("hr",Vc).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~~~)[^\\n]*\\n").replace("list",o).replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Mh).getRegex(),iq=W2(/ {0,3}(?:[*+-]|1[.)])[ \t]+[^ \t\n]/),nq=W2(/ {0,3}(?:[*+-]|\d{1,9}[.)])(?:[ \t]|\n|$)/),oq=Te(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",nq).getRegex(),bg={blockquote:oq,code:YL,def:eq,fences:QL,heading:XL,hr:Vc,html:rq,lheading:G2,list:tq,newline:KL,paragraph:iq,table:Ua,text:ZL},N2=Te("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",Vc).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~~~)[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Mh).getRegex(),aq={...bg,lheading:JL,table:N2,paragraph:Te(mg).replace("hr",Vc).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",N2).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~~~)[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]+[^ \\t\\n]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Mh).getRegex()},sq={...bg,html:Te(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",gg).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:Ua,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:Te(mg).replace("hr",Vc).replace("heading",` *#{1,6} *[^
4646
+ `}};gt.dependencies={"zn-icon":ne},gt.styles=[z(Se),z(R2)],c([F(".priority-list__hidden-inputs")],gt.prototype,"hiddenInputsContainer",2),c([d()],gt.prototype,"name",2),c([d({type:Array})],gt.prototype,"value",1),c([D()],gt.prototype,"defaultValue",2),c([d()],gt.prototype,"label",2),c([d({attribute:"label-tooltip"})],gt.prototype,"labelTooltip",2),c([d({attribute:"help-text"})],gt.prototype,"helpText",2),c([d({reflect:!0})],gt.prototype,"form",2),c([d({reflect:!0})],gt.prototype,"size",2),c([d({type:Boolean,reflect:!0})],gt.prototype,"disabled",2),c([d({type:Boolean,reflect:!0})],gt.prototype,"required",2),c([d({type:Number,attribute:"priority-start"})],gt.prototype,"priorityStart",2),c([d({attribute:"formaction"})],gt.prototype,"formAction",2),c([d()],gt.prototype,"order",2),c([D()],gt.prototype,"draggedKey",2),c([D()],gt.prototype,"isDragging",2);var GL=gt;gt.define("zn-priority-list");function hg(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var Ga=hg();function U2(o){Ga=o}var Ua={exec:()=>null};function rl(o){let i=[];return t=>{let r=Math.max(0,Math.min(3,t-1)),n=i[r];return n||(n=o(r),i[r]=n),n}}function Te(o,i=""){let t=typeof o=="string"?o:o.source,r={replace:(n,a)=>{let s=typeof a=="string"?a:a.source;return s=s.replace(Dr.caret,"$1"),t=t.replace(n,s),r},getRegex:()=>new RegExp(t,i)};return r}var WL=((o="")=>{try{return!!new RegExp("(?<=1)(?<!1)"+o)}catch{return!1}})(),Dr={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:o=>new RegExp(`^( {0,3}${o})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:rl(o=>new RegExp(`^ {0,${o}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`)),hrRegex:rl(o=>new RegExp(`^ {0,${o}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`)),fencesBeginRegex:rl(o=>new RegExp(`^ {0,${o}}(?:\`\`\`|~~~)`)),headingBeginRegex:rl(o=>new RegExp(`^ {0,${o}}#`)),htmlBeginRegex:rl(o=>new RegExp(`^ {0,${o}}<(?:[a-z].*>|!--)`,"i")),blockquoteBeginRegex:rl(o=>new RegExp(`^ {0,${o}}>`))},KL=/^(?:[ \t]*(?:\n|$))+/,YL=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,QL=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,Vc=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,XL=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,ug=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,j2=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,G2=Te(j2).replace(/bull/g,ug).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}(?:\s|$)/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),JL=Te(j2).replace(/bull/g,ug).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}(?:\s|$)/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),mg=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table|[ \t]+\n)[^\n]+)*)/,ZL=/^[^\n]+/,fg=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,eq=Te(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",fg).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),tq=Te(/^(bull)([ \t][^\n]*?)?(?:\n|$)/).replace(/bull/g,ug).getRegex(),Mh="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",gg=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,rq=Te("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n*|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>[^\\n]*\\n*|$)|<![A-Z][\\s\\S]*?(?:>[^\\n]*\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>[^\\n]*\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",gg).replace("tag",Mh).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),W2=o=>Te(mg).replace("hr",Vc).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~~~)[^\\n]*\\n").replace("list",o).replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Mh).getRegex(),iq=W2(/ {0,3}(?:[*+-]|1[.)])[ \t]+[^ \t\n]/),nq=W2(/ {0,3}(?:[*+-]|\d{1,9}[.)])(?:[ \t]|\n|$)/),oq=Te(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",nq).getRegex(),bg={blockquote:oq,code:YL,def:eq,fences:QL,heading:XL,hr:Vc,html:rq,lheading:G2,list:tq,newline:KL,paragraph:iq,table:Ua,text:ZL},N2=Te("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",Vc).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~~~)[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Mh).getRegex(),aq={...bg,lheading:JL,table:N2,paragraph:Te(mg).replace("hr",Vc).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",N2).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~~~)[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]+[^ \\t\\n]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Mh).getRegex()},sq={...bg,html:Te(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",gg).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:Ua,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:Te(mg).replace("hr",Vc).replace("heading",` *#{1,6} *[^
4647
4647
  ]`).replace("lheading",G2).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},lq=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,cq=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,K2=/^( {2,}|\\)\n(?!\s*$)/,dq=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,il=/[\p{P}\p{S}]/u,Lh=/[\s\p{P}\p{S}]/u,vg=/[^\s\p{P}\p{S}]/u,pq=Te(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,Lh).getRegex(),Y2=/(?!~)[\p{P}\p{S}]/u,hq=/(?!~)[\s\p{P}\p{S}]/u,uq=/(?:[^\s\p{P}\p{S}]|~)/u,mq=Te(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",WL?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),Q2=/^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/,fq=Te(Q2,"u").replace(/punct/g,il).getRegex(),gq=Te(Q2,"u").replace(/punct/g,Y2).getRegex(),X2="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",bq=Te(X2,"gu").replace(/notPunctSpace/g,vg).replace(/punctSpace/g,Lh).replace(/punct/g,il).getRegex(),vq=Te(X2,"gu").replace(/notPunctSpace/g,uq).replace(/punctSpace/g,hq).replace(/punct/g,Y2).getRegex(),yq=Te("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,vg).replace(/punctSpace/g,Lh).replace(/punct/g,il).getRegex(),xq=Te(/^~~?(?:((?!~)punct)|[^\s~])/,"u").replace(/punct/g,il).getRegex(),wq="^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)",zq=Te(wq,"gu").replace(/notPunctSpace/g,vg).replace(/punctSpace/g,Lh).replace(/punct/g,il).getRegex(),_q=Te(/\\(punct)/,"gu").replace(/punct/g,il).getRegex(),kq=Te(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),Cq=Te(gg).replace("(?:-->|$)","-->").getRegex(),Sq=Te("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",Cq).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),Th=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/,Eq=Te(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label",Th).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]+|(?=\))/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),J2=Te(/^!?\[(label)\]\[(ref)\]/).replace("label",Th).replace("ref",fg).getRegex(),Z2=Te(/^!?\[(ref)\](?:\[\])?/).replace("ref",fg).getRegex(),Tq=Te("reflink|nolink(?!\\()","g").replace("reflink",J2).replace("nolink",Z2).getRegex(),O2=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,yg={_backpedal:Ua,anyPunctuation:_q,autolink:kq,blockSkip:mq,br:K2,code:cq,del:Ua,delLDelim:Ua,delRDelim:Ua,emStrongLDelim:fq,emStrongRDelimAst:bq,emStrongRDelimUnd:yq,escape:lq,link:Eq,nolink:Z2,punctuation:pq,reflink:J2,reflinkSearch:Tq,tag:Sq,text:dq,url:Ua},$q={...yg,link:Te(/^!?\[(label)\]\((.*?)\)/).replace("label",Th).getRegex(),reflink:Te(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Th).getRegex()},cg={...yg,emStrongRDelimAst:vq,emStrongLDelim:gq,delLDelim:xq,delRDelim:zq,url:Te(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",O2).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:Te(/^(`+|~+|[^`~])(?:(?=[`~])|(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",O2).getRegex()},Aq={...cg,br:Te(K2).replace("{2,}","*").getRegex(),text:Te(cg.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},Sh={normal:bg,gfm:aq,pedantic:sq},Fc={normal:yg,gfm:cg,breaks:Aq,pedantic:$q},Mq={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},P2=o=>Mq[o];function Pn(o,i){if(i){if(Dr.escapeTest.test(o))return o.replace(Dr.escapeReplace,P2)}else if(Dr.escapeTestNoEncode.test(o))return o.replace(Dr.escapeReplaceNoEncode,P2);return o}function H2(o){try{o=encodeURI(o).replace(Dr.percentDecode,"%")}catch{return null}return o}function F2(o,i){let t=o.replace(Dr.findPipe,(a,s,l)=>{let p=!1,h=s;for(;--h>=0&&l[h]==="\\";)p=!p;return p?"|":" |"}),r=t.split(Dr.splitPipe),n=0;if(r[0].trim()||r.shift(),r.length>0&&!r.at(-1)?.trim()&&r.pop(),i)if(r.length>i)r.splice(i);else for(;r.length<i;)r.push("");for(;n<r.length;n++)r[n]=r[n].trim().replace(Dr.slashPipe,"|");return r}function ta(o,i,t){let r=o.length;if(r===0)return"";let n=0;for(;n<r;){let a=o.charAt(r-n-1);if(a===i&&!t)n++;else if(a!==i&&t)n++;else break}return o.slice(0,r-n)}function B2(o){let i=o.split(`
4648
4648
  `),t=i.length-1;for(;t>=0&&Dr.blankLine.test(i[t]);)t--;return i.length-t<=2?o:i.slice(0,t+1).join(`
4649
4649
  `)}function Lq(o,i){if(o.indexOf(i[1])===-1)return-1;let t=0;for(let r=0;r<o.length;r++)if(o[r]==="\\")r++;else if(o[r]===i[0])t++;else if(o[r]===i[1]&&(t--,t<0))return r;return t>0?-2:-1}function qq(o,i=0){let t=i,r="";for(let n of o)if(n===" "){let a=4-t%4;r+=" ".repeat(a),t+=a}else r+=n,t++;return r}function V2(o,i,t,r,n){let a=i.href,s=i.title||null,l=o[1].replace(n.other.outputLinkReplace,"$1");r.state.inLink=!0;let p={type:o[0].charAt(0)==="!"?"image":"link",raw:t,href:a,title:s,text:l,tokens:r.inlineTokens(l)};return r.state.inLink=!1,p}function Iq(o,i,t){let r=o.match(t.other.indentCodeCompensation);if(r===null)return i;let n=r[1];return i.split(`
@@ -4706,7 +4706,7 @@ ${this.parser.parse(o)}</blockquote>
4706
4706
  ${o}</tr>
4707
4707
  `}tablecell(o){let i=this.parser.parseInline(o.tokens),t=o.header?"th":"td";return(o.align?`<${t} align="${o.align}">`:`<${t}>`)+i+`</${t}>
4708
4708
  `}strong({tokens:o}){return`<strong>${this.parser.parseInline(o)}</strong>`}em({tokens:o}){return`<em>${this.parser.parseInline(o)}</em>`}codespan({text:o}){return`<code>${Pn(o,!0)}</code>`}br(o){return"<br>"}del({tokens:o}){return`<del>${this.parser.parseInline(o)}</del>`}link({href:o,title:i,tokens:t}){let r=this.parser.parseInline(t),n=H2(o);if(n===null)return r;o=n;let a='<a href="'+o+'"';return i&&(a+=' title="'+Pn(i)+'"'),a+=">"+r+"</a>",a}image({href:o,title:i,text:t,tokens:r}){r&&(t=this.parser.parseInline(r,this.parser.textRenderer));let n=H2(o);if(n===null)return Pn(t);o=n;let a=`<img src="${o}" alt="${Pn(t)}"`;return i&&(a+=` title="${Pn(i)}"`),a+=">",a}text(o){return"tokens"in o&&o.tokens?this.parser.parseInline(o.tokens):"escaped"in o&&o.escaped?o.text:Pn(o.text)}},xg=class{strong({text:o}){return o}em({text:o}){return o}codespan({text:o}){return o}del({text:o}){return o}html({text:o}){return o}text({text:o}){return o}link({text:o}){return""+o}image({text:o}){return""+o}br(){return""}checkbox({raw:o}){return o}},bn=class pg{constructor(i){V(this,"options");V(this,"renderer");V(this,"textRenderer");this.options=i||Ga,this.options.renderer=this.options.renderer||new Ah,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new xg}static parse(i,t){return new pg(t).parse(i)}static parseInline(i,t){return new pg(t).parseInline(i)}parse(i){this.renderer.parser=this;let t="";for(let r=0;r<i.length;r++){let n=i[r];if(this.options.extensions?.renderers?.[n.type]){let s=n,l=this.options.extensions.renderers[s.type].call({parser:this},s);if(l!==!1||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(s.type)){t+=l||"";continue}}let a=n;switch(a.type){case"space":{t+=this.renderer.space(a);break}case"hr":{t+=this.renderer.hr(a);break}case"heading":{t+=this.renderer.heading(a);break}case"code":{t+=this.renderer.code(a);break}case"table":{t+=this.renderer.table(a);break}case"blockquote":{t+=this.renderer.blockquote(a);break}case"list":{t+=this.renderer.list(a);break}case"checkbox":{t+=this.renderer.checkbox(a);break}case"html":{t+=this.renderer.html(a);break}case"def":{t+=this.renderer.def(a);break}case"paragraph":{t+=this.renderer.paragraph(a);break}case"text":{t+=this.renderer.text(a);break}default:{let s='Token with "'+a.type+'" type was not found.';if(this.options.silent)return console.error(s),"";throw new Error(s)}}}return t}parseInline(i,t=this.renderer){this.renderer.parser=this;let r="";for(let n=0;n<i.length;n++){let a=i[n];if(this.options.extensions?.renderers?.[a.type]){let l=this.options.extensions.renderers[a.type].call({parser:this},a);if(l!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(a.type)){r+=l||"";continue}}let s=a;switch(s.type){case"escape":{r+=t.text(s);break}case"html":{r+=t.html(s);break}case"link":{r+=t.link(s);break}case"image":{r+=t.image(s);break}case"checkbox":{r+=t.checkbox(s);break}case"strong":{r+=t.strong(s);break}case"em":{r+=t.em(s);break}case"codespan":{r+=t.codespan(s);break}case"br":{r+=t.br(s);break}case"del":{r+=t.del(s);break}case"text":{r+=t.text(s);break}default:{let l='Token with "'+s.type+'" type was not found.';if(this.options.silent)return console.error(l),"";throw new Error(l)}}}return r}},Eh,Bc=(Eh=class{constructor(o){V(this,"options");V(this,"block");this.options=o||Ga}preprocess(o){return o}postprocess(o){return o}processAllTokens(o){return o}emStrongMask(o){return o}provideLexer(o=this.block){return o?gn.lex:gn.lexInline}provideParser(o=this.block){return o?bn.parse:bn.parseInline}},V(Eh,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens","emStrongMask"])),V(Eh,"passThroughHooksRespectAsync",new Set(["preprocess","postprocess","processAllTokens"])),Eh),Dq=class{constructor(...o){V(this,"defaults",hg());V(this,"options",this.setOptions);V(this,"parse",this.parseMarkdown(!0));V(this,"parseInline",this.parseMarkdown(!1));V(this,"Parser",bn);V(this,"Renderer",Ah);V(this,"TextRenderer",xg);V(this,"Lexer",gn);V(this,"Tokenizer",$h);V(this,"Hooks",Bc);this.use(...o)}walkTokens(o,i){let t=[];for(let r of o)switch(t=t.concat(i.call(this,r)),r.type){case"table":{let n=r;for(let a of n.header)t=t.concat(this.walkTokens(a.tokens,i));for(let a of n.rows)for(let s of a)t=t.concat(this.walkTokens(s.tokens,i));break}case"list":{let n=r;t=t.concat(this.walkTokens(n.items,i));break}default:{let n=r;this.defaults.extensions?.childTokens?.[n.type]?this.defaults.extensions.childTokens[n.type].forEach(a=>{let s=n[a].flat(1/0);t=t.concat(this.walkTokens(s,i))}):n.tokens&&(t=t.concat(this.walkTokens(n.tokens,i)))}}return t}use(...o){let i=this.defaults.extensions||{renderers:{},childTokens:{}};return o.forEach(t=>{let r={...t};if(r.async=this.defaults.async||r.async||!1,t.extensions&&(t.extensions.forEach(n=>{if(!n.name)throw new Error("extension name required");if("renderer"in n){let a=i.renderers[n.name];a?i.renderers[n.name]=function(...s){let l=n.renderer.apply(this,s);return l===!1&&(l=a.apply(this,s)),l}:i.renderers[n.name]=n.renderer}if("tokenizer"in n){if(!n.level||n.level!=="block"&&n.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let a=i[n.level];a?a.unshift(n.tokenizer):i[n.level]=[n.tokenizer],n.start&&(n.level==="block"?i.startBlock?i.startBlock.push(n.start):i.startBlock=[n.start]:n.level==="inline"&&(i.startInline?i.startInline.push(n.start):i.startInline=[n.start]))}"childTokens"in n&&n.childTokens&&(i.childTokens[n.name]=n.childTokens)}),r.extensions=i),t.renderer){let n=this.defaults.renderer||new Ah(this.defaults);for(let a in t.renderer){if(!(a in n))throw new Error(`renderer '${a}' does not exist`);if(["options","parser"].includes(a))continue;let s=a,l=t.renderer[s],p=n[s];n[s]=(...h)=>{let m=l.apply(n,h);return m===!1&&(m=p.apply(n,h)),m||""}}r.renderer=n}if(t.tokenizer){let n=this.defaults.tokenizer||new $h(this.defaults);for(let a in t.tokenizer){if(!(a in n))throw new Error(`tokenizer '${a}' does not exist`);if(["options","rules","lexer"].includes(a))continue;let s=a,l=t.tokenizer[s],p=n[s];n[s]=(...h)=>{let m=l.apply(n,h);return m===!1&&(m=p.apply(n,h)),m}}r.tokenizer=n}if(t.hooks){let n=this.defaults.hooks||new Bc;for(let a in t.hooks){if(!(a in n))throw new Error(`hook '${a}' does not exist`);if(["options","block"].includes(a))continue;let s=a,l=t.hooks[s],p=n[s];Bc.passThroughHooks.has(a)?n[s]=h=>{if(this.defaults.async&&Bc.passThroughHooksRespectAsync.has(a))return(async()=>{let f=await l.call(n,h);return p.call(n,f)})();let m=l.call(n,h);return p.call(n,m)}:n[s]=(...h)=>{if(this.defaults.async)return(async()=>{let f=await l.apply(n,h);return f===!1&&(f=await p.apply(n,h)),f})();let m=l.apply(n,h);return m===!1&&(m=p.apply(n,h)),m}}r.hooks=n}if(t.walkTokens){let n=this.defaults.walkTokens,a=t.walkTokens;r.walkTokens=function(s){let l=[];return l.push(a.call(this,s)),n&&(l=l.concat(n.call(this,s))),l}}this.defaults={...this.defaults,...r}}),this}setOptions(o){return this.defaults={...this.defaults,...o},this}lexer(o,i){return gn.lex(o,i??this.defaults)}parser(o,i){return bn.parse(o,i??this.defaults)}parseMarkdown(o){return(i,t)=>{let r={...t},n={...this.defaults,...r},a=this.onError(!!n.silent,!!n.async);if(this.defaults.async===!0&&r.async===!1)return a(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof i>"u"||i===null)return a(new Error("marked(): input parameter is undefined or null"));if(typeof i!="string")return a(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(i)+", string expected"));if(n.hooks&&(n.hooks.options=n,n.hooks.block=o),n.async)return(async()=>{let s=n.hooks?await n.hooks.preprocess(i):i,l=await(n.hooks?await n.hooks.provideLexer(o):o?gn.lex:gn.lexInline)(s,n),p=n.hooks?await n.hooks.processAllTokens(l):l;n.walkTokens&&await Promise.all(this.walkTokens(p,n.walkTokens));let h=await(n.hooks?await n.hooks.provideParser(o):o?bn.parse:bn.parseInline)(p,n);return n.hooks?await n.hooks.postprocess(h):h})().catch(a);try{n.hooks&&(i=n.hooks.preprocess(i));let s=(n.hooks?n.hooks.provideLexer(o):o?gn.lex:gn.lexInline)(i,n);n.hooks&&(s=n.hooks.processAllTokens(s)),n.walkTokens&&this.walkTokens(s,n.walkTokens);let l=(n.hooks?n.hooks.provideParser(o):o?bn.parse:bn.parseInline)(s,n);return n.hooks&&(l=n.hooks.postprocess(l)),l}catch(s){return a(s)}}}onError(o,i){return t=>{if(t.message+=`
4709
- Please report this to https://github.com/markedjs/marked.`,o){let r="<p>An error occurred:</p><pre>"+Pn(t.message+"",!0)+"</pre>";return i?Promise.resolve(r):r}if(i)return Promise.reject(t);throw t}}},ja=new Dq;function Fe(o,i){return ja.parse(o,i)}Fe.options=Fe.setOptions=function(o){return ja.setOptions(o),Fe.defaults=ja.defaults,U2(Fe.defaults),Fe};Fe.getDefaults=hg;Fe.defaults=Ga;Fe.use=function(...o){return ja.use(...o),Fe.defaults=ja.defaults,U2(Fe.defaults),Fe};Fe.walkTokens=function(o,i){return ja.walkTokens(o,i)};Fe.parseInline=ja.parseInline;Fe.Parser=bn;Fe.parser=bn.parse;Fe.Renderer=Ah;Fe.TextRenderer=xg;Fe.Lexer=gn;Fe.lexer=gn.lex;Fe.Tokenizer=$h;Fe.Hooks=Bc;Fe.parse=Fe;var m5e=Fe.options,f5e=Fe.setOptions,g5e=Fe.use,b5e=Fe.walkTokens,v5e=Fe.parseInline;var y5e=bn.parse,x5e=gn.lex;var ek=_`@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)}.panel{border:1px solid rgb(var(--zn-border-color));background-color:rgba(var(--zn-panel),var(--zn-panel-opacity));border-radius:var(--zn-border-radius)}.markdown-editor{display:flex;flex-direction:column;gap:var(--zn-spacing-small);width:100%;height:100%;min-height:0}:host([expanded]){position:absolute;top:10px;bottom:10px;left:var(--zn-sp-padding);right:var(--zn-sp-padding);z-index:var(--zn-z-index-editor-action,1000000)}:host([expanded]) .panel,:host([expanded]) .panel__inner,:host([expanded]) .panel__content,:host([expanded]) .panel__body{height:100%;max-height:100%}:host([expanded]) .markdown-editor{height:100%}.markdown-editor__label{font-size:var(--zn-input-label-font-size-medium);color:var(--zn-input-label-color);font-weight:var(--zn-font-weight-semibold)}.markdown-editor__toolbar{display:flex;align-items:end;gap:var(--zn-spacing-small);justify-content:flex-end;flex-wrap:wrap}.markdown-editor__markdown-link{display:inline-flex;align-items:center;gap:var(--zn-spacing-x-small);margin-right:auto;font-size:var(--zn-input-label-font-size-small);line-height:1;color:var(--zn-color-neutral-500,#656d76);text-decoration:none;cursor:pointer;transition:color 0.15s ease;padding-left:var(--zn-spacing-x-small)}.markdown-editor__markdown-link:hover{color:var(--zn-color-primary-600,#0969da)}.markdown-editor__markdown-link span{white-space:nowrap}.markdown-editor__view-toggle{display:inline-flex}.markdown-editor__body{display:flex;flex:1;min-height:0;gap:var(--zn-spacing-medium)}.markdown-editor__editor,.markdown-editor__preview-wrapper{flex:1;min-width:0;min-height:0;display:flex}.markdown-editor__editor[hidden],.markdown-editor__preview-wrapper[hidden]{display:none}.markdown-editor__editor zn-textarea{flex:1;width:100%}.markdown-editor__preview-wrapper{overflow:hidden}.markdown-editor__preview{flex:1;background:var(--zn-color-neutral-0,white);border:1px solid var(--zn-color-neutral-200);border-radius:var(--zn-border-radius);padding:var(--zn-spacing-x-large);overflow-y:auto;font-family:inherit;line-height:1.7;color:var(--zn-color-text,#222)}.markdown-editor__preview h1{font-size:1.8em;margin:0.8em 0 0.4em;border-bottom:1px solid var(--zn-color-neutral-200);padding-bottom:0.3em}.markdown-editor__preview h2{font-size:1.5em;margin:0.8em 0 0.4em;border-bottom:1px solid var(--zn-color-neutral-200);padding-bottom:0.2em}.markdown-editor__preview h3{font-size:1.25em;margin:0.7em 0 0.3em}.markdown-editor__preview h4,.markdown-editor__preview h5,.markdown-editor__preview h6{font-size:1.1em;margin:0.6em 0 0.3em}.markdown-editor__preview p{margin:0.6em 0}.markdown-editor__preview ul,.markdown-editor__preview ol{margin:0.6em 0;padding-left:2em;display:block}.markdown-editor__preview ul{list-style-type:disc}.markdown-editor__preview ol{list-style-type:decimal}.markdown-editor__preview ul ul{list-style-type:circle}.markdown-editor__preview ul ul ul{list-style-type:square}.markdown-editor__preview li{margin:0.2em 0;display:list-item}.markdown-editor__preview blockquote{border-left:4px solid var(--zn-color-neutral-300);margin:0.8em 0;padding:0.4em 1em;color:var(--zn-color-neutral-600,#555)}.markdown-editor__preview table{border-collapse:collapse;width:100%;margin:0.8em 0}.markdown-editor__preview th,.markdown-editor__preview td{border:1px solid var(--zn-color-neutral-300);padding:0.4em 0.8em;text-align:left}.markdown-editor__preview th{background:var(--zn-color-neutral-100);font-weight:bold}.markdown-editor__preview code{background:var(--zn-color-neutral-100);padding:0.15em 0.4em;border-radius:3px;font-size:0.9em}.markdown-editor__preview pre{background:var(--zn-color-neutral-100);padding:1em;border-radius:4px;overflow-x:auto}.markdown-editor__preview pre code{background:none;padding:0}.markdown-editor__preview hr{border:none;border-top:1px solid var(--zn-color-neutral-300);margin:1.5em 0}.markdown-editor__preview a{color:var(--zn-color-primary-600)}.markdown-editor__help-text{font-size:var(--zn-input-help-text-font-size-medium);color:var(--zn-input-help-text-color)}`;var Rq=[{mode:"editor",icon:"edit_note",label:"Editor"},{mode:"split",icon:"vertical_split",label:"Split"},{mode:"preview",icon:"visibility",label:"Preview"}],dt=class extends at{constructor(){super(...arguments);this.formControlController=new re(this,{assumeInteractionOn:["zn-input","zn-change"]});this.markdownSlotController=new Y(this,"label","help-text","actions","footer");this.debounceTimer=null;this.name="";this.value="";this.defaultValue="";this.label="";this.helpText="";this.placeholder="Enter markdown content...";this.rows=20;this.viewMode="editor";this.storageKey="zn-markdown-editor-view-mode";this.required=!1;this.readonly=!1;this.disabled=!1;this.expanded=!1;this.handleInput=()=>{this.value=this.textarea.value,this.emit("zn-input"),this.debounceTimer&&clearTimeout(this.debounceTimer),this.debounceTimer=setTimeout(()=>this.renderPreview(),150)};this.handleChange=()=>{this.value=this.textarea.value,this.emit("zn-change"),this.renderPreview()};this.handleViewToggle=t=>{let n=t.target.closest("[data-mode]")?.dataset.mode;!n||n===this.viewMode||(this.viewMode=n)};this.handleExpandToggle=()=>{this.expanded=!this.expanded}}get validity(){return this.textarea?.validity}get validationMessage(){return this.textarea?.validationMessage??""}checkValidity(){return this.textarea?.checkValidity()??!0}getForm(){return this.formControlController.getForm()}reportValidity(){return this.textarea?.reportValidity()??!0}setCustomValidity(t){this.textarea?.setCustomValidity(t),this.formControlController.updateValidity()}focus(t){this.textarea?.focus(t)}blur(){this.textarea?.blur()}connectedCallback(){if(super.connectedCallback(),!this.hasAttribute("value")&&!this.value){let r=Array.from(this.childNodes).filter(s=>s.nodeType===Node.TEXT_NODE),a=r.map(s=>s.textContent??"").join("").replace(/\r\n/g,`
4709
+ Please report this to https://github.com/markedjs/marked.`,o){let r="<p>An error occurred:</p><pre>"+Pn(t.message+"",!0)+"</pre>";return i?Promise.resolve(r):r}if(i)return Promise.reject(t);throw t}}},ja=new Dq;function Fe(o,i){return ja.parse(o,i)}Fe.options=Fe.setOptions=function(o){return ja.setOptions(o),Fe.defaults=ja.defaults,U2(Fe.defaults),Fe};Fe.getDefaults=hg;Fe.defaults=Ga;Fe.use=function(...o){return ja.use(...o),Fe.defaults=ja.defaults,U2(Fe.defaults),Fe};Fe.walkTokens=function(o,i){return ja.walkTokens(o,i)};Fe.parseInline=ja.parseInline;Fe.Parser=bn;Fe.parser=bn.parse;Fe.Renderer=Ah;Fe.TextRenderer=xg;Fe.Lexer=gn;Fe.lexer=gn.lex;Fe.Tokenizer=$h;Fe.Hooks=Bc;Fe.parse=Fe;var m5e=Fe.options,f5e=Fe.setOptions,g5e=Fe.use,b5e=Fe.walkTokens,v5e=Fe.parseInline;var y5e=bn.parse,x5e=gn.lex;var ek=_`@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)}.panel{border:1px solid rgb(var(--zn-border-color));background-color:rgba(var(--zn-panel),var(--zn-panel-opacity));border-radius:var(--zn-border-radius)}.markdown-editor{display:flex;flex-direction:column;gap:var(--zn-spacing-small);width:100%;height:100%;min-height:0}:host([expanded]){position:absolute;top:10px;bottom:10px;left:var(--zn-sp-padding);right:var(--zn-sp-padding);z-index:var(--zn-z-index-editor-action,1000000)}:host([expanded]) .panel,:host([expanded]) .panel__inner,:host([expanded]) .panel__content,:host([expanded]) .panel__body{height:100%;max-height:100%}:host([expanded]) .markdown-editor{height:100%}.markdown-editor__label{font-size:var(--zn-input-label-font-size-medium);color:var(--zn-input-label-color);font-weight:var(--zn-font-weight-semibold)}.markdown-editor__toolbar{display:flex;align-items:end;gap:var(--zn-spacing-small);justify-content:flex-end;flex-wrap:wrap}.markdown-editor__markdown-link{display:inline-flex;align-items:center;gap:var(--zn-spacing-x-small);margin-right:auto;font-size:var(--zn-input-label-font-size-small);line-height:1;color:var(--zn-color-neutral-500,#656d76);text-decoration:none;cursor:pointer;transition:color 0.15s ease;padding-left:var(--zn-spacing-x-small)}.markdown-editor__markdown-link:hover{color:var(--zn-color-primary-600,#0969da)}.markdown-editor__markdown-link span{white-space:nowrap}.markdown-editor__view-toggle{display:inline-flex}.markdown-editor__body{display:flex;flex:1;min-height:0;gap:var(--zn-spacing-medium)}.markdown-editor__editor,.markdown-editor__preview-wrapper{flex:1;min-width:0;min-height:0;display:flex}.markdown-editor__editor[hidden],.markdown-editor__preview-wrapper[hidden]{display:none}.markdown-editor__editor zn-textarea{flex:1;width:100%}.markdown-editor__preview-wrapper{overflow:hidden}.markdown-editor__preview{flex:1;background:var(--zn-color-neutral-0,white);border:1px solid var(--zn-color-neutral-200);border-radius:var(--zn-border-radius);padding:var(--zn-spacing-x-large);overflow-y:auto;font-family:inherit;line-height:1.7;color:var(--zn-color-text,#222)}.markdown-editor__preview h1{font-size:1.8em;margin:0.8em 0 0.4em;border-bottom:1px solid var(--zn-color-neutral-200);padding-bottom:0.3em}.markdown-editor__preview h2{font-size:1.5em;margin:0.8em 0 0.4em;border-bottom:1px solid var(--zn-color-neutral-200);padding-bottom:0.2em}.markdown-editor__preview h3{font-size:1.25em;margin:0.7em 0 0.3em}.markdown-editor__preview h4,.markdown-editor__preview h5,.markdown-editor__preview h6{font-size:1.1em;margin:0.6em 0 0.3em}.markdown-editor__preview p{margin:0.6em 0}.markdown-editor__preview ul,.markdown-editor__preview ol{margin:0.6em 0;padding-left:2em;display:block}.markdown-editor__preview ul{list-style-type:disc}.markdown-editor__preview ol{list-style-type:decimal}.markdown-editor__preview ul ul{list-style-type:circle}.markdown-editor__preview ul ul ul{list-style-type:square}.markdown-editor__preview li{margin:0.2em 0;display:list-item}.markdown-editor__preview blockquote{border-left:4px solid var(--zn-color-neutral-300);margin:0.8em 0;padding:0.4em 1em;color:var(--zn-color-neutral-600,#555)}.markdown-editor__preview table{border-collapse:collapse;width:100%;margin:0.8em 0}.markdown-editor__preview th,.markdown-editor__preview td{border:1px solid var(--zn-color-neutral-300);padding:0.4em 0.8em;text-align:left}.markdown-editor__preview th{background:var(--zn-color-neutral-100);font-weight:bold}.markdown-editor__preview code{background:var(--zn-color-neutral-100);padding:0.15em 0.4em;border-radius:3px;font-size:0.9em}.markdown-editor__preview pre{background:var(--zn-color-neutral-100);padding:1em;border-radius:4px;overflow-x:auto}.markdown-editor__preview pre code{background:none;padding:0}.markdown-editor__preview hr{border:none;border-top:1px solid var(--zn-color-neutral-300);margin:1.5em 0}.markdown-editor__preview a{color:var(--zn-color-primary-600)}.markdown-editor__help-text{font-size:var(--zn-input-help-text-font-size-medium);color:var(--zn-input-help-text-color)}`;var Rq=[{mode:"editor",icon:"edit_note",label:"Editor"},{mode:"split",icon:"vertical_split",label:"Split"},{mode:"preview",icon:"visibility",label:"Preview"}],dt=class extends Ze{constructor(){super(...arguments);this.formControlController=new re(this,{assumeInteractionOn:["zn-input","zn-change"]});this.markdownSlotController=new Y(this,"label","help-text","actions","footer");this.debounceTimer=null;this.name="";this.value="";this.defaultValue="";this.label="";this.helpText="";this.placeholder="Enter markdown content...";this.rows=20;this.viewMode="editor";this.storageKey="zn-markdown-editor-view-mode";this.required=!1;this.readonly=!1;this.disabled=!1;this.expanded=!1;this.handleInput=()=>{this.value=this.textarea.value,this.emit("zn-input"),this.debounceTimer&&clearTimeout(this.debounceTimer),this.debounceTimer=setTimeout(()=>this.renderPreview(),150)};this.handleChange=()=>{this.value=this.textarea.value,this.emit("zn-change"),this.renderPreview()};this.handleViewToggle=t=>{let n=t.target.closest("[data-mode]")?.dataset.mode;!n||n===this.viewMode||(this.viewMode=n)};this.handleExpandToggle=()=>{this.expanded=!this.expanded}}get validity(){return this.textarea?.validity}get validationMessage(){return this.textarea?.validationMessage??""}checkValidity(){return this.textarea?.checkValidity()??!0}getForm(){return this.formControlController.getForm()}reportValidity(){return this.textarea?.reportValidity()??!0}setCustomValidity(t){this.textarea?.setCustomValidity(t),this.formControlController.updateValidity()}focus(t){this.textarea?.focus(t)}blur(){this.textarea?.blur()}connectedCallback(){if(super.connectedCallback(),!this.hasAttribute("value")&&!this.value){let r=Array.from(this.childNodes).filter(s=>s.nodeType===Node.TEXT_NODE),a=r.map(s=>s.textContent??"").join("").replace(/\r\n/g,`
4710
4710
  `).trim();a.length>0&&(this.value=a,this.defaultValue=a,r.forEach(s=>{(s.textContent??"").trim().length>0&&s.parentNode?.removeChild(s)}))}let t=this.readStoredViewMode();t&&(this.viewMode=t),this.addEventListener("toggle",this.handleExpandToggle)}disconnectedCallback(){super.disconnectedCallback(),this.debounceTimer&&clearTimeout(this.debounceTimer),this.removeEventListener("toggle",this.handleExpandToggle)}firstUpdated(t){super.firstUpdated(t),this.formControlController.updateValidity(),this.viewMode!=="editor"&&this.renderPreview()}readStoredViewMode(){if(!this.storageKey)return null;try{let t=localStorage.getItem(this.storageKey);if(t==="editor"||t==="split"||t==="preview")return t}catch{}return null}writeStoredViewMode(t){if(this.storageKey)try{localStorage.setItem(this.storageKey,t)}catch{}}renderPreview(){if(this.viewMode==="editor"||!this.previewEl)return;let t=Fe.parse(this.value||"",{async:!1});this.previewEl.innerHTML=typeof t=="string"?t:""}async handleViewModeChange(){await this.updateComplete,this.writeStoredViewMode(this.viewMode),this.renderPreview(),this.dispatchEvent(new CustomEvent("zn-view-mode-change",{bubbles:!0,composed:!0,detail:{mode:this.viewMode}}))}async handleValueChange(){await this.updateComplete,this.formControlController.updateValidity(),this.renderPreview()}handleMarkedReady(){this.renderPreview()}render(){let t=this.markdownSlotController.test("label"),r=this.markdownSlotController.test("help-text"),n=this.markdownSlotController.test("actions"),a=this.markdownSlotController.test("footer"),s=!!this.label||t,l=!!this.helpText||r,p=!!this.caption||n,h=this.viewMode==="editor"||this.viewMode==="split",m=this.viewMode==="preview"||this.viewMode==="split";return u`
4711
4711
  <div part="base" class=${M({panel:!0,"panel--flush":this.flush||this.tabbed,"panel--flush-x":this.flushX,"panel--flush-y":this.flushY,"panel--flush-footer":this.flushFooter,"panel--tabbed":this.tabbed,"panel--transparent":this.transparent,"panel--has-actions":n,"panel--has-footer":a,"panel--has-header":p,"panel--cosmic":this.cosmic,"panel--shadow":this.shadow})}>
4712
4712
 
@@ -4805,7 +4805,7 @@ Please report this to https://github.com/markedjs/marked.`,o){let r="<p>An error
4805
4805
  tooltip=${n}
4806
4806
  aria-pressed=${a?"true":"false"}
4807
4807
  ></zn-button>
4808
- `}};dt.styles=[at.styles,z(ek)],c([F("zn-textarea")],dt.prototype,"textarea",2),c([F(".markdown-editor__preview")],dt.prototype,"previewEl",2),c([d()],dt.prototype,"name",2),c([d()],dt.prototype,"value",2),c([Ce()],dt.prototype,"defaultValue",2),c([d()],dt.prototype,"label",2),c([d({attribute:"help-text"})],dt.prototype,"helpText",2),c([d()],dt.prototype,"placeholder",2),c([d({type:Number})],dt.prototype,"rows",2),c([d({reflect:!0,attribute:"view-mode"})],dt.prototype,"viewMode",2),c([d({attribute:"storage-key"})],dt.prototype,"storageKey",2),c([d({type:Boolean,reflect:!0})],dt.prototype,"required",2),c([d({type:Boolean,reflect:!0})],dt.prototype,"readonly",2),c([d({type:Boolean,reflect:!0})],dt.prototype,"disabled",2),c([d({type:Boolean,reflect:!0})],dt.prototype,"expanded",2),c([K("viewMode",{waitUntilFirstUpdate:!0})],dt.prototype,"handleViewModeChange",1),c([K("value",{waitUntilFirstUpdate:!0})],dt.prototype,"handleValueChange",1),c([K("markedReady",{waitUntilFirstUpdate:!0})],dt.prototype,"handleMarkedReady",1);var Nq=dt;dt.define("zn-markdown-editor");var wg=[{id:"text",label:"Text"},{id:"inline",label:"Inline"},{id:"lists",label:"Lists"},{id:"admonitions",label:"Admonitions"},{id:"blocks",label:"Blocks"},{id:"structured",label:"Structured"},{id:"media",label:"Media"},{id:"objects",label:"Objects"},{id:"breaks",label:"Breaks"},{id:"logic",label:"Logic"}],zg=[{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:`____
4808
+ `}};dt.styles=[Ze.styles,z(ek)],c([F("zn-textarea")],dt.prototype,"textarea",2),c([F(".markdown-editor__preview")],dt.prototype,"previewEl",2),c([d()],dt.prototype,"name",2),c([d()],dt.prototype,"value",2),c([Ce()],dt.prototype,"defaultValue",2),c([d()],dt.prototype,"label",2),c([d({attribute:"help-text"})],dt.prototype,"helpText",2),c([d()],dt.prototype,"placeholder",2),c([d({type:Number})],dt.prototype,"rows",2),c([d({reflect:!0,attribute:"view-mode"})],dt.prototype,"viewMode",2),c([d({attribute:"storage-key"})],dt.prototype,"storageKey",2),c([d({type:Boolean,reflect:!0})],dt.prototype,"required",2),c([d({type:Boolean,reflect:!0})],dt.prototype,"readonly",2),c([d({type:Boolean,reflect:!0})],dt.prototype,"disabled",2),c([d({type:Boolean,reflect:!0})],dt.prototype,"expanded",2),c([K("viewMode",{waitUntilFirstUpdate:!0})],dt.prototype,"handleViewModeChange",1),c([K("value",{waitUntilFirstUpdate:!0})],dt.prototype,"handleValueChange",1),c([K("markedReady",{waitUntilFirstUpdate:!0})],dt.prototype,"handleMarkedReady",1);var Nq=dt;dt.define("zn-markdown-editor");var wg=[{id:"text",label:"Text"},{id:"inline",label:"Inline"},{id:"lists",label:"Lists"},{id:"admonitions",label:"Admonitions"},{id:"blocks",label:"Blocks"},{id:"structured",label:"Structured"},{id:"media",label:"Media"},{id:"objects",label:"Objects"},{id:"breaks",label:"Breaks"},{id:"logic",label:"Logic"}],zg=[{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:`____
4809
4809
 
4810
4810
  ____`,caretOffset:5},{key:"verse",label:"Verse",icon:"feather@lu",group:"blocks",prefix:`[verse]
4811
4811
  ____
@@ -5091,7 +5091,7 @@ ${n}`:""}</li></ol>`};return t(0)}parseTable(i,t){this.index++;let r=[],n=[];for
5091
5091
  <zn-button type="button" icon-button="small" plain icon="x@lu"
5092
5092
  tooltip="Cancel"
5093
5093
  @click=${this.closeImagePicker}></zn-button>
5094
- </div>`}};me.styles=z(lk),me.dependencies={"zn-dropdown":pr,"zn-menu":on,"zn-menu-item":xi,"zn-slash-menu":Ca},c([F(".remarkd-editor__validation")],me.prototype,"validationInput",2),c([F("zn-slash-menu")],me.prototype,"slashMenuElement",2),c([R()],me.prototype,"blocks",2),c([R()],me.prototype,"editingIndex",2),c([d({attribute:"slash-recent-key"})],me.prototype,"slashRecentKey",2),c([R()],me.prototype,"hasSlashMenu",2),c([R()],me.prototype,"imagePickerIndex",2),c([R()],me.prototype,"imageEdit",2),c([R()],me.prototype,"dropIndicator",2),c([R()],me.prototype,"dragIndex",2),c([R()],me.prototype,"editShell",2),c([R()],me.prototype,"rawMode",2),c([R()],me.prototype,"includeOptions",2),c([R()],me.prototype,"includeLoadFailed",2),c([R()],me.prototype,"includePickerIndex",2),c([R()],me.prototype,"includeQuery",2),c([R()],me.prototype,"linkPickerOpen",2),c([R()],me.prototype,"linkQuery",2),c([R()],me.prototype,"linkResults",2),c([R()],me.prototype,"linkSearchFailed",2),c([d()],me.prototype,"name",2),c([d()],me.prototype,"value",2),c([Ce()],me.prototype,"defaultValue",2),c([d()],me.prototype,"placeholder",2),c([d({attribute:"attachment-url"})],me.prototype,"attachmentUrl",2),c([d({attribute:"include-url"})],me.prototype,"includeUrl",2),c([d({attribute:"link-url"})],me.prototype,"linkUrl",2),c([d({type:Boolean,attribute:"allow-raw",reflect:!0})],me.prototype,"allowRaw",2),c([d({type:Boolean,reflect:!0})],me.prototype,"required",2),c([d({type:Boolean,reflect:!0})],me.prototype,"readonly",2),c([d({type:Boolean,reflect:!0})],me.prototype,"disabled",2),c([K("value")],me.prototype,"handleValueChange",1),c([K("includeUrl",{waitUntilFirstUpdate:!0})],me.prototype,"handleIncludeUrlChange",1),c([K("linkUrl",{waitUntilFirstUpdate:!0})],me.prototype,"handleLinkUrlChange",1);var lI=me;me.define("zn-remarkd-editor");var cI={},Sg=yt(class extends rr{constructor(){super(...arguments),this.ot=cI}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 dI={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 Eg(o){return o.label??dI[o.value]??o.value}var pI=[];function wk(o){let i=o.data?.conditions;return Array.isArray(i)?i:pI}var vk={id:"in"},Dh={id:"out"},Kc="__new__",al="application/x-zn-flow-type",Ih;function Rh(){return Ih||(Ih=new Image,Ih.src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"),Ih}var bt=240,ar=60,Tg=bt+80,hI=Tg-bt,uI=40,mI=20,$g=40,fI=40,gI=40,yk=240,bI=20,vI=20,yI=20,xI=240;function Ag(o,i,t,r=!1){let n=o.y+ar,a=n+$g;if(t&&t.y>=n){if(t.y-n>xI)return a;let s=r?n+yI:a,l=Math.round((n+t.y)/2-i/2);return Math.max(s,Math.min(l,t.y-vI-i))}return a+fI}function Nh(o){let i=o.length*7.2,t=Math.max(1,Math.ceil(i/(yk-36)));return{w:Math.min(yk,Math.round(36+i)),h:gI+(t-1)*bI}}var Jt=20;function Rr(o){return Math.round(o/Jt)*Jt}var zk=10,wI=4,zI=20;function Mg(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 xk(o,i){return i?bt/2:o.label?Nh(o.label).w/2:mI}function Yc(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]?hI:uI,b=xk(r[m-1],a[m-1])+xk(r[m],a[m])+f;s.push(s[m-1]+Rr(b))}let l=s.filter((m,f)=>a[f]),p=l.length?l:s,h=(Math.min(...p)+Math.max(...p))/2;return s.map(m=>Math.round(n+m-h))}function Wc(o,i,t,r){let n=[{x:o.x,y:o.y,w:bt,h:ar,m:zk}],a=Zt(o,i(o.type)),s=Yc(o,i,r);return a.forEach((l,p)=>{if(!l.label)return;let h=Nh(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[p]-h.w/2,y:Ag(o,h.h,f,a.length===1),w:h.w,h:h.h+zI,m:wI})}),n}function _k(o,i,t,r,n){let a=Wc(o,t,r,n);return Wc(i,t,r,n).some(s=>a.some(l=>Mg(l,s)))}function Oh(o,i,t,r){let n=Wc(o,i,t,r).slice(1);return n.length?t.some(a=>a.id!==o.id&&Wc(a,i,t,r).some(s=>n.some(l=>Mg(l,s)))):!1}function kk(o,i,t,r,n){let a={x:o.x,y:o.y,w:bt,h:ar,m:zk};return Wc(i,t,r,n).some(s=>Mg(a,s))}var Lg=200,qg=120,Ck=120,Sk=80;function Ek(o,i,t,r){return{x:o.x+bt*(t+1)/(r+1),y:o.y+(i==="in"?0:ar)}}function Tk(){return{nodes:[],connections:[],notes:[]}}function Ph(o){return o?o.inputs??[vk]:[vk]}function Ig(o){return o?o.outputs??[Dh]:[Dh]}function ra(o,i){return o.inputs??Ph(i)}function Zt(o,i){return o.outputs??Ig(i)}function Qc(o,i){return ra(o,i)[0]?.id??null}function $k(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 ia(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,p=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)||p(m.target.node);l.delete(h)};return o.filter(h=>!n.has(h.id)).forEach(h=>p(h.id)),o.forEach(h=>{s.has(h.id)||p(h.id)}),a}var Ak=_`@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 Ki=class Ki extends k{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`
5094
+ </div>`}};me.styles=z(lk),me.dependencies={"zn-dropdown":pr,"zn-menu":on,"zn-menu-item":xi,"zn-slash-menu":Ca},c([F(".remarkd-editor__validation")],me.prototype,"validationInput",2),c([F("zn-slash-menu")],me.prototype,"slashMenuElement",2),c([D()],me.prototype,"blocks",2),c([D()],me.prototype,"editingIndex",2),c([d({attribute:"slash-recent-key"})],me.prototype,"slashRecentKey",2),c([D()],me.prototype,"hasSlashMenu",2),c([D()],me.prototype,"imagePickerIndex",2),c([D()],me.prototype,"imageEdit",2),c([D()],me.prototype,"dropIndicator",2),c([D()],me.prototype,"dragIndex",2),c([D()],me.prototype,"editShell",2),c([D()],me.prototype,"rawMode",2),c([D()],me.prototype,"includeOptions",2),c([D()],me.prototype,"includeLoadFailed",2),c([D()],me.prototype,"includePickerIndex",2),c([D()],me.prototype,"includeQuery",2),c([D()],me.prototype,"linkPickerOpen",2),c([D()],me.prototype,"linkQuery",2),c([D()],me.prototype,"linkResults",2),c([D()],me.prototype,"linkSearchFailed",2),c([d()],me.prototype,"name",2),c([d()],me.prototype,"value",2),c([Ce()],me.prototype,"defaultValue",2),c([d()],me.prototype,"placeholder",2),c([d({attribute:"attachment-url"})],me.prototype,"attachmentUrl",2),c([d({attribute:"include-url"})],me.prototype,"includeUrl",2),c([d({attribute:"link-url"})],me.prototype,"linkUrl",2),c([d({type:Boolean,attribute:"allow-raw",reflect:!0})],me.prototype,"allowRaw",2),c([d({type:Boolean,reflect:!0})],me.prototype,"required",2),c([d({type:Boolean,reflect:!0})],me.prototype,"readonly",2),c([d({type:Boolean,reflect:!0})],me.prototype,"disabled",2),c([K("value")],me.prototype,"handleValueChange",1),c([K("includeUrl",{waitUntilFirstUpdate:!0})],me.prototype,"handleIncludeUrlChange",1),c([K("linkUrl",{waitUntilFirstUpdate:!0})],me.prototype,"handleLinkUrlChange",1);var lI=me;me.define("zn-remarkd-editor");var cI={},Sg=yt(class extends rr{constructor(){super(...arguments),this.ot=cI}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 dI={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 Eg(o){return o.label??dI[o.value]??o.value}var pI=[];function wk(o){let i=o.data?.conditions;return Array.isArray(i)?i:pI}var vk={id:"in"},Dh={id:"out"},Kc="__new__",al="application/x-zn-flow-type",Ih;function Rh(){return Ih||(Ih=new Image,Ih.src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"),Ih}var bt=240,ar=60,Tg=bt+80,hI=Tg-bt,uI=40,mI=20,$g=40,fI=40,gI=40,yk=240,bI=20,vI=20,yI=20,xI=240;function Ag(o,i,t,r=!1){let n=o.y+ar,a=n+$g;if(t&&t.y>=n){if(t.y-n>xI)return a;let s=r?n+yI:a,l=Math.round((n+t.y)/2-i/2);return Math.max(s,Math.min(l,t.y-vI-i))}return a+fI}function Nh(o){let i=o.length*7.2,t=Math.max(1,Math.ceil(i/(yk-36)));return{w:Math.min(yk,Math.round(36+i)),h:gI+(t-1)*bI}}var Jt=20;function Rr(o){return Math.round(o/Jt)*Jt}var zk=10,wI=4,zI=20;function Mg(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 xk(o,i){return i?bt/2:o.label?Nh(o.label).w/2:mI}function Yc(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]?hI:uI,b=xk(r[m-1],a[m-1])+xk(r[m],a[m])+f;s.push(s[m-1]+Rr(b))}let l=s.filter((m,f)=>a[f]),p=l.length?l:s,h=(Math.min(...p)+Math.max(...p))/2;return s.map(m=>Math.round(n+m-h))}function Wc(o,i,t,r){let n=[{x:o.x,y:o.y,w:bt,h:ar,m:zk}],a=Zt(o,i(o.type)),s=Yc(o,i,r);return a.forEach((l,p)=>{if(!l.label)return;let h=Nh(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[p]-h.w/2,y:Ag(o,h.h,f,a.length===1),w:h.w,h:h.h+zI,m:wI})}),n}function _k(o,i,t,r,n){let a=Wc(o,t,r,n);return Wc(i,t,r,n).some(s=>a.some(l=>Mg(l,s)))}function Oh(o,i,t,r){let n=Wc(o,i,t,r).slice(1);return n.length?t.some(a=>a.id!==o.id&&Wc(a,i,t,r).some(s=>n.some(l=>Mg(l,s)))):!1}function kk(o,i,t,r,n){let a={x:o.x,y:o.y,w:bt,h:ar,m:zk};return Wc(i,t,r,n).some(s=>Mg(a,s))}var Lg=200,qg=120,Ck=120,Sk=80;function Ek(o,i,t,r){return{x:o.x+bt*(t+1)/(r+1),y:o.y+(i==="in"?0:ar)}}function Tk(){return{nodes:[],connections:[],notes:[]}}function Ph(o){return o?o.inputs??[vk]:[vk]}function Ig(o){return o?o.outputs??[Dh]:[Dh]}function ra(o,i){return o.inputs??Ph(i)}function Zt(o,i){return o.outputs??Ig(i)}function Qc(o,i){return ra(o,i)[0]?.id??null}function $k(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 ia(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,p=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)||p(m.target.node);l.delete(h)};return o.filter(h=>!n.has(h.id)).forEach(h=>p(h.id)),o.forEach(h=>{s.has(h.id)||p(h.id)}),a}var Ak=_`@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 Ki=class Ki extends k{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`
5095
5095
  <div part="picker" class="picker">
5096
5096
  <div class="picker__head">
5097
5097
  <span>Add Filters</span>
@@ -5210,7 +5210,7 @@ ${n}`:""}</li></ol>`};return t(0)}parseTable(i,t){this.index++;let r=[],n=[];for
5210
5210
  <zn-button class="actions__cancel" icon="x@lu" @click="${this._cancel}" panel-bg>Cancel</zn-button>
5211
5211
  </div>
5212
5212
  </div>
5213
- `}};Ki.styles=z(Ak),Ki.dependencies={"zn-button":$e,"zn-icon":ne,"zn-input":nt,"zn-option":ot,"zn-select":Be},c([d({attribute:!1})],Ki.prototype,"filters",2),c([d({attribute:!1})],Ki.prototype,"value",2),c([R()],Ki.prototype,"_draft",2),c([R()],Ki.prototype,"_picker",2),c([R()],Ki.prototype,"_search",2);var sl=Ki;var Dg=sl;sl.define("zn-flow-branch-conditions");var Mk=_`@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 k{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=`${ar}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`
5213
+ `}};Ki.styles=z(Ak),Ki.dependencies={"zn-button":$e,"zn-icon":ne,"zn-input":ot,"zn-option":at,"zn-select":Be},c([d({attribute:!1})],Ki.prototype,"filters",2),c([d({attribute:!1})],Ki.prototype,"value",2),c([D()],Ki.prototype,"_draft",2),c([D()],Ki.prototype,"_picker",2),c([D()],Ki.prototype,"_search",2);var sl=Ki;var Dg=sl;sl.define("zn-flow-branch-conditions");var Mk=_`@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 k{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=`${ar}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`
5214
5214
  <div class="ports ports--${r}">
5215
5215
  ${t.map((a,s)=>{let l=`${100*(s+1)/(n+1)}%`;return u`
5216
5216
  <div class="port-wrap" style="left:${l}">
@@ -5423,7 +5423,7 @@ ${n}`:""}</li></ol>`};return t(0)}parseTable(i,t){this.index++;let r=[],n=[];for
5423
5423
  <zn-icon src="trash-2@lu" size="22"></zn-icon>
5424
5424
  </div>`:""}
5425
5425
  </div>
5426
- `}};kt.styles=z(qk),kt.dependencies={"zn-button":$e,"zn-icon":ne,"zn-flow-node":Lk},c([d({attribute:!1})],kt.prototype,"nodes",2),c([d({attribute:!1})],kt.prototype,"connections",2),c([d({attribute:!1})],kt.prototype,"notes",2),c([d({attribute:!1})],kt.prototype,"registry",2),c([d({attribute:"selected-node"})],kt.prototype,"selectedNodeId",2),c([d({attribute:!1})],kt.prototype,"errorNodes",2),c([d({attribute:"moving-node"})],kt.prototype,"movingNodeId",2),c([d({attribute:"drag-type"})],kt.prototype,"dragType",2),c([d({attribute:"selected-branch"})],kt.prototype,"selectedBranch",2),c([R()],kt.prototype,"zoom",2),c([R()],kt.prototype,"panX",2),c([R()],kt.prototype,"panY",2),c([R()],kt.prototype,"drag",2),c([R()],kt.prototype,"_overBin",2),c([R()],kt.prototype,"_dropGhost",2),c([R()],kt.prototype,"_linking",2),c([R()],kt.prototype,"_linkPos",2),c([R()],kt.prototype,"_linkTarget",2);var ll=kt;var Ok=ll;ll.define("zn-flow-canvas");var Pk=_`@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}zn-collapsible::part(header){align-items:center !important;padding-block:calc(var(--zn-base-px) * 2) !important}zn-collapsible::part(caption){font-size:14px;font-weight:600;line-height:16px;color:rgb(var(--zn-text))}`;var Hn=class extends k{constructor(){super(...arguments);this.collapsed=!1}render(){return u`
5426
+ `}};kt.styles=z(qk),kt.dependencies={"zn-button":$e,"zn-icon":ne,"zn-flow-node":Lk},c([d({attribute:!1})],kt.prototype,"nodes",2),c([d({attribute:!1})],kt.prototype,"connections",2),c([d({attribute:!1})],kt.prototype,"notes",2),c([d({attribute:!1})],kt.prototype,"registry",2),c([d({attribute:"selected-node"})],kt.prototype,"selectedNodeId",2),c([d({attribute:!1})],kt.prototype,"errorNodes",2),c([d({attribute:"moving-node"})],kt.prototype,"movingNodeId",2),c([d({attribute:"drag-type"})],kt.prototype,"dragType",2),c([d({attribute:"selected-branch"})],kt.prototype,"selectedBranch",2),c([D()],kt.prototype,"zoom",2),c([D()],kt.prototype,"panX",2),c([D()],kt.prototype,"panY",2),c([D()],kt.prototype,"drag",2),c([D()],kt.prototype,"_overBin",2),c([D()],kt.prototype,"_dropGhost",2),c([D()],kt.prototype,"_linking",2),c([D()],kt.prototype,"_linkPos",2),c([D()],kt.prototype,"_linkTarget",2);var ll=kt;var Ok=ll;ll.define("zn-flow-canvas");var Pk=_`@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}zn-collapsible::part(header){align-items:center !important;padding-block:calc(var(--zn-base-px) * 2) !important}zn-collapsible::part(caption){font-size:14px;font-weight:600;line-height:16px;color:rgb(var(--zn-text))}`;var Hn=class extends k{constructor(){super(...arguments);this.collapsed=!1}render(){return u`
5427
5427
  <zn-collapsible caption="${this.caption??""}" default="${this.collapsed?"closed":"open"}">
5428
5428
  <slot></slot>
5429
5429
  </zn-collapsible>
@@ -5658,7 +5658,7 @@ ${n}`:""}</li></ol>`};return t(0)}parseTable(i,t){this.index++;let r=[],n=[];for
5658
5658
  </div>
5659
5659
  ${this._renderRightPanel()}
5660
5660
  </div>
5661
- `}};we.styles=z(Bk),we.dependencies={"zn-icon":ne,"zn-input":nt,"zn-tabs":ln,"zn-navbar":Sa,"zn-flow-branch-conditions":Dg,"zn-flow-canvas":Ok,"zn-flow-step-group":Pg},c([d({attribute:!1})],we.prototype,"nodeTypes",2),c([d({reflect:!0})],we.prototype,"heading",2),c([d({attribute:"subheading",reflect:!0})],we.prototype,"subheading",2),c([d({attribute:!1})],we.prototype,"errorNodes",2),c([d({attribute:"auto-save",converter:{fromAttribute:t=>{if(t===null)return null;let r=parseFloat(t);return Number.isFinite(r)&&r>0?r:TI},toAttribute:t=>t===null?null:String(t)}})],we.prototype,"autoSave",2),c([d({attribute:"entrypoints-hint"})],we.prototype,"entrypointsHint",2),c([d({attribute:"triggers-hint"})],we.prototype,"triggersHint",2),c([d({attribute:"actions-hint"})],we.prototype,"actionsHint",2),c([d({attribute:"rules-hint"})],we.prototype,"rulesHint",2),c([R()],we.prototype,"_state",2),c([R()],we.prototype,"_selectedNodeId",2),c([R()],we.prototype,"_selectedBranch",2),c([R()],we.prototype,"_search",2),c([R()],we.prototype,"_activeGroup",2),c([R()],we.prototype,"_stepsCollapsed",2),c([R()],we.prototype,"_sideCollapsed",2),c([R()],we.prototype,"_movingNodeId",2),c([R()],we.prototype,"_picker",2),c([R()],we.prototype,"_draggingType",2),c([R()],we.prototype,"_lastSavedAt",2),c([R()],we.prototype,"_justSaved",2),c([R()],we.prototype,"_statusNow",2),c([R()],we.prototype,"_restorePrompt",2);var cl=we;var AI=cl;cl.define("zn-flow-builder");var Gk=_`@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;flex-direction:column;min-height:0;height:100%;--zn-active-nav-background:var(--zn-panel)}.search{padding:12px var(--zn-base-gap) 8px}.body{display:flex;flex-direction:column;flex:1;min-height:0}`;var vn=class extends k{constructor(){super(...arguments);this.searchable=!0;this.searchPlaceholder="Search by step name";this._search="";this._tabObserver=new MutationObserver(()=>this._applyFilter())}connectedCallback(){super.connectedCallback(),this._tabObserver.observe(this,{subtree:!0,attributeFilter:["selected"]})}disconnectedCallback(){this._tabObserver.disconnect(),super.disconnectedCallback()}updated(t){super.updated(t),this._applyFilter()}_inActiveTab(t){return!t.closest("zn-tabs")||!!t.closest("[selected]")}_applyFilter(){let t=this._search.trim().toLowerCase();this.querySelectorAll("zn-flow-step").forEach(r=>{r.hidden=t!==""&&this._inActiveTab(r)&&!(r.textContent??"").toLowerCase().includes(t)}),this.querySelectorAll("zn-flow-step-group").forEach(r=>{let n=Array.from(r.querySelectorAll("zn-flow-step"));r.hidden=t!==""&&this._inActiveTab(r)&&n.length>0&&n.every(a=>a.hidden)})}render(){return u`
5661
+ `}};we.styles=z(Bk),we.dependencies={"zn-icon":ne,"zn-input":ot,"zn-tabs":ln,"zn-navbar":Sa,"zn-flow-branch-conditions":Dg,"zn-flow-canvas":Ok,"zn-flow-step-group":Pg},c([d({attribute:!1})],we.prototype,"nodeTypes",2),c([d({reflect:!0})],we.prototype,"heading",2),c([d({attribute:"subheading",reflect:!0})],we.prototype,"subheading",2),c([d({attribute:!1})],we.prototype,"errorNodes",2),c([d({attribute:"auto-save",converter:{fromAttribute:t=>{if(t===null)return null;let r=parseFloat(t);return Number.isFinite(r)&&r>0?r:TI},toAttribute:t=>t===null?null:String(t)}})],we.prototype,"autoSave",2),c([d({attribute:"entrypoints-hint"})],we.prototype,"entrypointsHint",2),c([d({attribute:"triggers-hint"})],we.prototype,"triggersHint",2),c([d({attribute:"actions-hint"})],we.prototype,"actionsHint",2),c([d({attribute:"rules-hint"})],we.prototype,"rulesHint",2),c([D()],we.prototype,"_state",2),c([D()],we.prototype,"_selectedNodeId",2),c([D()],we.prototype,"_selectedBranch",2),c([D()],we.prototype,"_search",2),c([D()],we.prototype,"_activeGroup",2),c([D()],we.prototype,"_stepsCollapsed",2),c([D()],we.prototype,"_sideCollapsed",2),c([D()],we.prototype,"_movingNodeId",2),c([D()],we.prototype,"_picker",2),c([D()],we.prototype,"_draggingType",2),c([D()],we.prototype,"_lastSavedAt",2),c([D()],we.prototype,"_justSaved",2),c([D()],we.prototype,"_statusNow",2),c([D()],we.prototype,"_restorePrompt",2);var cl=we;var AI=cl;cl.define("zn-flow-builder");var Gk=_`@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;flex-direction:column;min-height:0;height:100%;--zn-active-nav-background:var(--zn-panel)}.search{padding:12px var(--zn-base-gap) 8px}.body{display:flex;flex-direction:column;flex:1;min-height:0}`;var vn=class extends k{constructor(){super(...arguments);this.searchable=!0;this.searchPlaceholder="Search by step name";this._search="";this._tabObserver=new MutationObserver(()=>this._applyFilter())}connectedCallback(){super.connectedCallback(),this._tabObserver.observe(this,{subtree:!0,attributeFilter:["selected"]})}disconnectedCallback(){this._tabObserver.disconnect(),super.disconnectedCallback()}updated(t){super.updated(t),this._applyFilter()}_inActiveTab(t){return!t.closest("zn-tabs")||!!t.closest("[selected]")}_applyFilter(){let t=this._search.trim().toLowerCase();this.querySelectorAll("zn-flow-step").forEach(r=>{r.hidden=t!==""&&this._inActiveTab(r)&&!(r.textContent??"").toLowerCase().includes(t)}),this.querySelectorAll("zn-flow-step-group").forEach(r=>{let n=Array.from(r.querySelectorAll("zn-flow-step"));r.hidden=t!==""&&this._inActiveTab(r)&&n.length>0&&n.every(a=>a.hidden)})}render(){return u`
5662
5662
  ${this.searchable?u`
5663
5663
  <zn-input
5664
5664
  part="search"
@@ -5673,7 +5673,7 @@ ${n}`:""}</li></ol>`};return t(0)}parseTable(i,t){this.index++;let r=[],n=[];for
5673
5673
  <div class="body">
5674
5674
  <slot></slot>
5675
5675
  </div>
5676
- `}};vn.styles=z(Gk),vn.dependencies={"zn-input":nt},c([d({type:Boolean})],vn.prototype,"searchable",2),c([d({attribute:"search-placeholder"})],vn.prototype,"searchPlaceholder",2),c([R()],vn.prototype,"_search",2);var MI=vn;vn.define("zn-flow-steps");var Wk=_`@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));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;overflow:hidden;cursor:grab;transition:border-color 0.12s ease,box-shadow 0.12s ease;max-height:40px}:host(:hover){border-color:rgb(var(--zn-color-border-active));box-shadow:0 1px 3px rgba(var(--zn-shadow),0.4)}:host(:active){cursor:grabbing}:host([hidden]){display:none}.item__icon{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)}.item__label{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.item__label ::slotted(*){display:none}`;var xr=class extends k{constructor(){super(...arguments);this.fixedOutputs=!1;this._onDragStart=t=>{!t.dataTransfer||!this.type||(t.dataTransfer.setData(al,this.type),t.dataTransfer.effectAllowed="copyMove",t.dataTransfer.setDragImage(Rh(),0,0),this.dispatchEvent(new CustomEvent("flow-step-drag",{bubbles:!0,composed:!0,detail:{type:this.type}})))};this._onDragEnd=()=>{this.dispatchEvent(new CustomEvent("flow-step-drag-end",{bubbles:!0,composed:!0}))}}connectedCallback(){super.connectedCallback(),this.draggable=!0,this.addEventListener("dragstart",this._onDragStart),this.addEventListener("dragend",this._onDragEnd)}disconnectedCallback(){this.removeEventListener("dragstart",this._onDragStart),this.removeEventListener("dragend",this._onDragEnd),super.disconnectedCallback()}updated(t){super.updated(t),this.style.setProperty("--node-accent",this.color??"rgb(var(--zn-color-primary))")}render(){return u`
5676
+ `}};vn.styles=z(Gk),vn.dependencies={"zn-input":ot},c([d({type:Boolean})],vn.prototype,"searchable",2),c([d({attribute:"search-placeholder"})],vn.prototype,"searchPlaceholder",2),c([D()],vn.prototype,"_search",2);var MI=vn;vn.define("zn-flow-steps");var Wk=_`@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));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;overflow:hidden;cursor:grab;transition:border-color 0.12s ease,box-shadow 0.12s ease;max-height:40px}:host(:hover){border-color:rgb(var(--zn-color-border-active));box-shadow:0 1px 3px rgba(var(--zn-shadow),0.4)}:host(:active){cursor:grabbing}:host([hidden]){display:none}.item__icon{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)}.item__label{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.item__label ::slotted(*){display:none}`;var xr=class extends k{constructor(){super(...arguments);this.fixedOutputs=!1;this._onDragStart=t=>{!t.dataTransfer||!this.type||(t.dataTransfer.setData(al,this.type),t.dataTransfer.effectAllowed="copyMove",t.dataTransfer.setDragImage(Rh(),0,0),this.dispatchEvent(new CustomEvent("flow-step-drag",{bubbles:!0,composed:!0,detail:{type:this.type}})))};this._onDragEnd=()=>{this.dispatchEvent(new CustomEvent("flow-step-drag-end",{bubbles:!0,composed:!0}))}}connectedCallback(){super.connectedCallback(),this.draggable=!0,this.addEventListener("dragstart",this._onDragStart),this.addEventListener("dragend",this._onDragEnd)}disconnectedCallback(){this.removeEventListener("dragstart",this._onDragStart),this.removeEventListener("dragend",this._onDragEnd),super.disconnectedCallback()}updated(t){super.updated(t),this.style.setProperty("--node-accent",this.color??"rgb(var(--zn-color-primary))")}render(){return u`
5677
5677
  <span part="base" class="item__icon">
5678
5678
  <zn-icon src="${this.icon??"circle"}" library="${P(this.iconLibrary)}" size="16"></zn-icon>
5679
5679
  </span>
@@ -5926,7 +5926,7 @@ ${n}`:""}</li></ol>`};return t(0)}parseTable(i,t){this.index++;let r=[],n=[];for
5926
5926
  ${this._renderInspector()}
5927
5927
  <slot name="config" class="declarations" @slotchange="${this._registerSlottedTemplates}"></slot>
5928
5928
  </div>
5929
- `}};Ae.styles=z(Xk),Ae.dependencies={"zn-collapsible":za,"zn-icon":ne,"zn-input":nt,"zn-page-palette-item":Bg,"zn-page-section-card":Vg},c([d()],Ae.prototype,"name",2),c([d({reflect:!0})],Ae.prototype,"form",2),c([d()],Ae.prototype,"config",2),c([d({reflect:!0})],Ae.prototype,"heading",2),c([d({reflect:!0})],Ae.prototype,"subheading",2),c([d({attribute:"required-first",reflect:!0})],Ae.prototype,"requiredFirst",2),c([d({attribute:!1})],Ae.prototype,"sectionTypes",2),c([d({type:Boolean,reflect:!0,attribute:"palette-collapsed"})],Ae.prototype,"paletteCollapsed",2),c([d({type:Boolean,reflect:!0,attribute:"inspector-collapsed"})],Ae.prototype,"inspectorCollapsed",2),c([d({attribute:"auto-save",converter:{fromAttribute:t=>{if(t===null)return null;let r=parseFloat(t);return Number.isFinite(r)&&r>0?r:NI},toAttribute:t=>t===null?null:String(t)}})],Ae.prototype,"autoSave",2),c([R()],Ae.prototype,"_state",2),c([R()],Ae.prototype,"_selectedId",2),c([R()],Ae.prototype,"_search",2),c([R()],Ae.prototype,"_pickerIndex",2),c([R()],Ae.prototype,"_dragOverIndex",2),c([R()],Ae.prototype,"_slotDragOver",2),c([R()],Ae.prototype,"_slotPicker",2),c([R()],Ae.prototype,"_form",2),c([K("config")],Ae.prototype,"handleConfigChange",1),c([K("requiredFirst")],Ae.prototype,"handleRequiredFirstChange",1),c([K("sectionTypes")],Ae.prototype,"handleSectionTypesChange",1),c([R()],Ae.prototype,"_lastSavedAt",2),c([R()],Ae.prototype,"_justSaved",2),c([R()],Ae.prototype,"_statusNow",2),c([R()],Ae.prototype,"_restorePrompt",2);var PI=Ae;Ae.define("zn-page-builder");var Zk=_`:host{display:block}:host([fill]){flex:1 1 auto;min-height:0}.preview{position:relative;width:100%;overflow-x:hidden;overflow-y:auto;background:radial-gradient(circle,rgba(var(--zn-text),var(--zn-preview-frame-dot-opacity,0.08)) 1px,transparent 1px) 0 0/var(--zn-preview-frame-dot-spacing,20px) var(--zn-preview-frame-dot-spacing,20px),rgb(var(--zn-body))}:host([backdrop=panel]) .preview{background:rgb(var(--zn-panel))}.preview__stage{height:100%;max-width:100%;margin:0 auto;overflow:hidden}iframe{display:block;width:100%;border:0;pointer-events:none;background:rgb(var(--zn-body))}:host([interactive]) iframe{pointer-events:auto}.preview__error{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;padding:1rem;text-align:center;background:rgba(0,0,0,0.65);color:#fff}`;var e3={desktop:"100%",tablet:"768px",mobile:"390px"},$t=class extends k{constructor(){super(...arguments);this.src="";this.frameOrigin="";this.dataUri="";this.watch="form[data-auto-save]";this.refreshOn="form";this.debounce=400;this.zoom=1;this.minHeight=480;this.fill=!1;this.device="desktop";this.backdrop="dots";this.interactive=!1;this.error="";this._contentHeight=0;this._generation=0;this._watchedForms=new Set;this._debounceTimers=new Map;this._shellSaveRoots=[];this._formObserver=new Oe(this,{target:null,config:{subtree:!0,childList:!0},callback:()=>this._attachForms()});this._onMessage=t=>{if(t.origin!==this.frameOrigin||!this.frame||t.source!==this.frame.contentWindow)return;let r=t.data;switch(r?.type){case"hp-preview:ready":this._sendConfig().then(()=>this._postTheme());break;case"hp-preview:rendered":this.error="",this._applyContentHeight(r.height);break;case"hp-preview:height":this._applyContentHeight(r.height);break;case"hp-preview:error":this._fail(String(r.message??"Preview failed to render"));break}};this._onFrameLoad=()=>{this._contentObserver?.disconnect(),this._contentObserver=void 0;let t;try{t=this.frame?.contentDocument?.documentElement}catch{return}if(!t)return;let r=()=>{let n=t.getBoundingClientRect().height;n>(this.frame?.clientHeight??0)&&this._applyContentHeight(n)};r(),this._contentObserver=new ResizeObserver(r),this._contentObserver.observe(t)};this._onShellSave=t=>{if(t===this._lastShellSave||(this._lastShellSave=t,!this.refreshOn))return;let r=t.composedPath()[0];!(r instanceof HTMLFormElement)||!r.matches(this.refreshOn)||this._watchedForms.has(r)||this._sendConfig()};this._onChange=t=>{let r=t.currentTarget,n=this._debounceTimers.get(r);n&&window.clearTimeout(n),this._debounceTimers.set(r,window.setTimeout(()=>{this._debounceTimers.delete(r),r.isConnected&&r.requestSubmit()},this.debounce))};this._onSubmit=t=>{t.preventDefault(),t.stopImmediatePropagation(),this._save(t.currentTarget)}}connectedCallback(){super.connectedCallback(),window.addEventListener("message",this._onMessage),this._attachForms();let t=this.getRootNode();this._shellSaveRoots=t instanceof ShadowRoot?[document,t]:[document],this._shellSaveRoots.forEach(r=>r.addEventListener("complete",this._onShellSave)),t instanceof Document?this._formObserver.observe(t.body):t instanceof ShadowRoot&&this._formObserver.observe(t)}willUpdate(t){t.has("src")&&this._resetContentHeight()}disconnectedCallback(){super.disconnectedCallback(),window.removeEventListener("message",this._onMessage),this._contentObserver?.disconnect(),this._contentObserver=void 0,this._watchedForms.forEach(t=>this._detachForm(t)),this._watchedForms.clear(),this._shellSaveRoots.forEach(t=>t.removeEventListener("complete",this._onShellSave)),this._shellSaveRoots=[]}_applyContentHeight(t){let r=Math.round(Number(t));!Number.isFinite(r)||r<=0||(this._contentHeight=r)}_resetContentHeight(){this._contentHeight=0,this._contentObserver?.disconnect(),this._contentObserver=void 0}refresh(){return this._sendConfig()}setTheme(t){this._theme=t,this._postTheme()}_postTheme(){!this._theme||!this.frameOrigin||this.frame?.contentWindow?.postMessage({type:"hp-preview:theme",...this._theme},this.frameOrigin)}async _sendConfig(){if(!this.dataUri||!this.frameOrigin)return;let t=++this._generation;try{let r=await fetch(this.dataUri,{credentials:"same-origin",headers:{"x-kx-fetch-style":"download"}});if(!r.ok)throw new Error(await r.text()||r.statusText);let n=await r.json();if(t!==this._generation)return;this.frame?.contentWindow?.postMessage({type:"hp-preview:config",...n},this.frameOrigin)}catch(r){t===this._generation&&this._fail(r instanceof Error?r.message:String(r))}}_attachForms(){let t=this.getRootNode(),r=new Set;t.querySelectorAll(this.watch).forEach(n=>{n instanceof HTMLFormElement&&r.add(n)}),this._watchedForms.forEach(n=>{r.has(n)||(this._detachForm(n),this._watchedForms.delete(n))}),r.forEach(n=>{this._watchedForms.has(n)||(this._watchedForms.add(n),n.addEventListener("submit",this._onSubmit,{capture:!0}),n.addEventListener("zn-change",this._onChange),n.addEventListener("zn-input",this._onChange),n.addEventListener("change",this._onChange))})}_detachForm(t){t.removeEventListener("submit",this._onSubmit,{capture:!0}),t.removeEventListener("zn-change",this._onChange),t.removeEventListener("zn-input",this._onChange),t.removeEventListener("change",this._onChange);let r=this._debounceTimers.get(t);r&&window.clearTimeout(r),this._debounceTimers.delete(t)}async _save(t){try{let r=await fetch(t.getAttribute("action")||"",{method:"POST",credentials:"same-origin",headers:{"x-kx-fetch-style":"download"},body:new FormData(t)}),n=r.headers.get("x-kubex-alert-danger");if(n)throw new Error(n);if(!r.ok)throw new Error(await r.text()||r.statusText);await this._sendConfig()}catch(r){this._fail(r instanceof Error?r.message:String(r))}}_fail(t){this.error=t,this.emit("zn-error",{detail:{message:t}})}render(){let t=this.zoom>0&&this.zoom<=1?this.zoom:1,r=this.error||this.interactive?0:this._contentHeight,n=this.fill?{width:"100%",height:r?`max(${r}px, 100%)`:"100%"}:{width:`${100/t}%`,height:`${Math.max(r,this.minHeight/t)}px`,transform:`scale(${t})`,transformOrigin:"0 0"},a=this.fill?{height:"100%",minHeight:`${this.minHeight}px`}:{height:`${this.minHeight}px`},s={width:e3[this.device]??e3.desktop};return r&&(s.height=this.fill?`max(${r}px, 100%)`:`${Math.max(r*t,this.minHeight)}px`),u`
5929
+ `}};Ae.styles=z(Xk),Ae.dependencies={"zn-collapsible":za,"zn-icon":ne,"zn-input":ot,"zn-page-palette-item":Bg,"zn-page-section-card":Vg},c([d()],Ae.prototype,"name",2),c([d({reflect:!0})],Ae.prototype,"form",2),c([d()],Ae.prototype,"config",2),c([d({reflect:!0})],Ae.prototype,"heading",2),c([d({reflect:!0})],Ae.prototype,"subheading",2),c([d({attribute:"required-first",reflect:!0})],Ae.prototype,"requiredFirst",2),c([d({attribute:!1})],Ae.prototype,"sectionTypes",2),c([d({type:Boolean,reflect:!0,attribute:"palette-collapsed"})],Ae.prototype,"paletteCollapsed",2),c([d({type:Boolean,reflect:!0,attribute:"inspector-collapsed"})],Ae.prototype,"inspectorCollapsed",2),c([d({attribute:"auto-save",converter:{fromAttribute:t=>{if(t===null)return null;let r=parseFloat(t);return Number.isFinite(r)&&r>0?r:NI},toAttribute:t=>t===null?null:String(t)}})],Ae.prototype,"autoSave",2),c([D()],Ae.prototype,"_state",2),c([D()],Ae.prototype,"_selectedId",2),c([D()],Ae.prototype,"_search",2),c([D()],Ae.prototype,"_pickerIndex",2),c([D()],Ae.prototype,"_dragOverIndex",2),c([D()],Ae.prototype,"_slotDragOver",2),c([D()],Ae.prototype,"_slotPicker",2),c([D()],Ae.prototype,"_form",2),c([K("config")],Ae.prototype,"handleConfigChange",1),c([K("requiredFirst")],Ae.prototype,"handleRequiredFirstChange",1),c([K("sectionTypes")],Ae.prototype,"handleSectionTypesChange",1),c([D()],Ae.prototype,"_lastSavedAt",2),c([D()],Ae.prototype,"_justSaved",2),c([D()],Ae.prototype,"_statusNow",2),c([D()],Ae.prototype,"_restorePrompt",2);var PI=Ae;Ae.define("zn-page-builder");var Zk=_`:host{display:block}:host([fill]){flex:1 1 auto;min-height:0}.preview{position:relative;width:100%;overflow-x:hidden;overflow-y:auto;background:radial-gradient(circle,rgba(var(--zn-text),var(--zn-preview-frame-dot-opacity,0.08)) 1px,transparent 1px) 0 0/var(--zn-preview-frame-dot-spacing,20px) var(--zn-preview-frame-dot-spacing,20px),rgb(var(--zn-body))}:host([backdrop=panel]) .preview{background:rgb(var(--zn-panel))}.preview__stage{height:100%;max-width:100%;margin:0 auto;overflow:hidden}iframe{display:block;width:100%;border:0;pointer-events:none;background:rgb(var(--zn-body))}:host([interactive]) iframe{pointer-events:auto}.preview__error{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;padding:1rem;text-align:center;background:rgba(0,0,0,0.65);color:#fff}`;var e3={desktop:"100%",tablet:"768px",mobile:"390px"},$t=class extends k{constructor(){super(...arguments);this.src="";this.frameOrigin="";this.dataUri="";this.watch="form[data-auto-save]";this.refreshOn="form";this.debounce=400;this.zoom=1;this.minHeight=480;this.fill=!1;this.device="desktop";this.backdrop="dots";this.interactive=!1;this.error="";this._contentHeight=0;this._generation=0;this._watchedForms=new Set;this._debounceTimers=new Map;this._shellSaveRoots=[];this._formObserver=new Oe(this,{target:null,config:{subtree:!0,childList:!0},callback:()=>this._attachForms()});this._onMessage=t=>{if(t.origin!==this.frameOrigin||!this.frame||t.source!==this.frame.contentWindow)return;let r=t.data;switch(r?.type){case"hp-preview:ready":this._sendConfig().then(()=>this._postTheme());break;case"hp-preview:rendered":this.error="",this._applyContentHeight(r.height);break;case"hp-preview:height":this._applyContentHeight(r.height);break;case"hp-preview:error":this._fail(String(r.message??"Preview failed to render"));break}};this._onFrameLoad=()=>{this._contentObserver?.disconnect(),this._contentObserver=void 0;let t;try{t=this.frame?.contentDocument?.documentElement}catch{return}if(!t)return;let r=()=>{let n=t.getBoundingClientRect().height;n>(this.frame?.clientHeight??0)&&this._applyContentHeight(n)};r(),this._contentObserver=new ResizeObserver(r),this._contentObserver.observe(t)};this._onShellSave=t=>{if(t===this._lastShellSave||(this._lastShellSave=t,!this.refreshOn))return;let r=t.composedPath()[0];!(r instanceof HTMLFormElement)||!r.matches(this.refreshOn)||this._watchedForms.has(r)||this._sendConfig()};this._onChange=t=>{let r=t.currentTarget,n=this._debounceTimers.get(r);n&&window.clearTimeout(n),this._debounceTimers.set(r,window.setTimeout(()=>{this._debounceTimers.delete(r),r.isConnected&&r.requestSubmit()},this.debounce))};this._onSubmit=t=>{t.preventDefault(),t.stopImmediatePropagation(),this._save(t.currentTarget)}}connectedCallback(){super.connectedCallback(),window.addEventListener("message",this._onMessage),this._attachForms();let t=this.getRootNode();this._shellSaveRoots=t instanceof ShadowRoot?[document,t]:[document],this._shellSaveRoots.forEach(r=>r.addEventListener("complete",this._onShellSave)),t instanceof Document?this._formObserver.observe(t.body):t instanceof ShadowRoot&&this._formObserver.observe(t)}willUpdate(t){t.has("src")&&this._resetContentHeight()}disconnectedCallback(){super.disconnectedCallback(),window.removeEventListener("message",this._onMessage),this._contentObserver?.disconnect(),this._contentObserver=void 0,this._watchedForms.forEach(t=>this._detachForm(t)),this._watchedForms.clear(),this._shellSaveRoots.forEach(t=>t.removeEventListener("complete",this._onShellSave)),this._shellSaveRoots=[]}_applyContentHeight(t){let r=Math.round(Number(t));!Number.isFinite(r)||r<=0||(this._contentHeight=r)}_resetContentHeight(){this._contentHeight=0,this._contentObserver?.disconnect(),this._contentObserver=void 0}refresh(){return this._sendConfig()}setTheme(t){this._theme=t,this._postTheme()}_postTheme(){!this._theme||!this.frameOrigin||this.frame?.contentWindow?.postMessage({type:"hp-preview:theme",...this._theme},this.frameOrigin)}async _sendConfig(){if(!this.dataUri||!this.frameOrigin)return;let t=++this._generation;try{let r=await fetch(this.dataUri,{credentials:"same-origin",headers:{"x-kx-fetch-style":"download"}});if(!r.ok)throw new Error(await r.text()||r.statusText);let n=await r.json();if(t!==this._generation)return;this.frame?.contentWindow?.postMessage({type:"hp-preview:config",...n},this.frameOrigin)}catch(r){t===this._generation&&this._fail(r instanceof Error?r.message:String(r))}}_attachForms(){let t=this.getRootNode(),r=new Set;t.querySelectorAll(this.watch).forEach(n=>{n instanceof HTMLFormElement&&r.add(n)}),this._watchedForms.forEach(n=>{r.has(n)||(this._detachForm(n),this._watchedForms.delete(n))}),r.forEach(n=>{this._watchedForms.has(n)||(this._watchedForms.add(n),n.addEventListener("submit",this._onSubmit,{capture:!0}),n.addEventListener("zn-change",this._onChange),n.addEventListener("zn-input",this._onChange),n.addEventListener("change",this._onChange))})}_detachForm(t){t.removeEventListener("submit",this._onSubmit,{capture:!0}),t.removeEventListener("zn-change",this._onChange),t.removeEventListener("zn-input",this._onChange),t.removeEventListener("change",this._onChange);let r=this._debounceTimers.get(t);r&&window.clearTimeout(r),this._debounceTimers.delete(t)}async _save(t){try{let r=await fetch(t.getAttribute("action")||"",{method:"POST",credentials:"same-origin",headers:{"x-kx-fetch-style":"download"},body:new FormData(t)}),n=r.headers.get("x-kubex-alert-danger");if(n)throw new Error(n);if(!r.ok)throw new Error(await r.text()||r.statusText);await this._sendConfig()}catch(r){this._fail(r instanceof Error?r.message:String(r))}}_fail(t){this.error=t,this.emit("zn-error",{detail:{message:t}})}render(){let t=this.zoom>0&&this.zoom<=1?this.zoom:1,r=this.error||this.interactive?0:this._contentHeight,n=this.fill?{width:"100%",height:r?`max(${r}px, 100%)`:"100%"}:{width:`${100/t}%`,height:`${Math.max(r,this.minHeight/t)}px`,transform:`scale(${t})`,transformOrigin:"0 0"},a=this.fill?{height:"100%",minHeight:`${this.minHeight}px`}:{height:`${this.minHeight}px`},s={width:e3[this.device]??e3.desktop};return r&&(s.height=this.fill?`max(${r}px, 100%)`:`${Math.max(r*t,this.minHeight)}px`),u`
5930
5930
  <div part="base" class="preview" style="${xt(a)}">
5931
5931
  <div part="stage" class="preview__stage" style="${xt(s)}">
5932
5932
  <iframe part="iframe"
@@ -5938,7 +5938,7 @@ ${n}`:""}</li></ol>`};return t(0)}parseTable(i,t){this.index++;let r=[],n=[];for
5938
5938
  </div>
5939
5939
  ${this.error?u`
5940
5940
  <div part="error" class="preview__error">${this.error}</div>`:""}
5941
- </div>`}};$t.styles=z(Zk),c([d()],$t.prototype,"src",2),c([d({attribute:"frame-origin"})],$t.prototype,"frameOrigin",2),c([d({attribute:"data-uri"})],$t.prototype,"dataUri",2),c([d()],$t.prototype,"watch",2),c([d({attribute:"refresh-on"})],$t.prototype,"refreshOn",2),c([d({type:Number})],$t.prototype,"debounce",2),c([d({type:Number})],$t.prototype,"zoom",2),c([d({type:Number,attribute:"min-height"})],$t.prototype,"minHeight",2),c([d({type:Boolean})],$t.prototype,"fill",2),c([d({reflect:!0})],$t.prototype,"device",2),c([d({reflect:!0})],$t.prototype,"backdrop",2),c([d({type:Boolean,reflect:!0})],$t.prototype,"interactive",2),c([F("iframe")],$t.prototype,"frame",2),c([R()],$t.prototype,"error",2),c([R()],$t.prototype,"_contentHeight",2);var jg=$t;$t.define("zn-preview-frame");var t3=_`@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;--zn-theme-editor-controls-width:343px;height:100%}.editor{--controls-col:var(--zn-theme-editor-controls-width);display:flex;align-items:stretch;height:100%}.editor--controls-collapsed{--controls-col:0px}.editor--controls-collapsed .editor__controls{border-right:none}.editor--controls-collapsed .editor__controls-header,.editor--controls-collapsed .editor__controls-body{padding:0}:host([standalone]) .editor{background:rgb(var(--zn-panel));border:1px solid rgb(var(--zn-border-color));border-radius:8px;overflow:hidden}.editor__toolbar{display:flex;align-items:center;flex:0 0 auto;min-height:44px;gap:var(--zn-spacing-small);padding:var(--zn-spacing-small) var(--zn-spacing-medium);border-bottom:1px solid rgb(var(--zn-border-color))}.editor__toolbar-actions{display:flex;align-items:center;gap:var(--zn-spacing-small);margin-left:auto}.editor__caption{font-size:14px;font-weight:600;line-height:16px;color:rgb(var(--zn-text))}.editor__controls{--zn-active-nav-background:var(--zn-panel);--navbar-page-inactive-tab-background:rgb(var(--zn-color-tab));--navbar-page-inactive-tab-filter:none;position:relative;display:flex;flex-direction:column;flex:0 0 var(--controls-col);min-width:0;max-width:100%;background:rgb(var(--zn-panel));border-right:1px solid rgb(var(--zn-border-color));overflow:hidden;transition:flex-basis 0.2s ease}.editor__controls-inner{position:absolute;inset:0;display:flex;flex-direction:column}.editor__controls-header{display:flex;align-items:center;flex:0 0 auto;min-height:44px;padding:var(--zn-spacing-small) var(--zn-spacing-medium)}.editor__controls-body{display:flex;flex-direction:column;gap:var(--zn-spacing-medium);flex:1 1 auto;min-height:0}.editor__main{position:relative;display:flex;flex-direction:column;flex:1 1 auto;min-width:0;min-height:0}.editor__fields{display:flex;flex-direction:column;gap:var(--zn-spacing-medium);flex:1 1 auto;min-height:0;overflow-y:auto}::slotted(zn-collapsible){width:100%}.editor__fields--sections-only .editor__section:first-of-type{border-top:none}.editor__section{display:block;border-top:1px solid rgba(var(--zn-border-color),0.5)}.editor__section::part(header){align-items:center !important;padding-block:calc(var(--zn-base-px) * 2) !important}.editor__section::part(caption){font-size:14px;font-weight:600;line-height:16px;color:rgb(var(--zn-text))}.editor__section-fields{display:flex;flex-direction:column;gap:var(--zn-spacing-medium)}.editor__tabs{display:block}.editor__section-slot{padding-top:var(--zn-spacing-sm)}.editor__tab-panel{display:flex;flex-direction:column}.editor__footer{display:flex;flex:0 0 auto;gap:var(--zn-spacing-small);padding-top:var(--zn-spacing-small);border-top:1px solid rgb(var(--zn-border-color));margin-top:auto}.editor__preview{overflow:hidden;flex:1 1 auto;min-width:0;min-height:0;display:flex;flex-direction:column}.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}.editor__device[aria-pressed=true]{--zn-button-border-color:rgb(var(--zn-primary))}.editor__device[aria-pressed=true]::part(base){background:rgb(var(--zn-primary)) !important;color:white !important}.editor__mode{margin-left:auto}.editor__sources{width:auto}.editor__sources::part(form-control-label){position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.editor__error{padding:var(--zn-spacing-small);margin-bottom:var(--zn-spacing-small);border-radius:4px;background:rgba(var(--zn-color-error),0.1);border:1px solid rgb(var(--zn-color-error));color:rgb(var(--zn-color-error));font-size:0.8125rem}@media (max-width:768px){:host{height:auto}.editor{flex-direction:column;height:auto}.editor__fields,.editor__preview{overflow:visible}.editor__controls{flex-basis:auto;width:100%;border-right:none;border-bottom:1px solid rgb(var(--zn-border-color))}.editor__controls-inner{position:static}.editor--controls-collapsed .editor__controls{display:none}.editor__main{width:100%;padding-top:var(--zn-spacing-medium)}.panel-toggle{top:-12px;transform:translateX(-50%);transition:top 0.2s ease,color 0.12s ease,border-color 0.12s ease}.panel-toggle--left{left:50%}.panel-toggle--left.panel-toggle--tucked{top:8px;left:50%}}`;var HI=new Set(["zn-checkbox","zn-toggle"]),FI="(max-width: 768px)",BI=[{id:"desktop",icon:"monitor",label:"Desktop"},{id:"tablet",icon:"tablet",label:"Tablet"},{id:"mobile",icon:"smartphone",label:"Mobile"}];function VI(o){return o.toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,"")}var Ie=class extends k{constructor(){super(...arguments);this.src="";this.frameOrigin="";this.dataUri="";this.mode="light";this.device="desktop";this.minHeight=480;this.debounce=150;this.action="";this.saveDebounce=1e3;this.sections=[];this.sectionLayout="collapsible";this.sources=[];this.controlsCollapsed=!1;this.standalone=!1;this.controlsCaption="";this.previewCaption="";this.submitLabel="";this.manual=!1;this.error="";this._submitting=!1;this._sourceIndex=0;this.hasSlotController=new Y(this,"footer","[default]");this._saving=!1;this._saveQueued=!1;this._saveWaiters=[];this._narrowQuery=window.matchMedia(FI);this._wasNarrow=!1;this._mounted=!1;this._lastControls=[];this._controlsObserverConfig={childList:!0,subtree:!0};this._controlsObserver=new Oe(this,{target:null,config:this._controlsObserverConfig,callback:()=>this._pushIfControlsChanged()});this._modeValues={light:{},dark:{}};this._suppressDepth=0;this._openedInitialCollapsible=!1;this._onNarrowChange=t=>{t.matches&&!this._wasNarrow&&(this.controlsCollapsed=!0),this._wasNarrow=t.matches};this._onSubmit=()=>{if(!this._submitting){if(this._flushPendingEdit(),this._saveTimer&&(window.clearTimeout(this._saveTimer),this._saveTimer=void 0),!this.action){this.emit("zn-theme-submit",{detail:{values:this.values}});return}this._submitting=!0,this._awaitSave().then(t=>{t&&this.emit("zn-theme-submit",{detail:{values:this.values}})}).finally(()=>{this._submitting=!1})}};this._onControlChange=()=>{this._suppressDepth>0||(this._pushTimer&&window.clearTimeout(this._pushTimer),this._pushTimer=window.setTimeout(()=>{this._pushTimer=void 0,this._harvestInto(this.mode),this._push(),this._queueSave()},this.debounce))};this._onSlotChange=()=>{this._pushIfControlsChanged()};this._setDevice=t=>{this.device!==t&&(this.device=t,this._announce())};this._toggleMode=()=>{this._flushPendingEdit(),this.mode=this.mode==="dark"?"light":"dark",this._writeBack(),this._push()};this._onFrameError=t=>{this.error=t.detail.message??"Preview failed to render"};this._onSourceChange=t=>{let r=Number(t.target.value);Number.isNaN(r)||(this._sourceIndex=r)}}get values(){return{light:{...this._modeValues.light},dark:{...this._modeValues.dark}}}get activeValues(){return{...this._modeValues[this.mode]}}_controlSlots(){return[this.controlsSlot,...Array.from(this.sectionSlots??[])].filter(t=>!!t)}_harvestNamed(){let t=[];for(let r of this._controlSlots()){let n=r.assignedElements({flatten:!0});for(let a of n){let s=[a,...Array.from(a.querySelectorAll("[name]"))];for(let l of s){let p=l;!p.getAttribute?.("name")||p.disabled||t.push({name:p.getAttribute("name"),control:p})}}}return t}_hasAssignedControls(t){return Array.from(this.children).some(r=>r.getAttribute("slot")===t)}_isBooleanControl(t){return HI.has(t.tagName.toLowerCase())||t.type==="checkbox"}_readControlValue(t){return this._isBooleanControl(t)?!!t.checked:t.value}_seed(){for(let{name:t,control:r}of this._harvestNamed()){if(t in this._modeValues.light)continue;let n=this._readControlValue(r);this._modeValues.light[t]=n;let a=r.getAttribute("dark-value");this._modeValues.dark[t]=a===null?n:this._isBooleanControl(r)?a==="1"||a==="true":a}}_writeBack(t=this.mode){let r=!1;for(let{name:n,control:a}of this._harvestNamed()){if(!(n in this._modeValues[t]))continue;let s=this._modeValues[t][n],l=this._isBooleanControl(a),p=l?!!a.checked:a.value;(l?p===s:String(p)===String(s))||(r=!0,l?a.checked=!!s:a.value=s)}r&&(this._suppressDepth++,window.setTimeout(()=>{this._suppressDepth--},0))}_harvestInto(t){for(let{name:r,control:n}of this._harvestNamed())this._modeValues[t][r]=this._readControlValue(n)}connectedCallback(){super.connectedCallback(),this._controlsObserver.observe(this),this._narrowQuery.addEventListener("change",this._onNarrowChange),this._onNarrowChange(this._narrowQuery)}disconnectedCallback(){this._pushTimer&&window.clearTimeout(this._pushTimer),this._saveTimer&&window.clearTimeout(this._saveTimer),this._narrowQuery.removeEventListener("change",this._onNarrowChange),super.disconnectedCallback()}firstUpdated(){this._pushIfControlsChanged()}_push(){this.error="",this.frame?.setTheme({mode:this.mode,values:this.activeValues}),this._announce()}_queueSave(){!this.action||this.manual||(this._saveTimer&&window.clearTimeout(this._saveTimer),this._saveTimer=window.setTimeout(()=>{this._saveTimer=void 0,this._save()},this.saveDebounce))}async _save(){if(this._saving){this._saveQueued=!0;return}this._saving=!0;let t=!1;try{let r=new FormData;for(let a of["light","dark"])for(let[s,l]of Object.entries(this._modeValues[a]))r.append(`${a}[${s}]`,typeof l=="boolean"?l?"1":"":String(l??""));let n=await fetch(this.action,{method:"POST",credentials:"same-origin",body:r});if(!n.ok)throw new Error(await n.text()||n.statusText);this.error="",t=!0}catch(r){this._fail(r instanceof Error?r.message:String(r))}finally{if(this._saving=!1,this._saveQueued)this._saveQueued=!1,this._save();else{let r=this._saveWaiters;this._saveWaiters=[],r.forEach(n=>n(t))}}}_awaitSave(){return new Promise(t=>{this._saveWaiters.push(t),this._save()})}_pushIfControlsChanged(){this.requestUpdate();let t=this._harvestNamed().map(({control:n})=>n);(!this._mounted||t.length!==this._lastControls.length||t.some((n,a)=>n!==this._lastControls[a]))&&(this._flushPendingEdit(),this._mounted=!0,this._lastControls=t,this._seed(),this._writeBack(),this._push())}_flushPendingEdit(){this._pushTimer&&(window.clearTimeout(this._pushTimer),this._pushTimer=void 0,this._harvestInto(this.mode),this._queueSave())}_announce(){this.emit("zn-theme-change",{detail:{values:this.values,mode:this.mode,device:this.device}})}_fail(t){this.error=t,this.emit("zn-error",{detail:{message:t}})}_sourcesSafe(){return Array.isArray(this.sources)?this.sources:[]}_frameSrc(){let t=this._sourcesSafe();return t.length>0?(t[this._sourceIndex]??t[0]).src:this.src}_sectionsSafe(){return Array.isArray(this.sections)?this.sections:[]}_groupsFor(t){return Array.isArray(t?.groups)?t.groups:[]}_hasStructureAttributes(){return Array.from(this.children).some(t=>t.hasAttribute("group")||t.hasAttribute("category"))}_usesDerivedSections(){return this._sectionsSafe().length===0&&this._hasStructureAttributes()}_derive(){let t=new Set,r=l=>{let p=VI(l)||"group",h=p;for(let m=2;t.has(h);m++)h=`${p}-${m}`;return t.add(h),h},n=new Map,a=new Map,s=new Map;for(let l of Array.from(this.children)){let p=l.getAttribute("group")?.trim()??"",h=l.getAttribute("category")?.trim()??"";if(!p&&!h)continue;let m=p||h,f=n.get(m);if(f||(f={name:r(m),caption:m,groups:[]},n.set(m,f)),!p||!h){s.set(l,f.name);continue}let b=`${m}\0${h}`,g=a.get(b);g||(g=r(`${m}-${h}`),a.set(b,g),f.groups.push({name:g,caption:h})),s.set(l,g)}return{sections:Array.from(n.values()),assignments:s}}_effectiveSections(){return this._usesDerivedSections()?this._derive().sections:this._sectionsSafe()}_assignDerivedSlots(){if(this._usesDerivedSections())for(let[t,r]of this._derive().assignments)t.getAttribute("slot")!==r&&t.setAttribute("slot",r)}willUpdate(t){super.willUpdate(t),this._assignDerivedSlots()}_hasNestedGroups(){return this._effectiveSections().some(t=>this._groupsFor(t).length>0)}_visibleGroups(t){return this._groupsFor(t).filter(r=>this._hasAssignedControls(r.name))}_visibleSections(){let t=this._effectiveSections();return this._hasNestedGroups()?t.filter(r=>this._visibleGroups(r).length>0):t.filter(r=>this._hasAssignedControls(r.name))}_renderSections(){return this._visibleSections().map(t=>u`
5941
+ </div>`}};$t.styles=z(Zk),c([d()],$t.prototype,"src",2),c([d({attribute:"frame-origin"})],$t.prototype,"frameOrigin",2),c([d({attribute:"data-uri"})],$t.prototype,"dataUri",2),c([d()],$t.prototype,"watch",2),c([d({attribute:"refresh-on"})],$t.prototype,"refreshOn",2),c([d({type:Number})],$t.prototype,"debounce",2),c([d({type:Number})],$t.prototype,"zoom",2),c([d({type:Number,attribute:"min-height"})],$t.prototype,"minHeight",2),c([d({type:Boolean})],$t.prototype,"fill",2),c([d({reflect:!0})],$t.prototype,"device",2),c([d({reflect:!0})],$t.prototype,"backdrop",2),c([d({type:Boolean,reflect:!0})],$t.prototype,"interactive",2),c([F("iframe")],$t.prototype,"frame",2),c([D()],$t.prototype,"error",2),c([D()],$t.prototype,"_contentHeight",2);var jg=$t;$t.define("zn-preview-frame");var t3=_`@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;--zn-theme-editor-controls-width:343px;height:100%}.editor{--controls-col:var(--zn-theme-editor-controls-width);display:flex;align-items:stretch;height:100%}.editor--controls-collapsed{--controls-col:0px}.editor--controls-collapsed .editor__controls{border-right:none}.editor--controls-collapsed .editor__controls-header,.editor--controls-collapsed .editor__controls-body{padding:0}:host([standalone]) .editor{background:rgb(var(--zn-panel));border:1px solid rgb(var(--zn-border-color));border-radius:8px;overflow:hidden}.editor__toolbar{display:flex;align-items:center;flex:0 0 auto;min-height:44px;gap:var(--zn-spacing-small);padding:var(--zn-spacing-small) var(--zn-spacing-medium);border-bottom:1px solid rgb(var(--zn-border-color))}.editor__toolbar-actions{display:flex;align-items:center;gap:var(--zn-spacing-small);margin-left:auto}.editor__caption{font-size:14px;font-weight:600;line-height:16px;color:rgb(var(--zn-text))}.editor__controls{--zn-active-nav-background:var(--zn-panel);--navbar-page-inactive-tab-background:rgb(var(--zn-color-tab));--navbar-page-inactive-tab-filter:none;position:relative;display:flex;flex-direction:column;flex:0 0 var(--controls-col);min-width:0;max-width:100%;background:rgb(var(--zn-panel));border-right:1px solid rgb(var(--zn-border-color));overflow:hidden;transition:flex-basis 0.2s ease}.editor__controls-inner{position:absolute;inset:0;display:flex;flex-direction:column}.editor__controls-header{display:flex;align-items:center;flex:0 0 auto;min-height:44px;padding:var(--zn-spacing-small) var(--zn-spacing-medium)}.editor__controls-body{display:flex;flex-direction:column;gap:var(--zn-spacing-medium);flex:1 1 auto;min-height:0}.editor__main{position:relative;display:flex;flex-direction:column;flex:1 1 auto;min-width:0;min-height:0}.editor__fields{display:flex;flex-direction:column;gap:var(--zn-spacing-medium);flex:1 1 auto;min-height:0;overflow-y:auto}::slotted(zn-collapsible){width:100%}.editor__fields--sections-only .editor__section:first-of-type{border-top:none}.editor__section{display:block;border-top:1px solid rgba(var(--zn-border-color),0.5)}.editor__section::part(header){align-items:center !important;padding-block:calc(var(--zn-base-px) * 2) !important}.editor__section::part(caption){font-size:14px;font-weight:600;line-height:16px;color:rgb(var(--zn-text))}.editor__section-fields{display:flex;flex-direction:column;gap:var(--zn-spacing-medium)}.editor__tabs{display:block}.editor__section-slot{padding-top:var(--zn-spacing-sm)}.editor__tab-panel{display:flex;flex-direction:column}.editor__footer{display:flex;flex:0 0 auto;gap:var(--zn-spacing-small);padding-top:var(--zn-spacing-small);border-top:1px solid rgb(var(--zn-border-color));margin-top:auto}.editor__preview{overflow:hidden;flex:1 1 auto;min-width:0;min-height:0;display:flex;flex-direction:column}.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}.editor__device[aria-pressed=true]{--zn-button-border-color:rgb(var(--zn-primary))}.editor__device[aria-pressed=true]::part(base){background:rgb(var(--zn-primary)) !important;color:white !important}.editor__mode{margin-left:auto}.editor__sources{width:auto}.editor__sources::part(form-control-label){position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.editor__error{padding:var(--zn-spacing-small);margin-bottom:var(--zn-spacing-small);border-radius:4px;background:rgba(var(--zn-color-error),0.1);border:1px solid rgb(var(--zn-color-error));color:rgb(var(--zn-color-error));font-size:0.8125rem}@media (max-width:768px){:host{height:auto}.editor{flex-direction:column;height:auto}.editor__fields,.editor__preview{overflow:visible}.editor__controls{flex-basis:auto;width:100%;border-right:none;border-bottom:1px solid rgb(var(--zn-border-color))}.editor__controls-inner{position:static}.editor--controls-collapsed .editor__controls{display:none}.editor__main{width:100%;padding-top:var(--zn-spacing-medium)}.panel-toggle{top:-12px;transform:translateX(-50%);transition:top 0.2s ease,color 0.12s ease,border-color 0.12s ease}.panel-toggle--left{left:50%}.panel-toggle--left.panel-toggle--tucked{top:8px;left:50%}}`;var HI=new Set(["zn-checkbox","zn-toggle"]),FI="(max-width: 768px)",BI=[{id:"desktop",icon:"monitor",label:"Desktop"},{id:"tablet",icon:"tablet",label:"Tablet"},{id:"mobile",icon:"smartphone",label:"Mobile"}];function VI(o){return o.toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,"")}var Ie=class extends k{constructor(){super(...arguments);this.src="";this.frameOrigin="";this.dataUri="";this.mode="light";this.device="desktop";this.minHeight=480;this.debounce=150;this.action="";this.saveDebounce=1e3;this.sections=[];this.sectionLayout="collapsible";this.sources=[];this.controlsCollapsed=!1;this.standalone=!1;this.controlsCaption="";this.previewCaption="";this.submitLabel="";this.manual=!1;this.error="";this._submitting=!1;this._sourceIndex=0;this.hasSlotController=new Y(this,"footer","[default]");this._saving=!1;this._saveQueued=!1;this._saveWaiters=[];this._narrowQuery=window.matchMedia(FI);this._wasNarrow=!1;this._mounted=!1;this._lastControls=[];this._controlsObserverConfig={childList:!0,subtree:!0};this._controlsObserver=new Oe(this,{target:null,config:this._controlsObserverConfig,callback:()=>this._pushIfControlsChanged()});this._modeValues={light:{},dark:{}};this._suppressDepth=0;this._openedInitialCollapsible=!1;this._onNarrowChange=t=>{t.matches&&!this._wasNarrow&&(this.controlsCollapsed=!0),this._wasNarrow=t.matches};this._onSubmit=()=>{if(!this._submitting){if(this._flushPendingEdit(),this._saveTimer&&(window.clearTimeout(this._saveTimer),this._saveTimer=void 0),!this.action){this.emit("zn-theme-submit",{detail:{values:this.values}});return}this._submitting=!0,this._awaitSave().then(t=>{t&&this.emit("zn-theme-submit",{detail:{values:this.values}})}).finally(()=>{this._submitting=!1})}};this._onControlChange=()=>{this._suppressDepth>0||(this._pushTimer&&window.clearTimeout(this._pushTimer),this._pushTimer=window.setTimeout(()=>{this._pushTimer=void 0,this._harvestInto(this.mode),this._push(),this._queueSave()},this.debounce))};this._onSlotChange=()=>{this._pushIfControlsChanged()};this._setDevice=t=>{this.device!==t&&(this.device=t,this._announce())};this._toggleMode=()=>{this._flushPendingEdit(),this.mode=this.mode==="dark"?"light":"dark",this._writeBack(),this._push()};this._onFrameError=t=>{this.error=t.detail.message??"Preview failed to render"};this._onSourceChange=t=>{let r=Number(t.target.value);Number.isNaN(r)||(this._sourceIndex=r)}}get values(){return{light:{...this._modeValues.light},dark:{...this._modeValues.dark}}}get activeValues(){return{...this._modeValues[this.mode]}}_controlSlots(){return[this.controlsSlot,...Array.from(this.sectionSlots??[])].filter(t=>!!t)}_harvestNamed(){let t=[];for(let r of this._controlSlots()){let n=r.assignedElements({flatten:!0});for(let a of n){let s=[a,...Array.from(a.querySelectorAll("[name]"))];for(let l of s){let p=l;!p.getAttribute?.("name")||p.disabled||t.push({name:p.getAttribute("name"),control:p})}}}return t}_hasAssignedControls(t){return Array.from(this.children).some(r=>r.getAttribute("slot")===t)}_isBooleanControl(t){return HI.has(t.tagName.toLowerCase())||t.type==="checkbox"}_readControlValue(t){return this._isBooleanControl(t)?!!t.checked:t.value}_seed(){for(let{name:t,control:r}of this._harvestNamed()){if(t in this._modeValues.light)continue;let n=this._readControlValue(r);this._modeValues.light[t]=n;let a=r.getAttribute("dark-value");this._modeValues.dark[t]=a===null?n:this._isBooleanControl(r)?a==="1"||a==="true":a}}_writeBack(t=this.mode){let r=!1;for(let{name:n,control:a}of this._harvestNamed()){if(!(n in this._modeValues[t]))continue;let s=this._modeValues[t][n],l=this._isBooleanControl(a),p=l?!!a.checked:a.value;(l?p===s:String(p)===String(s))||(r=!0,l?a.checked=!!s:a.value=s)}r&&(this._suppressDepth++,window.setTimeout(()=>{this._suppressDepth--},0))}_harvestInto(t){for(let{name:r,control:n}of this._harvestNamed())this._modeValues[t][r]=this._readControlValue(n)}connectedCallback(){super.connectedCallback(),this._controlsObserver.observe(this),this._narrowQuery.addEventListener("change",this._onNarrowChange),this._onNarrowChange(this._narrowQuery)}disconnectedCallback(){this._pushTimer&&window.clearTimeout(this._pushTimer),this._saveTimer&&window.clearTimeout(this._saveTimer),this._narrowQuery.removeEventListener("change",this._onNarrowChange),super.disconnectedCallback()}firstUpdated(){this._pushIfControlsChanged()}_push(){this.error="",this.frame?.setTheme({mode:this.mode,values:this.activeValues}),this._announce()}_queueSave(){!this.action||this.manual||(this._saveTimer&&window.clearTimeout(this._saveTimer),this._saveTimer=window.setTimeout(()=>{this._saveTimer=void 0,this._save()},this.saveDebounce))}async _save(){if(this._saving){this._saveQueued=!0;return}this._saving=!0;let t=!1;try{let r=new FormData;for(let a of["light","dark"])for(let[s,l]of Object.entries(this._modeValues[a]))r.append(`${a}[${s}]`,typeof l=="boolean"?l?"1":"":String(l??""));let n=await fetch(this.action,{method:"POST",credentials:"same-origin",body:r});if(!n.ok)throw new Error(await n.text()||n.statusText);this.error="",t=!0}catch(r){this._fail(r instanceof Error?r.message:String(r))}finally{if(this._saving=!1,this._saveQueued)this._saveQueued=!1,this._save();else{let r=this._saveWaiters;this._saveWaiters=[],r.forEach(n=>n(t))}}}_awaitSave(){return new Promise(t=>{this._saveWaiters.push(t),this._save()})}_pushIfControlsChanged(){this.requestUpdate();let t=this._harvestNamed().map(({control:n})=>n);(!this._mounted||t.length!==this._lastControls.length||t.some((n,a)=>n!==this._lastControls[a]))&&(this._flushPendingEdit(),this._mounted=!0,this._lastControls=t,this._seed(),this._writeBack(),this._push())}_flushPendingEdit(){this._pushTimer&&(window.clearTimeout(this._pushTimer),this._pushTimer=void 0,this._harvestInto(this.mode),this._queueSave())}_announce(){this.emit("zn-theme-change",{detail:{values:this.values,mode:this.mode,device:this.device}})}_fail(t){this.error=t,this.emit("zn-error",{detail:{message:t}})}_sourcesSafe(){return Array.isArray(this.sources)?this.sources:[]}_frameSrc(){let t=this._sourcesSafe();return t.length>0?(t[this._sourceIndex]??t[0]).src:this.src}_sectionsSafe(){return Array.isArray(this.sections)?this.sections:[]}_groupsFor(t){return Array.isArray(t?.groups)?t.groups:[]}_hasStructureAttributes(){return Array.from(this.children).some(t=>t.hasAttribute("group")||t.hasAttribute("category"))}_usesDerivedSections(){return this._sectionsSafe().length===0&&this._hasStructureAttributes()}_derive(){let t=new Set,r=l=>{let p=VI(l)||"group",h=p;for(let m=2;t.has(h);m++)h=`${p}-${m}`;return t.add(h),h},n=new Map,a=new Map,s=new Map;for(let l of Array.from(this.children)){let p=l.getAttribute("group")?.trim()??"",h=l.getAttribute("category")?.trim()??"";if(!p&&!h)continue;let m=p||h,f=n.get(m);if(f||(f={name:r(m),caption:m,groups:[]},n.set(m,f)),!p||!h){s.set(l,f.name);continue}let b=`${m}\0${h}`,g=a.get(b);g||(g=r(`${m}-${h}`),a.set(b,g),f.groups.push({name:g,caption:h})),s.set(l,g)}return{sections:Array.from(n.values()),assignments:s}}_effectiveSections(){return this._usesDerivedSections()?this._derive().sections:this._sectionsSafe()}_assignDerivedSlots(){if(this._usesDerivedSections())for(let[t,r]of this._derive().assignments)t.getAttribute("slot")!==r&&t.setAttribute("slot",r)}willUpdate(t){super.willUpdate(t),this._assignDerivedSlots()}_hasNestedGroups(){return this._effectiveSections().some(t=>this._groupsFor(t).length>0)}_visibleGroups(t){return this._groupsFor(t).filter(r=>this._hasAssignedControls(r.name))}_visibleSections(){let t=this._effectiveSections();return this._hasNestedGroups()?t.filter(r=>this._visibleGroups(r).length>0):t.filter(r=>this._hasAssignedControls(r.name))}_renderSections(){return this._visibleSections().map(t=>u`
5942
5942
  <zn-collapsible
5943
5943
  class="editor__section"
5944
5944
  part="section"
@@ -6065,7 +6065,7 @@ ${n}`:""}</li></ol>`};return t(0)}parseTable(i,t){this.index++;let r=[],n=[];for
6065
6065
  @zn-error="${this._onFrameError}"></zn-preview-frame>
6066
6066
  </div>
6067
6067
  </div>
6068
- </div>`}};Ie.styles=z(t3),Ie.dependencies={"zn-collapsible":za,"zn-preview-frame":jg,"zn-icon":ne,"zn-button":$e,"zn-button-group":Ol,"zn-tabs":ln,"zn-navbar":Sa,"zn-select":Be,"zn-option":ot},c([d()],Ie.prototype,"src",2),c([d({attribute:"frame-origin"})],Ie.prototype,"frameOrigin",2),c([d({attribute:"data-uri"})],Ie.prototype,"dataUri",2),c([d({reflect:!0})],Ie.prototype,"mode",2),c([d({reflect:!0})],Ie.prototype,"device",2),c([d({type:Number,attribute:"min-height"})],Ie.prototype,"minHeight",2),c([d({type:Number})],Ie.prototype,"debounce",2),c([d()],Ie.prototype,"action",2),c([d({type:Number,attribute:"save-debounce"})],Ie.prototype,"saveDebounce",2),c([d({type:Array})],Ie.prototype,"sections",2),c([d({attribute:"section-layout"})],Ie.prototype,"sectionLayout",2),c([d({type:Array})],Ie.prototype,"sources",2),c([d({type:Boolean,reflect:!0,attribute:"controls-collapsed"})],Ie.prototype,"controlsCollapsed",2),c([d({type:Boolean,reflect:!0})],Ie.prototype,"standalone",2),c([d({attribute:"controls-caption"})],Ie.prototype,"controlsCaption",2),c([d({attribute:"preview-caption"})],Ie.prototype,"previewCaption",2),c([d({attribute:"submit-label"})],Ie.prototype,"submitLabel",2),c([d({type:Boolean})],Ie.prototype,"manual",2),c([F("zn-preview-frame")],Ie.prototype,"frame",2),c([F("slot:not([name])")],Ie.prototype,"controlsSlot",2),c([es(".editor__section-slot")],Ie.prototype,"sectionSlots",2),c([R()],Ie.prototype,"error",2),c([R()],Ie.prototype,"_submitting",2),c([R()],Ie.prototype,"_sourceIndex",2);var UI=Ie;Ie.define("zn-theme-editor");var r3=_`@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 sr=["mon","tue","wed","thu","fri","sat","sun"],pl={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"}},$i=1440;function hl(){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),$i);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>$i?null:n}function Kr(o){let i=Math.min(Math.max(Math.round(o),0),$i),t=Math.floor(i/60),r=i%60;return`${String(t).padStart(2,"0")}:${String(r).padStart(2,"0")}`}function ul(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:Kr(r),end:Kr(n)}))}function jh(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)})}}),ul(i)}function jI(o,i,t){return ul([...o,{start:Kr(i),end:Kr(t)}])}function GI(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:Kr(a),end:Kr(i)}),s>t&&r.push({start:Kr(t),end:Kr(s)})}}),ul(r)}function WI(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 Gh(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 KI(o){return Gh(o.date??o.from)}function YI(o){return Gh(o.to??o.date??o.from)}function i3(o){if(o.days?.length)return o.days.filter(s=>sr.includes(s));let i=KI(o),t=YI(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)>=sr.length-1?[...sr]:[]}function Gg(o){return o.closed?[]:o.ranges?jh(o.ranges):null}var Ka=7*$i;function ml(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 Yg(o){let i=[];return sr.forEach((t,r)=>{let n=r*$i;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])})}),ml(i)}function QI(o){let i=hl();return ml(o).forEach(([t,r])=>{let n=t;for(;n<r;){let a=Math.min(Math.floor(n/$i),sr.length-1),s=a*$i,l=Math.min(r,s+$i);i[sr[a]].push({start:Kr(n-s),end:Kr(l-s)}),n=l}}),sr.forEach(t=>{i[t]=ul(i[t])}),i}function o3(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,Ka),s=((r+i)%Ka+Ka)%Ka,l=s+a;if(l<=Ka){t.push([s,l]);return}t.push([s,Ka]),t.push([0,l-Ka])}),ml(t)}function Wg(o,i){return i?QI(o3(Yg(o),i)):o}function XI(o,i){let t=ml(o);return ml(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 Kg(o,i){return o.some(([t,r])=>i>=t&&i<r)}function Ya(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 JI(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 ZI(o,i){return!o.label&&o.zone==="UTC"?"UTC":`${o.label??o.zone.replace(/_/g," ")} (${JI(Ya(o.zone,i))})`}function n3(){try{return Intl.DateTimeFormat().resolvedOptions().timeZone||"UTC"}catch{return"UTC"}}var eD=[{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"}],tD=["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"],a3=["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 rD(){return typeof Intl.supportedValuesOf=="function"?Intl.supportedValuesOf("timeZone"):a3}function iD(o){switch(o.toLowerCase()){case"en":return eD;case"offsets":return tD.map(i=>({zone:i}));case"common":return a3.map(i=>({zone:i}));case"all":return rD().map(i=>({zone:i}));default:return[{zone:o}]}}var ve=class extends k{constructor(){super();this.formControlController=new re(this,{assumeInteractionOn:["zn-change"]});this.hasSlotController=new Y(this,"help-text","label");this.localize=new Ht(this);this._days=hl();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=Yg(this._storedAsShown);this._dragMode=Kg(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??pt}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"?n3():this.displayTimezone||this._saveZone}get _reference(){return Gh(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 Ya(r,n)-Ya(t,n)}get _orderedDays(){let t=Math.max(sr.indexOf(this.weekStart),0);return[...sr.slice(t),...sr.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,$i):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 sr.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){sr.includes(t)&&(this._days={...this._days,[t]:jh(r)},this._commit())}getDay(t){return this._days[t]??[]}get displayedDays(){return this._cloneDays(this._storedAsShown)}setDisplayDay(t,r){sr.includes(t)&&this._commitShownDays({...this._storedAsShown,[t]:jh(r)})}formResetCallback(){this._applySchedule(this.defaultValue),this._commit(!1)}formStateRestoreCallback(t){this._applySchedule(t),this._commit(!1)}_cloneDays(t){let r=hl();return sr.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 p=t.trim();if(!p){this._days=hl(),this._exceptions=[];return}try{r=JSON.parse(p)}catch{return}}if(!r||typeof r!="object"){this._days=hl(),this._exceptions=[];return}let n=r,a=n.days??n,s=hl();sr.forEach(p=>{s[p]=jh(a?.[p])});let l=typeof n.timezone=="string"?n.timezone:"";if(l&&!this.saveTimezone)this.saveTimezone=l;else if(l&&l!==this.saveTimezone){let p=this._reference,h=Ya(this.saveTimezone,p)-Ya(l,p);this._days=Wg(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 Kr(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=Gh(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 Wg(this._days,this._offsetDelta)}get _shownDays(){return this._dragPreview??this._storedAsShown}_commitShownDays(t){this._days=Wg(t,-this._offsetDelta),this._commit()}_exceptionsForDay(t){return this._exceptions.filter(r=>i3(r).includes(t))}get _shownReductionSpans(){let t=[];return this._exceptions.forEach(r=>{let n=Gg(r);n!==null&&i3(r).forEach(a=>{let s=sr.indexOf(a)*$i;t.push(...XI([[s,s+$i]],n.reduce((l,p)=>{let h=fi(p.start),m=fi(p.end);return h!==null&&m!==null&&l.push([s+h,s+m]),l},[])))})}),o3(ml(t),this._offsetDelta)}_slotMinute(t,r){return sr.indexOf(t)*$i+this._startMinute+r*this._interval+this._interval/2}_slotState(t,r,n,a){let s=this._slotMinute(t,r);return Kg(n,s)?Kg(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),p=Math.max(r.row,t.row),h=this._startMinute+l*this._interval,m=Math.min(this._startMinute+(p+1)*this._interval,this._endMinute);return this._orderedDays.slice(a,s+1).forEach(b=>{n[b]=this._dragMode==="open"?jI(n[b],h,m):GI(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,$i-60);return{start:Kr(n),end:Kr(n+60)}}_handleAddRange(t){if(!this._isEditable)return;let r=this._storedAsShown,n=this._nextFreeRange(r[t]),a=ul([...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,p=ul(l[t].map((h,m)=>m===r?{...h,[n]:Kr(s)}:h));this._editing&&this._editing.day===t&&this._editing.index>=p.length&&(this._editing=p.length?{day:t,index:p.length-1}:null),this._commitShownDays({...l,[t]:p})}_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?B:u`
6068
+ </div>`}};Ie.styles=z(t3),Ie.dependencies={"zn-collapsible":za,"zn-preview-frame":jg,"zn-icon":ne,"zn-button":$e,"zn-button-group":Ol,"zn-tabs":ln,"zn-navbar":Sa,"zn-select":Be,"zn-option":at},c([d()],Ie.prototype,"src",2),c([d({attribute:"frame-origin"})],Ie.prototype,"frameOrigin",2),c([d({attribute:"data-uri"})],Ie.prototype,"dataUri",2),c([d({reflect:!0})],Ie.prototype,"mode",2),c([d({reflect:!0})],Ie.prototype,"device",2),c([d({type:Number,attribute:"min-height"})],Ie.prototype,"minHeight",2),c([d({type:Number})],Ie.prototype,"debounce",2),c([d()],Ie.prototype,"action",2),c([d({type:Number,attribute:"save-debounce"})],Ie.prototype,"saveDebounce",2),c([d({type:Array})],Ie.prototype,"sections",2),c([d({attribute:"section-layout"})],Ie.prototype,"sectionLayout",2),c([d({type:Array})],Ie.prototype,"sources",2),c([d({type:Boolean,reflect:!0,attribute:"controls-collapsed"})],Ie.prototype,"controlsCollapsed",2),c([d({type:Boolean,reflect:!0})],Ie.prototype,"standalone",2),c([d({attribute:"controls-caption"})],Ie.prototype,"controlsCaption",2),c([d({attribute:"preview-caption"})],Ie.prototype,"previewCaption",2),c([d({attribute:"submit-label"})],Ie.prototype,"submitLabel",2),c([d({type:Boolean})],Ie.prototype,"manual",2),c([F("zn-preview-frame")],Ie.prototype,"frame",2),c([F("slot:not([name])")],Ie.prototype,"controlsSlot",2),c([es(".editor__section-slot")],Ie.prototype,"sectionSlots",2),c([D()],Ie.prototype,"error",2),c([D()],Ie.prototype,"_submitting",2),c([D()],Ie.prototype,"_sourceIndex",2);var UI=Ie;Ie.define("zn-theme-editor");var r3=_`@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 sr=["mon","tue","wed","thu","fri","sat","sun"],pl={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"}},$i=1440;function hl(){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),$i);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>$i?null:n}function Kr(o){let i=Math.min(Math.max(Math.round(o),0),$i),t=Math.floor(i/60),r=i%60;return`${String(t).padStart(2,"0")}:${String(r).padStart(2,"0")}`}function ul(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:Kr(r),end:Kr(n)}))}function jh(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)})}}),ul(i)}function jI(o,i,t){return ul([...o,{start:Kr(i),end:Kr(t)}])}function GI(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:Kr(a),end:Kr(i)}),s>t&&r.push({start:Kr(t),end:Kr(s)})}}),ul(r)}function WI(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 Gh(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 KI(o){return Gh(o.date??o.from)}function YI(o){return Gh(o.to??o.date??o.from)}function i3(o){if(o.days?.length)return o.days.filter(s=>sr.includes(s));let i=KI(o),t=YI(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)>=sr.length-1?[...sr]:[]}function Gg(o){return o.closed?[]:o.ranges?jh(o.ranges):null}var Ka=7*$i;function ml(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 Yg(o){let i=[];return sr.forEach((t,r)=>{let n=r*$i;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])})}),ml(i)}function QI(o){let i=hl();return ml(o).forEach(([t,r])=>{let n=t;for(;n<r;){let a=Math.min(Math.floor(n/$i),sr.length-1),s=a*$i,l=Math.min(r,s+$i);i[sr[a]].push({start:Kr(n-s),end:Kr(l-s)}),n=l}}),sr.forEach(t=>{i[t]=ul(i[t])}),i}function o3(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,Ka),s=((r+i)%Ka+Ka)%Ka,l=s+a;if(l<=Ka){t.push([s,l]);return}t.push([s,Ka]),t.push([0,l-Ka])}),ml(t)}function Wg(o,i){return i?QI(o3(Yg(o),i)):o}function XI(o,i){let t=ml(o);return ml(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 Kg(o,i){return o.some(([t,r])=>i>=t&&i<r)}function Ya(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 JI(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 ZI(o,i){return!o.label&&o.zone==="UTC"?"UTC":`${o.label??o.zone.replace(/_/g," ")} (${JI(Ya(o.zone,i))})`}function n3(){try{return Intl.DateTimeFormat().resolvedOptions().timeZone||"UTC"}catch{return"UTC"}}var eD=[{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"}],tD=["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"],a3=["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 rD(){return typeof Intl.supportedValuesOf=="function"?Intl.supportedValuesOf("timeZone"):a3}function iD(o){switch(o.toLowerCase()){case"en":return eD;case"offsets":return tD.map(i=>({zone:i}));case"common":return a3.map(i=>({zone:i}));case"all":return rD().map(i=>({zone:i}));default:return[{zone:o}]}}var ve=class extends k{constructor(){super();this.formControlController=new re(this,{assumeInteractionOn:["zn-change"]});this.hasSlotController=new Y(this,"help-text","label");this.localize=new Ht(this);this._days=hl();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=Yg(this._storedAsShown);this._dragMode=Kg(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??pt}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"?n3():this.displayTimezone||this._saveZone}get _reference(){return Gh(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 Ya(r,n)-Ya(t,n)}get _orderedDays(){let t=Math.max(sr.indexOf(this.weekStart),0);return[...sr.slice(t),...sr.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,$i):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 sr.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){sr.includes(t)&&(this._days={...this._days,[t]:jh(r)},this._commit())}getDay(t){return this._days[t]??[]}get displayedDays(){return this._cloneDays(this._storedAsShown)}setDisplayDay(t,r){sr.includes(t)&&this._commitShownDays({...this._storedAsShown,[t]:jh(r)})}formResetCallback(){this._applySchedule(this.defaultValue),this._commit(!1)}formStateRestoreCallback(t){this._applySchedule(t),this._commit(!1)}_cloneDays(t){let r=hl();return sr.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 p=t.trim();if(!p){this._days=hl(),this._exceptions=[];return}try{r=JSON.parse(p)}catch{return}}if(!r||typeof r!="object"){this._days=hl(),this._exceptions=[];return}let n=r,a=n.days??n,s=hl();sr.forEach(p=>{s[p]=jh(a?.[p])});let l=typeof n.timezone=="string"?n.timezone:"";if(l&&!this.saveTimezone)this.saveTimezone=l;else if(l&&l!==this.saveTimezone){let p=this._reference,h=Ya(this.saveTimezone,p)-Ya(l,p);this._days=Wg(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 Kr(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=Gh(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 Wg(this._days,this._offsetDelta)}get _shownDays(){return this._dragPreview??this._storedAsShown}_commitShownDays(t){this._days=Wg(t,-this._offsetDelta),this._commit()}_exceptionsForDay(t){return this._exceptions.filter(r=>i3(r).includes(t))}get _shownReductionSpans(){let t=[];return this._exceptions.forEach(r=>{let n=Gg(r);n!==null&&i3(r).forEach(a=>{let s=sr.indexOf(a)*$i;t.push(...XI([[s,s+$i]],n.reduce((l,p)=>{let h=fi(p.start),m=fi(p.end);return h!==null&&m!==null&&l.push([s+h,s+m]),l},[])))})}),o3(ml(t),this._offsetDelta)}_slotMinute(t,r){return sr.indexOf(t)*$i+this._startMinute+r*this._interval+this._interval/2}_slotState(t,r,n,a){let s=this._slotMinute(t,r);return Kg(n,s)?Kg(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),p=Math.max(r.row,t.row),h=this._startMinute+l*this._interval,m=Math.min(this._startMinute+(p+1)*this._interval,this._endMinute);return this._orderedDays.slice(a,s+1).forEach(b=>{n[b]=this._dragMode==="open"?jI(n[b],h,m):GI(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,$i-60);return{start:Kr(n),end:Kr(n+60)}}_handleAddRange(t){if(!this._isEditable)return;let r=this._storedAsShown,n=this._nextFreeRange(r[t]),a=ul([...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,p=ul(l[t].map((h,m)=>m===r?{...h,[n]:Kr(s)}:h));this._editing&&this._editing.day===t&&this._editing.index>=p.length&&(this._editing=p.length?{day:t,index:p.length-1}:null),this._commitShownDays({...l,[t]:p})}_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?B:u`
6069
6069
  <div class="schedule-builder__toolbar" part="toolbar">
6070
6070
  ${this.view==="calendar"&&this._isEditable?u`<p class="schedule-builder__hint">
6071
6071
  Drag across the grid to open hours; drag over open hours to close them.
@@ -6234,7 +6234,7 @@ ${n}`:""}</li></ol>`};return t(0)}parseTable(i,t){this.index++;let r=[],n=[];for
6234
6234
  <slot name="help-text">${this.helpText}</slot>
6235
6235
  </div>
6236
6236
  </div>
6237
- `}};ve.styles=[z(Se),z(r3)],ve.formAssociated=!0,ve.dependencies={"zn-icon":ne,"zn-input":nt,"zn-option":ot,"zn-select":Be},c([F(".schedule-builder__canvas")],ve.prototype,"canvas",2),c([R()],ve.prototype,"_days",2),c([R()],ve.prototype,"_exceptions",2),c([R()],ve.prototype,"_dragPreview",2),c([R()],ve.prototype,"_editing",2),c([d({reflect:!0})],ve.prototype,"name",2),c([d()],ve.prototype,"value",2),c([Ce()],ve.prototype,"defaultValue",2),c([d()],ve.prototype,"label",2),c([d({attribute:"help-text"})],ve.prototype,"helpText",2),c([d({reflect:!0})],ve.prototype,"view",2),c([d({attribute:"open-label"})],ve.prototype,"openLabel",2),c([d({attribute:"closed-label"})],ve.prototype,"closedLabel",2),c([d({attribute:"no-toggle",type:Boolean})],ve.prototype,"noToggle",2),c([d({attribute:"hide-summary",type:Boolean})],ve.prototype,"hideSummary",2),c([d({attribute:"start-hour",type:Number})],ve.prototype,"startHour",2),c([d({attribute:"end-hour",type:Number})],ve.prototype,"endHour",2),c([d({type:Number})],ve.prototype,"interval",2),c([d({attribute:"week-start"})],ve.prototype,"weekStart",2),c([d({attribute:"time-format"})],ve.prototype,"timeFormat",2),c([d({attribute:"display-timezone"})],ve.prototype,"displayTimezone",2),c([d({attribute:"save-timezone"})],ve.prototype,"saveTimezone",2),c([d({attribute:"show-timezone",type:Boolean})],ve.prototype,"showTimezone",2),c([d({attribute:"timezones",converter:{fromAttribute:t=>t.split(/[,\s]+/).filter(Boolean),toAttribute:t=>t.join(" ")}})],ve.prototype,"timezones",2),c([d({attribute:"reference-date"})],ve.prototype,"referenceDate",2),c([d({type:Boolean,reflect:!0})],ve.prototype,"disabled",2),c([d({type:Boolean,reflect:!0})],ve.prototype,"readonly",2),c([d({type:Boolean,reflect:!0})],ve.prototype,"required",2),c([d({reflect:!0})],ve.prototype,"form",2),c([K("value")],ve.prototype,"handleValueChange",1),c([K(["required","disabled"])],ve.prototype,"handleValidationStateChange",1);var nD=ve;ve.define("zn-schedule-builder");var s3=_`@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;min-width:0}.thumbnail{position:relative;min-width:0}.thumbnail__link{display:flex;flex-direction:column;gap:var(--zn-spacing-x-small);min-width:0;color:inherit;text-decoration:none;outline:none}.thumbnail--interactive .thumbnail__link{cursor:pointer}.thumbnail__media{position:relative;aspect-ratio:var(--zn-thumbnail-aspect-ratio,16/9);width:100%;overflow:hidden;border-radius:var(--zn-thumbnail-radius,var(--zn-border-radius));background-color:rgb(var(--zn-panel));--thumbnail-ring-color:rgb(var(--zn-border-color));--thumbnail-ring-width:1px;--thumbnail-ring-gap:0px}.thumbnail__media::after{content:"";position:absolute;inset:0;z-index:1;border-radius:inherit;pointer-events:none;box-shadow:inset 0 0 0 var(--thumbnail-ring-width) var(--thumbnail-ring-color),inset 0 0 0 calc(var(--thumbnail-ring-width) + var(--thumbnail-ring-gap)) rgb(var(--zn-body));transition:box-shadow var(--zn-transition-fast) ease-in-out}.thumbnail__image{display:block;width:100%;height:100%;-o-object-fit:cover;object-fit:cover}.thumbnail__slotted-media{display:grid;place-items:center;width:100%;height:100%}.thumbnail__slotted-media::slotted(img),.thumbnail__slotted-media::slotted(video),.thumbnail__slotted-media::slotted(canvas),.thumbnail__slotted-media::slotted(picture),.thumbnail__slotted-media::slotted(div){width:100%;height:100%;-o-object-fit:cover;object-fit:cover}.thumbnail__caption{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);min-width:0;overflow:hidden;text-align:center;text-overflow:ellipsis;white-space:nowrap}.thumbnail__overlay{position:absolute;top:0;left:0;right:0;aspect-ratio:var(--zn-thumbnail-aspect-ratio,16/9);border-radius:var(--zn-thumbnail-radius,var(--zn-border-radius));overflow:hidden;pointer-events:none}.thumbnail__badge,.thumbnail__actions,.thumbnail__preview-button{position:absolute;display:flex;align-items:center;gap:var(--zn-thumbnail-chip-gap,var(--zn-spacing-2x-small))}.thumbnail__badge{bottom:var(--zn-spacing-2x-small);left:var(--zn-spacing-2x-small);pointer-events:none}.thumbnail__actions,.thumbnail__preview-button{pointer-events:auto}.thumbnail__actions{bottom:var(--zn-spacing-2x-small);right:var(--zn-spacing-2x-small)}.thumbnail__preview-button{display:inline-flex;align-items:center;justify-content:center;min-width:20px;min-height:20px;padding:2px;border:none;border-radius:var(--zn-thumbnail-chip-radius,var(--zn-border-radius));background-color:var(--zn-thumbnail-chip-background,rgba(0,0,0,0.6));color:var(--zn-thumbnail-chip-color,#fff);line-height:0;transition:background-color var(--zn-transition-fast) ease-in-out;cursor:pointer}.thumbnail__preview-button:hover{background-color:var(--zn-thumbnail-chip-background-hover,rgba(0,0,0,0.8))}.thumbnail__preview-button{top:var(--zn-spacing-2x-small);right:var(--zn-spacing-2x-small)}.thumbnail__badge-items,.thumbnail__action-items{display:contents}.thumbnail__badge-icon,.thumbnail__badge-items::slotted(*){display:inline-flex;align-items:center;justify-content:center;min-width:20px;min-height:20px;padding:2px;border:none;border-radius:var(--zn-thumbnail-chip-radius,var(--zn-border-radius));background-color:var(--zn-thumbnail-chip-background,rgba(0,0,0,0.6));color:var(--zn-thumbnail-chip-color,#fff);line-height:0;transition:background-color var(--zn-transition-fast) ease-in-out;cursor:default;opacity:var(--zn-thumbnail-badge-opacity,0.65)}.thumbnail__action-items::slotted(*){display:inline-flex;align-items:center;justify-content:center;min-width:20px;min-height:20px;padding:2px;border:none;border-radius:var(--zn-thumbnail-chip-radius,var(--zn-border-radius));background-color:var(--zn-thumbnail-chip-background,rgba(0,0,0,0.6));color:var(--zn-thumbnail-chip-color,#fff);line-height:0;transition:background-color var(--zn-transition-fast) ease-in-out;cursor:pointer}.thumbnail__action-items::slotted(*):hover{background-color:var(--zn-thumbnail-chip-background-hover,rgba(0,0,0,0.8))}.thumbnail:hover:not(.thumbnail--disabled):not(.thumbnail--selected):not(.thumbnail--active) .thumbnail__media{--thumbnail-ring-color:rgb(var(--zn-primary))}.thumbnail--selected .thumbnail__media{--thumbnail-ring-color:var(--zn-thumbnail-selected-color,rgb(var(--zn-primary)));--thumbnail-ring-width:2px;--thumbnail-ring-gap:1px}.thumbnail--active .thumbnail__media{--thumbnail-ring-color:var(--zn-thumbnail-active-color,rgb(var(--zn-color-success)));--thumbnail-ring-width:2px;--thumbnail-ring-gap:1px}.thumbnail__link:focus-visible .thumbnail__media{outline:var(--zn-focus-ring);outline-offset:calc(-1 * var(--zn-focus-ring-width))}.thumbnail__preview-button:focus-visible,.thumbnail__action-items::slotted(*:focus-visible){outline:var(--zn-focus-ring);outline-offset:1px}.thumbnail--disabled .thumbnail__link{cursor:not-allowed}.thumbnail--disabled .thumbnail__media,.thumbnail--disabled .thumbnail__caption{opacity:0.5}.thumbnail__preview{position:fixed;inset:0;display:none;width:100%;max-width:none;height:100%;max-height:none;padding:0;border:none;background:transparent;overflow:hidden}.thumbnail__preview[open]{display:grid;place-items:center}.thumbnail__preview::backdrop{background:transparent}.thumbnail__preview-backdrop{position:fixed;inset:0;background:var(--zn-overlay-background-color)}.thumbnail__preview-frame{--preview-max-width:var(--zn-thumbnail-preview-max-width,70vw);--preview-max-height:var(--zn-thumbnail-preview-max-height,70vh);--preview-ratio:var(--zn-thumbnail-preview-aspect-ratio,var(--zn-thumbnail-preview-measured-ratio,var(--zn-thumbnail-aspect-ratio,16/9)));position:relative;width:min(var(--preview-max-width),var(--preview-max-height) * (var(--preview-ratio)));max-width:var(--preview-max-width);max-height:var(--preview-max-height);aspect-ratio:var(--preview-ratio);overflow:hidden;border-radius:var(--zn-thumbnail-preview-radius,var(--zn-border-radius));background-color:rgb(var(--zn-panel));box-shadow:var(--zn-shadow-x-large);transform-origin:center center}.thumbnail__preview-image,.thumbnail__preview-placeholder{display:block;width:100%;height:100%;-o-object-fit:contain;object-fit:contain}.thumbnail__preview-placeholder{position:absolute;inset:0;-o-object-fit:cover;object-fit:cover;filter:blur(12px);transform:scale(1.05)}.thumbnail__preview-media::slotted(*){position:relative;display:block;width:100%;height:100%;-o-object-fit:contain;object-fit:contain}.thumbnail__preview-image{position:relative}.thumbnail__preview-close{display:inline-flex;align-items:center;justify-content:center;min-width:20px;min-height:20px;padding:2px;border:none;border-radius:var(--zn-thumbnail-chip-radius,var(--zn-border-radius));background-color:var(--zn-thumbnail-chip-background,rgba(0,0,0,0.6));color:var(--zn-thumbnail-chip-color,#fff);line-height:0;transition:background-color var(--zn-transition-fast) ease-in-out;cursor:pointer}.thumbnail__preview-close:hover{background-color:var(--zn-thumbnail-chip-background-hover,rgba(0,0,0,0.8))}.thumbnail__preview-close{position:absolute;top:var(--zn-spacing-x-small);right:var(--zn-spacing-x-small);min-width:28px;min-height:28px}.thumbnail__preview-close:focus-visible{outline:var(--zn-focus-ring);outline-offset:1px}`;var oD=260,aD="cubic-bezier(0.2, 0, 0.2, 1)",Me=class extends k{constructor(){super(...arguments);this.hasSlotController=new Y(this,"[default]","image","caption","badge","actions","preview");this.caption="";this.aspectRatio="";this.fullUri="";this.previewTrigger="click";this.previewLabel="Preview";this.value="";this.selected=!1;this.active=!1;this.selectable=!1;this.disabled=!1;this.icon="";this.hideCaption=!1;this._previewOpen=!1;this._previewRatio=0;this._origin=null;this._animating=!1;this._handleClick=t=>{let r=t.metaKey||t.ctrlKey||t.shiftKey||t.altKey;this._activate(t,!r)};this._handleKeyDown=t=>{t.key!=="Enter"&&t.key!==" "||this._isLink()&&t.key==="Enter"||(t.preventDefault(),this._activate(t,!0))};this._handlePreviewButtonClick=t=>{t.preventDefault(),t.stopPropagation(),this.showPreview()};this._handlePreviewCancel=t=>{t.preventDefault(),this.hidePreview()};this._handleBackdropClick=()=>{this.hidePreview()};this._handlePreviewImageLoad=t=>{let r=t.target;if(!r.naturalWidth||!r.naturalHeight)return;let n=r.naturalWidth/r.naturalHeight;this._previewRatio&&Math.abs(n-this._previewRatio)/this._previewRatio<.01||(this._previewRatio=n)}}disconnectedCallback(){super.disconnectedCallback(),this._previewOpen&&(this._preview?.close(),this._previewOpen=!1),_a(this)}_isLink(){return!!this.href&&!this.disabled}get _previewable(){return(!!this.fullUri||this.hasSlotController.test("preview"))&&!this.disabled}get _previewOnActivate(){return this._previewable&&this.previewTrigger==="click"}_resolveRatio(){let t=[this._previewImage,this._image];for(let n of t)if(n?.naturalWidth&&n.naturalHeight)return n.naturalWidth/n.naturalHeight;let r=this._media?.getBoundingClientRect();return r?.width&&r.height?r.width/r.height:0}async showPreview(){!this._previewable||this._previewOpen||this._animating||(this._origin=this._media?.getBoundingClientRect()??null,this._previewRatio=this._resolveRatio(),this.emit("zn-show"),this._previewOpen=!0,await this.updateComplete,this._preview&&(this._preview.showModal(),Kv(this),await this._animatePreview("in"),this._previewClose?.focus()))}async hidePreview(){!this._previewOpen||this._animating||(await this._animatePreview("out"),this._preview?.close(),this._previewOpen=!1,_a(this),this.emit("zn-close"))}async _animatePreview(t){let r=this._previewFrame,n=this._previewBackdrop;if(!r||!n)return;this._animating=!0;let a=t==="in"?this._origin:this._media?.getBoundingClientRect()??this._origin,s=[{transform:this._collapsedTransform(a,r.getBoundingClientRect()),opacity:"0.4"},{transform:"none",opacity:"1"}],l=[{opacity:"0"},{opacity:"1"}],p={duration:oD,easing:aD},h=t==="in"?s:[...s].reverse(),m=t==="in"?l:[...l].reverse();await Promise.all([yi(r,h,p),yi(n,m,p)]),this._animating=!1}_collapsedTransform(t,r){if(!t||!r.width||!r.height||Vu())return"scale(0.94)";let n=Math.max(t.width/r.width,.01),a=Math.max(t.height/r.height,.01),s=t.left+t.width/2-(r.left+r.width/2),l=t.top+t.height/2-(r.top+r.height/2);return`translate(${s}px, ${l}px) scale(${n}, ${a})`}_activate(t,r){if(this.disabled){t.preventDefault(),t.stopPropagation();return}if(this.emit("zn-select",{detail:{item:this}}).defaultPrevented){t.preventDefault();return}r&&this._previewOnActivate&&(t.preventDefault(),this.showPreview())}render(){let t=this._isLink(),r=this._previewable,n=r&&this.previewTrigger==="button",a=t||this.selectable||this._previewOnActivate,s=t?Ai`a`:Ai`div`,l=this.hasSlotController.test("image"),p=this.hasSlotController.test("badge")||!!this.icon,h=this.hasSlotController.test("actions"),m=p||h||n,f=!this.hideCaption&&(!!this.caption||this.hasSlotController.test("caption"));return ke`
6237
+ `}};ve.styles=[z(Se),z(r3)],ve.formAssociated=!0,ve.dependencies={"zn-icon":ne,"zn-input":ot,"zn-option":at,"zn-select":Be},c([F(".schedule-builder__canvas")],ve.prototype,"canvas",2),c([D()],ve.prototype,"_days",2),c([D()],ve.prototype,"_exceptions",2),c([D()],ve.prototype,"_dragPreview",2),c([D()],ve.prototype,"_editing",2),c([d({reflect:!0})],ve.prototype,"name",2),c([d()],ve.prototype,"value",2),c([Ce()],ve.prototype,"defaultValue",2),c([d()],ve.prototype,"label",2),c([d({attribute:"help-text"})],ve.prototype,"helpText",2),c([d({reflect:!0})],ve.prototype,"view",2),c([d({attribute:"open-label"})],ve.prototype,"openLabel",2),c([d({attribute:"closed-label"})],ve.prototype,"closedLabel",2),c([d({attribute:"no-toggle",type:Boolean})],ve.prototype,"noToggle",2),c([d({attribute:"hide-summary",type:Boolean})],ve.prototype,"hideSummary",2),c([d({attribute:"start-hour",type:Number})],ve.prototype,"startHour",2),c([d({attribute:"end-hour",type:Number})],ve.prototype,"endHour",2),c([d({type:Number})],ve.prototype,"interval",2),c([d({attribute:"week-start"})],ve.prototype,"weekStart",2),c([d({attribute:"time-format"})],ve.prototype,"timeFormat",2),c([d({attribute:"display-timezone"})],ve.prototype,"displayTimezone",2),c([d({attribute:"save-timezone"})],ve.prototype,"saveTimezone",2),c([d({attribute:"show-timezone",type:Boolean})],ve.prototype,"showTimezone",2),c([d({attribute:"timezones",converter:{fromAttribute:t=>t.split(/[,\s]+/).filter(Boolean),toAttribute:t=>t.join(" ")}})],ve.prototype,"timezones",2),c([d({attribute:"reference-date"})],ve.prototype,"referenceDate",2),c([d({type:Boolean,reflect:!0})],ve.prototype,"disabled",2),c([d({type:Boolean,reflect:!0})],ve.prototype,"readonly",2),c([d({type:Boolean,reflect:!0})],ve.prototype,"required",2),c([d({reflect:!0})],ve.prototype,"form",2),c([K("value")],ve.prototype,"handleValueChange",1),c([K(["required","disabled"])],ve.prototype,"handleValidationStateChange",1);var nD=ve;ve.define("zn-schedule-builder");var s3=_`@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;min-width:0}.thumbnail{position:relative;min-width:0}.thumbnail__link{display:flex;flex-direction:column;gap:var(--zn-spacing-x-small);min-width:0;color:inherit;text-decoration:none;outline:none}.thumbnail--interactive .thumbnail__link{cursor:pointer}.thumbnail__media{position:relative;aspect-ratio:var(--zn-thumbnail-aspect-ratio,16/9);width:100%;overflow:hidden;border-radius:var(--zn-thumbnail-radius,var(--zn-border-radius));background-color:rgb(var(--zn-panel));--thumbnail-ring-color:rgb(var(--zn-border-color));--thumbnail-ring-width:1px;--thumbnail-ring-gap:0px}.thumbnail__media::after{content:"";position:absolute;inset:0;z-index:1;border-radius:inherit;pointer-events:none;box-shadow:inset 0 0 0 var(--thumbnail-ring-width) var(--thumbnail-ring-color),inset 0 0 0 calc(var(--thumbnail-ring-width) + var(--thumbnail-ring-gap)) rgb(var(--zn-body));transition:box-shadow var(--zn-transition-fast) ease-in-out}.thumbnail__image{display:block;width:100%;height:100%;-o-object-fit:cover;object-fit:cover}.thumbnail__slotted-media{display:grid;place-items:center;width:100%;height:100%}.thumbnail__slotted-media::slotted(img),.thumbnail__slotted-media::slotted(video),.thumbnail__slotted-media::slotted(canvas),.thumbnail__slotted-media::slotted(picture),.thumbnail__slotted-media::slotted(div){width:100%;height:100%;-o-object-fit:cover;object-fit:cover}.thumbnail__caption{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);min-width:0;overflow:hidden;text-align:center;text-overflow:ellipsis;white-space:nowrap}.thumbnail__overlay{position:absolute;top:0;left:0;right:0;aspect-ratio:var(--zn-thumbnail-aspect-ratio,16/9);border-radius:var(--zn-thumbnail-radius,var(--zn-border-radius));overflow:hidden;pointer-events:none}.thumbnail__badge,.thumbnail__actions,.thumbnail__preview-button{position:absolute;display:flex;align-items:center;gap:var(--zn-thumbnail-chip-gap,var(--zn-spacing-2x-small))}.thumbnail__badge{bottom:var(--zn-spacing-2x-small);left:var(--zn-spacing-2x-small);pointer-events:none}.thumbnail__actions,.thumbnail__preview-button{pointer-events:auto}.thumbnail__actions{bottom:var(--zn-spacing-2x-small);right:var(--zn-spacing-2x-small)}.thumbnail__preview-button{display:inline-flex;align-items:center;justify-content:center;min-width:20px;min-height:20px;padding:2px;border:none;border-radius:var(--zn-thumbnail-chip-radius,var(--zn-border-radius));background-color:var(--zn-thumbnail-chip-background,rgba(0,0,0,0.6));color:var(--zn-thumbnail-chip-color,#fff);line-height:0;transition:background-color var(--zn-transition-fast) ease-in-out;cursor:pointer}.thumbnail__preview-button:hover{background-color:var(--zn-thumbnail-chip-background-hover,rgba(0,0,0,0.8))}.thumbnail__preview-button{top:var(--zn-spacing-2x-small);right:var(--zn-spacing-2x-small)}.thumbnail__badge-items,.thumbnail__action-items{display:contents}.thumbnail__badge-icon,.thumbnail__badge-items::slotted(*){display:inline-flex;align-items:center;justify-content:center;min-width:20px;min-height:20px;padding:2px;border:none;border-radius:var(--zn-thumbnail-chip-radius,var(--zn-border-radius));background-color:var(--zn-thumbnail-chip-background,rgba(0,0,0,0.6));color:var(--zn-thumbnail-chip-color,#fff);line-height:0;transition:background-color var(--zn-transition-fast) ease-in-out;cursor:default;opacity:var(--zn-thumbnail-badge-opacity,0.65)}.thumbnail__action-items::slotted(*){display:inline-flex;align-items:center;justify-content:center;min-width:20px;min-height:20px;padding:2px;border:none;border-radius:var(--zn-thumbnail-chip-radius,var(--zn-border-radius));background-color:var(--zn-thumbnail-chip-background,rgba(0,0,0,0.6));color:var(--zn-thumbnail-chip-color,#fff);line-height:0;transition:background-color var(--zn-transition-fast) ease-in-out;cursor:pointer}.thumbnail__action-items::slotted(*):hover{background-color:var(--zn-thumbnail-chip-background-hover,rgba(0,0,0,0.8))}.thumbnail:hover:not(.thumbnail--disabled):not(.thumbnail--selected):not(.thumbnail--active) .thumbnail__media{--thumbnail-ring-color:rgb(var(--zn-primary))}.thumbnail--selected .thumbnail__media{--thumbnail-ring-color:var(--zn-thumbnail-selected-color,rgb(var(--zn-primary)));--thumbnail-ring-width:2px;--thumbnail-ring-gap:1px}.thumbnail--active .thumbnail__media{--thumbnail-ring-color:var(--zn-thumbnail-active-color,rgb(var(--zn-color-success)));--thumbnail-ring-width:2px;--thumbnail-ring-gap:1px}.thumbnail__link:focus-visible .thumbnail__media{outline:var(--zn-focus-ring);outline-offset:calc(-1 * var(--zn-focus-ring-width))}.thumbnail__preview-button:focus-visible,.thumbnail__action-items::slotted(*:focus-visible){outline:var(--zn-focus-ring);outline-offset:1px}.thumbnail--disabled .thumbnail__link{cursor:not-allowed}.thumbnail--disabled .thumbnail__media,.thumbnail--disabled .thumbnail__caption{opacity:0.5}.thumbnail__preview{position:fixed;inset:0;display:none;width:100%;max-width:none;height:100%;max-height:none;padding:0;border:none;background:transparent;overflow:hidden}.thumbnail__preview[open]{display:grid;place-items:center}.thumbnail__preview::backdrop{background:transparent}.thumbnail__preview-backdrop{position:fixed;inset:0;background:var(--zn-overlay-background-color)}.thumbnail__preview-frame{--preview-max-width:var(--zn-thumbnail-preview-max-width,70vw);--preview-max-height:var(--zn-thumbnail-preview-max-height,70vh);--preview-ratio:var(--zn-thumbnail-preview-aspect-ratio,var(--zn-thumbnail-preview-measured-ratio,var(--zn-thumbnail-aspect-ratio,16/9)));position:relative;width:min(var(--preview-max-width),var(--preview-max-height) * (var(--preview-ratio)));max-width:var(--preview-max-width);max-height:var(--preview-max-height);aspect-ratio:var(--preview-ratio);overflow:hidden;border-radius:var(--zn-thumbnail-preview-radius,var(--zn-border-radius));background-color:rgb(var(--zn-panel));box-shadow:var(--zn-shadow-x-large);transform-origin:center center}.thumbnail__preview-image,.thumbnail__preview-placeholder{display:block;width:100%;height:100%;-o-object-fit:contain;object-fit:contain}.thumbnail__preview-placeholder{position:absolute;inset:0;-o-object-fit:cover;object-fit:cover;filter:blur(12px);transform:scale(1.05)}.thumbnail__preview-media::slotted(*){position:relative;display:block;width:100%;height:100%;-o-object-fit:contain;object-fit:contain}.thumbnail__preview-image{position:relative}.thumbnail__preview-close{display:inline-flex;align-items:center;justify-content:center;min-width:20px;min-height:20px;padding:2px;border:none;border-radius:var(--zn-thumbnail-chip-radius,var(--zn-border-radius));background-color:var(--zn-thumbnail-chip-background,rgba(0,0,0,0.6));color:var(--zn-thumbnail-chip-color,#fff);line-height:0;transition:background-color var(--zn-transition-fast) ease-in-out;cursor:pointer}.thumbnail__preview-close:hover{background-color:var(--zn-thumbnail-chip-background-hover,rgba(0,0,0,0.8))}.thumbnail__preview-close{position:absolute;top:var(--zn-spacing-x-small);right:var(--zn-spacing-x-small);min-width:28px;min-height:28px}.thumbnail__preview-close:focus-visible{outline:var(--zn-focus-ring);outline-offset:1px}`;var oD=260,aD="cubic-bezier(0.2, 0, 0.2, 1)",Me=class extends k{constructor(){super(...arguments);this.hasSlotController=new Y(this,"[default]","image","caption","badge","actions","preview");this.caption="";this.aspectRatio="";this.fullUri="";this.previewTrigger="click";this.previewLabel="Preview";this.value="";this.selected=!1;this.active=!1;this.selectable=!1;this.disabled=!1;this.icon="";this.hideCaption=!1;this._previewOpen=!1;this._previewRatio=0;this._origin=null;this._animating=!1;this._handleClick=t=>{let r=t.metaKey||t.ctrlKey||t.shiftKey||t.altKey;this._activate(t,!r)};this._handleKeyDown=t=>{t.key!=="Enter"&&t.key!==" "||this._isLink()&&t.key==="Enter"||(t.preventDefault(),this._activate(t,!0))};this._handlePreviewButtonClick=t=>{t.preventDefault(),t.stopPropagation(),this.showPreview()};this._handlePreviewCancel=t=>{t.preventDefault(),this.hidePreview()};this._handleBackdropClick=()=>{this.hidePreview()};this._handlePreviewImageLoad=t=>{let r=t.target;if(!r.naturalWidth||!r.naturalHeight)return;let n=r.naturalWidth/r.naturalHeight;this._previewRatio&&Math.abs(n-this._previewRatio)/this._previewRatio<.01||(this._previewRatio=n)}}disconnectedCallback(){super.disconnectedCallback(),this._previewOpen&&(this._preview?.close(),this._previewOpen=!1),_a(this)}_isLink(){return!!this.href&&!this.disabled}get _previewable(){return(!!this.fullUri||this.hasSlotController.test("preview"))&&!this.disabled}get _previewOnActivate(){return this._previewable&&this.previewTrigger==="click"}_resolveRatio(){let t=[this._previewImage,this._image];for(let n of t)if(n?.naturalWidth&&n.naturalHeight)return n.naturalWidth/n.naturalHeight;let r=this._media?.getBoundingClientRect();return r?.width&&r.height?r.width/r.height:0}async showPreview(){!this._previewable||this._previewOpen||this._animating||(this._origin=this._media?.getBoundingClientRect()??null,this._previewRatio=this._resolveRatio(),this.emit("zn-show"),this._previewOpen=!0,await this.updateComplete,this._preview&&(this._preview.showModal(),Kv(this),await this._animatePreview("in"),this._previewClose?.focus()))}async hidePreview(){!this._previewOpen||this._animating||(await this._animatePreview("out"),this._preview?.close(),this._previewOpen=!1,_a(this),this.emit("zn-close"))}async _animatePreview(t){let r=this._previewFrame,n=this._previewBackdrop;if(!r||!n)return;this._animating=!0;let a=t==="in"?this._origin:this._media?.getBoundingClientRect()??this._origin,s=[{transform:this._collapsedTransform(a,r.getBoundingClientRect()),opacity:"0.4"},{transform:"none",opacity:"1"}],l=[{opacity:"0"},{opacity:"1"}],p={duration:oD,easing:aD},h=t==="in"?s:[...s].reverse(),m=t==="in"?l:[...l].reverse();await Promise.all([yi(r,h,p),yi(n,m,p)]),this._animating=!1}_collapsedTransform(t,r){if(!t||!r.width||!r.height||Vu())return"scale(0.94)";let n=Math.max(t.width/r.width,.01),a=Math.max(t.height/r.height,.01),s=t.left+t.width/2-(r.left+r.width/2),l=t.top+t.height/2-(r.top+r.height/2);return`translate(${s}px, ${l}px) scale(${n}, ${a})`}_activate(t,r){if(this.disabled){t.preventDefault(),t.stopPropagation();return}if(this.emit("zn-select",{detail:{item:this}}).defaultPrevented){t.preventDefault();return}r&&this._previewOnActivate&&(t.preventDefault(),this.showPreview())}render(){let t=this._isLink(),r=this._previewable,n=r&&this.previewTrigger==="button",a=t||this.selectable||this._previewOnActivate,s=t?Ai`a`:Ai`div`,l=this.hasSlotController.test("image"),p=this.hasSlotController.test("badge")||!!this.icon,h=this.hasSlotController.test("actions"),m=p||h||n,f=!this.hideCaption&&(!!this.caption||this.hasSlotController.test("caption"));return ke`
6238
6238
  <div
6239
6239
  part="base"
6240
6240
  style="${xt({"--zn-thumbnail-aspect-ratio":this.aspectRatio||null})}"
@@ -6329,7 +6329,7 @@ ${n}`:""}</li></ol>`};return t(0)}parseTable(i,t){this.index++;let r=[],n=[];for
6329
6329
  </button>
6330
6330
  </div>
6331
6331
  </dialog>`:""}
6332
- </div>`}};Me.styles=z(s3),Me.dependencies={"zn-icon":ne},c([d()],Me.prototype,"src",2),c([d()],Me.prototype,"alt",2),c([d()],Me.prototype,"caption",2),c([d({attribute:"aspect-ratio",reflect:!0})],Me.prototype,"aspectRatio",2),c([d()],Me.prototype,"href",2),c([d()],Me.prototype,"target",2),c([d({attribute:"full-uri"})],Me.prototype,"fullUri",2),c([d({attribute:"preview-trigger"})],Me.prototype,"previewTrigger",2),c([d({attribute:"preview-label"})],Me.prototype,"previewLabel",2),c([d()],Me.prototype,"value",2),c([d({type:Boolean,reflect:!0})],Me.prototype,"selected",2),c([d({type:Boolean,reflect:!0})],Me.prototype,"active",2),c([d({type:Boolean,reflect:!0})],Me.prototype,"selectable",2),c([d({type:Boolean,reflect:!0})],Me.prototype,"disabled",2),c([d()],Me.prototype,"icon",2),c([d({type:Boolean,attribute:"hide-caption"})],Me.prototype,"hideCaption",2),c([R()],Me.prototype,"_previewOpen",2),c([R()],Me.prototype,"_previewRatio",2),c([F(".thumbnail__media")],Me.prototype,"_media",2),c([F(".thumbnail__image")],Me.prototype,"_image",2),c([F(".thumbnail__preview-image")],Me.prototype,"_previewImage",2),c([F(".thumbnail__preview")],Me.prototype,"_preview",2),c([F(".thumbnail__preview-frame")],Me.prototype,"_previewFrame",2),c([F(".thumbnail__preview-backdrop")],Me.prototype,"_previewBackdrop",2),c([F(".thumbnail__preview-close")],Me.prototype,"_previewClose",2);var sD=Me;Me.define("zn-thumbnail");var l3=_`@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 ::-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%}.thumbnail-group__header{display:flex;align-items:center;justify-content:space-between;gap:var(--zn-spacing-small);margin-bottom:var(--zn-spacing-x-small)}.thumbnail-group__caption{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);min-width:0;text-overflow:ellipsis;white-space:nowrap}.thumbnail-group__header-actions{display:flex;align-items:center;flex:0 0 auto;gap:var(--zn-spacing-x-small)}.thumbnail-group__toggle{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);padding:0;background:none;border:none;cursor:pointer;white-space:nowrap}.thumbnail-group__toggle:hover{color:rgb(var(--zn-text))}.thumbnail-group__toggle:focus-visible{outline:var(--zn-focus-ring);outline-offset:var(--zn-focus-ring-offset);border-radius:var(--zn-border-radius-small)}.thumbnail-group__items{display:grid;gap:var(--zn-thumbnail-gap,var(--zn-spacing-small));grid-auto-flow:column;grid-auto-columns:var(--zn-thumbnail-width,180px);overflow-x:auto;overflow-y:hidden;padding-bottom:var(--zn-spacing-2x-small);scroll-snap-type:x proximity;overscroll-behavior-x:contain}.thumbnail-group--expanded .thumbnail-group__items{grid-auto-flow:row;grid-auto-columns:auto;grid-template-columns:repeat(auto-fill,minmax(var(--zn-thumbnail-width,180px),1fr));overflow:visible;padding-bottom:0}slot{display:contents}::slotted(*){scroll-snap-align:start;min-width:0}`;var At=class extends k{constructor(){super(...arguments);this.caption="";this.expanded=!1;this.total=0;this.showAllLabel="Show All";this.showLessLabel="Show Less";this.hideToggle=!1;this.alwaysToggle=!1;this.selectable=!1;this.aspectRatio="";this.thumbnailWidth="";this.gap="";this.value="";this._overflowing=!1;this._count=0;this._resizeObserver=null;this._handleSlotChange=()=>{this._sync(),this._measure()};this._handleSelect=t=>{if(!this.selectable)return;let r=t.detail.item;if(r.parentElement===this){for(let n of this._thumbnails)n.selected=n===r;this.value=r.value,this.emit("zn-change")}};this._handleToggle=()=>{this.expanded?this.hide():this.show()}}connectedCallback(){super.connectedCallback(),this._observe()}disconnectedCallback(){super.disconnectedCallback(),this._resizeObserver?.disconnect(),this._resizeObserver=null}firstUpdated(t){super.firstUpdated(t),this._observe(),this._sync()}_observe(){this._items&&(this._resizeObserver??(this._resizeObserver=new ResizeObserver(()=>this._measure())),this._resizeObserver.observe(this._items))}updated(t){super.updated(t),t.has("expanded")&&this._measure(),(t.has("selectable")||t.has("value"))&&this._sync(),this._syncCustomProperties(t)}_syncCustomProperties(t){let r=[["aspectRatio","--zn-thumbnail-aspect-ratio",this.aspectRatio],["thumbnailWidth","--zn-thumbnail-width",this.thumbnailWidth],["gap","--zn-thumbnail-gap",this.gap]];for(let[n,a,s]of r)t.has(n)&&(s?this.style.setProperty(a,s):t.get(n)&&this.style.removeProperty(a))}show(){this.expanded||(this.expanded=!0,this.emit("zn-expand"))}hide(){this.expanded&&(this.expanded=!1,this.emit("zn-collapse"))}get _thumbnails(){return Array.from(this.querySelectorAll(":scope > zn-thumbnail"))}_sync(){let t=this._thumbnails;if(this._count=t.length,!!this.selectable){this.value||(this.value=t.find(r=>r.selected)?.value??"");for(let r of t)r.selectable=!0,this.value&&(r.selected=r.value===this.value)}}_measure(){this.expanded||!this._items||(this._overflowing=this._items.scrollWidth-this._items.clientWidth>1)}render(){let t=this.total||this._count,r=!this.hideToggle&&(this.expanded||this.alwaysToggle||this._overflowing||t>this._count),n=!!this.caption||r;return u`
6332
+ </div>`}};Me.styles=z(s3),Me.dependencies={"zn-icon":ne},c([d()],Me.prototype,"src",2),c([d()],Me.prototype,"alt",2),c([d()],Me.prototype,"caption",2),c([d({attribute:"aspect-ratio",reflect:!0})],Me.prototype,"aspectRatio",2),c([d()],Me.prototype,"href",2),c([d()],Me.prototype,"target",2),c([d({attribute:"full-uri"})],Me.prototype,"fullUri",2),c([d({attribute:"preview-trigger"})],Me.prototype,"previewTrigger",2),c([d({attribute:"preview-label"})],Me.prototype,"previewLabel",2),c([d()],Me.prototype,"value",2),c([d({type:Boolean,reflect:!0})],Me.prototype,"selected",2),c([d({type:Boolean,reflect:!0})],Me.prototype,"active",2),c([d({type:Boolean,reflect:!0})],Me.prototype,"selectable",2),c([d({type:Boolean,reflect:!0})],Me.prototype,"disabled",2),c([d()],Me.prototype,"icon",2),c([d({type:Boolean,attribute:"hide-caption"})],Me.prototype,"hideCaption",2),c([D()],Me.prototype,"_previewOpen",2),c([D()],Me.prototype,"_previewRatio",2),c([F(".thumbnail__media")],Me.prototype,"_media",2),c([F(".thumbnail__image")],Me.prototype,"_image",2),c([F(".thumbnail__preview-image")],Me.prototype,"_previewImage",2),c([F(".thumbnail__preview")],Me.prototype,"_preview",2),c([F(".thumbnail__preview-frame")],Me.prototype,"_previewFrame",2),c([F(".thumbnail__preview-backdrop")],Me.prototype,"_previewBackdrop",2),c([F(".thumbnail__preview-close")],Me.prototype,"_previewClose",2);var sD=Me;Me.define("zn-thumbnail");var l3=_`@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 ::-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%}.thumbnail-group__header{display:flex;align-items:center;justify-content:space-between;gap:var(--zn-spacing-small);margin-bottom:var(--zn-spacing-x-small)}.thumbnail-group__caption{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);min-width:0;text-overflow:ellipsis;white-space:nowrap}.thumbnail-group__header-actions{display:flex;align-items:center;flex:0 0 auto;gap:var(--zn-spacing-x-small)}.thumbnail-group__toggle{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);padding:0;background:none;border:none;cursor:pointer;white-space:nowrap}.thumbnail-group__toggle:hover{color:rgb(var(--zn-text))}.thumbnail-group__toggle:focus-visible{outline:var(--zn-focus-ring);outline-offset:var(--zn-focus-ring-offset);border-radius:var(--zn-border-radius-small)}.thumbnail-group__items{display:grid;gap:var(--zn-thumbnail-gap,var(--zn-spacing-small));grid-auto-flow:column;grid-auto-columns:var(--zn-thumbnail-width,180px);overflow-x:auto;overflow-y:hidden;padding-bottom:var(--zn-spacing-2x-small);scroll-snap-type:x proximity;overscroll-behavior-x:contain}.thumbnail-group--expanded .thumbnail-group__items{grid-auto-flow:row;grid-auto-columns:auto;grid-template-columns:repeat(auto-fill,minmax(var(--zn-thumbnail-width,180px),1fr));overflow:visible;padding-bottom:0}slot{display:contents}::slotted(*){scroll-snap-align:start;min-width:0}`;var At=class extends k{constructor(){super(...arguments);this.caption="";this.expanded=!1;this.total=0;this.showAllLabel="Show All";this.showLessLabel="Show Less";this.hideToggle=!1;this.alwaysToggle=!1;this.selectable=!1;this.aspectRatio="";this.thumbnailWidth="";this.gap="";this.value="";this._overflowing=!1;this._count=0;this._resizeObserver=null;this._handleSlotChange=()=>{this._sync(),this._measure()};this._handleSelect=t=>{if(!this.selectable)return;let r=t.detail.item;if(r.parentElement===this){for(let n of this._thumbnails)n.selected=n===r;this.value=r.value,this.emit("zn-change")}};this._handleToggle=()=>{this.expanded?this.hide():this.show()}}connectedCallback(){super.connectedCallback(),this._observe()}disconnectedCallback(){super.disconnectedCallback(),this._resizeObserver?.disconnect(),this._resizeObserver=null}firstUpdated(t){super.firstUpdated(t),this._observe(),this._sync()}_observe(){this._items&&(this._resizeObserver??(this._resizeObserver=new ResizeObserver(()=>this._measure())),this._resizeObserver.observe(this._items))}updated(t){super.updated(t),t.has("expanded")&&this._measure(),(t.has("selectable")||t.has("value"))&&this._sync(),this._syncCustomProperties(t)}_syncCustomProperties(t){let r=[["aspectRatio","--zn-thumbnail-aspect-ratio",this.aspectRatio],["thumbnailWidth","--zn-thumbnail-width",this.thumbnailWidth],["gap","--zn-thumbnail-gap",this.gap]];for(let[n,a,s]of r)t.has(n)&&(s?this.style.setProperty(a,s):t.get(n)&&this.style.removeProperty(a))}show(){this.expanded||(this.expanded=!0,this.emit("zn-expand"))}hide(){this.expanded&&(this.expanded=!1,this.emit("zn-collapse"))}get _thumbnails(){return Array.from(this.querySelectorAll(":scope > zn-thumbnail"))}_sync(){let t=this._thumbnails;if(this._count=t.length,!!this.selectable){this.value||(this.value=t.find(r=>r.selected)?.value??"");for(let r of t)r.selectable=!0,this.value&&(r.selected=r.value===this.value)}}_measure(){this.expanded||!this._items||(this._overflowing=this._items.scrollWidth-this._items.clientWidth>1)}render(){let t=this.total||this._count,r=!this.hideToggle&&(this.expanded||this.alwaysToggle||this._overflowing||t>this._count),n=!!this.caption||r;return u`
6333
6333
  <div
6334
6334
  part="base"
6335
6335
  class="${M({"thumbnail-group":!0,"thumbnail-group--expanded":this.expanded})}">
@@ -6354,7 +6354,7 @@ ${n}`:""}</li></ol>`};return t(0)}parseTable(i,t){this.index++;let r=[],n=[];for
6354
6354
  <div part="items" class="thumbnail-group__items">
6355
6355
  <slot @slotchange="${this._handleSlotChange}" @zn-select="${this._handleSelect}"></slot>
6356
6356
  </div>
6357
- </div>`}};At.styles=z(l3),c([d()],At.prototype,"caption",2),c([d({type:Boolean,reflect:!0})],At.prototype,"expanded",2),c([d({type:Number})],At.prototype,"total",2),c([d({attribute:"show-all-label"})],At.prototype,"showAllLabel",2),c([d({attribute:"show-less-label"})],At.prototype,"showLessLabel",2),c([d({type:Boolean,attribute:"hide-toggle"})],At.prototype,"hideToggle",2),c([d({type:Boolean,attribute:"always-toggle"})],At.prototype,"alwaysToggle",2),c([d({type:Boolean,reflect:!0})],At.prototype,"selectable",2),c([d({attribute:"aspect-ratio",reflect:!0})],At.prototype,"aspectRatio",2),c([d({attribute:"thumbnail-width",reflect:!0})],At.prototype,"thumbnailWidth",2),c([d({reflect:!0})],At.prototype,"gap",2),c([d()],At.prototype,"value",2),c([R()],At.prototype,"_overflowing",2),c([R()],At.prototype,"_count",2),c([F(".thumbnail-group__items")],At.prototype,"_items",2);var lD=At;At.define("zn-thumbnail-group");var c3=_`@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;min-width:0;min-height:0;overflow:hidden;isolation:isolate}.background{position:relative;box-sizing:border-box;width:100%;height:100%;min-height:inherit;overflow:hidden;background-color:var(--_zn-background-color,var(--zn-background-color,transparent))}.background__image,.background__overlay,.background__floating-icons{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}.background__image{width:108%;height:108%;max-width:none;inset:-4%;-o-object-fit:cover;object-fit:cover;-o-object-position:var(--zn-background-image-position,center);object-position:var(--zn-background-image-position,center);opacity:1}:host([image-strength=soft]) .background__image{opacity:0.3}:host([image-strength=medium]) .background__image{opacity:0.62}.background__overlay{background:linear-gradient(var(--zn-background-overlay-angle,110deg),rgba(255,255,255,0.18),rgba(255,255,255,0.04))}:host([overlay=none]) .background__overlay{display:none}:host([overlay=strong]) .background__overlay{background:linear-gradient(var(--zn-background-overlay-angle,110deg),rgba(255,255,255,0.48),rgba(255,255,255,0.18))}:host([overlay-tone=dark]) .background__overlay{background:linear-gradient(var(--zn-background-overlay-angle,110deg),rgba(4,12,32,0.28),rgba(4,12,32,0.06))}:host([overlay-tone=dark][overlay=strong]) .background__overlay{background:linear-gradient(var(--zn-background-overlay-angle,110deg),rgba(4,12,32,0.62),rgba(4,12,32,0.28))}:host([motion=drift]) .background__image{animation:zn-background-drift 28s ease-in-out infinite alternate}:host([motion=breathe]) .background__image{animation:zn-background-breathe 18s ease-in-out infinite}:host([paused]) .background__image{animation-play-state:paused}.background__floating-icons{overflow:hidden;color:var(--zn-background-floating-icon-color,currentColor)}.background__floating-icon{--_zn-background-icon-opacity-min:0.01;--_zn-background-icon-opacity-max:0.18;position:absolute;left:8%;top:13%;opacity:var(--_zn-background-icon-opacity-min);animation:zn-background-icon-float 11s ease-in-out infinite alternate both}.background__floating-icon:nth-child(2){--_zn-background-icon-opacity-min:0.08;--_zn-background-icon-opacity-max:0.34;left:auto;right:9%;top:9%;animation-delay:-4s;animation-duration:14s}.background__floating-icon:nth-child(3){--_zn-background-icon-opacity-min:0.03;--_zn-background-icon-opacity-max:0.5;left:2%;top:47%;animation-delay:-7s;animation-duration:13s}.background__floating-icon:nth-child(4){--_zn-background-icon-opacity-min:0.12;--_zn-background-icon-opacity-max:0.38;left:auto;right:12%;top:45%;animation-delay:-2s;animation-duration:10s}.background__floating-icon:nth-child(5){--_zn-background-icon-opacity-min:0.05;--_zn-background-icon-opacity-max:0.29;left:21%;top:auto;bottom:4%;animation-delay:-5s;animation-duration:15s}.background__floating-icon:nth-child(6){--_zn-background-icon-opacity-min:0.01;--_zn-background-icon-opacity-max:0.42;left:auto;right:4%;top:auto;bottom:3%;animation-delay:-9s;animation-duration:12s}.background__floating-icon:nth-child(7){--_zn-background-icon-opacity-min:0.09;--_zn-background-icon-opacity-max:0.31;left:42%;top:7%;animation-delay:-6s;animation-duration:16s}.background__floating-icon:nth-child(8){--_zn-background-icon-opacity-min:0.04;--_zn-background-icon-opacity-max:0.46;left:54%;top:auto;bottom:8%;animation-delay:-11s;animation-duration:17s}:host([paused]) .background__floating-icon{animation-play-state:paused}.background__content{position:relative;z-index:1;box-sizing:border-box;width:100%;height:100%;min-height:inherit}@keyframes zn-background-drift{from{transform:scale(1.04) translate3d(-1.2%,-0.6%,0)}to{transform:scale(1.04) translate3d(1.2%,0.6%,0)}}@keyframes zn-background-breathe{0%,100%{transform:scale(1.02)}50%{transform:scale(1.07)}}@keyframes zn-background-icon-float{from{opacity:var(--_zn-background-icon-opacity-min);transform:translate3d(-8%,-12%,0) scale(0.88) rotate(-8deg)}to{opacity:var(--_zn-background-icon-opacity-max);transform:translate3d(8%,12%,0) scale(1.06) rotate(8deg)}}@media (prefers-reduced-motion:reduce){.background__image,.background__floating-icon{animation:none}.background__floating-icon{opacity:var(--_zn-background-icon-opacity-max)}}`;var Or=class extends k{constructor(){super(...arguments);this.resizeObserver=new ht(this,{callback:t=>{let r=t[0]?.contentRect.width??this.offsetWidth;return Math.max(1,Math.min(r*.05,150))}});this.image="";this.color="";this.imageStrength="full";this.motion="none";this.overlay="soft";this.overlayTone="light";this.floatingIcons="";this.paused=!1}render(){let t=this.floatingIcons.split(",").map(n=>n.trim()).filter(Boolean).slice(0,8),r=this.resizeObserver.value??1;return u`
6357
+ </div>`}};At.styles=z(l3),c([d()],At.prototype,"caption",2),c([d({type:Boolean,reflect:!0})],At.prototype,"expanded",2),c([d({type:Number})],At.prototype,"total",2),c([d({attribute:"show-all-label"})],At.prototype,"showAllLabel",2),c([d({attribute:"show-less-label"})],At.prototype,"showLessLabel",2),c([d({type:Boolean,attribute:"hide-toggle"})],At.prototype,"hideToggle",2),c([d({type:Boolean,attribute:"always-toggle"})],At.prototype,"alwaysToggle",2),c([d({type:Boolean,reflect:!0})],At.prototype,"selectable",2),c([d({attribute:"aspect-ratio",reflect:!0})],At.prototype,"aspectRatio",2),c([d({attribute:"thumbnail-width",reflect:!0})],At.prototype,"thumbnailWidth",2),c([d({reflect:!0})],At.prototype,"gap",2),c([d()],At.prototype,"value",2),c([D()],At.prototype,"_overflowing",2),c([D()],At.prototype,"_count",2),c([F(".thumbnail-group__items")],At.prototype,"_items",2);var lD=At;At.define("zn-thumbnail-group");var c3=_`@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;min-width:0;min-height:0;overflow:hidden;isolation:isolate}.background{position:relative;box-sizing:border-box;width:100%;height:100%;min-height:inherit;overflow:hidden;background-color:var(--_zn-background-color,var(--zn-background-color,transparent))}.background__image,.background__overlay,.background__floating-icons{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}.background__image{width:108%;height:108%;max-width:none;inset:-4%;-o-object-fit:cover;object-fit:cover;-o-object-position:var(--zn-background-image-position,center);object-position:var(--zn-background-image-position,center);opacity:1}:host([image-strength=soft]) .background__image{opacity:0.3}:host([image-strength=medium]) .background__image{opacity:0.62}.background__overlay{background:linear-gradient(var(--zn-background-overlay-angle,110deg),rgba(255,255,255,0.18),rgba(255,255,255,0.04))}:host([overlay=none]) .background__overlay{display:none}:host([overlay=strong]) .background__overlay{background:linear-gradient(var(--zn-background-overlay-angle,110deg),rgba(255,255,255,0.48),rgba(255,255,255,0.18))}:host([overlay-tone=dark]) .background__overlay{background:linear-gradient(var(--zn-background-overlay-angle,110deg),rgba(4,12,32,0.28),rgba(4,12,32,0.06))}:host([overlay-tone=dark][overlay=strong]) .background__overlay{background:linear-gradient(var(--zn-background-overlay-angle,110deg),rgba(4,12,32,0.62),rgba(4,12,32,0.28))}:host([motion=drift]) .background__image{animation:zn-background-drift 28s ease-in-out infinite alternate}:host([motion=breathe]) .background__image{animation:zn-background-breathe 18s ease-in-out infinite}:host([paused]) .background__image{animation-play-state:paused}.background__floating-icons{overflow:hidden;color:var(--zn-background-floating-icon-color,currentColor)}.background__floating-icon{--_zn-background-icon-opacity-min:0.01;--_zn-background-icon-opacity-max:0.18;position:absolute;left:8%;top:13%;opacity:var(--_zn-background-icon-opacity-min);animation:zn-background-icon-float 11s ease-in-out infinite alternate both}.background__floating-icon:nth-child(2){--_zn-background-icon-opacity-min:0.08;--_zn-background-icon-opacity-max:0.34;left:auto;right:9%;top:9%;animation-delay:-4s;animation-duration:14s}.background__floating-icon:nth-child(3){--_zn-background-icon-opacity-min:0.03;--_zn-background-icon-opacity-max:0.5;left:2%;top:47%;animation-delay:-7s;animation-duration:13s}.background__floating-icon:nth-child(4){--_zn-background-icon-opacity-min:0.12;--_zn-background-icon-opacity-max:0.38;left:auto;right:12%;top:45%;animation-delay:-2s;animation-duration:10s}.background__floating-icon:nth-child(5){--_zn-background-icon-opacity-min:0.05;--_zn-background-icon-opacity-max:0.29;left:21%;top:auto;bottom:4%;animation-delay:-5s;animation-duration:15s}.background__floating-icon:nth-child(6){--_zn-background-icon-opacity-min:0.01;--_zn-background-icon-opacity-max:0.42;left:auto;right:4%;top:auto;bottom:3%;animation-delay:-9s;animation-duration:12s}.background__floating-icon:nth-child(7){--_zn-background-icon-opacity-min:0.09;--_zn-background-icon-opacity-max:0.31;left:42%;top:7%;animation-delay:-6s;animation-duration:16s}.background__floating-icon:nth-child(8){--_zn-background-icon-opacity-min:0.04;--_zn-background-icon-opacity-max:0.46;left:54%;top:auto;bottom:8%;animation-delay:-11s;animation-duration:17s}:host([paused]) .background__floating-icon{animation-play-state:paused}.background__content{position:relative;z-index:1;box-sizing:border-box;width:100%;height:100%;min-height:inherit}@keyframes zn-background-drift{from{transform:scale(1.04) translate3d(-1.2%,-0.6%,0)}to{transform:scale(1.04) translate3d(1.2%,0.6%,0)}}@keyframes zn-background-breathe{0%,100%{transform:scale(1.02)}50%{transform:scale(1.07)}}@keyframes zn-background-icon-float{from{opacity:var(--_zn-background-icon-opacity-min);transform:translate3d(-8%,-12%,0) scale(0.88) rotate(-8deg)}to{opacity:var(--_zn-background-icon-opacity-max);transform:translate3d(8%,12%,0) scale(1.06) rotate(8deg)}}@media (prefers-reduced-motion:reduce){.background__image,.background__floating-icon{animation:none}.background__floating-icon{opacity:var(--_zn-background-icon-opacity-max)}}`;var Or=class extends k{constructor(){super(...arguments);this.resizeObserver=new ht(this,{callback:t=>{let r=t[0]?.contentRect.width??this.offsetWidth;return Math.max(1,Math.min(r*.05,150))}});this.image="";this.color="";this.imageStrength="full";this.motion="none";this.overlay="soft";this.overlayTone="light";this.floatingIcons="";this.paused=!1}render(){let t=this.floatingIcons.split(",").map(n=>n.trim()).filter(Boolean).slice(0,8),r=this.resizeObserver.value??1;return u`
6358
6358
  <div
6359
6359
  part="base"
6360
6360
  class="background"
@@ -6382,4 +6382,4 @@ ${n}`:""}</li></ol>`};return t(0)}parseTable(i,t){this.index++;let r=[],n=[];for
6382
6382
  `:""}
6383
6383
  <div part="content" class="background__content"><slot></slot></div>
6384
6384
  </div>
6385
- `}};Or.styles=z(c3),Or.dependencies={"zn-icon":ne},c([d()],Or.prototype,"image",2),c([d()],Or.prototype,"color",2),c([d({attribute:"image-strength",reflect:!0})],Or.prototype,"imageStrength",2),c([d({reflect:!0})],Or.prototype,"motion",2),c([d({reflect:!0})],Or.prototype,"overlay",2),c([d({attribute:"overlay-tone",reflect:!0})],Or.prototype,"overlayTone",2),c([d({attribute:"floating-icons"})],Or.prototype,"floatingIcons",2),c([d({type:Boolean,reflect:!0})],Or.prototype,"paused",2);var cD=Or;Or.define("zn-background");export{z5 as AbsoluteContainer,AL as ActionBar,Au as Alert,VL as AnimatedButton,PL as AudioSelect,cD as Background,u8 as BulkActions,$e as Button,Ol as ButtonGroup,EL as ButtonMenu,D4 as ChannelTile,P4 as Chart,e4 as ChatMessage,t4 as ChatMessageAttachment,oL as Checkbox,uL as CheckboxGroup,Gn as Chip,za as Collapsible,SL as ColorSelect,$4 as Cols,Fl as Confirm,IL as ContentBlock,Mu as CopyButton,CL as DataSelect,E4 as DataTable,Ud as DataTableFilter,Qu as DataTableSearch,$L as DataTableSort,Yu as Datepicker,A4 as DefinedLabel,ka as Dialog,pr as Dropdown,iL as Editor,ji as EditorDialog,Jf as EditorQuickAction,Oc as EditorTool,Xu as EmptyState,om as ExpandingAction,hL as File,NL as FilterContainer,DL as FilterWrapper,Dg as FlowBranchConditions,AI as FlowBuilder,LI as FlowStep,Pg as FlowStepGroup,MI as FlowSteps,aL as FormActions,sg as FormGroup,V4 as Header,Ju as HoverContainer,ne as Icon,Q4 as IconPicker,rp as InlineEdit,nt as Input,sL as InputGroup,mL as Item,FL as Key,BL as KeyContainer,lL as LinkedSelect,Nq as MarkdownEditor,on as Menu,xi as MenuItem,Sa as Navbar,M4 as Note,ju as OptGroup,ot as Option,h8 as OrderTable,Y4 as Page,PI as PageBuilder,ML as PageNav,Bg as PagePaletteItem,Vg as PageSectionCard,X4 as Pagination,t8 as Pane,Zu as Panel,Nl as Popup,jg as PreviewFrame,GL as PriorityList,p8 as ProgressBar,d8 as ProgressTile,g4 as QueryBuilder,cL as Radio,pL as RadioGroup,dL as Rating,lI as RemarkdEditor,OL as Reveal,nD as ScheduleBuilder,c8 as ScrollContainer,Be as Select,RL as SettingsContainer,n8 as Sidebar,B4 as SimpleChart,em as Skeleton,Vl as SlashItem,Ca as SlashMenu,TL as Slideout,a8 as Sp,qL as SplitButton,i8 as SplitPane,l8 as Stat,LL as StatusIndicator,s8 as Stepper,tm as Style,am as Tab,e8 as Table,ln as Tabs,Xo as Textarea,UI as ThemeEditor,sD as Thumbnail,lD as ThumbnailGroup,L4 as Tile,q4 as TileGroup,I4 as TileProperty,Z4 as Timer,nL as Toggle,gi as Tooltip,UL as TranslationGroup,HL as Translations,J4 as VerticalStepper,r4 as Well,k as ZincElement,Pu as caretRectFrom,N3 as clearFormStoreValues,T3 as deepQuery,$3 as deepQueryAll,Ge as deepQuerySelectorAll,Ou as getCaretCoordinates,JB as getCaretRect,cr as idSelector,qt as litToHTML,ip as on};
6385
+ `}};Or.styles=z(c3),Or.dependencies={"zn-icon":ne},c([d()],Or.prototype,"image",2),c([d()],Or.prototype,"color",2),c([d({attribute:"image-strength",reflect:!0})],Or.prototype,"imageStrength",2),c([d({reflect:!0})],Or.prototype,"motion",2),c([d({reflect:!0})],Or.prototype,"overlay",2),c([d({attribute:"overlay-tone",reflect:!0})],Or.prototype,"overlayTone",2),c([d({attribute:"floating-icons"})],Or.prototype,"floatingIcons",2),c([d({type:Boolean,reflect:!0})],Or.prototype,"paused",2);var cD=Or;Or.define("zn-background");export{z5 as AbsoluteContainer,AL as ActionBar,Au as Alert,VL as AnimatedButton,PL as AudioSelect,cD as Background,u8 as BulkActions,$e as Button,Ol as ButtonGroup,EL as ButtonMenu,D4 as ChannelTile,P4 as Chart,e4 as ChatMessage,t4 as ChatMessageAttachment,oL as Checkbox,uL as CheckboxGroup,Gn as Chip,za as Collapsible,SL as ColorSelect,$4 as Cols,Fl as Confirm,IL as ContentBlock,Mu as CopyButton,CL as DataSelect,E4 as DataTable,Ud as DataTableFilter,Qu as DataTableSearch,$L as DataTableSort,Yu as Datepicker,A4 as DefinedLabel,ka as Dialog,pr as Dropdown,iL as Editor,ji as EditorDialog,Jf as EditorQuickAction,Oc as EditorTool,Xu as EmptyState,om as ExpandingAction,hL as File,NL as FilterContainer,DL as FilterWrapper,Dg as FlowBranchConditions,AI as FlowBuilder,LI as FlowStep,Pg as FlowStepGroup,MI as FlowSteps,aL as FormActions,sg as FormGroup,V4 as Header,Ju as HoverContainer,ne as Icon,Q4 as IconPicker,rp as InlineEdit,ot as Input,sL as InputGroup,mL as Item,FL as Key,BL as KeyContainer,lL as LinkedSelect,Nq as MarkdownEditor,on as Menu,xi as MenuItem,Sa as Navbar,M4 as Note,ju as OptGroup,at as Option,h8 as OrderTable,Y4 as Page,PI as PageBuilder,ML as PageNav,Bg as PagePaletteItem,Vg as PageSectionCard,X4 as Pagination,t8 as Pane,Zu as Panel,Nl as Popup,jg as PreviewFrame,GL as PriorityList,p8 as ProgressBar,d8 as ProgressTile,g4 as QueryBuilder,cL as Radio,pL as RadioGroup,dL as Rating,lI as RemarkdEditor,OL as Reveal,nD as ScheduleBuilder,c8 as ScrollContainer,Be as Select,RL as SettingsContainer,n8 as Sidebar,B4 as SimpleChart,em as Skeleton,Vl as SlashItem,Ca as SlashMenu,TL as Slideout,a8 as Sp,qL as SplitButton,i8 as SplitPane,l8 as Stat,LL as StatusIndicator,s8 as Stepper,tm as Style,am as Tab,e8 as Table,ln as Tabs,Xo as Textarea,UI as ThemeEditor,sD as Thumbnail,lD as ThumbnailGroup,L4 as Tile,q4 as TileGroup,I4 as TileProperty,Z4 as Timer,nL as Toggle,gi as Tooltip,UL as TranslationGroup,HL as Translations,J4 as VerticalStepper,r4 as Well,k as ZincElement,Pu as caretRectFrom,N3 as clearFormStoreValues,T3 as deepQuery,$3 as deepQueryAll,Ge as deepQuerySelectorAll,Ou as getCaretCoordinates,JB as getCaretRect,cr as idSelector,qt as litToHTML,ip as on};